@fluidattacks/design 3.0.0 → 3.0.1
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/index.js +119 -119
- package/dist/index.mjs +3194 -3195
- package/dist/types/components/inputs/fields/date/calendar/index.d.ts +1 -1
- package/dist/types/components/inputs/fields/date/types.d.ts +2 -4
- package/dist/types/components/inputs/fields/date-range/calendar/index.d.ts +1 -1
- package/dist/types/components/inputs/fields/date-time/calendar/index.d.ts +2 -3
- package/dist/types/components/inputs/utils/calendar-button/index.d.ts +1 -1
- package/dist/types/components/inputs/utils/dialog/index.d.ts +1 -1
- package/dist/types/components/inputs/utils/types.d.ts +2 -4
- package/dist/types/components/slider/types.d.ts +2 -2
- package/package.json +8 -18
package/dist/index.js
CHANGED
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
${k}
|
|
31
31
|
`,j=({children:t,color:n,download:r,href:i,iconPosition:a="right",onClick:o,target:s,variant:l="lowRelevance"})=>{const u=i.startsWith("https://"),c=e.jsxRuntimeExports.jsx(e.Icon,{icon:void 0===r?"arrow-up-right-from-square":"arrow-down-to-bracket",iconSize:"xxs",iconType:"fa-regular",ml:.25,mr:.25});return u?e.jsxRuntimeExports.jsxs(S,{$color:n,$variant:l,download:r,href:i,onClick:o,rel:"nofollow noopener noreferrer",target:s??"_blank",children:["left"===a?c:void 0,t,"right"===a?c:void 0]}):e.jsxRuntimeExports.jsxs(D,{$variant:l,download:r,onClick:o,rel:"nofollow noopener noreferrer",target:s,to:i,children:[void 0!==s&&"left"===a?c:void 0,t,void 0!==s&&"right"===a?c:void 0]})},C=({alt:t,fileType:n,width:i="100%",opacity:a=0,src:o,height:s="auto"})=>"video"===n||((e,t)=>!r.isUndefined(t)&&r.includes(e,(e=>{if(r.isNil(e))return"";const t=e.split(".");return(t.length>1?r.last(t):"").toLowerCase()})(t)))(["webm"],o)?e.jsxRuntimeExports.jsx(w,{$opacity:a,children:e.jsxRuntimeExports.jsxs("video",{controls:!0,height:s,muted:!0,width:i,children:[e.jsxRuntimeExports.jsx("source",{src:o,type:"video/webm"}),e.jsxRuntimeExports.jsx(j,{href:o,iconPosition:"hidden",children:o})]})}):e.jsxRuntimeExports.jsx(w,{$opacity:a,children:e.jsxRuntimeExports.jsx("img",{alt:t,height:s,src:o,width:i})}),R=n.styled.div`
|
|
32
32
|
${({theme:e,$align:t="center",$minWidth:n="auto",$minHeight:r="auto"})=>`\n display: flex;\n background-color: ${e.palette.white};\n border-radius: ${e.spacing[.25]};\n border: 1px solid ${e.palette.gray[200]};\n flex-direction: column;\n justify-content: center;\n gap: ${e.spacing[.5]};\n min-width: ${n};\n min-height: ${r};\n padding: ${e.spacing[1]};\n\n input {\n color: ${e.palette.gray[800]};\n line-height: ${e.spacing[1.5]};\n text-align: ${t};\n }\n `}
|
|
33
|
-
`;function P(e,t){return e-t*Math.floor(e/t)}function $(e,t,n,r){let i=(t=_(e,t))-1,a=-2;return n<=2?a=0:T(t)&&(a=-1),1721425+365*i+Math.floor(i/4)-Math.floor(i/100)+Math.floor(i/400)+Math.floor((367*n-362)/12+a+r)}function T(e){return e%4==0&&(e%100!=0||e%400==0)}function _(e,t){return"BC"===e?1-t:t}function M(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}const A={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]};class I{fromJulianDay(e){let t=e,n=t-1721426,r=Math.floor(n/146097),i=P(n,146097),a=Math.floor(i/36524),o=P(i,36524),s=Math.floor(o/1461),l=P(o,1461),u=Math.floor(l/365),c=400*r+100*a+4*s+u+(4!==a&&4!==u?1:0),[d,p]=M(c),h=t-$(d,p,1,1),f=2;t<$(d,p,3,1)?f=0:T(p)&&(f=1);let m=Math.floor((12*(h+f)+373)/367),g=t-$(d,p,m,1)+1;return new Ue(d,p,m,g)}toJulianDay(e){return $(e.era,e.year,e.month,e.day)}getDaysInMonth(e){return A[T(e.year)?"leapyear":"standard"][e.month-1]}getMonthsInYear(e){return 12}getDaysInYear(e){return T(e.year)?366:365}getYearsInEra(e){return 9999}getEras(){return["BC","AD"]}isInverseEra(e){return"BC"===e.era}balanceDate(e){e.year<=0&&(e.era="BC"===e.era?"AD":"BC",e.year=1-e.year)}constructor(){this.identifier="gregory"}}const O={"001":1,AD:1,AE:6,AF:6,AI:1,AL:1,AM:1,AN:1,AR:1,AT:1,AU:1,AX:1,AZ:1,BA:1,BE:1,BG:1,BH:6,BM:1,BN:1,BY:1,CH:1,CL:1,CM:1,CN:1,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DZ:6,EC:1,EE:1,EG:6,ES:1,FI:1,FJ:1,FO:1,FR:1,GB:1,GE:1,GF:1,GP:1,GR:1,HR:1,HU:1,IE:1,IQ:6,IR:6,IS:1,IT:1,JO:6,KG:1,KW:6,KZ:1,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MK:1,MN:1,MQ:1,MV:5,MY:1,NL:1,NO:1,NZ:1,OM:6,PL:1,QA:6,RE:1,RO:1,RS:1,RU:1,SD:6,SE:1,SI:1,SK:1,SM:1,SY:6,TJ:1,TM:1,TR:1,UA:1,UY:1,UZ:1,VA:1,VN:1,XK:1};function F(e,t){return t=fe(t,e.calendar),e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function L(e,t){return e.calendar.identifier===t.calendar.identifier&&e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function V(e,t){return F(e,B(t))}function N(e,t){let n=e.calendar.toJulianDay(e),r=Math.ceil(n+1-function(e){let t=function(e){if(Intl.Locale){let t=Q.get(e);return t||(t=new Intl.Locale(e).maximize().region,t&&Q.set(e,t)),t}let t=e.split("-")[1];return"u"===t?void 0:t}(e);return t&&O[t]||0}(t))%7;return r<0&&(r+=7),r}function z(e){return ce(Date.now(),e)}function B(e){return de(z(e))}function U(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function W(e,t){return q(e)-q(t)}function q(e){return 36e5*e.hour+6e4*e.minute+1e3*e.second+e.millisecond}let K=null;function H(){return null==K&&(K=(new Intl.DateTimeFormat).resolvedOptions().timeZone),K}function Z(e){return e.subtract({days:e.day-1})}function G(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})}function Y(e){return e.calendar.getMinimumMonthInYear?e.calendar.getMinimumMonthInYear(e):1}function J(e){return e.calendar.getMinimumDayInMonth?e.calendar.getMinimumDayInMonth(e):1}function X(e,t){let n=N(e,t);return e.subtract({days:n})}const Q=new Map;function ee(e,t){return e&&t?e.compare(t)<=0?e:t:e||t}function te(e,t){return e&&t?e.compare(t)>=0?e:t:e||t}function ne(e){return re(_((e=fe(e,new I)).era,e.year),e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function re(e,t,n,r,i,a,o){let s=new Date;return s.setUTCHours(r,i,a,o),s.setUTCFullYear(e,t-1,n),s.getTime()}function ie(e,t){if("UTC"===t)return 0;if(e>0&&t===H())return-6e4*new Date(e).getTimezoneOffset();let{year:n,month:r,day:i,hour:a,minute:o,second:s}=oe(e,t);return re(n,r,i,a,o,s,0)-1e3*Math.floor(e/1e3)}const ae=new Map;function oe(e,t){let n=ae.get(t);n||(n=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),ae.set(t,n));let r=n.formatToParts(new Date(e)),i={};for(let a of r)"literal"!==a.type&&(i[a.type]=a.value);return{year:"BC"===i.era||"B"===i.era?1-i.year:+i.year,month:+i.month,day:+i.day,hour:"24"===i.hour?0:+i.hour,minute:+i.minute,second:+i.second}}const se=864e5;function le(e,t,n="compatible"){let r=pe(e);if("UTC"===t)return ne(r);if(t===H()&&"compatible"===n){r=fe(r,new I);let e=new Date,t=_(r.era,r.year);return e.setFullYear(t,r.month-1,r.day),e.setHours(r.hour,r.minute,r.second,r.millisecond),e.getTime()}let i=ne(r),a=ie(i-se,t),o=ie(i+se,t),s=function(e,t,n,r){return(n===r?[n]:[n,r]).filter((n=>function(e,t,n){let r=oe(n,t);return e.year===r.year&&e.month===r.month&&e.day===r.day&&e.hour===r.hour&&e.minute===r.minute&&e.second===r.second}(e,t,n)))}(r,t,i-a,i-o);if(1===s.length)return s[0];if(s.length>1)switch(n){case"compatible":case"earlier":return s[0];case"later":return s[s.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(n){case"earlier":return Math.min(i-a,i-o);case"compatible":case"later":return Math.max(i-a,i-o);case"reject":throw new RangeError("No such absolute time found")}}function ue(e,t,n="compatible"){return new Date(le(e,t,n))}function ce(e,t){let n=ie(e,t),r=new Date(e+n),i=r.getUTCFullYear(),a=r.getUTCMonth()+1,o=r.getUTCDate(),s=r.getUTCHours(),l=r.getUTCMinutes(),u=r.getUTCSeconds(),c=r.getUTCMilliseconds();return new Ge(i<1?"BC":"AD",i<1?1-i:i,a,o,t,n,s,l,u,c)}function de(e){return new Ue(e.calendar,e.era,e.year,e.month,e.day)}function pe(e,t){let n=0,r=0,i=0,a=0;if("timeZone"in e)({hour:n,minute:r,second:i,millisecond:a}=e);else if("hour"in e&&!t)return e;return t&&({hour:n,minute:r,second:i,millisecond:a}=t),new He(e.calendar,e.era,e.year,e.month,e.day,n,r,i,a)}function he(e){return new qe(e.hour,e.minute,e.second,e.millisecond)}function fe(e,t){if(e.calendar.identifier===t.identifier)return e;let n=t.fromJulianDay(e.calendar.toJulianDay(e)),r=e.copy();return r.calendar=t,r.era=n.era,r.year=n.year,r.month=n.month,r.day=n.day,we(r),r}function me(e,t,n){return e instanceof Ge?e.timeZone===t?e:(i=t,fe(ce(ne(r=e)-r.offset,i),r.calendar)):ce(le(e,t,n),t);var r,i}const ge=36e5;function ye(e,t){let n=e.copy(),r="hour"in n?Re(n,t):0;ve(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,be(n),xe(n),n.day+=7*(t.weeks||0),n.day+=t.days||0,n.day+=r,function(e){for(;e.day<1;)e.month--,be(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,be(e)}(n),n.calendar.balanceDate&&n.calendar.balanceDate(n),n.year<1&&(n.year=1,n.month=1,n.day=1);let i=n.calendar.getYearsInEra(n);if(n.year>i){var a,o;let e=null===(a=(o=n.calendar).isInverseEra)||void 0===a?void 0:a.call(o,n);n.year=i,n.month=e?1:n.calendar.getMonthsInYear(n),n.day=e?1:n.calendar.getDaysInMonth(n)}n.month<1&&(n.month=1,n.day=1);let s=n.calendar.getMonthsInYear(n);return n.month>s&&(n.month=s,n.day=n.calendar.getDaysInMonth(n)),n.day=Math.max(1,Math.min(n.calendar.getDaysInMonth(n),n.day)),n}function ve(e,t){var n,r;(null===(n=(r=e.calendar).isInverseEra)||void 0===n?void 0:n.call(r,e))&&(t=-t),e.year+=t}function be(e){for(;e.month<1;)ve(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,ve(e,1)}function xe(e){e.month=Math.max(1,Math.min(e.calendar.getMonthsInYear(e),e.month)),e.day=Math.max(1,Math.min(e.calendar.getDaysInMonth(e),e.day))}function we(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),xe(e)}function Ee(e){let t={};for(let n in e)"number"==typeof e[n]&&(t[n]=-e[n]);return t}function ke(e,t){return ye(e,Ee(t))}function Se(e,t){let n=e.copy();return null!=t.era&&(n.era=t.era),null!=t.year&&(n.year=t.year),null!=t.month&&(n.month=t.month),null!=t.day&&(n.day=t.day),we(n),n}function De(e,t){let n=e.copy();return null!=t.hour&&(n.hour=t.hour),null!=t.minute&&(n.minute=t.minute),null!=t.second&&(n.second=t.second),null!=t.millisecond&&(n.millisecond=t.millisecond),je(n),n}function je(e){e.millisecond=Math.max(0,Math.min(e.millisecond,1e3)),e.second=Math.max(0,Math.min(e.second,59)),e.minute=Math.max(0,Math.min(e.minute,59)),e.hour=Math.max(0,Math.min(e.hour,23))}function Ce(e,t){let n=e%t;return n<0&&(n+=t),n}function Re(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,function(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=Ce(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=Ce(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=Ce(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=Ce(e.hour,24),t}(e)}function Pe(e,t){let n=e.copy();return Re(n,t),n}function $e(e,t,n,r){let i=e.copy();switch(t){case"era":{let t=e.calendar.getEras(),a=t.indexOf(e.era);if(a<0)throw new Error("Invalid era: "+e.era);a=_e(a,n,0,t.length-1,null==r?void 0:r.round),i.era=t[a],we(i);break}case"year":var a,o;(null===(a=(o=i.calendar).isInverseEra)||void 0===a?void 0:a.call(o,i))&&(n=-n),i.year=_e(e.year,n,-1/0,9999,null==r?void 0:r.round),i.year===-1/0&&(i.year=1),i.calendar.balanceYearMonth&&i.calendar.balanceYearMonth(i,e);break;case"month":i.month=_e(e.month,n,1,e.calendar.getMonthsInYear(e),null==r?void 0:r.round);break;case"day":i.day=_e(e.day,n,1,e.calendar.getDaysInMonth(e),null==r?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(i),we(i),i}function Te(e,t,n,r){let i=e.copy();switch(t){case"hour":{let t=e.hour,a=0,o=23;if(12===(null==r?void 0:r.hourCycle)){let e=t>=12;a=e?12:0,o=e?23:11}i.hour=_e(t,n,a,o,null==r?void 0:r.round);break}case"minute":i.minute=_e(e.minute,n,0,59,null==r?void 0:r.round);break;case"second":i.second=_e(e.second,n,0,59,null==r?void 0:r.round);break;case"millisecond":i.millisecond=_e(e.millisecond,n,0,999,null==r?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return i}function _e(e,t,n,r,i=!1){if(i){(e+=Math.sign(t))<n&&(e=r);let i=Math.abs(t);(e=t>0?Math.ceil(e/i)*i:Math.floor(e/i)*i)>r&&(e=n)}else(e+=t)<n?e=r-(n-e-1):e>r&&(e=n+(e-r-1));return e}function Me(e,t){let n;return n=null!=t.years&&0!==t.years||null!=t.months&&0!==t.months||null!=t.weeks&&0!==t.weeks||null!=t.days&&0!==t.days?le(ye(pe(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days}),e.timeZone):ne(e)-e.offset,n+=t.milliseconds||0,n+=1e3*(t.seconds||0),n+=6e4*(t.minutes||0),n+=36e5*(t.hours||0),fe(ce(n,e.timeZone),e.calendar)}const Ae=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/;function Ie(e){let t=e.match(Ae);if(!t)throw new Error("Invalid ISO 8601 date string: "+e);let n=new Ue(Oe(t[1],0,9999),Oe(t[2],1,12),1);return n.day=Oe(t[3],0,n.calendar.getDaysInMonth(n)),n}function Oe(e,t,n){let r=Number(e);if(r<t||r>n)throw new RangeError(`Value out of range: ${t} <= ${r} <= ${n}`);return r}function Fe(e){return`${String(e.hour).padStart(2,"0")}:${String(e.minute).padStart(2,"0")}:${String(e.second).padStart(2,"0")}${e.millisecond?String(e.millisecond/1e3).slice(1):""}`}function Le(e){let t,n=fe(e,new I);return t="BC"===n.era?1===n.year?"0000":"-"+String(Math.abs(1-n.year)).padStart(6,"00"):String(n.year).padStart(4,"0"),`${t}-${String(n.month).padStart(2,"0")}-${String(n.day).padStart(2,"0")}`}function Ve(e){return`${Le(e)}T${Fe(e)}`}function Ne(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}function ze(e){let t,n="object"==typeof e[0]?e.shift():new I;if("string"==typeof e[0])t=e.shift();else{let e=n.getEras();t=e[e.length-1]}return[n,t,e.shift(),e.shift(),e.shift()]}var Be=new WeakMap;class Ue{copy(){return this.era?new Ue(this.calendar,this.era,this.year,this.month,this.day):new Ue(this.calendar,this.year,this.month,this.day)}add(e){return ye(this,e)}subtract(e){return ke(this,e)}set(e){return Se(this,e)}cycle(e,t,n){return $e(this,e,t,n)}toDate(e){return ue(this,e)}toString(){return Le(this)}compare(e){return U(this,e)}constructor(...e){Ne(this,Be,{writable:!0,value:void 0});let[t,n,r,i,a]=ze(e);this.calendar=t,this.era=n,this.year=r,this.month=i,this.day=a,we(this)}}var We=new WeakMap;class qe{copy(){return new qe(this.hour,this.minute,this.second,this.millisecond)}add(e){return Pe(this,e)}subtract(e){return Pe(this,Ee(e))}set(e){return De(this,e)}cycle(e,t,n){return Te(this,e,t,n)}toString(){return Fe(this)}compare(e){return W(this,e)}constructor(e=0,t=0,n=0,r=0){Ne(this,We,{writable:!0,value:void 0}),this.hour=e,this.minute=t,this.second=n,this.millisecond=r,je(this)}}var Ke=new WeakMap;class He{copy(){return this.era?new He(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new He(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(e){return ye(this,e)}subtract(e){return ke(this,e)}set(e){return Se(De(this,e),e)}cycle(e,t,n){switch(e){case"era":case"year":case"month":case"day":return $e(this,e,t,n);default:return Te(this,e,t,n)}}toDate(e,t){return ue(this,e,t)}toString(){return Ve(this)}compare(e){let t=U(this,e);return 0===t?W(this,pe(e)):t}constructor(...e){Ne(this,Ke,{writable:!0,value:void 0});let[t,n,r,i,a]=ze(e);this.calendar=t,this.era=n,this.year=r,this.month=i,this.day=a,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,we(this)}}var Ze=new WeakMap;class Ge{copy(){return this.era?new Ge(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new Ge(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(e){return Me(this,e)}subtract(e){return Me(this,Ee(e))}set(e,t){return function(e,t,n){let r=pe(e),i=De(Se(r,t),t);return 0===i.compare(r)?e:fe(ce(le(i,e.timeZone,n),e.timeZone),e.calendar)}(this,e,t)}cycle(e,t,n){return function(e,t,n,r){switch(t){case"hour":{let t=0,i=23;if(12===(null==r?void 0:r.hourCycle)){let n=e.hour>=12;t=n?12:0,i=n?23:11}let a=pe(e),o=fe(De(a,{hour:t}),new I),s=[le(o,e.timeZone,"earlier"),le(o,e.timeZone,"later")].filter((t=>ce(t,e.timeZone).day===o.day))[0],l=fe(De(a,{hour:i}),new I),u=[le(l,e.timeZone,"earlier"),le(l,e.timeZone,"later")].filter((t=>ce(t,e.timeZone).day===l.day)).pop(),c=ne(e)-e.offset,d=Math.floor(c/ge),p=c%ge;return c=_e(d,n,Math.floor(s/ge),Math.floor(u/ge),null==r?void 0:r.round)*ge+p,fe(ce(c,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return Te(e,t,n,r);case"era":case"year":case"month":case"day":return fe(ce(le($e(pe(e),t,n,r),e.timeZone),e.timeZone),e.calendar);default:throw new Error("Unsupported field "+t)}}(this,e,t,n)}toDate(){return function(e){let t=ne(e)-e.offset;return new Date(t)}(this)}toString(){return`${Ve(e=this)}${function(e){let t=Math.sign(e)<0?"-":"+";e=Math.abs(e);let n=Math.floor(e/36e5),r=e%36e5/6e4;return`${t}${String(n).padStart(2,"0")}:${String(r).padStart(2,"0")}`}(e.offset)}[${e.timeZone}]`;var e}toAbsoluteString(){return this.toDate().toISOString()}compare(e){return this.toDate().getTime()-me(e,this.timeZone).toDate().getTime()}constructor(...e){Ne(this,Ze,{writable:!0,value:void 0});let[t,n,r,i,a]=ze(e),o=e.shift(),s=e.shift();this.calendar=t,this.era=n,this.year=r,this.month=i,this.day=a,this.timeZone=o,this.offset=s,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,we(this)}}const Ye=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],Je=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],Xe=[1867,1911,1925,1988,2018],Qe=["meiji","taisho","showa","heisei","reiwa"];function et(e){const t=Ye.findIndex((([t,n,r])=>e.year<t||e.year===t&&e.month<n||e.year===t&&e.month===n&&e.day<r));return-1===t?Ye.length-1:0===t?0:t-1}function tt(e){let t=Xe[Qe.indexOf(e.era)];if(!t)throw new Error("Unknown era: "+e.era);return new Ue(e.year+t,e.month,e.day)}class nt extends I{fromJulianDay(e){let t=super.fromJulianDay(e),n=et(t);return new Ue(this,Qe[n],t.year-Xe[n],t.month,t.day)}toJulianDay(e){return super.toJulianDay(tt(e))}balanceDate(e){let t=tt(e),n=et(t);Qe[n]!==e.era&&(e.era=Qe[n],e.year=t.year-Xe[n]),this.constrainDate(e)}constrainDate(e){let t=Qe.indexOf(e.era),n=Je[t];if(null!=n){let[r,i,a]=n,o=r-Xe[t];e.year=Math.max(1,Math.min(o,e.year)),e.year===o&&(e.month=Math.min(i,e.month),e.month===i&&(e.day=Math.min(a,e.day)))}if(1===e.year&&t>=0){let[,n,r]=Ye[t];e.month=Math.max(n,e.month),e.month===n&&(e.day=Math.max(r,e.day))}}getEras(){return Qe}getYearsInEra(e){let t=Qe.indexOf(e.era),n=Ye[t],r=Ye[t+1];if(null==r)return 9999-n[0]+1;let i=r[0]-n[0];return(e.month<r[1]||e.month===r[1]&&e.day<r[2])&&i++,i}getDaysInMonth(e){return super.getDaysInMonth(tt(e))}getMinimumMonthInYear(e){let t=rt(e);return t?t[1]:1}getMinimumDayInMonth(e){let t=rt(e);return t&&e.month===t[1]?t[2]:1}constructor(...e){super(...e),this.identifier="japanese"}}function rt(e){if(1===e.year){let t=Qe.indexOf(e.era);return Ye[t]}}class it extends I{fromJulianDay(e){let t=super.fromJulianDay(e),n=_(t.era,t.year);return new Ue(this,n- -543,t.month,t.day)}toJulianDay(e){return super.toJulianDay(at(e))}getEras(){return["BE"]}getDaysInMonth(e){return super.getDaysInMonth(at(e))}balanceDate(){}constructor(...e){super(...e),this.identifier="buddhist"}}function at(e){let[t,n]=M(e.year+-543);return new Ue(t,n,e.month,e.day)}const ot=1911;function st(e){return"minguo"===e.era?e.year+ot:1-e.year+ot}function lt(e){let t=e-ot;return t>0?["minguo",t]:["before_minguo",1-t]}class ut extends I{fromJulianDay(e){let t=super.fromJulianDay(e),n=_(t.era,t.year),[r,i]=lt(n);return new Ue(this,r,i,t.month,t.day)}toJulianDay(e){return super.toJulianDay(ct(e))}getEras(){return["before_minguo","minguo"]}balanceDate(e){let[t,n]=lt(st(e));e.era=t,e.year=n}isInverseEra(e){return"before_minguo"===e.era}getDaysInMonth(e){return super.getDaysInMonth(ct(e))}getYearsInEra(e){return"before_minguo"===e.era?9999:8088}constructor(...e){super(...e),this.identifier="roc"}}function ct(e){let[t,n]=M(st(e));return new Ue(t,n,e.month,e.day)}const dt=[0,31,62,93,124,155,186,216,246,276,306,336];class pt{fromJulianDay(e){let t=e-1948320,n=1+Math.floor((33*t+3)/12053),r=t-(365*(n-1)+Math.floor((8*n+21)/33)),i=r<216?Math.floor(r/31):Math.floor((r-6)/30);return new Ue(this,n,i+1,r-dt[i]+1)}toJulianDay(e){let t=1948319+365*(e.year-1)+Math.floor((8*e.year+21)/33);return t+=dt[e.month-1],t+=e.day,t}getMonthsInYear(){return 12}getDaysInMonth(e){return e.month<=6?31:e.month<=11||P(25*e.year+11,33)<8?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}class ht extends I{fromJulianDay(e){let t,n,r,i=super.fromJulianDay(e),a=i.year-78,o=e-$(i.era,i.year,1,1);if(o<80?(a--,t=T(i.year-1)?31:30,o+=t+155+90+10):(t=T(i.year)?31:30,o-=80),o<t)n=1,r=o+1;else{let e=o-t;e<155?(n=Math.floor(e/31)+2,r=e%31+1):(e-=155,n=Math.floor(e/30)+7,r=e%30+1)}return new Ue(this,a,n,r)}toJulianDay(e){let t,n,r=e.year+78,[i,a]=M(r);return T(a)?(t=31,n=$(i,a,3,21)):(t=30,n=$(i,a,3,22)),1===e.month?n+e.day-1:(n+=t+31*Math.min(e.month-2,5),e.month>=8&&(n+=30*(e.month-7)),n+=e.day-1,n)}getDaysInMonth(e){return 1===e.month&&T(e.year+78)||e.month>=2&&e.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...e){super(...e),this.identifier="indian"}}const ft=1948440,mt=1948439,gt=1300,yt=1600;function vt(e,t,n,r){return r+Math.ceil(29.5*(n-1))+354*(t-1)+Math.floor((3+11*t)/30)+e-1}function bt(e,t,n){let r=Math.floor((30*(n-t)+10646)/10631),i=Math.min(12,Math.ceil((n-(29+vt(t,r,1,1)))/29.5)+1),a=n-vt(t,r,i,1)+1;return new Ue(e,r,i,a)}function xt(e){return(14+11*e)%30<11}class wt{fromJulianDay(e){return bt(this,ft,e)}toJulianDay(e){return vt(ft,e.year,e.month,e.day)}getDaysInMonth(e){let t=29+e.month%2;return 12===e.month&&xt(e.year)&&t++,t}getMonthsInYear(){return 12}getDaysInYear(e){return xt(e.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class Et extends wt{fromJulianDay(e){return bt(this,mt,e)}toJulianDay(e){return vt(mt,e.year,e.month,e.day)}constructor(...e){super(...e),this.identifier="islamic-tbla"}}let kt,St;function Dt(e){return 460322+St[e-gt]}function jt(e,t){let n=1<<11-(t-1);return kt[e-gt]&n?30:29}function Ct(e,t){let n=Dt(e);for(let r=1;r<t;r++)n+=jt(e,r);return n}function Rt(e){return St[e+1-gt]-St[e-gt]}class Pt extends wt{fromJulianDay(e){let t=e-ft,n=Dt(gt),r=Dt(yt);if(t<n||t>r)return super.fromJulianDay(e);{let e=1299,n=1,r=1;for(;r>0;){e++,r=t-Dt(e)+1;let i=Rt(e);if(r===i){n=12;break}if(r<i){let t=jt(e,n);for(n=1;r>t;)r-=t,n++,t=jt(e,n);break}}return new Ue(this,e,n,t-Ct(e,n)+1)}}toJulianDay(e){return e.year<gt||e.year>yt?super.toJulianDay(e):ft+Ct(e.year,e.month)+(e.day-1)}getDaysInMonth(e){return e.year<gt||e.year>yt?super.getDaysInMonth(e):jt(e.year,e.month)}getDaysInYear(e){return e.year<gt||e.year>yt?super.getDaysInYear(e):Rt(e.year)}constructor(){if(super(),this.identifier="islamic-umalqura",kt||(kt=new Uint16Array(Uint8Array.from(atob("qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI="),(e=>e.charCodeAt(0))).buffer)),!St){St=new Uint32Array(301);let e=0;for(let t=gt;t<=yt;t++){St[t-gt]=e;for(let n=1;n<=12;n++)e+=jt(t,n)}}}}const $t=347997;function Tt(e){return P(7*e+1,19)<7}function _t(e){let t=Math.floor((235*e-234)/19),n=12084+13753*t,r=29*t+Math.floor(n/25920);return P(3*(r+1),7)<3&&(r+=1),r}function Mt(e){return _t(e)+function(e){let t=_t(e-1),n=_t(e);return _t(e+1)-n==356?2:n-t==382?1:0}(e)}function At(e){return Mt(e+1)-Mt(e)}function It(e,t){if(t>=6&&!Tt(e)&&t++,4===t||7===t||9===t||11===t||13===t)return 29;let n=function(e){let t=At(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}(e);return 2===t?2===n?30:29:3===t?0===n?29:30:6===t?Tt(e)?30:0:30}class Ot{fromJulianDay(e){let t=e-$t,n=25920*t/765433,r=Math.floor((19*n+234)/235)+1,i=Mt(r),a=Math.floor(t-i);for(;a<1;)r--,i=Mt(r),a=Math.floor(t-i);let o=1,s=0;for(;s<a;)s+=It(r,o),o++;return o--,s-=It(r,o),new Ue(this,r,o,a-s)}toJulianDay(e){let t=Mt(e.year);for(let n=1;n<e.month;n++)t+=It(e.year,n);return t+e.day+$t}getDaysInMonth(e){return It(e.year,e.month)}getMonthsInYear(e){return Tt(e.year)?13:12}getDaysInYear(e){return At(e.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(e,t){t.year!==e.year&&(Tt(t.year)&&!Tt(e.year)&&t.month>6?e.month--:!Tt(t.year)&&Tt(e.year)&&t.month>6&&e.month++)}constructor(){this.identifier="hebrew"}}const Ft=1723856,Lt=1824665,Vt=5500;function Nt(e,t,n,r){return e+365*t+Math.floor(t/4)+30*(n-1)+r-1}function zt(e,t){let n=Math.floor(4*(t-e)/1461),r=1+Math.floor((t-Nt(e,n,1,1))/30);return[n,r,t+1-Nt(e,n,r,1)]}function Bt(e){return Math.floor(e%4/3)}function Ut(e,t){return t%13!=0?30:Bt(e)+5}class Wt{fromJulianDay(e){let[t,n,r]=zt(Ft,e),i="AM";return t<=0&&(i="AA",t+=Vt),new Ue(this,i,t,n,r)}toJulianDay(e){let t=e.year;return"AA"===e.era&&(t-=Vt),Nt(Ft,t,e.month,e.day)}getDaysInMonth(e){return Ut(e.year,e.month)}getMonthsInYear(){return 13}getDaysInYear(e){return 365+Bt(e.year)}getYearsInEra(e){return"AA"===e.era?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class qt extends Wt{fromJulianDay(e){let[t,n,r]=zt(Ft,e);return t+=Vt,new Ue(this,"AA",t,n,r)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...e){super(...e),this.identifier="ethioaa"}}class Kt extends Wt{fromJulianDay(e){let[t,n,r]=zt(Lt,e),i="CE";return t<=0&&(i="BCE",t=1-t),new Ue(this,i,t,n,r)}toJulianDay(e){let t=e.year;return"BCE"===e.era&&(t=1-t),Nt(Lt,t,e.month,e.day)}getDaysInMonth(e){let t=e.year;return"BCE"===e.era&&(t=1-t),Ut(t,e.month)}isInverseEra(e){return"BCE"===e.era}balanceDate(e){e.year<=0&&(e.era="BCE"===e.era?"CE":"BCE",e.year=1-e.year)}getEras(){return["BCE","CE"]}getYearsInEra(e){return"BCE"===e.era?9999:9715}constructor(...e){super(...e),this.identifier="coptic"}}function Ht(e){switch(e){case"buddhist":return new it;case"ethiopic":return new Wt;case"ethioaa":return new qt;case"coptic":return new Kt;case"hebrew":return new Ot;case"indian":return new ht;case"islamic-civil":return new wt;case"islamic-tbla":return new Et;case"islamic-umalqura":return new Pt;case"japanese":return new nt;case"persian":return new pt;case"roc":return new ut;default:return new I}}let Zt=new Map;class Gt{format(e){return this.formatter.format(e)}formatToParts(e){return this.formatter.formatToParts(e)}formatRange(e,t){if("function"==typeof this.formatter.formatRange)return this.formatter.formatRange(e,t);if(t<e)throw new RangeError("End date must be >= start date");return`${this.formatter.format(e)} – ${this.formatter.format(t)}`}formatRangeToParts(e,t){if("function"==typeof this.formatter.formatRangeToParts)return this.formatter.formatRangeToParts(e,t);if(t<e)throw new RangeError("End date must be >= start date");let n=this.formatter.formatToParts(e),r=this.formatter.formatToParts(t);return[...n.map((e=>({...e,source:"startRange"}))),{type:"literal",value:" – ",source:"shared"},...r.map((e=>({...e,source:"endRange"})))]}resolvedOptions(){let e=this.formatter.resolvedOptions();return null==Qt&&(Qt="h12"===new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle),Qt&&(this.resolvedHourCycle||(this.resolvedHourCycle=function(e,t){if(!t.timeStyle&&!t.hour)return;e=e.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,"");let n=Jt(e+=(e.includes("-u-")?"":"-u")+"-nu-latn",{...t,timeZone:void 0}),r=parseInt(n.formatToParts(new Date(2020,2,3,0)).find((e=>"hour"===e.type)).value,10),i=parseInt(n.formatToParts(new Date(2020,2,3,23)).find((e=>"hour"===e.type)).value,10);if(0===r&&23===i)return"h23";if(24===r&&23===i)return"h24";if(0===r&&11===i)return"h11";if(12===r&&11===i)return"h12";throw new Error("Unexpected hour cycle result")}(e.locale,this.options)),e.hourCycle=this.resolvedHourCycle,e.hour12="h11"===this.resolvedHourCycle||"h12"===this.resolvedHourCycle),"ethiopic-amete-alem"===e.calendar&&(e.calendar="ethioaa"),e}constructor(e,t={}){this.formatter=Jt(e,t),this.options=t}}const Yt={true:{ja:"h11"},false:{}};function Jt(e,t={}){if("boolean"==typeof t.hour12&&(null==Xt&&(Xt="24"===new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))),Xt)){t={...t};let n=Yt[String(t.hour12)][e.split("-")[0]],r=t.hour12?"h12":"h23";t.hourCycle=null!=n?n:r,delete t.hour12}let n=e+(t?Object.entries(t).sort(((e,t)=>e[0]<t[0]?-1:1)).join():"");if(Zt.has(n))return Zt.get(n);let r=new Intl.DateTimeFormat(e,t);return Zt.set(n,r),r}let Xt=null,Qt=null;var en;en={"ar-AE":{calendar:"التقويم",day:"يوم",dayPeriod:"ص/م",endDate:"تاريخ الانتهاء",era:"العصر",hour:"الساعات",minute:"الدقائق",month:"الشهر",second:"الثواني",selectedDateDescription:e=>`تاريخ محدد: ${e.date}`,selectedRangeDescription:e=>`المدى الزمني المحدد: ${e.startDate} إلى ${e.endDate}`,selectedTimeDescription:e=>`الوقت المحدد: ${e.time}`,startDate:"تاريخ البدء",timeZoneName:"التوقيت",weekday:"اليوم",year:"السنة"},"bg-BG":{calendar:"Календар",day:"ден",dayPeriod:"пр.об./сл.об.",endDate:"Крайна дата",era:"ера",hour:"час",minute:"минута",month:"месец",second:"секунда",selectedDateDescription:e=>`Избрана дата: ${e.date}`,selectedRangeDescription:e=>`Избран диапазон: ${e.startDate} до ${e.endDate}`,selectedTimeDescription:e=>`Избрано време: ${e.time}`,startDate:"Начална дата",timeZoneName:"часова зона",weekday:"ден от седмицата",year:"година"},"cs-CZ":{calendar:"Kalendář",day:"den",dayPeriod:"část dne",endDate:"Konečné datum",era:"letopočet",hour:"hodina",minute:"minuta",month:"měsíc",second:"sekunda",selectedDateDescription:e=>`Vybrané datum: ${e.date}`,selectedRangeDescription:e=>`Vybrané období: ${e.startDate} až ${e.endDate}`,selectedTimeDescription:e=>`Vybraný čas: ${e.time}`,startDate:"Počáteční datum",timeZoneName:"časové pásmo",weekday:"den v týdnu",year:"rok"},"da-DK":{calendar:"Kalender",day:"dag",dayPeriod:"AM/PM",endDate:"Slutdato",era:"æra",hour:"time",minute:"minut",month:"måned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tidspunkt: ${e.time}`,startDate:"Startdato",timeZoneName:"tidszone",weekday:"ugedag",year:"år"},"de-DE":{calendar:"Kalender",day:"Tag",dayPeriod:"Tageshälfte",endDate:"Enddatum",era:"Epoche",hour:"Stunde",minute:"Minute",month:"Monat",second:"Sekunde",selectedDateDescription:e=>`Ausgewähltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgewählter Bereich: ${e.startDate} bis ${e.endDate}`,selectedTimeDescription:e=>`Ausgewählte Zeit: ${e.time}`,startDate:"Anfangsdatum",timeZoneName:"Zeitzone",weekday:"Wochentag",year:"Jahr"},"el-GR":{calendar:"Ημερολόγιο",day:"ημέρα",dayPeriod:"π.μ./μ.μ.",endDate:"Ημερομηνία λήξης",era:"περίοδος",hour:"ώρα",minute:"λεπτό",month:"μήνας",second:"δευτερόλεπτο",selectedDateDescription:e=>`Επιλεγμένη ημερομηνία: ${e.date}`,selectedRangeDescription:e=>`Επιλεγμένο εύρος: ${e.startDate} έως ${e.endDate}`,selectedTimeDescription:e=>`Επιλεγμένη ώρα: ${e.time}`,startDate:"Ημερομηνία έναρξης",timeZoneName:"ζώνη ώρας",weekday:"καθημερινή",year:"έτος"},"en-US":{era:"era",year:"year",month:"month",day:"day",hour:"hour",minute:"minute",second:"second",dayPeriod:"AM/PM",calendar:"Calendar",startDate:"Start Date",endDate:"End Date",weekday:"day of the week",timeZoneName:"time zone",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.startDate} to ${e.endDate}`,selectedTimeDescription:e=>`Selected Time: ${e.time}`},"es-ES":{calendar:"Calendario",day:"día",dayPeriod:"a. m./p. m.",endDate:"Fecha final",era:"era",hour:"hora",minute:"minuto",month:"mes",second:"segundo",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Rango seleccionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora seleccionada: ${e.time}`,startDate:"Fecha de inicio",timeZoneName:"zona horaria",weekday:"día de la semana",year:"año"},"et-EE":{calendar:"Kalender",day:"päev",dayPeriod:"enne/pärast lõunat",endDate:"Lõppkuupäev",era:"ajastu",hour:"tund",minute:"minut",month:"kuu",second:"sekund",selectedDateDescription:e=>`Valitud kuupäev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.startDate} kuni ${e.endDate}`,selectedTimeDescription:e=>`Valitud aeg: ${e.time}`,startDate:"Alguskuupäev",timeZoneName:"ajavöönd",weekday:"nädalapäev",year:"aasta"},"fi-FI":{calendar:"Kalenteri",day:"päivä",dayPeriod:"vuorokaudenaika",endDate:"Päättymispäivä",era:"aikakausi",hour:"tunti",minute:"minuutti",month:"kuukausi",second:"sekunti",selectedDateDescription:e=>`Valittu päivämäärä: ${e.date}`,selectedRangeDescription:e=>`Valittu aikaväli: ${e.startDate} – ${e.endDate}`,selectedTimeDescription:e=>`Valittu aika: ${e.time}`,startDate:"Alkamispäivä",timeZoneName:"aikavyöhyke",weekday:"viikonpäivä",year:"vuosi"},"fr-FR":{calendar:"Calendrier",day:"jour",dayPeriod:"cadran",endDate:"Date de fin",era:"ère",hour:"heure",minute:"minute",month:"mois",second:"seconde",selectedDateDescription:e=>`Date sélectionnée : ${e.date}`,selectedRangeDescription:e=>`Plage sélectionnée : ${e.startDate} au ${e.endDate}`,selectedTimeDescription:e=>`Heure choisie : ${e.time}`,startDate:"Date de début",timeZoneName:"fuseau horaire",weekday:"jour de la semaine",year:"année"},"he-IL":{calendar:"לוח שנה",day:"יום",dayPeriod:"לפנה״צ/אחה״צ",endDate:"תאריך סיום",era:"תקופה",hour:"שעה",minute:"דקה",month:"חודש",second:"שנייה",selectedDateDescription:e=>`תאריך נבחר: ${e.date}`,selectedRangeDescription:e=>`טווח נבחר: ${e.startDate} עד ${e.endDate}`,selectedTimeDescription:e=>`זמן נבחר: ${e.time}`,startDate:"תאריך התחלה",timeZoneName:"אזור זמן",weekday:"יום בשבוע",year:"שנה"},"hr-HR":{calendar:"Kalendar",day:"dan",dayPeriod:"AM/PM",endDate:"Datum završetka",era:"era",hour:"sat",minute:"minuta",month:"mjesec",second:"sekunda",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Odabrano vrijeme: ${e.time}`,startDate:"Datum početka",timeZoneName:"vremenska zona",weekday:"dan u tjednu",year:"godina"},"hu-HU":{calendar:"Naptár",day:"nap",dayPeriod:"napszak",endDate:"Befejező dátum",era:"éra",hour:"óra",minute:"perc",month:"hónap",second:"másodperc",selectedDateDescription:e=>`Kijelölt dátum: ${e.date}`,selectedRangeDescription:e=>`Kijelölt tartomány: ${e.startDate}–${e.endDate}`,selectedTimeDescription:e=>`Kijelölt idő: ${e.time}`,startDate:"Kezdő dátum",timeZoneName:"időzóna",weekday:"hét napja",year:"év"},"it-IT":{calendar:"Calendario",day:"giorno",dayPeriod:"AM/PM",endDate:"Data finale",era:"era",hour:"ora",minute:"minuto",month:"mese",second:"secondo",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: da ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Ora selezionata: ${e.time}`,startDate:"Data iniziale",timeZoneName:"fuso orario",weekday:"giorno della settimana",year:"anno"},"ja-JP":{calendar:"カレンダー",day:"日",dayPeriod:"午前/午後",endDate:"終了日",era:"時代",hour:"時",minute:"分",month:"月",second:"秒",selectedDateDescription:e=>`選択した日付 : ${e.date}`,selectedRangeDescription:e=>`選択範囲 : ${e.startDate} から ${e.endDate}`,selectedTimeDescription:e=>`選択した時間 : ${e.time}`,startDate:"開始日",timeZoneName:"タイムゾーン",weekday:"曜日",year:"年"},"ko-KR":{calendar:"달력",day:"일",dayPeriod:"오전/오후",endDate:"종료일",era:"연호",hour:"시",minute:"분",month:"월",second:"초",selectedDateDescription:e=>`선택 일자: ${e.date}`,selectedRangeDescription:e=>`선택 범위: ${e.startDate} ~ ${e.endDate}`,selectedTimeDescription:e=>`선택 시간: ${e.time}`,startDate:"시작일",timeZoneName:"시간대",weekday:"요일",year:"년"},"lt-LT":{calendar:"Kalendorius",day:"diena",dayPeriod:"iki pietų / po pietų",endDate:"Pabaigos data",era:"era",hour:"valanda",minute:"minutė",month:"mėnuo",second:"sekundė",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: nuo ${e.startDate} iki ${e.endDate}`,selectedTimeDescription:e=>`Pasirinktas laikas: ${e.time}`,startDate:"Pradžios data",timeZoneName:"laiko juosta",weekday:"savaitės diena",year:"metai"},"lv-LV":{calendar:"Kalendārs",day:"diena",dayPeriod:"priekšpusdienā/pēcpusdienā",endDate:"Beigu datums",era:"ēra",hour:"stundas",minute:"minūtes",month:"mēnesis",second:"sekundes",selectedDateDescription:e=>`Atlasītais datums: ${e.date}`,selectedRangeDescription:e=>`Atlasītais diapazons: no ${e.startDate} līdz ${e.endDate}`,selectedTimeDescription:e=>`Atlasītais laiks: ${e.time}`,startDate:"Sākuma datums",timeZoneName:"laika josla",weekday:"nedēļas diena",year:"gads"},"nb-NO":{calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Sluttdato",era:"tidsalder",hour:"time",minute:"minutt",month:"måned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt område: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tid: ${e.time}`,startDate:"Startdato",timeZoneName:"tidssone",weekday:"ukedag",year:"år"},"nl-NL":{calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Einddatum",era:"tijdperk",hour:"uur",minute:"minuut",month:"maand",second:"seconde",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.startDate} tot ${e.endDate}`,selectedTimeDescription:e=>`Geselecteerde tijd: ${e.time}`,startDate:"Startdatum",timeZoneName:"tijdzone",weekday:"dag van de week",year:"jaar"},"pl-PL":{calendar:"Kalendarz",day:"dzień",dayPeriod:"rano / po południu / wieczorem",endDate:"Data końcowa",era:"era",hour:"godzina",minute:"minuta",month:"miesiąc",second:"sekunda",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Wybrany czas: ${e.time}`,startDate:"Data początkowa",timeZoneName:"strefa czasowa",weekday:"dzień tygodnia",year:"rok"},"pt-BR":{calendar:"Calendário",day:"dia",dayPeriod:"AM/PM",endDate:"Data final",era:"era",hour:"hora",minute:"minuto",month:"mês",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data inicial",timeZoneName:"fuso horário",weekday:"dia da semana",year:"ano"},"pt-PT":{calendar:"Calendário",day:"dia",dayPeriod:"am/pm",endDate:"Data de Término",era:"era",hour:"hora",minute:"minuto",month:"mês",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data de Início",timeZoneName:"fuso horário",weekday:"dia da semana",year:"ano"},"ro-RO":{calendar:"Calendar",day:"zi",dayPeriod:"a.m/p.m.",endDate:"Dată final",era:"eră",hour:"oră",minute:"minut",month:"lună",second:"secundă",selectedDateDescription:e=>`Dată selectată: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: de la ${e.startDate} până la ${e.endDate}`,selectedTimeDescription:e=>`Ora selectată: ${e.time}`,startDate:"Dată început",timeZoneName:"fus orar",weekday:"ziua din săptămână",year:"an"},"ru-RU":{calendar:"Календарь",day:"день",dayPeriod:"AM/PM",endDate:"Дата окончания",era:"эра",hour:"час",minute:"минута",month:"месяц",second:"секунда",selectedDateDescription:e=>`Выбранная дата: ${e.date}`,selectedRangeDescription:e=>`Выбранный диапазон: с ${e.startDate} по ${e.endDate}`,selectedTimeDescription:e=>`Выбранное время: ${e.time}`,startDate:"Дата начала",timeZoneName:"часовой пояс",weekday:"день недели",year:"год"},"sk-SK":{calendar:"Kalendár",day:"deň",dayPeriod:"AM/PM",endDate:"Dátum ukončenia",era:"letopočet",hour:"hodina",minute:"minúta",month:"mesiac",second:"sekunda",selectedDateDescription:e=>`Vybratý dátum: ${e.date}`,selectedRangeDescription:e=>`Vybratý rozsah: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Vybratý čas: ${e.time}`,startDate:"Dátum začatia",timeZoneName:"časové pásmo",weekday:"deň týždňa",year:"rok"},"sl-SI":{calendar:"Koledar",day:"dan",dayPeriod:"dop/pop",endDate:"Datum konca",era:"doba",hour:"ura",minute:"minuta",month:"mesec",second:"sekunda",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano območje: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izbrani čas: ${e.time}`,startDate:"Datum začetka",timeZoneName:"časovni pas",weekday:"dan v tednu",year:"leto"},"sr-SP":{calendar:"Kalendar",day:"дан",dayPeriod:"пре подне/по подне",endDate:"Datum završetka",era:"ера",hour:"сат",minute:"минут",month:"месец",second:"секунд",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani opseg: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izabrano vreme: ${e.time}`,startDate:"Datum početka",timeZoneName:"временска зона",weekday:"дан у недељи",year:"година"},"sv-SE":{calendar:"Kalender",day:"dag",dayPeriod:"fm/em",endDate:"Slutdatum",era:"era",hour:"timme",minute:"minut",month:"månad",second:"sekund",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.startDate} till ${e.endDate}`,selectedTimeDescription:e=>`Vald tid: ${e.time}`,startDate:"Startdatum",timeZoneName:"tidszon",weekday:"veckodag",year:"år"},"tr-TR":{calendar:"Takvim",day:"gün",dayPeriod:"ÖÖ/ÖS",endDate:"Bitiş Tarihi",era:"çağ",hour:"saat",minute:"dakika",month:"ay",second:"saniye",selectedDateDescription:e=>`Seçilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Seçilen Aralık: ${e.startDate} - ${e.endDate}`,selectedTimeDescription:e=>`Seçilen Zaman: ${e.time}`,startDate:"Başlangıç Tarihi",timeZoneName:"saat dilimi",weekday:"haftanın günü",year:"yıl"},"uk-UA":{calendar:"Календар",day:"день",dayPeriod:"дп/пп",endDate:"Дата завершення",era:"ера",hour:"година",minute:"хвилина",month:"місяць",second:"секунда",selectedDateDescription:e=>`Вибрана дата: ${e.date}`,selectedRangeDescription:e=>`Вибраний діапазон: ${e.startDate} — ${e.endDate}`,selectedTimeDescription:e=>`Вибраний час: ${e.time}`,startDate:"Дата початку",timeZoneName:"часовий пояс",weekday:"день тижня",year:"рік"},"zh-CN":{calendar:"日历",day:"日",dayPeriod:"上午/下午",endDate:"结束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`选定的日期:${e.date}`,selectedRangeDescription:e=>`选定的范围:${e.startDate} 至 ${e.endDate}`,selectedTimeDescription:e=>`选定的时间:${e.time}`,startDate:"开始日期",timeZoneName:"时区",weekday:"工作日",year:"年"},"zh-TW":{calendar:"日曆",day:"日",dayPeriod:"上午/下午",endDate:"結束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`選定的日期:${e.date}`,selectedRangeDescription:e=>`選定的範圍:${e.startDate} 至 ${e.endDate}`,selectedTimeDescription:e=>`選定的時間:${e.time}`,startDate:"開始日期",timeZoneName:"时区",weekday:"工作日",year:"年"}};const tn="undefined"!=typeof document?t.useLayoutEffect:()=>{};function nn(e){const n=t.useRef(null);return tn((()=>{n.current=e}),[e]),t.useCallback(((...e)=>{const t=n.current;return null==t?void 0:t(...e)}),[])}const rn={prefix:String(Math.round(1e10*Math.random())),current:0},an=t.createContext(rn),on=t.createContext(!1);Boolean("undefined"!=typeof window&&window.document&&window.document.createElement);let sn=new WeakMap;const ln="function"==typeof t.useId?function(e){let n=t.useId(),[r]=t.useState(pn()),i=r||"test"===process.env.NODE_ENV?"react-aria":`react-aria${rn.prefix}`;return e||`${i}-${n}`}:function(e){let n=t.useContext(an),r=function(e=!1){let n=t.useContext(an),r=t.useRef(null);if(null===r.current&&!e){var i,a;let e=null===(a=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)||void 0===a||null===(i=a.ReactCurrentOwner)||void 0===i?void 0:i.current;if(e){let t=sn.get(e);null==t?sn.set(e,{id:n.current,state:e.memoizedState}):e.memoizedState!==t.state&&(n.current=t.id,sn.delete(e))}r.current=++n.current}return r.current}(!!e),i=n===rn&&"test"===process.env.NODE_ENV?"react-aria":`react-aria${n.prefix}`;return e||`${i}-${r}`};function un(){return!1}function cn(){return!0}function dn(e){return()=>{}}function pn(){return"function"==typeof t.useSyncExternalStore?t.useSyncExternalStore(dn,un,cn):t.useContext(on)}let hn=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),fn=new Map;function mn(e){let[n,r]=t.useState(e),i=t.useRef(null),a=ln(n),o=t.useCallback((e=>{i.current=e}),[]);return hn&&(fn.has(a)&&!fn.get(a).includes(o)?fn.set(a,[...fn.get(a),o]):fn.set(a,[o])),tn((()=>{let e=a;return()=>{fn.delete(e)}}),[a]),t.useEffect((()=>{let e=i.current;e&&(i.current=null,r(e))})),a}function gn(e,t){if(e===t)return e;let n=fn.get(e);if(n)return n.forEach((e=>e(t))),t;let r=fn.get(t);return r?(r.forEach((t=>t(e))),e):t}function yn(e=[]){let n=mn(),[r,i]=function(e){let[n,r]=t.useState(e),i=t.useRef(null),a=nn((()=>{if(!i.current)return;let e=i.current.next();e.done?i.current=null:n===e.value?a():r(e.value)}));tn((()=>{i.current&&a()}));let o=nn((e=>{i.current=e(n),a()}));return[n,o]}(n),a=t.useCallback((()=>{i((function*(){yield n,yield document.getElementById(n)?n:void 0}))}),[n,i]);return tn(a,[n,a,...e]),r}function vn(...e){return(...t)=>{for(let n of e)"function"==typeof n&&n(...t)}}const bn=e=>{var t;return null!==(t=null==e?void 0:e.ownerDocument)&&void 0!==t?t:document},xn=e=>e&&"window"in e&&e.window===e?e:bn(e).defaultView||window;function wn(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=wn(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function En(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=wn(e))&&(r&&(r+=" "),r+=t);return r}function kn(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let e in r){let n=t[e],i=r[e];"function"==typeof n&&"function"==typeof i&&"o"===e[0]&&"n"===e[1]&&e.charCodeAt(2)>=65&&e.charCodeAt(2)<=90?t[e]=vn(n,i):"className"!==e&&"UNSAFE_className"!==e||"string"!=typeof n||"string"!=typeof i?"id"===e&&n&&i?t.id=gn(n,i):t[e]=void 0!==i?i:n:t[e]=En(n,i)}}return t}const Sn=new Set(["id"]),Dn=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),jn=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),Cn=/^(data-.*)$/;function Rn(e,t={}){let{labelable:n,isLink:r,propNames:i}=t,a={};for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(Sn.has(o)||n&&Dn.has(o)||r&&jn.has(o)||(null==i?void 0:i.has(o))||Cn.test(o))&&(a[o]=e[o]);return a}function Pn(e){if(function(){if(null==$n){$n=!1;try{document.createElement("div").focus({get preventScroll(){return $n=!0,!0}})}catch{}}return $n}())e.focus({preventScroll:!0});else{let t=function(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}(e);e.focus(),function(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}(t)}}let $n=null;function Tn(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.brands.some((t=>e.test(t.brand))))||e.test(window.navigator.userAgent))}function _n(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function Mn(e){let t=null;return()=>(null==t&&(t=e()),t)}const An=Mn((function(){return _n(/^Mac/i)})),In=Mn((function(){return _n(/^iPhone/i)})),On=Mn((function(){return _n(/^iPad/i)||An()&&navigator.maxTouchPoints>1})),Fn=Mn((function(){return In()||On()})),Ln=Mn((function(){return Tn(/AppleWebKit/i)&&!Vn()})),Vn=Mn((function(){return Tn(/Chrome/i)})),Nn=Mn((function(){return Tn(/Android/i)})),zn=Mn((function(){return Tn(/Firefox/i)}));function Bn(e,t,n=!0){var r,i;let{metaKey:a,ctrlKey:o,altKey:s,shiftKey:l}=t;zn()&&(null===(i=window.event)||void 0===i||null===(r=i.type)||void 0===r?void 0:r.startsWith("key"))&&"_blank"===e.target&&(An()?a=!0:o=!0);let u=Ln()&&An()&&!On()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:a,ctrlKey:o,altKey:s,shiftKey:l}):new MouseEvent("click",{metaKey:a,ctrlKey:o,altKey:s,shiftKey:l,bubbles:!0,cancelable:!0});Bn.isOpening=n,Pn(e),e.dispatchEvent(u),Bn.isOpening=!1}Bn.isOpening=!1;let Un=new Map,Wn=new Set;function qn(){if("undefined"==typeof window)return;function e(e){return"propertyName"in e}let t=n=>{if(!e(n)||!n.target)return;let r=Un.get(n.target);if(r&&(r.delete(n.propertyName),0===r.size&&(n.target.removeEventListener("transitioncancel",t),Un.delete(n.target)),0===Un.size)){for(let e of Wn)e();Wn.clear()}};document.body.addEventListener("transitionrun",(n=>{if(!e(n)||!n.target)return;let r=Un.get(n.target);r||(r=new Set,Un.set(n.target,r),n.target.addEventListener("transitioncancel",t,{once:!0})),r.add(n.propertyName)})),document.body.addEventListener("transitionend",t)}function Kn(e){requestAnimationFrame((()=>{0===Un.size?e():Wn.add(e)}))}function Hn(){let e=t.useRef(new Map),n=t.useCallback(((t,n,r,i)=>{let a=(null==i?void 0:i.once)?(...t)=>{e.current.delete(r),r(...t)}:r;e.current.set(r,{type:n,eventTarget:t,fn:a,options:i}),t.addEventListener(n,r,i)}),[]),r=t.useCallback(((t,n,r,i)=>{var a;let o=(null===(a=e.current.get(r))||void 0===a?void 0:a.fn)||r;t.removeEventListener(n,o,i),e.current.delete(r)}),[]),i=t.useCallback((()=>{e.current.forEach(((e,t)=>{r(e.eventTarget,e.type,t,e.options)}))}),[r]);return t.useEffect((()=>i),[i]),{addGlobalListener:n,removeGlobalListener:r,removeAllGlobalListeners:i}}function Zn(e,t){let{id:n,"aria-label":r,"aria-labelledby":i}=e;if(n=mn(n),i&&r){let e=new Set([n,...i.trim().split(/\s+/)]);i=[...e].join(" ")}else i&&(i=i.trim().split(/\s+/).join(" "));return r||i||!t||(r=t),{id:n,"aria-label":r,"aria-labelledby":i}}function Gn(e,n){const r=t.useRef(!0),i=t.useRef(null);t.useEffect((()=>(r.current=!0,()=>{r.current=!1})),[]),t.useEffect((()=>{r.current?r.current=!1:i.current&&!n.some(((e,t)=>!Object.is(e,i[t])))||e(),i.current=n}),n)}function Yn(e){const{ref:n,box:r,onResize:i}=e;t.useEffect((()=>{let e=null==n?void 0:n.current;if(e){if(void 0===window.ResizeObserver)return window.addEventListener("resize",i,!1),()=>{window.removeEventListener("resize",i,!1)};{const t=new window.ResizeObserver((e=>{e.length&&i()}));return t.observe(e,{box:r}),()=>{e&&t.unobserve(e)}}}}),[i,n,r])}function Jn(e,t){tn((()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}}))}function Xn(e,t){if(!e)return!1;let n=window.getComputedStyle(e),r=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return r&&t&&(r=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),r}function Qn(e,t){let n=e;for(Xn(n,t)&&(n=n.parentElement);n&&!Xn(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}"undefined"!=typeof document&&("loading"!==document.readyState?qn():document.addEventListener("DOMContentLoaded",qn));let er=0;const tr=new Map;function nr(e){let[n,r]=t.useState();return tn((()=>{if(!e)return;let t=tr.get(e);if(t)r(t.element.id);else{let n="react-aria-description-"+er++;r(n);let i=document.createElement("div");i.id=n,i.style.display="none",i.textContent=e,document.body.appendChild(i),t={refCount:0,element:i},tr.set(e,t)}return t.refCount++,()=>{t&&0==--t.refCount&&(t.element.remove(),tr.delete(e))}}),[e]),{"aria-describedby":e?n:void 0}}function rr(e,n,r,i){let a=nn(r),o=null==r;t.useEffect((()=>{if(o||!e.current)return;let t=e.current;return t.addEventListener(n,a,i),()=>{t.removeEventListener(n,a,i)}}),[e,n,i,o,a])}function ir(e,t){let n=ar(e,t,"left"),r=ar(e,t,"top"),i=t.offsetWidth,a=t.offsetHeight,o=e.scrollLeft,s=e.scrollTop,{borderTopWidth:l,borderLeftWidth:u}=getComputedStyle(e),c=e.scrollLeft+parseInt(u,10),d=e.scrollTop+parseInt(l,10),p=c+e.clientWidth,h=d+e.clientHeight;n<=o?o=n-parseInt(u,10):n+i>p&&(o+=n+i-p),r<=d?s=r-parseInt(l,10):r+a>h&&(s+=r+a-h),e.scrollLeft=o,e.scrollTop=s}function ar(e,t,n){const r="left"===n?"offsetLeft":"offsetTop";let i=0;for(;t.offsetParent&&(i+=t[r],t.offsetParent!==e);){if(t.offsetParent.contains(e)){i-=e[r];break}t=t.offsetParent}return i}function or(e,t){if(e&&document.contains(e)){let o=document.scrollingElement||document.documentElement;if("hidden"===window.getComputedStyle(o).overflow){let t=function(e){const t=[];for(;e&&e!==document.documentElement;)Xn(e,undefined)&&t.push(e),e=e.parentElement;return t}(e);for(let n of t)ir(n,e)}else{var n;let{left:o,top:s}=e.getBoundingClientRect();null==e||null===(n=e.scrollIntoView)||void 0===n||n.call(e,{block:"nearest"});let{left:l,top:u}=e.getBoundingClientRect();var r,i,a;(Math.abs(o-l)>1||Math.abs(s-u)>1)&&(null==t||null===(i=t.containingElement)||void 0===i||null===(r=i.scrollIntoView)||void 0===r||r.call(i,{block:"center",inline:"center"}),null===(a=e.scrollIntoView)||void 0===a||a.call(e,{block:"nearest"}))}}}function sr(e){return!(0!==e.mozInputSource||!e.isTrusted)||(Nn()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function lr(e,n){let r=t.useRef(null);return e&&r.current&&n(e,r.current)&&(e=r.current),r.current=e,e}function ur(e,n,r){let i=t.useRef(n),a=nn((()=>{r&&r(i.current)}));t.useEffect((()=>{var t;let n=null==e||null===(t=e.current)||void 0===t?void 0:t.form;return null==n||n.addEventListener("reset",a),()=>{null==n||n.removeEventListener("reset",a)}}),[e,a])}function cr(e,n,r){let[i,a]=t.useState(e||n),o=t.useRef(void 0!==e),s=void 0!==e;t.useEffect((()=>{o.current;o.current=s}),[s]);let l=s?e:i,u=t.useCallback(((e,...t)=>{let n=(e,...t)=>{r&&(Object.is(l,e)||r(e,...t)),s||(l=e)};"function"==typeof e?a(((r,...i)=>{let a=e(s?l:r,...i);return n(a,...t),s?r:a})):(s||a(e),n(e,...t))}),[s,l,r]);return[l,u]}function dr(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}function pr(e,t){let n=e,r=t.toString(),i=r.indexOf("."),a=i>=0?r.length-i:0;if(a>0){let e=Math.pow(10,a);n=Math.round(n*e)/e}return n}function hr(e,t,n,r){t=Number(t),n=Number(n);let i=(e-(isNaN(t)?0:t))%r,a=pr(2*Math.abs(i)>=r?e+Math.sign(i)*(r-Math.abs(i)):e-i,r);return isNaN(t)?!isNaN(n)&&a>n&&(a=Math.floor(pr(n/r,r))*r):a<t?a=t:!isNaN(n)&&a>n&&(a=t+Math.floor(pr((n-t)/r,r))*r),a=pr(a,r),a}let fr="default",mr="",gr=new WeakMap;function yr(e){if(Fn()){if("default"===fr){const t=bn(e);mr=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}fr="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(gr.set(e,e.style.userSelect),e.style.userSelect="none")}function vr(e){if(Fn()){if("disabled"!==fr)return;fr="restoring",setTimeout((()=>{Kn((()=>{if("restoring"===fr){const t=bn(e);"none"===t.documentElement.style.webkitUserSelect&&(t.documentElement.style.webkitUserSelect=mr||""),mr="",fr="default"}}))}),300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&gr.has(e)){let t=gr.get(e);"none"===e.style.userSelect&&(e.style.userSelect=t),""===e.getAttribute("style")&&e.removeAttribute("style"),gr.delete(e)}}const br=t.createContext({register:()=>{}});function xr(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function wr(e,t,n){return function(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}(e,xr(e,t,"set"),n),n}br.displayName="PressResponderContext";var Er=new WeakMap;class kr{continuePropagation(){wr(this,Er,!1)}get shouldStopPropagation(){return e=this,(t=xr(this,Er,"get")).get?t.get.call(e):t.value;var e,t}constructor(e,t,n,r){var i;Ne(this,Er,{writable:!0,value:void 0}),wr(this,Er,!0);let a=null!==(i=null==r?void 0:r.target)&&void 0!==i?i:n.currentTarget;const o=null==a?void 0:a.getBoundingClientRect();let s,l,u=0,c=null;null!=n.clientX&&null!=n.clientY&&(l=n.clientX,c=n.clientY),o&&(null!=l&&null!=c?(s=l-o.left,u=c-o.top):(s=o.width/2,u=o.height/2)),this.type=e,this.pointerType=t,this.target=n.currentTarget,this.shiftKey=n.shiftKey,this.metaKey=n.metaKey,this.ctrlKey=n.ctrlKey,this.altKey=n.altKey,this.x=s,this.y=u}}const Sr=Symbol("linkClicked");function Dr(e){let{onPress:n,onPressChange:r,onPressStart:i,onPressEnd:a,onPressUp:o,isDisabled:s,isPressed:l,preventFocusOnPress:u,shouldCancelOnPointerExit:c,allowTextSelectionOnPress:d,ref:p,...h}=function(e){let n=t.useContext(br);if(n){let{register:t,...r}=n;e=kn(r,e),t()}return Jn(n,e.ref),e}(e),[f,m]=t.useState(!1),g=t.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:y,removeAllGlobalListeners:v}=Hn(),b=nn(((e,t)=>{let n=g.current;if(s||n.didFirePressStart)return!1;let a=!0;if(n.isTriggeringEvent=!0,i){let n=new kr("pressstart",t,e);i(n),a=n.shouldStopPropagation}return r&&r(!0),n.isTriggeringEvent=!1,n.didFirePressStart=!0,m(!0),a})),x=nn(((e,t,i=!0)=>{let o=g.current;if(!o.didFirePressStart)return!1;o.ignoreClickAfterPress=!0,o.didFirePressStart=!1,o.isTriggeringEvent=!0;let l=!0;if(a){let n=new kr("pressend",t,e);a(n),l=n.shouldStopPropagation}if(r&&r(!1),m(!1),n&&i&&!s){let r=new kr("press",t,e);n(r),l&&(l=r.shouldStopPropagation)}return o.isTriggeringEvent=!1,l})),w=nn(((e,t)=>{let n=g.current;if(s)return!1;if(o){n.isTriggeringEvent=!0;let r=new kr("pressup",t,e);return o(r),n.isTriggeringEvent=!1,r.shouldStopPropagation}return!0})),E=nn((e=>{let t=g.current;t.isPressed&&t.target&&(t.isOverTarget&&null!=t.pointerType&&x($r(t.target,e),t.pointerType,!1),t.isPressed=!1,t.isOverTarget=!1,t.activePointerId=null,t.pointerType=null,v(),d||vr(t.target))})),k=nn((e=>{c&&E(e)})),S=t.useMemo((()=>{let e=g.current,t={onKeyDown(t){if(Cr(t.nativeEvent,t.currentTarget)&&t.currentTarget.contains(t.target)){var r;Ar(t.target,t.key)&&t.preventDefault();let i=!0;if(!e.isPressed&&!t.repeat){e.target=t.currentTarget,e.isPressed=!0,i=b(t,"keyboard");let r=t.currentTarget,a=t=>{Cr(t,r)&&!t.repeat&&r.contains(t.target)&&e.target&&w($r(e.target,t),"keyboard")};y(bn(t.currentTarget),"keyup",vn(a,n),!0)}i&&t.stopPropagation(),t.metaKey&&An()&&(null===(r=e.metaKeyEvents)||void 0===r||r.set(t.key,t.nativeEvent))}else"Meta"===t.key&&(e.metaKeyEvents=new Map)},onClick(t){if((!t||t.currentTarget.contains(t.target))&&t&&0===t.button&&!e.isTriggeringEvent&&!Bn.isOpening){let n=!0;if(s&&t.preventDefault(),!e.ignoreClickAfterPress&&!e.ignoreEmulatedMouseEvents&&!e.isPressed&&("virtual"===e.pointerType||sr(t.nativeEvent))){s||u||Pn(t.currentTarget);let e=b(t,"virtual"),r=w(t,"virtual"),i=x(t,"virtual");n=e&&r&&i}e.ignoreEmulatedMouseEvents=!1,e.ignoreClickAfterPress=!1,n&&t.stopPropagation()}}},n=t=>{var n;if(e.isPressed&&e.target&&Cr(t,e.target)){var r;Ar(t.target,t.key)&&t.preventDefault();let n=t.target;x($r(e.target,t),"keyboard",e.target.contains(n)),v(),"Enter"!==t.key&&jr(e.target)&&e.target.contains(n)&&!t[Sr]&&(t[Sr]=!0,Bn(e.target,t,!1)),e.isPressed=!1,null===(r=e.metaKeyEvents)||void 0===r||r.delete(t.key)}else if("Meta"===t.key&&(null===(n=e.metaKeyEvents)||void 0===n?void 0:n.size)){var i;let t=e.metaKeyEvents;e.metaKeyEvents=void 0;for(let n of t.values())null===(i=e.target)||void 0===i||i.dispatchEvent(new KeyboardEvent("keyup",n))}};if("undefined"!=typeof PointerEvent){t.onPointerDown=t=>{if(0!==t.button||!t.currentTarget.contains(t.target))return;if(i=t.nativeEvent,!Nn()&&0===i.width&&0===i.height||1===i.width&&1===i.height&&0===i.pressure&&0===i.detail&&"mouse"===i.pointerType)return void(e.pointerType="virtual");var i;_r(t.currentTarget)&&t.preventDefault(),e.pointerType=t.pointerType;let o=!0;e.isPressed||(e.isPressed=!0,e.isOverTarget=!0,e.activePointerId=t.pointerId,e.target=t.currentTarget,s||u||Pn(t.currentTarget),d||yr(e.target),o=b(t,e.pointerType),y(bn(t.currentTarget),"pointermove",n,!1),y(bn(t.currentTarget),"pointerup",r,!1),y(bn(t.currentTarget),"pointercancel",a,!1)),o&&t.stopPropagation()},t.onMouseDown=e=>{e.currentTarget.contains(e.target)&&0===e.button&&(_r(e.currentTarget)&&e.preventDefault(),e.stopPropagation())},t.onPointerUp=t=>{t.currentTarget.contains(t.target)&&"virtual"!==e.pointerType&&0===t.button&&Tr(t,t.currentTarget)&&w(t,e.pointerType||t.pointerType)};let n=t=>{t.pointerId===e.activePointerId&&(e.target&&Tr(t,e.target)?e.isOverTarget||null==e.pointerType||(e.isOverTarget=!0,b($r(e.target,t),e.pointerType)):e.target&&e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!1,x($r(e.target,t),e.pointerType,!1),k(t)))},r=t=>{t.pointerId===e.activePointerId&&e.isPressed&&0===t.button&&e.target&&(Tr(t,e.target)&&null!=e.pointerType?x($r(e.target,t),e.pointerType):e.isOverTarget&&null!=e.pointerType&&x($r(e.target,t),e.pointerType,!1),e.isPressed=!1,e.isOverTarget=!1,e.activePointerId=null,e.pointerType=null,v(),d||vr(e.target),"ontouchend"in e.target&&"mouse"!==t.pointerType&&y(e.target,"touchend",i,{once:!0}))},i=e=>{Mr(e.currentTarget)&&e.preventDefault()},a=e=>{E(e)};t.onDragStart=e=>{e.currentTarget.contains(e.target)&&E(e)}}else{t.onMouseDown=t=>{0===t.button&&t.currentTarget.contains(t.target)&&(_r(t.currentTarget)&&t.preventDefault(),e.ignoreEmulatedMouseEvents?t.stopPropagation():(e.isPressed=!0,e.isOverTarget=!0,e.target=t.currentTarget,e.pointerType=sr(t.nativeEvent)?"virtual":"mouse",s||u||Pn(t.currentTarget),b(t,e.pointerType)&&t.stopPropagation(),y(bn(t.currentTarget),"mouseup",n,!1)))},t.onMouseEnter=t=>{if(!t.currentTarget.contains(t.target))return;let n=!0;e.isPressed&&!e.ignoreEmulatedMouseEvents&&null!=e.pointerType&&(e.isOverTarget=!0,n=b(t,e.pointerType)),n&&t.stopPropagation()},t.onMouseLeave=t=>{if(!t.currentTarget.contains(t.target))return;let n=!0;e.isPressed&&!e.ignoreEmulatedMouseEvents&&null!=e.pointerType&&(e.isOverTarget=!1,n=x(t,e.pointerType,!1),k(t)),n&&t.stopPropagation()},t.onMouseUp=t=>{t.currentTarget.contains(t.target)&&(e.ignoreEmulatedMouseEvents||0!==t.button||w(t,e.pointerType||"mouse"))};let n=t=>{0===t.button&&(e.isPressed=!1,v(),e.ignoreEmulatedMouseEvents?e.ignoreEmulatedMouseEvents=!1:(e.target&&Tr(t,e.target)&&null!=e.pointerType?x($r(e.target,t),e.pointerType):e.target&&e.isOverTarget&&null!=e.pointerType&&x($r(e.target,t),e.pointerType,!1),e.isOverTarget=!1))};t.onTouchStart=t=>{if(!t.currentTarget.contains(t.target))return;let n=function(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}(t.nativeEvent);n&&(e.activePointerId=n.identifier,e.ignoreEmulatedMouseEvents=!0,e.isOverTarget=!0,e.isPressed=!0,e.target=t.currentTarget,e.pointerType="touch",s||u||Pn(t.currentTarget),d||yr(e.target),b(Pr(e.target,t),e.pointerType)&&t.stopPropagation(),y(xn(t.currentTarget),"scroll",r,!0))},t.onTouchMove=t=>{if(!t.currentTarget.contains(t.target))return;if(!e.isPressed)return void t.stopPropagation();let n=Rr(t.nativeEvent,e.activePointerId),r=!0;n&&Tr(n,t.currentTarget)?e.isOverTarget||null==e.pointerType||(e.isOverTarget=!0,r=b(Pr(e.target,t),e.pointerType)):e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!1,r=x(Pr(e.target,t),e.pointerType,!1),k(Pr(e.target,t))),r&&t.stopPropagation()},t.onTouchEnd=t=>{if(!t.currentTarget.contains(t.target))return;if(!e.isPressed)return void t.stopPropagation();let n=Rr(t.nativeEvent,e.activePointerId),r=!0;n&&Tr(n,t.currentTarget)&&null!=e.pointerType?(w(Pr(e.target,t),e.pointerType),r=x(Pr(e.target,t),e.pointerType)):e.isOverTarget&&null!=e.pointerType&&(r=x(Pr(e.target,t),e.pointerType,!1)),r&&t.stopPropagation(),e.isPressed=!1,e.activePointerId=null,e.isOverTarget=!1,e.ignoreEmulatedMouseEvents=!0,e.target&&!d&&vr(e.target),v()},t.onTouchCancel=t=>{t.currentTarget.contains(t.target)&&(t.stopPropagation(),e.isPressed&&E(Pr(e.target,t)))};let r=t=>{e.isPressed&&t.target.contains(e.target)&&E({currentTarget:e.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};t.onDragStart=e=>{e.currentTarget.contains(e.target)&&E(e)}}return t}),[y,s,u,v,d,E,k,x,b,w]);return t.useEffect((()=>()=>{var e;d||vr(null!==(e=g.current.target)&&void 0!==e?e:void 0)}),[d]),{isPressed:l||f,pressProps:kn(h,S)}}function jr(e){return"A"===e.tagName&&e.hasAttribute("href")}function Cr(e,t){const{key:n,code:r}=e,i=t,a=i.getAttribute("role");return!("Enter"!==n&&" "!==n&&"Spacebar"!==n&&"Space"!==r||i instanceof xn(i).HTMLInputElement&&!Or(i,n)||i instanceof xn(i).HTMLTextAreaElement||i.isContentEditable||("link"===a||!a&&jr(i))&&"Enter"!==n)}function Rr(e,t){const n=e.changedTouches;for(let r=0;r<n.length;r++){const e=n[r];if(e.identifier===t)return e}return null}function Pr(e,t){let n=0,r=0;return t.targetTouches&&1===t.targetTouches.length&&(n=t.targetTouches[0].clientX,r=t.targetTouches[0].clientY),{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r}}function $r(e,t){let n=t.clientX,r=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r}}function Tr(e,t){let n=t.getBoundingClientRect();return i=function(e){let t=0,n=0;return void 0!==e.width?t=e.width/2:void 0!==e.radiusX&&(t=e.radiusX),void 0!==e.height?n=e.height/2:void 0!==e.radiusY&&(n=e.radiusY),{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}(e),!((r=n).left>i.right||i.left>r.right||r.top>i.bottom||i.top>r.bottom);var r,i}function _r(e){return!(e instanceof HTMLElement&&e.hasAttribute("draggable"))}function Mr(e){return!(e instanceof HTMLInputElement||(e instanceof HTMLButtonElement?"submit"===e.type||"reset"===e.type:jr(e)))}function Ar(e,t){return e instanceof HTMLInputElement?!Or(e,t):Mr(e)}const Ir=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Or(e,t){return"checkbox"===e.type||"radio"===e.type?" "===t:Ir.has(e.type)}function Fr({children:e}){let n=t.useMemo((()=>({register:()=>{}})),[]);return t.createElement(br.Provider,{value:n},e)}class Lr{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(e,t){this.nativeEvent=t,this.target=t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget,this.bubbles=t.bubbles,this.cancelable=t.cancelable,this.defaultPrevented=t.defaultPrevented,this.eventPhase=t.eventPhase,this.isTrusted=t.isTrusted,this.timeStamp=t.timeStamp,this.type=e}}function Vr(e){let n=t.useRef({isFocused:!1,observer:null});tn((()=>{const e=n.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}}),[]);let r=nn((t=>{null==e||e(t)}));return t.useCallback((e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){n.current.isFocused=!0;let t=e.target,i=e=>{n.current.isFocused=!1,t.disabled&&r(new Lr("blur",e)),n.current.observer&&(n.current.observer.disconnect(),n.current.observer=null)};t.addEventListener("focusout",i,{once:!0}),n.current.observer=new MutationObserver((()=>{if(n.current.isFocused&&t.disabled){var e;null===(e=n.current.observer)||void 0===e||e.disconnect();let r=t===document.activeElement?null:document.activeElement;t.dispatchEvent(new FocusEvent("blur",{relatedTarget:r})),t.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:r}))}})),n.current.observer.observe(t,{attributes:!0,attributeFilter:["disabled"]})}}),[r])}let Nr=null,zr=new Set,Br=new Map,Ur=!1,Wr=!1;function qr(e,t){for(let n of zr)n(e,t)}function Kr(e){var t;Ur=!0,!((t=e).metaKey||!An()&&t.altKey||t.ctrlKey||"Control"===t.key||"Shift"===t.key||"Meta"===t.key)&&(Nr="keyboard",qr("keyboard",e))}function Hr(e){Nr="pointer","mousedown"!==e.type&&"pointerdown"!==e.type||(Ur=!0,qr("pointer",e))}function Zr(e){sr(e)&&(Ur=!0,Nr="virtual")}function Gr(e){e.target!==window&&e.target!==document&&(Ur||Wr||(Nr="virtual",qr("virtual",e)),Ur=!1,Wr=!1)}function Yr(){Ur=!1,Wr=!0}function Jr(e){if("undefined"==typeof window||Br.get(xn(e)))return;const t=xn(e),n=bn(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){Ur=!0,r.apply(this,arguments)},n.addEventListener("keydown",Kr,!0),n.addEventListener("keyup",Kr,!0),n.addEventListener("click",Zr,!0),t.addEventListener("focus",Gr,!0),t.addEventListener("blur",Yr,!1),"undefined"!=typeof PointerEvent?(n.addEventListener("pointerdown",Hr,!0),n.addEventListener("pointermove",Hr,!0),n.addEventListener("pointerup",Hr,!0)):(n.addEventListener("mousedown",Hr,!0),n.addEventListener("mousemove",Hr,!0),n.addEventListener("mouseup",Hr,!0)),t.addEventListener("beforeunload",(()=>{Xr(e)}),{once:!0}),Br.set(t,{focus:r})}const Xr=(e,t)=>{const n=xn(e),r=bn(e);t&&r.removeEventListener("DOMContentLoaded",t),Br.has(n)&&(n.HTMLElement.prototype.focus=Br.get(n).focus,r.removeEventListener("keydown",Kr,!0),r.removeEventListener("keyup",Kr,!0),r.removeEventListener("click",Zr,!0),n.removeEventListener("focus",Gr,!0),n.removeEventListener("blur",Yr,!1),"undefined"!=typeof PointerEvent?(r.removeEventListener("pointerdown",Hr,!0),r.removeEventListener("pointermove",Hr,!0),r.removeEventListener("pointerup",Hr,!0)):(r.removeEventListener("mousedown",Hr,!0),r.removeEventListener("mousemove",Hr,!0),r.removeEventListener("mouseup",Hr,!0)),Br.delete(n))};function Qr(){return Nr}function ei(e){Nr=e,qr(e,null)}function ti(e){let{isDisabled:n,onBlurWithin:r,onFocusWithin:i,onFocusWithinChange:a}=e,o=t.useRef({isFocusWithin:!1}),s=t.useCallback((e=>{o.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(o.current.isFocusWithin=!1,r&&r(e),a&&a(!1))}),[r,a,o]),l=Vr(s),u=t.useCallback((e=>{o.current.isFocusWithin||document.activeElement!==e.target||(i&&i(e),a&&a(!0),o.current.isFocusWithin=!0,l(e))}),[i,a,l]);return n?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:u,onBlur:s}}}function ni(e,t){if(e.button>0)return!1;if(e.target){const t=e.target.ownerDocument;if(!t||!t.documentElement.contains(e.target))return!1;if(e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current&&!t.current.contains(e.target)}function ri(e){if(!e)return;let t=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented:()=>n.isDefaultPrevented(),stopPropagation(){},continuePropagation(){t=!1}};e(r),t&&n.stopPropagation()}}function ii(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:ri(e.onKeyDown),onKeyUp:ri(e.onKeyUp)}}}function ai(e){let{onMoveStart:n,onMove:r,onMoveEnd:i}=e,a=t.useRef({didMove:!1,lastPosition:null,id:null}),{addGlobalListener:o,removeGlobalListener:s}=Hn(),l=nn(((e,t,i,o)=>{0===i&&0===o||(a.current.didMove||(a.current.didMove=!0,null==n||n({type:"movestart",pointerType:t,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey})),null==r||r({type:"move",pointerType:t,deltaX:i,deltaY:o,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey}))})),u=nn(((e,t)=>{vr(),a.current.didMove&&(null==i||i({type:"moveend",pointerType:t,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey}))}));return{moveProps:t.useMemo((()=>{let e={},t=()=>{yr(),a.current.didMove=!1};if("undefined"==typeof PointerEvent){let n=e=>{var t,n,r,i;0===e.button&&(l(e,"mouse",e.pageX-(null!==(r=null===(t=a.current.lastPosition)||void 0===t?void 0:t.pageX)&&void 0!==r?r:0),e.pageY-(null!==(i=null===(n=a.current.lastPosition)||void 0===n?void 0:n.pageY)&&void 0!==i?i:0)),a.current.lastPosition={pageX:e.pageX,pageY:e.pageY})},r=e=>{0===e.button&&(u(e,"mouse"),s(window,"mousemove",n,!1),s(window,"mouseup",r,!1))};e.onMouseDown=e=>{0===e.button&&(t(),e.stopPropagation(),e.preventDefault(),a.current.lastPosition={pageX:e.pageX,pageY:e.pageY},o(window,"mousemove",n,!1),o(window,"mouseup",r,!1))};let i=e=>{let t=[...e.changedTouches].findIndex((({identifier:e})=>e===a.current.id));if(t>=0){var n,r;let{pageX:s,pageY:u}=e.changedTouches[t];var i,o;l(e,"touch",s-(null!==(i=null===(n=a.current.lastPosition)||void 0===n?void 0:n.pageX)&&void 0!==i?i:0),u-(null!==(o=null===(r=a.current.lastPosition)||void 0===r?void 0:r.pageY)&&void 0!==o?o:0)),a.current.lastPosition={pageX:s,pageY:u}}},c=e=>{[...e.changedTouches].findIndex((({identifier:e})=>e===a.current.id))>=0&&(u(e,"touch"),a.current.id=null,s(window,"touchmove",i),s(window,"touchend",c),s(window,"touchcancel",c))};e.onTouchStart=e=>{if(0===e.changedTouches.length||null!=a.current.id)return;let{pageX:n,pageY:r,identifier:s}=e.changedTouches[0];t(),e.stopPropagation(),e.preventDefault(),a.current.lastPosition={pageX:n,pageY:r},a.current.id=s,o(window,"touchmove",i,!1),o(window,"touchend",c,!1),o(window,"touchcancel",c,!1)}}else{let n=e=>{if(e.pointerId===a.current.id){var t,n;let o=e.pointerType||"mouse";var r,i;l(e,o,e.pageX-(null!==(r=null===(t=a.current.lastPosition)||void 0===t?void 0:t.pageX)&&void 0!==r?r:0),e.pageY-(null!==(i=null===(n=a.current.lastPosition)||void 0===n?void 0:n.pageY)&&void 0!==i?i:0)),a.current.lastPosition={pageX:e.pageX,pageY:e.pageY}}},r=e=>{if(e.pointerId===a.current.id){let t=e.pointerType||"mouse";u(e,t),a.current.id=null,s(window,"pointermove",n,!1),s(window,"pointerup",r,!1),s(window,"pointercancel",r,!1)}};e.onPointerDown=e=>{0===e.button&&null==a.current.id&&(t(),e.stopPropagation(),e.preventDefault(),a.current.lastPosition={pageX:e.pageX,pageY:e.pageY},a.current.id=e.pointerId,o(window,"pointermove",n,!1),o(window,"pointerup",r,!1),o(window,"pointercancel",r,!1))}}let n=(e,n,r)=>{t(),l(e,"keyboard",n,r),u(e,"keyboard")};return e.onKeyDown=e=>{switch(e.key){case"Left":case"ArrowLeft":e.preventDefault(),e.stopPropagation(),n(e,-1,0);break;case"Right":case"ArrowRight":e.preventDefault(),e.stopPropagation(),n(e,1,0);break;case"Up":case"ArrowUp":e.preventDefault(),e.stopPropagation(),n(e,0,-1);break;case"Down":case"ArrowDown":e.preventDefault(),e.stopPropagation(),n(e,0,1)}},e}),[a,o,s,l,u])}}function oi(e){const t=bn(e);if("virtual"===Qr()){let n=t.activeElement;Kn((()=>{t.activeElement===n&&e.isConnected&&Pn(e)}))}else Pn(e)}function si(e,t){return"#comment"!==e.nodeName&&function(e){const t=xn(e);if(!(e instanceof t.HTMLElement||e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,i="none"!==n&&"hidden"!==r&&"collapse"!==r;if(i){const{getComputedStyle:t}=e.ownerDocument.defaultView;let{display:n,visibility:r}=t(e);i="none"!==n&&"hidden"!==r&&"collapse"!==r}return i}(e)&&(r=t,!(n=e).hasAttribute("hidden")&&!n.hasAttribute("data-react-aria-prevent-focus")&&("DETAILS"!==n.nodeName||!r||"SUMMARY"===r.nodeName||n.hasAttribute("open")))&&(!e.parentElement||si(e.parentElement,e));var n,r}"undefined"!=typeof document&&function(e){const t=bn(e);let n;"loading"!==t.readyState?Jr(e):(n=()=>{Jr(e)},t.addEventListener("DOMContentLoaded",n))}();const li=t.createContext(null),ui="react-aria-focus-scope-restore";let ci=null;function di(e){let{children:n,contain:r,restoreFocus:i,autoFocus:a}=e,o=t.useRef(null),s=t.useRef(null),l=t.useRef([]),{parentNode:u}=t.useContext(li)||{},c=t.useMemo((()=>new $i({scopeRef:l})),[l]);var d,p,h;tn((()=>{let e=u||Ti.root;if(Ti.getTreeNode(e.scopeRef)&&ci&&!xi(ci,e.scopeRef)){let t=Ti.getTreeNode(ci);t&&(e=t)}e.addChild(c),Ti.addNode(c)}),[c,u]),tn((()=>{let e=Ti.getTreeNode(l);e&&(e.contain=!!r)}),[r]),tn((()=>{var e;let t=null===(e=o.current)||void 0===e?void 0:e.nextSibling,n=[],r=e=>e.stopPropagation();for(;t&&t!==s.current;)n.push(t),t.addEventListener(ui,r),t=t.nextSibling;return l.current=n,()=>{for(let e of n)e.removeEventListener(ui,r)}}),[n]),tn((()=>{if(p||h)return;let e=d.current;const t=bn(e?e[0]:void 0);let n=e=>{let t=e.target;vi(t,d.current)?ci=d:yi(t)||(ci=null)};return t.addEventListener("focusin",n,!1),null==e||e.forEach((e=>e.addEventListener("focusin",n,!1))),()=>{t.removeEventListener("focusin",n,!1),null==e||e.forEach((e=>e.removeEventListener("focusin",n,!1)))}}),[d=l,p=i,h=r]),function(e,n){let r=t.useRef(void 0),i=t.useRef(void 0);tn((()=>{let t=e.current;if(!n)return void(i.current&&(cancelAnimationFrame(i.current),i.current=void 0));const a=bn(t?t[0]:void 0);let o=t=>{if("Tab"!==t.key||t.altKey||t.ctrlKey||t.metaKey||!gi(e)||t.isComposing)return;let n=a.activeElement,r=e.current;if(!r||!vi(n,r))return;let i=ji(mi(r),{tabbable:!0},r);if(!n)return;i.currentNode=n;let o=t.shiftKey?i.previousNode():i.nextNode();o||(i.currentNode=t.shiftKey?r[r.length-1].nextElementSibling:r[0].previousElementSibling,o=t.shiftKey?i.previousNode():i.nextNode()),t.preventDefault(),o&&wi(o,!0)},s=t=>{ci&&!xi(ci,e)||!vi(t.target,e.current)?gi(e)&&!bi(t.target,e)?r.current?r.current.focus():ci&&ci.current&&ki(ci.current):gi(e)&&(r.current=t.target):(ci=e,r.current=t.target)},l=t=>{i.current&&cancelAnimationFrame(i.current),i.current=requestAnimationFrame((()=>{var n;a.activeElement&&gi(e)&&!bi(a.activeElement,e)&&(ci=e,a.body.contains(t.target)?(r.current=t.target,null===(n=r.current)||void 0===n||n.focus()):ci.current&&ki(ci.current))}))};return a.addEventListener("keydown",o,!1),a.addEventListener("focusin",s,!1),null==t||t.forEach((e=>e.addEventListener("focusin",s,!1))),null==t||t.forEach((e=>e.addEventListener("focusout",l,!1))),()=>{a.removeEventListener("keydown",o,!1),a.removeEventListener("focusin",s,!1),null==t||t.forEach((e=>e.removeEventListener("focusin",s,!1))),null==t||t.forEach((e=>e.removeEventListener("focusout",l,!1)))}}),[e,n]),tn((()=>()=>{i.current&&cancelAnimationFrame(i.current)}),[i])}(l,r),function(e,n,r){const i=t.useRef("undefined"!=typeof document?bn(e.current?e.current[0]:void 0).activeElement:null);tn((()=>{let t=e.current;const i=bn(t?t[0]:void 0);if(!n||r)return;let a=()=>{ci&&!xi(ci,e)||!vi(i.activeElement,e.current)||(ci=e)};return i.addEventListener("focusin",a,!1),null==t||t.forEach((e=>e.addEventListener("focusin",a,!1))),()=>{i.removeEventListener("focusin",a,!1),null==t||t.forEach((e=>e.removeEventListener("focusin",a,!1)))}}),[e,r]),tn((()=>{const t=bn(e.current?e.current[0]:void 0);if(!n)return;let i=n=>{if("Tab"!==n.key||n.altKey||n.ctrlKey||n.metaKey||!gi(e)||n.isComposing)return;let r=t.activeElement;if(!bi(r,e)||!Si(e))return;let i=Ti.getTreeNode(e);if(!i)return;let a=i.nodeToRestore,o=ji(t.body,{tabbable:!0});o.currentNode=r;let s=n.shiftKey?o.previousNode():o.nextNode();if(a&&t.body.contains(a)&&a!==t.body||(a=void 0,i.nodeToRestore=void 0),(!s||!bi(s,e))&&a){o.currentNode=a;do{s=n.shiftKey?o.previousNode():o.nextNode()}while(bi(s,e));n.preventDefault(),n.stopPropagation(),s?wi(s,!0):yi(a)?wi(a,!0):r.blur()}};return r||t.addEventListener("keydown",i,!0),()=>{r||t.removeEventListener("keydown",i,!0)}}),[e,n,r]),tn((()=>{const t=bn(e.current?e.current[0]:void 0);if(!n)return;let r=Ti.getTreeNode(e);var a;return r?(r.nodeToRestore=null!==(a=i.current)&&void 0!==a?a:void 0,()=>{let r=Ti.getTreeNode(e);if(!r)return;let i=r.nodeToRestore;if(n&&i&&(t.activeElement&&bi(t.activeElement,e)||t.activeElement===t.body&&Si(e))){let n=Ti.clone();requestAnimationFrame((()=>{if(t.activeElement===t.body){let t=n.getTreeNode(e);for(;t;){if(t.nodeToRestore&&t.nodeToRestore.isConnected)return void Di(t.nodeToRestore);t=t.parent}for(t=n.getTreeNode(e);t;){if(t.scopeRef&&t.scopeRef.current&&Ti.getTreeNode(t.scopeRef))return void Di(Ei(t.scopeRef.current,!0));t=t.parent}}}))}}):void 0}),[e,n])}(l,i,r),function(e,n){const r=t.useRef(n);t.useEffect((()=>{r.current&&(ci=e,!vi(bn(e.current?e.current[0]:void 0).activeElement,ci.current)&&e.current&&ki(e.current)),r.current=!1}),[e])}(l,a),t.useEffect((()=>{const e=bn(l.current?l.current[0]:void 0).activeElement;let t=null;if(vi(e,l.current)){for(let n of Ti.traverse())n.scopeRef&&vi(e,n.scopeRef.current)&&(t=n);t===Ti.getTreeNode(l)&&(ci=t.scopeRef)}}),[l]),tn((()=>()=>{var e,t,n;let r=null!==(n=null===(t=Ti.getTreeNode(l))||void 0===t||null===(e=t.parent)||void 0===e?void 0:e.scopeRef)&&void 0!==n?n:null;l!==ci&&!xi(l,ci)||r&&!Ti.getTreeNode(r)||(ci=r),Ti.removeTreeNode(l)}),[l]);let f=t.useMemo((()=>function(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:i,wrap:a,accept:o}=t,s=r||bn(n[0]).activeElement,l=n[0].previousElementSibling,u=ji(mi(n),{tabbable:i,accept:o},n);u.currentNode=vi(s,n)?s:l;let c=u.nextNode();return!c&&a&&(u.currentNode=l,c=u.nextNode()),c&&wi(c,!0),c},focusPrevious(t={}){let n=e.current,{from:r,tabbable:i,wrap:a,accept:o}=t,s=r||bn(n[0]).activeElement,l=n[n.length-1].nextElementSibling,u=ji(mi(n),{tabbable:i,accept:o},n);u.currentNode=vi(s,n)?s:l;let c=u.previousNode();return!c&&a&&(u.currentNode=l,c=u.previousNode()),c&&wi(c,!0),c},focusFirst(t={}){let n=e.current,{tabbable:r,accept:i}=t,a=ji(mi(n),{tabbable:r,accept:i},n);a.currentNode=n[0].previousElementSibling;let o=a.nextNode();return o&&wi(o,!0),o},focusLast(t={}){let n=e.current,{tabbable:r,accept:i}=t,a=ji(mi(n),{tabbable:r,accept:i},n);a.currentNode=n[n.length-1].nextElementSibling;let o=a.previousNode();return o&&wi(o,!0),o}}}(l)),[]),m=t.useMemo((()=>({focusManager:f,parentNode:c})),[c,f]);return t.createElement(li.Provider,{value:m},t.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:o}),n,t.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:s}))}const pi=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],hi=pi.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";pi.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const fi=pi.join(':not([hidden]):not([tabindex="-1"]),');function mi(e){return e[0].parentElement}function gi(e){let t=Ti.getTreeNode(ci);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function yi(e){return bi(e)}function vi(e,t){return!!e&&!!t&&t.some((t=>t.contains(e)))}function bi(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of Ti.traverse(Ti.getTreeNode(t)))if(n&&vi(e,n.current))return!0;return!1}function xi(e,t){var n;let r=null===(n=Ti.getTreeNode(t))||void 0===n?void 0:n.parent;for(;r;){if(r.scopeRef===e)return!0;r=r.parent}return!1}function wi(e,t=!1){if(null==e||t){if(null!=e)try{e.focus()}catch{}}else try{oi(e)}catch{}}function Ei(e,t=!0){let n=e[0].previousElementSibling,r=mi(e),i=ji(r,{tabbable:t},e);i.currentNode=n;let a=i.nextNode();return t&&!a&&(r=mi(e),i=ji(r,{tabbable:!1},e),i.currentNode=n,a=i.nextNode()),a}function ki(e,t=!0){wi(Ei(e,t))}function Si(e){let t=Ti.getTreeNode(ci);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(null==t?void 0:t.scopeRef)===e}function Di(e){e.dispatchEvent(new CustomEvent(ui,{bubbles:!0,cancelable:!0}))&&wi(e)}function ji(e,t,n){let r=(null==t?void 0:t.tabbable)?fi:hi,i=bn(e).createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(e){var i;return(null==t||null===(i=t.from)||void 0===i?void 0:i.contains(e))?NodeFilter.FILTER_REJECT:!e.matches(r)||!si(e)||n&&!vi(e,n)||(null==t?void 0:t.accept)&&!t.accept(e)?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT}});return(null==t?void 0:t.from)&&(i.currentNode=t.from),i}function Ci(e,t={}){return{focusNext(n={}){let r=e.current;if(!r)return null;let{from:i,tabbable:a=t.tabbable,wrap:o=t.wrap,accept:s=t.accept}=n,l=i||bn(r).activeElement,u=ji(r,{tabbable:a,accept:s});r.contains(l)&&(u.currentNode=l);let c=u.nextNode();return!c&&o&&(u.currentNode=r,c=u.nextNode()),c&&wi(c,!0),c},focusPrevious(n=t){let r=e.current;if(!r)return null;let{from:i,tabbable:a=t.tabbable,wrap:o=t.wrap,accept:s=t.accept}=n,l=i||bn(r).activeElement,u=ji(r,{tabbable:a,accept:s});if(!r.contains(l)){let e=Ri(u);return e&&wi(e,!0),null!=e?e:null}u.currentNode=l;let c=u.previousNode();if(!c&&o){u.currentNode=r;let e=Ri(u);if(!e)return null;c=e}return c&&wi(c,!0),null!=c?c:null},focusFirst(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:a=t.accept}=n,o=ji(r,{tabbable:i,accept:a}).nextNode();return o&&wi(o,!0),o},focusLast(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:a=t.accept}=n,o=Ri(ji(r,{tabbable:i,accept:a}));return o&&wi(o,!0),null!=o?o:null}}}function Ri(e){let t,n;do{n=e.lastChild(),n&&(t=n)}while(n);return t}class Pi{get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,t,n){let r=this.fastMap.get(null!=t?t:null);if(!r)return;let i=new $i({scopeRef:e});r.addChild(i),i.parent=r,this.fastMap.set(e,i),n&&(i.nodeToRestore=n)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(null===e)return;let t=this.fastMap.get(e);if(!t)return;let n=t.parent;for(let i of this.traverse())i!==t&&t.nodeToRestore&&i.nodeToRestore&&t.scopeRef&&t.scopeRef.current&&vi(i.nodeToRestore,t.scopeRef.current)&&(i.nodeToRestore=t.nodeToRestore);let r=t.children;n&&(n.removeChild(t),r.size>0&&r.forEach((e=>n&&n.addChild(e)))),this.fastMap.delete(t.scopeRef)}*traverse(e=this.root){if(null!=e.scopeRef&&(yield e),e.children.size>0)for(let t of e.children)yield*this.traverse(t)}clone(){var e;let t=new Pi;var n;for(let r of this.traverse())t.addTreeNode(r.scopeRef,null!==(n=null===(e=r.parent)||void 0===e?void 0:e.scopeRef)&&void 0!==n?n:null,r.nodeToRestore);return t}constructor(){this.fastMap=new Map,this.root=new $i({scopeRef:null}),this.fastMap.set(null,this.root)}}class $i{addChild(e){this.children.add(e),e.parent=this}removeChild(e){this.children.delete(e),e.parent=void 0}constructor(e){this.children=new Set,this.contain=!1,this.scopeRef=e.scopeRef}}let Ti=new Pi,_i=t.createContext(null);function Mi(e,n){let{focusProps:r}=function(e){let{isDisabled:n,onFocus:r,onBlur:i,onFocusChange:a}=e;const o=t.useCallback((e=>{if(e.target===e.currentTarget)return i&&i(e),a&&a(!1),!0}),[i,a]),s=Vr(o),l=t.useCallback((e=>{const t=bn(e.target);e.target===e.currentTarget&&t.activeElement===e.target&&(r&&r(e),a&&a(!0),s(e))}),[a,r,s]);return{focusProps:{onFocus:!n&&(r||a||i)?l:void 0,onBlur:n||!i&&!a?void 0:o}}}(e),{keyboardProps:i}=ii(e),a=kn(r,i),o=function(e){let n=t.useContext(_i)||{};Jn(n,e);let{ref:r,...i}=n;return i}(n),s=e.isDisabled?{}:o,l=t.useRef(e.autoFocus);return t.useEffect((()=>{l.current&&n.current&&oi(n.current),l.current=!1}),[n]),{focusableProps:kn({...a,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},s)}}const Ai=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),Ii=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function Oi(e){if(Intl.Locale){let t=new Intl.Locale(e).maximize(),n="function"==typeof t.getTextInfo?t.getTextInfo():t.textInfo;if(n)return"rtl"===n.direction;if(t.script)return Ai.has(t.script)}let t=e.split("-")[0];return Ii.has(t)}const Fi=Symbol.for("react-aria.i18n.locale");function Li(){let e="undefined"!=typeof window&&window[Fi]||"undefined"!=typeof navigator&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:Oi(e)?"rtl":"ltr"}}let Vi=Li(),Ni=new Set;function zi(){Vi=Li();for(let e of Ni)e(Vi)}const Bi=t.createContext(null);function Ui(){let e=function(){let e=pn(),[n,r]=t.useState(Vi);return t.useEffect((()=>(0===Ni.size&&window.addEventListener("languagechange",zi),Ni.add(r),()=>{Ni.delete(r),0===Ni.size&&window.removeEventListener("languagechange",zi)})),[]),e?{locale:"en-US",direction:"ltr"}:n}();return t.useContext(Bi)||e}const Wi=Symbol.for("react-aria.i18n.locale"),qi=Symbol.for("react-aria.i18n.strings");let Ki;class Hi{getStringForLocale(e,t){let n=this.getStringsForLocale(t)[e];if(!n)throw new Error(`Could not find intl message ${e} in ${t} locale`);return n}getStringsForLocale(e){let t=this.strings[e];return t||(t=function(e,t,n="en-US"){if(t[e])return t[e];let r=(i=e,Intl.Locale?new Intl.Locale(i).language:i.split("-")[0]);var i;if(t[r])return t[r];for(let a in t)if(a.startsWith(r+"-"))return t[a];return t[n]}(e,this.strings,this.defaultLocale),this.strings[e]=t),t}static getGlobalDictionaryForPackage(e){if("undefined"==typeof window)return null;let t=window[Wi];if(void 0===Ki){let e=window[qi];if(!e)return null;Ki={};for(let n in e)Ki[n]=new Hi({[t]:e[n]},t)}let n=null==Ki?void 0:Ki[e];if(!n)throw new Error(`Strings for package "${e}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return n}constructor(e,t="en-US"){this.strings=Object.fromEntries(Object.entries(e).filter((([,e])=>e))),this.defaultLocale=t}}const Zi=new Map,Gi=new Map;class Yi{format(e,t){let n=this.strings.getStringForLocale(e,this.locale);return"function"==typeof n?n(t,this):n}plural(e,t,n="cardinal"){let r=t["="+e];if(r)return"function"==typeof r?r():r;let i=this.locale+":"+n,a=Zi.get(i);return a||(a=new Intl.PluralRules(this.locale,{type:n}),Zi.set(i,a)),r=t[a.select(e)]||t.other,"function"==typeof r?r():r}number(e){let t=Gi.get(this.locale);return t||(t=new Intl.NumberFormat(this.locale),Gi.set(this.locale,t)),t.format(e)}select(e,t){let n=e[t]||e.other;return"function"==typeof n?n():n}constructor(e,t){this.locale=e,this.strings=t}}const Ji=new WeakMap;function Xi(e,t){return t&&Hi.getGlobalDictionaryForPackage(t)||function(e){let t=Ji.get(e);return t||(t=new Hi(e),Ji.set(e,t)),t}(e)}function Qi(e,n){let{locale:r}=Ui(),i=Xi(e,n);return t.useMemo((()=>new Yi(r,i)),[r,i])}function ea(e){e=lr(null!=e?e:{},ta);let{locale:n}=Ui();return t.useMemo((()=>new Gt(n,e)),[n,e])}function ta(e,t){if(e===t)return!0;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i of n)if(t[i]!==e[i])return!1;return!0}let na=new Map,ra=!1;try{ra="exceptZero"===new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay}catch{}let ia=!1;try{ia="unit"===new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style}catch{}const aa={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class oa{format(e){let t="";if(t=ra||null==this.options.signDisplay?this.numberFormatter.format(e):function(e,t,n){if("auto"===t)return e.format(n);if("never"===t)return e.format(Math.abs(n));{let r=!1;if("always"===t?r=n>0||Object.is(n,0):"exceptZero"===t&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let t=e.format(-n),r=e.format(n),i=t.replace(r,"").replace(/\u200e|\u061C/,"");return t.replace(r,"!!!").replace(i,"+").replace("!!!",r)}return e.format(n)}}(this.numberFormatter,this.options.signDisplay,e),"unit"===this.options.style&&!ia){var n;let{unit:e,unitDisplay:r="short",locale:i}=this.resolvedOptions();if(!e)return t;let a=null===(n=aa[e])||void 0===n?void 0:n[r];t+=a[i]||a.default}return t}formatToParts(e){return this.numberFormatter.formatToParts(e)}formatRange(e,t){if("function"==typeof this.numberFormatter.formatRange)return this.numberFormatter.formatRange(e,t);if(t<e)throw new RangeError("End date must be >= start date");return`${this.format(e)} – ${this.format(t)}`}formatRangeToParts(e,t){if("function"==typeof this.numberFormatter.formatRangeToParts)return this.numberFormatter.formatRangeToParts(e,t);if(t<e)throw new RangeError("End date must be >= start date");let n=this.numberFormatter.formatToParts(e),r=this.numberFormatter.formatToParts(t);return[...n.map((e=>({...e,source:"startRange"}))),{type:"literal",value:" – ",source:"shared"},...r.map((e=>({...e,source:"endRange"})))]}resolvedOptions(){let e=this.numberFormatter.resolvedOptions();return ra||null==this.options.signDisplay||(e={...e,signDisplay:this.options.signDisplay}),ia||"unit"!==this.options.style||(e={...e,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),e}constructor(e,t={}){this.numberFormatter=function(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),"unit"===t.style&&!ia){var r;let{unit:e,unitDisplay:n="short"}=t;if(!e)throw new Error('unit option must be provided with style: "unit"');if(!(null===(r=aa[e])||void 0===r?void 0:r[n]))throw new Error(`Unsupported unit ${e} with unitDisplay = ${n}`);t={...t,style:"decimal"}}let i=e+(t?Object.entries(t).sort(((e,t)=>e[0]<t[0]?-1:1)).join():"");if(na.has(i))return na.get(i);let a=new Intl.NumberFormat(e,t);return na.set(i,a),a}(e,t),this.options=t}}const sa=new RegExp("^.*\\(.*\\).*$"),la=["latn","arab","hanidec","deva","beng"];class ua{parse(e){return da(this.locale,this.options,e).parse(e)}isValidPartialNumber(e,t,n){return da(this.locale,this.options,e).isValidPartialNumber(e,t,n)}getNumberingSystem(e){return da(this.locale,this.options,e).options.numberingSystem}constructor(e,t={}){this.locale=e,this.options=t}}const ca=new Map;function da(e,t,n){let r=pa(e,t);if(!e.includes("-nu-")&&!r.isValidPartialNumber(n))for(let i of la)if(i!==r.options.numberingSystem){let r=pa(e+(e.includes("-u-")?"-nu-":"-u-nu-")+i,t);if(r.isValidPartialNumber(n))return r}return r}function pa(e,t){let n=e+(t?Object.entries(t).sort(((e,t)=>e[0]<t[0]?-1:1)).join():""),r=ca.get(n);return r||(r=new ha(e,t),ca.set(n,r)),r}class ha{parse(e){let t=this.sanitize(e);if(this.symbols.group&&(t=ga(t,this.symbols.group,"")),this.symbols.decimal&&(t=t.replace(this.symbols.decimal,".")),this.symbols.minusSign&&(t=t.replace(this.symbols.minusSign,"-")),t=t.replace(this.symbols.numeral,this.symbols.index),"percent"===this.options.style){let e=t.indexOf("-");t=t.replace("-","");let n=t.indexOf(".");-1===n&&(n=t.length),t=t.replace(".",""),t=n-2==0?`0.${t}`:n-2==-1?`0.0${t}`:n-2==-2?"0.00":`${t.slice(0,n-2)}.${t.slice(n-2)}`,e>-1&&(t=`-${t}`)}let n=t?+t:NaN;if(isNaN(n))return NaN;if("percent"===this.options.style){var r,i;let e={...this.options,style:"decimal",minimumFractionDigits:Math.min((null!==(r=this.options.minimumFractionDigits)&&void 0!==r?r:0)+2,20),maximumFractionDigits:Math.min((null!==(i=this.options.maximumFractionDigits)&&void 0!==i?i:0)+2,20)};return new ua(this.locale,e).parse(new oa(this.locale,e).format(n))}return"accounting"===this.options.currencySign&&sa.test(e)&&(n*=-1),n}sanitize(e){return e=e.replace(this.symbols.literals,""),this.symbols.minusSign&&(e=e.replace("-",this.symbols.minusSign)),"arab"===this.options.numberingSystem&&(this.symbols.decimal&&(e=(e=e.replace(",",this.symbols.decimal)).replace(String.fromCharCode(1548),this.symbols.decimal)),this.symbols.group&&(e=ga(e,".",this.symbols.group))),"fr-FR"===this.options.locale&&(e=ga(e,".",String.fromCharCode(8239))),e}isValidPartialNumber(e,t=-1/0,n=1/0){return e=this.sanitize(e),this.symbols.minusSign&&e.startsWith(this.symbols.minusSign)&&t<0?e=e.slice(this.symbols.minusSign.length):this.symbols.plusSign&&e.startsWith(this.symbols.plusSign)&&n>0&&(e=e.slice(this.symbols.plusSign.length)),!(this.symbols.group&&e.startsWith(this.symbols.group)||this.symbols.decimal&&e.indexOf(this.symbols.decimal)>-1&&0===this.options.maximumFractionDigits||(this.symbols.group&&(e=ga(e,this.symbols.group,"")),e=e.replace(this.symbols.numeral,""),this.symbols.decimal&&(e=e.replace(this.symbols.decimal,"")),0!==e.length))}constructor(e,t={}){var n;this.locale=e,this.formatter=new Intl.NumberFormat(e,t),this.options=this.formatter.resolvedOptions(),this.symbols=function(e,t,n,r){var i,a,o,s;let l=new Intl.NumberFormat(e,{...n,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand"}),u=l.formatToParts(-10000.111),c=l.formatToParts(10000.111),d=ma.map((e=>l.formatToParts(e)));var p;let h=null!==(p=null===(i=u.find((e=>"minusSign"===e.type)))||void 0===i?void 0:i.value)&&void 0!==p?p:"-",f=null===(a=c.find((e=>"plusSign"===e.type)))||void 0===a?void 0:a.value;f||"exceptZero"!==(null==r?void 0:r.signDisplay)&&"always"!==(null==r?void 0:r.signDisplay)||(f="+");let m=null===(o=new Intl.NumberFormat(e,{...n,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find((e=>"decimal"===e.type)))||void 0===o?void 0:o.value,g=null===(s=u.find((e=>"group"===e.type)))||void 0===s?void 0:s.value,y=u.filter((e=>!fa.has(e.type))).map((e=>ya(e.value))),v=d.flatMap((e=>e.filter((e=>!fa.has(e.type))).map((e=>ya(e.value))))),b=[...new Set([...y,...v])].sort(((e,t)=>t.length-e.length)),x=0===b.length?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${b.join("|")}|[\\p{White_Space}]`,"gu"),w=[...new Intl.NumberFormat(n.locale,{useGrouping:!1}).format(9876543210)].reverse(),E=new Map(w.map(((e,t)=>[e,t])));return{minusSign:h,plusSign:f,decimal:m,group:g,literals:x,numeral:new RegExp(`[${w.join("")}]`,"g"),index:e=>String(E.get(e))}}(e,this.formatter,this.options,t),"percent"===this.options.style&&((null!==(n=this.options.minimumFractionDigits)&&void 0!==n?n:0)>18||this.options.maximumFractionDigits)}}const fa=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),ma=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function ga(e,t,n){return e.replaceAll?e.replaceAll(t,n):e.split(t).join(n)}function ya(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}let va=new Map;function ba(e,n,r){let{direction:i}=Ui(),a=t.useMemo((()=>Ci(n)),[n]),o=()=>{var e;if(!n.current)return;let t=null===(e=window.event)||void 0===e?void 0:e.target,r=ji(n.current,{tabbable:!0});if(t&&(r.currentNode=t,t=r.previousNode()),!t){let e;do{e=r.lastChild(),e&&(t=e)}while(e)}for(;null==t?void 0:t.hasAttribute("data-placeholder");){let e=r.previousNode();if(!e||!e.hasAttribute("data-placeholder"))break;t=e}t&&t.focus()},{pressProps:s}=Dr({preventFocusOnPress:!0,allowTextSelectionOnPress:!0,onPressStart(e){"mouse"===e.pointerType&&o()},onPress(e){"mouse"!==e.pointerType&&o()}});return kn(s,{onKeyDown:t=>{if(t.currentTarget.contains(t.target)&&(t.altKey&&("ArrowDown"===t.key||"ArrowUp"===t.key)&&"setOpen"in e&&(t.preventDefault(),t.stopPropagation(),e.setOpen(!0)),!r))switch(t.key){case"ArrowLeft":t.preventDefault(),t.stopPropagation(),"rtl"===i?a.focusNext():a.focusPrevious();break;case"ArrowRight":t.preventDefault(),t.stopPropagation(),"rtl"===i?a.focusPrevious():a.focusNext()}}})}function xa(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:a="label"}=e;t=mn(t);let o=mn(),s={};return n&&(r=r?`${o} ${r}`:o,s={id:o,htmlFor:"label"===a?t:void 0}),{labelProps:s,fieldProps:Zn({id:t,"aria-label":i,"aria-labelledby":r})}}function wa(e){let{description:t,errorMessage:n,isInvalid:r,validationState:i}=e,{labelProps:a,fieldProps:o}=xa(e),s=yn([Boolean(t),Boolean(n),r,i]),l=yn([Boolean(t),Boolean(n),r,i]);return o=kn(o,{"aria-describedby":[s,l,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:a,fieldProps:o,descriptionProps:{id:s},errorMessageProps:{id:l}}}function Ea(e){let t=e.validity;return{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing,valid:t.valid}}const ka=new WeakMap,Sa="__role_"+Date.now(),Da="__focusManager_"+Date.now();function ja(e,n,r){var i;let{isInvalid:a,validationErrors:o,validationDetails:s}=n.displayValidation,{labelProps:l,fieldProps:u,descriptionProps:c,errorMessageProps:d}=wa({...e,labelElementType:"span",isInvalid:a,errorMessage:e.errorMessage||o}),p=t.useRef(null),{focusWithinProps:h}=ti({...e,onFocusWithin(t){var r;p.current=n.value,null===(r=e.onFocus)||void 0===r||r.call(e,t)},onBlurWithin:t=>{var r;n.confirmPlaceholder(),n.value!==p.current&&n.commitValidation(),null===(r=e.onBlur)||void 0===r||r.call(e,t)},onFocusWithinChange:e.onFocusChange}),f=Qi((m=en)&&m.__esModule?m.default:m,"@react-aria/datepicker");var m;let g="hour"===n.maxGranularity?"selectedTimeDescription":"selectedDateDescription",y="hour"===n.maxGranularity?"time":"date",v=nr(n.value?f.format(g,{[y]:n.formatValue({month:"long"})}):""),b="presentation"===e[Sa]?u["aria-describedby"]:[v["aria-describedby"],u["aria-describedby"]].filter(Boolean).join(" ")||void 0,x=e[Da],w=t.useMemo((()=>x||Ci(r)),[x,r]),E=ba(n,r,"presentation"===e[Sa]);ka.set(n,{ariaLabel:e["aria-label"],ariaLabelledBy:[l.id,e["aria-labelledby"]].filter(Boolean).join(" ")||void 0,ariaDescribedBy:b,focusManager:w});let k,S=t.useRef(e.autoFocus);k="presentation"===e[Sa]?{role:"presentation"}:kn(u,{role:"group","aria-disabled":e.isDisabled||void 0,"aria-describedby":b}),t.useEffect((()=>{S.current&&w.focusFirst(),S.current=!1}),[w]),ur(e.inputRef,n.value,n.setValue),function(e,n,r){let{validationBehavior:i,focus:a}=e;tn((()=>{if("native"===i&&(null==r?void 0:r.current)){let t=n.realtimeValidation.isInvalid?n.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";r.current.setCustomValidity(t),r.current.hasAttribute("title")||(r.current.title=""),n.realtimeValidation.isInvalid||n.updateValidation({isInvalid:!(e=r.current).validity.valid,validationDetails:Ea(e),validationErrors:e.validationMessage?[e.validationMessage]:[]})}var e}));let o=nn((()=>{n.resetValidation()})),s=nn((e=>{var t;n.displayValidation.isInvalid||n.commitValidation();let i=null==r||null===(t=r.current)||void 0===t?void 0:t.form;var o;!e.defaultPrevented&&r&&i&&function(e){for(let t=0;t<e.elements.length;t++){let n=e.elements[t];if(!n.validity.valid)return n}return null}(i)===r.current&&(a?a():null===(o=r.current)||void 0===o||o.focus(),ei("keyboard")),e.preventDefault()})),l=nn((()=>{n.commitValidation()}));t.useEffect((()=>{let e=null==r?void 0:r.current;if(!e)return;let t=e.form;return e.addEventListener("invalid",s),e.addEventListener("change",l),null==t||t.addEventListener("reset",o),()=>{e.removeEventListener("invalid",s),e.removeEventListener("change",l),null==t||t.removeEventListener("reset",o)}}),[r,s,l,o,i])}({...e,focus(){w.focusFirst()}},n,e.inputRef);let D={type:"hidden",name:e.name,value:(null===(i=n.value)||void 0===i?void 0:i.toString())||"",disabled:e.isDisabled};"native"===e.validationBehavior&&(D.type="text",D.hidden=!0,D.required=e.isRequired,D.onChange=()=>{});let j=Rn(e);return{labelProps:{...l,onClick:()=>{w.focusFirst()}},fieldProps:kn(j,k,E,h,{onKeyDown(t){e.onKeyDown&&e.onKeyDown(t)},onKeyUp(t){e.onKeyUp&&e.onKeyUp(t)}}),inputProps:D,descriptionProps:c,errorMessageProps:d,isInvalid:a,validationErrors:o,validationDetails:s}}const Ca={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},Ra={...Ca,customError:!0,valid:!1},Pa={isInvalid:!1,validationDetails:Ca,validationErrors:[]},$a=t.createContext({}),Ta="__formValidationState"+Date.now();function _a(e){if(e[Ta]){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:a}=e[Ta];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:a}}return function(e){let{isInvalid:n,validationState:r,name:i,value:a,builtinValidation:o,validate:s,validationBehavior:l="aria"}=e;r&&(n||(n="invalid"===r));let u=void 0!==n?{isInvalid:n,validationErrors:[],validationDetails:Ra}:null,c=t.useMemo((()=>{if(!s||null==a)return null;return Aa(function(e,t){if("function"==typeof e){let n=e(t);if(n&&"boolean"!=typeof n)return Ma(n)}return[]}(s,a))}),[s,a]);(null==o?void 0:o.validationDetails.valid)&&(o=void 0);let d=t.useContext($a),p=t.useMemo((()=>i?Array.isArray(i)?i.flatMap((e=>Ma(d[e]))):Ma(d[i]):[]),[d,i]),[h,f]=t.useState(d),[m,g]=t.useState(!1);d!==h&&(f(d),g(!1));let y=t.useMemo((()=>Aa(m?[]:p)),[m,p]),v=t.useRef(Pa),[b,x]=t.useState(Pa),w=t.useRef(Pa),[E,k]=t.useState(!1);return t.useEffect((()=>{if(!E)return;k(!1);let e=c||o||v.current;Ia(e,w.current)||(w.current=e,x(e))})),{realtimeValidation:u||y||c||o||Pa,displayValidation:"native"===l?u||y||b:u||y||c||o||b,updateValidation(e){"aria"!==l||Ia(b,e)?v.current=e:x(e)},resetValidation(){let e=Pa;Ia(e,w.current)||(w.current=e,x(e)),"native"===l&&k(!1),g(!0)},commitValidation(){"native"===l&&k(!0),g(!0)}}}(e)}function Ma(e){return e?Array.isArray(e)?e:[e]:[]}function Aa(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:Ra}:null}function Ia(e,t){return e===t||!!e&&!!t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every(((e,n)=>e===t.validationErrors[n]))&&Object.entries(e.validationDetails).every((([e,n])=>t.validationDetails[e]===n))}function Oa(...e){let t=new Set,n=!1,r={...Ca};for(let o of e){var i,a;for(let e of o.validationErrors)t.add(e);n||(n=o.isInvalid);for(let e in r)(i=r)[a=e]||(i[a]=o.validationDetails[e])}return r.valid=!n,{isInvalid:n,validationErrors:[...t],validationDetails:r}}function Fa(e,n,r){let i=mn(),a=mn(),o=mn(),s=Qi((l=en)&&l.__esModule?l.default:l,"@react-aria/datepicker");var l;let{isInvalid:u,validationErrors:c,validationDetails:d}=n.displayValidation,{labelProps:p,fieldProps:h,descriptionProps:f,errorMessageProps:m}=wa({...e,labelElementType:"span",isInvalid:u,errorMessage:e.errorMessage||c}),g=ba(n,r),y=h["aria-labelledby"]||h.id,{locale:v}=Ui(),b=n.formatValue(v,{month:"long"}),x=nr(b?s.format("selectedDateDescription",{date:b}):""),w=[x["aria-describedby"],h["aria-describedby"]].filter(Boolean).join(" ")||void 0,E=Rn(e),k=t.useMemo((()=>Ci(r)),[r]),{focusWithinProps:S}=ti({...e,isDisabled:n.isOpen,onBlurWithin:e.onBlur,onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange});return{groupProps:kn(E,g,h,x,S,{role:"group","aria-disabled":e.isDisabled||null,"aria-labelledby":y,"aria-describedby":w,onKeyDown(t){n.isOpen||e.onKeyDown&&e.onKeyDown(t)},onKeyUp(t){n.isOpen||e.onKeyUp&&e.onKeyUp(t)}}),labelProps:{...p,onClick:()=>{k.focusFirst()}},fieldProps:{...h,id:o,[Sa]:"presentation","aria-describedby":w,value:n.value,onChange:n.setValue,placeholderValue:e.placeholderValue,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,granularity:e.granularity,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isRequired:e.isRequired,validationBehavior:e.validationBehavior,[Ta]:n,autoFocus:e.autoFocus,name:e.name},descriptionProps:f,errorMessageProps:m,buttonProps:{...x,id:i,"aria-haspopup":"dialog","aria-label":s.format("calendar"),"aria-labelledby":`${i} ${y}`,"aria-describedby":w,"aria-expanded":n.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>n.setOpen(!0)},dialogProps:{id:a,"aria-labelledby":`${i} ${y}`},calendarProps:{autoFocus:!0,value:n.dateValue,onChange:n.setDateValue,minValue:e.minValue,maxValue:e.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isDateUnavailable:e.isDateUnavailable,defaultFocusedValue:n.dateValue?void 0:e.placeholderValue,isInvalid:n.isInvalid,errorMessage:"function"==typeof e.errorMessage?e.errorMessage(n.displayValidation):e.errorMessage||n.displayValidation.validationErrors.join(" ")},isInvalid:u,validationErrors:c,validationDetails:d}}class La{of(e){return this.dictionary.getStringForLocale(e,this.locale)}constructor(e,t){this.locale=e,this.dictionary=t}}var Va;Va={"ar-AE":{Empty:"فارغ"},"bg-BG":{Empty:"Изпразни"},"cs-CZ":{Empty:"Prázdné"},"da-DK":{Empty:"Tom"},"de-DE":{Empty:"Leer"},"el-GR":{Empty:"Άδειο"},"en-US":{Empty:"Empty"},"es-ES":{Empty:"Vacío"},"et-EE":{Empty:"Tühjenda"},"fi-FI":{Empty:"Tyhjä"},"fr-FR":{Empty:"Vide"},"he-IL":{Empty:"ריק"},"hr-HR":{Empty:"Prazno"},"hu-HU":{Empty:"Üres"},"it-IT":{Empty:"Vuoto"},"ja-JP":{Empty:"空"},"ko-KR":{Empty:"비어 있음"},"lt-LT":{Empty:"Tuščias"},"lv-LV":{Empty:"Tukšs"},"nb-NO":{Empty:"Tom"},"nl-NL":{Empty:"Leeg"},"pl-PL":{Empty:"Pusty"},"pt-BR":{Empty:"Vazio"},"pt-PT":{Empty:"Vazio"},"ro-RO":{Empty:"Gol"},"ru-RU":{Empty:"Не заполнено"},"sk-SK":{Empty:"Prázdne"},"sl-SI":{Empty:"Prazen"},"sr-SP":{Empty:"Prazno"},"sv-SE":{Empty:"Tomt"},"tr-TR":{Empty:"Boş"},"uk-UA":{Empty:"Пусто"},"zh-CN":{Empty:"空"},"zh-TW":{Empty:"空白"}};let Na=null;function za(e,t="assertive",n=7e3){Na?Na.announce(e,t,n):(Na=new Ba,("boolean"==typeof IS_REACT_ACT_ENVIRONMENT?IS_REACT_ACT_ENVIRONMENT:"undefined"!=typeof jest)?Na.announce(e,t,n):setTimeout((()=>{(null==Na?void 0:Na.isAttached())&&(null==Na||Na.announce(e,t,n))}),100))}class Ba{isAttached(){var e;return null===(e=this.node)||void 0===e?void 0:e.isConnected}createLog(e){let t=document.createElement("div");return t.setAttribute("role","log"),t.setAttribute("aria-live",e),t.setAttribute("aria-relevant","additions"),t}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(e,t="assertive",n=7e3){var r,i;if(!this.node)return;let a=document.createElement("div");"object"==typeof e?(a.setAttribute("role","img"),a.setAttribute("aria-labelledby",e["aria-labelledby"])):a.textContent=e,"assertive"===t?null===(r=this.assertiveLog)||void 0===r||r.appendChild(a):null===(i=this.politeLog)||void 0===i||i.appendChild(a),""!==e&&setTimeout((()=>{a.remove()}),n)}clear(e){this.node&&(e&&"assertive"!==e||!this.assertiveLog||(this.assertiveLog.innerHTML=""),e&&"polite"!==e||!this.politeLog||(this.politeLog.innerHTML=""))}constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,"undefined"!=typeof document&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}}function Ua(e,n,r){let i=t.useRef(""),{locale:a}=Ui(),o=function(){let{locale:e}=Ui(),n=Xi((r=en)&&r.__esModule?r.default:r,"@react-aria/datepicker");var r;return t.useMemo((()=>{try{return new Intl.DisplayNames(e,{type:"dateTimeField"})}catch{return new La(e,n)}}),[e,n])}(),{ariaLabel:s,ariaLabelledBy:l,ariaDescribedBy:u,focusManager:c}=ka.get(n),d=e.isPlaceholder?"":e.text,p=t.useMemo((()=>n.dateFormatter.resolvedOptions()),[n.dateFormatter]),h=ea({month:"long",timeZone:p.timeZone}),f=ea({hour:"numeric",hour12:p.hour12,timeZone:p.timeZone});if("month"!==e.type||e.isPlaceholder)"hour"!==e.type||e.isPlaceholder||(d=f.format(n.dateValue));else{let e=h.format(n.dateValue);d=e!==d?`${d} – ${e}`:e}let{spinButtonProps:m}=function(e){const n=t.useRef(void 0);let{value:r,textValue:i,minValue:a,maxValue:o,isDisabled:s,isReadOnly:l,isRequired:u,onIncrement:c,onIncrementPage:d,onDecrement:p,onDecrementPage:h,onDecrementToMin:f,onIncrementToMax:m}=e;const g=Qi((y=Va)&&y.__esModule?y.default:y,"@react-aria/spinbutton");var y;const v=()=>clearTimeout(n.current);t.useEffect((()=>()=>v()),[]);let b=t.useRef(!1),x=()=>{b.current=!0},w=()=>{b.current=!1},E=""===i?g.format("Empty"):(i||`${r}`).replace("-","−");t.useEffect((()=>{b.current&&(Na&&Na.clear("assertive"),za(E,"assertive"))}),[E]);const k=nn((e=>{v(),null==c||c(),n.current=window.setTimeout((()=>{(void 0===o||isNaN(o)||void 0===r||isNaN(r)||r<o)&&k(60)}),e)})),S=nn((e=>{v(),null==p||p(),n.current=window.setTimeout((()=>{(void 0===a||isNaN(a)||void 0===r||isNaN(r)||r>a)&&S(60)}),e)}));let D=e=>{e.preventDefault()},{addGlobalListener:j,removeAllGlobalListeners:C}=Hn();return{spinButtonProps:{role:"spinbutton","aria-valuenow":void 0===r||isNaN(r)?void 0:r,"aria-valuetext":E,"aria-valuemin":a,"aria-valuemax":o,"aria-disabled":s||void 0,"aria-readonly":l||void 0,"aria-required":u||void 0,onKeyDown:e=>{if(!(e.ctrlKey||e.metaKey||e.shiftKey||e.altKey||l))switch(e.key){case"PageUp":if(d){e.preventDefault(),null==d||d();break}case"ArrowUp":case"Up":c&&(e.preventDefault(),null==c||c());break;case"PageDown":if(h){e.preventDefault(),null==h||h();break}case"ArrowDown":case"Down":p&&(e.preventDefault(),null==p||p());break;case"Home":f&&(e.preventDefault(),null==f||f());break;case"End":m&&(e.preventDefault(),null==m||m())}},onFocus:x,onBlur:w},incrementButtonProps:{onPressStart:()=>{k(400),j(window,"contextmenu",D)},onPressEnd:()=>{v(),C()},onFocus:x,onBlur:w},decrementButtonProps:{onPressStart:()=>{S(400),j(window,"contextmenu",D)},onPressEnd:()=>{v(),C()},onFocus:x,onBlur:w}}}({value:e.value,textValue:d,minValue:e.minValue,maxValue:e.maxValue,isDisabled:n.isDisabled,isReadOnly:n.isReadOnly||!e.isEditable,isRequired:n.isRequired,onIncrement:()=>{i.current="",n.increment(e.type)},onDecrement:()=>{i.current="",n.decrement(e.type)},onIncrementPage:()=>{i.current="",n.incrementPage(e.type)},onDecrementPage:()=>{i.current="",n.decrementPage(e.type)},onIncrementToMax:()=>{i.current="",void 0!==e.maxValue&&n.setSegment(e.type,e.maxValue)},onDecrementToMin:()=>{i.current="",void 0!==e.minValue&&n.setSegment(e.type,e.minValue)}}),g=t.useMemo((()=>new ua(a,{maximumFractionDigits:0})),[a]),y=()=>{if(e.text===e.placeholder&&c.focusPrevious(),!g.isValidPartialNumber(e.text)||n.isReadOnly||e.isPlaceholder)"dayPeriod"===e.type&&n.clearSegment(e.type);else{let t=e.text.slice(0,-1),r=g.parse(t);t=0===r?"":t,0===t.length||0===r?n.clearSegment(e.type):n.setSegment(e.type,r),i.current=t}},{startsWith:v}=function(e){let n=function(e){let{locale:t}=Ui(),n=t+(e?Object.entries(e).sort(((e,t)=>e[0]<t[0]?-1:1)).join():"");if(va.has(n))return va.get(n);let r=new Intl.Collator(t,e);return va.set(n,r),r}({usage:"search",...e}),r=t.useCallback(((e,t)=>0===t.length||(e=e.normalize("NFC"),t=t.normalize("NFC"),0===n.compare(e.slice(0,t.length),t))),[n]),i=t.useCallback(((e,t)=>0===t.length||(e=e.normalize("NFC"),t=t.normalize("NFC"),0===n.compare(e.slice(-t.length),t))),[n]),a=t.useCallback(((e,t)=>{if(0===t.length)return!0;e=e.normalize("NFC");let r=0,i=(t=t.normalize("NFC")).length;for(;r+i<=e.length;r++){let a=e.slice(r,r+i);if(0===n.compare(t,a))return!0}return!1}),[n]);return t.useMemo((()=>({startsWith:r,endsWith:i,contains:a})),[r,i,a])}({sensitivity:"base"}),b=ea({hour:"numeric",hour12:!0}),x=t.useMemo((()=>{let e=new Date;return e.setHours(0),b.formatToParts(e).find((e=>"dayPeriod"===e.type)).value}),[b]),w=t.useMemo((()=>{let e=new Date;return e.setHours(12),b.formatToParts(e).find((e=>"dayPeriod"===e.type)).value}),[b]),E=ea({year:"numeric",era:"narrow",timeZone:"UTC"}),k=t.useMemo((()=>{if("era"!==e.type)return[];let t=fe(new Ue(1,1,1),n.calendar),r=n.calendar.getEras().map((e=>{let n=t.set({year:1,month:1,day:1,era:e}).toDate("UTC");return{era:e,formatted:E.formatToParts(n).find((e=>"era"===e.type)).value}})),i=function(e){e.sort();let t=e[0],n=e[e.length-1];for(let r=0;r<t.length;r++)if(t[r]!==n[r])return r;return 0}(r.map((e=>e.formatted)));if(i)for(let e of r)e.formatted=e.formatted.slice(i);return r}),[E,n.calendar,e.type]),S=t=>{if(n.isDisabled||n.isReadOnly)return;let r=i.current+t;switch(e.type){case"dayPeriod":if(v(x,t))n.setSegment("dayPeriod",0);else{if(!v(w,t))break;n.setSegment("dayPeriod",12)}c.focusNext();break;case"era":{let e=k.find((e=>v(e.formatted,t)));e&&(n.setSegment("era",e.era),c.focusNext());break}case"day":case"hour":case"minute":case"second":case"month":case"year":{if(!g.isValidPartialNumber(r))return;let a=g.parse(r),o=a,s=0===e.minValue;if("hour"===e.type&&n.dateFormatter.resolvedOptions().hour12){switch(n.dateFormatter.resolvedOptions().hourCycle){case"h11":a>11&&(o=g.parse(t));break;case"h12":s=!1,a>12&&(o=g.parse(t))}void 0!==e.value&&e.value>=12&&a>1&&(a+=12)}else void 0!==e.maxValue&&a>e.maxValue&&(o=g.parse(t));if(isNaN(a))return;let l=0!==o||s;l&&n.setSegment(e.type,o),void 0!==e.maxValue&&(Number(a+"0")>e.maxValue||r.length>=String(e.maxValue).length)?(i.current="",l&&c.focusNext()):i.current=r;break}}};rr(t.useRef("undefined"!=typeof document?document:null),"selectionchange",(()=>{var e;let t=window.getSelection();(null==t?void 0:t.anchorNode)&&(null===(e=r.current)||void 0===e?void 0:e.contains(null==t?void 0:t.anchorNode))&&t.collapse(r.current)}));let D=t.useRef("");rr(r,"beforeinput",(t=>{if(r.current)switch(t.preventDefault(),t.inputType){case"deleteContentBackward":case"deleteContentForward":g.isValidPartialNumber(e.text)&&!n.isReadOnly&&y();break;case"insertCompositionText":D.current=r.current.textContent,r.current.textContent=r.current.textContent;break;default:null!=t.data&&S(t.data)}})),rr(r,"input",(e=>{let{inputType:t,data:n}=e;"insertCompositionText"===t&&(r.current&&(r.current.textContent=D.current),null!=n&&(v(x,n)||v(w,n))&&S(n))})),tn((()=>{let e=r.current;return()=>{document.activeElement===e&&(c.focusPrevious()||c.focusNext())}}),[r,c]);let j=Fn()||"timeZoneName"===e.type?{role:"textbox","aria-valuemax":null,"aria-valuemin":null,"aria-valuetext":null,"aria-valuenow":null}:{},C=t.useMemo((()=>n.segments.find((e=>e.isEditable))),[n.segments]);e===C||n.isInvalid||(u=void 0);let R=mn(),P=!n.isDisabled&&!n.isReadOnly&&e.isEditable,$=Zn({"aria-label":`${"literal"===e.type?"":o.of(e.type)}${s?`, ${s}`:""}${l?", ":""}`,"aria-labelledby":l});return"literal"===e.type?{segmentProps:{"aria-hidden":!0}}:{segmentProps:kn(m,$,{id:R,...j,"aria-invalid":n.isInvalid?"true":void 0,"aria-describedby":u,"aria-readonly":n.isReadOnly||!e.isEditable?"true":void 0,"data-placeholder":e.isPlaceholder||void 0,contentEditable:P,suppressContentEditableWarning:P,spellCheck:P?"false":void 0,autoCorrect:P?"off":void 0,[parseInt(t.version,10)>=17?"enterKeyHint":"enterkeyhint"]:P?"next":void 0,inputMode:n.isDisabled||"dayPeriod"===e.type||"era"===e.type||!P?void 0:"numeric",tabIndex:n.isDisabled?void 0:0,onKeyDown:e=>{if("a"===e.key&&(An()?e.metaKey:e.ctrlKey)&&e.preventDefault(),!(e.ctrlKey||e.metaKey||e.shiftKey||e.altKey))switch(e.key){case"Backspace":case"Delete":e.preventDefault(),e.stopPropagation(),y()}},onFocus:()=>{i.current="",r.current&&or(r.current,{containingElement:Qn(r.current)});let e=window.getSelection();null==e||e.collapse(r.current)},style:{caretColor:"transparent"},onPointerDown(e){e.stopPropagation()},onMouseDown(e){e.stopPropagation()}})}}const Wa=new Hi((qa={"ar-AE":{rangeOverflow:e=>`يجب أن تكون القيمة ${e.maxValue} أو قبل ذلك.`,rangeReversed:"تاريخ البدء يجب أن يكون قبل تاريخ الانتهاء.",rangeUnderflow:e=>`يجب أن تكون القيمة ${e.minValue} أو بعد ذلك.`,unavailableDate:"البيانات المحددة غير متاحة."},"bg-BG":{rangeOverflow:e=>`Стойността трябва да е ${e.maxValue} или по-ранна.`,rangeReversed:"Началната дата трябва да е преди крайната.",rangeUnderflow:e=>`Стойността трябва да е ${e.minValue} или по-късно.`,unavailableDate:"Избраната дата не е налична."},"cs-CZ":{rangeOverflow:e=>`Hodnota musí být ${e.maxValue} nebo dřívější.`,rangeReversed:"Datum zahájení musí předcházet datu ukončení.",rangeUnderflow:e=>`Hodnota musí být ${e.minValue} nebo pozdější.`,unavailableDate:"Vybrané datum není k dispozici."},"da-DK":{rangeOverflow:e=>`Værdien skal være ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen skal være før slutdatoen.",rangeUnderflow:e=>`Værdien skal være ${e.minValue} eller nyere.`,unavailableDate:"Den valgte dato er ikke tilgængelig."},"de-DE":{rangeOverflow:e=>`Der Wert muss ${e.maxValue} oder früher sein.`,rangeReversed:"Das Anfangsdatum muss vor dem Enddatum liegen.",rangeUnderflow:e=>`Der Wert muss ${e.minValue} oder später sein.`,unavailableDate:"Das ausgewählte Datum ist nicht verfügbar."},"el-GR":{rangeOverflow:e=>`Η τιμή πρέπει να είναι ${e.maxValue} ή παλαιότερη.`,rangeReversed:"Η ημερομηνία έναρξης πρέπει να είναι πριν από την ημερομηνία λήξης.",rangeUnderflow:e=>`Η τιμή πρέπει να είναι ${e.minValue} ή μεταγενέστερη.`,unavailableDate:"Η επιλεγμένη ημερομηνία δεν είναι διαθέσιμη."},"en-US":{rangeUnderflow:e=>`Value must be ${e.minValue} or later.`,rangeOverflow:e=>`Value must be ${e.maxValue} or earlier.`,rangeReversed:"Start date must be before end date.",unavailableDate:"Selected date unavailable."},"es-ES":{rangeOverflow:e=>`El valor debe ser ${e.maxValue} o anterior.`,rangeReversed:"La fecha de inicio debe ser anterior a la fecha de finalización.",rangeUnderflow:e=>`El valor debe ser ${e.minValue} o posterior.`,unavailableDate:"Fecha seleccionada no disponible."},"et-EE":{rangeOverflow:e=>`Väärtus peab olema ${e.maxValue} või varasem.`,rangeReversed:"Alguskuupäev peab olema enne lõppkuupäeva.",rangeUnderflow:e=>`Väärtus peab olema ${e.minValue} või hilisem.`,unavailableDate:"Valitud kuupäev pole saadaval."},"fi-FI":{rangeOverflow:e=>`Arvon on oltava ${e.maxValue} tai sitä aikaisempi.`,rangeReversed:"Aloituspäivän on oltava ennen lopetuspäivää.",rangeUnderflow:e=>`Arvon on oltava ${e.minValue} tai sitä myöhäisempi.`,unavailableDate:"Valittu päivämäärä ei ole käytettävissä."},"fr-FR":{rangeOverflow:e=>`La valeur doit être ${e.maxValue} ou antérieure.`,rangeReversed:"La date de début doit être antérieure à la date de fin.",rangeUnderflow:e=>`La valeur doit être ${e.minValue} ou ultérieure.`,unavailableDate:"La date sélectionnée n’est pas disponible."},"he-IL":{rangeOverflow:e=>`הערך חייב להיות ${e.maxValue} או מוקדם יותר.`,rangeReversed:"תאריך ההתחלה חייב להיות לפני תאריך הסיום.",rangeUnderflow:e=>`הערך חייב להיות ${e.minValue} או מאוחר יותר.`,unavailableDate:"התאריך הנבחר אינו זמין."},"hr-HR":{rangeOverflow:e=>`Vrijednost mora biti ${e.maxValue} ili ranije.`,rangeReversed:"Datum početka mora biti prije datuma završetka.",rangeUnderflow:e=>`Vrijednost mora biti ${e.minValue} ili kasnije.`,unavailableDate:"Odabrani datum nije dostupan."},"hu-HU":{rangeOverflow:e=>`Az értéknek ${e.maxValue} vagy korábbinak kell lennie.`,rangeReversed:"A kezdő dátumnak a befejező dátumnál korábbinak kell lennie.",rangeUnderflow:e=>`Az értéknek ${e.minValue} vagy későbbinek kell lennie.`,unavailableDate:"A kiválasztott dátum nem érhető el."},"it-IT":{rangeOverflow:e=>`Il valore deve essere ${e.maxValue} o precedente.`,rangeReversed:"La data di inizio deve essere antecedente alla data di fine.",rangeUnderflow:e=>`Il valore deve essere ${e.minValue} o successivo.`,unavailableDate:"Data selezionata non disponibile."},"ja-JP":{rangeOverflow:e=>`値は ${e.maxValue} 以下にする必要があります。`,rangeReversed:"開始日は終了日より前にする必要があります。",rangeUnderflow:e=>`値は ${e.minValue} 以上にする必要があります。`,unavailableDate:"選択した日付は使用できません。"},"ko-KR":{rangeOverflow:e=>`값은 ${e.maxValue} 이전이어야 합니다.`,rangeReversed:"시작일은 종료일 이전이어야 합니다.",rangeUnderflow:e=>`값은 ${e.minValue} 이상이어야 합니다.`,unavailableDate:"선택한 날짜를 사용할 수 없습니다."},"lt-LT":{rangeOverflow:e=>`Reikšmė turi būti ${e.maxValue} arba ankstesnė.`,rangeReversed:"Pradžios data turi būti ankstesnė nei pabaigos data.",rangeUnderflow:e=>`Reikšmė turi būti ${e.minValue} arba naujesnė.`,unavailableDate:"Pasirinkta data nepasiekiama."},"lv-LV":{rangeOverflow:e=>`Vērtībai ir jābūt ${e.maxValue} vai agrākai.`,rangeReversed:"Sākuma datumam ir jābūt pirms beigu datuma.",rangeUnderflow:e=>`Vērtībai ir jābūt ${e.minValue} vai vēlākai.`,unavailableDate:"Atlasītais datums nav pieejams."},"nb-NO":{rangeOverflow:e=>`Verdien må være ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen må være før sluttdatoen.",rangeUnderflow:e=>`Verdien må være ${e.minValue} eller senere.`,unavailableDate:"Valgt dato utilgjengelig."},"nl-NL":{rangeOverflow:e=>`Waarde moet ${e.maxValue} of eerder zijn.`,rangeReversed:"De startdatum moet voor de einddatum liggen.",rangeUnderflow:e=>`Waarde moet ${e.minValue} of later zijn.`,unavailableDate:"Geselecteerde datum niet beschikbaar."},"pl-PL":{rangeOverflow:e=>`Wartość musi mieć wartość ${e.maxValue} lub wcześniejszą.`,rangeReversed:"Data rozpoczęcia musi być wcześniejsza niż data zakończenia.",rangeUnderflow:e=>`Wartość musi mieć wartość ${e.minValue} lub późniejszą.`,unavailableDate:"Wybrana data jest niedostępna."},"pt-BR":{rangeOverflow:e=>`O valor deve ser ${e.maxValue} ou anterior.`,rangeReversed:"A data inicial deve ser anterior à data final.",rangeUnderflow:e=>`O valor deve ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."},"pt-PT":{rangeOverflow:e=>`O valor tem de ser ${e.maxValue} ou anterior.`,rangeReversed:"A data de início deve ser anterior à data de fim.",rangeUnderflow:e=>`O valor tem de ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."},"ro-RO":{rangeOverflow:e=>`Valoarea trebuie să fie ${e.maxValue} sau anterioară.`,rangeReversed:"Data de început trebuie să fie anterioară datei de sfârșit.",rangeUnderflow:e=>`Valoarea trebuie să fie ${e.minValue} sau ulterioară.`,unavailableDate:"Data selectată nu este disponibilă."},"ru-RU":{rangeOverflow:e=>`Значение должно быть не позже ${e.maxValue}.`,rangeReversed:"Дата начала должна предшествовать дате окончания.",rangeUnderflow:e=>`Значение должно быть не раньше ${e.minValue}.`,unavailableDate:"Выбранная дата недоступна."},"sk-SK":{rangeOverflow:e=>`Hodnota musí byť ${e.maxValue} alebo skoršia.`,rangeReversed:"Dátum začiatku musí byť skorší ako dátum konca.",rangeUnderflow:e=>`Hodnota musí byť ${e.minValue} alebo neskoršia.`,unavailableDate:"Vybratý dátum je nedostupný."},"sl-SI":{rangeOverflow:e=>`Vrednost mora biti ${e.maxValue} ali starejša.`,rangeReversed:"Začetni datum mora biti pred končnim datumom.",rangeUnderflow:e=>`Vrednost mora biti ${e.minValue} ali novejša.`,unavailableDate:"Izbrani datum ni na voljo."},"sr-SP":{rangeOverflow:e=>`Vrednost mora da bude ${e.maxValue} ili starija.`,rangeReversed:"Datum početka mora biti pre datuma završetka.",rangeUnderflow:e=>`Vrednost mora da bude ${e.minValue} ili novija.`,unavailableDate:"Izabrani datum nije dostupan."},"sv-SE":{rangeOverflow:e=>`Värdet måste vara ${e.maxValue} eller tidigare.`,rangeReversed:"Startdatumet måste vara före slutdatumet.",rangeUnderflow:e=>`Värdet måste vara ${e.minValue} eller senare.`,unavailableDate:"Det valda datumet är inte tillgängligt."},"tr-TR":{rangeOverflow:e=>`Değer, ${e.maxValue} veya öncesi olmalıdır.`,rangeReversed:"Başlangıç tarihi bitiş tarihinden önce olmalıdır.",rangeUnderflow:e=>`Değer, ${e.minValue} veya sonrası olmalıdır.`,unavailableDate:"Seçilen tarih kullanılamıyor."},"uk-UA":{rangeOverflow:e=>`Значення має бути не пізніше ${e.maxValue}.`,rangeReversed:"Дата початку має передувати даті завершення.",rangeUnderflow:e=>`Значення має бути не раніше ${e.minValue}.`,unavailableDate:"Вибрана дата недоступна."},"zh-CN":{rangeOverflow:e=>`值必须是 ${e.maxValue} 或更早日期。`,rangeReversed:"开始日期必须早于结束日期。",rangeUnderflow:e=>`值必须是 ${e.minValue} 或更晚日期。`,unavailableDate:"所选日期不可用。"},"zh-TW":{rangeOverflow:e=>`值必須是 ${e.maxValue} 或更早。`,rangeReversed:"開始日期必須在結束日期之前。",rangeUnderflow:e=>`值必須是 ${e.minValue} 或更晚。`,unavailableDate:"所選日期無法使用。"}})&&qa.__esModule?qa.default:qa);var qa;function Ka(){return"undefined"!=typeof navigator&&(navigator.language||navigator.userLanguage)||"en-US"}function Ha(e,t,n,r,i){let a=null!=e&&null!=n&&e.compare(n)>0,o=null!=e&&null!=t&&e.compare(t)<0,s=null!=e&&(null==r?void 0:r(e))||!1,l=a||o||s,u=[];if(l){let e=Ka(),r=Hi.getGlobalDictionaryForPackage("@react-stately/datepicker")||Wa,l=new Yi(e,r),c=new Gt(e,Ya({},i)),d=c.resolvedOptions().timeZone;o&&null!=t&&u.push(l.format("rangeUnderflow",{minValue:c.format(t.toDate(d))})),a&&null!=n&&u.push(l.format("rangeOverflow",{maxValue:c.format(n.toDate(d))})),s&&u.push(l.format("unavailableDate"))}return{isInvalid:l,validationErrors:u,validationDetails:{badInput:s,customError:!1,patternMismatch:!1,rangeOverflow:a,rangeUnderflow:o,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!l}}}const Za={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},Ga={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};function Ya(e,t){let n=t.shouldForceLeadingZeros?Ga:Za;e={...n,...e};let r=t.granularity||"minute",i=Object.keys(e);var a;let o=i.indexOf(null!==(a=t.maxGranularity)&&void 0!==a?a:"year");o<0&&(o=0);let s=i.indexOf(r);if(s<0&&(s=2),o>s)throw new Error("maxGranularity must be greater than granularity");let l=i.slice(o,s+1).reduce(((t,n)=>(t[n]=e[n],t)),{});return null!=t.hourCycle&&(l.hour12=12===t.hourCycle),l.timeZone=t.timeZone||"UTC",("hour"===r||"minute"===r||"second"===r)&&t.timeZone&&!t.hideTimeZone&&(l.timeZoneName="short"),t.showEra&&0===o&&(l.era="short"),l}function Ja(e){return e&&"hour"in e?e:new qe}function Xa(e,t){return null===e?null:e?fe(e,t):void 0}function Qa(e,t,n,r){if(e)return Xa(e,n);let i=fe(z(null!=r?r:H()).set({hour:0,minute:0,second:0,millisecond:0}),n);return"year"===t||"month"===t||"day"===t?de(i):r?i:pe(i)}function eo(e,n){let r=e&&"timeZone"in e?e.timeZone:void 0,i=e&&"minute"in e?"minute":"day";if(e&&n&&!(n in e))throw new Error("Invalid granularity "+n+" for value "+e.toString());let[a,o]=t.useState([i,r]);return!e||a[0]===i&&a[1]===r||o([i,r]),n||(n=e?i:a[0]),[n,e?r:a[1]]}function to(e){let[n,r]=cr(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const i=t.useCallback((()=>{r(!0)}),[r]),a=t.useCallback((()=>{r(!1)}),[r]),o=t.useCallback((()=>{r(!n)}),[r,n]);return{isOpen:n,setOpen:r,open:i,close:a,toggle:o}}function no(e){let n=to(e),[r,i]=cr(e.value,e.defaultValue||null,e.onChange),a=r||e.placeholderValue||null,[o,s]=eo(a,e.granularity),l=null!=r?r.toDate(null!=s?s:"UTC"):null,u="hour"===o||"minute"===o||"second"===o;var c;let d=null===(c=e.shouldCloseOnSelect)||void 0===c||c,[p,h]=t.useState(null),[f,m]=t.useState(null);if(r&&(p=r,"hour"in r&&(f=r)),a&&!(o in a))throw new Error("Invalid granularity "+o+" for value "+a.toString());let g="gregory"===(null==r?void 0:r.calendar.identifier)&&"BC"===r.era,y=t.useMemo((()=>({granularity:o,timeZone:s,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:g})),[o,e.hourCycle,e.shouldForceLeadingZeros,s,e.hideTimeZone,g]),{minValue:v,maxValue:b,isDateUnavailable:x}=e,w=t.useMemo((()=>Ha(r,v,b,x,y)),[r,v,b,x,y]),E=_a({...e,value:r,builtinValidation:w}),k=E.displayValidation.isInvalid,S=e.validationState||(k?"invalid":null),D=(e,t)=>{i("timeZone"in t?t.set(de(e)):pe(e,t)),h(null),m(null),E.commitValidation()};return{...E,value:r,setValue:i,dateValue:p,timeValue:f,setDateValue:t=>{let r="function"==typeof d?d():d;u?f||r?D(t,f||Ja(e.defaultValue||e.placeholderValue)):h(t):(i(t),E.commitValidation()),r&&n.setOpen(!1)},setTimeValue:e=>{p&&e?D(p,e):m(e)},granularity:o,hasTime:u,...n,setOpen(t){!t&&!r&&p&&u&&D(p,f||Ja(e.defaultValue||e.placeholderValue)),n.setOpen(t)},validationState:S,isInvalid:k,formatValue(e,t){if(!l)return"";let n=Ya(t,y);return new Gt(e,n).format(l)},getDateFormatter(e,t){let n=Ya({},{...y,...t});return new Gt(e,n)}}}const ro=new Hi({ach:{year:"mwaka",month:"dwe",day:"nino"},af:{year:"jjjj",month:"mm",day:"dd"},am:{year:"ዓዓዓዓ",month:"ሚሜ",day:"ቀቀ"},an:{year:"aaaa",month:"mm",day:"dd"},ar:{year:"سنة",month:"شهر",day:"يوم"},ast:{year:"aaaa",month:"mm",day:"dd"},az:{year:"iiii",month:"aa",day:"gg"},be:{year:"гггг",month:"мм",day:"дд"},bg:{year:"гггг",month:"мм",day:"дд"},bn:{year:"yyyy",month:"মিমি",day:"dd"},br:{year:"bbbb",month:"mm",day:"dd"},bs:{year:"gggg",month:"mm",day:"dd"},ca:{year:"aaaa",month:"mm",day:"dd"},cak:{year:"jjjj",month:"ii",day:"q'q'"},ckb:{year:"ساڵ",month:"مانگ",day:"ڕۆژ"},cs:{year:"rrrr",month:"mm",day:"dd"},cy:{year:"bbbb",month:"mm",day:"dd"},da:{year:"åååå",month:"mm",day:"dd"},de:{year:"jjjj",month:"mm",day:"tt"},dsb:{year:"llll",month:"mm",day:"źź"},el:{year:"εεεε",month:"μμ",day:"ηη"},en:{year:"yyyy",month:"mm",day:"dd"},eo:{year:"jjjj",month:"mm",day:"tt"},es:{year:"aaaa",month:"mm",day:"dd"},et:{year:"aaaa",month:"kk",day:"pp"},eu:{year:"uuuu",month:"hh",day:"ee"},fa:{year:"سال",month:"ماه",day:"روز"},ff:{year:"hhhh",month:"ll",day:"ññ"},fi:{year:"vvvv",month:"kk",day:"pp"},fr:{year:"aaaa",month:"mm",day:"jj"},fy:{year:"jjjj",month:"mm",day:"dd"},ga:{year:"bbbb",month:"mm",day:"ll"},gd:{year:"bbbb",month:"mm",day:"ll"},gl:{year:"aaaa",month:"mm",day:"dd"},he:{year:"שנה",month:"חודש",day:"יום"},hr:{year:"gggg",month:"mm",day:"dd"},hsb:{year:"llll",month:"mm",day:"dd"},hu:{year:"éééé",month:"hh",day:"nn"},ia:{year:"aaaa",month:"mm",day:"dd"},id:{year:"tttt",month:"bb",day:"hh"},it:{year:"aaaa",month:"mm",day:"gg"},ja:{year:" 年 ",month:"月",day:"日"},ka:{year:"წწწწ",month:"თთ",day:"რრ"},kk:{year:"жжжж",month:"аа",day:"кк"},kn:{year:"ವವವವ",month:"ಮಿಮೀ",day:"ದಿದಿ"},ko:{year:"연도",month:"월",day:"일"},lb:{year:"jjjj",month:"mm",day:"dd"},lo:{year:"ປປປປ",month:"ດດ",day:"ວວ"},lt:{year:"mmmm",month:"mm",day:"dd"},lv:{year:"gggg",month:"mm",day:"dd"},meh:{year:"aaaa",month:"mm",day:"dd"},ml:{year:"വർഷം",month:"മാസം",day:"തീയതി"},ms:{year:"tttt",month:"mm",day:"hh"},nl:{year:"jjjj",month:"mm",day:"dd"},nn:{year:"åååå",month:"mm",day:"dd"},no:{year:"åååå",month:"mm",day:"dd"},oc:{year:"aaaa",month:"mm",day:"jj"},pl:{year:"rrrr",month:"mm",day:"dd"},pt:{year:"aaaa",month:"mm",day:"dd"},rm:{year:"oooo",month:"mm",day:"dd"},ro:{year:"aaaa",month:"ll",day:"zz"},ru:{year:"гггг",month:"мм",day:"дд"},sc:{year:"aaaa",month:"mm",day:"dd"},scn:{year:"aaaa",month:"mm",day:"jj"},sk:{year:"rrrr",month:"mm",day:"dd"},sl:{year:"llll",month:"mm",day:"dd"},sr:{year:"гггг",month:"мм",day:"дд"},sv:{year:"åååå",month:"mm",day:"dd"},szl:{year:"rrrr",month:"mm",day:"dd"},tg:{year:"сссс",month:"мм",day:"рр"},th:{year:"ปปปป",month:"ดด",day:"วว"},tr:{year:"yyyy",month:"aa",day:"gg"},uk:{year:"рррр",month:"мм",day:"дд"},"zh-CN":{year:"年",month:"月",day:"日"},"zh-TW":{year:"年",month:"月",day:"日"}},"en"),io={year:!0,month:!0,day:!0,hour:!0,minute:!0,second:!0,dayPeriod:!0,era:!0},ao={year:5,month:2,day:7,hour:2,minute:15,second:15},oo={dayperiod:"dayPeriod"};function so(e){let{locale:n,createCalendar:r,hideTimeZone:i,isDisabled:a=!1,isReadOnly:o=!1,isRequired:s=!1,minValue:l,maxValue:u,isDateUnavailable:c}=e,d=e.value||e.defaultValue||e.placeholderValue||null,[p,h]=eo(d,e.granularity),f=h||"UTC";if(d&&!(p in d))throw new Error("Invalid granularity "+p+" for value "+d.toString());let m=t.useMemo((()=>new Gt(n)),[n]),g=t.useMemo((()=>r(m.resolvedOptions().calendar)),[r,m]);var y;let[v,b]=cr(e.value,null!==(y=e.defaultValue)&&void 0!==y?y:null,e.onChange),x=t.useMemo((()=>{var e;return null!==(e=Xa(v,g))&&void 0!==e?e:null}),[v,g]),[w,E]=t.useState((()=>Qa(e.placeholderValue,p,g,h))),k=x||w,S="gregory"===g.identifier&&"BC"===k.era,D=t.useMemo((()=>{var t;return{granularity:p,maxGranularity:null!==(t=e.maxGranularity)&&void 0!==t?t:"year",timeZone:h,hideTimeZone:i,hourCycle:e.hourCycle,showEra:S,shouldForceLeadingZeros:e.shouldForceLeadingZeros}}),[e.maxGranularity,p,e.hourCycle,e.shouldForceLeadingZeros,h,i,S]),j=t.useMemo((()=>Ya({},D)),[D]),C=t.useMemo((()=>new Gt(n,j)),[n,j]),R=t.useMemo((()=>C.resolvedOptions()),[C]),P=t.useMemo((()=>C.formatToParts(new Date).filter((e=>io[e.type])).reduce(((e,t)=>(e[t.type]=!0,e)),{})),[C]),[$,T]=t.useState((()=>e.value||e.defaultValue?{...P}:{})),_=t.useRef(null),M=t.useRef(g.identifier);t.useEffect((()=>{g.identifier!==M.current&&(M.current=g.identifier,E((t=>Object.keys($).length>0?fe(t,g):Qa(e.placeholderValue,p,g,h))))}),[g,p,$,h,e.placeholderValue]),v&&Object.keys($).length<Object.keys(P).length&&($={...P},T($)),null==v&&Object.keys($).length===Object.keys(P).length&&($={},T($),E(Qa(e.placeholderValue,p,g,h)));let A=x&&Object.keys($).length>=Object.keys(P).length?x:w,O=t=>{if(e.isDisabled||e.isReadOnly)return;let n=Object.keys($),r=Object.keys(P);null==t?(b(null),E(Qa(e.placeholderValue,p,g,h)),T({})):n.length>=r.length||n.length===r.length-1&&P.dayPeriod&&!$.dayPeriod&&"dayPeriod"!==_.current?(t=fe(t,(null==d?void 0:d.calendar)||new I),b(t)):E(t),_.current=null},F=t.useMemo((()=>A.toDate(f)),[A,f]),L=t.useMemo((()=>C.formatToParts(F).map((e=>{let t=io[e.type];"era"===e.type&&1===g.getEras().length&&(t=!1);let r=io[e.type]&&!$[e.type],i=io[e.type]?(a=e.type,o=e.value,s=n,"era"===a||"dayPeriod"===a?o:"year"===a||"month"===a||"day"===a?ro.getStringForLocale(a,s):"––"):null;var a,o,s;return{type:oo[e.type]||e.type,text:r?i:e.value,...lo(A,e.type,R),isPlaceholder:r,placeholder:i,isEditable:t}}))),[F,$,C,R,A,g,n]);P.era&&$.year&&!$.era?($.era=!0,T({...$})):!P.era&&$.era&&(delete $.era,T({...$}));let V=e=>{$[e]=!0,"year"===e&&P.era&&($.era=!0),T({...$})},N=(e,t)=>{if($[e])O(function(e,t,n,r){switch(t){case"era":case"year":case"month":case"day":return e.cycle(t,n,{round:"year"===t})}if("hour"in e)switch(t){case"dayPeriod":{let t=e.hour,n=t>=12;return e.set({hour:n?t-12:t+12})}case"hour":case"minute":case"second":return e.cycle(t,n,{round:"hour"!==t,hourCycle:r.hour12?12:24})}throw new Error("Unknown segment: "+t)}(A,e,t,R));else{V(e);let t=Object.keys($),n=Object.keys(P);(t.length>=n.length||t.length===n.length-1&&P.dayPeriod&&!$.dayPeriod)&&O(A)}},z=t.useMemo((()=>Ha(v,l,u,c,D)),[v,l,u,c,D]),B=_a({...e,value:v,builtinValidation:z}),U=B.displayValidation.isInvalid,W=e.validationState||(U?"invalid":null);var q;return{...B,value:x,dateValue:F,calendar:g,setValue:O,segments:L,dateFormatter:C,validationState:W,isInvalid:U,granularity:p,maxGranularity:null!==(q=e.maxGranularity)&&void 0!==q?q:"year",isDisabled:a,isReadOnly:o,isRequired:s,increment(e){N(e,1)},decrement(e){N(e,-1)},incrementPage(e){N(e,ao[e]||1)},decrementPage(e){N(e,-(ao[e]||1))},setSegment(e,t){V(e),O(function(e,t,n,r){switch(t){case"day":case"month":case"year":case"era":return e.set({[t]:n})}if("hour"in e&&"number"==typeof n)switch(t){case"dayPeriod":{let t=e.hour,r=t>=12;return n>=12===r?e:e.set({hour:r?t-12:t+12})}case"hour":if(r.hour12){let t=e.hour>=12;t||12!==n||(n=0),t&&n<12&&(n+=12)}case"minute":case"second":return e.set({[t]:n})}throw new Error("Unknown segment: "+t)}(A,e,t,R))},confirmPlaceholder(){if(e.isDisabled||e.isReadOnly)return;let t=Object.keys($),n=Object.keys(P);t.length===n.length-1&&P.dayPeriod&&!$.dayPeriod&&($={...P},T($),O(A.copy()))},clearSegment(t){delete $[t],_.current=t,T({...$});let n=Qa(e.placeholderValue,p,g,h),r=A;if("dayPeriod"===t&&"hour"in A&&"hour"in n){let e=A.hour>=12,t=n.hour>=12;e&&!t?r=A.set({hour:A.hour-12}):!e&&t&&(r=A.set({hour:A.hour+12}))}else t in A&&(r=A.set({[t]:n[t]}));b(null),O(r)},formatValue(e){if(!x)return"";let t=Ya(e,D);return new Gt(n,t).format(F)},getDateFormatter(e,t){let n=Ya({},{...D,...t});return new Gt(e,n)}}}function lo(e,t,n){switch(t){case"era":{let t=e.calendar.getEras();return{value:t.indexOf(e.era),minValue:0,maxValue:t.length-1}}case"year":return{value:e.year,minValue:1,maxValue:e.calendar.getYearsInEra(e)};case"month":return{value:e.month,minValue:Y(e),maxValue:e.calendar.getMonthsInYear(e)};case"day":return{value:e.day,minValue:J(e),maxValue:e.calendar.getDaysInMonth(e)}}if("hour"in e)switch(t){case"dayPeriod":return{value:e.hour>=12?12:0,minValue:0,maxValue:12};case"hour":if(n.hour12){let t=e.hour>=12;return{value:e.hour,minValue:t?12:0,maxValue:t?23:11}}return{value:e.hour,minValue:0,maxValue:23};case"minute":return{value:e.minute,minValue:0,maxValue:59};case"second":return{value:e.second,minValue:0,maxValue:59}}return{}}function uo(e){return null!=(null==e?void 0:e.start)&&null!=e.end}function co(e,t=B(H())){return e?"day"in e?e:pe(t,e):null}var po;function ho(e){return e&&e.__esModule?e.default:e}po={"ar-AE":{dateRange:e=>`${e.startDate} إلى ${e.endDate}`,dateSelected:e=>`${e.date} المحدد`,finishRangeSelectionPrompt:"انقر لإنهاء عملية تحديد نطاق التاريخ",maximumDate:"آخر تاريخ متاح",minimumDate:"أول تاريخ متاح",next:"التالي",previous:"السابق",selectedDateDescription:e=>`تاريخ محدد: ${e.date}`,selectedRangeDescription:e=>`المدى الزمني المحدد: ${e.dateRange}`,startRangeSelectionPrompt:"انقر لبدء عملية تحديد نطاق التاريخ",todayDate:e=>`اليوم، ${e.date}`,todayDateSelected:e=>`اليوم، ${e.date} محدد`},"bg-BG":{dateRange:e=>`${e.startDate} до ${e.endDate}`,dateSelected:e=>`Избрано е ${e.date}`,finishRangeSelectionPrompt:"Натиснете, за да довършите избора на времеви интервал",maximumDate:"Последна налична дата",minimumDate:"Първа налична дата",next:"Напред",previous:"Назад",selectedDateDescription:e=>`Избрана дата: ${e.date}`,selectedRangeDescription:e=>`Избран диапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Натиснете, за да пристъпите към избора на времеви интервал",todayDate:e=>`Днес, ${e.date}`,todayDateSelected:e=>`Днес, ${e.date} са избрани`},"cs-CZ":{dateRange:e=>`${e.startDate} až ${e.endDate}`,dateSelected:e=>`Vybráno ${e.date}`,finishRangeSelectionPrompt:"Kliknutím dokončíte výběr rozsahu dat",maximumDate:"Poslední dostupné datum",minimumDate:"První dostupné datum",next:"Další",previous:"Předchozí",selectedDateDescription:e=>`Vybrané datum: ${e.date}`,selectedRangeDescription:e=>`Vybrané období: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknutím zahájíte výběr rozsahu dat",todayDate:e=>`Dnes, ${e.date}`,todayDateSelected:e=>`Dnes, vybráno ${e.date}`},"da-DK":{dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klik for at fuldføre valg af datoområde",maximumDate:"Sidste ledige dato",minimumDate:"Første ledige dato",next:"Næste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.dateRange}`,startRangeSelectionPrompt:"Klik for at starte valg af datoområde",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`},"de-DE":{dateRange:e=>`${e.startDate} bis ${e.endDate}`,dateSelected:e=>`${e.date} ausgewählt`,finishRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beenden",maximumDate:"Letztes verfügbares Datum",minimumDate:"Erstes verfügbares Datum",next:"Weiter",previous:"Zurück",selectedDateDescription:e=>`Ausgewähltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgewählter Bereich: ${e.dateRange}`,startRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beginnen",todayDate:e=>`Heute, ${e.date}`,todayDateSelected:e=>`Heute, ${e.date} ausgewählt`},"el-GR":{dateRange:e=>`${e.startDate} έως ${e.endDate}`,dateSelected:e=>`Επιλέχθηκε ${e.date}`,finishRangeSelectionPrompt:"Κάντε κλικ για να ολοκληρώσετε την επιλογή εύρους ημερομηνιών",maximumDate:"Τελευταία διαθέσιμη ημερομηνία",minimumDate:"Πρώτη διαθέσιμη ημερομηνία",next:"Επόμενο",previous:"Προηγούμενο",selectedDateDescription:e=>`Επιλεγμένη ημερομηνία: ${e.date}`,selectedRangeDescription:e=>`Επιλεγμένο εύρος: ${e.dateRange}`,startRangeSelectionPrompt:"Κάντε κλικ για να ξεκινήσετε την επιλογή εύρους ημερομηνιών",todayDate:e=>`Σήμερα, ${e.date}`,todayDateSelected:e=>`Σήμερα, επιλέχτηκε ${e.date}`},"en-US":{previous:"Previous",next:"Next",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.dateRange}`,todayDate:e=>`Today, ${e.date}`,todayDateSelected:e=>`Today, ${e.date} selected`,dateSelected:e=>`${e.date} selected`,startRangeSelectionPrompt:"Click to start selecting date range",finishRangeSelectionPrompt:"Click to finish selecting date range",minimumDate:"First available date",maximumDate:"Last available date",dateRange:e=>`${e.startDate} to ${e.endDate}`},"es-ES":{dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} seleccionado`,finishRangeSelectionPrompt:"Haga clic para terminar de seleccionar rango de fechas",maximumDate:"Última fecha disponible",minimumDate:"Primera fecha disponible",next:"Siguiente",previous:"Anterior",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo seleccionado: ${e.dateRange}`,startRangeSelectionPrompt:"Haga clic para comenzar a seleccionar un rango de fechas",todayDate:e=>`Hoy, ${e.date}`,todayDateSelected:e=>`Hoy, ${e.date} seleccionado`},"et-EE":{dateRange:e=>`${e.startDate} kuni ${e.endDate}`,dateSelected:e=>`${e.date} valitud`,finishRangeSelectionPrompt:"Klõpsake kuupäevavahemiku valimise lõpetamiseks",maximumDate:"Viimane saadaolev kuupäev",minimumDate:"Esimene saadaolev kuupäev",next:"Järgmine",previous:"Eelmine",selectedDateDescription:e=>`Valitud kuupäev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.dateRange}`,startRangeSelectionPrompt:"Klõpsake kuupäevavahemiku valimiseks",todayDate:e=>`Täna, ${e.date}`,todayDateSelected:e=>`Täna, ${e.date} valitud`},"fi-FI":{dateRange:e=>`${e.startDate} – ${e.endDate}`,dateSelected:e=>`${e.date} valittu`,finishRangeSelectionPrompt:"Lopeta päivämääräalueen valinta napsauttamalla tätä.",maximumDate:"Viimeinen varattavissa oleva päivämäärä",minimumDate:"Ensimmäinen varattavissa oleva päivämäärä",next:"Seuraava",previous:"Edellinen",selectedDateDescription:e=>`Valittu päivämäärä: ${e.date}`,selectedRangeDescription:e=>`Valittu aikaväli: ${e.dateRange}`,startRangeSelectionPrompt:"Aloita päivämääräalueen valinta napsauttamalla tätä.",todayDate:e=>`Tänään, ${e.date}`,todayDateSelected:e=>`Tänään, ${e.date} valittu`},"fr-FR":{dateRange:e=>`${e.startDate} à ${e.endDate}`,dateSelected:e=>`${e.date} sélectionné`,finishRangeSelectionPrompt:"Cliquer pour finir de sélectionner la plage de dates",maximumDate:"Dernière date disponible",minimumDate:"Première date disponible",next:"Suivant",previous:"Précédent",selectedDateDescription:e=>`Date sélectionnée : ${e.date}`,selectedRangeDescription:e=>`Plage sélectionnée : ${e.dateRange}`,startRangeSelectionPrompt:"Cliquer pour commencer à sélectionner la plage de dates",todayDate:e=>`Aujourd'hui, ${e.date}`,todayDateSelected:e=>`Aujourd’hui, ${e.date} sélectionné`},"he-IL":{dateRange:e=>`${e.startDate} עד ${e.endDate}`,dateSelected:e=>`${e.date} נבחר`,finishRangeSelectionPrompt:"חץ כדי לסיים את בחירת טווח התאריכים",maximumDate:"תאריך פנוי אחרון",minimumDate:"תאריך פנוי ראשון",next:"הבא",previous:"הקודם",selectedDateDescription:e=>`תאריך נבחר: ${e.date}`,selectedRangeDescription:e=>`טווח נבחר: ${e.dateRange}`,startRangeSelectionPrompt:"לחץ כדי להתחיל בבחירת טווח התאריכים",todayDate:e=>`היום, ${e.date}`,todayDateSelected:e=>`היום, ${e.date} נבחר`},"hr-HR":{dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} odabran`,finishRangeSelectionPrompt:"Kliknite da dovršite raspon odabranih datuma",maximumDate:"Posljednji raspoloživi datum",minimumDate:"Prvi raspoloživi datum",next:"Sljedeći",previous:"Prethodni",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da započnete raspon odabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, odabran ${e.date}`},"hu-HU":{dateRange:e=>`${e.startDate}–${e.endDate}`,dateSelected:e=>`${e.date} kiválasztva`,finishRangeSelectionPrompt:"Kattintson a dátumtartomány kijelölésének befejezéséhez",maximumDate:"Utolsó elérhető dátum",minimumDate:"Az első elérhető dátum",next:"Következő",previous:"Előző",selectedDateDescription:e=>`Kijelölt dátum: ${e.date}`,selectedRangeDescription:e=>`Kijelölt tartomány: ${e.dateRange}`,startRangeSelectionPrompt:"Kattintson a dátumtartomány kijelölésének indításához",todayDate:e=>`Ma, ${e.date}`,todayDateSelected:e=>`Ma, ${e.date} kijelölve`},"it-IT":{dateRange:e=>`Da ${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selezionata`,finishRangeSelectionPrompt:"Fai clic per completare la selezione dell’intervallo di date",maximumDate:"Ultima data disponibile",minimumDate:"Prima data disponibile",next:"Successivo",previous:"Precedente",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: ${e.dateRange}`,startRangeSelectionPrompt:"Fai clic per selezionare l’intervallo di date",todayDate:e=>`Oggi, ${e.date}`,todayDateSelected:e=>`Oggi, ${e.date} selezionata`},"ja-JP":{dateRange:e=>`${e.startDate} から ${e.endDate}`,dateSelected:e=>`${e.date} を選択`,finishRangeSelectionPrompt:"クリックして日付範囲の選択を終了",maximumDate:"最終利用可能日",minimumDate:"最初の利用可能日",next:"次へ",previous:"前へ",selectedDateDescription:e=>`選択した日付 : ${e.date}`,selectedRangeDescription:e=>`選択範囲 : ${e.dateRange}`,startRangeSelectionPrompt:"クリックして日付範囲の選択を開始",todayDate:e=>`本日、${e.date}`,todayDateSelected:e=>`本日、${e.date} を選択`},"ko-KR":{dateRange:e=>`${e.startDate} ~ ${e.endDate}`,dateSelected:e=>`${e.date} 선택됨`,finishRangeSelectionPrompt:"날짜 범위 선택을 완료하려면 클릭하십시오.",maximumDate:"마지막으로 사용 가능한 일자",minimumDate:"처음으로 사용 가능한 일자",next:"다음",previous:"이전",selectedDateDescription:e=>`선택 일자: ${e.date}`,selectedRangeDescription:e=>`선택 범위: ${e.dateRange}`,startRangeSelectionPrompt:"날짜 범위 선택을 시작하려면 클릭하십시오.",todayDate:e=>`오늘, ${e.date}`,todayDateSelected:e=>`오늘, ${e.date} 선택됨`},"lt-LT":{dateRange:e=>`Nuo ${e.startDate} iki ${e.endDate}`,dateSelected:e=>`Pasirinkta ${e.date}`,finishRangeSelectionPrompt:"Spustelėkite, kad baigtumėte pasirinkti datų intervalą",maximumDate:"Paskutinė galima data",minimumDate:"Pirmoji galima data",next:"Paskesnis",previous:"Ankstesnis",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: ${e.dateRange}`,startRangeSelectionPrompt:"Spustelėkite, kad pradėtumėte pasirinkti datų intervalą",todayDate:e=>`Šiandien, ${e.date}`,todayDateSelected:e=>`Šiandien, pasirinkta ${e.date}`},"lv-LV":{dateRange:e=>`No ${e.startDate} līdz ${e.endDate}`,dateSelected:e=>`Atlasīts: ${e.date}`,finishRangeSelectionPrompt:"Noklikšķiniet, lai pabeigtu datumu diapazona atlasi",maximumDate:"Pēdējais pieejamais datums",minimumDate:"Pirmais pieejamais datums",next:"Tālāk",previous:"Atpakaļ",selectedDateDescription:e=>`Atlasītais datums: ${e.date}`,selectedRangeDescription:e=>`Atlasītais diapazons: ${e.dateRange}`,startRangeSelectionPrompt:"Noklikšķiniet, lai sāktu datumu diapazona atlasi",todayDate:e=>`Šodien, ${e.date}`,todayDateSelected:e=>`Atlasīta šodiena, ${e.date}`},"nb-NO":{dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klikk for å fullføre valg av datoområde",maximumDate:"Siste tilgjengelige dato",minimumDate:"Første tilgjengelige dato",next:"Neste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt område: ${e.dateRange}`,startRangeSelectionPrompt:"Klikk for å starte valg av datoområde",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`},"nl-NL":{dateRange:e=>`${e.startDate} tot ${e.endDate}`,dateSelected:e=>`${e.date} geselecteerd`,finishRangeSelectionPrompt:"Klik om de selectie van het datumbereik te voltooien",maximumDate:"Laatste beschikbare datum",minimumDate:"Eerste beschikbare datum",next:"Volgende",previous:"Vorige",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.dateRange}`,startRangeSelectionPrompt:"Klik om het datumbereik te selecteren",todayDate:e=>`Vandaag, ${e.date}`,todayDateSelected:e=>`Vandaag, ${e.date} geselecteerd`},"pl-PL":{dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`Wybrano ${e.date}`,finishRangeSelectionPrompt:"Kliknij, aby zakończyć wybór zakresu dat",maximumDate:"Ostatnia dostępna data",minimumDate:"Pierwsza dostępna data",next:"Dalej",previous:"Wstecz",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknij, aby rozpocząć wybór zakresu dat",todayDate:e=>`Dzisiaj, ${e.date}`,todayDateSelected:e=>`Dzisiaj wybrano ${e.date}`},"pt-BR":{dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para concluir a seleção do intervalo de datas",maximumDate:"Última data disponível",minimumDate:"Primeira data disponível",next:"Próximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para iniciar a seleção do intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`},"pt-PT":{dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para terminar de selecionar o intervalo de datas",maximumDate:"Última data disponível",minimumDate:"Primeira data disponível",next:"Próximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para começar a selecionar o intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`},"ro-RO":{dateRange:e=>`De la ${e.startDate} până la ${e.endDate}`,dateSelected:e=>`${e.date} selectată`,finishRangeSelectionPrompt:"Apăsaţi pentru a finaliza selecţia razei pentru dată",maximumDate:"Ultima dată disponibilă",minimumDate:"Prima dată disponibilă",next:"Următorul",previous:"Înainte",selectedDateDescription:e=>`Dată selectată: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: ${e.dateRange}`,startRangeSelectionPrompt:"Apăsaţi pentru a începe selecţia razei pentru dată",todayDate:e=>`Astăzi, ${e.date}`,todayDateSelected:e=>`Azi, ${e.date} selectată`},"ru-RU":{dateRange:e=>`С ${e.startDate} по ${e.endDate}`,dateSelected:e=>`Выбрано ${e.date}`,finishRangeSelectionPrompt:"Щелкните, чтобы завершить выбор диапазона дат",maximumDate:"Последняя доступная дата",minimumDate:"Первая доступная дата",next:"Далее",previous:"Назад",selectedDateDescription:e=>`Выбранная дата: ${e.date}`,selectedRangeDescription:e=>`Выбранный диапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Щелкните, чтобы начать выбор диапазона дат",todayDate:e=>`Сегодня, ${e.date}`,todayDateSelected:e=>`Сегодня, выбрано ${e.date}`},"sk-SK":{dateRange:e=>`Od ${e.startDate} do ${e.endDate}`,dateSelected:e=>`Vybratý dátum ${e.date}`,finishRangeSelectionPrompt:"Kliknutím dokončíte výber rozsahu dátumov",maximumDate:"Posledný dostupný dátum",minimumDate:"Prvý dostupný dátum",next:"Nasledujúce",previous:"Predchádzajúce",selectedDateDescription:e=>`Vybratý dátum: ${e.date}`,selectedRangeDescription:e=>`Vybratý rozsah: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknutím spustíte výber rozsahu dátumov",todayDate:e=>`Dnes ${e.date}`,todayDateSelected:e=>`Vybratý dnešný dátum ${e.date}`},"sl-SI":{dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izbrano`,finishRangeSelectionPrompt:"Kliknite za dokončanje izbire datumskega obsega",maximumDate:"Zadnji razpoložljivi datum",minimumDate:"Prvi razpoložljivi datum",next:"Naprej",previous:"Nazaj",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano območje: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite za začetek izbire datumskega obsega",todayDate:e=>`Danes, ${e.date}`,todayDateSelected:e=>`Danes, ${e.date} izbrano`},"sr-SP":{dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izabran`,finishRangeSelectionPrompt:"Kliknite da dovršite opseg izabranih datuma",maximumDate:"Zadnji raspoloživi datum",minimumDate:"Prvi raspoloživi datum",next:"Sledeći",previous:"Prethodni",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani period: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da započnete opseg izabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, izabran ${e.date}`},"sv-SE":{dateRange:e=>`${e.startDate} till ${e.endDate}`,dateSelected:e=>`${e.date} har valts`,finishRangeSelectionPrompt:"Klicka för att avsluta val av datumintervall",maximumDate:"Sista tillgängliga datum",minimumDate:"Första tillgängliga datum",next:"Nästa",previous:"Föregående",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.dateRange}`,startRangeSelectionPrompt:"Klicka för att välja datumintervall",todayDate:e=>`Idag, ${e.date}`,todayDateSelected:e=>`Idag, ${e.date} har valts`},"tr-TR":{dateRange:e=>`${e.startDate} - ${e.endDate}`,dateSelected:e=>`${e.date} seçildi`,finishRangeSelectionPrompt:"Tarih aralığı seçimini tamamlamak için tıklayın",maximumDate:"Son müsait tarih",minimumDate:"İlk müsait tarih",next:"Sonraki",previous:"Önceki",selectedDateDescription:e=>`Seçilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Seçilen Aralık: ${e.dateRange}`,startRangeSelectionPrompt:"Tarih aralığı seçimini başlatmak için tıklayın",todayDate:e=>`Bugün, ${e.date}`,todayDateSelected:e=>`Bugün, ${e.date} seçildi`},"uk-UA":{dateRange:e=>`${e.startDate} — ${e.endDate}`,dateSelected:e=>`Вибрано ${e.date}`,finishRangeSelectionPrompt:"Натисніть, щоб завершити вибір діапазону дат",maximumDate:"Остання доступна дата",minimumDate:"Перша доступна дата",next:"Наступний",previous:"Попередній",selectedDateDescription:e=>`Вибрана дата: ${e.date}`,selectedRangeDescription:e=>`Вибраний діапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Натисніть, щоб почати вибір діапазону дат",todayDate:e=>`Сьогодні, ${e.date}`,todayDateSelected:e=>`Сьогодні, вибрано ${e.date}`},"zh-CN":{dateRange:e=>`${e.startDate} 至 ${e.endDate}`,dateSelected:e=>`已选择 ${e.date}`,finishRangeSelectionPrompt:"单击以完成选择日期范围",maximumDate:"最后一个可用日期",minimumDate:"第一个可用日期",next:"下一页",previous:"上一页",selectedDateDescription:e=>`选定的日期:${e.date}`,selectedRangeDescription:e=>`选定的范围:${e.dateRange}`,startRangeSelectionPrompt:"单击以开始选择日期范围",todayDate:e=>`今天,即 ${e.date}`,todayDateSelected:e=>`已选择今天,即 ${e.date}`},"zh-TW":{dateRange:e=>`${e.startDate} 至 ${e.endDate}`,dateSelected:e=>`已選取 ${e.date}`,finishRangeSelectionPrompt:"按一下以完成選取日期範圍",maximumDate:"最後一個可用日期",minimumDate:"第一個可用日期",next:"下一頁",previous:"上一頁",selectedDateDescription:e=>`選定的日期:${e.date}`,selectedRangeDescription:e=>`選定的範圍:${e.dateRange}`,startRangeSelectionPrompt:"按一下以開始選取日期範圍",todayDate:e=>`今天,${e.date}`,todayDateSelected:e=>`已選取今天,${e.date}`}};const fo=new WeakMap;function mo(e){return"gregory"===(null==e?void 0:e.calendar.identifier)&&"BC"===e.era?"short":void 0}function go(e,n,r,i){let a=Qi(ho(po),"@react-aria/calendar"),o=mo(e)||mo(n),s=ea({month:"long",year:"numeric",era:o,calendar:e.calendar.identifier,timeZone:r}),l=ea({month:"long",year:"numeric",day:"numeric",era:o,calendar:e.calendar.identifier,timeZone:r});return t.useMemo((()=>{if(F(e,Z(e))){if(F(n,G(e)))return s.format(e.toDate(r));if(F(n,G(n)))return i?yo(s,a,e,n,r):s.formatRange(e.toDate(r),n.toDate(r))}return i?yo(l,a,e,n,r):l.formatRange(e.toDate(r),n.toDate(r))}),[e,n,s,l,a,r,i])}function yo(e,t,n,r,i){let a=e.formatRangeToParts(n.toDate(i),r.toDate(i)),o=-1;for(let u=0;u<a.length;u++){let e=a[u];if("shared"===e.source&&"literal"===e.type)o=u;else if("endRange"===e.source)break}let s="",l="";for(let u=0;u<a.length;u++)u<o?s+=a[u].value:u>o&&(l+=a[u].value);return t.format("dateRange",{startDate:s,endDate:l})}function vo(e,n){let r=Qi(po&&po.__esModule?po.default:po,"@react-aria/calendar"),i=Rn(e),a=go(n.visibleRange.start,n.visibleRange.end,n.timeZone,!1),o=go(n.visibleRange.start,n.visibleRange.end,n.timeZone,!0);Gn((()=>{n.isFocused||za(o)}),[o]);let s=function(e){let n,r,i=Qi(ho(po),"@react-aria/calendar");var a;"highlightedRange"in e?({start:n,end:r}=e.highlightedRange||{}):n=r=null!==(a=e.value)&&void 0!==a?a:void 0;let o=ea({weekday:"long",month:"long",year:"numeric",day:"numeric",era:mo(n)||mo(r),timeZone:e.timeZone}),s="anchorDate"in e?e.anchorDate:null;return t.useMemo((()=>{if(!s&&n&&r){if(F(n,r)){let t=o.format(n.toDate(e.timeZone));return i.format("selectedDateDescription",{date:t})}{let t=yo(o,i,n,r,e.timeZone);return i.format("selectedRangeDescription",{dateRange:t})}}return""}),[n,r,s,e.timeZone,i,o])}(n);Gn((()=>{s&&za(s,"polite",4e3)}),[s]);let l=yn([Boolean(e.errorMessage),e.isInvalid,e.validationState]);fo.set(n,{ariaLabel:e["aria-label"],ariaLabelledBy:e["aria-labelledby"],errorMessageId:l,selectedDateDescription:s});let[u,c]=t.useState(!1),d=e.isDisabled||n.isNextVisibleRangeInvalid();d&&u&&(c(!1),n.setFocused(!0));let[p,h]=t.useState(!1),f=e.isDisabled||n.isPreviousVisibleRangeInvalid();return f&&p&&(h(!1),n.setFocused(!0)),{calendarProps:kn(i,Zn({id:e.id,"aria-label":[e["aria-label"],o].filter(Boolean).join(", "),"aria-labelledby":e["aria-labelledby"]}),{role:"application","aria-describedby":e["aria-describedby"]||void 0}),nextButtonProps:{onPress:()=>n.focusNextPage(),"aria-label":r.format("next"),isDisabled:d,onFocusChange:c},prevButtonProps:{onPress:()=>n.focusPreviousPage(),"aria-label":r.format("previous"),isDisabled:f,onFocusChange:h},errorMessageProps:{id:l},title:a}}function bo(e,t){return vo(e,t)}function xo(e,t,n){return null!=t&&e.compare(t)<0||null!=n&&e.compare(n)>0}function wo(e,t,n,r,i){let a={};for(let o in t)a[o]=Math.floor(t[o]/2),a[o]>0&&t[o]%2==0&&a[o]--;return So(e,Eo(e,t,n).subtract(a),t,n,r,i)}function Eo(e,t,n,r,i){let a=e;return t.years?a=Z((o=e).subtract({months:o.month-1})):t.months?a=Z(e):t.weeks&&(a=X(e,n)),So(e,a,t,n,r,i);var o}function ko(e,t,n,r,i){let a={...t};return a.days?a.days--:a.weeks?a.weeks--:a.months?a.months--:a.years&&a.years--,So(e,Eo(e,t,n).subtract(a),t,n,r,i)}function So(e,t,n,r,i,a){if(i&&e.compare(i)>=0){let e=te(t,Eo(de(i),n,r));e&&(t=e)}if(a&&e.compare(a)<=0){let e=ee(t,ko(de(a),n,r));e&&(t=e)}return t}function Do(e,t,n){if(t){let n=te(e,de(t));n&&(e=n)}if(n){let t=ee(e,de(n));t&&(e=t)}return e}function jo(e,t,n){if(!n)return e;for(;e.compare(t)>=0&&n(e);)e=e.subtract({days:1});return e.compare(t)>=0?e:null}function Co(e){let n=t.useMemo((()=>new Gt(e.locale)),[e.locale]),r=t.useMemo((()=>n.resolvedOptions()),[n]),{locale:i,createCalendar:a,visibleDuration:o={months:1},minValue:s,maxValue:l,selectionAlignment:u,isDateUnavailable:c,pageBehavior:d="visible"}=e,p=t.useMemo((()=>a(r.calendar)),[a,r.calendar]);var h;let[f,m]=cr(e.value,null!==(h=e.defaultValue)&&void 0!==h?h:null,e.onChange),g=t.useMemo((()=>f?fe(de(f),p):null),[f,p]),y=t.useMemo((()=>f&&"timeZone"in f?f.timeZone:r.timeZone),[f,r.timeZone]),v=t.useMemo((()=>e.focusedValue?Do(fe(de(e.focusedValue),p),s,l):void 0),[e.focusedValue,p,s,l]),b=t.useMemo((()=>Do(e.defaultFocusedValue?fe(de(e.defaultFocusedValue),p):g||fe(B(y),p),s,l)),[e.defaultFocusedValue,g,y,p,s,l]),[x,w]=cr(v,b,e.onFocusChange),[E,k]=t.useState((()=>{switch(u){case"start":return Eo(x,o,i,s,l);case"end":return ko(x,o,i,s,l);default:return wo(x,o,i,s,l)}})),[S,D]=t.useState(e.autoFocus||!1),j=t.useMemo((()=>{let e={...o};return e.days?e.days--:e.days=-1,E.add(e)}),[E,o]),[C,R]=t.useState(p.identifier);if(p.identifier!==C){let e=fe(x,p);k(wo(e,o,i,s,l)),w(e),R(p.identifier)}function P(e){e=Do(e,s,l),w(e)}function $(t){if(!e.isDisabled&&!e.isReadOnly){let e=t;if(null===e)return void m(null);if(e=Do(e,s,l),e=jo(e,E,c),!e)return;e=fe(e,(null==f?void 0:f.calendar)||new I),m(f&&"hour"in f?f.set(e):e)}}xo(x,s,l)?w(Do(x,s,l)):x.compare(E)<0?k(ko(x,o,i,s,l)):x.compare(j)>0&&k(Eo(x,o,i,s,l));let T=t.useMemo((()=>!!g&&(!(!c||!c(g))||xo(g,s,l))),[g,c,s,l]),_=e.isInvalid||"invalid"===e.validationState||T,M=_?"invalid":null,A=t.useMemo((()=>"visible"===d?o:Ro(o)),[d,o]);var O,L;return{isDisabled:null!==(O=e.isDisabled)&&void 0!==O&&O,isReadOnly:null!==(L=e.isReadOnly)&&void 0!==L&&L,value:g,setValue:$,visibleRange:{start:E,end:j},minValue:s,maxValue:l,focusedDate:x,timeZone:y,validationState:M,isValueInvalid:_,setFocusedDate(e){P(e),D(!0)},focusNextDay(){P(x.add({days:1}))},focusPreviousDay(){P(x.subtract({days:1}))},focusNextRow(){o.days?this.focusNextPage():(o.weeks||o.months||o.years)&&P(x.add({weeks:1}))},focusPreviousRow(){o.days?this.focusPreviousPage():(o.weeks||o.months||o.years)&&P(x.subtract({weeks:1}))},focusNextPage(){let e=E.add(A);w(Do(x.add(A),s,l)),k(Eo(So(x,e,A,i,s,l),A,i))},focusPreviousPage(){let e=E.subtract(A);w(Do(x.subtract(A),s,l)),k(Eo(So(x,e,A,i,s,l),A,i))},focusSectionStart(){o.days?P(E):o.weeks?P(X(x,i)):(o.months||o.years)&&P(Z(x))},focusSectionEnd(){o.days?P(j):o.weeks?P(X(x,i).add({days:6})):(o.months||o.years)&&P(G(x))},focusNextSection(e){e||o.days?o.days?this.focusNextPage():o.weeks?P(x.add({months:1})):(o.months||o.years)&&P(x.add({years:1})):P(x.add(Ro(o)))},focusPreviousSection(e){e||o.days?o.days?this.focusPreviousPage():o.weeks?P(x.subtract({months:1})):(o.months||o.years)&&P(x.subtract({years:1})):P(x.subtract(Ro(o)))},selectFocusedDate(){$(x)},selectDate(e){$(e)},isFocused:S,setFocused:D,isInvalid:e=>xo(e,s,l),isSelected(e){return null!=g&&F(e,g)&&!this.isCellDisabled(e)&&!this.isCellUnavailable(e)},isCellFocused:e=>S&&x&&F(e,x),isCellDisabled(t){return e.isDisabled||t.compare(E)<0||t.compare(j)>0||this.isInvalid(t)},isCellUnavailable:t=>!!e.isDateUnavailable&&e.isDateUnavailable(t),isPreviousVisibleRangeInvalid(){let e=E.subtract({days:1});return F(e,E)||this.isInvalid(e)},isNextVisibleRangeInvalid(){let e=j.add({days:1});return F(e,j)||this.isInvalid(e)},getDatesInWeek(e,t=E){let n=t.add({weeks:e}),r=[];n=X(n,i);let a=N(n,i);for(let i=0;i<a;i++)r.push(null);for(;r.length<7;){r.push(n);let e=n.add({days:1});if(F(n,e))break;n=e}for(;r.length<7;)r.push(null);return r}}}function Ro(e){let t={...e};for(let n in e)t[n]=1;return t}function Po(e,t){return e&&t?(t.compare(e)<0&&([e,t]=[t,e]),{start:de(e),end:de(t)}):null}function $o(e,t){return e=fe(e,(null==t?void 0:t.calendar)||new I),t&&"hour"in t?t.set(e):e}function To(e,t,n){let r=e.add({days:n});for(;(n<0?r.compare(t.visibleRange.start)>=0:r.compare(t.visibleRange.end)<=0)&&!t.isCellUnavailable(r);)r=r.add({days:n});if(t.isCellUnavailable(r))return r.add({days:-n})}var _o,Mo,Ao=Mo?_o:(Mo=1,_o=function(e){return null===e});const Io=e.getDefaultExportFromCjs(Ao),Oo=n.styled.div`
|
|
33
|
+
`;function P(e,t){return e-t*Math.floor(e/t)}function $(e,t,n,r){let i=(t=_(e,t))-1,a=-2;return n<=2?a=0:T(t)&&(a=-1),1721425+365*i+Math.floor(i/4)-Math.floor(i/100)+Math.floor(i/400)+Math.floor((367*n-362)/12+a+r)}function T(e){return e%4==0&&(e%100!=0||e%400==0)}function _(e,t){return"BC"===e?1-t:t}function M(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}const A={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]};class I{fromJulianDay(e){let t=e,n=t-1721426,r=Math.floor(n/146097),i=P(n,146097),a=Math.floor(i/36524),o=P(i,36524),s=Math.floor(o/1461),l=P(o,1461),u=Math.floor(l/365),c=400*r+100*a+4*s+u+(4!==a&&4!==u?1:0),[d,p]=M(c),h=t-$(d,p,1,1),f=2;t<$(d,p,3,1)?f=0:T(p)&&(f=1);let m=Math.floor((12*(h+f)+373)/367),g=t-$(d,p,m,1)+1;return new Ue(d,p,m,g)}toJulianDay(e){return $(e.era,e.year,e.month,e.day)}getDaysInMonth(e){return A[T(e.year)?"leapyear":"standard"][e.month-1]}getMonthsInYear(e){return 12}getDaysInYear(e){return T(e.year)?366:365}getYearsInEra(e){return 9999}getEras(){return["BC","AD"]}isInverseEra(e){return"BC"===e.era}balanceDate(e){e.year<=0&&(e.era="BC"===e.era?"AD":"BC",e.year=1-e.year)}constructor(){this.identifier="gregory"}}const O={"001":1,AD:1,AE:6,AF:6,AI:1,AL:1,AM:1,AN:1,AR:1,AT:1,AU:1,AX:1,AZ:1,BA:1,BE:1,BG:1,BH:6,BM:1,BN:1,BY:1,CH:1,CL:1,CM:1,CN:1,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DZ:6,EC:1,EE:1,EG:6,ES:1,FI:1,FJ:1,FO:1,FR:1,GB:1,GE:1,GF:1,GP:1,GR:1,HR:1,HU:1,IE:1,IQ:6,IR:6,IS:1,IT:1,JO:6,KG:1,KW:6,KZ:1,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MK:1,MN:1,MQ:1,MV:5,MY:1,NL:1,NO:1,NZ:1,OM:6,PL:1,QA:6,RE:1,RO:1,RS:1,RU:1,SD:6,SE:1,SI:1,SK:1,SM:1,SY:6,TJ:1,TM:1,TR:1,UA:1,UY:1,UZ:1,VA:1,VN:1,XK:1};function F(e,t){return t=fe(t,e.calendar),e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function L(e,t){return e.calendar.identifier===t.calendar.identifier&&e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function V(e,t){return F(e,B(t))}function N(e,t){let n=e.calendar.toJulianDay(e),r=Math.ceil(n+1-function(e){let t=function(e){if(Intl.Locale){let t=Q.get(e);return t||(t=new Intl.Locale(e).maximize().region,t&&Q.set(e,t)),t}let t=e.split("-")[1];return"u"===t?void 0:t}(e);return t&&O[t]||0}(t))%7;return r<0&&(r+=7),r}function z(e){return ce(Date.now(),e)}function B(e){return de(z(e))}function U(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function W(e,t){return q(e)-q(t)}function q(e){return 36e5*e.hour+6e4*e.minute+1e3*e.second+e.millisecond}let K=null;function H(){return null==K&&(K=(new Intl.DateTimeFormat).resolvedOptions().timeZone),K}function Z(e){return e.subtract({days:e.day-1})}function G(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})}function Y(e){return e.calendar.getMinimumMonthInYear?e.calendar.getMinimumMonthInYear(e):1}function J(e){return e.calendar.getMinimumDayInMonth?e.calendar.getMinimumDayInMonth(e):1}function X(e,t){let n=N(e,t);return e.subtract({days:n})}const Q=new Map;function ee(e,t){return e&&t?e.compare(t)<=0?e:t:e||t}function te(e,t){return e&&t?e.compare(t)>=0?e:t:e||t}function ne(e){return re(_((e=fe(e,new I)).era,e.year),e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function re(e,t,n,r,i,a,o){let s=new Date;return s.setUTCHours(r,i,a,o),s.setUTCFullYear(e,t-1,n),s.getTime()}function ie(e,t){if("UTC"===t)return 0;if(e>0&&t===H())return-6e4*new Date(e).getTimezoneOffset();let{year:n,month:r,day:i,hour:a,minute:o,second:s}=oe(e,t);return re(n,r,i,a,o,s,0)-1e3*Math.floor(e/1e3)}const ae=new Map;function oe(e,t){let n=ae.get(t);n||(n=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),ae.set(t,n));let r=n.formatToParts(new Date(e)),i={};for(let a of r)"literal"!==a.type&&(i[a.type]=a.value);return{year:"BC"===i.era||"B"===i.era?1-i.year:+i.year,month:+i.month,day:+i.day,hour:"24"===i.hour?0:+i.hour,minute:+i.minute,second:+i.second}}const se=864e5;function le(e,t,n="compatible"){let r=pe(e);if("UTC"===t)return ne(r);if(t===H()&&"compatible"===n){r=fe(r,new I);let e=new Date,t=_(r.era,r.year);return e.setFullYear(t,r.month-1,r.day),e.setHours(r.hour,r.minute,r.second,r.millisecond),e.getTime()}let i=ne(r),a=ie(i-se,t),o=ie(i+se,t),s=function(e,t,n,r){return(n===r?[n]:[n,r]).filter((n=>function(e,t,n){let r=oe(n,t);return e.year===r.year&&e.month===r.month&&e.day===r.day&&e.hour===r.hour&&e.minute===r.minute&&e.second===r.second}(e,t,n)))}(r,t,i-a,i-o);if(1===s.length)return s[0];if(s.length>1)switch(n){case"compatible":case"earlier":return s[0];case"later":return s[s.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(n){case"earlier":return Math.min(i-a,i-o);case"compatible":case"later":return Math.max(i-a,i-o);case"reject":throw new RangeError("No such absolute time found")}}function ue(e,t,n="compatible"){return new Date(le(e,t,n))}function ce(e,t){let n=ie(e,t),r=new Date(e+n),i=r.getUTCFullYear(),a=r.getUTCMonth()+1,o=r.getUTCDate(),s=r.getUTCHours(),l=r.getUTCMinutes(),u=r.getUTCSeconds(),c=r.getUTCMilliseconds();return new Ge(i<1?"BC":"AD",i<1?1-i:i,a,o,t,n,s,l,u,c)}function de(e){return new Ue(e.calendar,e.era,e.year,e.month,e.day)}function pe(e,t){let n=0,r=0,i=0,a=0;if("timeZone"in e)({hour:n,minute:r,second:i,millisecond:a}=e);else if("hour"in e&&!t)return e;return t&&({hour:n,minute:r,second:i,millisecond:a}=t),new He(e.calendar,e.era,e.year,e.month,e.day,n,r,i,a)}function he(e){return new qe(e.hour,e.minute,e.second,e.millisecond)}function fe(e,t){if(e.calendar.identifier===t.identifier)return e;let n=t.fromJulianDay(e.calendar.toJulianDay(e)),r=e.copy();return r.calendar=t,r.era=n.era,r.year=n.year,r.month=n.month,r.day=n.day,we(r),r}function me(e,t,n){return e instanceof Ge?e.timeZone===t?e:(i=t,fe(ce(ne(r=e)-r.offset,i),r.calendar)):ce(le(e,t,n),t);var r,i}const ge=36e5;function ye(e,t){let n=e.copy(),r="hour"in n?Re(n,t):0;ve(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,be(n),xe(n),n.day+=7*(t.weeks||0),n.day+=t.days||0,n.day+=r,function(e){for(;e.day<1;)e.month--,be(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,be(e)}(n),n.calendar.balanceDate&&n.calendar.balanceDate(n),n.year<1&&(n.year=1,n.month=1,n.day=1);let i=n.calendar.getYearsInEra(n);if(n.year>i){var a,o;let e=null===(a=(o=n.calendar).isInverseEra)||void 0===a?void 0:a.call(o,n);n.year=i,n.month=e?1:n.calendar.getMonthsInYear(n),n.day=e?1:n.calendar.getDaysInMonth(n)}n.month<1&&(n.month=1,n.day=1);let s=n.calendar.getMonthsInYear(n);return n.month>s&&(n.month=s,n.day=n.calendar.getDaysInMonth(n)),n.day=Math.max(1,Math.min(n.calendar.getDaysInMonth(n),n.day)),n}function ve(e,t){var n,r;(null===(n=(r=e.calendar).isInverseEra)||void 0===n?void 0:n.call(r,e))&&(t=-t),e.year+=t}function be(e){for(;e.month<1;)ve(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,ve(e,1)}function xe(e){e.month=Math.max(1,Math.min(e.calendar.getMonthsInYear(e),e.month)),e.day=Math.max(1,Math.min(e.calendar.getDaysInMonth(e),e.day))}function we(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),xe(e)}function Ee(e){let t={};for(let n in e)"number"==typeof e[n]&&(t[n]=-e[n]);return t}function ke(e,t){return ye(e,Ee(t))}function Se(e,t){let n=e.copy();return null!=t.era&&(n.era=t.era),null!=t.year&&(n.year=t.year),null!=t.month&&(n.month=t.month),null!=t.day&&(n.day=t.day),we(n),n}function De(e,t){let n=e.copy();return null!=t.hour&&(n.hour=t.hour),null!=t.minute&&(n.minute=t.minute),null!=t.second&&(n.second=t.second),null!=t.millisecond&&(n.millisecond=t.millisecond),je(n),n}function je(e){e.millisecond=Math.max(0,Math.min(e.millisecond,1e3)),e.second=Math.max(0,Math.min(e.second,59)),e.minute=Math.max(0,Math.min(e.minute,59)),e.hour=Math.max(0,Math.min(e.hour,23))}function Ce(e,t){let n=e%t;return n<0&&(n+=t),n}function Re(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,function(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=Ce(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=Ce(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=Ce(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=Ce(e.hour,24),t}(e)}function Pe(e,t){let n=e.copy();return Re(n,t),n}function $e(e,t,n,r){let i=e.copy();switch(t){case"era":{let t=e.calendar.getEras(),a=t.indexOf(e.era);if(a<0)throw new Error("Invalid era: "+e.era);a=_e(a,n,0,t.length-1,null==r?void 0:r.round),i.era=t[a],we(i);break}case"year":var a,o;(null===(a=(o=i.calendar).isInverseEra)||void 0===a?void 0:a.call(o,i))&&(n=-n),i.year=_e(e.year,n,-1/0,9999,null==r?void 0:r.round),i.year===-1/0&&(i.year=1),i.calendar.balanceYearMonth&&i.calendar.balanceYearMonth(i,e);break;case"month":i.month=_e(e.month,n,1,e.calendar.getMonthsInYear(e),null==r?void 0:r.round);break;case"day":i.day=_e(e.day,n,1,e.calendar.getDaysInMonth(e),null==r?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(i),we(i),i}function Te(e,t,n,r){let i=e.copy();switch(t){case"hour":{let t=e.hour,a=0,o=23;if(12===(null==r?void 0:r.hourCycle)){let e=t>=12;a=e?12:0,o=e?23:11}i.hour=_e(t,n,a,o,null==r?void 0:r.round);break}case"minute":i.minute=_e(e.minute,n,0,59,null==r?void 0:r.round);break;case"second":i.second=_e(e.second,n,0,59,null==r?void 0:r.round);break;case"millisecond":i.millisecond=_e(e.millisecond,n,0,999,null==r?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return i}function _e(e,t,n,r,i=!1){if(i){(e+=Math.sign(t))<n&&(e=r);let i=Math.abs(t);(e=t>0?Math.ceil(e/i)*i:Math.floor(e/i)*i)>r&&(e=n)}else(e+=t)<n?e=r-(n-e-1):e>r&&(e=n+(e-r-1));return e}function Me(e,t){let n;return n=null!=t.years&&0!==t.years||null!=t.months&&0!==t.months||null!=t.weeks&&0!==t.weeks||null!=t.days&&0!==t.days?le(ye(pe(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days}),e.timeZone):ne(e)-e.offset,n+=t.milliseconds||0,n+=1e3*(t.seconds||0),n+=6e4*(t.minutes||0),n+=36e5*(t.hours||0),fe(ce(n,e.timeZone),e.calendar)}const Ae=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/;function Ie(e){let t=e.match(Ae);if(!t)throw new Error("Invalid ISO 8601 date string: "+e);let n=new Ue(Oe(t[1],0,9999),Oe(t[2],1,12),1);return n.day=Oe(t[3],0,n.calendar.getDaysInMonth(n)),n}function Oe(e,t,n){let r=Number(e);if(r<t||r>n)throw new RangeError(`Value out of range: ${t} <= ${r} <= ${n}`);return r}function Fe(e){return`${String(e.hour).padStart(2,"0")}:${String(e.minute).padStart(2,"0")}:${String(e.second).padStart(2,"0")}${e.millisecond?String(e.millisecond/1e3).slice(1):""}`}function Le(e){let t,n=fe(e,new I);return t="BC"===n.era?1===n.year?"0000":"-"+String(Math.abs(1-n.year)).padStart(6,"00"):String(n.year).padStart(4,"0"),`${t}-${String(n.month).padStart(2,"0")}-${String(n.day).padStart(2,"0")}`}function Ve(e){return`${Le(e)}T${Fe(e)}`}function Ne(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}function ze(e){let t,n="object"==typeof e[0]?e.shift():new I;if("string"==typeof e[0])t=e.shift();else{let e=n.getEras();t=e[e.length-1]}return[n,t,e.shift(),e.shift(),e.shift()]}var Be=new WeakMap;class Ue{copy(){return this.era?new Ue(this.calendar,this.era,this.year,this.month,this.day):new Ue(this.calendar,this.year,this.month,this.day)}add(e){return ye(this,e)}subtract(e){return ke(this,e)}set(e){return Se(this,e)}cycle(e,t,n){return $e(this,e,t,n)}toDate(e){return ue(this,e)}toString(){return Le(this)}compare(e){return U(this,e)}constructor(...e){Ne(this,Be,{writable:!0,value:void 0});let[t,n,r,i,a]=ze(e);this.calendar=t,this.era=n,this.year=r,this.month=i,this.day=a,we(this)}}var We=new WeakMap;class qe{copy(){return new qe(this.hour,this.minute,this.second,this.millisecond)}add(e){return Pe(this,e)}subtract(e){return Pe(this,Ee(e))}set(e){return De(this,e)}cycle(e,t,n){return Te(this,e,t,n)}toString(){return Fe(this)}compare(e){return W(this,e)}constructor(e=0,t=0,n=0,r=0){Ne(this,We,{writable:!0,value:void 0}),this.hour=e,this.minute=t,this.second=n,this.millisecond=r,je(this)}}var Ke=new WeakMap;class He{copy(){return this.era?new He(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new He(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(e){return ye(this,e)}subtract(e){return ke(this,e)}set(e){return Se(De(this,e),e)}cycle(e,t,n){switch(e){case"era":case"year":case"month":case"day":return $e(this,e,t,n);default:return Te(this,e,t,n)}}toDate(e,t){return ue(this,e,t)}toString(){return Ve(this)}compare(e){let t=U(this,e);return 0===t?W(this,pe(e)):t}constructor(...e){Ne(this,Ke,{writable:!0,value:void 0});let[t,n,r,i,a]=ze(e);this.calendar=t,this.era=n,this.year=r,this.month=i,this.day=a,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,we(this)}}var Ze=new WeakMap;class Ge{copy(){return this.era?new Ge(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new Ge(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(e){return Me(this,e)}subtract(e){return Me(this,Ee(e))}set(e,t){return function(e,t,n){let r=pe(e),i=De(Se(r,t),t);return 0===i.compare(r)?e:fe(ce(le(i,e.timeZone,n),e.timeZone),e.calendar)}(this,e,t)}cycle(e,t,n){return function(e,t,n,r){switch(t){case"hour":{let t=0,i=23;if(12===(null==r?void 0:r.hourCycle)){let n=e.hour>=12;t=n?12:0,i=n?23:11}let a=pe(e),o=fe(De(a,{hour:t}),new I),s=[le(o,e.timeZone,"earlier"),le(o,e.timeZone,"later")].filter((t=>ce(t,e.timeZone).day===o.day))[0],l=fe(De(a,{hour:i}),new I),u=[le(l,e.timeZone,"earlier"),le(l,e.timeZone,"later")].filter((t=>ce(t,e.timeZone).day===l.day)).pop(),c=ne(e)-e.offset,d=Math.floor(c/ge),p=c%ge;return c=_e(d,n,Math.floor(s/ge),Math.floor(u/ge),null==r?void 0:r.round)*ge+p,fe(ce(c,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return Te(e,t,n,r);case"era":case"year":case"month":case"day":return fe(ce(le($e(pe(e),t,n,r),e.timeZone),e.timeZone),e.calendar);default:throw new Error("Unsupported field "+t)}}(this,e,t,n)}toDate(){return function(e){let t=ne(e)-e.offset;return new Date(t)}(this)}toString(){return`${Ve(e=this)}${function(e){let t=Math.sign(e)<0?"-":"+";e=Math.abs(e);let n=Math.floor(e/36e5),r=e%36e5/6e4;return`${t}${String(n).padStart(2,"0")}:${String(r).padStart(2,"0")}`}(e.offset)}[${e.timeZone}]`;var e}toAbsoluteString(){return this.toDate().toISOString()}compare(e){return this.toDate().getTime()-me(e,this.timeZone).toDate().getTime()}constructor(...e){Ne(this,Ze,{writable:!0,value:void 0});let[t,n,r,i,a]=ze(e),o=e.shift(),s=e.shift();this.calendar=t,this.era=n,this.year=r,this.month=i,this.day=a,this.timeZone=o,this.offset=s,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,we(this)}}const Ye=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],Je=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],Xe=[1867,1911,1925,1988,2018],Qe=["meiji","taisho","showa","heisei","reiwa"];function et(e){const t=Ye.findIndex((([t,n,r])=>e.year<t||e.year===t&&e.month<n||e.year===t&&e.month===n&&e.day<r));return-1===t?Ye.length-1:0===t?0:t-1}function tt(e){let t=Xe[Qe.indexOf(e.era)];if(!t)throw new Error("Unknown era: "+e.era);return new Ue(e.year+t,e.month,e.day)}class nt extends I{fromJulianDay(e){let t=super.fromJulianDay(e),n=et(t);return new Ue(this,Qe[n],t.year-Xe[n],t.month,t.day)}toJulianDay(e){return super.toJulianDay(tt(e))}balanceDate(e){let t=tt(e),n=et(t);Qe[n]!==e.era&&(e.era=Qe[n],e.year=t.year-Xe[n]),this.constrainDate(e)}constrainDate(e){let t=Qe.indexOf(e.era),n=Je[t];if(null!=n){let[r,i,a]=n,o=r-Xe[t];e.year=Math.max(1,Math.min(o,e.year)),e.year===o&&(e.month=Math.min(i,e.month),e.month===i&&(e.day=Math.min(a,e.day)))}if(1===e.year&&t>=0){let[,n,r]=Ye[t];e.month=Math.max(n,e.month),e.month===n&&(e.day=Math.max(r,e.day))}}getEras(){return Qe}getYearsInEra(e){let t=Qe.indexOf(e.era),n=Ye[t],r=Ye[t+1];if(null==r)return 9999-n[0]+1;let i=r[0]-n[0];return(e.month<r[1]||e.month===r[1]&&e.day<r[2])&&i++,i}getDaysInMonth(e){return super.getDaysInMonth(tt(e))}getMinimumMonthInYear(e){let t=rt(e);return t?t[1]:1}getMinimumDayInMonth(e){let t=rt(e);return t&&e.month===t[1]?t[2]:1}constructor(...e){super(...e),this.identifier="japanese"}}function rt(e){if(1===e.year){let t=Qe.indexOf(e.era);return Ye[t]}}class it extends I{fromJulianDay(e){let t=super.fromJulianDay(e),n=_(t.era,t.year);return new Ue(this,n- -543,t.month,t.day)}toJulianDay(e){return super.toJulianDay(at(e))}getEras(){return["BE"]}getDaysInMonth(e){return super.getDaysInMonth(at(e))}balanceDate(){}constructor(...e){super(...e),this.identifier="buddhist"}}function at(e){let[t,n]=M(e.year+-543);return new Ue(t,n,e.month,e.day)}const ot=1911;function st(e){return"minguo"===e.era?e.year+ot:1-e.year+ot}function lt(e){let t=e-ot;return t>0?["minguo",t]:["before_minguo",1-t]}class ut extends I{fromJulianDay(e){let t=super.fromJulianDay(e),n=_(t.era,t.year),[r,i]=lt(n);return new Ue(this,r,i,t.month,t.day)}toJulianDay(e){return super.toJulianDay(ct(e))}getEras(){return["before_minguo","minguo"]}balanceDate(e){let[t,n]=lt(st(e));e.era=t,e.year=n}isInverseEra(e){return"before_minguo"===e.era}getDaysInMonth(e){return super.getDaysInMonth(ct(e))}getYearsInEra(e){return"before_minguo"===e.era?9999:8088}constructor(...e){super(...e),this.identifier="roc"}}function ct(e){let[t,n]=M(st(e));return new Ue(t,n,e.month,e.day)}const dt=[0,31,62,93,124,155,186,216,246,276,306,336];class pt{fromJulianDay(e){let t=e-1948320,n=1+Math.floor((33*t+3)/12053),r=t-(365*(n-1)+Math.floor((8*n+21)/33)),i=r<216?Math.floor(r/31):Math.floor((r-6)/30);return new Ue(this,n,i+1,r-dt[i]+1)}toJulianDay(e){let t=1948319+365*(e.year-1)+Math.floor((8*e.year+21)/33);return t+=dt[e.month-1],t+=e.day,t}getMonthsInYear(){return 12}getDaysInMonth(e){return e.month<=6?31:e.month<=11||P(25*e.year+11,33)<8?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}class ht extends I{fromJulianDay(e){let t,n,r,i=super.fromJulianDay(e),a=i.year-78,o=e-$(i.era,i.year,1,1);if(o<80?(a--,t=T(i.year-1)?31:30,o+=t+155+90+10):(t=T(i.year)?31:30,o-=80),o<t)n=1,r=o+1;else{let e=o-t;e<155?(n=Math.floor(e/31)+2,r=e%31+1):(e-=155,n=Math.floor(e/30)+7,r=e%30+1)}return new Ue(this,a,n,r)}toJulianDay(e){let t,n,r=e.year+78,[i,a]=M(r);return T(a)?(t=31,n=$(i,a,3,21)):(t=30,n=$(i,a,3,22)),1===e.month?n+e.day-1:(n+=t+31*Math.min(e.month-2,5),e.month>=8&&(n+=30*(e.month-7)),n+=e.day-1,n)}getDaysInMonth(e){return 1===e.month&&T(e.year+78)||e.month>=2&&e.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...e){super(...e),this.identifier="indian"}}const ft=1948440,mt=1948439,gt=1300,yt=1600;function vt(e,t,n,r){return r+Math.ceil(29.5*(n-1))+354*(t-1)+Math.floor((3+11*t)/30)+e-1}function bt(e,t,n){let r=Math.floor((30*(n-t)+10646)/10631),i=Math.min(12,Math.ceil((n-(29+vt(t,r,1,1)))/29.5)+1),a=n-vt(t,r,i,1)+1;return new Ue(e,r,i,a)}function xt(e){return(14+11*e)%30<11}class wt{fromJulianDay(e){return bt(this,ft,e)}toJulianDay(e){return vt(ft,e.year,e.month,e.day)}getDaysInMonth(e){let t=29+e.month%2;return 12===e.month&&xt(e.year)&&t++,t}getMonthsInYear(){return 12}getDaysInYear(e){return xt(e.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class Et extends wt{fromJulianDay(e){return bt(this,mt,e)}toJulianDay(e){return vt(mt,e.year,e.month,e.day)}constructor(...e){super(...e),this.identifier="islamic-tbla"}}let kt,St;function Dt(e){return 460322+St[e-gt]}function jt(e,t){let n=1<<11-(t-1);return kt[e-gt]&n?30:29}function Ct(e,t){let n=Dt(e);for(let r=1;r<t;r++)n+=jt(e,r);return n}function Rt(e){return St[e+1-gt]-St[e-gt]}class Pt extends wt{fromJulianDay(e){let t=e-ft,n=Dt(gt),r=Dt(yt);if(t<n||t>r)return super.fromJulianDay(e);{let e=1299,n=1,r=1;for(;r>0;){e++,r=t-Dt(e)+1;let i=Rt(e);if(r===i){n=12;break}if(r<i){let t=jt(e,n);for(n=1;r>t;)r-=t,n++,t=jt(e,n);break}}return new Ue(this,e,n,t-Ct(e,n)+1)}}toJulianDay(e){return e.year<gt||e.year>yt?super.toJulianDay(e):ft+Ct(e.year,e.month)+(e.day-1)}getDaysInMonth(e){return e.year<gt||e.year>yt?super.getDaysInMonth(e):jt(e.year,e.month)}getDaysInYear(e){return e.year<gt||e.year>yt?super.getDaysInYear(e):Rt(e.year)}constructor(){if(super(),this.identifier="islamic-umalqura",kt||(kt=new Uint16Array(Uint8Array.from(atob("qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI="),(e=>e.charCodeAt(0))).buffer)),!St){St=new Uint32Array(301);let e=0;for(let t=gt;t<=yt;t++){St[t-gt]=e;for(let n=1;n<=12;n++)e+=jt(t,n)}}}}const $t=347997;function Tt(e){return P(7*e+1,19)<7}function _t(e){let t=Math.floor((235*e-234)/19),n=12084+13753*t,r=29*t+Math.floor(n/25920);return P(3*(r+1),7)<3&&(r+=1),r}function Mt(e){return _t(e)+function(e){let t=_t(e-1),n=_t(e);return _t(e+1)-n==356?2:n-t==382?1:0}(e)}function At(e){return Mt(e+1)-Mt(e)}function It(e,t){if(t>=6&&!Tt(e)&&t++,4===t||7===t||9===t||11===t||13===t)return 29;let n=function(e){let t=At(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}(e);return 2===t?2===n?30:29:3===t?0===n?29:30:6===t?Tt(e)?30:0:30}class Ot{fromJulianDay(e){let t=e-$t,n=25920*t/765433,r=Math.floor((19*n+234)/235)+1,i=Mt(r),a=Math.floor(t-i);for(;a<1;)r--,i=Mt(r),a=Math.floor(t-i);let o=1,s=0;for(;s<a;)s+=It(r,o),o++;return o--,s-=It(r,o),new Ue(this,r,o,a-s)}toJulianDay(e){let t=Mt(e.year);for(let n=1;n<e.month;n++)t+=It(e.year,n);return t+e.day+$t}getDaysInMonth(e){return It(e.year,e.month)}getMonthsInYear(e){return Tt(e.year)?13:12}getDaysInYear(e){return At(e.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(e,t){t.year!==e.year&&(Tt(t.year)&&!Tt(e.year)&&t.month>6?e.month--:!Tt(t.year)&&Tt(e.year)&&t.month>6&&e.month++)}constructor(){this.identifier="hebrew"}}const Ft=1723856,Lt=1824665,Vt=5500;function Nt(e,t,n,r){return e+365*t+Math.floor(t/4)+30*(n-1)+r-1}function zt(e,t){let n=Math.floor(4*(t-e)/1461),r=1+Math.floor((t-Nt(e,n,1,1))/30);return[n,r,t+1-Nt(e,n,r,1)]}function Bt(e){return Math.floor(e%4/3)}function Ut(e,t){return t%13!=0?30:Bt(e)+5}class Wt{fromJulianDay(e){let[t,n,r]=zt(Ft,e),i="AM";return t<=0&&(i="AA",t+=Vt),new Ue(this,i,t,n,r)}toJulianDay(e){let t=e.year;return"AA"===e.era&&(t-=Vt),Nt(Ft,t,e.month,e.day)}getDaysInMonth(e){return Ut(e.year,e.month)}getMonthsInYear(){return 13}getDaysInYear(e){return 365+Bt(e.year)}getYearsInEra(e){return"AA"===e.era?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class qt extends Wt{fromJulianDay(e){let[t,n,r]=zt(Ft,e);return t+=Vt,new Ue(this,"AA",t,n,r)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...e){super(...e),this.identifier="ethioaa"}}class Kt extends Wt{fromJulianDay(e){let[t,n,r]=zt(Lt,e),i="CE";return t<=0&&(i="BCE",t=1-t),new Ue(this,i,t,n,r)}toJulianDay(e){let t=e.year;return"BCE"===e.era&&(t=1-t),Nt(Lt,t,e.month,e.day)}getDaysInMonth(e){let t=e.year;return"BCE"===e.era&&(t=1-t),Ut(t,e.month)}isInverseEra(e){return"BCE"===e.era}balanceDate(e){e.year<=0&&(e.era="BCE"===e.era?"CE":"BCE",e.year=1-e.year)}getEras(){return["BCE","CE"]}getYearsInEra(e){return"BCE"===e.era?9999:9715}constructor(...e){super(...e),this.identifier="coptic"}}function Ht(e){switch(e){case"buddhist":return new it;case"ethiopic":return new Wt;case"ethioaa":return new qt;case"coptic":return new Kt;case"hebrew":return new Ot;case"indian":return new ht;case"islamic-civil":return new wt;case"islamic-tbla":return new Et;case"islamic-umalqura":return new Pt;case"japanese":return new nt;case"persian":return new pt;case"roc":return new ut;default:return new I}}let Zt=new Map;class Gt{format(e){return this.formatter.format(e)}formatToParts(e){return this.formatter.formatToParts(e)}formatRange(e,t){if("function"==typeof this.formatter.formatRange)return this.formatter.formatRange(e,t);if(t<e)throw new RangeError("End date must be >= start date");return`${this.formatter.format(e)} – ${this.formatter.format(t)}`}formatRangeToParts(e,t){if("function"==typeof this.formatter.formatRangeToParts)return this.formatter.formatRangeToParts(e,t);if(t<e)throw new RangeError("End date must be >= start date");let n=this.formatter.formatToParts(e),r=this.formatter.formatToParts(t);return[...n.map((e=>({...e,source:"startRange"}))),{type:"literal",value:" – ",source:"shared"},...r.map((e=>({...e,source:"endRange"})))]}resolvedOptions(){let e=this.formatter.resolvedOptions();return null==Qt&&(Qt="h12"===new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle),Qt&&(this.resolvedHourCycle||(this.resolvedHourCycle=function(e,t){if(!t.timeStyle&&!t.hour)return;e=e.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,"");let n=Jt(e+=(e.includes("-u-")?"":"-u")+"-nu-latn",{...t,timeZone:void 0}),r=parseInt(n.formatToParts(new Date(2020,2,3,0)).find((e=>"hour"===e.type)).value,10),i=parseInt(n.formatToParts(new Date(2020,2,3,23)).find((e=>"hour"===e.type)).value,10);if(0===r&&23===i)return"h23";if(24===r&&23===i)return"h24";if(0===r&&11===i)return"h11";if(12===r&&11===i)return"h12";throw new Error("Unexpected hour cycle result")}(e.locale,this.options)),e.hourCycle=this.resolvedHourCycle,e.hour12="h11"===this.resolvedHourCycle||"h12"===this.resolvedHourCycle),"ethiopic-amete-alem"===e.calendar&&(e.calendar="ethioaa"),e}constructor(e,t={}){this.formatter=Jt(e,t),this.options=t}}const Yt={true:{ja:"h11"},false:{}};function Jt(e,t={}){if("boolean"==typeof t.hour12&&(null==Xt&&(Xt="24"===new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))),Xt)){t={...t};let n=Yt[String(t.hour12)][e.split("-")[0]],r=t.hour12?"h12":"h23";t.hourCycle=null!=n?n:r,delete t.hour12}let n=e+(t?Object.entries(t).sort(((e,t)=>e[0]<t[0]?-1:1)).join():"");if(Zt.has(n))return Zt.get(n);let r=new Intl.DateTimeFormat(e,t);return Zt.set(n,r),r}let Xt=null,Qt=null;const en="undefined"!=typeof document?t.useLayoutEffect:()=>{};function tn(e){const n=t.useRef(null);return en((()=>{n.current=e}),[e]),t.useCallback(((...e)=>{const t=n.current;return null==t?void 0:t(...e)}),[])}const nn={prefix:String(Math.round(1e10*Math.random())),current:0},rn=t.createContext(nn),an=t.createContext(!1);Boolean("undefined"!=typeof window&&window.document&&window.document.createElement);let on=new WeakMap;const sn="function"==typeof t.useId?function(e){let n=t.useId(),[r]=t.useState(dn()),i=r||"test"===process.env.NODE_ENV?"react-aria":`react-aria${nn.prefix}`;return e||`${i}-${n}`}:function(e){let n=t.useContext(rn),r=function(e=!1){let n=t.useContext(rn),r=t.useRef(null);if(null===r.current&&!e){var i,a;let e=null===(a=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)||void 0===a||null===(i=a.ReactCurrentOwner)||void 0===i?void 0:i.current;if(e){let t=on.get(e);null==t?on.set(e,{id:n.current,state:e.memoizedState}):e.memoizedState!==t.state&&(n.current=t.id,on.delete(e))}r.current=++n.current}return r.current}(!!e),i=n===nn&&"test"===process.env.NODE_ENV?"react-aria":`react-aria${n.prefix}`;return e||`${i}-${r}`};function ln(){return!1}function un(){return!0}function cn(e){return()=>{}}function dn(){return"function"==typeof t.useSyncExternalStore?t.useSyncExternalStore(cn,ln,un):t.useContext(an)}let pn=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),hn=new Map;function fn(e){let[n,r]=t.useState(e),i=t.useRef(null),a=sn(n),o=t.useCallback((e=>{i.current=e}),[]);return pn&&(hn.has(a)&&!hn.get(a).includes(o)?hn.set(a,[...hn.get(a),o]):hn.set(a,[o])),en((()=>{let e=a;return()=>{hn.delete(e)}}),[a]),t.useEffect((()=>{let e=i.current;e&&(i.current=null,r(e))})),a}function mn(e,t){if(e===t)return e;let n=hn.get(e);if(n)return n.forEach((e=>e(t))),t;let r=hn.get(t);return r?(r.forEach((t=>t(e))),e):t}function gn(e=[]){let n=fn(),[r,i]=function(e){let[n,r]=t.useState(e),i=t.useRef(null),a=tn((()=>{if(!i.current)return;let e=i.current.next();e.done?i.current=null:n===e.value?a():r(e.value)}));en((()=>{i.current&&a()}));let o=tn((e=>{i.current=e(n),a()}));return[n,o]}(n),a=t.useCallback((()=>{i((function*(){yield n,yield document.getElementById(n)?n:void 0}))}),[n,i]);return en(a,[n,a,...e]),r}function yn(...e){return(...t)=>{for(let n of e)"function"==typeof n&&n(...t)}}const vn=e=>{var t;return null!==(t=null==e?void 0:e.ownerDocument)&&void 0!==t?t:document},bn=e=>e&&"window"in e&&e.window===e?e:vn(e).defaultView||window;function xn(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=xn(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function wn(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=xn(e))&&(r&&(r+=" "),r+=t);return r}function En(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let e in r){let n=t[e],i=r[e];"function"==typeof n&&"function"==typeof i&&"o"===e[0]&&"n"===e[1]&&e.charCodeAt(2)>=65&&e.charCodeAt(2)<=90?t[e]=yn(n,i):"className"!==e&&"UNSAFE_className"!==e||"string"!=typeof n||"string"!=typeof i?"id"===e&&n&&i?t.id=mn(n,i):t[e]=void 0!==i?i:n:t[e]=wn(n,i)}}return t}const kn=new Set(["id"]),Sn=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),Dn=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),jn=/^(data-.*)$/;function Cn(e,t={}){let{labelable:n,isLink:r,propNames:i}=t,a={};for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(kn.has(o)||n&&Sn.has(o)||r&&Dn.has(o)||(null==i?void 0:i.has(o))||jn.test(o))&&(a[o]=e[o]);return a}function Rn(e){if(function(){if(null==Pn){Pn=!1;try{document.createElement("div").focus({get preventScroll(){return Pn=!0,!0}})}catch{}}return Pn}())e.focus({preventScroll:!0});else{let t=function(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}(e);e.focus(),function(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}(t)}}let Pn=null;function $n(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.brands.some((t=>e.test(t.brand))))||e.test(window.navigator.userAgent))}function Tn(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function _n(e){let t=null;return()=>(null==t&&(t=e()),t)}const Mn=_n((function(){return Tn(/^Mac/i)})),An=_n((function(){return Tn(/^iPhone/i)})),In=_n((function(){return Tn(/^iPad/i)||Mn()&&navigator.maxTouchPoints>1})),On=_n((function(){return An()||In()})),Fn=_n((function(){return $n(/AppleWebKit/i)&&!Ln()})),Ln=_n((function(){return $n(/Chrome/i)})),Vn=_n((function(){return $n(/Android/i)})),Nn=_n((function(){return $n(/Firefox/i)}));function zn(e,t,n=!0){var r,i;let{metaKey:a,ctrlKey:o,altKey:s,shiftKey:l}=t;Nn()&&(null===(i=window.event)||void 0===i||null===(r=i.type)||void 0===r?void 0:r.startsWith("key"))&&"_blank"===e.target&&(Mn()?a=!0:o=!0);let u=Fn()&&Mn()&&!In()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:a,ctrlKey:o,altKey:s,shiftKey:l}):new MouseEvent("click",{metaKey:a,ctrlKey:o,altKey:s,shiftKey:l,bubbles:!0,cancelable:!0});zn.isOpening=n,Rn(e),e.dispatchEvent(u),zn.isOpening=!1}zn.isOpening=!1;let Bn=new Map,Un=new Set;function Wn(){if("undefined"==typeof window)return;function e(e){return"propertyName"in e}let t=n=>{if(!e(n)||!n.target)return;let r=Bn.get(n.target);if(r&&(r.delete(n.propertyName),0===r.size&&(n.target.removeEventListener("transitioncancel",t),Bn.delete(n.target)),0===Bn.size)){for(let e of Un)e();Un.clear()}};document.body.addEventListener("transitionrun",(n=>{if(!e(n)||!n.target)return;let r=Bn.get(n.target);r||(r=new Set,Bn.set(n.target,r),n.target.addEventListener("transitioncancel",t,{once:!0})),r.add(n.propertyName)})),document.body.addEventListener("transitionend",t)}function qn(e){requestAnimationFrame((()=>{0===Bn.size?e():Un.add(e)}))}function Kn(){let e=t.useRef(new Map),n=t.useCallback(((t,n,r,i)=>{let a=(null==i?void 0:i.once)?(...t)=>{e.current.delete(r),r(...t)}:r;e.current.set(r,{type:n,eventTarget:t,fn:a,options:i}),t.addEventListener(n,r,i)}),[]),r=t.useCallback(((t,n,r,i)=>{var a;let o=(null===(a=e.current.get(r))||void 0===a?void 0:a.fn)||r;t.removeEventListener(n,o,i),e.current.delete(r)}),[]),i=t.useCallback((()=>{e.current.forEach(((e,t)=>{r(e.eventTarget,e.type,t,e.options)}))}),[r]);return t.useEffect((()=>i),[i]),{addGlobalListener:n,removeGlobalListener:r,removeAllGlobalListeners:i}}function Hn(e,t){let{id:n,"aria-label":r,"aria-labelledby":i}=e;if(n=fn(n),i&&r){let e=new Set([n,...i.trim().split(/\s+/)]);i=[...e].join(" ")}else i&&(i=i.trim().split(/\s+/).join(" "));return r||i||!t||(r=t),{id:n,"aria-label":r,"aria-labelledby":i}}function Zn(e,n){const r=t.useRef(!0),i=t.useRef(null);t.useEffect((()=>(r.current=!0,()=>{r.current=!1})),[]),t.useEffect((()=>{r.current?r.current=!1:i.current&&!n.some(((e,t)=>!Object.is(e,i[t])))||e(),i.current=n}),n)}function Gn(e){const{ref:n,box:r,onResize:i}=e;t.useEffect((()=>{let e=null==n?void 0:n.current;if(e){if(void 0===window.ResizeObserver)return window.addEventListener("resize",i,!1),()=>{window.removeEventListener("resize",i,!1)};{const t=new window.ResizeObserver((e=>{e.length&&i()}));return t.observe(e,{box:r}),()=>{e&&t.unobserve(e)}}}}),[i,n,r])}function Yn(e,t){en((()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}}))}function Jn(e,t){if(!e)return!1;let n=window.getComputedStyle(e),r=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return r&&t&&(r=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),r}function Xn(e,t){let n=e;for(Jn(n,t)&&(n=n.parentElement);n&&!Jn(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}"undefined"!=typeof document&&("loading"!==document.readyState?Wn():document.addEventListener("DOMContentLoaded",Wn));let Qn=0;const er=new Map;function tr(e){let[n,r]=t.useState();return en((()=>{if(!e)return;let t=er.get(e);if(t)r(t.element.id);else{let n="react-aria-description-"+Qn++;r(n);let i=document.createElement("div");i.id=n,i.style.display="none",i.textContent=e,document.body.appendChild(i),t={refCount:0,element:i},er.set(e,t)}return t.refCount++,()=>{t&&0==--t.refCount&&(t.element.remove(),er.delete(e))}}),[e]),{"aria-describedby":e?n:void 0}}function nr(e,n,r,i){let a=tn(r),o=null==r;t.useEffect((()=>{if(o||!e.current)return;let t=e.current;return t.addEventListener(n,a,i),()=>{t.removeEventListener(n,a,i)}}),[e,n,i,o,a])}function rr(e,t){let n=ir(e,t,"left"),r=ir(e,t,"top"),i=t.offsetWidth,a=t.offsetHeight,o=e.scrollLeft,s=e.scrollTop,{borderTopWidth:l,borderLeftWidth:u}=getComputedStyle(e),c=e.scrollLeft+parseInt(u,10),d=e.scrollTop+parseInt(l,10),p=c+e.clientWidth,h=d+e.clientHeight;n<=o?o=n-parseInt(u,10):n+i>p&&(o+=n+i-p),r<=d?s=r-parseInt(l,10):r+a>h&&(s+=r+a-h),e.scrollLeft=o,e.scrollTop=s}function ir(e,t,n){const r="left"===n?"offsetLeft":"offsetTop";let i=0;for(;t.offsetParent&&(i+=t[r],t.offsetParent!==e);){if(t.offsetParent.contains(e)){i-=e[r];break}t=t.offsetParent}return i}function ar(e,t){if(e&&document.contains(e)){let o=document.scrollingElement||document.documentElement;if("hidden"===window.getComputedStyle(o).overflow){let t=function(e){const t=[];for(;e&&e!==document.documentElement;)Jn(e,undefined)&&t.push(e),e=e.parentElement;return t}(e);for(let n of t)rr(n,e)}else{var n;let{left:o,top:s}=e.getBoundingClientRect();null==e||null===(n=e.scrollIntoView)||void 0===n||n.call(e,{block:"nearest"});let{left:l,top:u}=e.getBoundingClientRect();var r,i,a;(Math.abs(o-l)>1||Math.abs(s-u)>1)&&(null==t||null===(i=t.containingElement)||void 0===i||null===(r=i.scrollIntoView)||void 0===r||r.call(i,{block:"center",inline:"center"}),null===(a=e.scrollIntoView)||void 0===a||a.call(e,{block:"nearest"}))}}}function or(e){return!(0!==e.mozInputSource||!e.isTrusted)||(Vn()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function sr(e,n){let r=t.useRef(null);return e&&r.current&&n(e,r.current)&&(e=r.current),r.current=e,e}function lr(e,n,r){let i=t.useRef(n),a=tn((()=>{r&&r(i.current)}));t.useEffect((()=>{var t;let n=null==e||null===(t=e.current)||void 0===t?void 0:t.form;return null==n||n.addEventListener("reset",a),()=>{null==n||n.removeEventListener("reset",a)}}),[e,a])}function ur(e,n,r){let[i,a]=t.useState(e||n),o=t.useRef(void 0!==e),s=void 0!==e;t.useEffect((()=>{o.current;o.current=s}),[s]);let l=s?e:i,u=t.useCallback(((e,...t)=>{let n=(e,...t)=>{r&&(Object.is(l,e)||r(e,...t)),s||(l=e)};"function"==typeof e?a(((r,...i)=>{let a=e(s?l:r,...i);return n(a,...t),s?r:a})):(s||a(e),n(e,...t))}),[s,l,r]);return[l,u]}function cr(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}function dr(e,t){let n=e,r=t.toString(),i=r.indexOf("."),a=i>=0?r.length-i:0;if(a>0){let e=Math.pow(10,a);n=Math.round(n*e)/e}return n}function pr(e,t,n,r){t=Number(t),n=Number(n);let i=(e-(isNaN(t)?0:t))%r,a=dr(2*Math.abs(i)>=r?e+Math.sign(i)*(r-Math.abs(i)):e-i,r);return isNaN(t)?!isNaN(n)&&a>n&&(a=Math.floor(dr(n/r,r))*r):a<t?a=t:!isNaN(n)&&a>n&&(a=t+Math.floor(dr((n-t)/r,r))*r),a=dr(a,r),a}let hr="default",fr="",mr=new WeakMap;function gr(e){if(On()){if("default"===hr){const t=vn(e);fr=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}hr="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(mr.set(e,e.style.userSelect),e.style.userSelect="none")}function yr(e){if(On()){if("disabled"!==hr)return;hr="restoring",setTimeout((()=>{qn((()=>{if("restoring"===hr){const t=vn(e);"none"===t.documentElement.style.webkitUserSelect&&(t.documentElement.style.webkitUserSelect=fr||""),fr="",hr="default"}}))}),300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&mr.has(e)){let t=mr.get(e);"none"===e.style.userSelect&&(e.style.userSelect=t),""===e.getAttribute("style")&&e.removeAttribute("style"),mr.delete(e)}}const vr=t.createContext({register:()=>{}});function br(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function xr(e,t,n){return function(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}(e,br(e,t,"set"),n),n}vr.displayName="PressResponderContext";var wr=new WeakMap;class Er{continuePropagation(){xr(this,wr,!1)}get shouldStopPropagation(){return e=this,(t=br(this,wr,"get")).get?t.get.call(e):t.value;var e,t}constructor(e,t,n,r){var i;Ne(this,wr,{writable:!0,value:void 0}),xr(this,wr,!0);let a=null!==(i=null==r?void 0:r.target)&&void 0!==i?i:n.currentTarget;const o=null==a?void 0:a.getBoundingClientRect();let s,l,u=0,c=null;null!=n.clientX&&null!=n.clientY&&(l=n.clientX,c=n.clientY),o&&(null!=l&&null!=c?(s=l-o.left,u=c-o.top):(s=o.width/2,u=o.height/2)),this.type=e,this.pointerType=t,this.target=n.currentTarget,this.shiftKey=n.shiftKey,this.metaKey=n.metaKey,this.ctrlKey=n.ctrlKey,this.altKey=n.altKey,this.x=s,this.y=u}}const kr=Symbol("linkClicked");function Sr(e){let{onPress:n,onPressChange:r,onPressStart:i,onPressEnd:a,onPressUp:o,isDisabled:s,isPressed:l,preventFocusOnPress:u,shouldCancelOnPointerExit:c,allowTextSelectionOnPress:d,ref:p,...h}=function(e){let n=t.useContext(vr);if(n){let{register:t,...r}=n;e=En(r,e),t()}return Yn(n,e.ref),e}(e),[f,m]=t.useState(!1),g=t.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:y,removeAllGlobalListeners:v}=Kn(),b=tn(((e,t)=>{let n=g.current;if(s||n.didFirePressStart)return!1;let a=!0;if(n.isTriggeringEvent=!0,i){let n=new Er("pressstart",t,e);i(n),a=n.shouldStopPropagation}return r&&r(!0),n.isTriggeringEvent=!1,n.didFirePressStart=!0,m(!0),a})),x=tn(((e,t,i=!0)=>{let o=g.current;if(!o.didFirePressStart)return!1;o.ignoreClickAfterPress=!0,o.didFirePressStart=!1,o.isTriggeringEvent=!0;let l=!0;if(a){let n=new Er("pressend",t,e);a(n),l=n.shouldStopPropagation}if(r&&r(!1),m(!1),n&&i&&!s){let r=new Er("press",t,e);n(r),l&&(l=r.shouldStopPropagation)}return o.isTriggeringEvent=!1,l})),w=tn(((e,t)=>{let n=g.current;if(s)return!1;if(o){n.isTriggeringEvent=!0;let r=new Er("pressup",t,e);return o(r),n.isTriggeringEvent=!1,r.shouldStopPropagation}return!0})),E=tn((e=>{let t=g.current;t.isPressed&&t.target&&(t.isOverTarget&&null!=t.pointerType&&x(Pr(t.target,e),t.pointerType,!1),t.isPressed=!1,t.isOverTarget=!1,t.activePointerId=null,t.pointerType=null,v(),d||yr(t.target))})),k=tn((e=>{c&&E(e)})),S=t.useMemo((()=>{let e=g.current,t={onKeyDown(t){if(jr(t.nativeEvent,t.currentTarget)&&t.currentTarget.contains(t.target)){var r;Mr(t.target,t.key)&&t.preventDefault();let i=!0;if(!e.isPressed&&!t.repeat){e.target=t.currentTarget,e.isPressed=!0,i=b(t,"keyboard");let r=t.currentTarget,a=t=>{jr(t,r)&&!t.repeat&&r.contains(t.target)&&e.target&&w(Pr(e.target,t),"keyboard")};y(vn(t.currentTarget),"keyup",yn(a,n),!0)}i&&t.stopPropagation(),t.metaKey&&Mn()&&(null===(r=e.metaKeyEvents)||void 0===r||r.set(t.key,t.nativeEvent))}else"Meta"===t.key&&(e.metaKeyEvents=new Map)},onClick(t){if((!t||t.currentTarget.contains(t.target))&&t&&0===t.button&&!e.isTriggeringEvent&&!zn.isOpening){let n=!0;if(s&&t.preventDefault(),!e.ignoreClickAfterPress&&!e.ignoreEmulatedMouseEvents&&!e.isPressed&&("virtual"===e.pointerType||or(t.nativeEvent))){s||u||Rn(t.currentTarget);let e=b(t,"virtual"),r=w(t,"virtual"),i=x(t,"virtual");n=e&&r&&i}e.ignoreEmulatedMouseEvents=!1,e.ignoreClickAfterPress=!1,n&&t.stopPropagation()}}},n=t=>{var n;if(e.isPressed&&e.target&&jr(t,e.target)){var r;Mr(t.target,t.key)&&t.preventDefault();let n=t.target;x(Pr(e.target,t),"keyboard",e.target.contains(n)),v(),"Enter"!==t.key&&Dr(e.target)&&e.target.contains(n)&&!t[kr]&&(t[kr]=!0,zn(e.target,t,!1)),e.isPressed=!1,null===(r=e.metaKeyEvents)||void 0===r||r.delete(t.key)}else if("Meta"===t.key&&(null===(n=e.metaKeyEvents)||void 0===n?void 0:n.size)){var i;let t=e.metaKeyEvents;e.metaKeyEvents=void 0;for(let n of t.values())null===(i=e.target)||void 0===i||i.dispatchEvent(new KeyboardEvent("keyup",n))}};if("undefined"!=typeof PointerEvent){t.onPointerDown=t=>{if(0!==t.button||!t.currentTarget.contains(t.target))return;if(i=t.nativeEvent,!Vn()&&0===i.width&&0===i.height||1===i.width&&1===i.height&&0===i.pressure&&0===i.detail&&"mouse"===i.pointerType)return void(e.pointerType="virtual");var i;Tr(t.currentTarget)&&t.preventDefault(),e.pointerType=t.pointerType;let o=!0;e.isPressed||(e.isPressed=!0,e.isOverTarget=!0,e.activePointerId=t.pointerId,e.target=t.currentTarget,s||u||Rn(t.currentTarget),d||gr(e.target),o=b(t,e.pointerType),y(vn(t.currentTarget),"pointermove",n,!1),y(vn(t.currentTarget),"pointerup",r,!1),y(vn(t.currentTarget),"pointercancel",a,!1)),o&&t.stopPropagation()},t.onMouseDown=e=>{e.currentTarget.contains(e.target)&&0===e.button&&(Tr(e.currentTarget)&&e.preventDefault(),e.stopPropagation())},t.onPointerUp=t=>{t.currentTarget.contains(t.target)&&"virtual"!==e.pointerType&&0===t.button&&$r(t,t.currentTarget)&&w(t,e.pointerType||t.pointerType)};let n=t=>{t.pointerId===e.activePointerId&&(e.target&&$r(t,e.target)?e.isOverTarget||null==e.pointerType||(e.isOverTarget=!0,b(Pr(e.target,t),e.pointerType)):e.target&&e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!1,x(Pr(e.target,t),e.pointerType,!1),k(t)))},r=t=>{t.pointerId===e.activePointerId&&e.isPressed&&0===t.button&&e.target&&($r(t,e.target)&&null!=e.pointerType?x(Pr(e.target,t),e.pointerType):e.isOverTarget&&null!=e.pointerType&&x(Pr(e.target,t),e.pointerType,!1),e.isPressed=!1,e.isOverTarget=!1,e.activePointerId=null,e.pointerType=null,v(),d||yr(e.target),"ontouchend"in e.target&&"mouse"!==t.pointerType&&y(e.target,"touchend",i,{once:!0}))},i=e=>{_r(e.currentTarget)&&e.preventDefault()},a=e=>{E(e)};t.onDragStart=e=>{e.currentTarget.contains(e.target)&&E(e)}}else{t.onMouseDown=t=>{0===t.button&&t.currentTarget.contains(t.target)&&(Tr(t.currentTarget)&&t.preventDefault(),e.ignoreEmulatedMouseEvents?t.stopPropagation():(e.isPressed=!0,e.isOverTarget=!0,e.target=t.currentTarget,e.pointerType=or(t.nativeEvent)?"virtual":"mouse",s||u||Rn(t.currentTarget),b(t,e.pointerType)&&t.stopPropagation(),y(vn(t.currentTarget),"mouseup",n,!1)))},t.onMouseEnter=t=>{if(!t.currentTarget.contains(t.target))return;let n=!0;e.isPressed&&!e.ignoreEmulatedMouseEvents&&null!=e.pointerType&&(e.isOverTarget=!0,n=b(t,e.pointerType)),n&&t.stopPropagation()},t.onMouseLeave=t=>{if(!t.currentTarget.contains(t.target))return;let n=!0;e.isPressed&&!e.ignoreEmulatedMouseEvents&&null!=e.pointerType&&(e.isOverTarget=!1,n=x(t,e.pointerType,!1),k(t)),n&&t.stopPropagation()},t.onMouseUp=t=>{t.currentTarget.contains(t.target)&&(e.ignoreEmulatedMouseEvents||0!==t.button||w(t,e.pointerType||"mouse"))};let n=t=>{0===t.button&&(e.isPressed=!1,v(),e.ignoreEmulatedMouseEvents?e.ignoreEmulatedMouseEvents=!1:(e.target&&$r(t,e.target)&&null!=e.pointerType?x(Pr(e.target,t),e.pointerType):e.target&&e.isOverTarget&&null!=e.pointerType&&x(Pr(e.target,t),e.pointerType,!1),e.isOverTarget=!1))};t.onTouchStart=t=>{if(!t.currentTarget.contains(t.target))return;let n=function(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}(t.nativeEvent);n&&(e.activePointerId=n.identifier,e.ignoreEmulatedMouseEvents=!0,e.isOverTarget=!0,e.isPressed=!0,e.target=t.currentTarget,e.pointerType="touch",s||u||Rn(t.currentTarget),d||gr(e.target),b(Rr(e.target,t),e.pointerType)&&t.stopPropagation(),y(bn(t.currentTarget),"scroll",r,!0))},t.onTouchMove=t=>{if(!t.currentTarget.contains(t.target))return;if(!e.isPressed)return void t.stopPropagation();let n=Cr(t.nativeEvent,e.activePointerId),r=!0;n&&$r(n,t.currentTarget)?e.isOverTarget||null==e.pointerType||(e.isOverTarget=!0,r=b(Rr(e.target,t),e.pointerType)):e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!1,r=x(Rr(e.target,t),e.pointerType,!1),k(Rr(e.target,t))),r&&t.stopPropagation()},t.onTouchEnd=t=>{if(!t.currentTarget.contains(t.target))return;if(!e.isPressed)return void t.stopPropagation();let n=Cr(t.nativeEvent,e.activePointerId),r=!0;n&&$r(n,t.currentTarget)&&null!=e.pointerType?(w(Rr(e.target,t),e.pointerType),r=x(Rr(e.target,t),e.pointerType)):e.isOverTarget&&null!=e.pointerType&&(r=x(Rr(e.target,t),e.pointerType,!1)),r&&t.stopPropagation(),e.isPressed=!1,e.activePointerId=null,e.isOverTarget=!1,e.ignoreEmulatedMouseEvents=!0,e.target&&!d&&yr(e.target),v()},t.onTouchCancel=t=>{t.currentTarget.contains(t.target)&&(t.stopPropagation(),e.isPressed&&E(Rr(e.target,t)))};let r=t=>{e.isPressed&&t.target.contains(e.target)&&E({currentTarget:e.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};t.onDragStart=e=>{e.currentTarget.contains(e.target)&&E(e)}}return t}),[y,s,u,v,d,E,k,x,b,w]);return t.useEffect((()=>()=>{var e;d||yr(null!==(e=g.current.target)&&void 0!==e?e:void 0)}),[d]),{isPressed:l||f,pressProps:En(h,S)}}function Dr(e){return"A"===e.tagName&&e.hasAttribute("href")}function jr(e,t){const{key:n,code:r}=e,i=t,a=i.getAttribute("role");return!("Enter"!==n&&" "!==n&&"Spacebar"!==n&&"Space"!==r||i instanceof bn(i).HTMLInputElement&&!Ir(i,n)||i instanceof bn(i).HTMLTextAreaElement||i.isContentEditable||("link"===a||!a&&Dr(i))&&"Enter"!==n)}function Cr(e,t){const n=e.changedTouches;for(let r=0;r<n.length;r++){const e=n[r];if(e.identifier===t)return e}return null}function Rr(e,t){let n=0,r=0;return t.targetTouches&&1===t.targetTouches.length&&(n=t.targetTouches[0].clientX,r=t.targetTouches[0].clientY),{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r}}function Pr(e,t){let n=t.clientX,r=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r}}function $r(e,t){let n=t.getBoundingClientRect();return i=function(e){let t=0,n=0;return void 0!==e.width?t=e.width/2:void 0!==e.radiusX&&(t=e.radiusX),void 0!==e.height?n=e.height/2:void 0!==e.radiusY&&(n=e.radiusY),{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}(e),!((r=n).left>i.right||i.left>r.right||r.top>i.bottom||i.top>r.bottom);var r,i}function Tr(e){return!(e instanceof HTMLElement&&e.hasAttribute("draggable"))}function _r(e){return!(e instanceof HTMLInputElement||(e instanceof HTMLButtonElement?"submit"===e.type||"reset"===e.type:Dr(e)))}function Mr(e,t){return e instanceof HTMLInputElement?!Ir(e,t):_r(e)}const Ar=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Ir(e,t){return"checkbox"===e.type||"radio"===e.type?" "===t:Ar.has(e.type)}function Or({children:e}){let n=t.useMemo((()=>({register:()=>{}})),[]);return t.createElement(vr.Provider,{value:n},e)}class Fr{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(e,t){this.nativeEvent=t,this.target=t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget,this.bubbles=t.bubbles,this.cancelable=t.cancelable,this.defaultPrevented=t.defaultPrevented,this.eventPhase=t.eventPhase,this.isTrusted=t.isTrusted,this.timeStamp=t.timeStamp,this.type=e}}function Lr(e){let n=t.useRef({isFocused:!1,observer:null});en((()=>{const e=n.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}}),[]);let r=tn((t=>{null==e||e(t)}));return t.useCallback((e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){n.current.isFocused=!0;let t=e.target,i=e=>{n.current.isFocused=!1,t.disabled&&r(new Fr("blur",e)),n.current.observer&&(n.current.observer.disconnect(),n.current.observer=null)};t.addEventListener("focusout",i,{once:!0}),n.current.observer=new MutationObserver((()=>{if(n.current.isFocused&&t.disabled){var e;null===(e=n.current.observer)||void 0===e||e.disconnect();let r=t===document.activeElement?null:document.activeElement;t.dispatchEvent(new FocusEvent("blur",{relatedTarget:r})),t.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:r}))}})),n.current.observer.observe(t,{attributes:!0,attributeFilter:["disabled"]})}}),[r])}let Vr=null,Nr=new Set,zr=new Map,Br=!1,Ur=!1;function Wr(e,t){for(let n of Nr)n(e,t)}function qr(e){var t;Br=!0,!((t=e).metaKey||!Mn()&&t.altKey||t.ctrlKey||"Control"===t.key||"Shift"===t.key||"Meta"===t.key)&&(Vr="keyboard",Wr("keyboard",e))}function Kr(e){Vr="pointer","mousedown"!==e.type&&"pointerdown"!==e.type||(Br=!0,Wr("pointer",e))}function Hr(e){or(e)&&(Br=!0,Vr="virtual")}function Zr(e){e.target!==window&&e.target!==document&&(Br||Ur||(Vr="virtual",Wr("virtual",e)),Br=!1,Ur=!1)}function Gr(){Br=!1,Ur=!0}function Yr(e){if("undefined"==typeof window||zr.get(bn(e)))return;const t=bn(e),n=vn(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){Br=!0,r.apply(this,arguments)},n.addEventListener("keydown",qr,!0),n.addEventListener("keyup",qr,!0),n.addEventListener("click",Hr,!0),t.addEventListener("focus",Zr,!0),t.addEventListener("blur",Gr,!1),"undefined"!=typeof PointerEvent?(n.addEventListener("pointerdown",Kr,!0),n.addEventListener("pointermove",Kr,!0),n.addEventListener("pointerup",Kr,!0)):(n.addEventListener("mousedown",Kr,!0),n.addEventListener("mousemove",Kr,!0),n.addEventListener("mouseup",Kr,!0)),t.addEventListener("beforeunload",(()=>{Jr(e)}),{once:!0}),zr.set(t,{focus:r})}const Jr=(e,t)=>{const n=bn(e),r=vn(e);t&&r.removeEventListener("DOMContentLoaded",t),zr.has(n)&&(n.HTMLElement.prototype.focus=zr.get(n).focus,r.removeEventListener("keydown",qr,!0),r.removeEventListener("keyup",qr,!0),r.removeEventListener("click",Hr,!0),n.removeEventListener("focus",Zr,!0),n.removeEventListener("blur",Gr,!1),"undefined"!=typeof PointerEvent?(r.removeEventListener("pointerdown",Kr,!0),r.removeEventListener("pointermove",Kr,!0),r.removeEventListener("pointerup",Kr,!0)):(r.removeEventListener("mousedown",Kr,!0),r.removeEventListener("mousemove",Kr,!0),r.removeEventListener("mouseup",Kr,!0)),zr.delete(n))};function Xr(){return Vr}function Qr(e){Vr=e,Wr(e,null)}function ei(e){let{isDisabled:n,onBlurWithin:r,onFocusWithin:i,onFocusWithinChange:a}=e,o=t.useRef({isFocusWithin:!1}),s=t.useCallback((e=>{o.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(o.current.isFocusWithin=!1,r&&r(e),a&&a(!1))}),[r,a,o]),l=Lr(s),u=t.useCallback((e=>{o.current.isFocusWithin||document.activeElement!==e.target||(i&&i(e),a&&a(!0),o.current.isFocusWithin=!0,l(e))}),[i,a,l]);return n?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:u,onBlur:s}}}function ti(e,t){if(e.button>0)return!1;if(e.target){const t=e.target.ownerDocument;if(!t||!t.documentElement.contains(e.target))return!1;if(e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current&&!t.current.contains(e.target)}function ni(e){if(!e)return;let t=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented:()=>n.isDefaultPrevented(),stopPropagation(){},continuePropagation(){t=!1}};e(r),t&&n.stopPropagation()}}function ri(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:ni(e.onKeyDown),onKeyUp:ni(e.onKeyUp)}}}function ii(e){let{onMoveStart:n,onMove:r,onMoveEnd:i}=e,a=t.useRef({didMove:!1,lastPosition:null,id:null}),{addGlobalListener:o,removeGlobalListener:s}=Kn(),l=tn(((e,t,i,o)=>{0===i&&0===o||(a.current.didMove||(a.current.didMove=!0,null==n||n({type:"movestart",pointerType:t,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey})),null==r||r({type:"move",pointerType:t,deltaX:i,deltaY:o,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey}))})),u=tn(((e,t)=>{yr(),a.current.didMove&&(null==i||i({type:"moveend",pointerType:t,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey}))}));return{moveProps:t.useMemo((()=>{let e={},t=()=>{gr(),a.current.didMove=!1};if("undefined"==typeof PointerEvent){let n=e=>{var t,n,r,i;0===e.button&&(l(e,"mouse",e.pageX-(null!==(r=null===(t=a.current.lastPosition)||void 0===t?void 0:t.pageX)&&void 0!==r?r:0),e.pageY-(null!==(i=null===(n=a.current.lastPosition)||void 0===n?void 0:n.pageY)&&void 0!==i?i:0)),a.current.lastPosition={pageX:e.pageX,pageY:e.pageY})},r=e=>{0===e.button&&(u(e,"mouse"),s(window,"mousemove",n,!1),s(window,"mouseup",r,!1))};e.onMouseDown=e=>{0===e.button&&(t(),e.stopPropagation(),e.preventDefault(),a.current.lastPosition={pageX:e.pageX,pageY:e.pageY},o(window,"mousemove",n,!1),o(window,"mouseup",r,!1))};let i=e=>{let t=[...e.changedTouches].findIndex((({identifier:e})=>e===a.current.id));if(t>=0){var n,r;let{pageX:s,pageY:u}=e.changedTouches[t];var i,o;l(e,"touch",s-(null!==(i=null===(n=a.current.lastPosition)||void 0===n?void 0:n.pageX)&&void 0!==i?i:0),u-(null!==(o=null===(r=a.current.lastPosition)||void 0===r?void 0:r.pageY)&&void 0!==o?o:0)),a.current.lastPosition={pageX:s,pageY:u}}},c=e=>{[...e.changedTouches].findIndex((({identifier:e})=>e===a.current.id))>=0&&(u(e,"touch"),a.current.id=null,s(window,"touchmove",i),s(window,"touchend",c),s(window,"touchcancel",c))};e.onTouchStart=e=>{if(0===e.changedTouches.length||null!=a.current.id)return;let{pageX:n,pageY:r,identifier:s}=e.changedTouches[0];t(),e.stopPropagation(),e.preventDefault(),a.current.lastPosition={pageX:n,pageY:r},a.current.id=s,o(window,"touchmove",i,!1),o(window,"touchend",c,!1),o(window,"touchcancel",c,!1)}}else{let n=e=>{if(e.pointerId===a.current.id){var t,n;let o=e.pointerType||"mouse";var r,i;l(e,o,e.pageX-(null!==(r=null===(t=a.current.lastPosition)||void 0===t?void 0:t.pageX)&&void 0!==r?r:0),e.pageY-(null!==(i=null===(n=a.current.lastPosition)||void 0===n?void 0:n.pageY)&&void 0!==i?i:0)),a.current.lastPosition={pageX:e.pageX,pageY:e.pageY}}},r=e=>{if(e.pointerId===a.current.id){let t=e.pointerType||"mouse";u(e,t),a.current.id=null,s(window,"pointermove",n,!1),s(window,"pointerup",r,!1),s(window,"pointercancel",r,!1)}};e.onPointerDown=e=>{0===e.button&&null==a.current.id&&(t(),e.stopPropagation(),e.preventDefault(),a.current.lastPosition={pageX:e.pageX,pageY:e.pageY},a.current.id=e.pointerId,o(window,"pointermove",n,!1),o(window,"pointerup",r,!1),o(window,"pointercancel",r,!1))}}let n=(e,n,r)=>{t(),l(e,"keyboard",n,r),u(e,"keyboard")};return e.onKeyDown=e=>{switch(e.key){case"Left":case"ArrowLeft":e.preventDefault(),e.stopPropagation(),n(e,-1,0);break;case"Right":case"ArrowRight":e.preventDefault(),e.stopPropagation(),n(e,1,0);break;case"Up":case"ArrowUp":e.preventDefault(),e.stopPropagation(),n(e,0,-1);break;case"Down":case"ArrowDown":e.preventDefault(),e.stopPropagation(),n(e,0,1)}},e}),[a,o,s,l,u])}}function ai(e){const t=vn(e);if("virtual"===Xr()){let n=t.activeElement;qn((()=>{t.activeElement===n&&e.isConnected&&Rn(e)}))}else Rn(e)}function oi(e,t){return"#comment"!==e.nodeName&&function(e){const t=bn(e);if(!(e instanceof t.HTMLElement||e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,i="none"!==n&&"hidden"!==r&&"collapse"!==r;if(i){const{getComputedStyle:t}=e.ownerDocument.defaultView;let{display:n,visibility:r}=t(e);i="none"!==n&&"hidden"!==r&&"collapse"!==r}return i}(e)&&(r=t,!(n=e).hasAttribute("hidden")&&!n.hasAttribute("data-react-aria-prevent-focus")&&("DETAILS"!==n.nodeName||!r||"SUMMARY"===r.nodeName||n.hasAttribute("open")))&&(!e.parentElement||oi(e.parentElement,e));var n,r}"undefined"!=typeof document&&function(e){const t=vn(e);let n;"loading"!==t.readyState?Yr(e):(n=()=>{Yr(e)},t.addEventListener("DOMContentLoaded",n))}();const si=t.createContext(null),li="react-aria-focus-scope-restore";let ui=null;function ci(e){let{children:n,contain:r,restoreFocus:i,autoFocus:a}=e,o=t.useRef(null),s=t.useRef(null),l=t.useRef([]),{parentNode:u}=t.useContext(si)||{},c=t.useMemo((()=>new Pi({scopeRef:l})),[l]);var d,p,h;en((()=>{let e=u||$i.root;if($i.getTreeNode(e.scopeRef)&&ui&&!bi(ui,e.scopeRef)){let t=$i.getTreeNode(ui);t&&(e=t)}e.addChild(c),$i.addNode(c)}),[c,u]),en((()=>{let e=$i.getTreeNode(l);e&&(e.contain=!!r)}),[r]),en((()=>{var e;let t=null===(e=o.current)||void 0===e?void 0:e.nextSibling,n=[],r=e=>e.stopPropagation();for(;t&&t!==s.current;)n.push(t),t.addEventListener(li,r),t=t.nextSibling;return l.current=n,()=>{for(let e of n)e.removeEventListener(li,r)}}),[n]),en((()=>{if(p||h)return;let e=d.current;const t=vn(e?e[0]:void 0);let n=e=>{let t=e.target;yi(t,d.current)?ui=d:gi(t)||(ui=null)};return t.addEventListener("focusin",n,!1),null==e||e.forEach((e=>e.addEventListener("focusin",n,!1))),()=>{t.removeEventListener("focusin",n,!1),null==e||e.forEach((e=>e.removeEventListener("focusin",n,!1)))}}),[d=l,p=i,h=r]),function(e,n){let r=t.useRef(void 0),i=t.useRef(void 0);en((()=>{let t=e.current;if(!n)return void(i.current&&(cancelAnimationFrame(i.current),i.current=void 0));const a=vn(t?t[0]:void 0);let o=t=>{if("Tab"!==t.key||t.altKey||t.ctrlKey||t.metaKey||!mi(e)||t.isComposing)return;let n=a.activeElement,r=e.current;if(!r||!yi(n,r))return;let i=Di(fi(r),{tabbable:!0},r);if(!n)return;i.currentNode=n;let o=t.shiftKey?i.previousNode():i.nextNode();o||(i.currentNode=t.shiftKey?r[r.length-1].nextElementSibling:r[0].previousElementSibling,o=t.shiftKey?i.previousNode():i.nextNode()),t.preventDefault(),o&&xi(o,!0)},s=t=>{ui&&!bi(ui,e)||!yi(t.target,e.current)?mi(e)&&!vi(t.target,e)?r.current?r.current.focus():ui&&ui.current&&Ei(ui.current):mi(e)&&(r.current=t.target):(ui=e,r.current=t.target)},l=t=>{i.current&&cancelAnimationFrame(i.current),i.current=requestAnimationFrame((()=>{var n;a.activeElement&&mi(e)&&!vi(a.activeElement,e)&&(ui=e,a.body.contains(t.target)?(r.current=t.target,null===(n=r.current)||void 0===n||n.focus()):ui.current&&Ei(ui.current))}))};return a.addEventListener("keydown",o,!1),a.addEventListener("focusin",s,!1),null==t||t.forEach((e=>e.addEventListener("focusin",s,!1))),null==t||t.forEach((e=>e.addEventListener("focusout",l,!1))),()=>{a.removeEventListener("keydown",o,!1),a.removeEventListener("focusin",s,!1),null==t||t.forEach((e=>e.removeEventListener("focusin",s,!1))),null==t||t.forEach((e=>e.removeEventListener("focusout",l,!1)))}}),[e,n]),en((()=>()=>{i.current&&cancelAnimationFrame(i.current)}),[i])}(l,r),function(e,n,r){const i=t.useRef("undefined"!=typeof document?vn(e.current?e.current[0]:void 0).activeElement:null);en((()=>{let t=e.current;const i=vn(t?t[0]:void 0);if(!n||r)return;let a=()=>{ui&&!bi(ui,e)||!yi(i.activeElement,e.current)||(ui=e)};return i.addEventListener("focusin",a,!1),null==t||t.forEach((e=>e.addEventListener("focusin",a,!1))),()=>{i.removeEventListener("focusin",a,!1),null==t||t.forEach((e=>e.removeEventListener("focusin",a,!1)))}}),[e,r]),en((()=>{const t=vn(e.current?e.current[0]:void 0);if(!n)return;let i=n=>{if("Tab"!==n.key||n.altKey||n.ctrlKey||n.metaKey||!mi(e)||n.isComposing)return;let r=t.activeElement;if(!vi(r,e)||!ki(e))return;let i=$i.getTreeNode(e);if(!i)return;let a=i.nodeToRestore,o=Di(t.body,{tabbable:!0});o.currentNode=r;let s=n.shiftKey?o.previousNode():o.nextNode();if(a&&t.body.contains(a)&&a!==t.body||(a=void 0,i.nodeToRestore=void 0),(!s||!vi(s,e))&&a){o.currentNode=a;do{s=n.shiftKey?o.previousNode():o.nextNode()}while(vi(s,e));n.preventDefault(),n.stopPropagation(),s?xi(s,!0):gi(a)?xi(a,!0):r.blur()}};return r||t.addEventListener("keydown",i,!0),()=>{r||t.removeEventListener("keydown",i,!0)}}),[e,n,r]),en((()=>{const t=vn(e.current?e.current[0]:void 0);if(!n)return;let r=$i.getTreeNode(e);var a;return r?(r.nodeToRestore=null!==(a=i.current)&&void 0!==a?a:void 0,()=>{let r=$i.getTreeNode(e);if(!r)return;let i=r.nodeToRestore;if(n&&i&&(t.activeElement&&vi(t.activeElement,e)||t.activeElement===t.body&&ki(e))){let n=$i.clone();requestAnimationFrame((()=>{if(t.activeElement===t.body){let t=n.getTreeNode(e);for(;t;){if(t.nodeToRestore&&t.nodeToRestore.isConnected)return void Si(t.nodeToRestore);t=t.parent}for(t=n.getTreeNode(e);t;){if(t.scopeRef&&t.scopeRef.current&&$i.getTreeNode(t.scopeRef))return void Si(wi(t.scopeRef.current,!0));t=t.parent}}}))}}):void 0}),[e,n])}(l,i,r),function(e,n){const r=t.useRef(n);t.useEffect((()=>{r.current&&(ui=e,!yi(vn(e.current?e.current[0]:void 0).activeElement,ui.current)&&e.current&&Ei(e.current)),r.current=!1}),[e])}(l,a),t.useEffect((()=>{const e=vn(l.current?l.current[0]:void 0).activeElement;let t=null;if(yi(e,l.current)){for(let n of $i.traverse())n.scopeRef&&yi(e,n.scopeRef.current)&&(t=n);t===$i.getTreeNode(l)&&(ui=t.scopeRef)}}),[l]),en((()=>()=>{var e,t,n;let r=null!==(n=null===(t=$i.getTreeNode(l))||void 0===t||null===(e=t.parent)||void 0===e?void 0:e.scopeRef)&&void 0!==n?n:null;l!==ui&&!bi(l,ui)||r&&!$i.getTreeNode(r)||(ui=r),$i.removeTreeNode(l)}),[l]);let f=t.useMemo((()=>function(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:i,wrap:a,accept:o}=t,s=r||vn(n[0]).activeElement,l=n[0].previousElementSibling,u=Di(fi(n),{tabbable:i,accept:o},n);u.currentNode=yi(s,n)?s:l;let c=u.nextNode();return!c&&a&&(u.currentNode=l,c=u.nextNode()),c&&xi(c,!0),c},focusPrevious(t={}){let n=e.current,{from:r,tabbable:i,wrap:a,accept:o}=t,s=r||vn(n[0]).activeElement,l=n[n.length-1].nextElementSibling,u=Di(fi(n),{tabbable:i,accept:o},n);u.currentNode=yi(s,n)?s:l;let c=u.previousNode();return!c&&a&&(u.currentNode=l,c=u.previousNode()),c&&xi(c,!0),c},focusFirst(t={}){let n=e.current,{tabbable:r,accept:i}=t,a=Di(fi(n),{tabbable:r,accept:i},n);a.currentNode=n[0].previousElementSibling;let o=a.nextNode();return o&&xi(o,!0),o},focusLast(t={}){let n=e.current,{tabbable:r,accept:i}=t,a=Di(fi(n),{tabbable:r,accept:i},n);a.currentNode=n[n.length-1].nextElementSibling;let o=a.previousNode();return o&&xi(o,!0),o}}}(l)),[]),m=t.useMemo((()=>({focusManager:f,parentNode:c})),[c,f]);return t.createElement(si.Provider,{value:m},t.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:o}),n,t.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:s}))}const di=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],pi=di.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";di.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const hi=di.join(':not([hidden]):not([tabindex="-1"]),');function fi(e){return e[0].parentElement}function mi(e){let t=$i.getTreeNode(ui);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function gi(e){return vi(e)}function yi(e,t){return!!e&&!!t&&t.some((t=>t.contains(e)))}function vi(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of $i.traverse($i.getTreeNode(t)))if(n&&yi(e,n.current))return!0;return!1}function bi(e,t){var n;let r=null===(n=$i.getTreeNode(t))||void 0===n?void 0:n.parent;for(;r;){if(r.scopeRef===e)return!0;r=r.parent}return!1}function xi(e,t=!1){if(null==e||t){if(null!=e)try{e.focus()}catch{}}else try{ai(e)}catch{}}function wi(e,t=!0){let n=e[0].previousElementSibling,r=fi(e),i=Di(r,{tabbable:t},e);i.currentNode=n;let a=i.nextNode();return t&&!a&&(r=fi(e),i=Di(r,{tabbable:!1},e),i.currentNode=n,a=i.nextNode()),a}function Ei(e,t=!0){xi(wi(e,t))}function ki(e){let t=$i.getTreeNode(ui);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(null==t?void 0:t.scopeRef)===e}function Si(e){e.dispatchEvent(new CustomEvent(li,{bubbles:!0,cancelable:!0}))&&xi(e)}function Di(e,t,n){let r=(null==t?void 0:t.tabbable)?hi:pi,i=vn(e).createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(e){var i;return(null==t||null===(i=t.from)||void 0===i?void 0:i.contains(e))?NodeFilter.FILTER_REJECT:!e.matches(r)||!oi(e)||n&&!yi(e,n)||(null==t?void 0:t.accept)&&!t.accept(e)?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT}});return(null==t?void 0:t.from)&&(i.currentNode=t.from),i}function ji(e,t={}){return{focusNext(n={}){let r=e.current;if(!r)return null;let{from:i,tabbable:a=t.tabbable,wrap:o=t.wrap,accept:s=t.accept}=n,l=i||vn(r).activeElement,u=Di(r,{tabbable:a,accept:s});r.contains(l)&&(u.currentNode=l);let c=u.nextNode();return!c&&o&&(u.currentNode=r,c=u.nextNode()),c&&xi(c,!0),c},focusPrevious(n=t){let r=e.current;if(!r)return null;let{from:i,tabbable:a=t.tabbable,wrap:o=t.wrap,accept:s=t.accept}=n,l=i||vn(r).activeElement,u=Di(r,{tabbable:a,accept:s});if(!r.contains(l)){let e=Ci(u);return e&&xi(e,!0),null!=e?e:null}u.currentNode=l;let c=u.previousNode();if(!c&&o){u.currentNode=r;let e=Ci(u);if(!e)return null;c=e}return c&&xi(c,!0),null!=c?c:null},focusFirst(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:a=t.accept}=n,o=Di(r,{tabbable:i,accept:a}).nextNode();return o&&xi(o,!0),o},focusLast(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:a=t.accept}=n,o=Ci(Di(r,{tabbable:i,accept:a}));return o&&xi(o,!0),null!=o?o:null}}}function Ci(e){let t,n;do{n=e.lastChild(),n&&(t=n)}while(n);return t}class Ri{get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,t,n){let r=this.fastMap.get(null!=t?t:null);if(!r)return;let i=new Pi({scopeRef:e});r.addChild(i),i.parent=r,this.fastMap.set(e,i),n&&(i.nodeToRestore=n)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(null===e)return;let t=this.fastMap.get(e);if(!t)return;let n=t.parent;for(let i of this.traverse())i!==t&&t.nodeToRestore&&i.nodeToRestore&&t.scopeRef&&t.scopeRef.current&&yi(i.nodeToRestore,t.scopeRef.current)&&(i.nodeToRestore=t.nodeToRestore);let r=t.children;n&&(n.removeChild(t),r.size>0&&r.forEach((e=>n&&n.addChild(e)))),this.fastMap.delete(t.scopeRef)}*traverse(e=this.root){if(null!=e.scopeRef&&(yield e),e.children.size>0)for(let t of e.children)yield*this.traverse(t)}clone(){var e;let t=new Ri;var n;for(let r of this.traverse())t.addTreeNode(r.scopeRef,null!==(n=null===(e=r.parent)||void 0===e?void 0:e.scopeRef)&&void 0!==n?n:null,r.nodeToRestore);return t}constructor(){this.fastMap=new Map,this.root=new Pi({scopeRef:null}),this.fastMap.set(null,this.root)}}class Pi{addChild(e){this.children.add(e),e.parent=this}removeChild(e){this.children.delete(e),e.parent=void 0}constructor(e){this.children=new Set,this.contain=!1,this.scopeRef=e.scopeRef}}let $i=new Ri,Ti=t.createContext(null);function _i(e,n){let{focusProps:r}=function(e){let{isDisabled:n,onFocus:r,onBlur:i,onFocusChange:a}=e;const o=t.useCallback((e=>{if(e.target===e.currentTarget)return i&&i(e),a&&a(!1),!0}),[i,a]),s=Lr(o),l=t.useCallback((e=>{const t=vn(e.target);e.target===e.currentTarget&&t.activeElement===e.target&&(r&&r(e),a&&a(!0),s(e))}),[a,r,s]);return{focusProps:{onFocus:!n&&(r||a||i)?l:void 0,onBlur:n||!i&&!a?void 0:o}}}(e),{keyboardProps:i}=ri(e),a=En(r,i),o=function(e){let n=t.useContext(Ti)||{};Yn(n,e);let{ref:r,...i}=n;return i}(n),s=e.isDisabled?{}:o,l=t.useRef(e.autoFocus);return t.useEffect((()=>{l.current&&n.current&&ai(n.current),l.current=!1}),[n]),{focusableProps:En({...a,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},s)}}const Mi=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),Ai=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function Ii(e){if(Intl.Locale){let t=new Intl.Locale(e).maximize(),n="function"==typeof t.getTextInfo?t.getTextInfo():t.textInfo;if(n)return"rtl"===n.direction;if(t.script)return Mi.has(t.script)}let t=e.split("-")[0];return Ai.has(t)}const Oi=Symbol.for("react-aria.i18n.locale");function Fi(){let e="undefined"!=typeof window&&window[Oi]||"undefined"!=typeof navigator&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:Ii(e)?"rtl":"ltr"}}let Li=Fi(),Vi=new Set;function Ni(){Li=Fi();for(let e of Vi)e(Li)}const zi=t.createContext(null);function Bi(){let e=function(){let e=dn(),[n,r]=t.useState(Li);return t.useEffect((()=>(0===Vi.size&&window.addEventListener("languagechange",Ni),Vi.add(r),()=>{Vi.delete(r),0===Vi.size&&window.removeEventListener("languagechange",Ni)})),[]),e?{locale:"en-US",direction:"ltr"}:n}();return t.useContext(zi)||e}const Ui=Symbol.for("react-aria.i18n.locale"),Wi=Symbol.for("react-aria.i18n.strings");let qi;class Ki{getStringForLocale(e,t){let n=this.getStringsForLocale(t)[e];if(!n)throw new Error(`Could not find intl message ${e} in ${t} locale`);return n}getStringsForLocale(e){let t=this.strings[e];return t||(t=function(e,t,n="en-US"){if(t[e])return t[e];let r=(i=e,Intl.Locale?new Intl.Locale(i).language:i.split("-")[0]);var i;if(t[r])return t[r];for(let a in t)if(a.startsWith(r+"-"))return t[a];return t[n]}(e,this.strings,this.defaultLocale),this.strings[e]=t),t}static getGlobalDictionaryForPackage(e){if("undefined"==typeof window)return null;let t=window[Ui];if(void 0===qi){let e=window[Wi];if(!e)return null;qi={};for(let n in e)qi[n]=new Ki({[t]:e[n]},t)}let n=null==qi?void 0:qi[e];if(!n)throw new Error(`Strings for package "${e}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return n}constructor(e,t="en-US"){this.strings=Object.fromEntries(Object.entries(e).filter((([,e])=>e))),this.defaultLocale=t}}const Hi=new Map,Zi=new Map;class Gi{format(e,t){let n=this.strings.getStringForLocale(e,this.locale);return"function"==typeof n?n(t,this):n}plural(e,t,n="cardinal"){let r=t["="+e];if(r)return"function"==typeof r?r():r;let i=this.locale+":"+n,a=Hi.get(i);return a||(a=new Intl.PluralRules(this.locale,{type:n}),Hi.set(i,a)),r=t[a.select(e)]||t.other,"function"==typeof r?r():r}number(e){let t=Zi.get(this.locale);return t||(t=new Intl.NumberFormat(this.locale),Zi.set(this.locale,t)),t.format(e)}select(e,t){let n=e[t]||e.other;return"function"==typeof n?n():n}constructor(e,t){this.locale=e,this.strings=t}}const Yi=new WeakMap;function Ji(e,t){return t&&Ki.getGlobalDictionaryForPackage(t)||function(e){let t=Yi.get(e);return t||(t=new Ki(e),Yi.set(e,t)),t}(e)}function Xi(e,n){let{locale:r}=Bi(),i=Ji(e,n);return t.useMemo((()=>new Gi(r,i)),[r,i])}function Qi(e){e=sr(null!=e?e:{},ea);let{locale:n}=Bi();return t.useMemo((()=>new Gt(n,e)),[n,e])}function ea(e,t){if(e===t)return!0;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i of n)if(t[i]!==e[i])return!1;return!0}let ta=new Map,na=!1;try{na="exceptZero"===new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay}catch{}let ra=!1;try{ra="unit"===new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style}catch{}const ia={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class aa{format(e){let t="";if(t=na||null==this.options.signDisplay?this.numberFormatter.format(e):function(e,t,n){if("auto"===t)return e.format(n);if("never"===t)return e.format(Math.abs(n));{let r=!1;if("always"===t?r=n>0||Object.is(n,0):"exceptZero"===t&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let t=e.format(-n),r=e.format(n),i=t.replace(r,"").replace(/\u200e|\u061C/,"");return t.replace(r,"!!!").replace(i,"+").replace("!!!",r)}return e.format(n)}}(this.numberFormatter,this.options.signDisplay,e),"unit"===this.options.style&&!ra){var n;let{unit:e,unitDisplay:r="short",locale:i}=this.resolvedOptions();if(!e)return t;let a=null===(n=ia[e])||void 0===n?void 0:n[r];t+=a[i]||a.default}return t}formatToParts(e){return this.numberFormatter.formatToParts(e)}formatRange(e,t){if("function"==typeof this.numberFormatter.formatRange)return this.numberFormatter.formatRange(e,t);if(t<e)throw new RangeError("End date must be >= start date");return`${this.format(e)} – ${this.format(t)}`}formatRangeToParts(e,t){if("function"==typeof this.numberFormatter.formatRangeToParts)return this.numberFormatter.formatRangeToParts(e,t);if(t<e)throw new RangeError("End date must be >= start date");let n=this.numberFormatter.formatToParts(e),r=this.numberFormatter.formatToParts(t);return[...n.map((e=>({...e,source:"startRange"}))),{type:"literal",value:" – ",source:"shared"},...r.map((e=>({...e,source:"endRange"})))]}resolvedOptions(){let e=this.numberFormatter.resolvedOptions();return na||null==this.options.signDisplay||(e={...e,signDisplay:this.options.signDisplay}),ra||"unit"!==this.options.style||(e={...e,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),e}constructor(e,t={}){this.numberFormatter=function(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),"unit"===t.style&&!ra){var r;let{unit:e,unitDisplay:n="short"}=t;if(!e)throw new Error('unit option must be provided with style: "unit"');if(!(null===(r=ia[e])||void 0===r?void 0:r[n]))throw new Error(`Unsupported unit ${e} with unitDisplay = ${n}`);t={...t,style:"decimal"}}let i=e+(t?Object.entries(t).sort(((e,t)=>e[0]<t[0]?-1:1)).join():"");if(ta.has(i))return ta.get(i);let a=new Intl.NumberFormat(e,t);return ta.set(i,a),a}(e,t),this.options=t}}const oa=new RegExp("^.*\\(.*\\).*$"),sa=["latn","arab","hanidec","deva","beng"];class la{parse(e){return ca(this.locale,this.options,e).parse(e)}isValidPartialNumber(e,t,n){return ca(this.locale,this.options,e).isValidPartialNumber(e,t,n)}getNumberingSystem(e){return ca(this.locale,this.options,e).options.numberingSystem}constructor(e,t={}){this.locale=e,this.options=t}}const ua=new Map;function ca(e,t,n){let r=da(e,t);if(!e.includes("-nu-")&&!r.isValidPartialNumber(n))for(let i of sa)if(i!==r.options.numberingSystem){let r=da(e+(e.includes("-u-")?"-nu-":"-u-nu-")+i,t);if(r.isValidPartialNumber(n))return r}return r}function da(e,t){let n=e+(t?Object.entries(t).sort(((e,t)=>e[0]<t[0]?-1:1)).join():""),r=ua.get(n);return r||(r=new pa(e,t),ua.set(n,r)),r}class pa{parse(e){let t=this.sanitize(e);if(this.symbols.group&&(t=ma(t,this.symbols.group,"")),this.symbols.decimal&&(t=t.replace(this.symbols.decimal,".")),this.symbols.minusSign&&(t=t.replace(this.symbols.minusSign,"-")),t=t.replace(this.symbols.numeral,this.symbols.index),"percent"===this.options.style){let e=t.indexOf("-");t=t.replace("-","");let n=t.indexOf(".");-1===n&&(n=t.length),t=t.replace(".",""),t=n-2==0?`0.${t}`:n-2==-1?`0.0${t}`:n-2==-2?"0.00":`${t.slice(0,n-2)}.${t.slice(n-2)}`,e>-1&&(t=`-${t}`)}let n=t?+t:NaN;if(isNaN(n))return NaN;if("percent"===this.options.style){var r,i;let e={...this.options,style:"decimal",minimumFractionDigits:Math.min((null!==(r=this.options.minimumFractionDigits)&&void 0!==r?r:0)+2,20),maximumFractionDigits:Math.min((null!==(i=this.options.maximumFractionDigits)&&void 0!==i?i:0)+2,20)};return new la(this.locale,e).parse(new aa(this.locale,e).format(n))}return"accounting"===this.options.currencySign&&oa.test(e)&&(n*=-1),n}sanitize(e){return e=e.replace(this.symbols.literals,""),this.symbols.minusSign&&(e=e.replace("-",this.symbols.minusSign)),"arab"===this.options.numberingSystem&&(this.symbols.decimal&&(e=(e=e.replace(",",this.symbols.decimal)).replace(String.fromCharCode(1548),this.symbols.decimal)),this.symbols.group&&(e=ma(e,".",this.symbols.group))),"fr-FR"===this.options.locale&&(e=ma(e,".",String.fromCharCode(8239))),e}isValidPartialNumber(e,t=-1/0,n=1/0){return e=this.sanitize(e),this.symbols.minusSign&&e.startsWith(this.symbols.minusSign)&&t<0?e=e.slice(this.symbols.minusSign.length):this.symbols.plusSign&&e.startsWith(this.symbols.plusSign)&&n>0&&(e=e.slice(this.symbols.plusSign.length)),!(this.symbols.group&&e.startsWith(this.symbols.group)||this.symbols.decimal&&e.indexOf(this.symbols.decimal)>-1&&0===this.options.maximumFractionDigits||(this.symbols.group&&(e=ma(e,this.symbols.group,"")),e=e.replace(this.symbols.numeral,""),this.symbols.decimal&&(e=e.replace(this.symbols.decimal,"")),0!==e.length))}constructor(e,t={}){var n;this.locale=e,this.formatter=new Intl.NumberFormat(e,t),this.options=this.formatter.resolvedOptions(),this.symbols=function(e,t,n,r){var i,a,o,s;let l=new Intl.NumberFormat(e,{...n,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand"}),u=l.formatToParts(-10000.111),c=l.formatToParts(10000.111),d=fa.map((e=>l.formatToParts(e)));var p;let h=null!==(p=null===(i=u.find((e=>"minusSign"===e.type)))||void 0===i?void 0:i.value)&&void 0!==p?p:"-",f=null===(a=c.find((e=>"plusSign"===e.type)))||void 0===a?void 0:a.value;f||"exceptZero"!==(null==r?void 0:r.signDisplay)&&"always"!==(null==r?void 0:r.signDisplay)||(f="+");let m=null===(o=new Intl.NumberFormat(e,{...n,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find((e=>"decimal"===e.type)))||void 0===o?void 0:o.value,g=null===(s=u.find((e=>"group"===e.type)))||void 0===s?void 0:s.value,y=u.filter((e=>!ha.has(e.type))).map((e=>ga(e.value))),v=d.flatMap((e=>e.filter((e=>!ha.has(e.type))).map((e=>ga(e.value))))),b=[...new Set([...y,...v])].sort(((e,t)=>t.length-e.length)),x=0===b.length?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${b.join("|")}|[\\p{White_Space}]`,"gu"),w=[...new Intl.NumberFormat(n.locale,{useGrouping:!1}).format(9876543210)].reverse(),E=new Map(w.map(((e,t)=>[e,t])));return{minusSign:h,plusSign:f,decimal:m,group:g,literals:x,numeral:new RegExp(`[${w.join("")}]`,"g"),index:e=>String(E.get(e))}}(e,this.formatter,this.options,t),"percent"===this.options.style&&((null!==(n=this.options.minimumFractionDigits)&&void 0!==n?n:0)>18||this.options.maximumFractionDigits)}}const ha=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),fa=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function ma(e,t,n){return e.replaceAll?e.replaceAll(t,n):e.split(t).join(n)}function ga(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}let ya=new Map;var va;function ba(e){return e&&e.__esModule?e.default:e}va={"ar-AE":{dateRange:e=>`${e.startDate} إلى ${e.endDate}`,dateSelected:e=>`${e.date} المحدد`,finishRangeSelectionPrompt:"انقر لإنهاء عملية تحديد نطاق التاريخ",maximumDate:"آخر تاريخ متاح",minimumDate:"أول تاريخ متاح",next:"التالي",previous:"السابق",selectedDateDescription:e=>`تاريخ محدد: ${e.date}`,selectedRangeDescription:e=>`المدى الزمني المحدد: ${e.dateRange}`,startRangeSelectionPrompt:"انقر لبدء عملية تحديد نطاق التاريخ",todayDate:e=>`اليوم، ${e.date}`,todayDateSelected:e=>`اليوم، ${e.date} محدد`},"bg-BG":{dateRange:e=>`${e.startDate} до ${e.endDate}`,dateSelected:e=>`Избрано е ${e.date}`,finishRangeSelectionPrompt:"Натиснете, за да довършите избора на времеви интервал",maximumDate:"Последна налична дата",minimumDate:"Първа налична дата",next:"Напред",previous:"Назад",selectedDateDescription:e=>`Избрана дата: ${e.date}`,selectedRangeDescription:e=>`Избран диапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Натиснете, за да пристъпите към избора на времеви интервал",todayDate:e=>`Днес, ${e.date}`,todayDateSelected:e=>`Днес, ${e.date} са избрани`},"cs-CZ":{dateRange:e=>`${e.startDate} až ${e.endDate}`,dateSelected:e=>`Vybráno ${e.date}`,finishRangeSelectionPrompt:"Kliknutím dokončíte výběr rozsahu dat",maximumDate:"Poslední dostupné datum",minimumDate:"První dostupné datum",next:"Další",previous:"Předchozí",selectedDateDescription:e=>`Vybrané datum: ${e.date}`,selectedRangeDescription:e=>`Vybrané období: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknutím zahájíte výběr rozsahu dat",todayDate:e=>`Dnes, ${e.date}`,todayDateSelected:e=>`Dnes, vybráno ${e.date}`},"da-DK":{dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klik for at fuldføre valg af datoområde",maximumDate:"Sidste ledige dato",minimumDate:"Første ledige dato",next:"Næste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.dateRange}`,startRangeSelectionPrompt:"Klik for at starte valg af datoområde",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`},"de-DE":{dateRange:e=>`${e.startDate} bis ${e.endDate}`,dateSelected:e=>`${e.date} ausgewählt`,finishRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beenden",maximumDate:"Letztes verfügbares Datum",minimumDate:"Erstes verfügbares Datum",next:"Weiter",previous:"Zurück",selectedDateDescription:e=>`Ausgewähltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgewählter Bereich: ${e.dateRange}`,startRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beginnen",todayDate:e=>`Heute, ${e.date}`,todayDateSelected:e=>`Heute, ${e.date} ausgewählt`},"el-GR":{dateRange:e=>`${e.startDate} έως ${e.endDate}`,dateSelected:e=>`Επιλέχθηκε ${e.date}`,finishRangeSelectionPrompt:"Κάντε κλικ για να ολοκληρώσετε την επιλογή εύρους ημερομηνιών",maximumDate:"Τελευταία διαθέσιμη ημερομηνία",minimumDate:"Πρώτη διαθέσιμη ημερομηνία",next:"Επόμενο",previous:"Προηγούμενο",selectedDateDescription:e=>`Επιλεγμένη ημερομηνία: ${e.date}`,selectedRangeDescription:e=>`Επιλεγμένο εύρος: ${e.dateRange}`,startRangeSelectionPrompt:"Κάντε κλικ για να ξεκινήσετε την επιλογή εύρους ημερομηνιών",todayDate:e=>`Σήμερα, ${e.date}`,todayDateSelected:e=>`Σήμερα, επιλέχτηκε ${e.date}`},"en-US":{previous:"Previous",next:"Next",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.dateRange}`,todayDate:e=>`Today, ${e.date}`,todayDateSelected:e=>`Today, ${e.date} selected`,dateSelected:e=>`${e.date} selected`,startRangeSelectionPrompt:"Click to start selecting date range",finishRangeSelectionPrompt:"Click to finish selecting date range",minimumDate:"First available date",maximumDate:"Last available date",dateRange:e=>`${e.startDate} to ${e.endDate}`},"es-ES":{dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} seleccionado`,finishRangeSelectionPrompt:"Haga clic para terminar de seleccionar rango de fechas",maximumDate:"Última fecha disponible",minimumDate:"Primera fecha disponible",next:"Siguiente",previous:"Anterior",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo seleccionado: ${e.dateRange}`,startRangeSelectionPrompt:"Haga clic para comenzar a seleccionar un rango de fechas",todayDate:e=>`Hoy, ${e.date}`,todayDateSelected:e=>`Hoy, ${e.date} seleccionado`},"et-EE":{dateRange:e=>`${e.startDate} kuni ${e.endDate}`,dateSelected:e=>`${e.date} valitud`,finishRangeSelectionPrompt:"Klõpsake kuupäevavahemiku valimise lõpetamiseks",maximumDate:"Viimane saadaolev kuupäev",minimumDate:"Esimene saadaolev kuupäev",next:"Järgmine",previous:"Eelmine",selectedDateDescription:e=>`Valitud kuupäev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.dateRange}`,startRangeSelectionPrompt:"Klõpsake kuupäevavahemiku valimiseks",todayDate:e=>`Täna, ${e.date}`,todayDateSelected:e=>`Täna, ${e.date} valitud`},"fi-FI":{dateRange:e=>`${e.startDate} – ${e.endDate}`,dateSelected:e=>`${e.date} valittu`,finishRangeSelectionPrompt:"Lopeta päivämääräalueen valinta napsauttamalla tätä.",maximumDate:"Viimeinen varattavissa oleva päivämäärä",minimumDate:"Ensimmäinen varattavissa oleva päivämäärä",next:"Seuraava",previous:"Edellinen",selectedDateDescription:e=>`Valittu päivämäärä: ${e.date}`,selectedRangeDescription:e=>`Valittu aikaväli: ${e.dateRange}`,startRangeSelectionPrompt:"Aloita päivämääräalueen valinta napsauttamalla tätä.",todayDate:e=>`Tänään, ${e.date}`,todayDateSelected:e=>`Tänään, ${e.date} valittu`},"fr-FR":{dateRange:e=>`${e.startDate} à ${e.endDate}`,dateSelected:e=>`${e.date} sélectionné`,finishRangeSelectionPrompt:"Cliquer pour finir de sélectionner la plage de dates",maximumDate:"Dernière date disponible",minimumDate:"Première date disponible",next:"Suivant",previous:"Précédent",selectedDateDescription:e=>`Date sélectionnée : ${e.date}`,selectedRangeDescription:e=>`Plage sélectionnée : ${e.dateRange}`,startRangeSelectionPrompt:"Cliquer pour commencer à sélectionner la plage de dates",todayDate:e=>`Aujourd'hui, ${e.date}`,todayDateSelected:e=>`Aujourd’hui, ${e.date} sélectionné`},"he-IL":{dateRange:e=>`${e.startDate} עד ${e.endDate}`,dateSelected:e=>`${e.date} נבחר`,finishRangeSelectionPrompt:"חץ כדי לסיים את בחירת טווח התאריכים",maximumDate:"תאריך פנוי אחרון",minimumDate:"תאריך פנוי ראשון",next:"הבא",previous:"הקודם",selectedDateDescription:e=>`תאריך נבחר: ${e.date}`,selectedRangeDescription:e=>`טווח נבחר: ${e.dateRange}`,startRangeSelectionPrompt:"לחץ כדי להתחיל בבחירת טווח התאריכים",todayDate:e=>`היום, ${e.date}`,todayDateSelected:e=>`היום, ${e.date} נבחר`},"hr-HR":{dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} odabran`,finishRangeSelectionPrompt:"Kliknite da dovršite raspon odabranih datuma",maximumDate:"Posljednji raspoloživi datum",minimumDate:"Prvi raspoloživi datum",next:"Sljedeći",previous:"Prethodni",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da započnete raspon odabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, odabran ${e.date}`},"hu-HU":{dateRange:e=>`${e.startDate}–${e.endDate}`,dateSelected:e=>`${e.date} kiválasztva`,finishRangeSelectionPrompt:"Kattintson a dátumtartomány kijelölésének befejezéséhez",maximumDate:"Utolsó elérhető dátum",minimumDate:"Az első elérhető dátum",next:"Következő",previous:"Előző",selectedDateDescription:e=>`Kijelölt dátum: ${e.date}`,selectedRangeDescription:e=>`Kijelölt tartomány: ${e.dateRange}`,startRangeSelectionPrompt:"Kattintson a dátumtartomány kijelölésének indításához",todayDate:e=>`Ma, ${e.date}`,todayDateSelected:e=>`Ma, ${e.date} kijelölve`},"it-IT":{dateRange:e=>`Da ${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selezionata`,finishRangeSelectionPrompt:"Fai clic per completare la selezione dell’intervallo di date",maximumDate:"Ultima data disponibile",minimumDate:"Prima data disponibile",next:"Successivo",previous:"Precedente",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: ${e.dateRange}`,startRangeSelectionPrompt:"Fai clic per selezionare l’intervallo di date",todayDate:e=>`Oggi, ${e.date}`,todayDateSelected:e=>`Oggi, ${e.date} selezionata`},"ja-JP":{dateRange:e=>`${e.startDate} から ${e.endDate}`,dateSelected:e=>`${e.date} を選択`,finishRangeSelectionPrompt:"クリックして日付範囲の選択を終了",maximumDate:"最終利用可能日",minimumDate:"最初の利用可能日",next:"次へ",previous:"前へ",selectedDateDescription:e=>`選択した日付 : ${e.date}`,selectedRangeDescription:e=>`選択範囲 : ${e.dateRange}`,startRangeSelectionPrompt:"クリックして日付範囲の選択を開始",todayDate:e=>`本日、${e.date}`,todayDateSelected:e=>`本日、${e.date} を選択`},"ko-KR":{dateRange:e=>`${e.startDate} ~ ${e.endDate}`,dateSelected:e=>`${e.date} 선택됨`,finishRangeSelectionPrompt:"날짜 범위 선택을 완료하려면 클릭하십시오.",maximumDate:"마지막으로 사용 가능한 일자",minimumDate:"처음으로 사용 가능한 일자",next:"다음",previous:"이전",selectedDateDescription:e=>`선택 일자: ${e.date}`,selectedRangeDescription:e=>`선택 범위: ${e.dateRange}`,startRangeSelectionPrompt:"날짜 범위 선택을 시작하려면 클릭하십시오.",todayDate:e=>`오늘, ${e.date}`,todayDateSelected:e=>`오늘, ${e.date} 선택됨`},"lt-LT":{dateRange:e=>`Nuo ${e.startDate} iki ${e.endDate}`,dateSelected:e=>`Pasirinkta ${e.date}`,finishRangeSelectionPrompt:"Spustelėkite, kad baigtumėte pasirinkti datų intervalą",maximumDate:"Paskutinė galima data",minimumDate:"Pirmoji galima data",next:"Paskesnis",previous:"Ankstesnis",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: ${e.dateRange}`,startRangeSelectionPrompt:"Spustelėkite, kad pradėtumėte pasirinkti datų intervalą",todayDate:e=>`Šiandien, ${e.date}`,todayDateSelected:e=>`Šiandien, pasirinkta ${e.date}`},"lv-LV":{dateRange:e=>`No ${e.startDate} līdz ${e.endDate}`,dateSelected:e=>`Atlasīts: ${e.date}`,finishRangeSelectionPrompt:"Noklikšķiniet, lai pabeigtu datumu diapazona atlasi",maximumDate:"Pēdējais pieejamais datums",minimumDate:"Pirmais pieejamais datums",next:"Tālāk",previous:"Atpakaļ",selectedDateDescription:e=>`Atlasītais datums: ${e.date}`,selectedRangeDescription:e=>`Atlasītais diapazons: ${e.dateRange}`,startRangeSelectionPrompt:"Noklikšķiniet, lai sāktu datumu diapazona atlasi",todayDate:e=>`Šodien, ${e.date}`,todayDateSelected:e=>`Atlasīta šodiena, ${e.date}`},"nb-NO":{dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klikk for å fullføre valg av datoområde",maximumDate:"Siste tilgjengelige dato",minimumDate:"Første tilgjengelige dato",next:"Neste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt område: ${e.dateRange}`,startRangeSelectionPrompt:"Klikk for å starte valg av datoområde",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`},"nl-NL":{dateRange:e=>`${e.startDate} tot ${e.endDate}`,dateSelected:e=>`${e.date} geselecteerd`,finishRangeSelectionPrompt:"Klik om de selectie van het datumbereik te voltooien",maximumDate:"Laatste beschikbare datum",minimumDate:"Eerste beschikbare datum",next:"Volgende",previous:"Vorige",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.dateRange}`,startRangeSelectionPrompt:"Klik om het datumbereik te selecteren",todayDate:e=>`Vandaag, ${e.date}`,todayDateSelected:e=>`Vandaag, ${e.date} geselecteerd`},"pl-PL":{dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`Wybrano ${e.date}`,finishRangeSelectionPrompt:"Kliknij, aby zakończyć wybór zakresu dat",maximumDate:"Ostatnia dostępna data",minimumDate:"Pierwsza dostępna data",next:"Dalej",previous:"Wstecz",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknij, aby rozpocząć wybór zakresu dat",todayDate:e=>`Dzisiaj, ${e.date}`,todayDateSelected:e=>`Dzisiaj wybrano ${e.date}`},"pt-BR":{dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para concluir a seleção do intervalo de datas",maximumDate:"Última data disponível",minimumDate:"Primeira data disponível",next:"Próximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para iniciar a seleção do intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`},"pt-PT":{dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para terminar de selecionar o intervalo de datas",maximumDate:"Última data disponível",minimumDate:"Primeira data disponível",next:"Próximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para começar a selecionar o intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`},"ro-RO":{dateRange:e=>`De la ${e.startDate} până la ${e.endDate}`,dateSelected:e=>`${e.date} selectată`,finishRangeSelectionPrompt:"Apăsaţi pentru a finaliza selecţia razei pentru dată",maximumDate:"Ultima dată disponibilă",minimumDate:"Prima dată disponibilă",next:"Următorul",previous:"Înainte",selectedDateDescription:e=>`Dată selectată: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: ${e.dateRange}`,startRangeSelectionPrompt:"Apăsaţi pentru a începe selecţia razei pentru dată",todayDate:e=>`Astăzi, ${e.date}`,todayDateSelected:e=>`Azi, ${e.date} selectată`},"ru-RU":{dateRange:e=>`С ${e.startDate} по ${e.endDate}`,dateSelected:e=>`Выбрано ${e.date}`,finishRangeSelectionPrompt:"Щелкните, чтобы завершить выбор диапазона дат",maximumDate:"Последняя доступная дата",minimumDate:"Первая доступная дата",next:"Далее",previous:"Назад",selectedDateDescription:e=>`Выбранная дата: ${e.date}`,selectedRangeDescription:e=>`Выбранный диапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Щелкните, чтобы начать выбор диапазона дат",todayDate:e=>`Сегодня, ${e.date}`,todayDateSelected:e=>`Сегодня, выбрано ${e.date}`},"sk-SK":{dateRange:e=>`Od ${e.startDate} do ${e.endDate}`,dateSelected:e=>`Vybratý dátum ${e.date}`,finishRangeSelectionPrompt:"Kliknutím dokončíte výber rozsahu dátumov",maximumDate:"Posledný dostupný dátum",minimumDate:"Prvý dostupný dátum",next:"Nasledujúce",previous:"Predchádzajúce",selectedDateDescription:e=>`Vybratý dátum: ${e.date}`,selectedRangeDescription:e=>`Vybratý rozsah: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknutím spustíte výber rozsahu dátumov",todayDate:e=>`Dnes ${e.date}`,todayDateSelected:e=>`Vybratý dnešný dátum ${e.date}`},"sl-SI":{dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izbrano`,finishRangeSelectionPrompt:"Kliknite za dokončanje izbire datumskega obsega",maximumDate:"Zadnji razpoložljivi datum",minimumDate:"Prvi razpoložljivi datum",next:"Naprej",previous:"Nazaj",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano območje: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite za začetek izbire datumskega obsega",todayDate:e=>`Danes, ${e.date}`,todayDateSelected:e=>`Danes, ${e.date} izbrano`},"sr-SP":{dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izabran`,finishRangeSelectionPrompt:"Kliknite da dovršite opseg izabranih datuma",maximumDate:"Zadnji raspoloživi datum",minimumDate:"Prvi raspoloživi datum",next:"Sledeći",previous:"Prethodni",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani period: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da započnete opseg izabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, izabran ${e.date}`},"sv-SE":{dateRange:e=>`${e.startDate} till ${e.endDate}`,dateSelected:e=>`${e.date} har valts`,finishRangeSelectionPrompt:"Klicka för att avsluta val av datumintervall",maximumDate:"Sista tillgängliga datum",minimumDate:"Första tillgängliga datum",next:"Nästa",previous:"Föregående",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.dateRange}`,startRangeSelectionPrompt:"Klicka för att välja datumintervall",todayDate:e=>`Idag, ${e.date}`,todayDateSelected:e=>`Idag, ${e.date} har valts`},"tr-TR":{dateRange:e=>`${e.startDate} - ${e.endDate}`,dateSelected:e=>`${e.date} seçildi`,finishRangeSelectionPrompt:"Tarih aralığı seçimini tamamlamak için tıklayın",maximumDate:"Son müsait tarih",minimumDate:"İlk müsait tarih",next:"Sonraki",previous:"Önceki",selectedDateDescription:e=>`Seçilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Seçilen Aralık: ${e.dateRange}`,startRangeSelectionPrompt:"Tarih aralığı seçimini başlatmak için tıklayın",todayDate:e=>`Bugün, ${e.date}`,todayDateSelected:e=>`Bugün, ${e.date} seçildi`},"uk-UA":{dateRange:e=>`${e.startDate} — ${e.endDate}`,dateSelected:e=>`Вибрано ${e.date}`,finishRangeSelectionPrompt:"Натисніть, щоб завершити вибір діапазону дат",maximumDate:"Остання доступна дата",minimumDate:"Перша доступна дата",next:"Наступний",previous:"Попередній",selectedDateDescription:e=>`Вибрана дата: ${e.date}`,selectedRangeDescription:e=>`Вибраний діапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Натисніть, щоб почати вибір діапазону дат",todayDate:e=>`Сьогодні, ${e.date}`,todayDateSelected:e=>`Сьогодні, вибрано ${e.date}`},"zh-CN":{dateRange:e=>`${e.startDate} 至 ${e.endDate}`,dateSelected:e=>`已选择 ${e.date}`,finishRangeSelectionPrompt:"单击以完成选择日期范围",maximumDate:"最后一个可用日期",minimumDate:"第一个可用日期",next:"下一页",previous:"上一页",selectedDateDescription:e=>`选定的日期:${e.date}`,selectedRangeDescription:e=>`选定的范围:${e.dateRange}`,startRangeSelectionPrompt:"单击以开始选择日期范围",todayDate:e=>`今天,即 ${e.date}`,todayDateSelected:e=>`已选择今天,即 ${e.date}`},"zh-TW":{dateRange:e=>`${e.startDate} 至 ${e.endDate}`,dateSelected:e=>`已選取 ${e.date}`,finishRangeSelectionPrompt:"按一下以完成選取日期範圍",maximumDate:"最後一個可用日期",minimumDate:"第一個可用日期",next:"下一頁",previous:"上一頁",selectedDateDescription:e=>`選定的日期:${e.date}`,selectedRangeDescription:e=>`選定的範圍:${e.dateRange}`,startRangeSelectionPrompt:"按一下以開始選取日期範圍",todayDate:e=>`今天,${e.date}`,todayDateSelected:e=>`已選取今天,${e.date}`}};const xa=new WeakMap;function wa(e){return"gregory"===(null==e?void 0:e.calendar.identifier)&&"BC"===e.era?"short":void 0}function Ea(e,n,r,i){let a=Xi(ba(va),"@react-aria/calendar"),o=wa(e)||wa(n),s=Qi({month:"long",year:"numeric",era:o,calendar:e.calendar.identifier,timeZone:r}),l=Qi({month:"long",year:"numeric",day:"numeric",era:o,calendar:e.calendar.identifier,timeZone:r});return t.useMemo((()=>{if(F(e,Z(e))){if(F(n,G(e)))return s.format(e.toDate(r));if(F(n,G(n)))return i?ka(s,a,e,n,r):s.formatRange(e.toDate(r),n.toDate(r))}return i?ka(l,a,e,n,r):l.formatRange(e.toDate(r),n.toDate(r))}),[e,n,s,l,a,r,i])}function ka(e,t,n,r,i){let a=e.formatRangeToParts(n.toDate(i),r.toDate(i)),o=-1;for(let u=0;u<a.length;u++){let e=a[u];if("shared"===e.source&&"literal"===e.type)o=u;else if("endRange"===e.source)break}let s="",l="";for(let u=0;u<a.length;u++)u<o?s+=a[u].value:u>o&&(l+=a[u].value);return t.format("dateRange",{startDate:s,endDate:l})}let Sa=null;function Da(e,t="assertive",n=7e3){Sa?Sa.announce(e,t,n):(Sa=new ja,("boolean"==typeof IS_REACT_ACT_ENVIRONMENT?IS_REACT_ACT_ENVIRONMENT:"undefined"!=typeof jest)?Sa.announce(e,t,n):setTimeout((()=>{(null==Sa?void 0:Sa.isAttached())&&(null==Sa||Sa.announce(e,t,n))}),100))}class ja{isAttached(){var e;return null===(e=this.node)||void 0===e?void 0:e.isConnected}createLog(e){let t=document.createElement("div");return t.setAttribute("role","log"),t.setAttribute("aria-live",e),t.setAttribute("aria-relevant","additions"),t}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(e,t="assertive",n=7e3){var r,i;if(!this.node)return;let a=document.createElement("div");"object"==typeof e?(a.setAttribute("role","img"),a.setAttribute("aria-labelledby",e["aria-labelledby"])):a.textContent=e,"assertive"===t?null===(r=this.assertiveLog)||void 0===r||r.appendChild(a):null===(i=this.politeLog)||void 0===i||i.appendChild(a),""!==e&&setTimeout((()=>{a.remove()}),n)}clear(e){this.node&&(e&&"assertive"!==e||!this.assertiveLog||(this.assertiveLog.innerHTML=""),e&&"polite"!==e||!this.politeLog||(this.politeLog.innerHTML=""))}constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,"undefined"!=typeof document&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}}function Ca(e,n){let r=Xi((i=va)&&i.__esModule?i.default:i,"@react-aria/calendar");var i;let a=Cn(e),o=Ea(n.visibleRange.start,n.visibleRange.end,n.timeZone,!1),s=Ea(n.visibleRange.start,n.visibleRange.end,n.timeZone,!0);Zn((()=>{n.isFocused||Da(s)}),[s]);let l=function(e){let n,r,i=Xi(ba(va),"@react-aria/calendar");var a;"highlightedRange"in e?({start:n,end:r}=e.highlightedRange||{}):n=r=null!==(a=e.value)&&void 0!==a?a:void 0;let o=Qi({weekday:"long",month:"long",year:"numeric",day:"numeric",era:wa(n)||wa(r),timeZone:e.timeZone}),s="anchorDate"in e?e.anchorDate:null;return t.useMemo((()=>{if(!s&&n&&r){if(F(n,r)){let t=o.format(n.toDate(e.timeZone));return i.format("selectedDateDescription",{date:t})}{let t=ka(o,i,n,r,e.timeZone);return i.format("selectedRangeDescription",{dateRange:t})}}return""}),[n,r,s,e.timeZone,i,o])}(n);Zn((()=>{l&&Da(l,"polite",4e3)}),[l]);let u=gn([Boolean(e.errorMessage),e.isInvalid,e.validationState]);xa.set(n,{ariaLabel:e["aria-label"],ariaLabelledBy:e["aria-labelledby"],errorMessageId:u,selectedDateDescription:l});let[c,d]=t.useState(!1),p=e.isDisabled||n.isNextVisibleRangeInvalid();p&&c&&(d(!1),n.setFocused(!0));let[h,f]=t.useState(!1),m=e.isDisabled||n.isPreviousVisibleRangeInvalid();return m&&h&&(f(!1),n.setFocused(!0)),{calendarProps:En(a,Hn({id:e.id,"aria-label":[e["aria-label"],s].filter(Boolean).join(", "),"aria-labelledby":e["aria-labelledby"]}),{role:"application","aria-describedby":e["aria-describedby"]||void 0}),nextButtonProps:{onPress:()=>n.focusNextPage(),"aria-label":r.format("next"),isDisabled:p,onFocusChange:d},prevButtonProps:{onPress:()=>n.focusPreviousPage(),"aria-label":r.format("previous"),isDisabled:m,onFocusChange:f},errorMessageProps:{id:u},title:o}}function Ra(e,t){return Ca(e,t)}const Pa={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},$a={...Pa,customError:!0,valid:!1},Ta={isInvalid:!1,validationDetails:Pa,validationErrors:[]},_a=t.createContext({}),Ma="__formValidationState"+Date.now();function Aa(e){if(e[Ma]){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:a}=e[Ma];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:a}}return function(e){let{isInvalid:n,validationState:r,name:i,value:a,builtinValidation:o,validate:s,validationBehavior:l="aria"}=e;r&&(n||(n="invalid"===r));let u=void 0!==n?{isInvalid:n,validationErrors:[],validationDetails:$a}:null,c=t.useMemo((()=>{if(!s||null==a)return null;return Oa(function(e,t){if("function"==typeof e){let n=e(t);if(n&&"boolean"!=typeof n)return Ia(n)}return[]}(s,a))}),[s,a]);(null==o?void 0:o.validationDetails.valid)&&(o=void 0);let d=t.useContext(_a),p=t.useMemo((()=>i?Array.isArray(i)?i.flatMap((e=>Ia(d[e]))):Ia(d[i]):[]),[d,i]),[h,f]=t.useState(d),[m,g]=t.useState(!1);d!==h&&(f(d),g(!1));let y=t.useMemo((()=>Oa(m?[]:p)),[m,p]),v=t.useRef(Ta),[b,x]=t.useState(Ta),w=t.useRef(Ta),[E,k]=t.useState(!1);return t.useEffect((()=>{if(!E)return;k(!1);let e=c||o||v.current;Fa(e,w.current)||(w.current=e,x(e))})),{realtimeValidation:u||y||c||o||Ta,displayValidation:"native"===l?u||y||b:u||y||c||o||b,updateValidation(e){"aria"!==l||Fa(b,e)?v.current=e:x(e)},resetValidation(){let e=Ta;Fa(e,w.current)||(w.current=e,x(e)),"native"===l&&k(!1),g(!0)},commitValidation(){"native"===l&&k(!0),g(!0)}}}(e)}function Ia(e){return e?Array.isArray(e)?e:[e]:[]}function Oa(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:$a}:null}function Fa(e,t){return e===t||!!e&&!!t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every(((e,n)=>e===t.validationErrors[n]))&&Object.entries(e.validationDetails).every((([e,n])=>t.validationDetails[e]===n))}function La(...e){let t=new Set,n=!1,r={...Pa};for(let o of e){var i,a;for(let e of o.validationErrors)t.add(e);n||(n=o.isInvalid);for(let e in r)(i=r)[a=e]||(i[a]=o.validationDetails[e])}return r.valid=!n,{isInvalid:n,validationErrors:[...t],validationDetails:r}}function Va(e){let t=e.validity;return{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing,valid:t.valid}}function Na(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:a="label"}=e;t=fn(t);let o=fn(),s={};return n&&(r=r?`${o} ${r}`:o,s={id:o,htmlFor:"label"===a?t:void 0}),{labelProps:s,fieldProps:Hn({id:t,"aria-label":i,"aria-labelledby":r})}}function za(e){let{description:t,errorMessage:n,isInvalid:r,validationState:i}=e,{labelProps:a,fieldProps:o}=Na(e),s=gn([Boolean(t),Boolean(n),r,i]),l=gn([Boolean(t),Boolean(n),r,i]);return o=En(o,{"aria-describedby":[s,l,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:a,fieldProps:o,descriptionProps:{id:s},errorMessageProps:{id:l}}}const Ba=0,Ua=100,Wa=1;function qa(e,t,n){return e[t]===n?e:[...e.slice(0,t),n,...e.slice(t+1)]}function Ka(e){if(null!=e)return Array.isArray(e)?e:[e]}function Ha(e,t,n){return r=>{"number"==typeof e||"number"==typeof t?null==n||n(r[0]):null==n||n(r)}}const Za={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function Ga(e){let{children:n,elementType:r="div",isFocusable:i,style:a,...o}=e,{visuallyHiddenProps:s}=function(e={}){let{style:n,isFocusable:r}=e,[i,a]=t.useState(!1),{focusWithinProps:o}=ei({isDisabled:!r,onFocusWithinChange:e=>a(e)});return{visuallyHiddenProps:{...o,style:t.useMemo((()=>i?n:n?{...Za,...n}:Za),[i])}}}(e);return t.createElement(r,En(o,s),n)}const Ya=new WeakMap;function Ja(e,t){let n=Ya.get(e);if(!n)throw new Error("Unknown slider state");return`${n.id}-${t}`}var Xa;Xa={"ar-AE":{Empty:"فارغ"},"bg-BG":{Empty:"Изпразни"},"cs-CZ":{Empty:"Prázdné"},"da-DK":{Empty:"Tom"},"de-DE":{Empty:"Leer"},"el-GR":{Empty:"Άδειο"},"en-US":{Empty:"Empty"},"es-ES":{Empty:"Vacío"},"et-EE":{Empty:"Tühjenda"},"fi-FI":{Empty:"Tyhjä"},"fr-FR":{Empty:"Vide"},"he-IL":{Empty:"ריק"},"hr-HR":{Empty:"Prazno"},"hu-HU":{Empty:"Üres"},"it-IT":{Empty:"Vuoto"},"ja-JP":{Empty:"空"},"ko-KR":{Empty:"비어 있음"},"lt-LT":{Empty:"Tuščias"},"lv-LV":{Empty:"Tukšs"},"nb-NO":{Empty:"Tom"},"nl-NL":{Empty:"Leeg"},"pl-PL":{Empty:"Pusty"},"pt-BR":{Empty:"Vazio"},"pt-PT":{Empty:"Vazio"},"ro-RO":{Empty:"Gol"},"ru-RU":{Empty:"Не заполнено"},"sk-SK":{Empty:"Prázdne"},"sl-SI":{Empty:"Prazen"},"sr-SP":{Empty:"Prazno"},"sv-SE":{Empty:"Tomt"},"tr-TR":{Empty:"Boş"},"uk-UA":{Empty:"Пусто"},"zh-CN":{Empty:"空"},"zh-TW":{Empty:"空白"}};const Qa={top:"top",bottom:"top",left:"left",right:"left"},eo={top:"bottom",bottom:"top",left:"right",right:"left"},to={top:"left",left:"top"},no={top:"height",left:"width"},ro={width:"totalWidth",height:"totalHeight"},io={};let ao="undefined"!=typeof document?window.visualViewport:null;function oo(e){let t=0,n=0,r=0,i=0,a=0,o=0,s={};var l;let u=(null!==(l=null==ao?void 0:ao.scale)&&void 0!==l?l:1)>1;if("BODY"===e.tagName){let l=document.documentElement;var c,d;r=l.clientWidth,i=l.clientHeight,t=null!==(c=null==ao?void 0:ao.width)&&void 0!==c?c:r,n=null!==(d=null==ao?void 0:ao.height)&&void 0!==d?d:i,s.top=l.scrollTop||e.scrollTop,s.left=l.scrollLeft||e.scrollLeft,ao&&(a=ao.offsetTop,o=ao.offsetLeft)}else({width:t,height:n,top:a,left:o}=ho(e)),s.top=e.scrollTop,s.left=e.scrollLeft,r=t,i=n;var p,h;return Fn()&&("BODY"===e.tagName||"HTML"===e.tagName)&&u&&(s.top=0,s.left=0,a=null!==(p=null==ao?void 0:ao.pageTop)&&void 0!==p?p:0,o=null!==(h=null==ao?void 0:ao.pageLeft)&&void 0!==h?h:0),{width:t,height:n,totalWidth:r,totalHeight:i,scroll:s,top:a,left:o}}function so(e,t,n,r,i,a,o){var s;let l=null!==(s=i.scroll[e])&&void 0!==s?s:0,u=r[no[e]],c=r.scroll[Qa[e]]+a,d=u+r.scroll[Qa[e]]-a,p=t-l+o[e]-r[Qa[e]],h=t-l+n+o[e]-r[Qa[e]];return p<c?c-p:h>d?Math.max(d-h,c-p):0}function lo(e){if(io[e])return io[e];let[t,n]=e.split(" "),r=Qa[t]||"right",i=to[r];Qa[n]||(n="center");let a=no[r],o=no[i];return io[e]={placement:t,crossPlacement:n,axis:r,crossAxis:i,size:a,crossSize:o},io[e]}function uo(e,t,n,r,i,a,o,s,l,u){let{placement:c,crossPlacement:d,axis:p,crossAxis:h,size:f,crossSize:m}=r,g={};var y,v,b,x,w;g[h]=null!==(y=e[h])&&void 0!==y?y:0,"center"===d?g[h]+=((null!==(v=e[m])&&void 0!==v?v:0)-(null!==(b=n[m])&&void 0!==b?b:0))/2:d!==h&&(g[h]+=(null!==(x=e[m])&&void 0!==x?x:0)-(null!==(w=n[m])&&void 0!==w?w:0)),g[h]+=a;const E=e[h]-n[m]+l+u,k=e[h]+e[m]-l-u;if(g[h]=cr(g[h],E,k),c===p){const n=s?o[f]:t[ro[f]];g[eo[p]]=Math.floor(n-e[p]+i)}else g[p]=Math.floor(e[p]+e[f]+i);return g}function co(e,t,n,r,i,a){let{placement:o,axis:s,size:l}=a;var u,c,d;return o===s?Math.max(0,n[s]-e[s]-(null!==(u=e.scroll[s])&&void 0!==u?u:0)+t[s]-(null!==(c=r[s])&&void 0!==c?c:0)-r[eo[s]]-i):Math.max(0,e[l]+e[s]+e.scroll[s]-t[s]-n[s]-n[l]-(null!==(d=r[s])&&void 0!==d?d:0)-r[eo[s]]-i)}function po(e){let{placement:t,targetNode:n,overlayNode:r,scrollNode:i,padding:a,shouldFlip:o,boundaryElement:s,offset:l,crossOffset:u,maxHeight:c,arrowSize:d=0,arrowBoundaryOffset:p=0}=e,h=r instanceof HTMLElement?function(e){let t=e.offsetParent;if(t&&t===document.body&&"static"===window.getComputedStyle(t).position&&!mo(t)&&(t=document.documentElement),null==t)for(t=e.parentElement;t&&!mo(t);)t=t.parentElement;return t||document.documentElement}(r):document.documentElement,f=h===document.documentElement;const m=window.getComputedStyle(h).position;let g=!!m&&"static"!==m,y=f?ho(n):fo(n,h);if(!f){let{marginTop:e,marginLeft:t}=window.getComputedStyle(n);y.top+=parseInt(e,10)||0,y.left+=parseInt(t,10)||0}let v=ho(r),b=function(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}(r);var x,w,E,k;v.width+=(null!==(x=b.left)&&void 0!==x?x:0)+(null!==(w=b.right)&&void 0!==w?w:0),v.height+=(null!==(E=b.top)&&void 0!==E?E:0)+(null!==(k=b.bottom)&&void 0!==k?k:0);let S={top:(D=i).scrollTop,left:D.scrollLeft,width:D.scrollWidth,height:D.scrollHeight};var D;let j=oo(s),C=oo(h),R="BODY"===s.tagName?ho(h):fo(h,s);return"HTML"===h.tagName&&"BODY"===s.tagName&&(C.scroll.top=0,C.scroll.left=0),function(e,t,n,r,i,a,o,s,l,u,c,d,p,h,f,m){let g=lo(e),{size:y,crossAxis:v,crossSize:b,placement:x,crossPlacement:w}=g,E=uo(t,s,n,g,c,d,u,p,f,m),k=c,S=co(s,u,t,i,a+c,g);if(o&&r[y]>S){let e=lo(`${eo[x]} ${w}`),r=uo(t,s,n,e,c,d,u,p,f,m);co(s,u,t,i,a+c,e)>S&&(g=e,E=r,k=c)}let D="bottom";"top"===g.axis?"top"===g.placement?D="top":"bottom"===g.placement&&(D="bottom"):"top"===g.crossAxis&&("top"===g.crossPlacement?D="bottom":"bottom"===g.crossPlacement&&(D="top"));let j=so(v,E[v],n[b],s,l,a,u);E[v]+=j;let C=function(e,t,n,r,i,a,o,s){const l=r?n.height:t[ro.height];var u;let c=null!=e.top?n.top+e.top:n.top+(l-(null!==(u=e.bottom)&&void 0!==u?u:0)-o);var d,p,h,f,m,g;let y="top"!==s?Math.max(0,t.height+t.top+(null!==(d=t.scroll.top)&&void 0!==d?d:0)-c-((null!==(p=i.top)&&void 0!==p?p:0)+(null!==(h=i.bottom)&&void 0!==h?h:0)+a)):Math.max(0,c+o-(t.top+(null!==(f=t.scroll.top)&&void 0!==f?f:0))-((null!==(m=i.top)&&void 0!==m?m:0)+(null!==(g=i.bottom)&&void 0!==g?g:0)+a));return Math.min(t.height-2*a,y)}(E,s,u,p,i,a,n.height,D);h&&h<C&&(C=h),n.height=Math.min(n.height,C),E=uo(t,s,n,g,k,d,u,p,f,m),j=so(v,E[v],n[b],s,l,a,u),E[v]+=j;let R={},P=t[v]+.5*t[b]-E[v]-i[Qa[v]];const $=f/2+m;var T,_,M,A;const I="left"===Qa[v]?(null!==(T=i.left)&&void 0!==T?T:0)+(null!==(_=i.right)&&void 0!==_?_:0):(null!==(M=i.top)&&void 0!==M?M:0)+(null!==(A=i.bottom)&&void 0!==A?A:0),O=n[b]-I-f/2-m,F=cr(P,t[v]+f/2-(E[v]+i[Qa[v]]),t[v]+t[b]-f/2-(E[v]+i[Qa[v]]));return R[v]=cr(F,$,O),{position:E,maxHeight:C,arrowOffsetLeft:R.left,arrowOffsetTop:R.top,placement:g.placement}}(t,y,v,S,b,a,o,j,C,R,l,u,g,c,d,p)}function ho(e){let{top:t,left:n,width:r,height:i}=e.getBoundingClientRect(),{scrollTop:a,scrollLeft:o,clientTop:s,clientLeft:l}=document.documentElement;return{top:t+a-s,left:n+o-l,width:r,height:i}}function fo(e,t){let n,r=window.getComputedStyle(e);if("fixed"===r.position){let{top:t,left:r,width:i,height:a}=e.getBoundingClientRect();n={top:t,left:r,width:i,height:a}}else{n=ho(e);let r=ho(t),i=window.getComputedStyle(t);r.top+=(parseInt(i.borderTopWidth,10)||0)-t.scrollTop,r.left+=(parseInt(i.borderLeftWidth,10)||0)-t.scrollLeft,n.top-=r.top,n.left-=r.left}return n.top-=parseInt(r.marginTop,10)||0,n.left-=parseInt(r.marginLeft,10)||0,n}function mo(e){let t=window.getComputedStyle(e);return"none"!==t.transform||/transform|perspective/.test(t.willChange)||"none"!==t.filter||"paint"===t.contain||"backdropFilter"in t&&"none"!==t.backdropFilter||"WebkitBackdropFilter"in t&&"none"!==t.WebkitBackdropFilter}const go=new WeakMap;let yo="undefined"!=typeof document?window.visualViewport:null;function vo(e,t){return"rtl"===t?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}const bo=[];const xo="undefined"!=typeof document&&window.visualViewport,wo=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let Eo,ko=0;function So(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function Do(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function jo(e){let t=document.scrollingElement||document.documentElement,n=e;for(;n&&n!==t;){let e=Xn(n);if(e!==document.documentElement&&e!==document.body&&e!==n){let t=e.getBoundingClientRect().top,r=n.getBoundingClientRect().top;r>t+n.clientHeight&&(e.scrollTop+=r-t)}n=e.parentElement}}function Co(e){return e instanceof HTMLInputElement&&!wo.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}let Ro=new WeakMap,Po=[];function $o(e,n){let{triggerRef:r,popoverRef:i,isNonModal:a,isKeyboardDismissDisabled:o,shouldCloseOnInteractOutside:s,...l}=e,{overlayProps:u,underlayProps:c}=function(e,n){let{onClose:r,shouldCloseOnBlur:i,isOpen:a,isDismissable:o=!1,isKeyboardDismissDisabled:s=!1,shouldCloseOnInteractOutside:l}=e;t.useEffect((()=>(a&&bo.push(n),()=>{let e=bo.indexOf(n);e>=0&&bo.splice(e,1)})),[a,n]);let u=()=>{bo[bo.length-1]===n&&r&&r()};!function(e){let{ref:n,onInteractOutside:r,isDisabled:i,onInteractOutsideStart:a}=e,o=t.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),s=tn((e=>{r&&ti(e,n)&&(a&&a(e),o.current.isPointerDown=!0)})),l=tn((e=>{r&&r(e)}));t.useEffect((()=>{let e=o.current;if(i)return;const t=n.current,r=vn(t);if("undefined"!=typeof PointerEvent){let t=t=>{e.isPointerDown&&ti(t,n)&&l(t),e.isPointerDown=!1};return r.addEventListener("pointerdown",s,!0),r.addEventListener("pointerup",t,!0),()=>{r.removeEventListener("pointerdown",s,!0),r.removeEventListener("pointerup",t,!0)}}{let t=t=>{e.ignoreEmulatedMouseEvents?e.ignoreEmulatedMouseEvents=!1:e.isPointerDown&&ti(t,n)&&l(t),e.isPointerDown=!1},i=t=>{e.ignoreEmulatedMouseEvents=!0,e.isPointerDown&&ti(t,n)&&l(t),e.isPointerDown=!1};return r.addEventListener("mousedown",s,!0),r.addEventListener("mouseup",t,!0),r.addEventListener("touchstart",s,!0),r.addEventListener("touchend",i,!0),()=>{r.removeEventListener("mousedown",s,!0),r.removeEventListener("mouseup",t,!0),r.removeEventListener("touchstart",s,!0),r.removeEventListener("touchend",i,!0)}}}),[n,i,s,l])}({ref:n,onInteractOutside:o&&a?e=>{l&&!l(e.target)||(bo[bo.length-1]===n&&(e.stopPropagation(),e.preventDefault()),u())}:void 0,onInteractOutsideStart:e=>{l&&!l(e.target)||bo[bo.length-1]===n&&(e.stopPropagation(),e.preventDefault())}});let{focusWithinProps:c}=ei({isDisabled:!i,onBlurWithin:e=>{e.relatedTarget&&!vi(e.relatedTarget,ui)&&(l&&!l(e.relatedTarget)||null==r||r())}});return{overlayProps:{onKeyDown:e=>{"Escape"!==e.key||s||e.nativeEvent.isComposing||(e.stopPropagation(),e.preventDefault(),u())},...c},underlayProps:{onPointerDown:e=>{e.target===e.currentTarget&&e.preventDefault()}}}}({isOpen:n.isOpen&&!l["data-react-aria-top-layer"],onClose:n.close,shouldCloseOnBlur:!0,isDismissable:!a,isKeyboardDismissDisabled:o,shouldCloseOnInteractOutside:s},i),{overlayProps:d,arrowProps:p,placement:h}=function(e){let{direction:n}=Bi(),{arrowSize:r=0,targetRef:i,overlayRef:a,scrollRef:o=a,placement:s="bottom",containerPadding:l=12,shouldFlip:u=!0,boundaryElement:c=("undefined"!=typeof document?document.body:null),offset:d=0,crossOffset:p=0,shouldUpdatePosition:h=!0,isOpen:f=!0,onClose:m,maxHeight:g,arrowBoundaryOffset:y=0}=e,[v,b]=t.useState(null),x=[h,s,a.current,i.current,o.current,l,u,c,d,p,f,n,g,y,r],w=t.useRef(null==yo?void 0:yo.scale);t.useEffect((()=>{f&&(w.current=null==yo?void 0:yo.scale)}),[f]);let E=t.useCallback((()=>{if(!(!1!==h&&f&&a.current&&i.current&&c))return;if((null==yo?void 0:yo.scale)!==w.current)return;let e=null;if(o.current&&o.current.contains(document.activeElement)){var t;let n=null===(t=document.activeElement)||void 0===t?void 0:t.getBoundingClientRect(),r=o.current.getBoundingClientRect();var m,v;e={type:"top",offset:(null!==(m=null==n?void 0:n.top)&&void 0!==m?m:0)-r.top},e.offset>r.height/2&&(e.type="bottom",e.offset=(null!==(v=null==n?void 0:n.bottom)&&void 0!==v?v:0)-r.bottom)}let x=a.current;var E,k;!g&&a.current&&(x.style.top="0px",x.style.bottom="",x.style.maxHeight=(null!==(k=null===(E=window.visualViewport)||void 0===E?void 0:E.height)&&void 0!==k?k:window.innerHeight)+"px");let S=po({placement:vo(s,n),overlayNode:a.current,targetNode:i.current,scrollNode:o.current||a.current,padding:l,shouldFlip:u,boundaryElement:c,offset:d,crossOffset:p,maxHeight:g,arrowSize:r,arrowBoundaryOffset:y});if(S.position){if(x.style.top="",x.style.bottom="",x.style.left="",x.style.right="",Object.keys(S.position).forEach((e=>x.style[e]=S.position[e]+"px")),x.style.maxHeight=null!=S.maxHeight?S.maxHeight+"px":"",e&&document.activeElement&&o.current){let t=document.activeElement.getBoundingClientRect(),n=o.current.getBoundingClientRect(),r=t[e.type]-n[e.type];o.current.scrollTop+=r-e.offset}b(S)}}),x);var k;en(E,x),en((()=>(window.addEventListener("resize",k,!1),()=>{window.removeEventListener("resize",k,!1)})),[k=E]),Gn({ref:a,onResize:E}),Gn({ref:i,onResize:E});let S=t.useRef(!1);en((()=>{let e,t=()=>{S.current=!0,clearTimeout(e),e=setTimeout((()=>{S.current=!1}),500),E()},n=()=>{S.current&&t()};return null==yo||yo.addEventListener("resize",t),null==yo||yo.addEventListener("scroll",n),()=>{null==yo||yo.removeEventListener("resize",t),null==yo||yo.removeEventListener("scroll",n)}}),[E]);let D=t.useCallback((()=>{S.current||null==m||m()}),[m,S]);var j,C;return function(e){let{triggerRef:n,isOpen:r,onClose:i}=e;t.useEffect((()=>{if(!r||null===i)return;let e=e=>{let t=e.target;if(!n.current||t instanceof Node&&!t.contains(n.current))return;if(e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement)return;let r=i||go.get(n.current);r&&r()};return window.addEventListener("scroll",e,!0),()=>{window.removeEventListener("scroll",e,!0)}}),[r,i,n])}({triggerRef:i,isOpen:f,onClose:m&&D}),{overlayProps:{style:{position:"absolute",zIndex:1e5,...null==v?void 0:v.position,maxHeight:null!==(j=null==v?void 0:v.maxHeight)&&void 0!==j?j:"100vh"}},placement:null!==(C=null==v?void 0:v.placement)&&void 0!==C?C:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:null==v?void 0:v.arrowOffsetLeft,top:null==v?void 0:v.arrowOffsetTop}},updatePosition:E}}({...l,targetRef:r,overlayRef:i,isOpen:n.isOpen,onClose:a?n.close:void 0});return function(e={}){let{isDisabled:t}=e;en((()=>{if(!t)return ko++,1===ko&&(Eo=On()?function(){let e,t,n=null,r=()=>{if(n)return;let e=window.pageXOffset,t=window.pageYOffset;n=yn(Do(window,"scroll",(()=>{window.scrollTo(0,0)})),So(document.documentElement,"paddingRight",window.innerWidth-document.documentElement.clientWidth+"px"),So(document.documentElement,"overflow","hidden"),So(document.body,"marginTop",`-${t}px`),(()=>{window.scrollTo(e,t)})),window.scrollTo(0,0)},i=yn(Do(document,"touchstart",(n=>{e=Xn(n.target,!0),e===document.documentElement&&e===document.body||e instanceof HTMLElement&&"auto"===window.getComputedStyle(e).overscrollBehavior&&(t=So(e,"overscrollBehavior","contain"))}),{passive:!1,capture:!0}),Do(document,"touchmove",(t=>{e&&e!==document.documentElement&&e!==document.body?e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&t.preventDefault():t.preventDefault()}),{passive:!1,capture:!0}),Do(document,"touchend",(e=>{let n=e.target;Co(n)&&n!==document.activeElement&&(e.preventDefault(),r(),n.style.transform="translateY(-2000px)",n.focus(),requestAnimationFrame((()=>{n.style.transform=""}))),t&&t()}),{passive:!1,capture:!0}),Do(document,"focus",(e=>{let t=e.target;Co(t)&&(r(),t.style.transform="translateY(-2000px)",requestAnimationFrame((()=>{t.style.transform="",xo&&(xo.height<window.innerHeight?requestAnimationFrame((()=>{jo(t)})):xo.addEventListener("resize",(()=>jo(t)),{once:!0}))})))}),!0));return()=>{null==t||t(),null==n||n(),i()}}():yn(So(document.documentElement,"paddingRight",window.innerWidth-document.documentElement.clientWidth+"px"),So(document.documentElement,"overflow","hidden"))),()=>{ko--,0===ko&&Eo()}}),[t])}({isDisabled:a||!n.isOpen}),en((()=>{if(n.isOpen&&!a&&i.current)return function(e,t=document.body){let n=new Set(e),r=new Set,i=e=>{for(let r of e.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))n.add(r);let t=e=>{if(n.has(e)||e.parentElement&&r.has(e.parentElement)&&"row"!==e.parentElement.getAttribute("role"))return NodeFilter.FILTER_REJECT;for(let t of n)if(e.contains(t))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},i=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:t}),o=t(e);if(o===NodeFilter.FILTER_ACCEPT&&a(e),o!==NodeFilter.FILTER_REJECT){let e=i.nextNode();for(;null!=e;)a(e),e=i.nextNode()}},a=e=>{var t;let n=null!==(t=Ro.get(e))&&void 0!==t?t:0;"true"===e.getAttribute("aria-hidden")&&0===n||(0===n&&e.setAttribute("aria-hidden","true"),r.add(e),Ro.set(e,n+1))};Po.length&&Po[Po.length-1].disconnect(),i(t);let o=new MutationObserver((e=>{for(let t of e)if("childList"===t.type&&0!==t.addedNodes.length&&![...n,...r].some((e=>e.contains(t.target)))){for(let e of t.removedNodes)e instanceof Element&&(n.delete(e),r.delete(e));for(let e of t.addedNodes)!(e instanceof HTMLElement||e instanceof SVGElement)||"true"!==e.dataset.liveAnnouncer&&"true"!==e.dataset.reactAriaTopLayer?e instanceof Element&&i(e):n.add(e)}}));o.observe(t,{childList:!0,subtree:!0});let s={observe(){o.observe(t,{childList:!0,subtree:!0})},disconnect(){o.disconnect()}};return Po.push(s),()=>{o.disconnect();for(let e of r){let t=Ro.get(e);null!=t&&(1===t?(e.removeAttribute("aria-hidden"),Ro.delete(e)):Ro.set(e,t-1))}s===Po[Po.length-1]?(Po.pop(),Po.length&&Po[Po.length-1].observe()):Po.splice(Po.indexOf(s),1)}}([i.current])}),[a,n.isOpen,i]),{popoverProps:En(u,d),arrowProps:p,underlayProps:c,placement:h}}const To=t.createContext({}),_o=t.createContext(null);function Mo(e){let n=dn(),{portalContainer:r=(n?null:document.body),isExiting:i}=e,[o,s]=t.useState(!1),l=t.useMemo((()=>({contain:o,setContain:s})),[o,s]),{getContainer:u}=null!==(c=t.useContext(To))&&void 0!==c?c:{};var c;if(!e.portalContainer&&u&&(r=u()),!r)return null;let d=e.children;return e.disableFocusManagement||(d=t.createElement(ci,{restoreFocus:!0,contain:o&&!i},d)),d=t.createElement(_o.Provider,{value:l},t.createElement(Or,null,d)),a.createPortal(d,r)}var Ao;function Io(e,n,r){let{direction:i}=Bi(),a=t.useMemo((()=>ji(n)),[n]),o=()=>{var e;if(!n.current)return;let t=null===(e=window.event)||void 0===e?void 0:e.target,r=Di(n.current,{tabbable:!0});if(t&&(r.currentNode=t,t=r.previousNode()),!t){let e;do{e=r.lastChild(),e&&(t=e)}while(e)}for(;null==t?void 0:t.hasAttribute("data-placeholder");){let e=r.previousNode();if(!e||!e.hasAttribute("data-placeholder"))break;t=e}t&&t.focus()},{pressProps:s}=Sr({preventFocusOnPress:!0,allowTextSelectionOnPress:!0,onPressStart(e){"mouse"===e.pointerType&&o()},onPress(e){"mouse"!==e.pointerType&&o()}});return En(s,{onKeyDown:t=>{if(t.currentTarget.contains(t.target)&&(t.altKey&&("ArrowDown"===t.key||"ArrowUp"===t.key)&&"setOpen"in e&&(t.preventDefault(),t.stopPropagation(),e.setOpen(!0)),!r))switch(t.key){case"ArrowLeft":t.preventDefault(),t.stopPropagation(),"rtl"===i?a.focusNext():a.focusPrevious();break;case"ArrowRight":t.preventDefault(),t.stopPropagation(),"rtl"===i?a.focusPrevious():a.focusNext()}}})}Ao={"ar-AE":{calendar:"التقويم",day:"يوم",dayPeriod:"ص/م",endDate:"تاريخ الانتهاء",era:"العصر",hour:"الساعات",minute:"الدقائق",month:"الشهر",second:"الثواني",selectedDateDescription:e=>`تاريخ محدد: ${e.date}`,selectedRangeDescription:e=>`المدى الزمني المحدد: ${e.startDate} إلى ${e.endDate}`,selectedTimeDescription:e=>`الوقت المحدد: ${e.time}`,startDate:"تاريخ البدء",timeZoneName:"التوقيت",weekday:"اليوم",year:"السنة"},"bg-BG":{calendar:"Календар",day:"ден",dayPeriod:"пр.об./сл.об.",endDate:"Крайна дата",era:"ера",hour:"час",minute:"минута",month:"месец",second:"секунда",selectedDateDescription:e=>`Избрана дата: ${e.date}`,selectedRangeDescription:e=>`Избран диапазон: ${e.startDate} до ${e.endDate}`,selectedTimeDescription:e=>`Избрано време: ${e.time}`,startDate:"Начална дата",timeZoneName:"часова зона",weekday:"ден от седмицата",year:"година"},"cs-CZ":{calendar:"Kalendář",day:"den",dayPeriod:"část dne",endDate:"Konečné datum",era:"letopočet",hour:"hodina",minute:"minuta",month:"měsíc",second:"sekunda",selectedDateDescription:e=>`Vybrané datum: ${e.date}`,selectedRangeDescription:e=>`Vybrané období: ${e.startDate} až ${e.endDate}`,selectedTimeDescription:e=>`Vybraný čas: ${e.time}`,startDate:"Počáteční datum",timeZoneName:"časové pásmo",weekday:"den v týdnu",year:"rok"},"da-DK":{calendar:"Kalender",day:"dag",dayPeriod:"AM/PM",endDate:"Slutdato",era:"æra",hour:"time",minute:"minut",month:"måned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tidspunkt: ${e.time}`,startDate:"Startdato",timeZoneName:"tidszone",weekday:"ugedag",year:"år"},"de-DE":{calendar:"Kalender",day:"Tag",dayPeriod:"Tageshälfte",endDate:"Enddatum",era:"Epoche",hour:"Stunde",minute:"Minute",month:"Monat",second:"Sekunde",selectedDateDescription:e=>`Ausgewähltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgewählter Bereich: ${e.startDate} bis ${e.endDate}`,selectedTimeDescription:e=>`Ausgewählte Zeit: ${e.time}`,startDate:"Anfangsdatum",timeZoneName:"Zeitzone",weekday:"Wochentag",year:"Jahr"},"el-GR":{calendar:"Ημερολόγιο",day:"ημέρα",dayPeriod:"π.μ./μ.μ.",endDate:"Ημερομηνία λήξης",era:"περίοδος",hour:"ώρα",minute:"λεπτό",month:"μήνας",second:"δευτερόλεπτο",selectedDateDescription:e=>`Επιλεγμένη ημερομηνία: ${e.date}`,selectedRangeDescription:e=>`Επιλεγμένο εύρος: ${e.startDate} έως ${e.endDate}`,selectedTimeDescription:e=>`Επιλεγμένη ώρα: ${e.time}`,startDate:"Ημερομηνία έναρξης",timeZoneName:"ζώνη ώρας",weekday:"καθημερινή",year:"έτος"},"en-US":{era:"era",year:"year",month:"month",day:"day",hour:"hour",minute:"minute",second:"second",dayPeriod:"AM/PM",calendar:"Calendar",startDate:"Start Date",endDate:"End Date",weekday:"day of the week",timeZoneName:"time zone",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.startDate} to ${e.endDate}`,selectedTimeDescription:e=>`Selected Time: ${e.time}`},"es-ES":{calendar:"Calendario",day:"día",dayPeriod:"a. m./p. m.",endDate:"Fecha final",era:"era",hour:"hora",minute:"minuto",month:"mes",second:"segundo",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Rango seleccionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora seleccionada: ${e.time}`,startDate:"Fecha de inicio",timeZoneName:"zona horaria",weekday:"día de la semana",year:"año"},"et-EE":{calendar:"Kalender",day:"päev",dayPeriod:"enne/pärast lõunat",endDate:"Lõppkuupäev",era:"ajastu",hour:"tund",minute:"minut",month:"kuu",second:"sekund",selectedDateDescription:e=>`Valitud kuupäev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.startDate} kuni ${e.endDate}`,selectedTimeDescription:e=>`Valitud aeg: ${e.time}`,startDate:"Alguskuupäev",timeZoneName:"ajavöönd",weekday:"nädalapäev",year:"aasta"},"fi-FI":{calendar:"Kalenteri",day:"päivä",dayPeriod:"vuorokaudenaika",endDate:"Päättymispäivä",era:"aikakausi",hour:"tunti",minute:"minuutti",month:"kuukausi",second:"sekunti",selectedDateDescription:e=>`Valittu päivämäärä: ${e.date}`,selectedRangeDescription:e=>`Valittu aikaväli: ${e.startDate} – ${e.endDate}`,selectedTimeDescription:e=>`Valittu aika: ${e.time}`,startDate:"Alkamispäivä",timeZoneName:"aikavyöhyke",weekday:"viikonpäivä",year:"vuosi"},"fr-FR":{calendar:"Calendrier",day:"jour",dayPeriod:"cadran",endDate:"Date de fin",era:"ère",hour:"heure",minute:"minute",month:"mois",second:"seconde",selectedDateDescription:e=>`Date sélectionnée : ${e.date}`,selectedRangeDescription:e=>`Plage sélectionnée : ${e.startDate} au ${e.endDate}`,selectedTimeDescription:e=>`Heure choisie : ${e.time}`,startDate:"Date de début",timeZoneName:"fuseau horaire",weekday:"jour de la semaine",year:"année"},"he-IL":{calendar:"לוח שנה",day:"יום",dayPeriod:"לפנה״צ/אחה״צ",endDate:"תאריך סיום",era:"תקופה",hour:"שעה",minute:"דקה",month:"חודש",second:"שנייה",selectedDateDescription:e=>`תאריך נבחר: ${e.date}`,selectedRangeDescription:e=>`טווח נבחר: ${e.startDate} עד ${e.endDate}`,selectedTimeDescription:e=>`זמן נבחר: ${e.time}`,startDate:"תאריך התחלה",timeZoneName:"אזור זמן",weekday:"יום בשבוע",year:"שנה"},"hr-HR":{calendar:"Kalendar",day:"dan",dayPeriod:"AM/PM",endDate:"Datum završetka",era:"era",hour:"sat",minute:"minuta",month:"mjesec",second:"sekunda",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Odabrano vrijeme: ${e.time}`,startDate:"Datum početka",timeZoneName:"vremenska zona",weekday:"dan u tjednu",year:"godina"},"hu-HU":{calendar:"Naptár",day:"nap",dayPeriod:"napszak",endDate:"Befejező dátum",era:"éra",hour:"óra",minute:"perc",month:"hónap",second:"másodperc",selectedDateDescription:e=>`Kijelölt dátum: ${e.date}`,selectedRangeDescription:e=>`Kijelölt tartomány: ${e.startDate}–${e.endDate}`,selectedTimeDescription:e=>`Kijelölt idő: ${e.time}`,startDate:"Kezdő dátum",timeZoneName:"időzóna",weekday:"hét napja",year:"év"},"it-IT":{calendar:"Calendario",day:"giorno",dayPeriod:"AM/PM",endDate:"Data finale",era:"era",hour:"ora",minute:"minuto",month:"mese",second:"secondo",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: da ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Ora selezionata: ${e.time}`,startDate:"Data iniziale",timeZoneName:"fuso orario",weekday:"giorno della settimana",year:"anno"},"ja-JP":{calendar:"カレンダー",day:"日",dayPeriod:"午前/午後",endDate:"終了日",era:"時代",hour:"時",minute:"分",month:"月",second:"秒",selectedDateDescription:e=>`選択した日付 : ${e.date}`,selectedRangeDescription:e=>`選択範囲 : ${e.startDate} から ${e.endDate}`,selectedTimeDescription:e=>`選択した時間 : ${e.time}`,startDate:"開始日",timeZoneName:"タイムゾーン",weekday:"曜日",year:"年"},"ko-KR":{calendar:"달력",day:"일",dayPeriod:"오전/오후",endDate:"종료일",era:"연호",hour:"시",minute:"분",month:"월",second:"초",selectedDateDescription:e=>`선택 일자: ${e.date}`,selectedRangeDescription:e=>`선택 범위: ${e.startDate} ~ ${e.endDate}`,selectedTimeDescription:e=>`선택 시간: ${e.time}`,startDate:"시작일",timeZoneName:"시간대",weekday:"요일",year:"년"},"lt-LT":{calendar:"Kalendorius",day:"diena",dayPeriod:"iki pietų / po pietų",endDate:"Pabaigos data",era:"era",hour:"valanda",minute:"minutė",month:"mėnuo",second:"sekundė",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: nuo ${e.startDate} iki ${e.endDate}`,selectedTimeDescription:e=>`Pasirinktas laikas: ${e.time}`,startDate:"Pradžios data",timeZoneName:"laiko juosta",weekday:"savaitės diena",year:"metai"},"lv-LV":{calendar:"Kalendārs",day:"diena",dayPeriod:"priekšpusdienā/pēcpusdienā",endDate:"Beigu datums",era:"ēra",hour:"stundas",minute:"minūtes",month:"mēnesis",second:"sekundes",selectedDateDescription:e=>`Atlasītais datums: ${e.date}`,selectedRangeDescription:e=>`Atlasītais diapazons: no ${e.startDate} līdz ${e.endDate}`,selectedTimeDescription:e=>`Atlasītais laiks: ${e.time}`,startDate:"Sākuma datums",timeZoneName:"laika josla",weekday:"nedēļas diena",year:"gads"},"nb-NO":{calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Sluttdato",era:"tidsalder",hour:"time",minute:"minutt",month:"måned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt område: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tid: ${e.time}`,startDate:"Startdato",timeZoneName:"tidssone",weekday:"ukedag",year:"år"},"nl-NL":{calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Einddatum",era:"tijdperk",hour:"uur",minute:"minuut",month:"maand",second:"seconde",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.startDate} tot ${e.endDate}`,selectedTimeDescription:e=>`Geselecteerde tijd: ${e.time}`,startDate:"Startdatum",timeZoneName:"tijdzone",weekday:"dag van de week",year:"jaar"},"pl-PL":{calendar:"Kalendarz",day:"dzień",dayPeriod:"rano / po południu / wieczorem",endDate:"Data końcowa",era:"era",hour:"godzina",minute:"minuta",month:"miesiąc",second:"sekunda",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Wybrany czas: ${e.time}`,startDate:"Data początkowa",timeZoneName:"strefa czasowa",weekday:"dzień tygodnia",year:"rok"},"pt-BR":{calendar:"Calendário",day:"dia",dayPeriod:"AM/PM",endDate:"Data final",era:"era",hour:"hora",minute:"minuto",month:"mês",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data inicial",timeZoneName:"fuso horário",weekday:"dia da semana",year:"ano"},"pt-PT":{calendar:"Calendário",day:"dia",dayPeriod:"am/pm",endDate:"Data de Término",era:"era",hour:"hora",minute:"minuto",month:"mês",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data de Início",timeZoneName:"fuso horário",weekday:"dia da semana",year:"ano"},"ro-RO":{calendar:"Calendar",day:"zi",dayPeriod:"a.m/p.m.",endDate:"Dată final",era:"eră",hour:"oră",minute:"minut",month:"lună",second:"secundă",selectedDateDescription:e=>`Dată selectată: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: de la ${e.startDate} până la ${e.endDate}`,selectedTimeDescription:e=>`Ora selectată: ${e.time}`,startDate:"Dată început",timeZoneName:"fus orar",weekday:"ziua din săptămână",year:"an"},"ru-RU":{calendar:"Календарь",day:"день",dayPeriod:"AM/PM",endDate:"Дата окончания",era:"эра",hour:"час",minute:"минута",month:"месяц",second:"секунда",selectedDateDescription:e=>`Выбранная дата: ${e.date}`,selectedRangeDescription:e=>`Выбранный диапазон: с ${e.startDate} по ${e.endDate}`,selectedTimeDescription:e=>`Выбранное время: ${e.time}`,startDate:"Дата начала",timeZoneName:"часовой пояс",weekday:"день недели",year:"год"},"sk-SK":{calendar:"Kalendár",day:"deň",dayPeriod:"AM/PM",endDate:"Dátum ukončenia",era:"letopočet",hour:"hodina",minute:"minúta",month:"mesiac",second:"sekunda",selectedDateDescription:e=>`Vybratý dátum: ${e.date}`,selectedRangeDescription:e=>`Vybratý rozsah: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Vybratý čas: ${e.time}`,startDate:"Dátum začatia",timeZoneName:"časové pásmo",weekday:"deň týždňa",year:"rok"},"sl-SI":{calendar:"Koledar",day:"dan",dayPeriod:"dop/pop",endDate:"Datum konca",era:"doba",hour:"ura",minute:"minuta",month:"mesec",second:"sekunda",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano območje: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izbrani čas: ${e.time}`,startDate:"Datum začetka",timeZoneName:"časovni pas",weekday:"dan v tednu",year:"leto"},"sr-SP":{calendar:"Kalendar",day:"дан",dayPeriod:"пре подне/по подне",endDate:"Datum završetka",era:"ера",hour:"сат",minute:"минут",month:"месец",second:"секунд",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani opseg: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izabrano vreme: ${e.time}`,startDate:"Datum početka",timeZoneName:"временска зона",weekday:"дан у недељи",year:"година"},"sv-SE":{calendar:"Kalender",day:"dag",dayPeriod:"fm/em",endDate:"Slutdatum",era:"era",hour:"timme",minute:"minut",month:"månad",second:"sekund",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.startDate} till ${e.endDate}`,selectedTimeDescription:e=>`Vald tid: ${e.time}`,startDate:"Startdatum",timeZoneName:"tidszon",weekday:"veckodag",year:"år"},"tr-TR":{calendar:"Takvim",day:"gün",dayPeriod:"ÖÖ/ÖS",endDate:"Bitiş Tarihi",era:"çağ",hour:"saat",minute:"dakika",month:"ay",second:"saniye",selectedDateDescription:e=>`Seçilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Seçilen Aralık: ${e.startDate} - ${e.endDate}`,selectedTimeDescription:e=>`Seçilen Zaman: ${e.time}`,startDate:"Başlangıç Tarihi",timeZoneName:"saat dilimi",weekday:"haftanın günü",year:"yıl"},"uk-UA":{calendar:"Календар",day:"день",dayPeriod:"дп/пп",endDate:"Дата завершення",era:"ера",hour:"година",minute:"хвилина",month:"місяць",second:"секунда",selectedDateDescription:e=>`Вибрана дата: ${e.date}`,selectedRangeDescription:e=>`Вибраний діапазон: ${e.startDate} — ${e.endDate}`,selectedTimeDescription:e=>`Вибраний час: ${e.time}`,startDate:"Дата початку",timeZoneName:"часовий пояс",weekday:"день тижня",year:"рік"},"zh-CN":{calendar:"日历",day:"日",dayPeriod:"上午/下午",endDate:"结束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`选定的日期:${e.date}`,selectedRangeDescription:e=>`选定的范围:${e.startDate} 至 ${e.endDate}`,selectedTimeDescription:e=>`选定的时间:${e.time}`,startDate:"开始日期",timeZoneName:"时区",weekday:"工作日",year:"年"},"zh-TW":{calendar:"日曆",day:"日",dayPeriod:"上午/下午",endDate:"結束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`選定的日期:${e.date}`,selectedRangeDescription:e=>`選定的範圍:${e.startDate} 至 ${e.endDate}`,selectedTimeDescription:e=>`選定的時間:${e.time}`,startDate:"開始日期",timeZoneName:"时区",weekday:"工作日",year:"年"}};const Oo=new WeakMap,Fo="__role_"+Date.now(),Lo="__focusManager_"+Date.now();function Vo(e,n,r){var i;let{isInvalid:a,validationErrors:o,validationDetails:s}=n.displayValidation,{labelProps:l,fieldProps:u,descriptionProps:c,errorMessageProps:d}=za({...e,labelElementType:"span",isInvalid:a,errorMessage:e.errorMessage||o}),p=t.useRef(null),{focusWithinProps:h}=ei({...e,onFocusWithin(t){var r;p.current=n.value,null===(r=e.onFocus)||void 0===r||r.call(e,t)},onBlurWithin:t=>{var r;n.confirmPlaceholder(),n.value!==p.current&&n.commitValidation(),null===(r=e.onBlur)||void 0===r||r.call(e,t)},onFocusWithinChange:e.onFocusChange}),f=Xi((m=Ao)&&m.__esModule?m.default:m,"@react-aria/datepicker");var m;let g="hour"===n.maxGranularity?"selectedTimeDescription":"selectedDateDescription",y="hour"===n.maxGranularity?"time":"date",v=tr(n.value?f.format(g,{[y]:n.formatValue({month:"long"})}):""),b="presentation"===e[Fo]?u["aria-describedby"]:[v["aria-describedby"],u["aria-describedby"]].filter(Boolean).join(" ")||void 0,x=e[Lo],w=t.useMemo((()=>x||ji(r)),[x,r]),E=Io(n,r,"presentation"===e[Fo]);Oo.set(n,{ariaLabel:e["aria-label"],ariaLabelledBy:[l.id,e["aria-labelledby"]].filter(Boolean).join(" ")||void 0,ariaDescribedBy:b,focusManager:w});let k,S=t.useRef(e.autoFocus);k="presentation"===e[Fo]?{role:"presentation"}:En(u,{role:"group","aria-disabled":e.isDisabled||void 0,"aria-describedby":b}),t.useEffect((()=>{S.current&&w.focusFirst(),S.current=!1}),[w]),lr(e.inputRef,n.value,n.setValue),function(e,n,r){let{validationBehavior:i,focus:a}=e;en((()=>{if("native"===i&&(null==r?void 0:r.current)){let t=n.realtimeValidation.isInvalid?n.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";r.current.setCustomValidity(t),r.current.hasAttribute("title")||(r.current.title=""),n.realtimeValidation.isInvalid||n.updateValidation({isInvalid:!(e=r.current).validity.valid,validationDetails:Va(e),validationErrors:e.validationMessage?[e.validationMessage]:[]})}var e}));let o=tn((()=>{n.resetValidation()})),s=tn((e=>{var t;n.displayValidation.isInvalid||n.commitValidation();let i=null==r||null===(t=r.current)||void 0===t?void 0:t.form;var o;!e.defaultPrevented&&r&&i&&function(e){for(let t=0;t<e.elements.length;t++){let n=e.elements[t];if(!n.validity.valid)return n}return null}(i)===r.current&&(a?a():null===(o=r.current)||void 0===o||o.focus(),Qr("keyboard")),e.preventDefault()})),l=tn((()=>{n.commitValidation()}));t.useEffect((()=>{let e=null==r?void 0:r.current;if(!e)return;let t=e.form;return e.addEventListener("invalid",s),e.addEventListener("change",l),null==t||t.addEventListener("reset",o),()=>{e.removeEventListener("invalid",s),e.removeEventListener("change",l),null==t||t.removeEventListener("reset",o)}}),[r,s,l,o,i])}({...e,focus(){w.focusFirst()}},n,e.inputRef);let D={type:"hidden",name:e.name,value:(null===(i=n.value)||void 0===i?void 0:i.toString())||"",disabled:e.isDisabled};"native"===e.validationBehavior&&(D.type="text",D.hidden=!0,D.required=e.isRequired,D.onChange=()=>{});let j=Cn(e);return{labelProps:{...l,onClick:()=>{w.focusFirst()}},fieldProps:En(j,k,E,h,{onKeyDown(t){e.onKeyDown&&e.onKeyDown(t)},onKeyUp(t){e.onKeyUp&&e.onKeyUp(t)}}),inputProps:D,descriptionProps:c,errorMessageProps:d,isInvalid:a,validationErrors:o,validationDetails:s}}function No(e,n,r){let i=fn(),a=fn(),o=fn(),s=Xi((l=Ao)&&l.__esModule?l.default:l,"@react-aria/datepicker");var l;let{isInvalid:u,validationErrors:c,validationDetails:d}=n.displayValidation,{labelProps:p,fieldProps:h,descriptionProps:f,errorMessageProps:m}=za({...e,labelElementType:"span",isInvalid:u,errorMessage:e.errorMessage||c}),g=Io(n,r),y=h["aria-labelledby"]||h.id,{locale:v}=Bi(),b=n.formatValue(v,{month:"long"}),x=tr(b?s.format("selectedDateDescription",{date:b}):""),w=[x["aria-describedby"],h["aria-describedby"]].filter(Boolean).join(" ")||void 0,E=Cn(e),k=t.useMemo((()=>ji(r)),[r]),{focusWithinProps:S}=ei({...e,isDisabled:n.isOpen,onBlurWithin:e.onBlur,onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange});return{groupProps:En(E,g,h,x,S,{role:"group","aria-disabled":e.isDisabled||null,"aria-labelledby":y,"aria-describedby":w,onKeyDown(t){n.isOpen||e.onKeyDown&&e.onKeyDown(t)},onKeyUp(t){n.isOpen||e.onKeyUp&&e.onKeyUp(t)}}),labelProps:{...p,onClick:()=>{k.focusFirst()}},fieldProps:{...h,id:o,[Fo]:"presentation","aria-describedby":w,value:n.value,onChange:n.setValue,placeholderValue:e.placeholderValue,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,granularity:e.granularity,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isRequired:e.isRequired,validationBehavior:e.validationBehavior,[Ma]:n,autoFocus:e.autoFocus,name:e.name},descriptionProps:f,errorMessageProps:m,buttonProps:{...x,id:i,"aria-haspopup":"dialog","aria-label":s.format("calendar"),"aria-labelledby":`${i} ${y}`,"aria-describedby":w,"aria-expanded":n.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>n.setOpen(!0)},dialogProps:{id:a,"aria-labelledby":`${i} ${y}`},calendarProps:{autoFocus:!0,value:n.dateValue,onChange:n.setDateValue,minValue:e.minValue,maxValue:e.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isDateUnavailable:e.isDateUnavailable,defaultFocusedValue:n.dateValue?void 0:e.placeholderValue,isInvalid:n.isInvalid,errorMessage:"function"==typeof e.errorMessage?e.errorMessage(n.displayValidation):e.errorMessage||n.displayValidation.validationErrors.join(" ")},isInvalid:u,validationErrors:c,validationDetails:d}}class zo{of(e){return this.dictionary.getStringForLocale(e,this.locale)}constructor(e,t){this.locale=e,this.dictionary=t}}function Bo(e,n,r){let i=t.useRef(""),{locale:a}=Bi(),o=function(){let{locale:e}=Bi(),n=Ji((r=Ao)&&r.__esModule?r.default:r,"@react-aria/datepicker");var r;return t.useMemo((()=>{try{return new Intl.DisplayNames(e,{type:"dateTimeField"})}catch{return new zo(e,n)}}),[e,n])}(),{ariaLabel:s,ariaLabelledBy:l,ariaDescribedBy:u,focusManager:c}=Oo.get(n),d=e.isPlaceholder?"":e.text,p=t.useMemo((()=>n.dateFormatter.resolvedOptions()),[n.dateFormatter]),h=Qi({month:"long",timeZone:p.timeZone}),f=Qi({hour:"numeric",hour12:p.hour12,timeZone:p.timeZone});if("month"!==e.type||e.isPlaceholder)"hour"!==e.type||e.isPlaceholder||(d=f.format(n.dateValue));else{let e=h.format(n.dateValue);d=e!==d?`${d} – ${e}`:e}let{spinButtonProps:m}=function(e){const n=t.useRef(void 0);let{value:r,textValue:i,minValue:a,maxValue:o,isDisabled:s,isReadOnly:l,isRequired:u,onIncrement:c,onIncrementPage:d,onDecrement:p,onDecrementPage:h,onDecrementToMin:f,onIncrementToMax:m}=e;const g=Xi((y=Xa)&&y.__esModule?y.default:y,"@react-aria/spinbutton");var y;const v=()=>clearTimeout(n.current);t.useEffect((()=>()=>v()),[]);let b=t.useRef(!1),x=()=>{b.current=!0},w=()=>{b.current=!1},E=""===i?g.format("Empty"):(i||`${r}`).replace("-","−");t.useEffect((()=>{b.current&&(Sa&&Sa.clear("assertive"),Da(E,"assertive"))}),[E]);const k=tn((e=>{v(),null==c||c(),n.current=window.setTimeout((()=>{(void 0===o||isNaN(o)||void 0===r||isNaN(r)||r<o)&&k(60)}),e)})),S=tn((e=>{v(),null==p||p(),n.current=window.setTimeout((()=>{(void 0===a||isNaN(a)||void 0===r||isNaN(r)||r>a)&&S(60)}),e)}));let D=e=>{e.preventDefault()},{addGlobalListener:j,removeAllGlobalListeners:C}=Kn();return{spinButtonProps:{role:"spinbutton","aria-valuenow":void 0===r||isNaN(r)?void 0:r,"aria-valuetext":E,"aria-valuemin":a,"aria-valuemax":o,"aria-disabled":s||void 0,"aria-readonly":l||void 0,"aria-required":u||void 0,onKeyDown:e=>{if(!(e.ctrlKey||e.metaKey||e.shiftKey||e.altKey||l))switch(e.key){case"PageUp":if(d){e.preventDefault(),null==d||d();break}case"ArrowUp":case"Up":c&&(e.preventDefault(),null==c||c());break;case"PageDown":if(h){e.preventDefault(),null==h||h();break}case"ArrowDown":case"Down":p&&(e.preventDefault(),null==p||p());break;case"Home":f&&(e.preventDefault(),null==f||f());break;case"End":m&&(e.preventDefault(),null==m||m())}},onFocus:x,onBlur:w},incrementButtonProps:{onPressStart:()=>{k(400),j(window,"contextmenu",D)},onPressEnd:()=>{v(),C()},onFocus:x,onBlur:w},decrementButtonProps:{onPressStart:()=>{S(400),j(window,"contextmenu",D)},onPressEnd:()=>{v(),C()},onFocus:x,onBlur:w}}}({value:e.value,textValue:d,minValue:e.minValue,maxValue:e.maxValue,isDisabled:n.isDisabled,isReadOnly:n.isReadOnly||!e.isEditable,isRequired:n.isRequired,onIncrement:()=>{i.current="",n.increment(e.type)},onDecrement:()=>{i.current="",n.decrement(e.type)},onIncrementPage:()=>{i.current="",n.incrementPage(e.type)},onDecrementPage:()=>{i.current="",n.decrementPage(e.type)},onIncrementToMax:()=>{i.current="",void 0!==e.maxValue&&n.setSegment(e.type,e.maxValue)},onDecrementToMin:()=>{i.current="",void 0!==e.minValue&&n.setSegment(e.type,e.minValue)}}),g=t.useMemo((()=>new la(a,{maximumFractionDigits:0})),[a]),y=()=>{if(e.text===e.placeholder&&c.focusPrevious(),!g.isValidPartialNumber(e.text)||n.isReadOnly||e.isPlaceholder)"dayPeriod"===e.type&&n.clearSegment(e.type);else{let t=e.text.slice(0,-1),r=g.parse(t);t=0===r?"":t,0===t.length||0===r?n.clearSegment(e.type):n.setSegment(e.type,r),i.current=t}},{startsWith:v}=function(e){let n=function(e){let{locale:t}=Bi(),n=t+(e?Object.entries(e).sort(((e,t)=>e[0]<t[0]?-1:1)).join():"");if(ya.has(n))return ya.get(n);let r=new Intl.Collator(t,e);return ya.set(n,r),r}({usage:"search",...e}),r=t.useCallback(((e,t)=>0===t.length||(e=e.normalize("NFC"),t=t.normalize("NFC"),0===n.compare(e.slice(0,t.length),t))),[n]),i=t.useCallback(((e,t)=>0===t.length||(e=e.normalize("NFC"),t=t.normalize("NFC"),0===n.compare(e.slice(-t.length),t))),[n]),a=t.useCallback(((e,t)=>{if(0===t.length)return!0;e=e.normalize("NFC");let r=0,i=(t=t.normalize("NFC")).length;for(;r+i<=e.length;r++){let a=e.slice(r,r+i);if(0===n.compare(t,a))return!0}return!1}),[n]);return t.useMemo((()=>({startsWith:r,endsWith:i,contains:a})),[r,i,a])}({sensitivity:"base"}),b=Qi({hour:"numeric",hour12:!0}),x=t.useMemo((()=>{let e=new Date;return e.setHours(0),b.formatToParts(e).find((e=>"dayPeriod"===e.type)).value}),[b]),w=t.useMemo((()=>{let e=new Date;return e.setHours(12),b.formatToParts(e).find((e=>"dayPeriod"===e.type)).value}),[b]),E=Qi({year:"numeric",era:"narrow",timeZone:"UTC"}),k=t.useMemo((()=>{if("era"!==e.type)return[];let t=fe(new Ue(1,1,1),n.calendar),r=n.calendar.getEras().map((e=>{let n=t.set({year:1,month:1,day:1,era:e}).toDate("UTC");return{era:e,formatted:E.formatToParts(n).find((e=>"era"===e.type)).value}})),i=function(e){e.sort();let t=e[0],n=e[e.length-1];for(let r=0;r<t.length;r++)if(t[r]!==n[r])return r;return 0}(r.map((e=>e.formatted)));if(i)for(let e of r)e.formatted=e.formatted.slice(i);return r}),[E,n.calendar,e.type]),S=t=>{if(n.isDisabled||n.isReadOnly)return;let r=i.current+t;switch(e.type){case"dayPeriod":if(v(x,t))n.setSegment("dayPeriod",0);else{if(!v(w,t))break;n.setSegment("dayPeriod",12)}c.focusNext();break;case"era":{let e=k.find((e=>v(e.formatted,t)));e&&(n.setSegment("era",e.era),c.focusNext());break}case"day":case"hour":case"minute":case"second":case"month":case"year":{if(!g.isValidPartialNumber(r))return;let a=g.parse(r),o=a,s=0===e.minValue;if("hour"===e.type&&n.dateFormatter.resolvedOptions().hour12){switch(n.dateFormatter.resolvedOptions().hourCycle){case"h11":a>11&&(o=g.parse(t));break;case"h12":s=!1,a>12&&(o=g.parse(t))}void 0!==e.value&&e.value>=12&&a>1&&(a+=12)}else void 0!==e.maxValue&&a>e.maxValue&&(o=g.parse(t));if(isNaN(a))return;let l=0!==o||s;l&&n.setSegment(e.type,o),void 0!==e.maxValue&&(Number(a+"0")>e.maxValue||r.length>=String(e.maxValue).length)?(i.current="",l&&c.focusNext()):i.current=r;break}}};nr(t.useRef("undefined"!=typeof document?document:null),"selectionchange",(()=>{var e;let t=window.getSelection();(null==t?void 0:t.anchorNode)&&(null===(e=r.current)||void 0===e?void 0:e.contains(null==t?void 0:t.anchorNode))&&t.collapse(r.current)}));let D=t.useRef("");nr(r,"beforeinput",(t=>{if(r.current)switch(t.preventDefault(),t.inputType){case"deleteContentBackward":case"deleteContentForward":g.isValidPartialNumber(e.text)&&!n.isReadOnly&&y();break;case"insertCompositionText":D.current=r.current.textContent,r.current.textContent=r.current.textContent;break;default:null!=t.data&&S(t.data)}})),nr(r,"input",(e=>{let{inputType:t,data:n}=e;"insertCompositionText"===t&&(r.current&&(r.current.textContent=D.current),null!=n&&(v(x,n)||v(w,n))&&S(n))})),en((()=>{let e=r.current;return()=>{document.activeElement===e&&(c.focusPrevious()||c.focusNext())}}),[r,c]);let j=On()||"timeZoneName"===e.type?{role:"textbox","aria-valuemax":null,"aria-valuemin":null,"aria-valuetext":null,"aria-valuenow":null}:{},C=t.useMemo((()=>n.segments.find((e=>e.isEditable))),[n.segments]);e===C||n.isInvalid||(u=void 0);let R=fn(),P=!n.isDisabled&&!n.isReadOnly&&e.isEditable,$=Hn({"aria-label":`${"literal"===e.type?"":o.of(e.type)}${s?`, ${s}`:""}${l?", ":""}`,"aria-labelledby":l});return"literal"===e.type?{segmentProps:{"aria-hidden":!0}}:{segmentProps:En(m,$,{id:R,...j,"aria-invalid":n.isInvalid?"true":void 0,"aria-describedby":u,"aria-readonly":n.isReadOnly||!e.isEditable?"true":void 0,"data-placeholder":e.isPlaceholder||void 0,contentEditable:P,suppressContentEditableWarning:P,spellCheck:P?"false":void 0,autoCorrect:P?"off":void 0,[parseInt(t.version,10)>=17?"enterKeyHint":"enterkeyhint"]:P?"next":void 0,inputMode:n.isDisabled||"dayPeriod"===e.type||"era"===e.type||!P?void 0:"numeric",tabIndex:n.isDisabled?void 0:0,onKeyDown:e=>{if("a"===e.key&&(Mn()?e.metaKey:e.ctrlKey)&&e.preventDefault(),!(e.ctrlKey||e.metaKey||e.shiftKey||e.altKey))switch(e.key){case"Backspace":case"Delete":e.preventDefault(),e.stopPropagation(),y()}},onFocus:()=>{i.current="",r.current&&ar(r.current,{containingElement:Xn(r.current)});let e=window.getSelection();null==e||e.collapse(r.current)},style:{caretColor:"transparent"},onPointerDown(e){e.stopPropagation()},onMouseDown(e){e.stopPropagation()}})}}function Uo(e,t,n){return null!=t&&e.compare(t)<0||null!=n&&e.compare(n)>0}function Wo(e,t,n,r,i){let a={};for(let o in t)a[o]=Math.floor(t[o]/2),a[o]>0&&t[o]%2==0&&a[o]--;return Ho(e,qo(e,t,n).subtract(a),t,n,r,i)}function qo(e,t,n,r,i){let a=e;return t.years?a=Z((o=e).subtract({months:o.month-1})):t.months?a=Z(e):t.weeks&&(a=X(e,n)),Ho(e,a,t,n,r,i);var o}function Ko(e,t,n,r,i){let a={...t};return a.days?a.days--:a.weeks?a.weeks--:a.months?a.months--:a.years&&a.years--,Ho(e,qo(e,t,n).subtract(a),t,n,r,i)}function Ho(e,t,n,r,i,a){if(i&&e.compare(i)>=0){let e=te(t,qo(de(i),n,r));e&&(t=e)}if(a&&e.compare(a)<=0){let e=ee(t,Ko(de(a),n,r));e&&(t=e)}return t}function Zo(e,t,n){if(t){let n=te(e,de(t));n&&(e=n)}if(n){let t=ee(e,de(n));t&&(e=t)}return e}function Go(e,t,n){if(!n)return e;for(;e.compare(t)>=0&&n(e);)e=e.subtract({days:1});return e.compare(t)>=0?e:null}function Yo(e){let n=t.useMemo((()=>new Gt(e.locale)),[e.locale]),r=t.useMemo((()=>n.resolvedOptions()),[n]),{locale:i,createCalendar:a,visibleDuration:o={months:1},minValue:s,maxValue:l,selectionAlignment:u,isDateUnavailable:c,pageBehavior:d="visible"}=e,p=t.useMemo((()=>a(r.calendar)),[a,r.calendar]);var h;let[f,m]=ur(e.value,null!==(h=e.defaultValue)&&void 0!==h?h:null,e.onChange),g=t.useMemo((()=>f?fe(de(f),p):null),[f,p]),y=t.useMemo((()=>f&&"timeZone"in f?f.timeZone:r.timeZone),[f,r.timeZone]),v=t.useMemo((()=>e.focusedValue?Zo(fe(de(e.focusedValue),p),s,l):void 0),[e.focusedValue,p,s,l]),b=t.useMemo((()=>Zo(e.defaultFocusedValue?fe(de(e.defaultFocusedValue),p):g||fe(B(y),p),s,l)),[e.defaultFocusedValue,g,y,p,s,l]),[x,w]=ur(v,b,e.onFocusChange),[E,k]=t.useState((()=>{switch(u){case"start":return qo(x,o,i,s,l);case"end":return Ko(x,o,i,s,l);default:return Wo(x,o,i,s,l)}})),[S,D]=t.useState(e.autoFocus||!1),j=t.useMemo((()=>{let e={...o};return e.days?e.days--:e.days=-1,E.add(e)}),[E,o]),[C,R]=t.useState(p.identifier);if(p.identifier!==C){let e=fe(x,p);k(Wo(e,o,i,s,l)),w(e),R(p.identifier)}function P(e){e=Zo(e,s,l),w(e)}function $(t){if(!e.isDisabled&&!e.isReadOnly){let e=t;if(null===e)return void m(null);if(e=Zo(e,s,l),e=Go(e,E,c),!e)return;e=fe(e,(null==f?void 0:f.calendar)||new I),m(f&&"hour"in f?f.set(e):e)}}Uo(x,s,l)?w(Zo(x,s,l)):x.compare(E)<0?k(Ko(x,o,i,s,l)):x.compare(j)>0&&k(qo(x,o,i,s,l));let T=t.useMemo((()=>!!g&&(!(!c||!c(g))||Uo(g,s,l))),[g,c,s,l]),_=e.isInvalid||"invalid"===e.validationState||T,M=_?"invalid":null,A=t.useMemo((()=>"visible"===d?o:Jo(o)),[d,o]);var O,L;return{isDisabled:null!==(O=e.isDisabled)&&void 0!==O&&O,isReadOnly:null!==(L=e.isReadOnly)&&void 0!==L&&L,value:g,setValue:$,visibleRange:{start:E,end:j},minValue:s,maxValue:l,focusedDate:x,timeZone:y,validationState:M,isValueInvalid:_,setFocusedDate(e){P(e),D(!0)},focusNextDay(){P(x.add({days:1}))},focusPreviousDay(){P(x.subtract({days:1}))},focusNextRow(){o.days?this.focusNextPage():(o.weeks||o.months||o.years)&&P(x.add({weeks:1}))},focusPreviousRow(){o.days?this.focusPreviousPage():(o.weeks||o.months||o.years)&&P(x.subtract({weeks:1}))},focusNextPage(){let e=E.add(A);w(Zo(x.add(A),s,l)),k(qo(Ho(x,e,A,i,s,l),A,i))},focusPreviousPage(){let e=E.subtract(A);w(Zo(x.subtract(A),s,l)),k(qo(Ho(x,e,A,i,s,l),A,i))},focusSectionStart(){o.days?P(E):o.weeks?P(X(x,i)):(o.months||o.years)&&P(Z(x))},focusSectionEnd(){o.days?P(j):o.weeks?P(X(x,i).add({days:6})):(o.months||o.years)&&P(G(x))},focusNextSection(e){e||o.days?o.days?this.focusNextPage():o.weeks?P(x.add({months:1})):(o.months||o.years)&&P(x.add({years:1})):P(x.add(Jo(o)))},focusPreviousSection(e){e||o.days?o.days?this.focusPreviousPage():o.weeks?P(x.subtract({months:1})):(o.months||o.years)&&P(x.subtract({years:1})):P(x.subtract(Jo(o)))},selectFocusedDate(){$(x)},selectDate(e){$(e)},isFocused:S,setFocused:D,isInvalid:e=>Uo(e,s,l),isSelected(e){return null!=g&&F(e,g)&&!this.isCellDisabled(e)&&!this.isCellUnavailable(e)},isCellFocused:e=>S&&x&&F(e,x),isCellDisabled(t){return e.isDisabled||t.compare(E)<0||t.compare(j)>0||this.isInvalid(t)},isCellUnavailable:t=>!!e.isDateUnavailable&&e.isDateUnavailable(t),isPreviousVisibleRangeInvalid(){let e=E.subtract({days:1});return F(e,E)||this.isInvalid(e)},isNextVisibleRangeInvalid(){let e=j.add({days:1});return F(e,j)||this.isInvalid(e)},getDatesInWeek(e,t=E){let n=t.add({weeks:e}),r=[];n=X(n,i);let a=N(n,i);for(let i=0;i<a;i++)r.push(null);for(;r.length<7;){r.push(n);let e=n.add({days:1});if(F(n,e))break;n=e}for(;r.length<7;)r.push(null);return r}}}function Jo(e){let t={...e};for(let n in e)t[n]=1;return t}function Xo(e,t){return e&&t?(t.compare(e)<0&&([e,t]=[t,e]),{start:de(e),end:de(t)}):null}function Qo(e,t){return e=fe(e,(null==t?void 0:t.calendar)||new I),t&&"hour"in t?t.set(e):e}function es(e,t,n){let r=e.add({days:n});for(;(n<0?r.compare(t.visibleRange.start)>=0:r.compare(t.visibleRange.end)<=0)&&!t.isCellUnavailable(r);)r=r.add({days:n});if(t.isCellUnavailable(r))return r.add({days:-n})}function ts(e){let[n,r]=ur(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const i=t.useCallback((()=>{r(!0)}),[r]),a=t.useCallback((()=>{r(!1)}),[r]),o=t.useCallback((()=>{r(!n)}),[r,n]);return{isOpen:n,setOpen:r,open:i,close:a,toggle:o}}const ns=new Ki((rs={"ar-AE":{rangeOverflow:e=>`يجب أن تكون القيمة ${e.maxValue} أو قبل ذلك.`,rangeReversed:"تاريخ البدء يجب أن يكون قبل تاريخ الانتهاء.",rangeUnderflow:e=>`يجب أن تكون القيمة ${e.minValue} أو بعد ذلك.`,unavailableDate:"البيانات المحددة غير متاحة."},"bg-BG":{rangeOverflow:e=>`Стойността трябва да е ${e.maxValue} или по-ранна.`,rangeReversed:"Началната дата трябва да е преди крайната.",rangeUnderflow:e=>`Стойността трябва да е ${e.minValue} или по-късно.`,unavailableDate:"Избраната дата не е налична."},"cs-CZ":{rangeOverflow:e=>`Hodnota musí být ${e.maxValue} nebo dřívější.`,rangeReversed:"Datum zahájení musí předcházet datu ukončení.",rangeUnderflow:e=>`Hodnota musí být ${e.minValue} nebo pozdější.`,unavailableDate:"Vybrané datum není k dispozici."},"da-DK":{rangeOverflow:e=>`Værdien skal være ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen skal være før slutdatoen.",rangeUnderflow:e=>`Værdien skal være ${e.minValue} eller nyere.`,unavailableDate:"Den valgte dato er ikke tilgængelig."},"de-DE":{rangeOverflow:e=>`Der Wert muss ${e.maxValue} oder früher sein.`,rangeReversed:"Das Anfangsdatum muss vor dem Enddatum liegen.",rangeUnderflow:e=>`Der Wert muss ${e.minValue} oder später sein.`,unavailableDate:"Das ausgewählte Datum ist nicht verfügbar."},"el-GR":{rangeOverflow:e=>`Η τιμή πρέπει να είναι ${e.maxValue} ή παλαιότερη.`,rangeReversed:"Η ημερομηνία έναρξης πρέπει να είναι πριν από την ημερομηνία λήξης.",rangeUnderflow:e=>`Η τιμή πρέπει να είναι ${e.minValue} ή μεταγενέστερη.`,unavailableDate:"Η επιλεγμένη ημερομηνία δεν είναι διαθέσιμη."},"en-US":{rangeUnderflow:e=>`Value must be ${e.minValue} or later.`,rangeOverflow:e=>`Value must be ${e.maxValue} or earlier.`,rangeReversed:"Start date must be before end date.",unavailableDate:"Selected date unavailable."},"es-ES":{rangeOverflow:e=>`El valor debe ser ${e.maxValue} o anterior.`,rangeReversed:"La fecha de inicio debe ser anterior a la fecha de finalización.",rangeUnderflow:e=>`El valor debe ser ${e.minValue} o posterior.`,unavailableDate:"Fecha seleccionada no disponible."},"et-EE":{rangeOverflow:e=>`Väärtus peab olema ${e.maxValue} või varasem.`,rangeReversed:"Alguskuupäev peab olema enne lõppkuupäeva.",rangeUnderflow:e=>`Väärtus peab olema ${e.minValue} või hilisem.`,unavailableDate:"Valitud kuupäev pole saadaval."},"fi-FI":{rangeOverflow:e=>`Arvon on oltava ${e.maxValue} tai sitä aikaisempi.`,rangeReversed:"Aloituspäivän on oltava ennen lopetuspäivää.",rangeUnderflow:e=>`Arvon on oltava ${e.minValue} tai sitä myöhäisempi.`,unavailableDate:"Valittu päivämäärä ei ole käytettävissä."},"fr-FR":{rangeOverflow:e=>`La valeur doit être ${e.maxValue} ou antérieure.`,rangeReversed:"La date de début doit être antérieure à la date de fin.",rangeUnderflow:e=>`La valeur doit être ${e.minValue} ou ultérieure.`,unavailableDate:"La date sélectionnée n’est pas disponible."},"he-IL":{rangeOverflow:e=>`הערך חייב להיות ${e.maxValue} או מוקדם יותר.`,rangeReversed:"תאריך ההתחלה חייב להיות לפני תאריך הסיום.",rangeUnderflow:e=>`הערך חייב להיות ${e.minValue} או מאוחר יותר.`,unavailableDate:"התאריך הנבחר אינו זמין."},"hr-HR":{rangeOverflow:e=>`Vrijednost mora biti ${e.maxValue} ili ranije.`,rangeReversed:"Datum početka mora biti prije datuma završetka.",rangeUnderflow:e=>`Vrijednost mora biti ${e.minValue} ili kasnije.`,unavailableDate:"Odabrani datum nije dostupan."},"hu-HU":{rangeOverflow:e=>`Az értéknek ${e.maxValue} vagy korábbinak kell lennie.`,rangeReversed:"A kezdő dátumnak a befejező dátumnál korábbinak kell lennie.",rangeUnderflow:e=>`Az értéknek ${e.minValue} vagy későbbinek kell lennie.`,unavailableDate:"A kiválasztott dátum nem érhető el."},"it-IT":{rangeOverflow:e=>`Il valore deve essere ${e.maxValue} o precedente.`,rangeReversed:"La data di inizio deve essere antecedente alla data di fine.",rangeUnderflow:e=>`Il valore deve essere ${e.minValue} o successivo.`,unavailableDate:"Data selezionata non disponibile."},"ja-JP":{rangeOverflow:e=>`値は ${e.maxValue} 以下にする必要があります。`,rangeReversed:"開始日は終了日より前にする必要があります。",rangeUnderflow:e=>`値は ${e.minValue} 以上にする必要があります。`,unavailableDate:"選択した日付は使用できません。"},"ko-KR":{rangeOverflow:e=>`값은 ${e.maxValue} 이전이어야 합니다.`,rangeReversed:"시작일은 종료일 이전이어야 합니다.",rangeUnderflow:e=>`값은 ${e.minValue} 이상이어야 합니다.`,unavailableDate:"선택한 날짜를 사용할 수 없습니다."},"lt-LT":{rangeOverflow:e=>`Reikšmė turi būti ${e.maxValue} arba ankstesnė.`,rangeReversed:"Pradžios data turi būti ankstesnė nei pabaigos data.",rangeUnderflow:e=>`Reikšmė turi būti ${e.minValue} arba naujesnė.`,unavailableDate:"Pasirinkta data nepasiekiama."},"lv-LV":{rangeOverflow:e=>`Vērtībai ir jābūt ${e.maxValue} vai agrākai.`,rangeReversed:"Sākuma datumam ir jābūt pirms beigu datuma.",rangeUnderflow:e=>`Vērtībai ir jābūt ${e.minValue} vai vēlākai.`,unavailableDate:"Atlasītais datums nav pieejams."},"nb-NO":{rangeOverflow:e=>`Verdien må være ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen må være før sluttdatoen.",rangeUnderflow:e=>`Verdien må være ${e.minValue} eller senere.`,unavailableDate:"Valgt dato utilgjengelig."},"nl-NL":{rangeOverflow:e=>`Waarde moet ${e.maxValue} of eerder zijn.`,rangeReversed:"De startdatum moet voor de einddatum liggen.",rangeUnderflow:e=>`Waarde moet ${e.minValue} of later zijn.`,unavailableDate:"Geselecteerde datum niet beschikbaar."},"pl-PL":{rangeOverflow:e=>`Wartość musi mieć wartość ${e.maxValue} lub wcześniejszą.`,rangeReversed:"Data rozpoczęcia musi być wcześniejsza niż data zakończenia.",rangeUnderflow:e=>`Wartość musi mieć wartość ${e.minValue} lub późniejszą.`,unavailableDate:"Wybrana data jest niedostępna."},"pt-BR":{rangeOverflow:e=>`O valor deve ser ${e.maxValue} ou anterior.`,rangeReversed:"A data inicial deve ser anterior à data final.",rangeUnderflow:e=>`O valor deve ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."},"pt-PT":{rangeOverflow:e=>`O valor tem de ser ${e.maxValue} ou anterior.`,rangeReversed:"A data de início deve ser anterior à data de fim.",rangeUnderflow:e=>`O valor tem de ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."},"ro-RO":{rangeOverflow:e=>`Valoarea trebuie să fie ${e.maxValue} sau anterioară.`,rangeReversed:"Data de început trebuie să fie anterioară datei de sfârșit.",rangeUnderflow:e=>`Valoarea trebuie să fie ${e.minValue} sau ulterioară.`,unavailableDate:"Data selectată nu este disponibilă."},"ru-RU":{rangeOverflow:e=>`Значение должно быть не позже ${e.maxValue}.`,rangeReversed:"Дата начала должна предшествовать дате окончания.",rangeUnderflow:e=>`Значение должно быть не раньше ${e.minValue}.`,unavailableDate:"Выбранная дата недоступна."},"sk-SK":{rangeOverflow:e=>`Hodnota musí byť ${e.maxValue} alebo skoršia.`,rangeReversed:"Dátum začiatku musí byť skorší ako dátum konca.",rangeUnderflow:e=>`Hodnota musí byť ${e.minValue} alebo neskoršia.`,unavailableDate:"Vybratý dátum je nedostupný."},"sl-SI":{rangeOverflow:e=>`Vrednost mora biti ${e.maxValue} ali starejša.`,rangeReversed:"Začetni datum mora biti pred končnim datumom.",rangeUnderflow:e=>`Vrednost mora biti ${e.minValue} ali novejša.`,unavailableDate:"Izbrani datum ni na voljo."},"sr-SP":{rangeOverflow:e=>`Vrednost mora da bude ${e.maxValue} ili starija.`,rangeReversed:"Datum početka mora biti pre datuma završetka.",rangeUnderflow:e=>`Vrednost mora da bude ${e.minValue} ili novija.`,unavailableDate:"Izabrani datum nije dostupan."},"sv-SE":{rangeOverflow:e=>`Värdet måste vara ${e.maxValue} eller tidigare.`,rangeReversed:"Startdatumet måste vara före slutdatumet.",rangeUnderflow:e=>`Värdet måste vara ${e.minValue} eller senare.`,unavailableDate:"Det valda datumet är inte tillgängligt."},"tr-TR":{rangeOverflow:e=>`Değer, ${e.maxValue} veya öncesi olmalıdır.`,rangeReversed:"Başlangıç tarihi bitiş tarihinden önce olmalıdır.",rangeUnderflow:e=>`Değer, ${e.minValue} veya sonrası olmalıdır.`,unavailableDate:"Seçilen tarih kullanılamıyor."},"uk-UA":{rangeOverflow:e=>`Значення має бути не пізніше ${e.maxValue}.`,rangeReversed:"Дата початку має передувати даті завершення.",rangeUnderflow:e=>`Значення має бути не раніше ${e.minValue}.`,unavailableDate:"Вибрана дата недоступна."},"zh-CN":{rangeOverflow:e=>`值必须是 ${e.maxValue} 或更早日期。`,rangeReversed:"开始日期必须早于结束日期。",rangeUnderflow:e=>`值必须是 ${e.minValue} 或更晚日期。`,unavailableDate:"所选日期不可用。"},"zh-TW":{rangeOverflow:e=>`值必須是 ${e.maxValue} 或更早。`,rangeReversed:"開始日期必須在結束日期之前。",rangeUnderflow:e=>`值必須是 ${e.minValue} 或更晚。`,unavailableDate:"所選日期無法使用。"}})&&rs.__esModule?rs.default:rs);var rs;function is(){return"undefined"!=typeof navigator&&(navigator.language||navigator.userLanguage)||"en-US"}function as(e,t,n,r,i){let a=null!=e&&null!=n&&e.compare(n)>0,o=null!=e&&null!=t&&e.compare(t)<0,s=null!=e&&(null==r?void 0:r(e))||!1,l=a||o||s,u=[];if(l){let e=is(),r=Ki.getGlobalDictionaryForPackage("@react-stately/datepicker")||ns,l=new Gi(e,r),c=new Gt(e,ls({},i)),d=c.resolvedOptions().timeZone;o&&null!=t&&u.push(l.format("rangeUnderflow",{minValue:c.format(t.toDate(d))})),a&&null!=n&&u.push(l.format("rangeOverflow",{maxValue:c.format(n.toDate(d))})),s&&u.push(l.format("unavailableDate"))}return{isInvalid:l,validationErrors:u,validationDetails:{badInput:s,customError:!1,patternMismatch:!1,rangeOverflow:a,rangeUnderflow:o,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!l}}}const os={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},ss={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};function ls(e,t){let n=t.shouldForceLeadingZeros?ss:os;e={...n,...e};let r=t.granularity||"minute",i=Object.keys(e);var a;let o=i.indexOf(null!==(a=t.maxGranularity)&&void 0!==a?a:"year");o<0&&(o=0);let s=i.indexOf(r);if(s<0&&(s=2),o>s)throw new Error("maxGranularity must be greater than granularity");let l=i.slice(o,s+1).reduce(((t,n)=>(t[n]=e[n],t)),{});return null!=t.hourCycle&&(l.hour12=12===t.hourCycle),l.timeZone=t.timeZone||"UTC",("hour"===r||"minute"===r||"second"===r)&&t.timeZone&&!t.hideTimeZone&&(l.timeZoneName="short"),t.showEra&&0===o&&(l.era="short"),l}function us(e){return e&&"hour"in e?e:new qe}function cs(e,t){return null===e?null:e?fe(e,t):void 0}function ds(e,t,n,r){if(e)return cs(e,n);let i=fe(z(null!=r?r:H()).set({hour:0,minute:0,second:0,millisecond:0}),n);return"year"===t||"month"===t||"day"===t?de(i):r?i:pe(i)}function ps(e,n){let r=e&&"timeZone"in e?e.timeZone:void 0,i=e&&"minute"in e?"minute":"day";if(e&&n&&!(n in e))throw new Error("Invalid granularity "+n+" for value "+e.toString());let[a,o]=t.useState([i,r]);return!e||a[0]===i&&a[1]===r||o([i,r]),n||(n=e?i:a[0]),[n,e?r:a[1]]}function hs(e){let n=ts(e),[r,i]=ur(e.value,e.defaultValue||null,e.onChange),a=r||e.placeholderValue||null,[o,s]=ps(a,e.granularity),l=null!=r?r.toDate(null!=s?s:"UTC"):null,u="hour"===o||"minute"===o||"second"===o;var c;let d=null===(c=e.shouldCloseOnSelect)||void 0===c||c,[p,h]=t.useState(null),[f,m]=t.useState(null);if(r&&(p=r,"hour"in r&&(f=r)),a&&!(o in a))throw new Error("Invalid granularity "+o+" for value "+a.toString());let g="gregory"===(null==r?void 0:r.calendar.identifier)&&"BC"===r.era,y=t.useMemo((()=>({granularity:o,timeZone:s,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:g})),[o,e.hourCycle,e.shouldForceLeadingZeros,s,e.hideTimeZone,g]),{minValue:v,maxValue:b,isDateUnavailable:x}=e,w=t.useMemo((()=>as(r,v,b,x,y)),[r,v,b,x,y]),E=Aa({...e,value:r,builtinValidation:w}),k=E.displayValidation.isInvalid,S=e.validationState||(k?"invalid":null),D=(e,t)=>{i("timeZone"in t?t.set(de(e)):pe(e,t)),h(null),m(null),E.commitValidation()};return{...E,value:r,setValue:i,dateValue:p,timeValue:f,setDateValue:t=>{let r="function"==typeof d?d():d;u?f||r?D(t,f||us(e.defaultValue||e.placeholderValue)):h(t):(i(t),E.commitValidation()),r&&n.setOpen(!1)},setTimeValue:e=>{p&&e?D(p,e):m(e)},granularity:o,hasTime:u,...n,setOpen(t){!t&&!r&&p&&u&&D(p,f||us(e.defaultValue||e.placeholderValue)),n.setOpen(t)},validationState:S,isInvalid:k,formatValue(e,t){if(!l)return"";let n=ls(t,y);return new Gt(e,n).format(l)},getDateFormatter(e,t){let n=ls({},{...y,...t});return new Gt(e,n)}}}const fs=new Ki({ach:{year:"mwaka",month:"dwe",day:"nino"},af:{year:"jjjj",month:"mm",day:"dd"},am:{year:"ዓዓዓዓ",month:"ሚሜ",day:"ቀቀ"},an:{year:"aaaa",month:"mm",day:"dd"},ar:{year:"سنة",month:"شهر",day:"يوم"},ast:{year:"aaaa",month:"mm",day:"dd"},az:{year:"iiii",month:"aa",day:"gg"},be:{year:"гггг",month:"мм",day:"дд"},bg:{year:"гггг",month:"мм",day:"дд"},bn:{year:"yyyy",month:"মিমি",day:"dd"},br:{year:"bbbb",month:"mm",day:"dd"},bs:{year:"gggg",month:"mm",day:"dd"},ca:{year:"aaaa",month:"mm",day:"dd"},cak:{year:"jjjj",month:"ii",day:"q'q'"},ckb:{year:"ساڵ",month:"مانگ",day:"ڕۆژ"},cs:{year:"rrrr",month:"mm",day:"dd"},cy:{year:"bbbb",month:"mm",day:"dd"},da:{year:"åååå",month:"mm",day:"dd"},de:{year:"jjjj",month:"mm",day:"tt"},dsb:{year:"llll",month:"mm",day:"źź"},el:{year:"εεεε",month:"μμ",day:"ηη"},en:{year:"yyyy",month:"mm",day:"dd"},eo:{year:"jjjj",month:"mm",day:"tt"},es:{year:"aaaa",month:"mm",day:"dd"},et:{year:"aaaa",month:"kk",day:"pp"},eu:{year:"uuuu",month:"hh",day:"ee"},fa:{year:"سال",month:"ماه",day:"روز"},ff:{year:"hhhh",month:"ll",day:"ññ"},fi:{year:"vvvv",month:"kk",day:"pp"},fr:{year:"aaaa",month:"mm",day:"jj"},fy:{year:"jjjj",month:"mm",day:"dd"},ga:{year:"bbbb",month:"mm",day:"ll"},gd:{year:"bbbb",month:"mm",day:"ll"},gl:{year:"aaaa",month:"mm",day:"dd"},he:{year:"שנה",month:"חודש",day:"יום"},hr:{year:"gggg",month:"mm",day:"dd"},hsb:{year:"llll",month:"mm",day:"dd"},hu:{year:"éééé",month:"hh",day:"nn"},ia:{year:"aaaa",month:"mm",day:"dd"},id:{year:"tttt",month:"bb",day:"hh"},it:{year:"aaaa",month:"mm",day:"gg"},ja:{year:" 年 ",month:"月",day:"日"},ka:{year:"წწწწ",month:"თთ",day:"რრ"},kk:{year:"жжжж",month:"аа",day:"кк"},kn:{year:"ವವವವ",month:"ಮಿಮೀ",day:"ದಿದಿ"},ko:{year:"연도",month:"월",day:"일"},lb:{year:"jjjj",month:"mm",day:"dd"},lo:{year:"ປປປປ",month:"ດດ",day:"ວວ"},lt:{year:"mmmm",month:"mm",day:"dd"},lv:{year:"gggg",month:"mm",day:"dd"},meh:{year:"aaaa",month:"mm",day:"dd"},ml:{year:"വർഷം",month:"മാസം",day:"തീയതി"},ms:{year:"tttt",month:"mm",day:"hh"},nl:{year:"jjjj",month:"mm",day:"dd"},nn:{year:"åååå",month:"mm",day:"dd"},no:{year:"åååå",month:"mm",day:"dd"},oc:{year:"aaaa",month:"mm",day:"jj"},pl:{year:"rrrr",month:"mm",day:"dd"},pt:{year:"aaaa",month:"mm",day:"dd"},rm:{year:"oooo",month:"mm",day:"dd"},ro:{year:"aaaa",month:"ll",day:"zz"},ru:{year:"гггг",month:"мм",day:"дд"},sc:{year:"aaaa",month:"mm",day:"dd"},scn:{year:"aaaa",month:"mm",day:"jj"},sk:{year:"rrrr",month:"mm",day:"dd"},sl:{year:"llll",month:"mm",day:"dd"},sr:{year:"гггг",month:"мм",day:"дд"},sv:{year:"åååå",month:"mm",day:"dd"},szl:{year:"rrrr",month:"mm",day:"dd"},tg:{year:"сссс",month:"мм",day:"рр"},th:{year:"ปปปป",month:"ดด",day:"วว"},tr:{year:"yyyy",month:"aa",day:"gg"},uk:{year:"рррр",month:"мм",day:"дд"},"zh-CN":{year:"年",month:"月",day:"日"},"zh-TW":{year:"年",month:"月",day:"日"}},"en"),ms={year:!0,month:!0,day:!0,hour:!0,minute:!0,second:!0,dayPeriod:!0,era:!0},gs={year:5,month:2,day:7,hour:2,minute:15,second:15},ys={dayperiod:"dayPeriod"};function vs(e){let{locale:n,createCalendar:r,hideTimeZone:i,isDisabled:a=!1,isReadOnly:o=!1,isRequired:s=!1,minValue:l,maxValue:u,isDateUnavailable:c}=e,d=e.value||e.defaultValue||e.placeholderValue||null,[p,h]=ps(d,e.granularity),f=h||"UTC";if(d&&!(p in d))throw new Error("Invalid granularity "+p+" for value "+d.toString());let m=t.useMemo((()=>new Gt(n)),[n]),g=t.useMemo((()=>r(m.resolvedOptions().calendar)),[r,m]);var y;let[v,b]=ur(e.value,null!==(y=e.defaultValue)&&void 0!==y?y:null,e.onChange),x=t.useMemo((()=>{var e;return null!==(e=cs(v,g))&&void 0!==e?e:null}),[v,g]),[w,E]=t.useState((()=>ds(e.placeholderValue,p,g,h))),k=x||w,S="gregory"===g.identifier&&"BC"===k.era,D=t.useMemo((()=>{var t;return{granularity:p,maxGranularity:null!==(t=e.maxGranularity)&&void 0!==t?t:"year",timeZone:h,hideTimeZone:i,hourCycle:e.hourCycle,showEra:S,shouldForceLeadingZeros:e.shouldForceLeadingZeros}}),[e.maxGranularity,p,e.hourCycle,e.shouldForceLeadingZeros,h,i,S]),j=t.useMemo((()=>ls({},D)),[D]),C=t.useMemo((()=>new Gt(n,j)),[n,j]),R=t.useMemo((()=>C.resolvedOptions()),[C]),P=t.useMemo((()=>C.formatToParts(new Date).filter((e=>ms[e.type])).reduce(((e,t)=>(e[t.type]=!0,e)),{})),[C]),[$,T]=t.useState((()=>e.value||e.defaultValue?{...P}:{})),_=t.useRef(null),M=t.useRef(g.identifier);t.useEffect((()=>{g.identifier!==M.current&&(M.current=g.identifier,E((t=>Object.keys($).length>0?fe(t,g):ds(e.placeholderValue,p,g,h))))}),[g,p,$,h,e.placeholderValue]),v&&Object.keys($).length<Object.keys(P).length&&($={...P},T($)),null==v&&Object.keys($).length===Object.keys(P).length&&($={},T($),E(ds(e.placeholderValue,p,g,h)));let A=x&&Object.keys($).length>=Object.keys(P).length?x:w,O=t=>{if(e.isDisabled||e.isReadOnly)return;let n=Object.keys($),r=Object.keys(P);null==t?(b(null),E(ds(e.placeholderValue,p,g,h)),T({})):n.length>=r.length||n.length===r.length-1&&P.dayPeriod&&!$.dayPeriod&&"dayPeriod"!==_.current?(t=fe(t,(null==d?void 0:d.calendar)||new I),b(t)):E(t),_.current=null},F=t.useMemo((()=>A.toDate(f)),[A,f]),L=t.useMemo((()=>C.formatToParts(F).map((e=>{let t=ms[e.type];"era"===e.type&&1===g.getEras().length&&(t=!1);let r=ms[e.type]&&!$[e.type],i=ms[e.type]?(a=e.type,o=e.value,s=n,"era"===a||"dayPeriod"===a?o:"year"===a||"month"===a||"day"===a?fs.getStringForLocale(a,s):"––"):null;var a,o,s;return{type:ys[e.type]||e.type,text:r?i:e.value,...bs(A,e.type,R),isPlaceholder:r,placeholder:i,isEditable:t}}))),[F,$,C,R,A,g,n]);P.era&&$.year&&!$.era?($.era=!0,T({...$})):!P.era&&$.era&&(delete $.era,T({...$}));let V=e=>{$[e]=!0,"year"===e&&P.era&&($.era=!0),T({...$})},N=(e,t)=>{if($[e])O(function(e,t,n,r){switch(t){case"era":case"year":case"month":case"day":return e.cycle(t,n,{round:"year"===t})}if("hour"in e)switch(t){case"dayPeriod":{let t=e.hour,n=t>=12;return e.set({hour:n?t-12:t+12})}case"hour":case"minute":case"second":return e.cycle(t,n,{round:"hour"!==t,hourCycle:r.hour12?12:24})}throw new Error("Unknown segment: "+t)}(A,e,t,R));else{V(e);let t=Object.keys($),n=Object.keys(P);(t.length>=n.length||t.length===n.length-1&&P.dayPeriod&&!$.dayPeriod)&&O(A)}},z=t.useMemo((()=>as(v,l,u,c,D)),[v,l,u,c,D]),B=Aa({...e,value:v,builtinValidation:z}),U=B.displayValidation.isInvalid,W=e.validationState||(U?"invalid":null);var q;return{...B,value:x,dateValue:F,calendar:g,setValue:O,segments:L,dateFormatter:C,validationState:W,isInvalid:U,granularity:p,maxGranularity:null!==(q=e.maxGranularity)&&void 0!==q?q:"year",isDisabled:a,isReadOnly:o,isRequired:s,increment(e){N(e,1)},decrement(e){N(e,-1)},incrementPage(e){N(e,gs[e]||1)},decrementPage(e){N(e,-(gs[e]||1))},setSegment(e,t){V(e),O(function(e,t,n,r){switch(t){case"day":case"month":case"year":case"era":return e.set({[t]:n})}if("hour"in e&&"number"==typeof n)switch(t){case"dayPeriod":{let t=e.hour,r=t>=12;return n>=12===r?e:e.set({hour:r?t-12:t+12})}case"hour":if(r.hour12){let t=e.hour>=12;t||12!==n||(n=0),t&&n<12&&(n+=12)}case"minute":case"second":return e.set({[t]:n})}throw new Error("Unknown segment: "+t)}(A,e,t,R))},confirmPlaceholder(){if(e.isDisabled||e.isReadOnly)return;let t=Object.keys($),n=Object.keys(P);t.length===n.length-1&&P.dayPeriod&&!$.dayPeriod&&($={...P},T($),O(A.copy()))},clearSegment(t){delete $[t],_.current=t,T({...$});let n=ds(e.placeholderValue,p,g,h),r=A;if("dayPeriod"===t&&"hour"in A&&"hour"in n){let e=A.hour>=12,t=n.hour>=12;e&&!t?r=A.set({hour:A.hour-12}):!e&&t&&(r=A.set({hour:A.hour+12}))}else t in A&&(r=A.set({[t]:n[t]}));b(null),O(r)},formatValue(e){if(!x)return"";let t=ls(e,D);return new Gt(n,t).format(F)},getDateFormatter(e,t){let n=ls({},{...D,...t});return new Gt(e,n)}}}function bs(e,t,n){switch(t){case"era":{let t=e.calendar.getEras();return{value:t.indexOf(e.era),minValue:0,maxValue:t.length-1}}case"year":return{value:e.year,minValue:1,maxValue:e.calendar.getYearsInEra(e)};case"month":return{value:e.month,minValue:Y(e),maxValue:e.calendar.getMonthsInYear(e)};case"day":return{value:e.day,minValue:J(e),maxValue:e.calendar.getDaysInMonth(e)}}if("hour"in e)switch(t){case"dayPeriod":return{value:e.hour>=12?12:0,minValue:0,maxValue:12};case"hour":if(n.hour12){let t=e.hour>=12;return{value:e.hour,minValue:t?12:0,maxValue:t?23:11}}return{value:e.hour,minValue:0,maxValue:23};case"minute":return{value:e.minute,minValue:0,maxValue:59};case"second":return{value:e.second,minValue:0,maxValue:59}}return{}}function xs(e){return null!=(null==e?void 0:e.start)&&null!=e.end}function ws(e,t=B(H())){return e?"day"in e?e:pe(t,e):null}var Es,ks,Ss=ks?Es:(ks=1,Es=function(e){return null===e});const Ds=e.getDefaultExportFromCjs(Ss),js=n.styled.div`
|
|
34
34
|
${({theme:e})=>`\n align-items: center;\n color: ${e.palette.gray[800]};\n display: flex;\n font-family: ${e.typography.type.primary};\n font-size: ${e.typography.text.sm};\n font-weight: ${e.typography.weight.bold};\n gap: ${e.spacing[.5]};\n height: 40px;\n justify-content: center;\n line-height: ${e.spacing[1.25]};\n text-align: center;\n padding: ${e.spacing[.5]} 0;\n width: 200px;\n word-spacing: ${e.spacing[.25]};\n\n &:not(:hover) .year-selection {\n display: none;\n }\n `}
|
|
35
|
-
`,
|
|
35
|
+
`,Cs=n.styled.div.attrs({className:"year-selection"})`
|
|
36
36
|
align-items: flex-start;
|
|
37
37
|
display: flex;
|
|
38
38
|
flex-direction: column;
|
|
@@ -43,25 +43,25 @@
|
|
|
43
43
|
padding: 0 0.5px;
|
|
44
44
|
position: relative;
|
|
45
45
|
width: 8px;
|
|
46
|
-
`,
|
|
46
|
+
`,Rs=n.styled.tr`
|
|
47
47
|
align-items: flex-start;
|
|
48
48
|
display: flex;
|
|
49
49
|
padding: ${({theme:e})=>e.spacing[.25]} 0;
|
|
50
50
|
width: 100%;
|
|
51
|
-
`,
|
|
51
|
+
`,Ps=n.css`
|
|
52
52
|
${({theme:e})=>`\n align-items: center;\n color: ${e.palette.gray[800]};\n cursor: pointer;\n display: flex;\n flex-direction: column;\n font-family: ${e.typography.type.primary};\n font-size: ${e.typography.text.sm};\n font-weight: ${e.typography.weight.regular};\n height: ${e.spacing[2.5]};\n justify-content: center;\n line-height: ${e.spacing[1.25]};\n text-align: center;\n width: ${e.spacing[2.5]};\n `}
|
|
53
|
-
|
|
54
|
-
${
|
|
55
|
-
`,
|
|
56
|
-
${({theme:e})=>`\n ${
|
|
57
|
-
`,
|
|
53
|
+
`,$s=n.styled.th`
|
|
54
|
+
${Ps}
|
|
55
|
+
`,Ts=n.styled.td`
|
|
56
|
+
${({theme:e})=>`\n ${Ps}\n height: ${e.spacing[2.5]};\n width: ${e.spacing[2.5]};\n\n &#range {\n background: ${e.palette.primary[25]};\n }\n\n div:not(.dot) {\n align-items: center;\n display: flex;\n flex-direction: column;\n font-size: ${e.typography.text.sm};\n justify-content: center;\n height: ${e.spacing[2.5]};\n line-height: ${e.spacing[1.25]};\n position: relative;\n text-align: center;\n width: ${e.spacing[2.5]};\n\n &:focus-visible {\n outline: none;\n }\n\n &:hover:not(.disabled, .selected, .range) {\n background: ${e.palette.gray[100]};\n }\n\n &.disabled {\n color: ${e.palette.gray[400]};\n cursor: auto;\n }\n\n &.selected {\n background: ${e.palette.primary[500]};\n color: ${e.palette.white};\n }\n\n &.focused {\n border: 2px solid ${e.palette.primary[500]};\n }\n\n &.today:not(.selected) {\n color: ${e.palette.primary[500]};\n font-weight: ${e.typography.weight.bold};\n }\n }\n `}
|
|
57
|
+
`,_s=n.styled.div.attrs({className:"dot"})`
|
|
58
58
|
position: absolute;
|
|
59
59
|
top: 48%;
|
|
60
60
|
|
|
61
61
|
> span {
|
|
62
62
|
font-size: 4px;
|
|
63
63
|
}
|
|
64
|
-
`,
|
|
64
|
+
`,Ms=n.styled.button`
|
|
65
65
|
cursor: pointer;
|
|
66
66
|
display: flex;
|
|
67
67
|
|
|
@@ -69,9 +69,9 @@
|
|
|
69
69
|
height: 3.5px;
|
|
70
70
|
width: 7px;
|
|
71
71
|
}
|
|
72
|
-
`,
|
|
72
|
+
`,As=n.styled.div`
|
|
73
73
|
${({theme:e})=>`\n align-items: end;\n border-top: 1px solid ${e.palette.gray[200]};\n display: flex;\n flex-direction: row-reverse;\n gap: ${e.spacing[.5]};\n height: 44px;\n margin-bottom: ${e.spacing[.25]};\n padding: 0 ${e.spacing[.25]};\n width: 100%;\n `}
|
|
74
|
-
`,
|
|
74
|
+
`,Is=({state:n,date:r})=>{const i=t.useRef(null),a=V(r,H()),{cellProps:o,buttonProps:s,isSelected:l,isDisabled:u,formattedDate:c}=function(e,n,r){let{date:i,isDisabled:a}=e,{errorMessageId:o,selectedDateDescription:s}=xa.get(n),l=Xi((u=va)&&u.__esModule?u.default:u,"@react-aria/calendar");var u;let c=Qi({weekday:"long",day:"numeric",month:"long",year:"numeric",era:wa(i),timeZone:n.timeZone}),d=n.isSelected(i),p=n.isCellFocused(i);a=a||n.isCellDisabled(i);let h=n.isCellUnavailable(i),f=!a&&!h,m=n.isValueInvalid&&Boolean("highlightedRange"in n?!n.anchorDate&&n.highlightedRange&&i.compare(n.highlightedRange.start)>=0&&i.compare(n.highlightedRange.end)<=0:n.value&&F(n.value,i));m&&(d=!0),i=sr(i,L);let g=t.useMemo((()=>i.toDate(n.timeZone)),[i,n.timeZone]),y=V(i,n.timeZone),v=t.useMemo((()=>{let e="";return"highlightedRange"in n&&n.value&&!n.anchorDate&&(F(i,n.value.start)||F(i,n.value.end))&&(e=s+", "),e+=c.format(g),y?e=l.format(d?"todayDateSelected":"todayDate",{date:e}):d&&(e=l.format("dateSelected",{date:e})),n.minValue&&F(i,n.minValue)?e+=", "+l.format("minimumDate"):n.maxValue&&F(i,n.maxValue)&&(e+=", "+l.format("maximumDate")),e}),[c,g,l,d,y,i,n,s]),b="";"anchorDate"in n&&p&&!n.isReadOnly&&f&&(b=n.anchorDate?l.format("finishRangeSelectionPrompt"):l.format("startRangeSelectionPrompt"));let x,w=tr(b),E=t.useRef(!1),k=t.useRef(!1),S=t.useRef(void 0),{pressProps:D,isPressed:j}=Sr({shouldCancelOnPointerExit:"anchorDate"in n&&!!n.anchorDate,preventFocusOnPress:!0,isDisabled:!f||n.isReadOnly,onPressStart(e){if(n.isReadOnly)n.setFocusedDate(i);else if("highlightedRange"in n&&!n.anchorDate&&("mouse"===e.pointerType||"touch"===e.pointerType)){if(n.highlightedRange&&!m){if(F(i,n.highlightedRange.start))return n.setAnchorDate(n.highlightedRange.end),n.setFocusedDate(i),n.setDragging(!0),void(k.current=!0);if(F(i,n.highlightedRange.end))return n.setAnchorDate(n.highlightedRange.start),n.setFocusedDate(i),n.setDragging(!0),void(k.current=!0)}let t=()=>{n.setDragging(!0),S.current=void 0,n.selectDate(i),n.setFocusedDate(i),E.current=!0};"touch"===e.pointerType?S.current=setTimeout(t,200):t()}},onPressEnd(){k.current=!1,E.current=!1,clearTimeout(S.current),S.current=void 0},onPress(){"anchorDate"in n||n.isReadOnly||(n.selectDate(i),n.setFocusedDate(i))},onPressUp(e){if(!n.isReadOnly&&("anchorDate"in n&&S.current&&(n.selectDate(i),n.setFocusedDate(i)),"anchorDate"in n))if(k.current)n.setAnchorDate(i);else if(n.anchorDate&&!E.current)n.selectDate(i),n.setFocusedDate(i);else if("keyboard"!==e.pointerType||n.anchorDate)"virtual"===e.pointerType&&(n.selectDate(i),n.setFocusedDate(i));else{n.selectDate(i);let e=i.add({days:1});n.isInvalid(e)&&(e=i.subtract({days:1})),n.isInvalid(e)||n.setFocusedDate(e)}}});a||(x=F(i,n.focusedDate)?0:-1),t.useEffect((()=>{p&&r.current&&(Rn(r.current),"pointer"!==Xr()&&document.activeElement===r.current&&ar(r.current,{containingElement:Xn(r.current)}))}),[p,r]);let C=Qi({day:"numeric",timeZone:n.timeZone,calendar:i.calendar.identifier}),R=t.useMemo((()=>C.formatToParts(g).find((e=>"day"===e.type)).value),[C,g]);return{cellProps:{role:"gridcell","aria-disabled":!f||void 0,"aria-selected":d||void 0,"aria-invalid":m||void 0},buttonProps:En(D,{onFocus(){a||n.setFocusedDate(i)},tabIndex:x,role:"button","aria-disabled":!f||void 0,"aria-label":v,"aria-invalid":m||void 0,"aria-describedby":[m?o:void 0,w["aria-describedby"]].filter(Boolean).join(" ")||void 0,onPointerEnter(e){"highlightDate"in n&&("touch"!==e.pointerType||n.isDragging)&&f&&n.highlightDate(i)},onPointerDown(e){"releasePointerCapture"in e.target&&e.target.releasePointerCapture(e.pointerId)},onContextMenu(e){e.preventDefault()}}),isPressed:j,isFocused:p,isSelected:d,isDisabled:a,isUnavailable:h,isOutsideVisibleRange:i.compare(n.visibleRange.start)<0||i.compare(n.visibleRange.end)>0,isInvalid:m,formattedDate:R}}({date:r},n,i),d="highlightedRange"in n&&!Ds(n.highlightedRange)?F(r,n.highlightedRange.start):l,p="highlightedRange"in n&&!Ds(n.highlightedRange)?F(r,n.highlightedRange.end):l,h=!l||u||d||p?"":"range";return e.jsxRuntimeExports.jsx(Ts,{id:h,...o,children:e.jsxRuntimeExports.jsxs("div",{...s,className:`cell ${d||p?"selected":""}\n ${u?"disabled":""} ${a?"today":""}\n ${n.isFocused||a?"":"focused"} ${h}`,ref:i,children:[c,a?e.jsxRuntimeExports.jsx(_s,{children:e.jsxRuntimeExports.jsx(e.Icon,{clickable:!1,icon:"circle",iconSize:"xxs"})}):void 0]})})},Os=({state:n,...r})=>{const{locale:i}=Bi(),{weekDays:a}=function(e,n){let{startDate:r=n.visibleRange.start,endDate:i=n.visibleRange.end}=e,{direction:a}=Bi(),o=Ea(r,i,n.timeZone,!0),{ariaLabel:s,ariaLabelledBy:l}=xa.get(n),u=Hn({"aria-label":[s,o].filter(Boolean).join(", "),"aria-labelledby":l}),c=Qi({weekday:e.weekdayStyle||"narrow",timeZone:n.timeZone}),{locale:d}=Bi(),p=t.useMemo((()=>{let e=X(B(n.timeZone),d);return[...new Array(7).keys()].map((t=>{let r=e.add({days:t}).toDate(n.timeZone);return c.format(r)}))}),[d,n.timeZone,c]);return{gridProps:En(u,{role:"grid","aria-readonly":n.isReadOnly||void 0,"aria-disabled":n.isDisabled||void 0,"aria-multiselectable":"highlightedRange"in n||void 0,onKeyDown:e=>{switch(e.key){case"Enter":case" ":e.preventDefault(),n.selectFocusedDate();break;case"PageUp":e.preventDefault(),e.stopPropagation(),n.focusPreviousSection(e.shiftKey);break;case"PageDown":e.preventDefault(),e.stopPropagation(),n.focusNextSection(e.shiftKey);break;case"End":e.preventDefault(),e.stopPropagation(),n.focusSectionEnd();break;case"Home":e.preventDefault(),e.stopPropagation(),n.focusSectionStart();break;case"ArrowLeft":e.preventDefault(),e.stopPropagation(),"rtl"===a?n.focusNextDay():n.focusPreviousDay();break;case"ArrowUp":e.preventDefault(),e.stopPropagation(),n.focusPreviousRow();break;case"ArrowRight":e.preventDefault(),e.stopPropagation(),"rtl"===a?n.focusPreviousDay():n.focusNextDay();break;case"ArrowDown":e.preventDefault(),e.stopPropagation(),n.focusNextRow();break;case"Escape":"setAnchorDate"in n&&(e.preventDefault(),n.setAnchorDate(null))}},onFocus:()=>n.setFocused(!0),onBlur:()=>n.setFocused(!1)}),headerProps:{"aria-hidden":!0},weekDays:p}}(r,n),o=function(e,t){let n=e.calendar.getDaysInMonth(e);return Math.ceil((N(Z(e),t)+n)/7)}(n.visibleRange.start,i);return e.jsxRuntimeExports.jsxs("table",{children:[e.jsxRuntimeExports.jsx("thead",{children:e.jsxRuntimeExports.jsx(Rs,{children:a.map(((t,n)=>{const r=`key_${n}`;return e.jsxRuntimeExports.jsx($s,{children:t},r)}))})}),e.jsxRuntimeExports.jsx("tbody",{children:[...new Array(o).keys()].map((t=>e.jsxRuntimeExports.jsx(Rs,{children:n.getDatesInWeek(t).map(((t,r)=>{const i=`key_${r}`;return t?e.jsxRuntimeExports.jsx(Is,{date:t,state:n},i):e.jsxRuntimeExports.jsx("td",{},i)}))},t)))})]})},Fs=n.styled(e.BaseButtonComponent)`
|
|
75
75
|
align-items: center;
|
|
76
76
|
background-color: inherit;
|
|
77
77
|
border-color: inherit;
|
|
@@ -87,71 +87,71 @@
|
|
|
87
87
|
background-color: ${({theme:e})=>e.palette.gray[100]};
|
|
88
88
|
cursor: pointer;
|
|
89
89
|
}
|
|
90
|
-
`,
|
|
90
|
+
`,Ls=n.styled.div`
|
|
91
91
|
${({theme:e})=>`\n align-items: flex-start;\n background: ${e.palette.white};\n border: 1px solid ${e.palette.gray[200]};\n border-radius: ${e.spacing[.5]};\n box-shadow: ${e.shadows.md};\n display: inline-flex;\n flex-direction: column;\n gap: ${e.spacing[.25]};\n height: auto;\n padding: ${e.spacing[.25]};\n width: 292px;\n `}
|
|
92
|
-
`,
|
|
92
|
+
`,Vs=n.styled.button`
|
|
93
93
|
${({theme:e,$disabled:t,$focus:n,$header:r})=>{const i=n?"34px":"40px";return`\n align-items: center;\n border-radius: ${r?`0 ${e.spacing[.5]} ${e.spacing[.5]} 0`:"4px"};\n border-left: inherit;\n display: flex;\n height: ${r?"38px":i};\n justify-content: center;\n outline: none;\n width: ${r?"38px":"40px"};\n\n &:hover {\n background-color: ${e.palette.gray[t?500:100]};\n }\n `}}
|
|
94
|
-
`,
|
|
94
|
+
`,Ns=n.styled.div`
|
|
95
95
|
${({theme:e})=>`\n align-items: center;\n background: transparent;\n border-radius: ${e.spacing[.5]} 0 0 ${e.spacing[.5]};\n border-color: inherit;\n display: flex;\n height: 100%;\n justify-content: space-between;\n width: calc(100% - 40px);\n `}
|
|
96
|
-
`,
|
|
96
|
+
`,zs=n.styled.div`
|
|
97
97
|
align-items: center;
|
|
98
98
|
display: flex;
|
|
99
99
|
justify-content: flex-end;
|
|
100
100
|
gap: ${({theme:e})=>e.spacing[.5]};
|
|
101
101
|
flex: 1 0 0;
|
|
102
|
-
`,
|
|
102
|
+
`,Bs=n.styled.div`
|
|
103
103
|
${({theme:e})=>`\n align-items: center;\n align-self: stretch;\n background-color: ${e.palette.gray[200]};\n border-radius: ${e.spacing[.25]};\n display: flex;\n font-family: ${e.typography.type.primary};\n gap: ${e.spacing[.25]};\n line-height: ${e.spacing[1.5]};\n padding: 2px ${e.spacing[.25]};\n `}
|
|
104
|
-
`,
|
|
104
|
+
`,Us=n.styled.button`
|
|
105
105
|
${({theme:e})=>`\n align-items: center;\n background-color: inherit;\n border: 0.5px solid ${e.palette.gray[200]};\n border-radius: 7px;\n color: ${e.palette.gray[800]};\n cursor: pointer;\n display: flex;\n font-weight: ${e.typography.weight.regular};\n justify-content: center;\n gap: 10px;\n padding: 2px 10px;\n\n &#active {\n background-color: ${e.palette.white};\n box-shadow: ${e.shadows.md};\n font-weight: ${e.typography.weight.bold};\n }\n `}
|
|
106
|
-
`,
|
|
106
|
+
`,Ws=({disabled:n=!1,icon:r,props:i})=>{const a=t.useRef(null),{buttonProps:o}=function(e,t){let n,{elementType:r="button",isDisabled:i,onPress:a,onPressStart:o,onPressEnd:s,onPressUp:l,onPressChange:u,preventFocusOnPress:c,allowFocusWhenDisabled:d,onClick:p,href:h,target:f,rel:m,type:g="button"}=e;n="button"===r?{type:g,disabled:i}:{role:"button",tabIndex:i?void 0:0,href:"a"!==r||i?void 0:h,target:"a"===r?f:void 0,type:"input"===r?g:void 0,disabled:"input"===r?i:void 0,"aria-disabled":i&&"input"!==r?i:void 0,rel:"a"===r?m:void 0};let{pressProps:y,isPressed:v}=Sr({onPressStart:o,onPressEnd:s,onPressChange:u,onPress:a,onPressUp:l,isDisabled:i,preventFocusOnPress:c,ref:t}),{focusableProps:b}=_i(e,t);d&&(b.tabIndex=i?-1:b.tabIndex);let x=En(b,y,Cn(e,{labelable:!0}));return{isPressed:v,buttonProps:En(n,x,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],onClick:e=>{p&&p(e)}})}}(i,a);return e.jsxRuntimeExports.jsx(Vs,{...o,$disabled:n,$focus:Boolean(o["aria-expanded"]),$header:"calendar"===r||"calendar-clock"===r,disabled:n,ref:a,type:"button",children:e.jsxRuntimeExports.jsx(e.Icon,{icon:r,iconColor:e.theme.palette.gray[n?400:700],iconSize:"xs",iconType:"fa-light"})})},qs=({state:n,prevButtonProps:r,nextButtonProps:i,title:a})=>{const o=n.focusedDate,s=t.useCallback((()=>{n.setFocusedDate(o.add({years:1}))}),[o,n]),l=t.useCallback((()=>{n.setFocusedDate(o.subtract({years:1}))}),[o,n]);return e.jsxRuntimeExports.jsxs("div",{className:"header flex items-start",children:[e.jsxRuntimeExports.jsx(Ws,{icon:"chevron-left",props:r}),e.jsxRuntimeExports.jsxs(js,{children:[a,e.jsxRuntimeExports.jsxs(Cs,{children:[e.jsxRuntimeExports.jsx(Ms,{"aria-label":"top",onClick:s,children:e.jsxRuntimeExports.jsx(e.Icon,{icon:"caret-up",iconClass:"fa-sharp",iconSize:"xxss"})}),e.jsxRuntimeExports.jsx(Ms,{"aria-label":"bottom",onClick:l,children:e.jsxRuntimeExports.jsx(e.Icon,{icon:"caret-down",iconClass:"fa-sharp",iconSize:"xxss"})})]})]}),e.jsxRuntimeExports.jsx(Ws,{icon:"chevron-right",props:i})]})},Ks=({onClose:t,props:n})=>{const{locale:r}=Bi(),i=Yo({...n,createCalendar:Ht,locale:r}),{prevButtonProps:a,nextButtonProps:o,title:s}=Ra(n,i);return e.jsxRuntimeExports.jsxs("div",{className:"calendar",children:[e.jsxRuntimeExports.jsx(qs,{nextButtonProps:o,prevButtonProps:a,state:i,title:s}),e.jsxRuntimeExports.jsx(Os,{state:i}),e.jsxRuntimeExports.jsx(As,{children:e.jsxRuntimeExports.jsx(e.Button,{onClick:t,variant:"ghost",children:"Cancel"})})]})},Hs=({htmlFor:t,label:r,required:i,tooltip:a,weight:o="normal"})=>{const s=n.useTheme(),l=`${t}-tooltip`,u=void 0!==a&&!e.isEmpty(a);return e.jsxRuntimeExports.jsxs("label",{className:`flex font-${o} gap-1 w-full`,htmlFor:t,children:[r,i&&e.jsxRuntimeExports.jsx(e.Icon,{icon:"asterisk",iconColor:s.palette.error[500],iconSize:"xxss"}),u?e.jsxRuntimeExports.jsx(e.Tooltip,{display:"inline-flex",icon:"circle-info",id:l,place:"top",tip:a}):null]})},Zs=n.styled.div`
|
|
107
107
|
${({theme:e})=>`\n align-items: flex-start;\n display: inline-flex;\n flex-direction: column;\n gap: ${e.spacing[.25]};\n position: relative;\n width: 100%;\n\n label {\n color: ${e.palette.gray[800]};\n }\n\n &:has(input.date-input) {\n div {\n padding-right: 0;\n }\n }\n\n &:has(input[type="file"]) {\n div {\n border-right: unset;\n padding-right: 0;\n\n &:hover, &:focus-within {\n border-right: unset;\n }\n }\n }\n\n > *:not(.error-msg) {\n font-family: ${e.typography.type.primary};\n font-size: ${e.typography.text.sm};\n font-style: normal;\n font-weight: ${e.typography.weight.regular};\n line-height: ${e.spacing[1.25]};\n }\n `}
|
|
108
|
-
`,
|
|
108
|
+
`,Gs=n.styled.div`
|
|
109
109
|
${({theme:e})=>`\n align-items: center;\n display: flex;\n border-radius: ${e.spacing[.5]};\n border: 1px solid;\n border-color: ${e.palette.gray[300]};\n color: ${e.palette.gray[600]};\n gap: ${e.spacing[.625]};\n justify-content: space-between;\n height: 40px;\n padding: ${e.spacing[.625]} ${e.spacing[.75]};\n width: 100%;\n white-space: nowrap;\n\n input, textarea {\n background: inherit;\n cursor: inherit;\n outline: none;\n resize: none;\n width: 100%;\n\n &::placeholder {\n color: ${e.palette.gray[400]};\n }\n\n &:focus-visible {\n outline: none;\n }\n\n &[type="number"] {\n appearance: textfield;\n }\n\n &::-webkit-outer-spin-button,\n &::-webkit-inner-spin-button {\n appearance: none;\n margin: 0;\n }\n }\n\n input.date-input {\n display: none;\n width: 0;\n }\n\n &:has(textarea) {\n align-items: start;\n height: auto;\n }\n\n &:has(input[type="number"]) {\n padding-right: 0;\n }\n\n textarea {\n min-height: ${e.spacing[6]};\n }\n\n span:not(.action) {\n font-size: 14px;\n }\n\n &.disabled {\n background: ${e.palette.gray[100]};\n color: ${e.palette.gray[400]};\n cursor: not-allowed;\n }\n\n &.error:not(.disabled) {\n border: 1px solid ${e.palette.error[500]};\n }\n\n &:focus-within:not(.disabled, .error) {\n background: ${e.palette.white};\n border: 2px solid ${e.palette.black};\n\n button.action-btn {\n height: 36px;\n width: 40px;\n }\n }\n\n &:hover:not(:focus-within, .disabled, .error) {\n background: ${e.palette.white};\n border: 1px solid ${e.palette.gray[600]};\n }\n `}
|
|
110
|
-
`,{getVariant:
|
|
111
|
-
${({theme:e,$fontSize:t=e.typography.text.xs,$variant:n})=>`\n align-items: center;\n border-radius: ${e.spacing["technique"===n?1:.25]};\n display: inline-flex;\n gap: ${e.spacing[.25]};\n font-family: ${e.typography.type.primary};\n font-size: ${t};\n font-style: normal;\n font-weight: ${e.typography.weight.regular};\n justify-content: center;\n line-height: 18px;\n padding: var(--tag-padding-y) var(--tag-padding-x);\n white-space: nowrap;\n width: max-content;\n\n ~ a {\n font-size: ${e.typography.text.xs};\n display: flex;\n }\n\n ${
|
|
112
|
-
`,ls=({disabled:t,icon:n,iconColor:r="inherit",iconType:i="fa-light",id:a="close-tag",filterValues:o="",fontSize:s,href:l,linkLabel:u,onClose:c,priority:d="default",tagTitle:p="",tagLabel:h,variant:f="default"})=>{const m=h.length>25&&e.isEmpty(p+o),g=`${h.slice(0,25)}...`;return e.jsxRuntimeExports.jsxs(e.Span,{className:"gap-0.5",display:void 0===l?"initial":"flex",size:"sm",children:[e.jsxRuntimeExports.jsxs(ss,{$fontSize:s,$variant:f,className:d,children:[n&&e.jsxRuntimeExports.jsx(e.Icon,{icon:n,iconColor:r,iconSize:"xxs",iconType:i}),e.jsxRuntimeExports.jsxs("span",{children:[e.jsxRuntimeExports.jsx("strong",{children:p}),e.jsxRuntimeExports.jsx("span",{children:m?g:h}),e.jsxRuntimeExports.jsx("strong",{children:o})]}),c?e.jsxRuntimeExports.jsx(v,{disabled:t,icon:"xmark",iconSize:"xxs",iconType:"fa-light",id:a,onClick:c,px:.125,py:.125,variant:"ghost"}):void 0]}),void 0===l?void 0:e.jsxRuntimeExports.jsx(j,{href:l,children:u})]})},us=({children:t,error:r,helpLink:i,helpLinkText:a="Link here",helpText:o,htmlFor:s,label:l,maxLength:u,required:d,tooltip:p,value:h,weight:f})=>{const m=n.useTheme(),g=h?h.length:0;return e.jsxRuntimeExports.jsxs(is,{children:[void 0===l?void 0:e.jsxRuntimeExports.jsx(rs,{htmlFor:s,label:l,required:d,tooltip:p,weight:f}),t,r||u?e.jsxRuntimeExports.jsxs(c,{display:"flex",justify:void 0===r?"end":"space-between",width:"100%",children:[r&&e.jsxRuntimeExports.jsx(e.Text,{className:"error-msg",color:m.palette.error[500],display:"block",lineSpacing:1,size:"sm",children:r}),u&&e.jsxRuntimeExports.jsx(ls,{priority:"low",tagLabel:`${g}/${u}`,variant:"error"})]}):void 0,o||i?e.jsxRuntimeExports.jsxs(c,{alignItems:"center",display:"flex",gap:.25,width:"100%",children:[o&&e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[e.jsxRuntimeExports.jsx(e.Icon,{icon:"circle-info",iconColor:m.palette.gray[400],iconSize:"xxs",iconType:"fa-light"}),e.jsxRuntimeExports.jsx(e.Text,{color:m.palette.gray[400],display:"inline-block",size:"sm",children:o})]}),i&&e.jsxRuntimeExports.jsx(j,{href:i,children:a})]}):void 0]})};var cs,ds,ps=ds?cs:(ds=1,cs=function(e){return null==e});const hs=e.getDefaultExportFromCjs(ps),fs=({segment:r,state:i})=>{const a=n.useTheme(),o=t.useRef(null),s={...r,placeholder:{day:"dd",dayPeriod:"(AM/PM)",era:"",hour:"hh",literal:"",minute:"mm",month:"mm",second:"",timeZoneName:"",year:"yyyy"}[r.type]},{segmentProps:l}=Ua(s,i,o),u=a.palette.gray[s.isEditable?800:500];return e.jsxRuntimeExports.jsx("div",{..."literal"!==s.type&&{...l,className:"segment-cell"},ref:o,style:"literal"===s.type?void 0:{color:s.isPlaceholder?a.palette.gray[400]:u},children:s.isPlaceholder?s.placeholder:s.text})},ms=({disabled:r,error:i=!1,props:a})=>{const o=n.useTheme(),s=t.useRef(null),l=so({...a,createCalendar:Ht,locale:"en-US"}),{fieldProps:u}=ja(a,l,s),c=t.useCallback((e=>{const t=document.getElementsByClassName("segment-cell"),n=e.currentTarget;Object.values(t).some((e=>e.contains(n)))||(e.preventDefault(),e.stopPropagation())}),[]);return e.jsxRuntimeExports.jsxs(Yo,{...u,onClick:c,children:[e.jsxRuntimeExports.jsx("div",{className:"flex flex-row",style:{color:o.palette.gray[hs(l.value)?400:800]},tabIndex:-1,children:l.segments.map(((t,n)=>{const i=`key_${n}`;return e.jsxRuntimeExports.jsx(fs,{segment:{...t,isEditable:!r},state:l},i)}))}),i?e.jsxRuntimeExports.jsx(e.Icon,{icon:"exclamation-circle",iconColor:o.palette.error[500],iconSize:"xs"}):void 0]})},gs=n=>{const r=t.useRef(null),i=function(e){let{placeholderValue:n=new qe,minValue:r,maxValue:i,granularity:a,validate:o}=e;var s;let[l,u]=cr(e.value,null!==(s=e.defaultValue)&&void 0!==s?s:null,e.onChange),c=l||n,d=c&&"day"in c?c:void 0,p=e.defaultValue&&"timeZone"in e.defaultValue?e.defaultValue.timeZone:void 0,h=t.useMemo((()=>{let e=c&&"timeZone"in c?c.timeZone:void 0;return(e||p)&&n?me(co(n),e||p):co(n)}),[n,c,p]),f=t.useMemo((()=>co(r,d)),[r,d]),m=t.useMemo((()=>co(i,d)),[i,d]),g=t.useMemo((()=>l&&"day"in l?he(l):l),[l]),y=t.useMemo((()=>null==l?null:co(l)),[l]);return{...so({...e,value:y,defaultValue:void 0,minValue:f,maxValue:m,onChange:e=>{u(d||p?e:e&&he(e))},granularity:a||"minute",maxGranularity:"hour",placeholderValue:null!=h?h:void 0,createCalendar:()=>new I,validate:t.useCallback((()=>null==o?void 0:o(l)),[o,l])}),timeValue:g}}({...n,locale:"en-US",shouldForceLeadingZeros:!0}),{timeValue:a}=i,o=!hs(a)&&a.hour<12?"AM":"PM",[s,l]=t.useState(hs(a)?"AM":o),{fieldProps:u}=function(e,t,n){var r;let i=ja(e,t,n);return i.inputProps.value=(null===(r=t.timeValue)||void 0===r?void 0:r.toString())||"",i}(n,i,r),c=t.useCallback((e=>{const t=e.currentTarget.name;t!==s&&(hs(a)||("AM"===t?i.setSegment("dayPeriod",0):"PM"===t&&i.setSegment("dayPeriod",12))),l(t)}),[s,i,a]);return e.jsxRuntimeExports.jsxs(Jo,{children:[e.jsxRuntimeExports.jsx(Xo,{...u,ref:r,children:i.segments.slice(0,-2).map(((t,n)=>{const r=`key_${n}`;return e.jsxRuntimeExports.jsx(fs,{segment:t,state:i},r)}))}),e.jsxRuntimeExports.jsxs(Xo,{children:[e.jsxRuntimeExports.jsx(Qo,{id:"AM"===s?"active":"",name:"AM",onClick:c,type:"button",children:"AM"}),e.jsxRuntimeExports.jsx(Qo,{id:"PM"===s?"active":"",name:"PM",onClick:c,type:"button",children:"PM"})]})]})},ys=({error:t,buttonProps:n,datePickerRef:r,disabled:i=!1,granularity:a="day",fieldProps:o,groupProps:s,inputRef:l,name:u,...c})=>e.jsxRuntimeExports.jsxs(as,{...s,className:`${i?"disabled":""} ${t?"error":""}`,ref:r,children:[e.jsxRuntimeExports.jsx(ms,{disabled:i,error:null!=t,props:{...o,autoFocus:!1,granularity:a,shouldForceLeadingZeros:!0}}),e.jsxRuntimeExports.jsx(es,{disabled:i,icon:"minute"===a?"calendar-clock":"calendar",props:n}),e.jsxRuntimeExports.jsx("input",{...c,"aria-label":u,className:"date-input",disabled:i,name:u,ref:l,type:"text",value:""})]}),vs={top:"top",bottom:"top",left:"left",right:"left"},bs={top:"bottom",bottom:"top",left:"right",right:"left"},xs={top:"left",left:"top"},ws={top:"height",left:"width"},Es={width:"totalWidth",height:"totalHeight"},ks={};let Ss="undefined"!=typeof document?window.visualViewport:null;function Ds(e){let t=0,n=0,r=0,i=0,a=0,o=0,s={};var l;let u=(null!==(l=null==Ss?void 0:Ss.scale)&&void 0!==l?l:1)>1;if("BODY"===e.tagName){let l=document.documentElement;var c,d;r=l.clientWidth,i=l.clientHeight,t=null!==(c=null==Ss?void 0:Ss.width)&&void 0!==c?c:r,n=null!==(d=null==Ss?void 0:Ss.height)&&void 0!==d?d:i,s.top=l.scrollTop||e.scrollTop,s.left=l.scrollLeft||e.scrollLeft,Ss&&(a=Ss.offsetTop,o=Ss.offsetLeft)}else({width:t,height:n,top:a,left:o}=Ts(e)),s.top=e.scrollTop,s.left=e.scrollLeft,r=t,i=n;var p,h;return Ln()&&("BODY"===e.tagName||"HTML"===e.tagName)&&u&&(s.top=0,s.left=0,a=null!==(p=null==Ss?void 0:Ss.pageTop)&&void 0!==p?p:0,o=null!==(h=null==Ss?void 0:Ss.pageLeft)&&void 0!==h?h:0),{width:t,height:n,totalWidth:r,totalHeight:i,scroll:s,top:a,left:o}}function js(e,t,n,r,i,a,o){var s;let l=null!==(s=i.scroll[e])&&void 0!==s?s:0,u=r[ws[e]],c=r.scroll[vs[e]]+a,d=u+r.scroll[vs[e]]-a,p=t-l+o[e]-r[vs[e]],h=t-l+n+o[e]-r[vs[e]];return p<c?c-p:h>d?Math.max(d-h,c-p):0}function Cs(e){if(ks[e])return ks[e];let[t,n]=e.split(" "),r=vs[t]||"right",i=xs[r];vs[n]||(n="center");let a=ws[r],o=ws[i];return ks[e]={placement:t,crossPlacement:n,axis:r,crossAxis:i,size:a,crossSize:o},ks[e]}function Rs(e,t,n,r,i,a,o,s,l,u){let{placement:c,crossPlacement:d,axis:p,crossAxis:h,size:f,crossSize:m}=r,g={};var y,v,b,x,w;g[h]=null!==(y=e[h])&&void 0!==y?y:0,"center"===d?g[h]+=((null!==(v=e[m])&&void 0!==v?v:0)-(null!==(b=n[m])&&void 0!==b?b:0))/2:d!==h&&(g[h]+=(null!==(x=e[m])&&void 0!==x?x:0)-(null!==(w=n[m])&&void 0!==w?w:0)),g[h]+=a;const E=e[h]-n[m]+l+u,k=e[h]+e[m]-l-u;if(g[h]=dr(g[h],E,k),c===p){const n=s?o[f]:t[Es[f]];g[bs[p]]=Math.floor(n-e[p]+i)}else g[p]=Math.floor(e[p]+e[f]+i);return g}function Ps(e,t,n,r,i,a){let{placement:o,axis:s,size:l}=a;var u,c,d;return o===s?Math.max(0,n[s]-e[s]-(null!==(u=e.scroll[s])&&void 0!==u?u:0)+t[s]-(null!==(c=r[s])&&void 0!==c?c:0)-r[bs[s]]-i):Math.max(0,e[l]+e[s]+e.scroll[s]-t[s]-n[s]-n[l]-(null!==(d=r[s])&&void 0!==d?d:0)-r[bs[s]]-i)}function $s(e){let{placement:t,targetNode:n,overlayNode:r,scrollNode:i,padding:a,shouldFlip:o,boundaryElement:s,offset:l,crossOffset:u,maxHeight:c,arrowSize:d=0,arrowBoundaryOffset:p=0}=e,h=r instanceof HTMLElement?function(e){let t=e.offsetParent;if(t&&t===document.body&&"static"===window.getComputedStyle(t).position&&!Ms(t)&&(t=document.documentElement),null==t)for(t=e.parentElement;t&&!Ms(t);)t=t.parentElement;return t||document.documentElement}(r):document.documentElement,f=h===document.documentElement;const m=window.getComputedStyle(h).position;let g=!!m&&"static"!==m,y=f?Ts(n):_s(n,h);if(!f){let{marginTop:e,marginLeft:t}=window.getComputedStyle(n);y.top+=parseInt(e,10)||0,y.left+=parseInt(t,10)||0}let v=Ts(r),b=function(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}(r);var x,w,E,k;v.width+=(null!==(x=b.left)&&void 0!==x?x:0)+(null!==(w=b.right)&&void 0!==w?w:0),v.height+=(null!==(E=b.top)&&void 0!==E?E:0)+(null!==(k=b.bottom)&&void 0!==k?k:0);let S={top:(D=i).scrollTop,left:D.scrollLeft,width:D.scrollWidth,height:D.scrollHeight};var D;let j=Ds(s),C=Ds(h),R="BODY"===s.tagName?Ts(h):_s(h,s);return"HTML"===h.tagName&&"BODY"===s.tagName&&(C.scroll.top=0,C.scroll.left=0),function(e,t,n,r,i,a,o,s,l,u,c,d,p,h,f,m){let g=Cs(e),{size:y,crossAxis:v,crossSize:b,placement:x,crossPlacement:w}=g,E=Rs(t,s,n,g,c,d,u,p,f,m),k=c,S=Ps(s,u,t,i,a+c,g);if(o&&r[y]>S){let e=Cs(`${bs[x]} ${w}`),r=Rs(t,s,n,e,c,d,u,p,f,m);Ps(s,u,t,i,a+c,e)>S&&(g=e,E=r,k=c)}let D="bottom";"top"===g.axis?"top"===g.placement?D="top":"bottom"===g.placement&&(D="bottom"):"top"===g.crossAxis&&("top"===g.crossPlacement?D="bottom":"bottom"===g.crossPlacement&&(D="top"));let j=js(v,E[v],n[b],s,l,a,u);E[v]+=j;let C=function(e,t,n,r,i,a,o,s){const l=r?n.height:t[Es.height];var u;let c=null!=e.top?n.top+e.top:n.top+(l-(null!==(u=e.bottom)&&void 0!==u?u:0)-o);var d,p,h,f,m,g;let y="top"!==s?Math.max(0,t.height+t.top+(null!==(d=t.scroll.top)&&void 0!==d?d:0)-c-((null!==(p=i.top)&&void 0!==p?p:0)+(null!==(h=i.bottom)&&void 0!==h?h:0)+a)):Math.max(0,c+o-(t.top+(null!==(f=t.scroll.top)&&void 0!==f?f:0))-((null!==(m=i.top)&&void 0!==m?m:0)+(null!==(g=i.bottom)&&void 0!==g?g:0)+a));return Math.min(t.height-2*a,y)}(E,s,u,p,i,a,n.height,D);h&&h<C&&(C=h),n.height=Math.min(n.height,C),E=Rs(t,s,n,g,k,d,u,p,f,m),j=js(v,E[v],n[b],s,l,a,u),E[v]+=j;let R={},P=t[v]+.5*t[b]-E[v]-i[vs[v]];const $=f/2+m;var T,_,M,A;const I="left"===vs[v]?(null!==(T=i.left)&&void 0!==T?T:0)+(null!==(_=i.right)&&void 0!==_?_:0):(null!==(M=i.top)&&void 0!==M?M:0)+(null!==(A=i.bottom)&&void 0!==A?A:0),O=n[b]-I-f/2-m,F=dr(P,t[v]+f/2-(E[v]+i[vs[v]]),t[v]+t[b]-f/2-(E[v]+i[vs[v]]));return R[v]=dr(F,$,O),{position:E,maxHeight:C,arrowOffsetLeft:R.left,arrowOffsetTop:R.top,placement:g.placement}}(t,y,v,S,b,a,o,j,C,R,l,u,g,c,d,p)}function Ts(e){let{top:t,left:n,width:r,height:i}=e.getBoundingClientRect(),{scrollTop:a,scrollLeft:o,clientTop:s,clientLeft:l}=document.documentElement;return{top:t+a-s,left:n+o-l,width:r,height:i}}function _s(e,t){let n,r=window.getComputedStyle(e);if("fixed"===r.position){let{top:t,left:r,width:i,height:a}=e.getBoundingClientRect();n={top:t,left:r,width:i,height:a}}else{n=Ts(e);let r=Ts(t),i=window.getComputedStyle(t);r.top+=(parseInt(i.borderTopWidth,10)||0)-t.scrollTop,r.left+=(parseInt(i.borderLeftWidth,10)||0)-t.scrollLeft,n.top-=r.top,n.left-=r.left}return n.top-=parseInt(r.marginTop,10)||0,n.left-=parseInt(r.marginLeft,10)||0,n}function Ms(e){let t=window.getComputedStyle(e);return"none"!==t.transform||/transform|perspective/.test(t.willChange)||"none"!==t.filter||"paint"===t.contain||"backdropFilter"in t&&"none"!==t.backdropFilter||"WebkitBackdropFilter"in t&&"none"!==t.WebkitBackdropFilter}const As=new WeakMap;let Is="undefined"!=typeof document?window.visualViewport:null;function Os(e,t){return"rtl"===t?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}const Fs=[];const Ls="undefined"!=typeof document&&window.visualViewport,Vs=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let Ns,zs=0;function Bs(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function Us(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function Ws(e){let t=document.scrollingElement||document.documentElement,n=e;for(;n&&n!==t;){let e=Qn(n);if(e!==document.documentElement&&e!==document.body&&e!==n){let t=e.getBoundingClientRect().top,r=n.getBoundingClientRect().top;r>t+n.clientHeight&&(e.scrollTop+=r-t)}n=e.parentElement}}function qs(e){return e instanceof HTMLInputElement&&!Vs.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}const Ks={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function Hs(e){let{children:n,elementType:r="div",isFocusable:i,style:a,...o}=e,{visuallyHiddenProps:s}=function(e={}){let{style:n,isFocusable:r}=e,[i,a]=t.useState(!1),{focusWithinProps:o}=ti({isDisabled:!r,onFocusWithinChange:e=>a(e)});return{visuallyHiddenProps:{...o,style:t.useMemo((()=>i?n:n?{...Ks,...n}:Ks),[i])}}}(e);return t.createElement(r,kn(o,s),n)}let Zs=new WeakMap,Gs=[];function Ys(e,n){let{triggerRef:r,popoverRef:i,isNonModal:a,isKeyboardDismissDisabled:o,shouldCloseOnInteractOutside:s,...l}=e,{overlayProps:u,underlayProps:c}=function(e,n){let{onClose:r,shouldCloseOnBlur:i,isOpen:a,isDismissable:o=!1,isKeyboardDismissDisabled:s=!1,shouldCloseOnInteractOutside:l}=e;t.useEffect((()=>(a&&Fs.push(n),()=>{let e=Fs.indexOf(n);e>=0&&Fs.splice(e,1)})),[a,n]);let u=()=>{Fs[Fs.length-1]===n&&r&&r()};!function(e){let{ref:n,onInteractOutside:r,isDisabled:i,onInteractOutsideStart:a}=e,o=t.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),s=nn((e=>{r&&ni(e,n)&&(a&&a(e),o.current.isPointerDown=!0)})),l=nn((e=>{r&&r(e)}));t.useEffect((()=>{let e=o.current;if(i)return;const t=n.current,r=bn(t);if("undefined"!=typeof PointerEvent){let t=t=>{e.isPointerDown&&ni(t,n)&&l(t),e.isPointerDown=!1};return r.addEventListener("pointerdown",s,!0),r.addEventListener("pointerup",t,!0),()=>{r.removeEventListener("pointerdown",s,!0),r.removeEventListener("pointerup",t,!0)}}{let t=t=>{e.ignoreEmulatedMouseEvents?e.ignoreEmulatedMouseEvents=!1:e.isPointerDown&&ni(t,n)&&l(t),e.isPointerDown=!1},i=t=>{e.ignoreEmulatedMouseEvents=!0,e.isPointerDown&&ni(t,n)&&l(t),e.isPointerDown=!1};return r.addEventListener("mousedown",s,!0),r.addEventListener("mouseup",t,!0),r.addEventListener("touchstart",s,!0),r.addEventListener("touchend",i,!0),()=>{r.removeEventListener("mousedown",s,!0),r.removeEventListener("mouseup",t,!0),r.removeEventListener("touchstart",s,!0),r.removeEventListener("touchend",i,!0)}}}),[n,i,s,l])}({ref:n,onInteractOutside:o&&a?e=>{l&&!l(e.target)||(Fs[Fs.length-1]===n&&(e.stopPropagation(),e.preventDefault()),u())}:void 0,onInteractOutsideStart:e=>{l&&!l(e.target)||Fs[Fs.length-1]===n&&(e.stopPropagation(),e.preventDefault())}});let{focusWithinProps:c}=ti({isDisabled:!i,onBlurWithin:e=>{e.relatedTarget&&!bi(e.relatedTarget,ci)&&(l&&!l(e.relatedTarget)||null==r||r())}});return{overlayProps:{onKeyDown:e=>{"Escape"!==e.key||s||e.nativeEvent.isComposing||(e.stopPropagation(),e.preventDefault(),u())},...c},underlayProps:{onPointerDown:e=>{e.target===e.currentTarget&&e.preventDefault()}}}}({isOpen:n.isOpen&&!l["data-react-aria-top-layer"],onClose:n.close,shouldCloseOnBlur:!0,isDismissable:!a,isKeyboardDismissDisabled:o,shouldCloseOnInteractOutside:s},i),{overlayProps:d,arrowProps:p,placement:h}=function(e){let{direction:n}=Ui(),{arrowSize:r=0,targetRef:i,overlayRef:a,scrollRef:o=a,placement:s="bottom",containerPadding:l=12,shouldFlip:u=!0,boundaryElement:c=("undefined"!=typeof document?document.body:null),offset:d=0,crossOffset:p=0,shouldUpdatePosition:h=!0,isOpen:f=!0,onClose:m,maxHeight:g,arrowBoundaryOffset:y=0}=e,[v,b]=t.useState(null),x=[h,s,a.current,i.current,o.current,l,u,c,d,p,f,n,g,y,r],w=t.useRef(null==Is?void 0:Is.scale);t.useEffect((()=>{f&&(w.current=null==Is?void 0:Is.scale)}),[f]);let E=t.useCallback((()=>{if(!(!1!==h&&f&&a.current&&i.current&&c))return;if((null==Is?void 0:Is.scale)!==w.current)return;let e=null;if(o.current&&o.current.contains(document.activeElement)){var t;let n=null===(t=document.activeElement)||void 0===t?void 0:t.getBoundingClientRect(),r=o.current.getBoundingClientRect();var m,v;e={type:"top",offset:(null!==(m=null==n?void 0:n.top)&&void 0!==m?m:0)-r.top},e.offset>r.height/2&&(e.type="bottom",e.offset=(null!==(v=null==n?void 0:n.bottom)&&void 0!==v?v:0)-r.bottom)}let x=a.current;var E,k;!g&&a.current&&(x.style.top="0px",x.style.bottom="",x.style.maxHeight=(null!==(k=null===(E=window.visualViewport)||void 0===E?void 0:E.height)&&void 0!==k?k:window.innerHeight)+"px");let S=$s({placement:Os(s,n),overlayNode:a.current,targetNode:i.current,scrollNode:o.current||a.current,padding:l,shouldFlip:u,boundaryElement:c,offset:d,crossOffset:p,maxHeight:g,arrowSize:r,arrowBoundaryOffset:y});if(S.position){if(x.style.top="",x.style.bottom="",x.style.left="",x.style.right="",Object.keys(S.position).forEach((e=>x.style[e]=S.position[e]+"px")),x.style.maxHeight=null!=S.maxHeight?S.maxHeight+"px":"",e&&document.activeElement&&o.current){let t=document.activeElement.getBoundingClientRect(),n=o.current.getBoundingClientRect(),r=t[e.type]-n[e.type];o.current.scrollTop+=r-e.offset}b(S)}}),x);var k;tn(E,x),tn((()=>(window.addEventListener("resize",k,!1),()=>{window.removeEventListener("resize",k,!1)})),[k=E]),Yn({ref:a,onResize:E}),Yn({ref:i,onResize:E});let S=t.useRef(!1);tn((()=>{let e,t=()=>{S.current=!0,clearTimeout(e),e=setTimeout((()=>{S.current=!1}),500),E()},n=()=>{S.current&&t()};return null==Is||Is.addEventListener("resize",t),null==Is||Is.addEventListener("scroll",n),()=>{null==Is||Is.removeEventListener("resize",t),null==Is||Is.removeEventListener("scroll",n)}}),[E]);let D=t.useCallback((()=>{S.current||null==m||m()}),[m,S]);var j,C;return function(e){let{triggerRef:n,isOpen:r,onClose:i}=e;t.useEffect((()=>{if(!r||null===i)return;let e=e=>{let t=e.target;if(!n.current||t instanceof Node&&!t.contains(n.current))return;if(e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement)return;let r=i||As.get(n.current);r&&r()};return window.addEventListener("scroll",e,!0),()=>{window.removeEventListener("scroll",e,!0)}}),[r,i,n])}({triggerRef:i,isOpen:f,onClose:m&&D}),{overlayProps:{style:{position:"absolute",zIndex:1e5,...null==v?void 0:v.position,maxHeight:null!==(j=null==v?void 0:v.maxHeight)&&void 0!==j?j:"100vh"}},placement:null!==(C=null==v?void 0:v.placement)&&void 0!==C?C:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:null==v?void 0:v.arrowOffsetLeft,top:null==v?void 0:v.arrowOffsetTop}},updatePosition:E}}({...l,targetRef:r,overlayRef:i,isOpen:n.isOpen,onClose:a?n.close:void 0});return function(e={}){let{isDisabled:t}=e;tn((()=>{if(!t)return zs++,1===zs&&(Ns=Fn()?function(){let e,t,n=null,r=()=>{if(n)return;let e=window.pageXOffset,t=window.pageYOffset;n=vn(Us(window,"scroll",(()=>{window.scrollTo(0,0)})),Bs(document.documentElement,"paddingRight",window.innerWidth-document.documentElement.clientWidth+"px"),Bs(document.documentElement,"overflow","hidden"),Bs(document.body,"marginTop",`-${t}px`),(()=>{window.scrollTo(e,t)})),window.scrollTo(0,0)},i=vn(Us(document,"touchstart",(n=>{e=Qn(n.target,!0),e===document.documentElement&&e===document.body||e instanceof HTMLElement&&"auto"===window.getComputedStyle(e).overscrollBehavior&&(t=Bs(e,"overscrollBehavior","contain"))}),{passive:!1,capture:!0}),Us(document,"touchmove",(t=>{e&&e!==document.documentElement&&e!==document.body?e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&t.preventDefault():t.preventDefault()}),{passive:!1,capture:!0}),Us(document,"touchend",(e=>{let n=e.target;qs(n)&&n!==document.activeElement&&(e.preventDefault(),r(),n.style.transform="translateY(-2000px)",n.focus(),requestAnimationFrame((()=>{n.style.transform=""}))),t&&t()}),{passive:!1,capture:!0}),Us(document,"focus",(e=>{let t=e.target;qs(t)&&(r(),t.style.transform="translateY(-2000px)",requestAnimationFrame((()=>{t.style.transform="",Ls&&(Ls.height<window.innerHeight?requestAnimationFrame((()=>{Ws(t)})):Ls.addEventListener("resize",(()=>Ws(t)),{once:!0}))})))}),!0));return()=>{null==t||t(),null==n||n(),i()}}():vn(Bs(document.documentElement,"paddingRight",window.innerWidth-document.documentElement.clientWidth+"px"),Bs(document.documentElement,"overflow","hidden"))),()=>{zs--,0===zs&&Ns()}}),[t])}({isDisabled:a||!n.isOpen}),tn((()=>{if(n.isOpen&&!a&&i.current)return function(e,t=document.body){let n=new Set(e),r=new Set,i=e=>{for(let r of e.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))n.add(r);let t=e=>{if(n.has(e)||e.parentElement&&r.has(e.parentElement)&&"row"!==e.parentElement.getAttribute("role"))return NodeFilter.FILTER_REJECT;for(let t of n)if(e.contains(t))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},i=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:t}),o=t(e);if(o===NodeFilter.FILTER_ACCEPT&&a(e),o!==NodeFilter.FILTER_REJECT){let e=i.nextNode();for(;null!=e;)a(e),e=i.nextNode()}},a=e=>{var t;let n=null!==(t=Zs.get(e))&&void 0!==t?t:0;"true"===e.getAttribute("aria-hidden")&&0===n||(0===n&&e.setAttribute("aria-hidden","true"),r.add(e),Zs.set(e,n+1))};Gs.length&&Gs[Gs.length-1].disconnect(),i(t);let o=new MutationObserver((e=>{for(let t of e)if("childList"===t.type&&0!==t.addedNodes.length&&![...n,...r].some((e=>e.contains(t.target)))){for(let e of t.removedNodes)e instanceof Element&&(n.delete(e),r.delete(e));for(let e of t.addedNodes)!(e instanceof HTMLElement||e instanceof SVGElement)||"true"!==e.dataset.liveAnnouncer&&"true"!==e.dataset.reactAriaTopLayer?e instanceof Element&&i(e):n.add(e)}}));o.observe(t,{childList:!0,subtree:!0});let s={observe(){o.observe(t,{childList:!0,subtree:!0})},disconnect(){o.disconnect()}};return Gs.push(s),()=>{o.disconnect();for(let e of r){let t=Zs.get(e);null!=t&&(1===t?(e.removeAttribute("aria-hidden"),Zs.delete(e)):Zs.set(e,t-1))}s===Gs[Gs.length-1]?(Gs.pop(),Gs.length&&Gs[Gs.length-1].observe()):Gs.splice(Gs.indexOf(s),1)}}([i.current])}),[a,n.isOpen,i]),{popoverProps:kn(u,d),arrowProps:p,underlayProps:c,placement:h}}const Js=t.createContext({}),Xs=t.createContext(null);function Qs(e){let n=pn(),{portalContainer:r=(n?null:document.body),isExiting:i}=e,[o,s]=t.useState(!1),l=t.useMemo((()=>({contain:o,setContain:s})),[o,s]),{getContainer:u}=null!==(c=t.useContext(Js))&&void 0!==c?c:{};var c;if(!e.portalContainer&&u&&(r=u()),!r)return null;let d=e.children;return e.disableFocusManagement||(d=t.createElement(di,{restoreFocus:!0,contain:o&&!i},d)),d=t.createElement(Xs.Provider,{value:l},t.createElement(Fr,null,d)),a.createPortal(d,r)}const el=({children:n,...r})=>{const i=t.useRef(null),{dialogProps:a}=function(e,n){let{role:r="dialog"}=e,i=yn();i=e["aria-label"]?void 0:i;let a=t.useRef(!1);return t.useEffect((()=>{if(n.current&&!n.current.contains(document.activeElement)){oi(n.current);let e=setTimeout((()=>{document.activeElement===n.current&&(a.current=!0,n.current&&(n.current.blur(),oi(n.current)),a.current=!1)}),500);return()=>{clearTimeout(e)}}}),[n]),function(){let e=t.useContext(Xs),n=null==e?void 0:e.setContain;tn((()=>{null==n||n(!0)}),[n])}(),{dialogProps:{...Rn(e,{labelable:!0}),role:r,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||i,onBlur:e=>{a.current&&e.stopPropagation()}},titleProps:{id:i}}}(r,i);return e.jsxRuntimeExports.jsx(Zo,{...a,ref:i,children:n})},tl=({children:n,isFilter:r=!1,state:i,...a})=>{const o=t.useRef(null),{popoverProps:s}=Ys({...a,popoverRef:o},i),l=t.useCallback((e=>{e.preventDefault()}),[]);return e.jsxRuntimeExports.jsx(Qs,{children:e.jsxRuntimeExports.jsx("div",{onPointerDown:r?l:void 0,ref:o,style:s.style,children:n})})},nl=t.forwardRef((function({disabled:n=!1,error:i,required:a,label:o,name:s,tooltip:l,value:u,...c},d){const p=t.useRef(null),h=no(c),{close:f}=h,{groupProps:m,fieldProps:g,buttonProps:y,dialogProps:v,calendarProps:b}=Fa({...c,"aria-label":o??s},h,p);return e.jsxRuntimeExports.jsxs(us,{error:i,htmlFor:s,label:o,required:a,tooltip:l,children:[e.jsxRuntimeExports.jsx(ys,{buttonProps:y,datePickerRef:p,disabled:n,error:i,fieldProps:r.isNil(u)||r.isEmpty(u)||"-"===u?g:{...g,value:Ie(u.replace(/\//gu,"-"))},groupProps:m,inputRef:d,isOpen:h.isOpen,name:s}),h.isOpen&&!n?e.jsxRuntimeExports.jsx(tl,{offset:8,placement:"bottom start",state:h,triggerRef:p,children:e.jsxRuntimeExports.jsx(el,{...v,children:e.jsxRuntimeExports.jsx(ns,{onClose:f,props:{...b}})})}):null]})})),rl=({onClose:n,props:r})=>{const{locale:i}=Ui(),a=t.useRef(null),o=function(e){let{value:n,defaultValue:r,onChange:i,createCalendar:a,locale:o,visibleDuration:s={months:1},minValue:l,maxValue:u,...c}=e,[d,p]=cr(n,r||null,i),[h,f]=t.useState(null),m="center";if(d&&d.start&&d.end){let e=wo(de(d.start),s,o,l,u).add(s).subtract({days:1});d.end.compare(e)>0&&(m="start")}let g=t.useRef(null),[y,v]=t.useState(null),b=t.useMemo((()=>te(l,null==y?void 0:y.start)),[l,y]),x=t.useMemo((()=>ee(u,null==y?void 0:y.end)),[u,y]),w=Co({...c,value:d&&d.start,createCalendar:a,locale:o,visibleDuration:s,minValue:b,maxValue:x,selectionAlignment:m}),E=t=>{if(t&&e.isDateUnavailable&&!e.allowsNonContiguousRanges){const e=To(t,w,-1),n=To(t,w,1);g.current={start:e,end:n},v(g.current)}else g.current=null,v(null)},[k,S]=t.useState(w.visibleRange);L(w.visibleRange.start,k.start)&&L(w.visibleRange.end,k.end)||(E(h),S(w.visibleRange));let D=e=>{e?(f(e),E(e)):(f(null),E(null))},j=h?Po(h,w.focusedDate):d&&Po(d.start,d.end),C=t=>{if(e.isReadOnly)return;const n=jo(Do(t,b,x),w.visibleRange.start,e.isDateUnavailable);if(n)if(h){let e=Po(h,n);e&&p({start:$o(e.start,null==d?void 0:d.start),end:$o(e.end,null==d?void 0:d.end)}),D(null)}else D(n)},[R,P]=t.useState(!1),{isDateUnavailable:$}=e,T=t.useMemo((()=>!(!d||h)&&(!(!$||!$(d.start)&&!$(d.end))||xo(d.start,l,u)||xo(d.end,l,u))),[$,d,h,l,u]),_=e.isInvalid||"invalid"===e.validationState||T,M=_?"invalid":null;return{...w,value:d,setValue:p,anchorDate:h,setAnchorDate:D,highlightedRange:j,validationState:M,isValueInvalid:_,selectFocusedDate(){C(w.focusedDate)},selectDate:C,highlightDate(e){h&&w.setFocusedDate(e)},isSelected:e=>Boolean(j&&e.compare(j.start)>=0&&e.compare(j.end)<=0&&!w.isCellDisabled(e)&&!w.isCellUnavailable(e)),isInvalid(e){var t,n;return w.isInvalid(e)||xo(e,null===(t=g.current)||void 0===t?void 0:t.start,null===(n=g.current)||void 0===n?void 0:n.end)},isDragging:R,setDragging:P}}({...r,createCalendar:Ht,locale:i}),{prevButtonProps:s,nextButtonProps:l,title:u}=function(e,n,r){let i=vo(e,n),a=t.useRef(!1),o=t.useRef("undefined"!=typeof window?window:null);return rr(o,"pointerdown",(e=>{a.current=0===e.width&&0===e.height})),rr(o,"pointerup",(e=>{if(a.current)return void(a.current=!1);if(n.setDragging(!1),!n.anchorDate)return;let t=e.target;!r.current||!r.current.contains(document.activeElement)||r.current.contains(t)&&t.closest('button, [role="button"]')||n.selectFocusedDate()})),i.calendarProps.onBlur=e=>{r.current&&(e.relatedTarget&&r.current.contains(e.relatedTarget)||!n.anchorDate||n.selectFocusedDate())},rr(r,"touchmove",(e=>{n.isDragging&&e.preventDefault()}),{passive:!1,capture:!0}),i}(r,o,a);return e.jsxRuntimeExports.jsxs("div",{className:"calendar-range",ref:a,children:[e.jsxRuntimeExports.jsx(ts,{nextButtonProps:l,prevButtonProps:s,state:o,title:u}),e.jsxRuntimeExports.jsx(Ko,{state:o}),e.jsxRuntimeExports.jsx(Wo,{children:e.jsxRuntimeExports.jsx(e.Button,{onClick:n,variant:"ghost",children:"Cancel"})})]})},il=n.styled.div`
|
|
110
|
+
`,{getVariant:Ys}=e.variantBuilder((e=>({default:`\n background-color: ${e.palette.gray[200]};\n color: ${e.palette.gray[800]};\n `,error:`\n &.high {\n background-color: ${e.palette.error[700]};\n color: ${e.palette.white};\n }\n &.low {\n background-color: ${e.palette.error[50]};\n color: ${e.palette.error[700]};\n }\n &.medium {\n background-color: ${e.palette.error[500]};\n color: ${e.palette.error[50]};\n }\n `,inactive:`\n background-color: ${e.palette.gray[200]};\n color: ${e.palette.gray[600]};\n `,info:`\n &.high {\n background-color: ${e.palette.info[700]};\n color: ${e.palette.white};\n }\n &.low {\n background-color: ${e.palette.info[50]};\n color: ${e.palette.info[700]};\n }\n &.medium {\n background-color: ${e.palette.info[500]};\n color: ${e.palette.info[50]};\n }\n `,reachable:`\n background-color: ${e.palette.gray[50]};\n color: ${e.palette.gray[800]};\n `,remediation:`\n background-color: inherit;\n border: 1px solid ${e.palette.gray[300]};\n color: ${e.palette.gray[400]};\n `,role:`\n background-color: ${e.palette.gray[800]};\n color: ${e.palette.white};\n `,success:`\n &.high {\n background-color: ${e.palette.success[700]};\n color: ${e.palette.white};\n }\n &.low {\n background-color: ${e.palette.success[50]};\n color: ${e.palette.success[700]};\n }\n &.medium {\n background-color: ${e.palette.success[500]};\n color: ${e.palette.success[50]};\n }\n `,technique:`\n --tag-padding-y: ${e.spacing[.25]};\n --tag-padding-x: ${e.spacing[.75]};\n\n background-color: inherit;\n border: 1px solid ${e.palette.success[800]};\n color: ${e.palette.success[800]};\n `,warning:`\n &.high {\n background-color: ${e.palette.warning[600]};\n color: ${e.palette.white};\n }\n &.low {\n background-color: ${e.palette.warning[50]};\n color: ${e.palette.warning[700]};\n }\n &.medium {\n background-color: ${e.palette.warning[400]};\n color: ${e.palette.warning[700]};\n }\n `}))),Js=n.styled.span`
|
|
111
|
+
${({theme:e,$fontSize:t=e.typography.text.xs,$variant:n})=>`\n align-items: center;\n border-radius: ${e.spacing["technique"===n?1:.25]};\n display: inline-flex;\n gap: ${e.spacing[.25]};\n font-family: ${e.typography.type.primary};\n font-size: ${t};\n font-style: normal;\n font-weight: ${e.typography.weight.regular};\n justify-content: center;\n line-height: 18px;\n padding: var(--tag-padding-y) var(--tag-padding-x);\n white-space: nowrap;\n width: max-content;\n\n ~ a {\n font-size: ${e.typography.text.xs};\n display: flex;\n }\n\n ${Ys(e,n)}\n `}
|
|
112
|
+
`,Xs=({disabled:t,icon:n,iconColor:r="inherit",iconType:i="fa-light",id:a="close-tag",filterValues:o="",fontSize:s,href:l,linkLabel:u,onClose:c,priority:d="default",tagTitle:p="",tagLabel:h,variant:f="default"})=>{const m=h.length>25&&e.isEmpty(p+o),g=`${h.slice(0,25)}...`;return e.jsxRuntimeExports.jsxs(e.Span,{className:"gap-0.5",display:void 0===l?"initial":"flex",size:"sm",children:[e.jsxRuntimeExports.jsxs(Js,{$fontSize:s,$variant:f,className:d,children:[n&&e.jsxRuntimeExports.jsx(e.Icon,{icon:n,iconColor:r,iconSize:"xxs",iconType:i}),e.jsxRuntimeExports.jsxs("span",{children:[e.jsxRuntimeExports.jsx("strong",{children:p}),e.jsxRuntimeExports.jsx("span",{children:m?g:h}),e.jsxRuntimeExports.jsx("strong",{children:o})]}),c?e.jsxRuntimeExports.jsx(v,{disabled:t,icon:"xmark",iconSize:"xxs",iconType:"fa-light",id:a,onClick:c,px:.125,py:.125,variant:"ghost"}):void 0]}),void 0===l?void 0:e.jsxRuntimeExports.jsx(j,{href:l,children:u})]})},Qs=({children:t,error:r,helpLink:i,helpLinkText:a="Link here",helpText:o,htmlFor:s,label:l,maxLength:u,required:d,tooltip:p,value:h,weight:f})=>{const m=n.useTheme(),g=h?h.length:0;return e.jsxRuntimeExports.jsxs(Zs,{children:[void 0===l?void 0:e.jsxRuntimeExports.jsx(Hs,{htmlFor:s,label:l,required:d,tooltip:p,weight:f}),t,r||u?e.jsxRuntimeExports.jsxs(c,{display:"flex",justify:void 0===r?"end":"space-between",width:"100%",children:[r&&e.jsxRuntimeExports.jsx(e.Text,{className:"error-msg",color:m.palette.error[500],display:"block",lineSpacing:1,size:"sm",children:r}),u&&e.jsxRuntimeExports.jsx(Xs,{priority:"low",tagLabel:`${g}/${u}`,variant:"error"})]}):void 0,o||i?e.jsxRuntimeExports.jsxs(c,{alignItems:"center",display:"flex",gap:.25,width:"100%",children:[o&&e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[e.jsxRuntimeExports.jsx(e.Icon,{icon:"circle-info",iconColor:m.palette.gray[400],iconSize:"xxs",iconType:"fa-light"}),e.jsxRuntimeExports.jsx(e.Text,{color:m.palette.gray[400],display:"inline-block",size:"sm",children:o})]}),i&&e.jsxRuntimeExports.jsx(j,{href:i,children:a})]}):void 0]})};var el,tl,nl=tl?el:(tl=1,el=function(e){return null==e});const rl=e.getDefaultExportFromCjs(nl),il=({segment:r,state:i})=>{const a=n.useTheme(),o=t.useRef(null),s={...r,placeholder:{day:"dd",dayPeriod:"(AM/PM)",era:"",hour:"hh",literal:"",minute:"mm",month:"mm",second:"",timeZoneName:"",year:"yyyy"}[r.type]},{segmentProps:l}=Bo(s,i,o),u=a.palette.gray[s.isEditable?800:500];return e.jsxRuntimeExports.jsx("div",{..."literal"!==s.type&&{...l,className:"segment-cell"},ref:o,style:"literal"===s.type?void 0:{color:s.isPlaceholder?a.palette.gray[400]:u},children:s.isPlaceholder?s.placeholder:s.text})},al=({disabled:r,error:i=!1,props:a})=>{const o=n.useTheme(),s=t.useRef(null),l=vs({...a,createCalendar:Ht,locale:"en-US"}),{fieldProps:u}=Vo(a,l,s),c=t.useCallback((e=>{const t=document.getElementsByClassName("segment-cell"),n=e.currentTarget;Object.values(t).some((e=>e.contains(n)))||(e.preventDefault(),e.stopPropagation())}),[]);return e.jsxRuntimeExports.jsxs(Ns,{...u,onClick:c,children:[e.jsxRuntimeExports.jsx("div",{className:"flex flex-row",style:{color:o.palette.gray[rl(l.value)?400:800]},tabIndex:-1,children:l.segments.map(((t,n)=>{const i=`key_${n}`;return e.jsxRuntimeExports.jsx(il,{segment:{...t,isEditable:!r},state:l},i)}))}),i?e.jsxRuntimeExports.jsx(e.Icon,{icon:"exclamation-circle",iconColor:o.palette.error[500],iconSize:"xs"}):void 0]})},ol=n=>{const r=t.useRef(null),i=function(e){let{placeholderValue:n=new qe,minValue:r,maxValue:i,granularity:a,validate:o}=e;var s;let[l,u]=ur(e.value,null!==(s=e.defaultValue)&&void 0!==s?s:null,e.onChange),c=l||n,d=c&&"day"in c?c:void 0,p=e.defaultValue&&"timeZone"in e.defaultValue?e.defaultValue.timeZone:void 0,h=t.useMemo((()=>{let e=c&&"timeZone"in c?c.timeZone:void 0;return(e||p)&&n?me(ws(n),e||p):ws(n)}),[n,c,p]),f=t.useMemo((()=>ws(r,d)),[r,d]),m=t.useMemo((()=>ws(i,d)),[i,d]),g=t.useMemo((()=>l&&"day"in l?he(l):l),[l]),y=t.useMemo((()=>null==l?null:ws(l)),[l]);return{...vs({...e,value:y,defaultValue:void 0,minValue:f,maxValue:m,onChange:e=>{u(d||p?e:e&&he(e))},granularity:a||"minute",maxGranularity:"hour",placeholderValue:null!=h?h:void 0,createCalendar:()=>new I,validate:t.useCallback((()=>null==o?void 0:o(l)),[o,l])}),timeValue:g}}({...n,locale:"en-US",shouldForceLeadingZeros:!0}),{timeValue:a}=i,o=!rl(a)&&a.hour<12?"AM":"PM",[s,l]=t.useState(rl(a)?"AM":o),{fieldProps:u}=function(e,t,n){var r;let i=Vo(e,t,n);return i.inputProps.value=(null===(r=t.timeValue)||void 0===r?void 0:r.toString())||"",i}(n,i,r),c=t.useCallback((e=>{const t=e.currentTarget.name;t!==s&&(rl(a)||("AM"===t?i.setSegment("dayPeriod",0):"PM"===t&&i.setSegment("dayPeriod",12))),l(t)}),[s,i,a]);return e.jsxRuntimeExports.jsxs(zs,{children:[e.jsxRuntimeExports.jsx(Bs,{...u,ref:r,children:i.segments.slice(0,-2).map(((t,n)=>{const r=`key_${n}`;return e.jsxRuntimeExports.jsx(il,{segment:t,state:i},r)}))}),e.jsxRuntimeExports.jsxs(Bs,{children:[e.jsxRuntimeExports.jsx(Us,{id:"AM"===s?"active":"",name:"AM",onClick:c,type:"button",children:"AM"}),e.jsxRuntimeExports.jsx(Us,{id:"PM"===s?"active":"",name:"PM",onClick:c,type:"button",children:"PM"})]})]})},sl=({error:t,buttonProps:n,datePickerRef:r,disabled:i=!1,granularity:a="day",fieldProps:o,groupProps:s,inputRef:l,name:u,...c})=>e.jsxRuntimeExports.jsxs(Gs,{...s,className:`${i?"disabled":""} ${t?"error":""}`,ref:r,children:[e.jsxRuntimeExports.jsx(al,{disabled:i,error:null!=t,props:{...o,autoFocus:!1,granularity:a,shouldForceLeadingZeros:!0}}),e.jsxRuntimeExports.jsx(Ws,{disabled:i,icon:"minute"===a?"calendar-clock":"calendar",props:n}),e.jsxRuntimeExports.jsx("input",{...c,"aria-label":u,className:"date-input",disabled:i,name:u,ref:l,type:"text",value:""})]}),ll=({children:n,...r})=>{const i=t.useRef(null),{dialogProps:a}=function(e,n){let{role:r="dialog"}=e,i=gn();i=e["aria-label"]?void 0:i;let a=t.useRef(!1);return t.useEffect((()=>{if(n.current&&!n.current.contains(document.activeElement)){ai(n.current);let e=setTimeout((()=>{document.activeElement===n.current&&(a.current=!0,n.current&&(n.current.blur(),ai(n.current)),a.current=!1)}),500);return()=>{clearTimeout(e)}}}),[n]),function(){let e=t.useContext(_o),n=null==e?void 0:e.setContain;en((()=>{null==n||n(!0)}),[n])}(),{dialogProps:{...Cn(e,{labelable:!0}),role:r,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||i,onBlur:e=>{a.current&&e.stopPropagation()}},titleProps:{id:i}}}(r,i);return e.jsxRuntimeExports.jsx(Ls,{...a,ref:i,children:n})},ul=({children:n,isFilter:r=!1,state:i,...a})=>{const o=t.useRef(null),{popoverProps:s}=$o({...a,popoverRef:o},i),l=t.useCallback((e=>{e.preventDefault()}),[]);return e.jsxRuntimeExports.jsx(Mo,{children:e.jsxRuntimeExports.jsx("div",{onPointerDown:r?l:void 0,ref:o,style:s.style,children:n})})},cl=t.forwardRef((function({disabled:n=!1,error:i,required:a,label:o,name:s,tooltip:l,value:u,...c},d){const p=t.useRef(null),h=hs(c),{close:f}=h,{groupProps:m,fieldProps:g,buttonProps:y,dialogProps:v,calendarProps:b}=No({...c,"aria-label":o??s},h,p);return e.jsxRuntimeExports.jsxs(Qs,{error:i,htmlFor:s,label:o,required:a,tooltip:l,children:[e.jsxRuntimeExports.jsx(sl,{buttonProps:y,datePickerRef:p,disabled:n,error:i,fieldProps:r.isNil(u)||r.isEmpty(u)||"-"===u?g:{...g,value:Ie(u.replace(/\//gu,"-"))},groupProps:m,inputRef:d,isOpen:h.isOpen,name:s}),h.isOpen&&!n?e.jsxRuntimeExports.jsx(ul,{offset:8,placement:"bottom start",state:h,triggerRef:p,children:e.jsxRuntimeExports.jsx(ll,{...v,children:e.jsxRuntimeExports.jsx(Ks,{onClose:f,props:{...b}})})}):null]})})),dl=({onClose:n,props:r})=>{const{locale:i}=Bi(),a=t.useRef(null),o=function(e){let{value:n,defaultValue:r,onChange:i,createCalendar:a,locale:o,visibleDuration:s={months:1},minValue:l,maxValue:u,...c}=e,[d,p]=ur(n,r||null,i),[h,f]=t.useState(null),m="center";if(d&&d.start&&d.end){let e=Wo(de(d.start),s,o,l,u).add(s).subtract({days:1});d.end.compare(e)>0&&(m="start")}let g=t.useRef(null),[y,v]=t.useState(null),b=t.useMemo((()=>te(l,null==y?void 0:y.start)),[l,y]),x=t.useMemo((()=>ee(u,null==y?void 0:y.end)),[u,y]),w=Yo({...c,value:d&&d.start,createCalendar:a,locale:o,visibleDuration:s,minValue:b,maxValue:x,selectionAlignment:m}),E=t=>{if(t&&e.isDateUnavailable&&!e.allowsNonContiguousRanges){const e=es(t,w,-1),n=es(t,w,1);g.current={start:e,end:n},v(g.current)}else g.current=null,v(null)},[k,S]=t.useState(w.visibleRange);L(w.visibleRange.start,k.start)&&L(w.visibleRange.end,k.end)||(E(h),S(w.visibleRange));let D=e=>{e?(f(e),E(e)):(f(null),E(null))},j=h?Xo(h,w.focusedDate):d&&Xo(d.start,d.end),C=t=>{if(e.isReadOnly)return;const n=Go(Zo(t,b,x),w.visibleRange.start,e.isDateUnavailable);if(n)if(h){let e=Xo(h,n);e&&p({start:Qo(e.start,null==d?void 0:d.start),end:Qo(e.end,null==d?void 0:d.end)}),D(null)}else D(n)},[R,P]=t.useState(!1),{isDateUnavailable:$}=e,T=t.useMemo((()=>!(!d||h)&&(!(!$||!$(d.start)&&!$(d.end))||Uo(d.start,l,u)||Uo(d.end,l,u))),[$,d,h,l,u]),_=e.isInvalid||"invalid"===e.validationState||T,M=_?"invalid":null;return{...w,value:d,setValue:p,anchorDate:h,setAnchorDate:D,highlightedRange:j,validationState:M,isValueInvalid:_,selectFocusedDate(){C(w.focusedDate)},selectDate:C,highlightDate(e){h&&w.setFocusedDate(e)},isSelected:e=>Boolean(j&&e.compare(j.start)>=0&&e.compare(j.end)<=0&&!w.isCellDisabled(e)&&!w.isCellUnavailable(e)),isInvalid(e){var t,n;return w.isInvalid(e)||Uo(e,null===(t=g.current)||void 0===t?void 0:t.start,null===(n=g.current)||void 0===n?void 0:n.end)},isDragging:R,setDragging:P}}({...r,createCalendar:Ht,locale:i}),{prevButtonProps:s,nextButtonProps:l,title:u}=function(e,n,r){let i=Ca(e,n),a=t.useRef(!1),o=t.useRef("undefined"!=typeof window?window:null);return nr(o,"pointerdown",(e=>{a.current=0===e.width&&0===e.height})),nr(o,"pointerup",(e=>{if(a.current)return void(a.current=!1);if(n.setDragging(!1),!n.anchorDate)return;let t=e.target;!r.current||!r.current.contains(document.activeElement)||r.current.contains(t)&&t.closest('button, [role="button"]')||n.selectFocusedDate()})),i.calendarProps.onBlur=e=>{r.current&&(e.relatedTarget&&r.current.contains(e.relatedTarget)||!n.anchorDate||n.selectFocusedDate())},nr(r,"touchmove",(e=>{n.isDragging&&e.preventDefault()}),{passive:!1,capture:!0}),i}(r,o,a);return e.jsxRuntimeExports.jsxs("div",{className:"calendar-range",ref:a,children:[e.jsxRuntimeExports.jsx(qs,{nextButtonProps:l,prevButtonProps:s,state:o,title:u}),e.jsxRuntimeExports.jsx(Os,{state:o}),e.jsxRuntimeExports.jsx(As,{children:e.jsxRuntimeExports.jsx(e.Button,{onClick:n,variant:"ghost",children:"Cancel"})})]})},pl=n.styled.div`
|
|
113
113
|
${({theme:e,$disabled:t,$show:n})=>`\n border-color: ${n?e.palette.error[500]:e.palette.gray[300]};\n display: flex;\n gap: ${e.spacing[.25]};\n width: 100%;\n\n ~ div {\n background: ${t?e.palette.gray[200]:e.palette.white};\n }\n `}
|
|
114
|
-
`,
|
|
114
|
+
`,hl=t.forwardRef((function({disabled:n=!1,error:r,label:i,name:a,required:o,tooltip:s,...l},u){const c=t.useRef(null),d=function(e){var n,r;let i=ts(e),[a,o]=ur(e.value,e.defaultValue||null,e.onChange),[s,l]=t.useState((()=>a||{start:null,end:null}));null==a&&s.start&&s.end&&(s={start:null,end:null},l(s));let u=a||s,c=e=>{l(e||{start:null,end:null}),xs(e)?o(e):o(null)},d=(null==u?void 0:u.start)||(null==u?void 0:u.end)||e.placeholderValue||null,[p,h]=ps(d,e.granularity),f="hour"===p||"minute"===p||"second"===p;var m;let g=null===(m=e.shouldCloseOnSelect)||void 0===m||m,[y,v]=t.useState(null),[b,x]=t.useState(null);u&&xs(u)&&(y=u,"hour"in u.start&&(b=u));let w=(e,t)=>{c({start:"timeZone"in t.start?t.start.set(de(e.start)):pe(e.start,t.start),end:"timeZone"in t.end?t.end.set(de(e.end)):pe(e.end,t.end)}),v(null),x(null),$.commitValidation()},E=t=>{let n="function"==typeof g?g():g;f?xs(t)&&(null==b?void 0:b.start)&&(null==b?void 0:b.end)?w(t,{start:(null==b?void 0:b.start)||us(e.placeholderValue),end:(null==b?void 0:b.end)||us(e.placeholderValue)}):v(t):xs(t)?(c(t),$.commitValidation()):v(t),n&&i.setOpen(!1)},k=e=>{xs(y)&&xs(e)?w(y,e):x(e)},S="gregory"===(null==u||null===(n=u.start)||void 0===n?void 0:n.calendar.identifier)&&"BC"===u.start.era||"gregory"===(null==u||null===(r=u.end)||void 0===r?void 0:r.calendar.identifier)&&"BC"===u.end.era,D=t.useMemo((()=>({granularity:p,timeZone:h,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:S})),[p,e.hourCycle,e.shouldForceLeadingZeros,h,e.hideTimeZone,S]),{minValue:j,maxValue:C,isDateUnavailable:R}=e,P=t.useMemo((()=>function(e,t,n,r,i){var a,o;let s=La(as(null!==(a=null==e?void 0:e.start)&&void 0!==a?a:null,t,n,r,i),as(null!==(o=null==e?void 0:e.end)&&void 0!==o?o:null,t,n,r,i));return null!=(null==e?void 0:e.end)&&null!=e.start&&e.end.compare(e.start)<0&&(s=La(s,{isInvalid:!0,validationErrors:[(Ki.getGlobalDictionaryForPackage("@react-stately/datepicker")||ns).getStringForLocale("rangeReversed",is())],validationDetails:{...Pa,rangeUnderflow:!0,rangeOverflow:!0,valid:!1}})),s}(u,j,C,R,D)),[u,j,C,R,D]),$=Aa({...e,value:a,name:t.useMemo((()=>[e.startName,e.endName].filter((e=>null!=e))),[e.startName,e.endName]),builtinValidation:P}),T=$.displayValidation.isInvalid,_=e.validationState||(T?"invalid":null);return{...$,value:u,setValue:c,dateRange:y,timeRange:b,granularity:p,hasTime:f,setDate(e,t){var n,r;E("start"===e?{start:t,end:null!==(n=null==y?void 0:y.end)&&void 0!==n?n:null}:{start:null!==(r=null==y?void 0:y.start)&&void 0!==r?r:null,end:t})},setTime(e,t){var n,r;k("start"===e?{start:t,end:null!==(n=null==b?void 0:b.end)&&void 0!==n?n:null}:{start:null!==(r=null==b?void 0:b.start)&&void 0!==r?r:null,end:t})},setDateTime(e,t){var n,r;c("start"===e?{start:t,end:null!==(n=null==u?void 0:u.end)&&void 0!==n?n:null}:{start:null!==(r=null==u?void 0:u.start)&&void 0!==r?r:null,end:t})},setDateRange:E,setTimeRange:k,...i,setOpen(t){t||(null==u?void 0:u.start)&&(null==u?void 0:u.end)||!xs(y)||!f||w(y,{start:(null==b?void 0:b.start)||us(e.placeholderValue),end:(null==b?void 0:b.end)||us(e.placeholderValue)}),i.setOpen(t)},validationState:_,isInvalid:T,formatValue(t,n){if(!u||!u.start||!u.end)return null;let r,i="timeZone"in u.start?u.start.timeZone:void 0,a=e.granularity||(u.start&&"minute"in u.start?"minute":"day"),o="timeZone"in u.end?u.end.timeZone:void 0,s=e.granularity||(u.end&&"minute"in u.end?"minute":"day"),l=ls(n,{granularity:a,timeZone:i,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,showEra:"gregory"===u.start.calendar.identifier&&"BC"===u.start.era||"gregory"===u.end.calendar.identifier&&"BC"===u.end.era}),c=u.start.toDate(i||"UTC"),d=u.end.toDate(o||"UTC"),p=new Gt(t,l);if(i===o&&a===s&&0!==u.start.compare(u.end)){try{let e=p.formatRangeToParts(c,d),t=-1;for(let i=0;i<e.length;i++){let n=e[i];if("shared"===n.source&&"literal"===n.type)t=i;else if("endRange"===n.source)break}let n="",r="";for(let i=0;i<e.length;i++)i<t?n+=e[i].value:i>t&&(r+=e[i].value);return{start:n,end:r}}catch{}r=p}else{let i=ls(n,{granularity:s,timeZone:o,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle});r=new Gt(t,i)}return{start:p.format(c),end:r.format(d)}},getDateFormatter(e,t){let n=ls({},{...D,...t});return new Gt(e,n)}}}(l),{close:p,isOpen:h}=d,f=`min${a}`,m=`max${a}`,{groupProps:g,startFieldProps:y,endFieldProps:v,buttonProps:b,dialogProps:x,calendarProps:w}=function(e,n,r){var i,a,o;let s=Xi((l=Ao)&&l.__esModule?l.default:l,"@react-aria/datepicker");var l;let{isInvalid:u,validationErrors:c,validationDetails:d}=n.displayValidation,{labelProps:p,fieldProps:h,descriptionProps:f,errorMessageProps:m}=za({...e,labelElementType:"span",isInvalid:u,errorMessage:e.errorMessage||c}),g=h["aria-labelledby"]||h.id,{locale:y}=Bi(),v=n.formatValue(y,{month:"long"}),b=tr(v?s.format("selectedRangeDescription",{startDate:v.start,endDate:v.end}):""),x={"aria-label":s.format("startDate"),"aria-labelledby":g},w={"aria-label":s.format("endDate"),"aria-labelledby":g},E=fn(),k=fn(),S=Io(n,r),D=[b["aria-describedby"],h["aria-describedby"]].filter(Boolean).join(" ")||void 0,j=t.useMemo((()=>ji(r,{accept:e=>e.id!==E})),[r,E]),C={[Lo]:j,[Fo]:"presentation","aria-describedby":D,placeholderValue:e.placeholderValue,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,granularity:e.granularity,shouldForceLeadingZeros:e.shouldForceLeadingZeros,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isRequired:e.isRequired,validationBehavior:e.validationBehavior},R=Cn(e),{focusWithinProps:P}=ei({...e,isDisabled:n.isOpen,onBlurWithin:e.onBlur,onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange}),$=t.useRef(Ta),T=t.useRef(Ta);var _,M;return{groupProps:En(R,S,h,b,P,{role:"group","aria-disabled":e.isDisabled||null,"aria-describedby":D,onKeyDown(t){n.isOpen||e.onKeyDown&&e.onKeyDown(t)},onKeyUp(t){n.isOpen||e.onKeyUp&&e.onKeyUp(t)}}),labelProps:{...p,onClick:()=>{j.focusFirst()}},buttonProps:{...b,id:E,"aria-haspopup":"dialog","aria-label":s.format("calendar"),"aria-labelledby":`${E} ${g}`,"aria-describedby":D,"aria-expanded":n.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>n.setOpen(!0)},dialogProps:{id:k,"aria-labelledby":`${E} ${g}`},startFieldProps:{...x,...C,value:null!==(_=null===(i=n.value)||void 0===i?void 0:i.start)&&void 0!==_?_:null,onChange:e=>n.setDateTime("start",e),autoFocus:e.autoFocus,name:e.startName,[Ma]:{realtimeValidation:n.realtimeValidation,displayValidation:n.displayValidation,updateValidation(e){$.current=e,n.updateValidation(La(e,T.current))},resetValidation:n.resetValidation,commitValidation:n.commitValidation}},endFieldProps:{...w,...C,value:null!==(M=null===(a=n.value)||void 0===a?void 0:a.end)&&void 0!==M?M:null,onChange:e=>n.setDateTime("end",e),name:e.endName,[Ma]:{realtimeValidation:n.realtimeValidation,displayValidation:n.displayValidation,updateValidation(e){T.current=e,n.updateValidation(La($.current,e))},resetValidation:n.resetValidation,commitValidation:n.commitValidation}},descriptionProps:f,errorMessageProps:m,calendarProps:{autoFocus:!0,value:(null===(o=n.dateRange)||void 0===o?void 0:o.start)&&n.dateRange.end?n.dateRange:null,onChange:n.setDateRange,minValue:e.minValue,maxValue:e.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isDateUnavailable:e.isDateUnavailable,allowsNonContiguousRanges:e.allowsNonContiguousRanges,defaultFocusedValue:n.dateRange?void 0:e.placeholderValue,isInvalid:n.isInvalid,errorMessage:"function"==typeof e.errorMessage?e.errorMessage(n.displayValidation):e.errorMessage||n.displayValidation.validationErrors.join(" ")},isInvalid:u,validationErrors:c,validationDetails:d}}(l,d,c);return e.jsxRuntimeExports.jsxs(Qs,{error:r,htmlFor:a,label:i,required:o,tooltip:s,children:[e.jsxRuntimeExports.jsxs(pl,{$disabled:n,$show:void 0!==r,ref:c,children:[e.jsxRuntimeExports.jsx(sl,{buttonProps:b,datePickerRef:c,disabled:n,error:r,fieldProps:{...y,"aria-label":`${y["aria-label"]} ${a}`,validate:e=>v.value&&e>v.value?"Start date must be less than or equal to end date":null},groupProps:g,inputRef:u,isOpen:h,name:f,variant:"range"}),e.jsxRuntimeExports.jsx(sl,{buttonProps:b,datePickerRef:c,disabled:n,error:r,fieldProps:{...v,"aria-label":`${v["aria-label"]} ${a}`,validate:e=>y.value&&e<y.value?"End date must be greater than or equal to start date":null},groupProps:g,inputRef:u,isOpen:h,name:m,variant:"range"})]}),d.isOpen&&!n?e.jsxRuntimeExports.jsx(ul,{offset:8,placement:"bottom start",state:d,triggerRef:c,children:e.jsxRuntimeExports.jsx(ll,{...x,children:e.jsxRuntimeExports.jsx(dl,{onClose:p,props:{...w}})})}):null]})})),fl=n.styled.div`
|
|
115
115
|
${({theme:e})=>`\n align-items: center;\n border-top: 1px solid ${e.palette.gray[200]};\n display: flex;\n gap: ${e.spacing[1.5]};\n justify-content: center;\n padding: ${e.spacing[.5]} ${e.spacing[1.25]};\n `}
|
|
116
|
-
`,
|
|
116
|
+
`,ml=n.styled.div`
|
|
117
117
|
align-items: center;
|
|
118
118
|
display: flex;
|
|
119
119
|
gap: ${({theme:e})=>e.spacing[.5]};
|
|
120
120
|
justify-content: flex-end;
|
|
121
121
|
flex: 1 0 0;
|
|
122
|
-
`,
|
|
122
|
+
`,gl=({handleTimeChange:t,onClose:r,props:i,timeState:a})=>{const o=n.useTheme(),{locale:s}=Bi(),l=Yo({...i,createCalendar:Ht,locale:s}),{prevButtonProps:u,nextButtonProps:c,title:d}=Ra(i,l);return e.jsxRuntimeExports.jsxs("div",{className:"calendar",children:[e.jsxRuntimeExports.jsx(qs,{nextButtonProps:c,prevButtonProps:u,state:l,title:d}),e.jsxRuntimeExports.jsx(Os,{state:l}),e.jsxRuntimeExports.jsxs(fl,{children:[e.jsxRuntimeExports.jsx(e.Text,{color:o.palette.gray[800],fontWeight:"bold",size:"sm",children:"Time"}),e.jsxRuntimeExports.jsx(ml,{children:e.jsxRuntimeExports.jsx(ol,{hourCycle:12,label:"time-field",onChange:t,value:a.timeValue})})]}),e.jsxRuntimeExports.jsx(As,{children:e.jsxRuntimeExports.jsx(e.Button,{onClick:r,variant:"ghost",children:"Cancel"})})]})},yl=t.forwardRef((function(n,r){const i=t.useRef(null),a=hs({...n,granularity:"minute",hourCycle:12,shouldCloseOnSelect:!1}),{close:o}=a,{disabled:s=!1,error:l,required:u,label:c,name:d,tooltip:p}=n,{groupProps:h,fieldProps:f,buttonProps:m,dialogProps:g,calendarProps:y}=No(n,a,i),v=t.useCallback((e=>{e&&a.setTimeValue(e)}),[a]);return e.jsxRuntimeExports.jsxs(Qs,{error:l,htmlFor:d,label:c,required:u,tooltip:p,children:[e.jsxRuntimeExports.jsx(sl,{buttonProps:m,datePickerRef:i,disabled:s,error:l,fieldProps:f,granularity:"minute",groupProps:h,inputRef:r,isOpen:a.isOpen,name:d}),a.isOpen&&!s?e.jsxRuntimeExports.jsx(ul,{offset:8,placement:"bottom start",state:a,triggerRef:i,children:e.jsxRuntimeExports.jsx(ll,{...g,children:e.jsxRuntimeExports.jsx(gl,{handleTimeChange:v,onClose:o,props:{...y},timeState:a})})}):null]})})),vl=t.forwardRef((function({disabled:t=!1,hasIcon:r=!1,helpLink:i,helpLinkText:a,helpText:o,error:s,label:l,name:u,maskValue:c=!1,required:d,tooltip:p,type:h="text",weight:f,...m},g){const y=n.useTheme();return e.jsxRuntimeExports.jsx(Qs,{error:s,helpLink:i,helpLinkText:a,helpText:o,htmlFor:u,label:l,required:d,tooltip:p,weight:f,children:e.jsxRuntimeExports.jsxs(Gs,{className:`${t?"disabled":""} ${s?"error":""}`,children:[r?e.jsxRuntimeExports.jsx(e.Icon,{icon:"user",iconSize:"sm",iconType:"fa-light"}):void 0,e.jsxRuntimeExports.jsx("input",{"aria-hidden":!1,"aria-invalid":s?"true":"false","aria-label":u,"aria-required":d,autoComplete:"off",className:c?"sr-block":"","data-testid":`${u}-input`,disabled:t,id:u,name:u,ref:g,type:h,...m}),s?e.jsxRuntimeExports.jsx(e.Icon,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:y.palette.error[500],iconSize:"xs"}):void 0]})})})),bl=n.styled(e.StyledText)`
|
|
123
123
|
white-space: nowrap;
|
|
124
124
|
margin-right: ${({theme:e})=>e.spacing[.25]};
|
|
125
125
|
text-overflow: ellipsis;
|
|
126
126
|
overflow: hidden;
|
|
127
127
|
max-width: 80%;
|
|
128
|
-
`,
|
|
128
|
+
`,xl=n.styled.input`
|
|
129
129
|
opacity: 0;
|
|
130
130
|
position: absolute;
|
|
131
131
|
visibility: hidden;
|
|
132
132
|
width: 0;
|
|
133
|
-
`,
|
|
133
|
+
`,wl=t.forwardRef((function({accept:t,disabled:r=!1,error:i,label:a,helpLink:o,helpText:s,id:l,multiple:u,name:d,required:p,tooltip:h,weight:f,value:m,...g},y){const b=n.useTheme(),x=(e=>{const t=e;return t?Array.from(t).map((e=>e.name)).join(", "):""})(m);return e.jsxRuntimeExports.jsxs(Qs,{error:i,helpLink:o,helpText:s,htmlFor:d,label:a,required:p,tooltip:h,weight:f,children:[e.jsxRuntimeExports.jsxs(Gs,{className:`${r?"disabled":""} ${i?"error":""}`,children:[e.jsxRuntimeExports.jsx(bl,{$size:"xs",children:x}),e.jsxRuntimeExports.jsxs(c,{display:"flex",gap:.5,children:[e.isEmpty(x)?void 0:e.jsxRuntimeExports.jsx(v,{color:b.palette.gray[400],height:"20px",icon:"xmark",iconSize:"lg",iconType:"fa-light",variant:"ghost",width:"20px"}),i&&e.jsxRuntimeExports.jsx(e.Icon,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:b.palette.error[500],iconSize:"xs"})]}),e.jsxRuntimeExports.jsxs(e.Button,{border:r?`1px solid ${b.palette.gray[300]} !important`:"",borderRadius:"0px 8px 8px 0px !important",disabled:r,height:"40px",variant:"primary",width:"96px",children:[e.jsxRuntimeExports.jsx(e.Icon,{icon:"search",iconSize:"sm",mr:.5}),"Add file"]})]}),e.jsxRuntimeExports.jsx(xl,{accept:t,"aria-label":d,"data-testid":d,disabled:r,id:l,multiple:u,name:d,ref:y,required:void 0,type:"file",value:void 0,...g})]})})),El=n.styled.input`
|
|
134
134
|
border: none;
|
|
135
135
|
background: transparent;
|
|
136
136
|
min-width: 15rem;
|
|
137
137
|
padding: 0;
|
|
138
138
|
flex: 1;
|
|
139
|
-
`,ml=t.forwardRef((function({disabled:n=!1,error:r,label:i,name:a="input-tag",onChange:o,placeholder:s,required:l,tooltip:u,weight:c,value:d,...p},h){const f=t.useMemo((()=>d&&"string"==typeof d?d.split(",").filter(Boolean):[]),[d]);return e.jsxRuntimeExports.jsx(us,{error:r,htmlFor:a,label:i,required:l,tooltip:u,weight:c,children:e.jsxRuntimeExports.jsxs(as,{className:`${n?"disabled":""} ${r?"error":""}`,children:[f.map((t=>e.jsxRuntimeExports.jsx(ls,{disabled:n,tagLabel:t},t))),e.jsxRuntimeExports.jsx(fl,{"aria-hidden":!1,"aria-invalid":r?"true":"false","aria-label":a,"aria-required":l,autoComplete:"off",disabled:n,name:a,onChange:o,placeholder:0===f.length?s:void 0,ref:h,type:"text",value:d,...p})]})})})),gl=t.forwardRef((function({disabled:t,icon:n,margin:r,onClick:i,...a},o){return e.jsxRuntimeExports.jsx(Ho,{$margin:r,"aria-label":n,className:"action-btn",disabled:t,onClick:i,ref:o,type:"button",...a,children:e.jsxRuntimeExports.jsx(e.Icon,{icon:n,iconClass:"action",iconSize:"xs",iconType:"fa-light"})})})),yl=({error:r,decimalPlaces:i=0,disabled:a=!1,max:o=1/0,min:s=0,name:l="input-number",placeholder:u,ref:c,required:d,value:p,...h})=>{const f=n.useTheme(),m=t.useMemo((()=>i<0?0:i),[i]);return e.jsxRuntimeExports.jsxs(as,{className:`${a?"disabled":""} ${r?"error":""}`,children:[e.jsxRuntimeExports.jsx("input",{"aria-hidden":!1,"aria-invalid":r?"true":"false","aria-label":l,"aria-required":d,autoComplete:"off",disabled:a,max:o,min:s,placeholder:u,ref:c,required:void 0,step:10**-m,type:"number",value:/^-?\d+/u.test(String(p))?p:"",...h}),r&&e.jsxRuntimeExports.jsx(e.Icon,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:f.palette.error[500],iconSize:"xs"}),e.jsxRuntimeExports.jsx(gl,{borderLeft:"inherit",borderRight:"inherit",disabled:a,icon:"minus",margin:"0 -0.625rem 0 0",px:.75,py:.75}),e.jsxRuntimeExports.jsx(gl,{borderRadius:`0 ${f.spacing[.5]} ${f.spacing[.5]} 0`,disabled:a,icon:"plus",px:.75,py:.75})]})},vl=t.forwardRef((function({decimalPlaces:t,disabled:n=!1,error:r,helpLink:i,helpText:a,id:o,label:s,maxLength:l,max:u,min:c,name:d,onChange:p,placeholder:h,required:f,tooltip:m,weight:g,...y},v){return e.jsxRuntimeExports.jsx(us,{error:r,helpLink:i,helpText:a,htmlFor:d,label:s,maxLength:l,required:f,tooltip:m,weight:g,children:e.jsxRuntimeExports.jsx(yl,{decimalPlaces:t,disabled:n,error:r,id:o,max:u,min:c,name:d,onChange:p,placeholder:h,ref:v,...y})})})),bl=t.forwardRef((function({disabled:t=!1,error:n,name:r,label:i,propsMax:a,propsMin:o,required:s,tooltip:l},u){return e.jsxRuntimeExports.jsx(us,{error:n,htmlFor:r,label:i,required:s,tooltip:l,children:e.jsxRuntimeExports.jsxs(c,{display:"flex",gap:.25,width:"100%",children:[e.jsxRuntimeExports.jsx(yl,{...o,disabled:t,error:n,ref:u}),e.jsxRuntimeExports.jsx(yl,{...a,disabled:t,error:n,ref:u})]})})}));var xl=[["Afghanistan","af","93"],["Albania","al","355"],["Algeria","dz","213"],["Andorra","ad","376"],["Angola","ao","244"],["Antigua and Barbuda","ag","1268"],["Argentina","ar","54","(..) ........",0],["Armenia","am","374",".. ......"],["Aruba","aw","297"],["Australia","au","61",{default:". .... ....","/^4/":"... ... ...","/^5(?!50)/":"... ... ...","/^1(3|8)00/":".... ... ...","/^13/":".. .. ..","/^180/":"... ...."},0,[]],["Austria","at","43"],["Azerbaijan","az","994","(..) ... .. .."],["Bahamas","bs","1242"],["Bahrain","bh","973"],["Bangladesh","bd","880"],["Barbados","bb","1246"],["Belarus","by","375","(..) ... .. .."],["Belgium","be","32","... .. .. .."],["Belize","bz","501"],["Benin","bj","229"],["Bhutan","bt","975"],["Bolivia","bo","591"],["Bosnia and Herzegovina","ba","387"],["Botswana","bw","267"],["Brazil","br","55","(..) ........."],["British Indian Ocean Territory","io","246"],["Brunei","bn","673"],["Bulgaria","bg","359"],["Burkina Faso","bf","226"],["Burundi","bi","257"],["Cambodia","kh","855"],["Cameroon","cm","237"],["Canada","ca","1","(...) ...-....",1,["204","226","236","249","250","289","306","343","365","387","403","416","418","431","437","438","450","506","514","519","548","579","581","587","604","613","639","647","672","705","709","742","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde","cv","238"],["Caribbean Netherlands","bq","599","",1],["Cayman Islands","ky","1","... ... ....",4,["345"]],["Central African Republic","cf","236"],["Chad","td","235"],["Chile","cl","56"],["China","cn","86","... .... ...."],["Colombia","co","57","... ... ...."],["Comoros","km","269"],["Congo","cd","243"],["Congo","cg","242"],["Costa Rica","cr","506","....-...."],["Côte d'Ivoire","ci","225",".. .. .. .. .."],["Croatia","hr","385"],["Cuba","cu","53"],["Curaçao","cw","599","",0],["Cyprus","cy","357",".. ......"],["Czech Republic","cz","420","... ... ..."],["Denmark","dk","45",".. .. .. .."],["Djibouti","dj","253"],["Dominica","dm","1767"],["Dominican Republic","do","1","(...) ...-....",2,["809","829","849"]],["Ecuador","ec","593"],["Egypt","eg","20"],["El Salvador","sv","503","....-...."],["Equatorial Guinea","gq","240"],["Eritrea","er","291"],["Estonia","ee","372",".... ......"],["Ethiopia","et","251"],["Fiji","fj","679"],["Finland","fi","358",".. ... .. .."],["France","fr","33",". .. .. .. .."],["French Guiana","gf","594"],["French Polynesia","pf","689"],["Gabon","ga","241"],["Gambia","gm","220"],["Georgia","ge","995"],["Germany","de","49","... ........."],["Ghana","gh","233"],["Greece","gr","30"],["Greenland","gl","299",".. .. .."],["Grenada","gd","1473"],["Guadeloupe","gp","590","",0],["Guam","gu","1671"],["Guatemala","gt","502","....-...."],["Guinea","gn","224"],["Guinea-Bissau","gw","245"],["Guyana","gy","592"],["Haiti","ht","509","....-...."],["Honduras","hn","504"],["Hong Kong","hk","852",".... ...."],["Hungary","hu","36"],["Iceland","is","354","... ...."],["India","in","91",".....-....."],["Indonesia","id","62"],["Iran","ir","98","... ... ...."],["Iraq","iq","964"],["Ireland","ie","353",".. ......."],["Israel","il","972","... ... ...."],["Italy","it","39","... .......",0],["Jamaica","jm","1876"],["Japan","jp","81",".. .... ...."],["Jordan","jo","962"],["Kazakhstan","kz","7","... ...-..-..",0],["Kenya","ke","254"],["Kiribati","ki","686"],["Kosovo","xk","383"],["Kuwait","kw","965"],["Kyrgyzstan","kg","996","... ... ..."],["Laos","la","856"],["Latvia","lv","371",".. ... ..."],["Lebanon","lb","961"],["Lesotho","ls","266"],["Liberia","lr","231"],["Libya","ly","218"],["Liechtenstein","li","423"],["Lithuania","lt","370"],["Luxembourg","lu","352"],["Macau","mo","853"],["Macedonia","mk","389"],["Madagascar","mg","261"],["Malawi","mw","265"],["Malaysia","my","60","..-....-...."],["Maldives","mv","960"],["Mali","ml","223"],["Malta","mt","356"],["Marshall Islands","mh","692"],["Martinique","mq","596"],["Mauritania","mr","222"],["Mauritius","mu","230"],["Mexico","mx","52","... ... ....",0],["Micronesia","fm","691"],["Moldova","md","373","(..) ..-..-.."],["Monaco","mc","377"],["Mongolia","mn","976"],["Montenegro","me","382"],["Morocco","ma","212"],["Mozambique","mz","258"],["Myanmar","mm","95"],["Namibia","na","264"],["Nauru","nr","674"],["Nepal","np","977"],["Netherlands","nl","31",{"/^06/":"(.). .........","/^6/":". .........","/^0(10|13|14|15|20|23|24|26|30|33|35|36|38|40|43|44|45|46|50|53|55|58|70|71|72|73|74|75|76|77|78|79|82|84|85|87|88|91)/":"(.).. ........","/^(10|13|14|15|20|23|24|26|30|33|35|36|38|40|43|44|45|46|50|53|55|58|70|71|72|73|74|75|76|77|78|79|82|84|85|87|88|91)/":".. ........","/^0/":"(.)... .......",default:"... ......."}],["New Caledonia","nc","687"],["New Zealand","nz","64","...-...-...."],["Nicaragua","ni","505"],["Niger","ne","227"],["Nigeria","ng","234"],["North Korea","kp","850"],["Norway","no","47","... .. ..."],["Oman","om","968"],["Pakistan","pk","92","...-......."],["Palau","pw","680"],["Palestine","ps","970"],["Panama","pa","507"],["Papua New Guinea","pg","675"],["Paraguay","py","595"],["Peru","pe","51"],["Philippines","ph","63",".... ......."],["Poland","pl","48","...-...-..."],["Portugal","pt","351"],["Puerto Rico","pr","1","(...) ...-....",3,["787","939"]],["Qatar","qa","974"],["Réunion","re","262"],["Romania","ro","40"],["Russia","ru","7","(...) ...-..-..",1],["Rwanda","rw","250"],["Saint Kitts and Nevis","kn","1869"],["Saint Lucia","lc","1758"],["Saint Vincent and the Grenadines","vc","1784"],["Samoa","ws","685"],["San Marino","sm","378"],["São Tomé and Príncipe","st","239"],["Saudi Arabia","sa","966"],["Senegal","sn","221"],["Serbia","rs","381"],["Seychelles","sc","248"],["Sierra Leone","sl","232"],["Singapore","sg","65","....-...."],["Slovakia","sk","421"],["Slovenia","si","386"],["Solomon Islands","sb","677"],["Somalia","so","252"],["South Africa","za","27"],["South Korea","kr","82","... .... ...."],["South Sudan","ss","211"],["Spain","es","34","... ... ..."],["Sri Lanka","lk","94"],["Sudan","sd","249"],["Suriname","sr","597"],["Swaziland","sz","268"],["Sweden","se","46","... ... ..."],["Switzerland","ch","41",".. ... .. .."],["Syria","sy","963"],["Taiwan","tw","886"],["Tajikistan","tj","992"],["Tanzania","tz","255"],["Thailand","th","66"],["Timor-Leste","tl","670"],["Togo","tg","228"],["Tonga","to","676"],["Trinidad and Tobago","tt","1868"],["Tunisia","tn","216"],["Turkey","tr","90","... ... .. .."],["Turkmenistan","tm","993"],["Tuvalu","tv","688"],["Uganda","ug","256"],["Ukraine","ua","380","(..) ... .. .."],["United Arab Emirates","ae","971"],["United Kingdom","gb","44",".... ......"],["United States","us","1","(...) ...-....",0],["Uruguay","uy","598"],["Uzbekistan","uz","998",".. ... .. .."],["Vanuatu","vu","678"],["Vatican City","va","39",".. .... ....",1],["Venezuela","ve","58"],["Vietnam","vn","84"],["Yemen","ye","967"],["Zambia","zm","260"],["Zimbabwe","zw","263"]],wl=(...e)=>e.filter((e=>!!e)).join(" ").trim(),El=({addPrefix:e,rawClassNames:t})=>wl(((...e)=>wl(...e).split(" ").map((e=>`react-international-phone-${e}`)).join(" "))(...e),...t),kl=e=>!!e&&/^\d+$/.test(e),Sl=e=>e.replace(/\D/g,""),Dl=({phone:e,prefix:t})=>e?`${t}${Sl(e)}`:"";function jl({value:e,country:t,insertDialCodeOnEmpty:n,trimNonDigitsEnd:r,countries:i,prefix:a,charAfterDialCode:o,forceDialCode:s,disableDialCodeAndPrefix:l,defaultMask:u,countryGuessingEnabled:c,disableFormatting:d}){let p=e;l&&(p=p.startsWith(`${a}`)?p:`${a}${t.dialCode}${p}`);let h=c?Al({phone:p,countries:i,currentCountryIso2:null==t?void 0:t.iso2}):void 0,f=(null==h?void 0:h.country)??t,m=((e,t)=>{let n=!t.disableDialCodeAndPrefix&&t.forceDialCode,r=!t.disableDialCodeAndPrefix&&t.insertDialCodeOnEmpty,i=e,a=e=>t.trimNonDigitsEnd?e.trim():e;if(!i)return r&&!i.length||n?a(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`):a(i);if(i=Sl(i),i===t.dialCode&&!t.disableDialCodeAndPrefix)return a(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`);if(t.dialCode.startsWith(i)&&!t.disableDialCodeAndPrefix)return a(n?`${t.prefix}${t.dialCode}${t.charAfterDialCode}`:`${t.prefix}${i}`);if(!i.startsWith(t.dialCode)&&!t.disableDialCodeAndPrefix){if(n)return a(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`);if(i.length<t.dialCode.length)return a(`${t.prefix}${i}`)}let{phoneLeftSide:o,phoneRightSide:s}=(()=>{let e=t.dialCode.length;return{phoneLeftSide:i.slice(0,e),phoneRightSide:i.slice(e)}})();return o=`${t.prefix}${o}${t.charAfterDialCode}`,s=(({value:e,mask:t,maskSymbol:n,offset:r=0,trimNonMaskCharsLeftover:i=!1})=>{if(e.length<r)return e;let a=e.slice(0,r),o=e.slice(r),s=a,l=0;for(let u of t.split("")){if(l>=o.length){if(!i&&u!==n){s+=u;continue}break}u===n?(s+=o[l],l+=1):s+=u}return s})({value:s,mask:t.mask,maskSymbol:t.maskChar,trimNonMaskCharsLeftover:t.trimNonDigitsEnd||t.disableDialCodeAndPrefix&&0===s.length}),t.disableDialCodeAndPrefix&&(o=""),a(`${o}${s}`)})(p,{prefix:a,mask:Tl({phone:p,country:f,defaultMask:u,disableFormatting:d}),maskChar:Rl,dialCode:f.dialCode,trimNonDigitsEnd:r,charAfterDialCode:o,forceDialCode:s,insertDialCodeOnEmpty:n,disableDialCodeAndPrefix:l}),g=c&&!(null==h?void 0:h.fullDialCodeMatch)?t:f;return{phone:Dl({phone:l?`${g.dialCode}${m}`:m,prefix:a}),inputValue:m,country:g}}var Cl={size:20,overrideLastItemDebounceMS:-1};var Rl=".",Pl=xl,$l=({defaultCountry:e="us",value:n="",countries:r=Pl,prefix:i="+",defaultMask:a="............",charAfterDialCode:o=" ",historySaveDebounceMS:s=200,disableCountryGuess:l=false,disableDialCodePrefill:u=false,forceDialCode:c=false,disableDialCodeAndPrefix:d=false,disableFormatting:p=false,onChange:h,inputRef:f})=>{let m={countries:r,prefix:i,charAfterDialCode:o,forceDialCode:!d&&c,disableDialCodeAndPrefix:d,defaultMask:a,countryGuessingEnabled:!l,disableFormatting:p},g=t.useRef(null),y=f||g,v=e=>{Promise.resolve().then((()=>{var t;typeof window>"u"||y.current!==(null==document?void 0:document.activeElement)||null==(t=y.current)||t.setSelectionRange(e,e)}))},[{phone:b,inputValue:x,country:w},E,k,S]=function(e,n){let{size:r,overrideLastItemDebounceMS:i,onChange:a}={...Cl,...n},[o,s]=t.useState(e),[l,u]=t.useState([o]),[c,d]=t.useState(0),p=(()=>{let e=t.useRef(),n=t.useRef(Date.now());return{check:()=>{let t=Date.now(),r=e.current?t-n.current:void 0;return e.current=n.current,n.current=t,r}}})();return[o,(e,t)=>{if("object"==typeof e&&"object"==typeof o&&((e,t)=>{let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i of n)if(e[i]!==t[i])return!1;return!0})(e,o)||e===o)return;let n=i>0,h=p.check(),f=!n||void 0===h||h>i;if(void 0!==(null==t?void 0:t.overrideLastItem)?t.overrideLastItem:!f)u((t=>[...t.slice(0,c),e]));else{let t=l.length>=r;u((n=>[...n.slice(t?1:0,c+1),e])),t||d((e=>e+1))}s(e),null==a||a(e)},()=>{if(c<=0)return{success:!1};let e=l[c-1];return s(e),d((e=>e-1)),null==a||a(e),{success:!0,value:e}},()=>{if(c+1>=l.length)return{success:!1};let e=l[c+1];return s(e),d((e=>e+1)),null==a||a(e),{success:!0,value:e}}]}((()=>{let t=Ml({value:e,field:"iso2",countries:r}),i=t||Ml({value:"us",field:"iso2",countries:r}),{phone:a,inputValue:o,country:s}=jl({value:n,country:i,insertDialCodeOnEmpty:!u,...m});return v(o.length),{phone:a,inputValue:o,country:s.iso2}}),{overrideLastItemDebounceMS:s,onChange:({inputValue:e,phone:t,country:n})=>{if(!h)return;let r=D(n);h({phone:t,inputValue:e,country:r})}}),D=t.useCallback((e=>Ml({value:e,field:"iso2",countries:r})),[r]),j=t.useMemo((()=>D(w)),[w,D]);t.useEffect((()=>{let e=y.current;if(!e)return;let t=e=>{if(!e.key)return;let t=e.ctrlKey,n=e.metaKey,r=e.shiftKey;if("z"===e.key.toLowerCase()){if(typeof window>"u"||!window.navigator.userAgent.toLowerCase().includes("macintosh")){if(!t)return}else if(!n)return;r?S():k()}};return e.addEventListener("keydown",t),()=>{e.removeEventListener("keydown",t)}}),[y,k,S]);let[C,R]=t.useState(!1);return t.useEffect((()=>{if(!C)return R(!0),void(n!==b&&(null==h||h({inputValue:x,phone:b,country:j})));if(n===b)return;let{phone:e,inputValue:t,country:r}=jl({value:n,country:j,insertDialCodeOnEmpty:!u,...m});E({phone:e,inputValue:t,country:r.iso2})}),[n]),{phone:b,inputValue:x,country:j,setCountry:(e,t={focusOnInput:!1})=>{let n=Ml({value:e,field:"iso2",countries:r});if(!n)return;let a=d?"":`${i}${n.dialCode}${o}`;E({inputValue:a,phone:`${i}${n.dialCode}`,country:n.iso2}),t.focusOnInput&&Promise.resolve().then((()=>{var e;null==(e=y.current)||e.focus()}))},handlePhoneValueChange:e=>{e.preventDefault();let{phone:t,inputValue:r,country:i,cursorPosition:a}=((e,{country:t,insertDialCodeOnEmpty:n,phoneBeforeInput:r,prefix:i,charAfterDialCode:a,forceDialCode:o,disableDialCodeAndPrefix:s,countryGuessingEnabled:l,defaultMask:u,disableFormatting:c,countries:d})=>{let p=e.nativeEvent,h=p.inputType,f=(e=>{if(null==e?void 0:e.toLocaleLowerCase().includes("delete"))return(null==e?void 0:e.toLocaleLowerCase().includes("forward"))?"forward":"backward"})(h),m=!!(null==h?void 0:h.startsWith("insertFrom")),g="insertText"===h,y=(null==p?void 0:p.data)||void 0,v=e.target.value,b=e.target.selectionStart??0;if(null==h?void 0:h.includes("history"))return{inputValue:r,phone:Dl({phone:r,prefix:i}),cursorPosition:r.length,country:t};if(g&&!kl(y)&&v!==i)return{inputValue:r,phone:Dl({phone:s?`${t.dialCode}${r}`:r,prefix:i}),cursorPosition:b-((null==y?void 0:y.length)??0),country:t};if(o&&!v.startsWith(`${i}${t.dialCode}`)&&!m){let e=v?r:`${i}${t.dialCode}${a}`;return{inputValue:e,phone:Dl({phone:e,prefix:i}),cursorPosition:i.length+t.dialCode.length+a.length,country:t}}let{phone:x,inputValue:w,country:E}=jl({value:v,country:t,trimNonDigitsEnd:"backward"===f,insertDialCodeOnEmpty:n,countryGuessingEnabled:l,countries:d,prefix:i,charAfterDialCode:a,forceDialCode:o,disableDialCodeAndPrefix:s,disableFormatting:c,defaultMask:u});return{phone:x,inputValue:w,cursorPosition:(({phoneBeforeInput:e,phoneAfterInput:t,phoneAfterFormatted:n,cursorPositionAfterInput:r,leftOffset:i=0,deletion:a})=>{if(r<i)return i;if(!e)return n.length;let o=null;for(let c=r-1;c>=0;c-=1)if(kl(t[c])){o=c;break}if(null===o){for(let e=0;e<t.length;e+=1)if(kl(n[e]))return e;return t.length}let s=0;for(let c=0;c<o;c+=1)kl(t[c])&&(s+=1);let l=0,u=0;for(let c=0;c<n.length&&(l+=1,kl(n[c])&&(u+=1),!(u>=s+1));c+=1);if("backward"!==a)for(;!kl(n[l])&&l<n.length;)l+=1;return l})({cursorPositionAfterInput:b,phoneBeforeInput:r,phoneAfterInput:v,phoneAfterFormatted:w,leftOffset:o?i.length+t.dialCode.length+a.length:0,deletion:f}),country:E}})(e,{country:j,phoneBeforeInput:x,insertDialCodeOnEmpty:!1,...m});return E({inputValue:r,phone:t,country:i.iso2}),v(a),n},inputRef:y}},Tl=({phone:e,country:t,defaultMask:n="............",disableFormatting:r=!1})=>{let i=t.format,a=e=>r?e.replace(new RegExp(`[^${Rl}]`,"g"),""):e;if(!i)return a(n);if("string"==typeof i)return a(i);if(!i.default)return a(n);let o=Object.keys(i).find((n=>{if("default"===n)return!1;if("/"!==n.charAt(0)||"/"!==n.charAt(n.length-1))return!1;let r=new RegExp(n.substring(1,n.length-1)),i=e.replace(t.dialCode,"");return r.test(Sl(i))}));return a(o?i[o]:i.default)},_l=e=>{let[t,n,r,i,a,o]=e;return{name:t,iso2:n,dialCode:r,format:i,priority:a,areaCodes:o}},Ml=({field:e,value:t,countries:n=xl})=>{if(["priority"].includes(e))throw new Error(`Field "${e}" is not supported`);let r=n.find((n=>{let r=_l(n);return t===r[e]}));if(r)return _l(r)},Al=({phone:e,countries:t=xl,currentCountryIso2:n})=>{var r;let i={country:void 0,fullDialCodeMatch:!1};if(!e)return i;let a=Sl(e);if(!a)return i;let o=i,s=({country:e,fullDialCodeMatch:t})=>{var n,r;let i=e.dialCode===(null==(n=o.country)?void 0:n.dialCode),a=(e.priority??0)<((null==(r=o.country)?void 0:r.priority)??0);(!i||a)&&(o={country:e,fullDialCodeMatch:t})};for(let l of t){let e=_l(l),{dialCode:t,areaCodes:n}=e;if(a.startsWith(t)){let r=!o.country||Number(t)>=Number(o.country.dialCode);if(n){let r=a.substring(t.length);for(let t of n)if(r.startsWith(t))return{country:e,fullDialCodeMatch:!0}}(r||t===a||!o.fullDialCodeMatch)&&s({country:e,fullDialCodeMatch:!0})}o.fullDialCodeMatch||a.length<t.length&&t.startsWith(a)&&(!o.country||Number(t)<=Number(o.country.dialCode))&&s({country:e,fullDialCodeMatch:!1})}if(n){let e=Ml({value:n,field:"iso2",countries:t});if(!e)return o;let i=!!e&&(e=>{if(!(null==e?void 0:e.areaCodes))return!1;let t=a.substring(e.dialCode.length);return e.areaCodes.some((e=>e.startsWith(t)))})(e);o&&(null==(r=o.country)?void 0:r.dialCode)===e.dialCode&&o.country!==e&&o.fullDialCodeMatch&&(!e.areaCodes||i)&&(o={country:e,fullDialCodeMatch:!0})}return o},Il=(e,t)=>{let n=parseInt(e,16);return Number(n+t).toString(16)},Ol="abcdefghijklmnopqrstuvwxyz".split("").reduce(((e,t,n)=>({...e,[t]:Il("1f1e6",n)})),{}),Fl=({iso2:e,size:n,src:r,protocol:i="https",disableLazyLoading:a,className:o,style:s,...l})=>e?t.createElement("img",{className:El({addPrefix:["flag-emoji"],rawClassNames:[o]}),src:(()=>{if(r)return r;let t=[Ol[(n=e)[0]],Ol[n[1]]].join("-");var n;return`${i}://cdnjs.cloudflare.com/ajax/libs/twemoji/14.0.2/svg/${t}.svg`})(),width:n,height:n,draggable:!1,"data-country":e,loading:a?void 0:"lazy",style:{width:n,height:n,...s},alt:"",...l}):t.createElement("img",{className:El({addPrefix:["flag-emoji"],rawClassNames:[o]}),width:n,height:n,...l}),Ll=({show:e,dialCodePrefix:n="+",selectedCountry:r,countries:i=xl,preferredCountries:a=[],flags:o,onSelect:s,onClose:l,...u})=>{let c=t.useRef(null),d=t.useRef(),p=t.useMemo((()=>{if(!a||!a.length)return i;let e=[],t=[...i];for(let n of a){let r=t.findIndex((e=>_l(e).iso2===n));if(-1!==r){let n=t.splice(r,1)[0];e.push(n)}}return e.concat(t)}),[i,a]),h=t.useRef({updatedAt:void 0,value:""}),f=t.useCallback((e=>p.findIndex((t=>_l(t).iso2===e))),[p]),[m,g]=t.useState(f(r)),y=()=>{d.current!==r&&g(f(r))},v=t.useCallback((e=>{g(f(e.iso2)),null==s||s(e)}),[s,f]),b=e=>{let t=p.length-1;g((n=>{let r=(i=n,"prev"===e?i-1:"next"===e?i+1:"last"===e?t:0);var i;return r<0?0:r>t?t:r}))},x=t.useCallback((()=>{if(!c.current||void 0===m)return;let e=_l(p[m]).iso2;if(e===d.current)return;let t=c.current.querySelector(`[data-country="${e}"]`);t&&(((e,t)=>{let n=e.style.display;"block"!==n&&(e.style.display="block");let r=e.getBoundingClientRect(),i=t.getBoundingClientRect(),a=i.top-r.top,o=r.bottom-i.bottom;a>=0&&o>=0||(Math.abs(a)<Math.abs(o)?e.scrollTop+=a:e.scrollTop-=o),e.style.display=n})(c.current,t),d.current=e)}),[m,p]);return t.useEffect((()=>{x()}),[m,x]),t.useEffect((()=>{c.current&&(e?c.current.focus():y())}),[e]),t.useEffect((()=>{y()}),[r]),t.createElement("ul",{ref:c,role:"listbox",className:El({addPrefix:["country-selector-dropdown"],rawClassNames:[u.className]}),style:{display:e?"block":"none",...u.style},onKeyDown:e=>{if(e.stopPropagation(),"Enter"!==e.key){if("Escape"!==e.key)return"ArrowUp"===e.key?(e.preventDefault(),void b("prev")):"ArrowDown"===e.key?(e.preventDefault(),void b("next")):"PageUp"===e.key?(e.preventDefault(),void b("first")):"PageDown"===e.key?(e.preventDefault(),void b("last")):(" "===e.key&&e.preventDefault(),void(1===e.key.length&&!e.altKey&&!e.ctrlKey&&!e.metaKey&&(e=>{let t=h.current.updatedAt&&(new Date).getTime()-h.current.updatedAt.getTime()>1e3;h.current={value:t?e:`${h.current.value}${e}`,updatedAt:new Date};let n=p.findIndex((e=>_l(e).name.toLowerCase().startsWith(h.current.value)));-1!==n&&g(n)})(e.key.toLocaleLowerCase())));null==l||l()}else{e.preventDefault();let t=_l(p[m]);v(t)}},onBlur:l,tabIndex:-1,"aria-activedescendant":`react-international-phone__${_l(p[m]).iso2}-option`},p.map(((e,i)=>{let s=_l(e),l=s.iso2===r,c=i===m,d=a.includes(s.iso2),p=i===a.length-1,h=null==o?void 0:o.find((e=>e.iso2===s.iso2));return t.createElement(t.Fragment,{key:s.iso2},t.createElement("li",{"data-country":s.iso2,role:"option","aria-selected":l,"aria-label":`${s.name} ${n}${s.dialCode}`,id:`react-international-phone__${s.iso2}-option`,className:El({addPrefix:["country-selector-dropdown__list-item",d&&"country-selector-dropdown__list-item--preferred",l&&"country-selector-dropdown__list-item--selected",c&&"country-selector-dropdown__list-item--focused"],rawClassNames:[u.listItemClassName]}),onClick:()=>v(s),style:u.listItemStyle,title:s.name},t.createElement(Fl,{iso2:s.iso2,src:null==h?void 0:h.src,className:El({addPrefix:["country-selector-dropdown__list-item-flag-emoji"],rawClassNames:[u.listItemFlagClassName]}),style:u.listItemFlagStyle}),t.createElement("span",{className:El({addPrefix:["country-selector-dropdown__list-item-country-name"],rawClassNames:[u.listItemCountryNameClassName]}),style:u.listItemCountryNameStyle},s.name),t.createElement("span",{className:El({addPrefix:["country-selector-dropdown__list-item-dial-code"],rawClassNames:[u.listItemDialCodeClassName]}),style:u.listItemDialCodeStyle},n,s.dialCode)),p?t.createElement("hr",{className:El({addPrefix:["country-selector-dropdown__preferred-list-divider"],rawClassNames:[u.preferredListDividerClassName]}),style:u.preferredListDividerStyle}):null)})))},Vl=({selectedCountry:e,onSelect:n,disabled:r,hideDropdown:i,countries:a=xl,preferredCountries:o=[],flags:s,renderButtonWrapper:l,...u})=>{let[c,d]=t.useState(!1),p=t.useMemo((()=>{if(e)return Ml({value:e,field:"iso2",countries:a})}),[a,e]),h=t.useRef(null),f=e=>{e.key&&["ArrowUp","ArrowDown"].includes(e.key)&&(e.preventDefault(),d(!0))};return t.createElement("div",{className:El({addPrefix:["country-selector"],rawClassNames:[u.className]}),style:u.style,ref:h},(()=>{var n;let a={title:null==p?void 0:p.name,onClick:()=>d((e=>!e)),onMouseDown:e=>e.preventDefault(),onKeyDown:f,disabled:i||r,role:"combobox","aria-label":"Country selector","aria-haspopup":"listbox","aria-expanded":c},o=t.createElement("div",{className:El({addPrefix:["country-selector-button__button-content"],rawClassNames:[u.buttonContentWrapperClassName]}),style:u.buttonContentWrapperStyle},t.createElement(Fl,{iso2:e,src:null==(n=null==s?void 0:s.find((t=>t.iso2===e)))?void 0:n.src,className:El({addPrefix:["country-selector-button__flag-emoji",r&&"country-selector-button__flag-emoji--disabled"],rawClassNames:[u.flagClassName]}),style:{visibility:e?"visible":"hidden",...u.flagStyle}}),!i&&t.createElement("div",{className:El({addPrefix:["country-selector-button__dropdown-arrow",r&&"country-selector-button__dropdown-arrow--disabled",c&&"country-selector-button__dropdown-arrow--active"],rawClassNames:[u.dropdownArrowClassName]}),style:u.dropdownArrowStyle}));return l?l({children:o,rootProps:a}):t.createElement("button",{...a,type:"button",className:El({addPrefix:["country-selector-button",c&&"country-selector-button--active",r&&"country-selector-button--disabled",i&&"country-selector-button--hide-dropdown"],rawClassNames:[u.buttonClassName]}),"data-country":e,style:u.buttonStyle},o)})(),t.createElement(Ll,{show:c,countries:a,preferredCountries:o,flags:s,onSelect:e=>{d(!1),null==n||n(e)},selectedCountry:e,onClose:()=>{d(!1)},...u.dropdownStyleProps}))},Nl=({dialCode:e,prefix:n,disabled:r,style:i,className:a})=>t.createElement("div",{className:El({addPrefix:["dial-code-preview",r&&"dial-code-preview--disabled"],rawClassNames:[a]}),style:i},`${n}${e}`);t.forwardRef((({value:e,onChange:n,countries:r=xl,preferredCountries:i=[],hideDropdown:a,showDisabledDialCodeAndPrefix:o,disableFocusAfterCountrySelect:s,flags:l,style:u,className:c,inputStyle:d,inputClassName:p,countrySelectorStyleProps:h,dialCodePreviewStyleProps:f,inputProps:m,placeholder:g,disabled:y,name:v,onFocus:b,onBlur:x,required:w,autoFocus:E,...k},S)=>{let{phone:D,inputValue:j,inputRef:C,country:R,setCountry:P,handlePhoneValueChange:$}=$l({value:e,countries:r,...k,onChange:e=>{null==n||n(e.phone,{country:e.country,inputValue:e.inputValue})}}),T=k.disableDialCodeAndPrefix&&o&&(null==R?void 0:R.dialCode);return t.useImperativeHandle(S,(()=>C.current?Object.assign(C.current,{setCountry:P,state:{phone:D,inputValue:j,country:R}}):null),[C,P,D,j,R]),t.createElement("div",{ref:S,className:El({addPrefix:["input-container"],rawClassNames:[c]}),style:u},t.createElement(Vl,{onSelect:e=>P(e.iso2,{focusOnInput:!s}),flags:l,selectedCountry:R.iso2,countries:r,preferredCountries:i,disabled:y,hideDropdown:a,...h}),T&&t.createElement(Nl,{dialCode:R.dialCode,prefix:k.prefix??"+",disabled:y,...f}),t.createElement("input",{onChange:$,value:j,type:"tel",ref:C,className:El({addPrefix:["input",y&&"input--disabled"],rawClassNames:[p]}),placeholder:g,disabled:y,style:d,name:v,onFocus:b,onBlur:x,autoFocus:E,required:w,...m}))}));const zl=n.styled.div`
|
|
139
|
+
`,kl=t.forwardRef((function({disabled:n=!1,error:r,label:i,name:a="input-tag",onChange:o,placeholder:s,required:l,tooltip:u,weight:c,value:d,...p},h){const f=t.useMemo((()=>d&&"string"==typeof d?d.split(",").filter(Boolean):[]),[d]);return e.jsxRuntimeExports.jsx(Qs,{error:r,htmlFor:a,label:i,required:l,tooltip:u,weight:c,children:e.jsxRuntimeExports.jsxs(Gs,{className:`${n?"disabled":""} ${r?"error":""}`,children:[f.map((t=>e.jsxRuntimeExports.jsx(Xs,{disabled:n,tagLabel:t},t))),e.jsxRuntimeExports.jsx(El,{"aria-hidden":!1,"aria-invalid":r?"true":"false","aria-label":a,"aria-required":l,autoComplete:"off",disabled:n,name:a,onChange:o,placeholder:0===f.length?s:void 0,ref:h,type:"text",value:d,...p})]})})})),Sl=t.forwardRef((function({disabled:t,icon:n,margin:r,onClick:i,...a},o){return e.jsxRuntimeExports.jsx(Fs,{$margin:r,"aria-label":n,className:"action-btn",disabled:t,onClick:i,ref:o,type:"button",...a,children:e.jsxRuntimeExports.jsx(e.Icon,{icon:n,iconClass:"action",iconSize:"xs",iconType:"fa-light"})})})),Dl=({error:r,decimalPlaces:i=0,disabled:a=!1,max:o=1/0,min:s=0,name:l="input-number",placeholder:u,ref:c,required:d,value:p,...h})=>{const f=n.useTheme(),m=t.useMemo((()=>i<0?0:i),[i]);return e.jsxRuntimeExports.jsxs(Gs,{className:`${a?"disabled":""} ${r?"error":""}`,children:[e.jsxRuntimeExports.jsx("input",{"aria-hidden":!1,"aria-invalid":r?"true":"false","aria-label":l,"aria-required":d,autoComplete:"off",disabled:a,max:o,min:s,placeholder:u,ref:c,required:void 0,step:10**-m,type:"number",value:/^-?\d+/u.test(String(p))?p:"",...h}),r&&e.jsxRuntimeExports.jsx(e.Icon,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:f.palette.error[500],iconSize:"xs"}),e.jsxRuntimeExports.jsx(Sl,{borderLeft:"inherit",borderRight:"inherit",disabled:a,icon:"minus",margin:"0 -0.625rem 0 0",px:.75,py:.75}),e.jsxRuntimeExports.jsx(Sl,{borderRadius:`0 ${f.spacing[.5]} ${f.spacing[.5]} 0`,disabled:a,icon:"plus",px:.75,py:.75})]})},jl=t.forwardRef((function({decimalPlaces:t,disabled:n=!1,error:r,helpLink:i,helpText:a,id:o,label:s,maxLength:l,max:u,min:c,name:d,onChange:p,placeholder:h,required:f,tooltip:m,weight:g,...y},v){return e.jsxRuntimeExports.jsx(Qs,{error:r,helpLink:i,helpText:a,htmlFor:d,label:s,maxLength:l,required:f,tooltip:m,weight:g,children:e.jsxRuntimeExports.jsx(Dl,{decimalPlaces:t,disabled:n,error:r,id:o,max:u,min:c,name:d,onChange:p,placeholder:h,ref:v,...y})})})),Cl=t.forwardRef((function({disabled:t=!1,error:n,name:r,label:i,propsMax:a,propsMin:o,required:s,tooltip:l},u){return e.jsxRuntimeExports.jsx(Qs,{error:n,htmlFor:r,label:i,required:s,tooltip:l,children:e.jsxRuntimeExports.jsxs(c,{display:"flex",gap:.25,width:"100%",children:[e.jsxRuntimeExports.jsx(Dl,{...o,disabled:t,error:n,ref:u}),e.jsxRuntimeExports.jsx(Dl,{...a,disabled:t,error:n,ref:u})]})})}));var Rl=[["Afghanistan","af","93"],["Albania","al","355"],["Algeria","dz","213"],["Andorra","ad","376"],["Angola","ao","244"],["Antigua and Barbuda","ag","1268"],["Argentina","ar","54","(..) ........",0],["Armenia","am","374",".. ......"],["Aruba","aw","297"],["Australia","au","61",{default:". .... ....","/^4/":"... ... ...","/^5(?!50)/":"... ... ...","/^1(3|8)00/":".... ... ...","/^13/":".. .. ..","/^180/":"... ...."},0,[]],["Austria","at","43"],["Azerbaijan","az","994","(..) ... .. .."],["Bahamas","bs","1242"],["Bahrain","bh","973"],["Bangladesh","bd","880"],["Barbados","bb","1246"],["Belarus","by","375","(..) ... .. .."],["Belgium","be","32","... .. .. .."],["Belize","bz","501"],["Benin","bj","229"],["Bhutan","bt","975"],["Bolivia","bo","591"],["Bosnia and Herzegovina","ba","387"],["Botswana","bw","267"],["Brazil","br","55","(..) ........."],["British Indian Ocean Territory","io","246"],["Brunei","bn","673"],["Bulgaria","bg","359"],["Burkina Faso","bf","226"],["Burundi","bi","257"],["Cambodia","kh","855"],["Cameroon","cm","237"],["Canada","ca","1","(...) ...-....",1,["204","226","236","249","250","289","306","343","365","387","403","416","418","431","437","438","450","506","514","519","548","579","581","587","604","613","639","647","672","705","709","742","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde","cv","238"],["Caribbean Netherlands","bq","599","",1],["Cayman Islands","ky","1","... ... ....",4,["345"]],["Central African Republic","cf","236"],["Chad","td","235"],["Chile","cl","56"],["China","cn","86","... .... ...."],["Colombia","co","57","... ... ...."],["Comoros","km","269"],["Congo","cd","243"],["Congo","cg","242"],["Costa Rica","cr","506","....-...."],["Côte d'Ivoire","ci","225",".. .. .. .. .."],["Croatia","hr","385"],["Cuba","cu","53"],["Curaçao","cw","599","",0],["Cyprus","cy","357",".. ......"],["Czech Republic","cz","420","... ... ..."],["Denmark","dk","45",".. .. .. .."],["Djibouti","dj","253"],["Dominica","dm","1767"],["Dominican Republic","do","1","(...) ...-....",2,["809","829","849"]],["Ecuador","ec","593"],["Egypt","eg","20"],["El Salvador","sv","503","....-...."],["Equatorial Guinea","gq","240"],["Eritrea","er","291"],["Estonia","ee","372",".... ......"],["Ethiopia","et","251"],["Fiji","fj","679"],["Finland","fi","358",".. ... .. .."],["France","fr","33",". .. .. .. .."],["French Guiana","gf","594"],["French Polynesia","pf","689"],["Gabon","ga","241"],["Gambia","gm","220"],["Georgia","ge","995"],["Germany","de","49","... ........."],["Ghana","gh","233"],["Greece","gr","30"],["Greenland","gl","299",".. .. .."],["Grenada","gd","1473"],["Guadeloupe","gp","590","",0],["Guam","gu","1671"],["Guatemala","gt","502","....-...."],["Guinea","gn","224"],["Guinea-Bissau","gw","245"],["Guyana","gy","592"],["Haiti","ht","509","....-...."],["Honduras","hn","504"],["Hong Kong","hk","852",".... ...."],["Hungary","hu","36"],["Iceland","is","354","... ...."],["India","in","91",".....-....."],["Indonesia","id","62"],["Iran","ir","98","... ... ...."],["Iraq","iq","964"],["Ireland","ie","353",".. ......."],["Israel","il","972","... ... ...."],["Italy","it","39","... .......",0],["Jamaica","jm","1876"],["Japan","jp","81",".. .... ...."],["Jordan","jo","962"],["Kazakhstan","kz","7","... ...-..-..",0],["Kenya","ke","254"],["Kiribati","ki","686"],["Kosovo","xk","383"],["Kuwait","kw","965"],["Kyrgyzstan","kg","996","... ... ..."],["Laos","la","856"],["Latvia","lv","371",".. ... ..."],["Lebanon","lb","961"],["Lesotho","ls","266"],["Liberia","lr","231"],["Libya","ly","218"],["Liechtenstein","li","423"],["Lithuania","lt","370"],["Luxembourg","lu","352"],["Macau","mo","853"],["Macedonia","mk","389"],["Madagascar","mg","261"],["Malawi","mw","265"],["Malaysia","my","60","..-....-...."],["Maldives","mv","960"],["Mali","ml","223"],["Malta","mt","356"],["Marshall Islands","mh","692"],["Martinique","mq","596"],["Mauritania","mr","222"],["Mauritius","mu","230"],["Mexico","mx","52","... ... ....",0],["Micronesia","fm","691"],["Moldova","md","373","(..) ..-..-.."],["Monaco","mc","377"],["Mongolia","mn","976"],["Montenegro","me","382"],["Morocco","ma","212"],["Mozambique","mz","258"],["Myanmar","mm","95"],["Namibia","na","264"],["Nauru","nr","674"],["Nepal","np","977"],["Netherlands","nl","31",{"/^06/":"(.). .........","/^6/":". .........","/^0(10|13|14|15|20|23|24|26|30|33|35|36|38|40|43|44|45|46|50|53|55|58|70|71|72|73|74|75|76|77|78|79|82|84|85|87|88|91)/":"(.).. ........","/^(10|13|14|15|20|23|24|26|30|33|35|36|38|40|43|44|45|46|50|53|55|58|70|71|72|73|74|75|76|77|78|79|82|84|85|87|88|91)/":".. ........","/^0/":"(.)... .......",default:"... ......."}],["New Caledonia","nc","687"],["New Zealand","nz","64","...-...-...."],["Nicaragua","ni","505"],["Niger","ne","227"],["Nigeria","ng","234"],["North Korea","kp","850"],["Norway","no","47","... .. ..."],["Oman","om","968"],["Pakistan","pk","92","...-......."],["Palau","pw","680"],["Palestine","ps","970"],["Panama","pa","507"],["Papua New Guinea","pg","675"],["Paraguay","py","595"],["Peru","pe","51"],["Philippines","ph","63",".... ......."],["Poland","pl","48","...-...-..."],["Portugal","pt","351"],["Puerto Rico","pr","1","(...) ...-....",3,["787","939"]],["Qatar","qa","974"],["Réunion","re","262"],["Romania","ro","40"],["Russia","ru","7","(...) ...-..-..",1],["Rwanda","rw","250"],["Saint Kitts and Nevis","kn","1869"],["Saint Lucia","lc","1758"],["Saint Vincent and the Grenadines","vc","1784"],["Samoa","ws","685"],["San Marino","sm","378"],["São Tomé and Príncipe","st","239"],["Saudi Arabia","sa","966"],["Senegal","sn","221"],["Serbia","rs","381"],["Seychelles","sc","248"],["Sierra Leone","sl","232"],["Singapore","sg","65","....-...."],["Slovakia","sk","421"],["Slovenia","si","386"],["Solomon Islands","sb","677"],["Somalia","so","252"],["South Africa","za","27"],["South Korea","kr","82","... .... ...."],["South Sudan","ss","211"],["Spain","es","34","... ... ..."],["Sri Lanka","lk","94"],["Sudan","sd","249"],["Suriname","sr","597"],["Swaziland","sz","268"],["Sweden","se","46","... ... ..."],["Switzerland","ch","41",".. ... .. .."],["Syria","sy","963"],["Taiwan","tw","886"],["Tajikistan","tj","992"],["Tanzania","tz","255"],["Thailand","th","66"],["Timor-Leste","tl","670"],["Togo","tg","228"],["Tonga","to","676"],["Trinidad and Tobago","tt","1868"],["Tunisia","tn","216"],["Turkey","tr","90","... ... .. .."],["Turkmenistan","tm","993"],["Tuvalu","tv","688"],["Uganda","ug","256"],["Ukraine","ua","380","(..) ... .. .."],["United Arab Emirates","ae","971"],["United Kingdom","gb","44",".... ......"],["United States","us","1","(...) ...-....",0],["Uruguay","uy","598"],["Uzbekistan","uz","998",".. ... .. .."],["Vanuatu","vu","678"],["Vatican City","va","39",".. .... ....",1],["Venezuela","ve","58"],["Vietnam","vn","84"],["Yemen","ye","967"],["Zambia","zm","260"],["Zimbabwe","zw","263"]],Pl=(...e)=>e.filter((e=>!!e)).join(" ").trim(),$l=({addPrefix:e,rawClassNames:t})=>Pl(((...e)=>Pl(...e).split(" ").map((e=>`react-international-phone-${e}`)).join(" "))(...e),...t),Tl=e=>!!e&&/^\d+$/.test(e),_l=e=>e.replace(/\D/g,""),Ml=({phone:e,prefix:t})=>e?`${t}${_l(e)}`:"";function Al({value:e,country:t,insertDialCodeOnEmpty:n,trimNonDigitsEnd:r,countries:i,prefix:a,charAfterDialCode:o,forceDialCode:s,disableDialCodeAndPrefix:l,defaultMask:u,countryGuessingEnabled:c,disableFormatting:d}){let p=e;l&&(p=p.startsWith(`${a}`)?p:`${a}${t.dialCode}${p}`);let h=c?Bl({phone:p,countries:i,currentCountryIso2:null==t?void 0:t.iso2}):void 0,f=(null==h?void 0:h.country)??t,m=((e,t)=>{let n=!t.disableDialCodeAndPrefix&&t.forceDialCode,r=!t.disableDialCodeAndPrefix&&t.insertDialCodeOnEmpty,i=e,a=e=>t.trimNonDigitsEnd?e.trim():e;if(!i)return r&&!i.length||n?a(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`):a(i);if(i=_l(i),i===t.dialCode&&!t.disableDialCodeAndPrefix)return a(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`);if(t.dialCode.startsWith(i)&&!t.disableDialCodeAndPrefix)return a(n?`${t.prefix}${t.dialCode}${t.charAfterDialCode}`:`${t.prefix}${i}`);if(!i.startsWith(t.dialCode)&&!t.disableDialCodeAndPrefix){if(n)return a(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`);if(i.length<t.dialCode.length)return a(`${t.prefix}${i}`)}let{phoneLeftSide:o,phoneRightSide:s}=(()=>{let e=t.dialCode.length;return{phoneLeftSide:i.slice(0,e),phoneRightSide:i.slice(e)}})();return o=`${t.prefix}${o}${t.charAfterDialCode}`,s=(({value:e,mask:t,maskSymbol:n,offset:r=0,trimNonMaskCharsLeftover:i=!1})=>{if(e.length<r)return e;let a=e.slice(0,r),o=e.slice(r),s=a,l=0;for(let u of t.split("")){if(l>=o.length){if(!i&&u!==n){s+=u;continue}break}u===n?(s+=o[l],l+=1):s+=u}return s})({value:s,mask:t.mask,maskSymbol:t.maskChar,trimNonMaskCharsLeftover:t.trimNonDigitsEnd||t.disableDialCodeAndPrefix&&0===s.length}),t.disableDialCodeAndPrefix&&(o=""),a(`${o}${s}`)})(p,{prefix:a,mask:Vl({phone:p,country:f,defaultMask:u,disableFormatting:d}),maskChar:Ol,dialCode:f.dialCode,trimNonDigitsEnd:r,charAfterDialCode:o,forceDialCode:s,insertDialCodeOnEmpty:n,disableDialCodeAndPrefix:l}),g=c&&!(null==h?void 0:h.fullDialCodeMatch)?t:f;return{phone:Ml({phone:l?`${g.dialCode}${m}`:m,prefix:a}),inputValue:m,country:g}}var Il={size:20,overrideLastItemDebounceMS:-1};var Ol=".",Fl=Rl,Ll=({defaultCountry:e="us",value:n="",countries:r=Fl,prefix:i="+",defaultMask:a="............",charAfterDialCode:o=" ",historySaveDebounceMS:s=200,disableCountryGuess:l=false,disableDialCodePrefill:u=false,forceDialCode:c=false,disableDialCodeAndPrefix:d=false,disableFormatting:p=false,onChange:h,inputRef:f})=>{let m={countries:r,prefix:i,charAfterDialCode:o,forceDialCode:!d&&c,disableDialCodeAndPrefix:d,defaultMask:a,countryGuessingEnabled:!l,disableFormatting:p},g=t.useRef(null),y=f||g,v=e=>{Promise.resolve().then((()=>{var t;typeof window>"u"||y.current!==(null==document?void 0:document.activeElement)||null==(t=y.current)||t.setSelectionRange(e,e)}))},[{phone:b,inputValue:x,country:w},E,k,S]=function(e,n){let{size:r,overrideLastItemDebounceMS:i,onChange:a}={...Il,...n},[o,s]=t.useState(e),[l,u]=t.useState([o]),[c,d]=t.useState(0),p=(()=>{let e=t.useRef(),n=t.useRef(Date.now());return{check:()=>{let t=Date.now(),r=e.current?t-n.current:void 0;return e.current=n.current,n.current=t,r}}})();return[o,(e,t)=>{if("object"==typeof e&&"object"==typeof o&&((e,t)=>{let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i of n)if(e[i]!==t[i])return!1;return!0})(e,o)||e===o)return;let n=i>0,h=p.check(),f=!n||void 0===h||h>i;if(void 0!==(null==t?void 0:t.overrideLastItem)?t.overrideLastItem:!f)u((t=>[...t.slice(0,c),e]));else{let t=l.length>=r;u((n=>[...n.slice(t?1:0,c+1),e])),t||d((e=>e+1))}s(e),null==a||a(e)},()=>{if(c<=0)return{success:!1};let e=l[c-1];return s(e),d((e=>e-1)),null==a||a(e),{success:!0,value:e}},()=>{if(c+1>=l.length)return{success:!1};let e=l[c+1];return s(e),d((e=>e+1)),null==a||a(e),{success:!0,value:e}}]}((()=>{let t=zl({value:e,field:"iso2",countries:r}),i=t||zl({value:"us",field:"iso2",countries:r}),{phone:a,inputValue:o,country:s}=Al({value:n,country:i,insertDialCodeOnEmpty:!u,...m});return v(o.length),{phone:a,inputValue:o,country:s.iso2}}),{overrideLastItemDebounceMS:s,onChange:({inputValue:e,phone:t,country:n})=>{if(!h)return;let r=D(n);h({phone:t,inputValue:e,country:r})}}),D=t.useCallback((e=>zl({value:e,field:"iso2",countries:r})),[r]),j=t.useMemo((()=>D(w)),[w,D]);t.useEffect((()=>{let e=y.current;if(!e)return;let t=e=>{if(!e.key)return;let t=e.ctrlKey,n=e.metaKey,r=e.shiftKey;if("z"===e.key.toLowerCase()){if(typeof window>"u"||!window.navigator.userAgent.toLowerCase().includes("macintosh")){if(!t)return}else if(!n)return;r?S():k()}};return e.addEventListener("keydown",t),()=>{e.removeEventListener("keydown",t)}}),[y,k,S]);let[C,R]=t.useState(!1);return t.useEffect((()=>{if(!C)return R(!0),void(n!==b&&(null==h||h({inputValue:x,phone:b,country:j})));if(n===b)return;let{phone:e,inputValue:t,country:r}=Al({value:n,country:j,insertDialCodeOnEmpty:!u,...m});E({phone:e,inputValue:t,country:r.iso2})}),[n]),{phone:b,inputValue:x,country:j,setCountry:(e,t={focusOnInput:!1})=>{let n=zl({value:e,field:"iso2",countries:r});if(!n)return;let a=d?"":`${i}${n.dialCode}${o}`;E({inputValue:a,phone:`${i}${n.dialCode}`,country:n.iso2}),t.focusOnInput&&Promise.resolve().then((()=>{var e;null==(e=y.current)||e.focus()}))},handlePhoneValueChange:e=>{e.preventDefault();let{phone:t,inputValue:r,country:i,cursorPosition:a}=((e,{country:t,insertDialCodeOnEmpty:n,phoneBeforeInput:r,prefix:i,charAfterDialCode:a,forceDialCode:o,disableDialCodeAndPrefix:s,countryGuessingEnabled:l,defaultMask:u,disableFormatting:c,countries:d})=>{let p=e.nativeEvent,h=p.inputType,f=(e=>{if(null==e?void 0:e.toLocaleLowerCase().includes("delete"))return(null==e?void 0:e.toLocaleLowerCase().includes("forward"))?"forward":"backward"})(h),m=!!(null==h?void 0:h.startsWith("insertFrom")),g="insertText"===h,y=(null==p?void 0:p.data)||void 0,v=e.target.value,b=e.target.selectionStart??0;if(null==h?void 0:h.includes("history"))return{inputValue:r,phone:Ml({phone:r,prefix:i}),cursorPosition:r.length,country:t};if(g&&!Tl(y)&&v!==i)return{inputValue:r,phone:Ml({phone:s?`${t.dialCode}${r}`:r,prefix:i}),cursorPosition:b-((null==y?void 0:y.length)??0),country:t};if(o&&!v.startsWith(`${i}${t.dialCode}`)&&!m){let e=v?r:`${i}${t.dialCode}${a}`;return{inputValue:e,phone:Ml({phone:e,prefix:i}),cursorPosition:i.length+t.dialCode.length+a.length,country:t}}let{phone:x,inputValue:w,country:E}=Al({value:v,country:t,trimNonDigitsEnd:"backward"===f,insertDialCodeOnEmpty:n,countryGuessingEnabled:l,countries:d,prefix:i,charAfterDialCode:a,forceDialCode:o,disableDialCodeAndPrefix:s,disableFormatting:c,defaultMask:u});return{phone:x,inputValue:w,cursorPosition:(({phoneBeforeInput:e,phoneAfterInput:t,phoneAfterFormatted:n,cursorPositionAfterInput:r,leftOffset:i=0,deletion:a})=>{if(r<i)return i;if(!e)return n.length;let o=null;for(let c=r-1;c>=0;c-=1)if(Tl(t[c])){o=c;break}if(null===o){for(let e=0;e<t.length;e+=1)if(Tl(n[e]))return e;return t.length}let s=0;for(let c=0;c<o;c+=1)Tl(t[c])&&(s+=1);let l=0,u=0;for(let c=0;c<n.length&&(l+=1,Tl(n[c])&&(u+=1),!(u>=s+1));c+=1);if("backward"!==a)for(;!Tl(n[l])&&l<n.length;)l+=1;return l})({cursorPositionAfterInput:b,phoneBeforeInput:r,phoneAfterInput:v,phoneAfterFormatted:w,leftOffset:o?i.length+t.dialCode.length+a.length:0,deletion:f}),country:E}})(e,{country:j,phoneBeforeInput:x,insertDialCodeOnEmpty:!1,...m});return E({inputValue:r,phone:t,country:i.iso2}),v(a),n},inputRef:y}},Vl=({phone:e,country:t,defaultMask:n="............",disableFormatting:r=!1})=>{let i=t.format,a=e=>r?e.replace(new RegExp(`[^${Ol}]`,"g"),""):e;if(!i)return a(n);if("string"==typeof i)return a(i);if(!i.default)return a(n);let o=Object.keys(i).find((n=>{if("default"===n)return!1;if("/"!==n.charAt(0)||"/"!==n.charAt(n.length-1))return!1;let r=new RegExp(n.substring(1,n.length-1)),i=e.replace(t.dialCode,"");return r.test(_l(i))}));return a(o?i[o]:i.default)},Nl=e=>{let[t,n,r,i,a,o]=e;return{name:t,iso2:n,dialCode:r,format:i,priority:a,areaCodes:o}},zl=({field:e,value:t,countries:n=Rl})=>{if(["priority"].includes(e))throw new Error(`Field "${e}" is not supported`);let r=n.find((n=>{let r=Nl(n);return t===r[e]}));if(r)return Nl(r)},Bl=({phone:e,countries:t=Rl,currentCountryIso2:n})=>{var r;let i={country:void 0,fullDialCodeMatch:!1};if(!e)return i;let a=_l(e);if(!a)return i;let o=i,s=({country:e,fullDialCodeMatch:t})=>{var n,r;let i=e.dialCode===(null==(n=o.country)?void 0:n.dialCode),a=(e.priority??0)<((null==(r=o.country)?void 0:r.priority)??0);(!i||a)&&(o={country:e,fullDialCodeMatch:t})};for(let l of t){let e=Nl(l),{dialCode:t,areaCodes:n}=e;if(a.startsWith(t)){let r=!o.country||Number(t)>=Number(o.country.dialCode);if(n){let r=a.substring(t.length);for(let t of n)if(r.startsWith(t))return{country:e,fullDialCodeMatch:!0}}(r||t===a||!o.fullDialCodeMatch)&&s({country:e,fullDialCodeMatch:!0})}o.fullDialCodeMatch||a.length<t.length&&t.startsWith(a)&&(!o.country||Number(t)<=Number(o.country.dialCode))&&s({country:e,fullDialCodeMatch:!1})}if(n){let e=zl({value:n,field:"iso2",countries:t});if(!e)return o;let i=!!e&&(e=>{if(!(null==e?void 0:e.areaCodes))return!1;let t=a.substring(e.dialCode.length);return e.areaCodes.some((e=>e.startsWith(t)))})(e);o&&(null==(r=o.country)?void 0:r.dialCode)===e.dialCode&&o.country!==e&&o.fullDialCodeMatch&&(!e.areaCodes||i)&&(o={country:e,fullDialCodeMatch:!0})}return o},Ul=(e,t)=>{let n=parseInt(e,16);return Number(n+t).toString(16)},Wl="abcdefghijklmnopqrstuvwxyz".split("").reduce(((e,t,n)=>({...e,[t]:Ul("1f1e6",n)})),{}),ql=({iso2:e,size:n,src:r,protocol:i="https",disableLazyLoading:a,className:o,style:s,...l})=>e?t.createElement("img",{className:$l({addPrefix:["flag-emoji"],rawClassNames:[o]}),src:(()=>{if(r)return r;let t=[Wl[(n=e)[0]],Wl[n[1]]].join("-");var n;return`${i}://cdnjs.cloudflare.com/ajax/libs/twemoji/14.0.2/svg/${t}.svg`})(),width:n,height:n,draggable:!1,"data-country":e,loading:a?void 0:"lazy",style:{width:n,height:n,...s},alt:"",...l}):t.createElement("img",{className:$l({addPrefix:["flag-emoji"],rawClassNames:[o]}),width:n,height:n,...l}),Kl=({show:e,dialCodePrefix:n="+",selectedCountry:r,countries:i=Rl,preferredCountries:a=[],flags:o,onSelect:s,onClose:l,...u})=>{let c=t.useRef(null),d=t.useRef(),p=t.useMemo((()=>{if(!a||!a.length)return i;let e=[],t=[...i];for(let n of a){let r=t.findIndex((e=>Nl(e).iso2===n));if(-1!==r){let n=t.splice(r,1)[0];e.push(n)}}return e.concat(t)}),[i,a]),h=t.useRef({updatedAt:void 0,value:""}),f=t.useCallback((e=>p.findIndex((t=>Nl(t).iso2===e))),[p]),[m,g]=t.useState(f(r)),y=()=>{d.current!==r&&g(f(r))},v=t.useCallback((e=>{g(f(e.iso2)),null==s||s(e)}),[s,f]),b=e=>{let t=p.length-1;g((n=>{let r=(i=n,"prev"===e?i-1:"next"===e?i+1:"last"===e?t:0);var i;return r<0?0:r>t?t:r}))},x=t.useCallback((()=>{if(!c.current||void 0===m)return;let e=Nl(p[m]).iso2;if(e===d.current)return;let t=c.current.querySelector(`[data-country="${e}"]`);t&&(((e,t)=>{let n=e.style.display;"block"!==n&&(e.style.display="block");let r=e.getBoundingClientRect(),i=t.getBoundingClientRect(),a=i.top-r.top,o=r.bottom-i.bottom;a>=0&&o>=0||(Math.abs(a)<Math.abs(o)?e.scrollTop+=a:e.scrollTop-=o),e.style.display=n})(c.current,t),d.current=e)}),[m,p]);return t.useEffect((()=>{x()}),[m,x]),t.useEffect((()=>{c.current&&(e?c.current.focus():y())}),[e]),t.useEffect((()=>{y()}),[r]),t.createElement("ul",{ref:c,role:"listbox",className:$l({addPrefix:["country-selector-dropdown"],rawClassNames:[u.className]}),style:{display:e?"block":"none",...u.style},onKeyDown:e=>{if(e.stopPropagation(),"Enter"!==e.key){if("Escape"!==e.key)return"ArrowUp"===e.key?(e.preventDefault(),void b("prev")):"ArrowDown"===e.key?(e.preventDefault(),void b("next")):"PageUp"===e.key?(e.preventDefault(),void b("first")):"PageDown"===e.key?(e.preventDefault(),void b("last")):(" "===e.key&&e.preventDefault(),void(1===e.key.length&&!e.altKey&&!e.ctrlKey&&!e.metaKey&&(e=>{let t=h.current.updatedAt&&(new Date).getTime()-h.current.updatedAt.getTime()>1e3;h.current={value:t?e:`${h.current.value}${e}`,updatedAt:new Date};let n=p.findIndex((e=>Nl(e).name.toLowerCase().startsWith(h.current.value)));-1!==n&&g(n)})(e.key.toLocaleLowerCase())));null==l||l()}else{e.preventDefault();let t=Nl(p[m]);v(t)}},onBlur:l,tabIndex:-1,"aria-activedescendant":`react-international-phone__${Nl(p[m]).iso2}-option`},p.map(((e,i)=>{let s=Nl(e),l=s.iso2===r,c=i===m,d=a.includes(s.iso2),p=i===a.length-1,h=null==o?void 0:o.find((e=>e.iso2===s.iso2));return t.createElement(t.Fragment,{key:s.iso2},t.createElement("li",{"data-country":s.iso2,role:"option","aria-selected":l,"aria-label":`${s.name} ${n}${s.dialCode}`,id:`react-international-phone__${s.iso2}-option`,className:$l({addPrefix:["country-selector-dropdown__list-item",d&&"country-selector-dropdown__list-item--preferred",l&&"country-selector-dropdown__list-item--selected",c&&"country-selector-dropdown__list-item--focused"],rawClassNames:[u.listItemClassName]}),onClick:()=>v(s),style:u.listItemStyle,title:s.name},t.createElement(ql,{iso2:s.iso2,src:null==h?void 0:h.src,className:$l({addPrefix:["country-selector-dropdown__list-item-flag-emoji"],rawClassNames:[u.listItemFlagClassName]}),style:u.listItemFlagStyle}),t.createElement("span",{className:$l({addPrefix:["country-selector-dropdown__list-item-country-name"],rawClassNames:[u.listItemCountryNameClassName]}),style:u.listItemCountryNameStyle},s.name),t.createElement("span",{className:$l({addPrefix:["country-selector-dropdown__list-item-dial-code"],rawClassNames:[u.listItemDialCodeClassName]}),style:u.listItemDialCodeStyle},n,s.dialCode)),p?t.createElement("hr",{className:$l({addPrefix:["country-selector-dropdown__preferred-list-divider"],rawClassNames:[u.preferredListDividerClassName]}),style:u.preferredListDividerStyle}):null)})))},Hl=({selectedCountry:e,onSelect:n,disabled:r,hideDropdown:i,countries:a=Rl,preferredCountries:o=[],flags:s,renderButtonWrapper:l,...u})=>{let[c,d]=t.useState(!1),p=t.useMemo((()=>{if(e)return zl({value:e,field:"iso2",countries:a})}),[a,e]),h=t.useRef(null),f=e=>{e.key&&["ArrowUp","ArrowDown"].includes(e.key)&&(e.preventDefault(),d(!0))};return t.createElement("div",{className:$l({addPrefix:["country-selector"],rawClassNames:[u.className]}),style:u.style,ref:h},(()=>{var n;let a={title:null==p?void 0:p.name,onClick:()=>d((e=>!e)),onMouseDown:e=>e.preventDefault(),onKeyDown:f,disabled:i||r,role:"combobox","aria-label":"Country selector","aria-haspopup":"listbox","aria-expanded":c},o=t.createElement("div",{className:$l({addPrefix:["country-selector-button__button-content"],rawClassNames:[u.buttonContentWrapperClassName]}),style:u.buttonContentWrapperStyle},t.createElement(ql,{iso2:e,src:null==(n=null==s?void 0:s.find((t=>t.iso2===e)))?void 0:n.src,className:$l({addPrefix:["country-selector-button__flag-emoji",r&&"country-selector-button__flag-emoji--disabled"],rawClassNames:[u.flagClassName]}),style:{visibility:e?"visible":"hidden",...u.flagStyle}}),!i&&t.createElement("div",{className:$l({addPrefix:["country-selector-button__dropdown-arrow",r&&"country-selector-button__dropdown-arrow--disabled",c&&"country-selector-button__dropdown-arrow--active"],rawClassNames:[u.dropdownArrowClassName]}),style:u.dropdownArrowStyle}));return l?l({children:o,rootProps:a}):t.createElement("button",{...a,type:"button",className:$l({addPrefix:["country-selector-button",c&&"country-selector-button--active",r&&"country-selector-button--disabled",i&&"country-selector-button--hide-dropdown"],rawClassNames:[u.buttonClassName]}),"data-country":e,style:u.buttonStyle},o)})(),t.createElement(Kl,{show:c,countries:a,preferredCountries:o,flags:s,onSelect:e=>{d(!1),null==n||n(e)},selectedCountry:e,onClose:()=>{d(!1)},...u.dropdownStyleProps}))},Zl=({dialCode:e,prefix:n,disabled:r,style:i,className:a})=>t.createElement("div",{className:$l({addPrefix:["dial-code-preview",r&&"dial-code-preview--disabled"],rawClassNames:[a]}),style:i},`${n}${e}`);t.forwardRef((({value:e,onChange:n,countries:r=Rl,preferredCountries:i=[],hideDropdown:a,showDisabledDialCodeAndPrefix:o,disableFocusAfterCountrySelect:s,flags:l,style:u,className:c,inputStyle:d,inputClassName:p,countrySelectorStyleProps:h,dialCodePreviewStyleProps:f,inputProps:m,placeholder:g,disabled:y,name:v,onFocus:b,onBlur:x,required:w,autoFocus:E,...k},S)=>{let{phone:D,inputValue:j,inputRef:C,country:R,setCountry:P,handlePhoneValueChange:$}=Ll({value:e,countries:r,...k,onChange:e=>{null==n||n(e.phone,{country:e.country,inputValue:e.inputValue})}}),T=k.disableDialCodeAndPrefix&&o&&(null==R?void 0:R.dialCode);return t.useImperativeHandle(S,(()=>C.current?Object.assign(C.current,{setCountry:P,state:{phone:D,inputValue:j,country:R}}):null),[C,P,D,j,R]),t.createElement("div",{ref:S,className:$l({addPrefix:["input-container"],rawClassNames:[c]}),style:u},t.createElement(Hl,{onSelect:e=>P(e.iso2,{focusOnInput:!s}),flags:l,selectedCountry:R.iso2,countries:r,preferredCountries:i,disabled:y,hideDropdown:a,...h}),T&&t.createElement(Zl,{dialCode:R.dialCode,prefix:k.prefix??"+",disabled:y,...f}),t.createElement("input",{onChange:$,value:j,type:"tel",ref:C,className:$l({addPrefix:["input",y&&"input--disabled"],rawClassNames:[p]}),placeholder:g,disabled:y,style:d,name:v,onFocus:b,onBlur:x,autoFocus:E,required:w,...m}))}));const Gl=n.styled.div`
|
|
140
140
|
${({theme:e})=>`\n align-items: flex-start;\n align-self: stretch;\n display: flex;\n gap: ${e.spacing[.5]};\n\n > button, div {\n border: 1px solid ${e.palette.gray[300]};\n border-radius: ${e.spacing[.5]};\n }\n\n &.disabled {\n > button, div {\n background: ${e.palette.gray[100]};\n color: ${e.palette.gray[400]};\n cursor: not-allowed;\n }\n }\n\n &.error:not(.disabled) {\n > button, div {\n border: 1px solid ${e.palette.error[500]};\n }\n }\n\n &:focus-within:not(.disabled, .error) {\n > button, div {\n background: ${e.palette.white};\n border: 2px solid ${e.palette.black};\n }\n }\n\n &:hover:not(:focus-within, .disabled, .error) {\n > button, div {\n background: ${e.palette.white};\n border-color: ${e.palette.gray[600]};\n }\n }\n `}
|
|
141
|
-
`,
|
|
141
|
+
`,Yl=n.styled.button`
|
|
142
142
|
${({theme:e})=>`\n align-items: center;\n background: inherit;\n border-color: inherit;\n display: flex;\n gap: ${e.spacing[.25]};\n height: 40px;\n min-width: 67px;\n padding: ${e.spacing[.625]} ${e.spacing[1]};\n\n &:disabled {\n background: ${e.palette.gray[100]};\n cursor: not-allowed;\n }\n `}
|
|
143
|
-
`,
|
|
143
|
+
`,Jl=n.styled.ul`
|
|
144
144
|
${({theme:e})=>`\n align-items: flex-start;\n box-shadow: ${e.shadows.md};\n display: flex;\n flex-direction: column;\n max-height: 190px;\n overflow: hidden auto;\n scrollbar-color: ${e.palette.gray[600]} ${e.palette.gray[100]};\n scroll-padding: ${e.spacing[.5]};\n scrollbar-width: thin;\n width: max-content;\n `}
|
|
145
|
-
`,
|
|
145
|
+
`,Xl=n.styled.li`
|
|
146
146
|
${({theme:e})=>`\n align-items: center;\n background: ${e.palette.white};\n cursor: pointer;\n display: inline-flex;\n font-size: ${e.typography.text.sm};\n gap: ${e.spacing[.5]};\n height: 38px;\n line-height: ${e.spacing[1.25]};\n padding: ${e.spacing[.5]} ${e.spacing[1]};\n width: 190px;\n\n &:hover {\n background: ${e.palette.gray[100]};\n }\n `}
|
|
147
|
-
`,
|
|
147
|
+
`,Ql=n.styled.p`
|
|
148
148
|
color: ${({theme:e})=>e.palette.gray[800]};
|
|
149
149
|
font-size: inherit;
|
|
150
150
|
min-width: 55%;
|
|
151
151
|
overflow: hidden;
|
|
152
152
|
text-overflow: ellipsis;
|
|
153
153
|
white-space: nowrap;
|
|
154
|
-
`,Kl=(e,n,r=!1)=>{t.useEffect((()=>{var t;const i=t=>{e&&!e.contains(t.target)&&n()};return r?(document.addEventListener("click",i,!0),()=>{document.removeEventListener("click",i,!0)}):(null==(t=document.getElementById("root"))||t.addEventListener("click",i,!0),()=>{var e;null==(e=document.getElementById("root"))||e.removeEventListener("click",i,!0)})}),[r,e,n])},Hl=t.forwardRef((function({disabled:r,error:i,label:o,name:s,required:l,tooltip:u,value:c,weight:d,...p},h){const f=n.useTheme(),[m,g]=t.useState(!1),[y,v]=t.useState(""),b=t.useRef(null),{refs:x,floatingStyles:w}=e.useFloating({placement:"bottom-start",whileElementsMounted:e.autoUpdate}),{inputValue:E,handlePhoneValueChange:k,country:S,setCountry:D}=$l({countries:xl,defaultCountry:"us",value:c?String(c):void 0}),j=t.useCallback((()=>{g((e=>!e)),m||v("")}),[m]),C=t.useCallback((e=>()=>{D(e),g(!1),v("")}),[D,g]),R=t.useCallback((e=>{1===e.key.length?v((t=>t+e.key)):"Backspace"===e.key&&v((e=>e.slice(0,-1)))}),[]),P=xl.filter((e=>{const{name:t}=_l(e);return t.toLowerCase().includes(y.toLowerCase())}));return Kl(x.floating.current,(()=>{g(!1),v("")}),!0),e.jsxRuntimeExports.jsx(us,{error:i,htmlFor:s,label:o,required:l,tooltip:u,weight:d,children:e.jsxRuntimeExports.jsxs(zl,{className:`${r?"disabled":""} ${i?"error":""}`,ref:b,children:[e.jsxRuntimeExports.jsxs(Bl,{"aria-label":"country-selector","data-testid":"country-selector",disabled:r,id:"country-selector",onClick:j,onKeyDown:R,ref:x.setReference,children:[e.jsxRuntimeExports.jsx(Fl,{iso2:S.iso2,size:"16px"}),e.jsxRuntimeExports.jsx(e.Icon,{icon:"angle-down",iconColor:f.palette.gray[400],iconSize:"xs",iconType:"fa-light"})]}),e.jsxRuntimeExports.jsxs(as,{className:`${r?"disabled":""} ${i?"error":""}`,children:[e.jsxRuntimeExports.jsx("input",{"aria-hidden":!1,"aria-invalid":i?"true":"false","aria-label":s,"aria-required":l,autoComplete:"off","data-testid":`${s}-input`,disabled:r,id:s,name:s,onChange:k,ref:h,type:"tel",value:E,...p}),i?e.jsxRuntimeExports.jsx(e.Icon,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:f.palette.error[500],iconSize:"xs"}):void 0]}),m&&a.createPortal(e.jsxRuntimeExports.jsx(Ul,{ref:x.setFloating,style:w,children:P.map((t=>{const{dialCode:n,iso2:r,name:i}=_l(t);return e.jsxRuntimeExports.jsxs(Wl,{onClick:C(r),value:r,children:[e.jsxRuntimeExports.jsx(Fl,{iso2:r,size:"16px"}),e.jsxRuntimeExports.jsx(ql,{children:i}),e.jsxRuntimeExports.jsx(e.Text,{color:f.palette.gray[400],size:"sm",sizeSm:"xs",textAlign:"end",children:"+"+n})]},r)}))}),document.getElementById("root")??document.body)]})})})),Zl=t.forwardRef((function({disabled:t=!1,error:r,helpLink:i,helpText:a,label:o,name:s="input-text",id:l,maskValue:u=!1,maxLength:c,placeholder:d,required:p,rows:h,tooltip:f,value:m,weight:g,...y},v){const b=n.useTheme();return e.jsxRuntimeExports.jsx(us,{error:r,helpLink:i,helpText:a,htmlFor:s,label:o,maxLength:c,required:p,tooltip:f,value:m?String(m):void 0,weight:g,children:e.jsxRuntimeExports.jsxs(as,{className:`${t?"disabled":""} ${r?"error":""}`,children:[e.jsxRuntimeExports.jsx("textarea",{"aria-hidden":!1,"aria-invalid":r?"true":"false","aria-label":s,"aria-required":p,className:u?"sr-block":"","data-testid":`${s}-text-area`,disabled:t,id:l??s,maxLength:c,name:s,placeholder:d,ref:v,rows:h,value:m,...y}),r?e.jsxRuntimeExports.jsx(e.Icon,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:b.palette.error[500],iconSize:"xs"}):void 0]})})}));var Gl="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Yl={exports:{}};!function(e,t){var n="__lodash_hash_undefined__",r=9007199254740991,i="[object Arguments]",a="[object Boolean]",o="[object Date]",s="[object Function]",l="[object GeneratorFunction]",u="[object Map]",c="[object Number]",d="[object Object]",p="[object Promise]",h="[object RegExp]",f="[object Set]",m="[object String]",g="[object Symbol]",y="[object WeakMap]",v="[object ArrayBuffer]",b="[object DataView]",x="[object Float32Array]",w="[object Float64Array]",E="[object Int8Array]",k="[object Int16Array]",S="[object Int32Array]",D="[object Uint8Array]",j="[object Uint8ClampedArray]",C="[object Uint16Array]",R="[object Uint32Array]",P=/\w*$/,$=/^\[object .+?Constructor\]$/,T=/^(?:0|[1-9]\d*)$/,_={};_[i]=_["[object Array]"]=_[v]=_[b]=_[a]=_[o]=_[x]=_[w]=_[E]=_[k]=_[S]=_[u]=_[c]=_[d]=_[h]=_[f]=_[m]=_[g]=_[D]=_[j]=_[C]=_[R]=!0,_["[object Error]"]=_[s]=_[y]=!1;var M="object"==typeof Gl&&Gl&&Gl.Object===Object&&Gl,A="object"==typeof self&&self&&self.Object===Object&&self,I=M||A||Function("return this")(),O=t&&!t.nodeType&&t,F=O&&e&&!e.nodeType&&e,L=F&&F.exports===O;function V(e,t){return e.set(t[0],t[1]),e}function N(e,t){return e.add(t),e}function z(e,t,n,r){for(var i=-1,a=e?e.length:0;++i<a;)n=t(n,e[i],i,e);return n}function B(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(n){}return t}function U(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function W(e,t){return function(n){return e(t(n))}}function q(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var K,H=Array.prototype,Z=Function.prototype,G=Object.prototype,Y=I["__core-js_shared__"],J=(K=/[^.]+$/.exec(Y&&Y.keys&&Y.keys.IE_PROTO||""))?"Symbol(src)_1."+K:"",X=Z.toString,Q=G.hasOwnProperty,ee=G.toString,te=RegExp("^"+X.call(Q).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ne=L?I.Buffer:void 0,re=I.Symbol,ie=I.Uint8Array,ae=W(Object.getPrototypeOf,Object),oe=Object.create,se=G.propertyIsEnumerable,le=H.splice,ue=Object.getOwnPropertySymbols,ce=ne?ne.isBuffer:void 0,de=W(Object.keys,Object),pe=Ie(I,"DataView"),he=Ie(I,"Map"),fe=Ie(I,"Promise"),me=Ie(I,"Set"),ge=Ie(I,"WeakMap"),ye=Ie(Object,"create"),ve=Ne(pe),be=Ne(he),xe=Ne(fe),we=Ne(me),Ee=Ne(ge),ke=re?re.prototype:void 0,Se=ke?ke.valueOf:void 0;function De(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function je(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ce(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Re(e){this.__data__=new je(e)}function Pe(e,t,n){var r=e[t];Q.call(e,t)&&ze(r,n)&&(void 0!==n||t in e)||(e[t]=n)}function $e(e,t){for(var n=e.length;n--;)if(ze(e[n][0],t))return n;return-1}function Te(e,t,n,r,p,y,$){var T;if(r&&(T=y?r(e,p,y,$):r(e)),void 0!==T)return T;if(!Ke(e))return e;var M,A,I,O=Be(e);if(O){if(A=(M=e).length,I=M.constructor(A),A&&"string"==typeof M[0]&&Q.call(M,"index")&&(I.index=M.index,I.input=M.input),T=I,!t)return function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}(e,T)}else{var F=Fe(e),L=F==s||F==l;if(We(e))return function(e,t){if(t)return e.slice();var n=new e.constructor(e.length);return e.copy(n),n}(e,t);if(F==d||F==i||L&&!y){if(B(e))return y?e:{};if(T=function(e){return"function"!=typeof e.constructor||Ve(e)?{}:Ke(t=ae(e))?oe(t):{};var t}(L?{}:e),!t)return function(e,t){return Me(e,Oe(e),t)}(e,function(e,t){return e&&Me(t,He(t),e)}(T,e))}else{if(!_[F])return y?e:{};T=function(e,t,n,r){var i,s,l,d=e.constructor;switch(t){case v:return _e(e);case a:case o:return new d(+e);case b:return i=e,s=r?_e(i.buffer):i.buffer,new i.constructor(s,i.byteOffset,i.byteLength);case x:case w:case E:case k:case S:case D:case j:case C:case R:return function(e,t){var n=t?_e(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}(e,r);case u:return function(e,t,n){return z(t?n(U(e),!0):U(e),V,new e.constructor)}(e,r,n);case c:case m:return new d(e);case h:return function(e){var t=new e.constructor(e.source,P.exec(e));return t.lastIndex=e.lastIndex,t}(e);case f:return function(e,t,n){return z(t?n(q(e),!0):q(e),N,new e.constructor)}(e,r,n);case g:return l=e,Se?Object(Se.call(l)):{}}}(e,F,Te,t)}}$||($=new Re);var W=$.get(e);if(W)return W;if($.set(e,T),!O)var K=n?function(e){return function(e,t,n){var r=t(e);return Be(e)?r:function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}(r,n(e))}(e,He,Oe)}(e):He(e);return function(i){for(var a=-1,o=i?i.length:0;++a<o&&!1!==(s=i[a],l=a,K&&(s=e[l=s]),void Pe(T,l,Te(s,t,n,r,l,e,$))););var s,l}(K||e),T}function _e(e){var t=new e.constructor(e.byteLength);return new ie(t).set(new ie(e)),t}function Me(e,t,n,r){n||(n={});for(var i=-1,a=t.length;++i<a;){var o=t[i];Pe(n,o,e[o])}return n}function Ae(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function Ie(e,t){var n,r,i=(r=t,null==(n=e)?void 0:n[r]);return function(e){return!(!Ke(e)||(t=e,J&&J in t))&&(qe(e)||B(e)?te:$).test(Ne(e));var t}(i)?i:void 0}De.prototype.clear=function(){this.__data__=ye?ye(null):{}},De.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},De.prototype.get=function(e){var t=this.__data__;if(ye){var r=t[e];return r===n?void 0:r}return Q.call(t,e)?t[e]:void 0},De.prototype.has=function(e){var t=this.__data__;return ye?void 0!==t[e]:Q.call(t,e)},De.prototype.set=function(e,t){return this.__data__[e]=ye&&void 0===t?n:t,this},je.prototype.clear=function(){this.__data__=[]},je.prototype.delete=function(e){var t=this.__data__,n=$e(t,e);return!(n<0||(n==t.length-1?t.pop():le.call(t,n,1),0))},je.prototype.get=function(e){var t=this.__data__,n=$e(t,e);return n<0?void 0:t[n][1]},je.prototype.has=function(e){return $e(this.__data__,e)>-1},je.prototype.set=function(e,t){var n=this.__data__,r=$e(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},Ce.prototype.clear=function(){this.__data__={hash:new De,map:new(he||je),string:new De}},Ce.prototype.delete=function(e){return Ae(this,e).delete(e)},Ce.prototype.get=function(e){return Ae(this,e).get(e)},Ce.prototype.has=function(e){return Ae(this,e).has(e)},Ce.prototype.set=function(e,t){return Ae(this,e).set(e,t),this},Re.prototype.clear=function(){this.__data__=new je},Re.prototype.delete=function(e){return this.__data__.delete(e)},Re.prototype.get=function(e){return this.__data__.get(e)},Re.prototype.has=function(e){return this.__data__.has(e)},Re.prototype.set=function(e,t){var n=this.__data__;if(n instanceof je){var r=n.__data__;if(!he||r.length<199)return r.push([e,t]),this;n=this.__data__=new Ce(r)}return n.set(e,t),this};var Oe=ue?W(ue,Object):function(){return[]},Fe=function(e){return ee.call(e)};function Le(e,t){return!!(t=null==t?r:t)&&("number"==typeof e||T.test(e))&&e>-1&&e%1==0&&e<t}function Ve(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||G)}function Ne(e){if(null!=e){try{return X.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function ze(e,t){return e===t||e!=e&&t!=t}(pe&&Fe(new pe(new ArrayBuffer(1)))!=b||he&&Fe(new he)!=u||fe&&Fe(fe.resolve())!=p||me&&Fe(new me)!=f||ge&&Fe(new ge)!=y)&&(Fe=function(e){var t=ee.call(e),n=t==d?e.constructor:void 0,r=n?Ne(n):void 0;if(r)switch(r){case ve:return b;case be:return u;case xe:return p;case we:return f;case Ee:return y}return t});var Be=Array.isArray;function Ue(e){return null!=e&&("number"==typeof(t=e.length)&&t>-1&&t%1==0&&t<=r)&&!qe(e);var t}var We=ce||function(){return!1};function qe(e){var t=Ke(e)?ee.call(e):"";return t==s||t==l}function Ke(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function He(e){return Ue(e)?function(e){var t,n,r=Be(e)||function(e){return!!e&&"object"==typeof e}(n=t=e)&&Ue(n)&&Q.call(t,"callee")&&(!se.call(t,"callee")||ee.call(t)==i)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],a=r.length,o=!!a;for(var s in e)!Q.call(e,s)||o&&("length"==s||Le(s,a))||r.push(s);return r}(e):function(e){if(!Ve(e))return de(e);var t=[];for(var n in Object(e))Q.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)}e.exports=function(e){return Te(e,!0,!0)}}(Yl,Yl.exports);var Jl=Yl.exports,Xl=function(){return Xl=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Xl.apply(this,arguments)};function Ql(e,t,n,r,i){return function(e,t,n,r){return new(n||(n=Promise))((function(t,i){function a(e){try{s(r.next(e))}catch(t){i(t)}}function o(e){try{s(r.throw(e))}catch(t){i(t)}}function s(e){var r;e.done?t(e.value):(r=e.value,r instanceof n?r:new n((function(e){e(r)}))).then(a,o)}s((r=r.apply(e,[])).next())}))}(this,0,void 0,(function(){var a,o;return function(e,t){var n,r,i,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return o.next=s(0),o.throw=s(1),o.return=s(2),"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(l){s=[6,l],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}(this,(function(s){switch(s.label){case 0:if(void 0===n)return[2];o=0,s.label=1;case 1:return o<n.length?[4,n[o](e,t,r,i,n)]:[3,4];case 2:if("canceled"===(a=s.sent()))return[3,4];s.label=3;case 3:return o++,[3,1];case 4:return"canceled"!==a?[2,a]:[2]}}))}))}"function"==typeof SuppressedError&&SuppressedError;var eu=function(e,t){return void 0===t&&(t={}),e?{trackedAnalytics:Xl({sdkCode:e.sdkCode,sdkSemver:e.sdkSemver,techVersion:e.techVersion},t)}:null},tu=function(){function e(e,t,n,r){var i=this;this.isMounted=!0,this.imgElement=e,this.htmlPluginState={cleanupCallbacks:[],pluginEventSubscription:[]};var a=Jl(t);Ql(e,a,n,this.htmlPluginState,r).then((function(e){if(i.isMounted){i.htmlPluginState.pluginEventSubscription.forEach((function(e){e()}));var t=eu(r,e);i.imgElement.setAttribute("src",a.toURL(t))}}))}return e.prototype.update=function(e,t,n){var r=this,i=Jl(e);Ql(this.imgElement,i,t,this.htmlPluginState).then((function(e){if(r.isMounted){var t=eu(n,e);r.imgElement.setAttribute("src",i.toURL(t))}}))},e.prototype.unmount=function(){this.isMounted=!1},e}();let nu=class{constructor(e){this.values=[],this.delimiter=":",this.hasValue(e)&&this.addValue(e)}toString(){return this.values.join(this.delimiter)}hasValue(e){return null!=e&&""!==e}addValue(e){return Array.isArray(e)?this.values=this.values.concat(e):this.values.push(e),this.values=this.values.filter((e=>this.hasValue(e))),this}setDelimiter(e){return this.delimiter=e,this}},ru=class extends Error{constructor(e="Unsupported"){super(e)}};function iu(e){return new ru(e)}function au(){return this._qualifierModel||{error:iu(`unsupported qualifier ${this.constructor.name}`)}}let ou=class{constructor(){this._qualifierModel={}}toJson(){return au.apply(this)}},su=class extends ou{constructor(e,t){super(),this.delimiter="_",this.key=e,t instanceof nu?this.qualifierValue=t:(this.qualifierValue=new nu,this.qualifierValue.addValue(t))}toString(){const{key:e,delimiter:t,qualifierValue:n}=this;return`${e}${t}${n.toString()}`}addValue(e){return this.qualifierValue.addValue(e),this}},lu=class extends su{constructor(e,t){let n;n=t?new nu([e,`${t}`]).setDelimiter(":"):e,super("fl",n),this.flagValue=t}toString(){return super.toString().replace(/\./g,"%2E")}getFlagValue(){return this.flagValue}};function uu(){var e,t,n;const r=this._actionModel&&Object.keys(this._actionModel).length,i=null===(n=null===(t=null===(e=this._actionModel)||void 0===e?void 0:e.source)||void 0===t?void 0:t.transformation)||void 0===n?void 0:n.error;return i&&i instanceof Error?{error:i}:r?this._actionModel:{error:iu(`unsupported action ${this.constructor.name}`)}}let cu=class{constructor(){this._actionModel={}}toJson(){return uu.apply(this)}},du=class extends cu{constructor(){super(...arguments),this.qualifiers=new Map,this.flags=[],this.delimiter=",",this.actionTag=""}prepareQualifiers(){}getActionTag(){return this.actionTag}setActionTag(e){return this.actionTag=e,this}toString(){return this.prepareQualifiers(),function(e,t){const n=Array.from(e.entries());return t.forEach((e=>{n.push(["fl",e])})),n.sort().map((e=>e[1]))}(this.qualifiers,this.flags).join(this.delimiter)}addQualifier(e){if("string"==typeof e){const[t,n]=e.toLowerCase().split("_");"fl"===t?this.flags.push(new lu(n)):this.qualifiers.set(t,new su(t,n))}else this.qualifiers.set(e.key,e);return this}addFlag(e){return"string"==typeof e?this.flags.push(new lu(e)):e instanceof lu&&this.flags.push(e),this}addValueToQualifier(e,t){return this.qualifiers.get(e).addValue(t),this}};class pu extends du{constructor(e){super(),this.regionType=e,this._actionModel.regionType=e}}class hu extends pu{constructor(){super("custom")}x(e){return this._actionModel.x=e,this.addQualifier(new su("x",e)),this}y(e){return this._actionModel.y=e,this.addQualifier(new su("y",e)),this}width(e){return this._actionModel.width=e,this.addQualifier(new su("w",e)),this}height(e){return this._actionModel.height=e,this.addQualifier(new su("h",e)),this}static fromJson(e){const t=new hu;return e.width&&t.width(e.width),e.height&&t.height(e.height),e.x&&t.x(e.x),e.y&&t.y(e.y),t}}function fu(){return new pu("faces")}function mu(e){const t={};return Object.keys(e).forEach((n=>{t[e[n]]=n})),t}const gu={limitFit:"limit",limitFill:"lfill",minimumFit:"mfit",thumbnail:"thumb",limitPad:"lpad",minimumPad:"mpad",autoPad:"auto_pad"},yu={redEye:"redeye",advancedRedEye:"adv_redeye",oilPaint:"oil_paint",unsharpMask:"unsharp_mask",makeTransparent:"make_transparent",generativeRestore:"gen_restore",upscale:"upscale"},vu={autoBest:"auto:best",autoEco:"auto:eco",autoGood:"auto:good",autoLow:"auto:low",jpegminiHigh:"jpegmini:1",jpegminiMedium:"jpegmini:2",jpegminiBest:"jpegmini:0"},bu={444:"CHROMA_444",420:"CHROMA_420"},xu=mu(bu);mu({noCmyk:"no_cmyk",keepCmyk:"keep_cmyk",tinySrgb:"tinysrgb",srgbTrueColor:"srgb:truecolor"});const wu=mu(gu),Eu=mu({colorSpace:"cs",dpr:"dpr",density:"dn",defaultImage:"d",format:"f",quality:"q"}),ku=mu(yu);mu(vu),mu({fullHd:"full_hd",fullHdWifi:"full_hd_wifi",fullHdLean:"full_hd_lean",hdLean:"hd_lean"});class Su extends du{constructor(e,t){super(),this._actionModel={},this._actionModel.actionType=ku[e]||e;const n=this.createEffectQualifier(e,t);this.addQualifier(n)}createEffectQualifier(e,t){let n;return n=t?new nu([e,`${t}`]).setDelimiter(":"):new nu(e),new su("e",n)}static fromJson(e){const{actionType:t,level:n,strength:r}=e;return new this(yu[t]||t,n||r)}}class Du extends Su{constructor(e,t){super(e,t),this.LEVEL_NAME="level",this._actionModel={},this.effectType=e,this._actionModel.actionType=ku[e]||e,t&&this.setLevel(t)}setLevel(e){this._actionModel[this.LEVEL_NAME]=e;const t=this.createEffectQualifier(this.effectType,e);return this.addQualifier(t),this}}function ju(e){return e&&e.match(/^#/)?`rgb:${e.substr(1)}`:e}class Cu extends Du{level(e){return this._actionModel.level=e,this.setLevel(e)}}class Ru extends Cu{color(e){return this._actionModel.color=e,this.addQualifier(new su("co",new nu(ju(e))))}static fromJson(e){const{actionType:t,level:n,color:r}=e,i=new this(t,n);return r&&i.color(r),i}}function Pu(e){return new Ru("colorize",e)}let $u=class extends du{constructor(e){super(),this._actionModel={},this.addQualifier(new su("b",new nu(ju(e)).setDelimiter("_"))),this._actionModel.color=e,this._actionModel.actionType="backgroundColor"}static fromJson(e){const{color:t}=e;return new this(t)}},Tu=class{constructor(e){this.raw=e}toString(){return this.raw}toJson(){return{error:iu(`unsupported action ${this.constructor.name}`)}}},_u=class extends nu{constructor(e){super(e),this.val=e}getValue(){return this.val}},Mu=class extends du{constructor(e,t,n){let r;super(),this._actionModel={},r=t instanceof _u?t.getValue():t,this._actionModel.actionType=Eu[e],this._actionModel[n]=r,this.addQualifier(new su(e,t))}},Au=class extends lu{constructor(e){super("progressive",e)}},Iu=class extends Mu{constructor(e,t){super(e,t,"formatType")}lossy(){return this._actionModel.lossy=!0,this.addFlag(new lu("lossy")),this}progressive(e){return e instanceof Au?(this._actionModel.progressive={mode:e.getFlagValue()},this.addFlag(e)):(this._actionModel.progressive={mode:e},this.addFlag(new lu("progressive",e))),this}preserveTransparency(){return this._actionModel.preserveTransparency=!0,this.addFlag(new lu("preserve_transparency")),this}static fromJson(e){const{formatType:t,lossy:n,progressive:r,preserveTransparency:i}=e;let a;return a=t?new this("f",t):new this("f"),r&&(r.mode?a.progressive(r.mode):a.progressive()),n&&a.lossy(),i&&a.preserveTransparency(),a}},Ou=class e{constructor(){this.actions=[]}addAction(e){let t;if("string"==typeof e){if(e.indexOf("/")>=0)throw"addAction cannot accept a string with a forward slash in it - /, use .addTransformation() instead";t=new Tu(e)}else t=e;return this.actions.push(t),this}addTransformation(t){return t instanceof e?this.actions=this.actions.concat(t.actions):this.actions.push(new Tu(t)),this}toString(){return this.actions.map((e=>e.toString())).filter((e=>e)).join("/")}animated(e){return this.addAction(e)}border(e){return this.addAction(e)}reshape(e){return this.addAction(e)}resize(e){return this.addAction(e)}quality(e){return this.addAction(new Iu("q",e)),this}format(e){return this.addAction(new Iu("f",e)),this}roundCorners(e){return this.addAction(e)}overlay(e){return this.addAction(e)}underlay(e){return e.setLayerType("u"),this.addAction(e)}addVariable(e){return this.addAction(e)}conditional(e){return this.addAction(e)}effect(e){return this.addAction(e)}adjust(e){return this.addAction(e)}rotate(e){return this.addAction(e)}namedTransformation(e){return this.addAction(e)}delivery(e){return this.addAction(e)}backgroundColor(e){return this.addAction(new $u(e))}psdTools(e){return this.addAction(e)}extract(e){return this.addAction(e)}addFlag(e){const t=new du;let n=e;return"string"==typeof e&&(n=new lu(e)),t.addQualifier(n),this.addAction(t)}customFunction(e){return this.addAction(e)}transcode(e){return this.addAction(e)}videoEdit(e){return this.addAction(e)}toJson(){const e=[];for(const n of this.actions){const r=n.toJson();if("error"in(t=r)&&t.error)return r;e.push(r)}var t;return{actions:e}}};function Fu(e){const t=e.toString();return t.match(/[A-Z]/gi)||t.length>1&&"0"===t[0]||isNaN(parseFloat(t))||-1!==t.indexOf(":")||-1!==t.indexOf(".")?t:`${t}.0`}class Lu extends nu{}class Vu extends du{constructor(e,t,n){super(),this._actionModel={dimensions:{}},this._actionModel.actionType=wu[e]||e,this.addQualifier(new su("c",e)),t&&this.width(t),n&&this.height(n)}height(e){return this._actionModel.dimensions.height=e,this.addQualifier(new su("h",e))}width(e){return this._actionModel.dimensions.width=e,this.addQualifier(new su("w",e))}aspectRatio(e){return e instanceof Lu?(this._actionModel.dimensions.aspectRatio=`${e}`,this.addQualifier(new su("ar",e))):"number"==typeof e||"string"==typeof e?(this._actionModel.dimensions.aspectRatio=Fu(e),this.addQualifier(new su("ar",Fu(e)))):e instanceof lu?(this._actionModel.dimensions.aspectRatio=`${e.qualifierValue}`,this.addFlag(e)):void 0}relative(){return this._actionModel.relative=!0,this.addFlag(new lu("relative"))}regionRelative(){return this._actionModel.regionRelative=!0,this.addFlag(new lu("region_relative"))}static fromJson(e){const{actionType:t,dimensions:n,relative:r,regionRelative:i}=e,{aspectRatio:a,width:o,height:s}=n,l=new this(gu[t]||t,o,s);return a&&l.aspectRatio("ignore_aspect_ratio"===a?new lu("ignore_aspect_ratio"):a),r&&l.relative(),i&&l.regionRelative(),l}}class Nu extends su{constructor(e){super("g",new nu(e))}}class zu extends Nu{constructor(){super("auto")}autoFocus(...e){return this.addValue(e),this}}class Bu extends Nu{constructor(e){super(e)}fallbackGravity(e){return this.addValue(e.qualifierValue),this}}class Uu extends Nu{constructor(e){super(e)}}function Wu(...e){const t=[...e];return new Bu(t)}function qu(){return new zu}class Ku extends nu{constructor(e){super(),this.name=e}toString(){return this.name}}function Hu(e){return`${e}`.replace("g_","")}function Zu(e){const t=e.toString().split("_"),n={object:t[0]};return t.length>1&&("avoid"===t[1]?n.avoid=!0:n.weight=+t[1]),n}function Gu(e){let t;const n="auto"===e?new zu:e;return t=`${e}`.startsWith("auto:")?`${e}`.split(":").filter((e=>"auto"!==e)):n.qualifierValue.values.filter((e=>"auto"!==e)),{gravityType:"auto",autoFocus:t.map(Zu)}}class Yu extends nu{constructor(e,t){super(),this._weight=t,this.focusOn=e,this.shouldAvoid=!1}static focusOn(e,t){const n=e instanceof Ku?e:new Ku(e);return new Yu(n,t)}shouldAddWeight(){return"number"==typeof this._weight||"string"==typeof this._weight||this.shouldAvoid}getName(){return this.focusOn.name}getWeight(){return this.shouldAvoid?"avoid":this._weight}toString(){return this.shouldAddWeight()?`${this.getName()}_${this.getWeight()}`:`${this.getName()}`}weight(e){return this._weight=e,this}avoid(){return this.shouldAvoid=!0,this}}class Ju extends nu{constructor(e){super(),this.val=e}toString(){return this.val}}function Xu(e){const{object:t,weight:n,avoid:r}=e,i=new Yu(new Ku(t));return(n||0===n)&&i.weight(n),r&&i.avoid(),i}function Qu(e){const t=(e.autoFocus||[]).map(Xu);return qu().autoFocus(...t)}class ec extends Vu{gravity(e){this._actionModel.gravity=function(e){return function(e){const t=Hu(e);return["north","center","east","west","south","north_west","south_east","south_west","north_east"].includes(t)}(e)?{compass:Hu(e),gravityType:"direction"}:(t=e,"ocr_text"===Hu(t)?{gravityType:"ocr"}:function(e){return e&&"auto"===`${e}`.split(":")[0]}(e)||function(e){return"auto"===`${e.qualifierValue}`.split(":")[0]}(e)?Gu(e):function(e){const t=`${e}`.split(":").includes("auto"),n=e.qualifierValue.values,r={gravityType:"object",focusOnObjects:(t?n.slice(0,n.length-1):n).map((e=>`${e}`))};if(t){const e=n[n.length-1].values.slice(1),t=qu().autoFocus(...e);r.fallbackGravity=Gu(t)}return r}("string"==typeof e?function(e){const t=e.split(":").map((e=>new Ku(e)));return new Bu(t)}(e):e));var t}(e);const t="string"==typeof e?new su("g",e):e;return this.addQualifier(t)}static fromJson(e){const t=super.fromJson.apply(this,[e]);return e.gravity&&t.gravity(function(e){return"direction"===e.gravityType?new Uu(new Ju(e.compass)):(t=e,"ocr"===t.gravityType?Wu(new Ku("ocr_text")):function(e){return"auto"===e.gravityType}(e)?Qu(e):function(e){const t=Wu(...(e.focusOnObjects||[]).map((e=>new Ku(e))));if(e.fallbackGravity){const n=Qu(e.fallbackGravity);t.fallbackGravity(n)}return t}(e));var t}(e.gravity)),t}}class tc extends su{constructor(e){super("b"),e&&this.addValue(e)}}var nc=class extends tc{intensity(e){return this.intensityLevel=e,this}brightness(e){return this.brightnessLevel=e,this}toString(){return`b_blurred${void 0!==this.intensityLevel?`:${this.intensityLevel}`:""}${void 0!==this.brightnessLevel?void 0!==this.intensityLevel?`:${this.brightnessLevel}`:`:100:${this.brightnessLevel}`:""}`}};class rc extends tc{constructor(){super(),this._palette=[]}contrast(){return this._contrast=!0,this}palette(...e){return this._palette=e.map((e=>ju(e))),this}}class ic extends rc{toString(){return`\n b_auto:border\n ${this._contrast?"_contrast":""}\n ${this._palette.length?`:palette_${this._palette.join("_")}`:""}\n `.replace(/\s+/g,"")}}class ac extends rc{gradientColors(e){return this._gradientColors=e,this}gradientDirection(e){return this._gradientDirection=e,this}}class oc extends ac{toString(){return`\n b_auto:border_gradient\n ${this._contrast?"_contrast":""}\n ${this._gradientColors?`:${this._gradientColors}`:""}\n ${this._gradientDirection?`:${this._gradientDirection}`:""}\n ${this._palette.length?`:palette_${this._palette.join("_")}`:""}\n `.replace(/\s+/g,"")}}class sc extends ac{toString(){return`\n b_auto:predominant_gradient\n ${this._contrast?"_contrast":""}\n ${this._gradientColors?`:${this._gradientColors}`:""}\n ${this._gradientDirection?`:${this._gradientDirection}`:""}\n ${this._palette.length?`:palette_${this._palette.join("_")}`:""}\n `.replace(/\s+/g,"")}}class lc extends rc{toString(){return`\n b_auto:predominant\n ${this._contrast?"_contrast":""}\n ${this._palette.length?`:palette_${this._palette.join("_")}`:""}\n `.replace(/\s+/g,"")}}class uc extends tc{constructor(){super("gen_fill"),this._backgroundType="generativeFill"}prompt(e){return this._prompt=e,this}getPrompt(){return this._prompt}getBackgroundType(){return this._backgroundType}toString(){return"b_gen_fill"+(this._prompt?`:prompt_${this._prompt}`:"")}}function cc(e){return`${e}`.replace("b_","")}function dc(e){const t=e._contrast,n=e._palette,r={backgroundType:""};return t&&(r.contrast=!0),n&&(r.palette=n),r}function pc(e){const t=e._gradientColors,n=`${e._gradientDirection}`,r=dc(e);return t&&(r.gradientColors=t),n&&(r.gradientDirection=n),r}function hc(){return new _u("auto")}function fc(){return new ic}function mc(){return new tc("auto")}function gc(){return new oc}function yc(){return new sc}function vc(){return new lc}function bc(e){return new tc(ju(e))}function xc(){return new uc}const wc={auto:mc,border:fc,borderGradient:gc,predominantGradient:yc,predominant:vc,color:bc,blurred:function(){return new nc},generativeFill:xc};function Ec(e,t){const{gradientColors:n,gradientDirection:r,contrast:i,palette:a}=t;return i&&e.contrast(),a&&e.palette(...a),n&&e.gradientColors(+n),r&&e.gradientDirection(r),e}function kc(e,t){const{contrast:n,palette:r}=t;return n&&e.contrast(),r&&e.palette(...r),e}class Sc extends ec{x(e){return this._actionModel.x=e,this.addQualifier(new su("x",e))}y(e){return this._actionModel.y=e,this.addQualifier(new su("y",e))}zoom(e){return this._actionModel.zoom=e,this.addQualifier(new su("z",e))}static fromJson(e){const t=super.fromJson.apply(this,[e]);return e.x&&t.x(e.x),e.y&&t.y(e.y),e.zoom&&t.zoom(e.zoom),t}}class Dc extends ec{x(e){return this._actionModel.x=e,this.addQualifier(new su("x",e))}y(e){return this._actionModel.y=e,this.addQualifier(new su("y",e))}static fromJson(e){const t=super.fromJson.apply(this,[e]);return e.x&&t.x(e.x),e.y&&t.y(e.y),t}}class jc extends Mu{constructor(e){super("q",e.toString(),"level")}chromaSubSampling(e){this._actionModel.chromaSubSampling=bu[e];const t=new nu([this._actionModel.level,e]);return t.setDelimiter(":"),this.addQualifier(new su("q",t))}quantization(e){this._actionModel.quantization=e;const t=new nu([this._actionModel.level,`qmax_${e}`]).setDelimiter(":");return this.addQualifier(new su("q",t))}static fromJson(e){const{level:t,chromaSubSampling:n,quantization:r}=e,i=new this(vu[t]||t);if(n){const e=xu[n.toUpperCase()];e&&i.chromaSubSampling(+e)}return r&&i.quantization(r),i}}function Cc(e){return new Iu("f",e)}function Rc(e){return new jc(e)}Pu(70).color("black"),Pu(40).color("white"),new Su("grayscale"),new class extends du{constructor(){super(),this._actionModel={},this._actionModel.actionType="assistColorblind",this.addQualifier(new su("e",new nu("assist_colorblind")))}xray(){return this._actionModel.type="xray",this.addQualifier(new su("e",new nu(["assist_colorblind","xray"]).setDelimiter(":")))}stripesStrength(e){return this._actionModel.type="stripes",this._actionModel.stripesStrength=e,this.addQualifier(new su("e",new nu(["assist_colorblind",e]).setDelimiter(":")))}static fromJson(e){const{actionType:t,type:n,stripesStrength:r}=e,i=new this;return"xray"===n&&i.xray(),"stripes"===n&&r&&i.stripesStrength(r),i}};var Pc,$c={vectorize:(new Ou).effect(new class extends du{constructor(){super(),this._actionModel={},this._actionModel.actionType="vectorize"}numOfColors(e){return this._actionModel.numOfColors=e,this._numOfColors=e,this}detailsLevel(e){return this._actionModel.detailLevel=e,this._detailsLevel=e,this}despeckleLevel(e){return this._actionModel.despeckleLevel=e,this._despeckleLevel=e,this}cornersLevel(e){return this._actionModel.cornersLevel=e,this._cornersLevel=e,this}paths(e){return this._actionModel.paths=e,this._paths=e,this}prepareQualifiers(){let e="vectorize";this._numOfColors&&(e+=`:${new nu(`colors:${this._numOfColors}`).toString()}`),this._detailsLevel&&(e+=`:${new nu(`detail:${this._detailsLevel}`).toString()}`),this._despeckleLevel&&(e+=`:${new nu(`despeckle:${this._despeckleLevel}`).toString()}`),this._paths&&(e+=`:${new nu(`paths:${this._paths}`).toString()}`),this._cornersLevel&&(e+=`:${new nu(`corners:${this._cornersLevel}`).toString()}`),this.addQualifier(new su("e",e))}static fromJson(e){const{actionType:t,paths:n,cornersLevel:r,despeckleLevel:i,detailLevel:a,numOfColors:o}=e,s=new this;return n&&s.paths(n),r&&s.cornersLevel(r),i&&s.despeckleLevel(i),a&&s.detailsLevel(a),o&&s.numOfColors(o),s}}).delivery(Rc("auto")).delivery(Cc(new _u("svg"))),pixelate:(new Ou).effect(new class extends du{constructor(e){super(),this._actionModel={},this._squareSize=e,this._actionModel.actionType="pixelate",this._actionModel.squareSize=e}region(e){return this._region=e,this._actionModel.region={regionType:this._region.regionType},this}squareSize(e){return this._squareSize=e,this._actionModel.squareSize=e,this}prepareQualifiers(){const e=this._squareSize?`:${this._squareSize}`:"";"_region"in this?(this._region.qualifiers.forEach((e=>this.addQualifier(e))),"custom"===this._region.regionType&&this.addQualifier(new su("e",`pixelate_region${e}`)),"ocr_text"===this._region.regionType&&(this.addQualifier(new su("e",`pixelate_region${e}`)),this.addQualifier(new su("g","ocr_text"))),"faces"===this._region.regionType&&this.addQualifier(new su("e",`pixelate_faces${e}`))):this.addQualifier(new su("e",`pixelate${e}`))}static fromJson(e){const{region:t,squareSize:n}=e,r=new this(n);return n&&r.squareSize(n),t&&"faces"===t.regionType&&r.region(fu()),t&&"custom"===t.regionType&&r.region(new hu),r}}(undefined)).delivery(Rc("auto")).delivery(Cc(hc())),blur:(new Ou).effect(new class extends du{constructor(e){super(),this._actionModel={},this._strength=e,this._actionModel.actionType="blur",this._actionModel.strength=e}region(e){return this._region=e,this._actionModel.region=e.toJson(),this}strength(e){return this._strength=e,this._actionModel.strength=e,this}prepareQualifiers(){const e=this._strength?`:${this._strength}`:"";"_region"in this?(this._region.qualifiers.forEach((e=>this.addQualifier(e))),"custom"===this._region.regionType&&this.addQualifier(new su("e",`blur_region${e}`)),"ocr_text"===this._region.regionType&&(this.addQualifier(new su("e",`blur_region${e}`)),this.addQualifier(new su("g","ocr_text"))),"faces"===this._region.regionType&&this.addQualifier(new su("e",`blur_faces${e}`))):this.addQualifier(new su("e",`blur${e}`))}static fromJson(e){const{strength:t,region:n}=e,r=new this(t);return t&&r.strength(t),n&&"faces"===n.regionType&&r.region(fu()),n&&"ocr_text"===n.regionType&&r.region(new pu("ocr_text")),n&&"custom"===n.regionType&&r.region(hu.fromJson(n)),r}}(2e3)).delivery(Rc("auto")).delivery(Cc(hc())),"predominant-color":(new Ou).resize(new class extends ec{background(e){return this._actionModel.background=function(e){return"auto"===cc(e)?{backgroundType:"auto"}:e instanceof nc?function(e){const{intensityLevel:t,brightnessLevel:n}=e,r={backgroundType:"blurred"};return(t||0===t)&&(r.intensity=t),(n||0===n)&&(r.brightness=n),r}(e):e instanceof ic?(t=e,Object.assign(Object.assign({},dc(t)),{backgroundType:"border"})):e instanceof oc?function(e){return Object.assign(Object.assign({},pc(e)),{backgroundType:"borderGradient"})}(e):e instanceof lc?function(e){return Object.assign(Object.assign({},dc(e)),{backgroundType:"predominant"})}(e):e instanceof sc?function(e){return Object.assign(Object.assign({},pc(e)),{backgroundType:"predominantGradient"})}(e):e instanceof uc?function(e){return Object.assign({backgroundType:e.getBackgroundType()},e.getPrompt()?{prompt:e.getPrompt()}:{})}(e):function(e){return{backgroundType:"color",color:cc(e)}}(e);var t}(e),this.addQualifier(e)}offsetX(e){return this._actionModel.x=e,this.addQualifier(new su("x",e))}offsetY(e){return this._actionModel.y=e,this.addQualifier(new su("y",e))}static fromJson(e){const t=super.fromJson.apply(this,[e]);return e.background&&t.background(function(e){const{backgroundType:t}=e;switch(t){case"auto":return mc();case"blurred":return function(e){const{brightness:t,intensity:n}=e,r=wc.blurred();return r.brightness(null!=t?t:0),r.intensity(null!=n?n:100),r}(e);case"border":return kc(fc(),e);case"borderGradient":return Ec(gc(),e);case"predominant":return kc(vc(),e);case"predominantGradient":return Ec(yc(),e);case"generativeFill":return function(e,t){const{prompt:n}=t;return n&&e.prompt(n),e}(xc(),e);default:return bc(e.color)}}(e.background)),e.x&&t.offsetX(e.x),e.y&&t.offsetY(e.y),e.zoom&&t.zoom(e.zoom),t}}("pad","iw_div_2",undefined).aspectRatio(1).background(wc.auto())).resize(new Sc("crop",1,1).gravity((Pc=new Ju("north_east"),new Uu(Pc)))).resize(new Dc("fill",void 0,void 0).height("ih").width("iw")).delivery(Rc("auto")).delivery(Cc(hc()))},Tc="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",_c={flv:"x-flv","3gp":"3gpp",mov:"quicktime",mpg:"mpeg",avi:"x-msvideo",wmv:"x-ms-wmv",ogv:"ogg",webm:"webm",mp4:"mp4"},Mc="?_a=",Ac=function(){function e(e,t,n,r,i,a,o){var s=this;this.mimeType="video",this.mimeSubTypes=_c,this.videoElement=e,this.originalVideo=t,this.videoOptions=o,this.htmlPluginState={cleanupCallbacks:[],pluginEventSubscription:[]};var l=Jl(t);Ql(e,t,r,this.htmlPluginState).then((function(){s.htmlPluginState.pluginEventSubscription.forEach((function(e){e()})),s.setVideoAttributes(i,a),s.handleSourceToVideo(l,n)}))}return e.prototype.handleSourceToVideo=function(e,t){var n=this;t?this.generateUserSources(e,t):["webm","mp4","ogv"].forEach((function(t){n.appendSourceTag(Jl(e),t)}))},e.prototype.generateUserSources=function(e,t){var n=this;t.map((function(t){var r=t.type,i=t.codecs,a=t.transcode;return n.appendSourceTag(Jl(e).transcode(a),r,n.buildMimeType(r,i))}))},e.prototype.appendSourceTag=function(e,t,n){var r,i=document.createElement("source"),a=null===(r=this.videoOptions)||void 0===r?void 0:r.useFetchFormat;a&&e.format(t);var o=e.toURL().split(Mc),s=o[1]?"".concat(Mc).concat(o[1]):"",l=a?"":".".concat(t);i.src="".concat(o[0]).concat(l).concat(s),i.type=n||"video/".concat(_c[t]||t),this.videoElement.appendChild(i)},e.prototype.buildMimeType=function(e,t){var n="".concat(this.mimeType,"/").concat(this.mimeSubTypes[e]||e);return t&&(n+="; codecs="+(Array.isArray(t)?t.join(", "):t)),n},e.prototype.setVideoAttributes=function(e,t){var n;if(void 0===e&&(e={}),"auto"===t){var r=Jl(this.originalVideo);e.poster=r.quality("auto").format("jpg").addTransformation("so_auto").toURL()}else t&&(e.poster=null===(n=t.toURL)||void 0===n?void 0:n.call(t));for(var i=0,a=Object.entries(e);i<a.length;i++){var o=a[i],s=o[0],l=o[1];l&&this.videoElement.setAttribute(s,"poster"===s?l:"")}},e.prototype.update=function(e,t,n,r,i){var a=this;if(e!==this.originalVideo){for(var o=this.videoElement.getElementsByTagName("SOURCE");o[0];)o[0].parentNode.removeChild(o[0]);Ql(this.videoElement,e,n,this.htmlPluginState).then((function(){a.setVideoAttributes(r,i),a.handleSourceToVideo(e,t),a.videoElement.load()}))}},e}(),Ic="object"==typeof Gl&&Gl&&Gl.Object===Object&&Gl,Oc="object"==typeof self&&self&&self.Object===Object&&self;function Fc(){return"undefined"!=typeof window}function Lc(e){var t={},n=t.rootMargin,r=void 0===n?"0px":n,i=t.threshold,a=void 0===i?.1:i;return Vc.bind(null,r,a)}function Vc(e,t,n,r,i,a){return void 0===e&&(e="0px"),void 0===t&&(t=.1),!!Fc()&&new Promise((function(r){var a=function(e,t,n,r){try{if(!window||!("IntersectionObserver"in window))return t(),function(){};var i=new IntersectionObserver((function(e){e.forEach((function(e){e.isIntersecting&&(i.unobserve(e.target),t())}))}),{rootMargin:n,threshold:r});return i.observe(e),function(){e&&i.observe(e)}}catch(a){t()}}(n,(function(){return r({lazyload:!0})}),e,t);i.cleanupCallbacks.push((function(){a(),r("canceled")}))}))}function Nc(e){var t={}.mode,n=void 0===t?"vectorize":t;return zc.bind(null,n)}function zc(e,t,n,r,i,a){$c[e]||(e="vectorize");var o=$c[e].actions,s=Jl(n);if(o.forEach((function(e){s.addAction(e)})),!Fc())return n.transformation=s.transformation,!0;if(t instanceof HTMLImageElement){s.transformation.actions.forEach((function(e,t){e instanceof du&&"responsive"===e.getActionTag()&&delete s.transformation.actions[t]}));var l=eu(i,{placeholder:!0});return t.src=s.toURL(l),t.onerror=function(){t.src=Tc},new Promise((function(e){t.onload=function(){e()}})).then((function(){return new Promise((function(e){r.cleanupCallbacks.push((function(){t.src=Tc,e("canceled")}));var i=new Image;i.src=n.toURL(l),i.onload=function(){e({placeholder:!0})},i.onerror=function(){e({placeholder:!0})}}))}))}}function Bc(e){e.cleanupCallbacks.forEach((function(e){e()}))}Ic||Oc||Function("return this")();var Uc=function(e,t){return(Uc=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function Wc(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Uc(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var qc=function(){return qc=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},qc.apply(this,arguments)};function Kc(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}"function"==typeof SuppressedError&&SuppressedError;var Hc={exports:{}},Zc={},Gc=Object.getOwnPropertySymbols,Yc=Object.prototype.hasOwnProperty,Jc=Object.prototype.propertyIsEnumerable,Xc=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(i){return!1}}()?Object.assign:function(e,t){for(var n,r,i=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),a=1;a<arguments.length;a++){for(var o in n=Object(arguments[a]))Yc.call(n,o)&&(i[o]=n[o]);if(Gc){r=Gc(n);for(var s=0;s<r.length;s++)Jc.call(n,r[s])&&(i[r[s]]=n[r[s]])}}return i},Qc=Xc,ed="function"==typeof Symbol&&Symbol.for,td=ed?Symbol.for("react.element"):60103,nd=ed?Symbol.for("react.portal"):60106,rd=ed?Symbol.for("react.fragment"):60107,id=ed?Symbol.for("react.strict_mode"):60108,ad=ed?Symbol.for("react.profiler"):60114,od=ed?Symbol.for("react.provider"):60109,sd=ed?Symbol.for("react.context"):60110,ld=ed?Symbol.for("react.forward_ref"):60112,ud=ed?Symbol.for("react.suspense"):60113,cd=ed?Symbol.for("react.memo"):60115,dd=ed?Symbol.for("react.lazy"):60116,pd="function"==typeof Symbol&&Symbol.iterator;
|
|
154
|
+
`,eu=(e,n,r=!1)=>{t.useEffect((()=>{var t;const i=t=>{e&&!e.contains(t.target)&&n()};return r?(document.addEventListener("click",i,!0),()=>{document.removeEventListener("click",i,!0)}):(null==(t=document.getElementById("root"))||t.addEventListener("click",i,!0),()=>{var e;null==(e=document.getElementById("root"))||e.removeEventListener("click",i,!0)})}),[r,e,n])},tu=t.forwardRef((function({disabled:r,error:i,label:o,name:s,required:l,tooltip:u,value:c,weight:d,...p},h){const f=n.useTheme(),[m,g]=t.useState(!1),[y,v]=t.useState(""),b=t.useRef(null),{refs:x,floatingStyles:w}=e.useFloating({placement:"bottom-start",whileElementsMounted:e.autoUpdate}),{inputValue:E,handlePhoneValueChange:k,country:S,setCountry:D}=Ll({countries:Rl,defaultCountry:"us",value:c?String(c):void 0}),j=t.useCallback((()=>{g((e=>!e)),m||v("")}),[m]),C=t.useCallback((e=>()=>{D(e),g(!1),v("")}),[D,g]),R=t.useCallback((e=>{1===e.key.length?v((t=>t+e.key)):"Backspace"===e.key&&v((e=>e.slice(0,-1)))}),[]),P=Rl.filter((e=>{const{name:t}=Nl(e);return t.toLowerCase().includes(y.toLowerCase())}));return eu(x.floating.current,(()=>{g(!1),v("")}),!0),e.jsxRuntimeExports.jsx(Qs,{error:i,htmlFor:s,label:o,required:l,tooltip:u,weight:d,children:e.jsxRuntimeExports.jsxs(Gl,{className:`${r?"disabled":""} ${i?"error":""}`,ref:b,children:[e.jsxRuntimeExports.jsxs(Yl,{"aria-label":"country-selector","data-testid":"country-selector",disabled:r,id:"country-selector",onClick:j,onKeyDown:R,ref:x.setReference,children:[e.jsxRuntimeExports.jsx(ql,{iso2:S.iso2,size:"16px"}),e.jsxRuntimeExports.jsx(e.Icon,{icon:"angle-down",iconColor:f.palette.gray[400],iconSize:"xs",iconType:"fa-light"})]}),e.jsxRuntimeExports.jsxs(Gs,{className:`${r?"disabled":""} ${i?"error":""}`,children:[e.jsxRuntimeExports.jsx("input",{"aria-hidden":!1,"aria-invalid":i?"true":"false","aria-label":s,"aria-required":l,autoComplete:"off","data-testid":`${s}-input`,disabled:r,id:s,name:s,onChange:k,ref:h,type:"tel",value:E,...p}),i?e.jsxRuntimeExports.jsx(e.Icon,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:f.palette.error[500],iconSize:"xs"}):void 0]}),m&&a.createPortal(e.jsxRuntimeExports.jsx(Jl,{ref:x.setFloating,style:w,children:P.map((t=>{const{dialCode:n,iso2:r,name:i}=Nl(t);return e.jsxRuntimeExports.jsxs(Xl,{onClick:C(r),value:r,children:[e.jsxRuntimeExports.jsx(ql,{iso2:r,size:"16px"}),e.jsxRuntimeExports.jsx(Ql,{children:i}),e.jsxRuntimeExports.jsx(e.Text,{color:f.palette.gray[400],size:"sm",sizeSm:"xs",textAlign:"end",children:"+"+n})]},r)}))}),document.getElementById("root")??document.body)]})})})),nu=t.forwardRef((function({disabled:t=!1,error:r,helpLink:i,helpText:a,label:o,name:s="input-text",id:l,maskValue:u=!1,maxLength:c,placeholder:d,required:p,rows:h,tooltip:f,value:m,weight:g,...y},v){const b=n.useTheme();return e.jsxRuntimeExports.jsx(Qs,{error:r,helpLink:i,helpText:a,htmlFor:s,label:o,maxLength:c,required:p,tooltip:f,value:m?String(m):void 0,weight:g,children:e.jsxRuntimeExports.jsxs(Gs,{className:`${t?"disabled":""} ${r?"error":""}`,children:[e.jsxRuntimeExports.jsx("textarea",{"aria-hidden":!1,"aria-invalid":r?"true":"false","aria-label":s,"aria-required":p,className:u?"sr-block":"","data-testid":`${s}-text-area`,disabled:t,id:l??s,maxLength:c,name:s,placeholder:d,ref:v,rows:h,value:m,...y}),r?e.jsxRuntimeExports.jsx(e.Icon,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:b.palette.error[500],iconSize:"xs"}):void 0]})})}));var ru="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},iu={exports:{}};!function(e,t){var n="__lodash_hash_undefined__",r=9007199254740991,i="[object Arguments]",a="[object Boolean]",o="[object Date]",s="[object Function]",l="[object GeneratorFunction]",u="[object Map]",c="[object Number]",d="[object Object]",p="[object Promise]",h="[object RegExp]",f="[object Set]",m="[object String]",g="[object Symbol]",y="[object WeakMap]",v="[object ArrayBuffer]",b="[object DataView]",x="[object Float32Array]",w="[object Float64Array]",E="[object Int8Array]",k="[object Int16Array]",S="[object Int32Array]",D="[object Uint8Array]",j="[object Uint8ClampedArray]",C="[object Uint16Array]",R="[object Uint32Array]",P=/\w*$/,$=/^\[object .+?Constructor\]$/,T=/^(?:0|[1-9]\d*)$/,_={};_[i]=_["[object Array]"]=_[v]=_[b]=_[a]=_[o]=_[x]=_[w]=_[E]=_[k]=_[S]=_[u]=_[c]=_[d]=_[h]=_[f]=_[m]=_[g]=_[D]=_[j]=_[C]=_[R]=!0,_["[object Error]"]=_[s]=_[y]=!1;var M="object"==typeof ru&&ru&&ru.Object===Object&&ru,A="object"==typeof self&&self&&self.Object===Object&&self,I=M||A||Function("return this")(),O=t&&!t.nodeType&&t,F=O&&e&&!e.nodeType&&e,L=F&&F.exports===O;function V(e,t){return e.set(t[0],t[1]),e}function N(e,t){return e.add(t),e}function z(e,t,n,r){for(var i=-1,a=e?e.length:0;++i<a;)n=t(n,e[i],i,e);return n}function B(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(n){}return t}function U(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function W(e,t){return function(n){return e(t(n))}}function q(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var K,H=Array.prototype,Z=Function.prototype,G=Object.prototype,Y=I["__core-js_shared__"],J=(K=/[^.]+$/.exec(Y&&Y.keys&&Y.keys.IE_PROTO||""))?"Symbol(src)_1."+K:"",X=Z.toString,Q=G.hasOwnProperty,ee=G.toString,te=RegExp("^"+X.call(Q).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ne=L?I.Buffer:void 0,re=I.Symbol,ie=I.Uint8Array,ae=W(Object.getPrototypeOf,Object),oe=Object.create,se=G.propertyIsEnumerable,le=H.splice,ue=Object.getOwnPropertySymbols,ce=ne?ne.isBuffer:void 0,de=W(Object.keys,Object),pe=Ie(I,"DataView"),he=Ie(I,"Map"),fe=Ie(I,"Promise"),me=Ie(I,"Set"),ge=Ie(I,"WeakMap"),ye=Ie(Object,"create"),ve=Ne(pe),be=Ne(he),xe=Ne(fe),we=Ne(me),Ee=Ne(ge),ke=re?re.prototype:void 0,Se=ke?ke.valueOf:void 0;function De(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function je(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ce(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Re(e){this.__data__=new je(e)}function Pe(e,t,n){var r=e[t];Q.call(e,t)&&ze(r,n)&&(void 0!==n||t in e)||(e[t]=n)}function $e(e,t){for(var n=e.length;n--;)if(ze(e[n][0],t))return n;return-1}function Te(e,t,n,r,p,y,$){var T;if(r&&(T=y?r(e,p,y,$):r(e)),void 0!==T)return T;if(!Ke(e))return e;var M,A,I,O=Be(e);if(O){if(A=(M=e).length,I=M.constructor(A),A&&"string"==typeof M[0]&&Q.call(M,"index")&&(I.index=M.index,I.input=M.input),T=I,!t)return function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}(e,T)}else{var F=Fe(e),L=F==s||F==l;if(We(e))return function(e,t){if(t)return e.slice();var n=new e.constructor(e.length);return e.copy(n),n}(e,t);if(F==d||F==i||L&&!y){if(B(e))return y?e:{};if(T=function(e){return"function"!=typeof e.constructor||Ve(e)?{}:Ke(t=ae(e))?oe(t):{};var t}(L?{}:e),!t)return function(e,t){return Me(e,Oe(e),t)}(e,function(e,t){return e&&Me(t,He(t),e)}(T,e))}else{if(!_[F])return y?e:{};T=function(e,t,n,r){var i,s,l,d=e.constructor;switch(t){case v:return _e(e);case a:case o:return new d(+e);case b:return i=e,s=r?_e(i.buffer):i.buffer,new i.constructor(s,i.byteOffset,i.byteLength);case x:case w:case E:case k:case S:case D:case j:case C:case R:return function(e,t){var n=t?_e(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}(e,r);case u:return function(e,t,n){return z(t?n(U(e),!0):U(e),V,new e.constructor)}(e,r,n);case c:case m:return new d(e);case h:return function(e){var t=new e.constructor(e.source,P.exec(e));return t.lastIndex=e.lastIndex,t}(e);case f:return function(e,t,n){return z(t?n(q(e),!0):q(e),N,new e.constructor)}(e,r,n);case g:return l=e,Se?Object(Se.call(l)):{}}}(e,F,Te,t)}}$||($=new Re);var W=$.get(e);if(W)return W;if($.set(e,T),!O)var K=n?function(e){return function(e,t,n){var r=t(e);return Be(e)?r:function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}(r,n(e))}(e,He,Oe)}(e):He(e);return function(i){for(var a=-1,o=i?i.length:0;++a<o&&!1!==(s=i[a],l=a,K&&(s=e[l=s]),void Pe(T,l,Te(s,t,n,r,l,e,$))););var s,l}(K||e),T}function _e(e){var t=new e.constructor(e.byteLength);return new ie(t).set(new ie(e)),t}function Me(e,t,n,r){n||(n={});for(var i=-1,a=t.length;++i<a;){var o=t[i];Pe(n,o,e[o])}return n}function Ae(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function Ie(e,t){var n,r,i=(r=t,null==(n=e)?void 0:n[r]);return function(e){return!(!Ke(e)||(t=e,J&&J in t))&&(qe(e)||B(e)?te:$).test(Ne(e));var t}(i)?i:void 0}De.prototype.clear=function(){this.__data__=ye?ye(null):{}},De.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},De.prototype.get=function(e){var t=this.__data__;if(ye){var r=t[e];return r===n?void 0:r}return Q.call(t,e)?t[e]:void 0},De.prototype.has=function(e){var t=this.__data__;return ye?void 0!==t[e]:Q.call(t,e)},De.prototype.set=function(e,t){return this.__data__[e]=ye&&void 0===t?n:t,this},je.prototype.clear=function(){this.__data__=[]},je.prototype.delete=function(e){var t=this.__data__,n=$e(t,e);return!(n<0||(n==t.length-1?t.pop():le.call(t,n,1),0))},je.prototype.get=function(e){var t=this.__data__,n=$e(t,e);return n<0?void 0:t[n][1]},je.prototype.has=function(e){return $e(this.__data__,e)>-1},je.prototype.set=function(e,t){var n=this.__data__,r=$e(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},Ce.prototype.clear=function(){this.__data__={hash:new De,map:new(he||je),string:new De}},Ce.prototype.delete=function(e){return Ae(this,e).delete(e)},Ce.prototype.get=function(e){return Ae(this,e).get(e)},Ce.prototype.has=function(e){return Ae(this,e).has(e)},Ce.prototype.set=function(e,t){return Ae(this,e).set(e,t),this},Re.prototype.clear=function(){this.__data__=new je},Re.prototype.delete=function(e){return this.__data__.delete(e)},Re.prototype.get=function(e){return this.__data__.get(e)},Re.prototype.has=function(e){return this.__data__.has(e)},Re.prototype.set=function(e,t){var n=this.__data__;if(n instanceof je){var r=n.__data__;if(!he||r.length<199)return r.push([e,t]),this;n=this.__data__=new Ce(r)}return n.set(e,t),this};var Oe=ue?W(ue,Object):function(){return[]},Fe=function(e){return ee.call(e)};function Le(e,t){return!!(t=null==t?r:t)&&("number"==typeof e||T.test(e))&&e>-1&&e%1==0&&e<t}function Ve(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||G)}function Ne(e){if(null!=e){try{return X.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function ze(e,t){return e===t||e!=e&&t!=t}(pe&&Fe(new pe(new ArrayBuffer(1)))!=b||he&&Fe(new he)!=u||fe&&Fe(fe.resolve())!=p||me&&Fe(new me)!=f||ge&&Fe(new ge)!=y)&&(Fe=function(e){var t=ee.call(e),n=t==d?e.constructor:void 0,r=n?Ne(n):void 0;if(r)switch(r){case ve:return b;case be:return u;case xe:return p;case we:return f;case Ee:return y}return t});var Be=Array.isArray;function Ue(e){return null!=e&&("number"==typeof(t=e.length)&&t>-1&&t%1==0&&t<=r)&&!qe(e);var t}var We=ce||function(){return!1};function qe(e){var t=Ke(e)?ee.call(e):"";return t==s||t==l}function Ke(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function He(e){return Ue(e)?function(e){var t,n,r=Be(e)||function(e){return!!e&&"object"==typeof e}(n=t=e)&&Ue(n)&&Q.call(t,"callee")&&(!se.call(t,"callee")||ee.call(t)==i)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],a=r.length,o=!!a;for(var s in e)!Q.call(e,s)||o&&("length"==s||Le(s,a))||r.push(s);return r}(e):function(e){if(!Ve(e))return de(e);var t=[];for(var n in Object(e))Q.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)}e.exports=function(e){return Te(e,!0,!0)}}(iu,iu.exports);var au=iu.exports,ou=function(){return ou=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},ou.apply(this,arguments)};function su(e,t,n,r,i){return function(e,t,n,r){return new(n||(n=Promise))((function(t,i){function a(e){try{s(r.next(e))}catch(t){i(t)}}function o(e){try{s(r.throw(e))}catch(t){i(t)}}function s(e){var r;e.done?t(e.value):(r=e.value,r instanceof n?r:new n((function(e){e(r)}))).then(a,o)}s((r=r.apply(e,[])).next())}))}(this,0,void 0,(function(){var a,o;return function(e,t){var n,r,i,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return o.next=s(0),o.throw=s(1),o.return=s(2),"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(l){s=[6,l],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}(this,(function(s){switch(s.label){case 0:if(void 0===n)return[2];o=0,s.label=1;case 1:return o<n.length?[4,n[o](e,t,r,i,n)]:[3,4];case 2:if("canceled"===(a=s.sent()))return[3,4];s.label=3;case 3:return o++,[3,1];case 4:return"canceled"!==a?[2,a]:[2]}}))}))}"function"==typeof SuppressedError&&SuppressedError;var lu=function(e,t){return void 0===t&&(t={}),e?{trackedAnalytics:ou({sdkCode:e.sdkCode,sdkSemver:e.sdkSemver,techVersion:e.techVersion},t)}:null},uu=function(){function e(e,t,n,r){var i=this;this.isMounted=!0,this.imgElement=e,this.htmlPluginState={cleanupCallbacks:[],pluginEventSubscription:[]};var a=au(t);su(e,a,n,this.htmlPluginState,r).then((function(e){if(i.isMounted){i.htmlPluginState.pluginEventSubscription.forEach((function(e){e()}));var t=lu(r,e);i.imgElement.setAttribute("src",a.toURL(t))}}))}return e.prototype.update=function(e,t,n){var r=this,i=au(e);su(this.imgElement,i,t,this.htmlPluginState).then((function(e){if(r.isMounted){var t=lu(n,e);r.imgElement.setAttribute("src",i.toURL(t))}}))},e.prototype.unmount=function(){this.isMounted=!1},e}();let cu=class{constructor(e){this.values=[],this.delimiter=":",this.hasValue(e)&&this.addValue(e)}toString(){return this.values.join(this.delimiter)}hasValue(e){return null!=e&&""!==e}addValue(e){return Array.isArray(e)?this.values=this.values.concat(e):this.values.push(e),this.values=this.values.filter((e=>this.hasValue(e))),this}setDelimiter(e){return this.delimiter=e,this}},du=class extends Error{constructor(e="Unsupported"){super(e)}};function pu(e){return new du(e)}function hu(){return this._qualifierModel||{error:pu(`unsupported qualifier ${this.constructor.name}`)}}let fu=class{constructor(){this._qualifierModel={}}toJson(){return hu.apply(this)}},mu=class extends fu{constructor(e,t){super(),this.delimiter="_",this.key=e,t instanceof cu?this.qualifierValue=t:(this.qualifierValue=new cu,this.qualifierValue.addValue(t))}toString(){const{key:e,delimiter:t,qualifierValue:n}=this;return`${e}${t}${n.toString()}`}addValue(e){return this.qualifierValue.addValue(e),this}},gu=class extends mu{constructor(e,t){let n;n=t?new cu([e,`${t}`]).setDelimiter(":"):e,super("fl",n),this.flagValue=t}toString(){return super.toString().replace(/\./g,"%2E")}getFlagValue(){return this.flagValue}};function yu(){var e,t,n;const r=this._actionModel&&Object.keys(this._actionModel).length,i=null===(n=null===(t=null===(e=this._actionModel)||void 0===e?void 0:e.source)||void 0===t?void 0:t.transformation)||void 0===n?void 0:n.error;return i&&i instanceof Error?{error:i}:r?this._actionModel:{error:pu(`unsupported action ${this.constructor.name}`)}}let vu=class{constructor(){this._actionModel={}}toJson(){return yu.apply(this)}},bu=class extends vu{constructor(){super(...arguments),this.qualifiers=new Map,this.flags=[],this.delimiter=",",this.actionTag=""}prepareQualifiers(){}getActionTag(){return this.actionTag}setActionTag(e){return this.actionTag=e,this}toString(){return this.prepareQualifiers(),function(e,t){const n=Array.from(e.entries());return t.forEach((e=>{n.push(["fl",e])})),n.sort().map((e=>e[1]))}(this.qualifiers,this.flags).join(this.delimiter)}addQualifier(e){if("string"==typeof e){const[t,n]=e.toLowerCase().split("_");"fl"===t?this.flags.push(new gu(n)):this.qualifiers.set(t,new mu(t,n))}else this.qualifiers.set(e.key,e);return this}addFlag(e){return"string"==typeof e?this.flags.push(new gu(e)):e instanceof gu&&this.flags.push(e),this}addValueToQualifier(e,t){return this.qualifiers.get(e).addValue(t),this}};class xu extends bu{constructor(e){super(),this.regionType=e,this._actionModel.regionType=e}}class wu extends xu{constructor(){super("custom")}x(e){return this._actionModel.x=e,this.addQualifier(new mu("x",e)),this}y(e){return this._actionModel.y=e,this.addQualifier(new mu("y",e)),this}width(e){return this._actionModel.width=e,this.addQualifier(new mu("w",e)),this}height(e){return this._actionModel.height=e,this.addQualifier(new mu("h",e)),this}static fromJson(e){const t=new wu;return e.width&&t.width(e.width),e.height&&t.height(e.height),e.x&&t.x(e.x),e.y&&t.y(e.y),t}}function Eu(){return new xu("faces")}function ku(e){const t={};return Object.keys(e).forEach((n=>{t[e[n]]=n})),t}const Su={limitFit:"limit",limitFill:"lfill",minimumFit:"mfit",thumbnail:"thumb",limitPad:"lpad",minimumPad:"mpad",autoPad:"auto_pad"},Du={redEye:"redeye",advancedRedEye:"adv_redeye",oilPaint:"oil_paint",unsharpMask:"unsharp_mask",makeTransparent:"make_transparent",generativeRestore:"gen_restore",upscale:"upscale"},ju={autoBest:"auto:best",autoEco:"auto:eco",autoGood:"auto:good",autoLow:"auto:low",jpegminiHigh:"jpegmini:1",jpegminiMedium:"jpegmini:2",jpegminiBest:"jpegmini:0"},Cu={444:"CHROMA_444",420:"CHROMA_420"},Ru=ku(Cu);ku({noCmyk:"no_cmyk",keepCmyk:"keep_cmyk",tinySrgb:"tinysrgb",srgbTrueColor:"srgb:truecolor"});const Pu=ku(Su),$u=ku({colorSpace:"cs",dpr:"dpr",density:"dn",defaultImage:"d",format:"f",quality:"q"}),Tu=ku(Du);ku(ju),ku({fullHd:"full_hd",fullHdWifi:"full_hd_wifi",fullHdLean:"full_hd_lean",hdLean:"hd_lean"});class _u extends bu{constructor(e,t){super(),this._actionModel={},this._actionModel.actionType=Tu[e]||e;const n=this.createEffectQualifier(e,t);this.addQualifier(n)}createEffectQualifier(e,t){let n;return n=t?new cu([e,`${t}`]).setDelimiter(":"):new cu(e),new mu("e",n)}static fromJson(e){const{actionType:t,level:n,strength:r}=e;return new this(Du[t]||t,n||r)}}class Mu extends _u{constructor(e,t){super(e,t),this.LEVEL_NAME="level",this._actionModel={},this.effectType=e,this._actionModel.actionType=Tu[e]||e,t&&this.setLevel(t)}setLevel(e){this._actionModel[this.LEVEL_NAME]=e;const t=this.createEffectQualifier(this.effectType,e);return this.addQualifier(t),this}}function Au(e){return e&&e.match(/^#/)?`rgb:${e.substr(1)}`:e}class Iu extends Mu{level(e){return this._actionModel.level=e,this.setLevel(e)}}class Ou extends Iu{color(e){return this._actionModel.color=e,this.addQualifier(new mu("co",new cu(Au(e))))}static fromJson(e){const{actionType:t,level:n,color:r}=e,i=new this(t,n);return r&&i.color(r),i}}function Fu(e){return new Ou("colorize",e)}let Lu=class extends bu{constructor(e){super(),this._actionModel={},this.addQualifier(new mu("b",new cu(Au(e)).setDelimiter("_"))),this._actionModel.color=e,this._actionModel.actionType="backgroundColor"}static fromJson(e){const{color:t}=e;return new this(t)}},Vu=class{constructor(e){this.raw=e}toString(){return this.raw}toJson(){return{error:pu(`unsupported action ${this.constructor.name}`)}}},Nu=class extends cu{constructor(e){super(e),this.val=e}getValue(){return this.val}},zu=class extends bu{constructor(e,t,n){let r;super(),this._actionModel={},r=t instanceof Nu?t.getValue():t,this._actionModel.actionType=$u[e],this._actionModel[n]=r,this.addQualifier(new mu(e,t))}},Bu=class extends gu{constructor(e){super("progressive",e)}},Uu=class extends zu{constructor(e,t){super(e,t,"formatType")}lossy(){return this._actionModel.lossy=!0,this.addFlag(new gu("lossy")),this}progressive(e){return e instanceof Bu?(this._actionModel.progressive={mode:e.getFlagValue()},this.addFlag(e)):(this._actionModel.progressive={mode:e},this.addFlag(new gu("progressive",e))),this}preserveTransparency(){return this._actionModel.preserveTransparency=!0,this.addFlag(new gu("preserve_transparency")),this}static fromJson(e){const{formatType:t,lossy:n,progressive:r,preserveTransparency:i}=e;let a;return a=t?new this("f",t):new this("f"),r&&(r.mode?a.progressive(r.mode):a.progressive()),n&&a.lossy(),i&&a.preserveTransparency(),a}},Wu=class e{constructor(){this.actions=[]}addAction(e){let t;if("string"==typeof e){if(e.indexOf("/")>=0)throw"addAction cannot accept a string with a forward slash in it - /, use .addTransformation() instead";t=new Vu(e)}else t=e;return this.actions.push(t),this}addTransformation(t){return t instanceof e?this.actions=this.actions.concat(t.actions):this.actions.push(new Vu(t)),this}toString(){return this.actions.map((e=>e.toString())).filter((e=>e)).join("/")}animated(e){return this.addAction(e)}border(e){return this.addAction(e)}reshape(e){return this.addAction(e)}resize(e){return this.addAction(e)}quality(e){return this.addAction(new Uu("q",e)),this}format(e){return this.addAction(new Uu("f",e)),this}roundCorners(e){return this.addAction(e)}overlay(e){return this.addAction(e)}underlay(e){return e.setLayerType("u"),this.addAction(e)}addVariable(e){return this.addAction(e)}conditional(e){return this.addAction(e)}effect(e){return this.addAction(e)}adjust(e){return this.addAction(e)}rotate(e){return this.addAction(e)}namedTransformation(e){return this.addAction(e)}delivery(e){return this.addAction(e)}backgroundColor(e){return this.addAction(new Lu(e))}psdTools(e){return this.addAction(e)}extract(e){return this.addAction(e)}addFlag(e){const t=new bu;let n=e;return"string"==typeof e&&(n=new gu(e)),t.addQualifier(n),this.addAction(t)}customFunction(e){return this.addAction(e)}transcode(e){return this.addAction(e)}videoEdit(e){return this.addAction(e)}toJson(){const e=[];for(const n of this.actions){const r=n.toJson();if("error"in(t=r)&&t.error)return r;e.push(r)}var t;return{actions:e}}};function qu(e){const t=e.toString();return t.match(/[A-Z]/gi)||t.length>1&&"0"===t[0]||isNaN(parseFloat(t))||-1!==t.indexOf(":")||-1!==t.indexOf(".")?t:`${t}.0`}class Ku extends cu{}class Hu extends bu{constructor(e,t,n){super(),this._actionModel={dimensions:{}},this._actionModel.actionType=Pu[e]||e,this.addQualifier(new mu("c",e)),t&&this.width(t),n&&this.height(n)}height(e){return this._actionModel.dimensions.height=e,this.addQualifier(new mu("h",e))}width(e){return this._actionModel.dimensions.width=e,this.addQualifier(new mu("w",e))}aspectRatio(e){return e instanceof Ku?(this._actionModel.dimensions.aspectRatio=`${e}`,this.addQualifier(new mu("ar",e))):"number"==typeof e||"string"==typeof e?(this._actionModel.dimensions.aspectRatio=qu(e),this.addQualifier(new mu("ar",qu(e)))):e instanceof gu?(this._actionModel.dimensions.aspectRatio=`${e.qualifierValue}`,this.addFlag(e)):void 0}relative(){return this._actionModel.relative=!0,this.addFlag(new gu("relative"))}regionRelative(){return this._actionModel.regionRelative=!0,this.addFlag(new gu("region_relative"))}static fromJson(e){const{actionType:t,dimensions:n,relative:r,regionRelative:i}=e,{aspectRatio:a,width:o,height:s}=n,l=new this(Su[t]||t,o,s);return a&&l.aspectRatio("ignore_aspect_ratio"===a?new gu("ignore_aspect_ratio"):a),r&&l.relative(),i&&l.regionRelative(),l}}class Zu extends mu{constructor(e){super("g",new cu(e))}}class Gu extends Zu{constructor(){super("auto")}autoFocus(...e){return this.addValue(e),this}}class Yu extends Zu{constructor(e){super(e)}fallbackGravity(e){return this.addValue(e.qualifierValue),this}}class Ju extends Zu{constructor(e){super(e)}}function Xu(...e){const t=[...e];return new Yu(t)}function Qu(){return new Gu}class ec extends cu{constructor(e){super(),this.name=e}toString(){return this.name}}function tc(e){return`${e}`.replace("g_","")}function nc(e){const t=e.toString().split("_"),n={object:t[0]};return t.length>1&&("avoid"===t[1]?n.avoid=!0:n.weight=+t[1]),n}function rc(e){let t;const n="auto"===e?new Gu:e;return t=`${e}`.startsWith("auto:")?`${e}`.split(":").filter((e=>"auto"!==e)):n.qualifierValue.values.filter((e=>"auto"!==e)),{gravityType:"auto",autoFocus:t.map(nc)}}class ic extends cu{constructor(e,t){super(),this._weight=t,this.focusOn=e,this.shouldAvoid=!1}static focusOn(e,t){const n=e instanceof ec?e:new ec(e);return new ic(n,t)}shouldAddWeight(){return"number"==typeof this._weight||"string"==typeof this._weight||this.shouldAvoid}getName(){return this.focusOn.name}getWeight(){return this.shouldAvoid?"avoid":this._weight}toString(){return this.shouldAddWeight()?`${this.getName()}_${this.getWeight()}`:`${this.getName()}`}weight(e){return this._weight=e,this}avoid(){return this.shouldAvoid=!0,this}}class ac extends cu{constructor(e){super(),this.val=e}toString(){return this.val}}function oc(e){const{object:t,weight:n,avoid:r}=e,i=new ic(new ec(t));return(n||0===n)&&i.weight(n),r&&i.avoid(),i}function sc(e){const t=(e.autoFocus||[]).map(oc);return Qu().autoFocus(...t)}class lc extends Hu{gravity(e){this._actionModel.gravity=function(e){return function(e){const t=tc(e);return["north","center","east","west","south","north_west","south_east","south_west","north_east"].includes(t)}(e)?{compass:tc(e),gravityType:"direction"}:(t=e,"ocr_text"===tc(t)?{gravityType:"ocr"}:function(e){return e&&"auto"===`${e}`.split(":")[0]}(e)||function(e){return"auto"===`${e.qualifierValue}`.split(":")[0]}(e)?rc(e):function(e){const t=`${e}`.split(":").includes("auto"),n=e.qualifierValue.values,r={gravityType:"object",focusOnObjects:(t?n.slice(0,n.length-1):n).map((e=>`${e}`))};if(t){const e=n[n.length-1].values.slice(1),t=Qu().autoFocus(...e);r.fallbackGravity=rc(t)}return r}("string"==typeof e?function(e){const t=e.split(":").map((e=>new ec(e)));return new Yu(t)}(e):e));var t}(e);const t="string"==typeof e?new mu("g",e):e;return this.addQualifier(t)}static fromJson(e){const t=super.fromJson.apply(this,[e]);return e.gravity&&t.gravity(function(e){return"direction"===e.gravityType?new Ju(new ac(e.compass)):(t=e,"ocr"===t.gravityType?Xu(new ec("ocr_text")):function(e){return"auto"===e.gravityType}(e)?sc(e):function(e){const t=Xu(...(e.focusOnObjects||[]).map((e=>new ec(e))));if(e.fallbackGravity){const n=sc(e.fallbackGravity);t.fallbackGravity(n)}return t}(e));var t}(e.gravity)),t}}class uc extends mu{constructor(e){super("b"),e&&this.addValue(e)}}var cc=class extends uc{intensity(e){return this.intensityLevel=e,this}brightness(e){return this.brightnessLevel=e,this}toString(){return`b_blurred${void 0!==this.intensityLevel?`:${this.intensityLevel}`:""}${void 0!==this.brightnessLevel?void 0!==this.intensityLevel?`:${this.brightnessLevel}`:`:100:${this.brightnessLevel}`:""}`}};class dc extends uc{constructor(){super(),this._palette=[]}contrast(){return this._contrast=!0,this}palette(...e){return this._palette=e.map((e=>Au(e))),this}}class pc extends dc{toString(){return`\n b_auto:border\n ${this._contrast?"_contrast":""}\n ${this._palette.length?`:palette_${this._palette.join("_")}`:""}\n `.replace(/\s+/g,"")}}class hc extends dc{gradientColors(e){return this._gradientColors=e,this}gradientDirection(e){return this._gradientDirection=e,this}}class fc extends hc{toString(){return`\n b_auto:border_gradient\n ${this._contrast?"_contrast":""}\n ${this._gradientColors?`:${this._gradientColors}`:""}\n ${this._gradientDirection?`:${this._gradientDirection}`:""}\n ${this._palette.length?`:palette_${this._palette.join("_")}`:""}\n `.replace(/\s+/g,"")}}class mc extends hc{toString(){return`\n b_auto:predominant_gradient\n ${this._contrast?"_contrast":""}\n ${this._gradientColors?`:${this._gradientColors}`:""}\n ${this._gradientDirection?`:${this._gradientDirection}`:""}\n ${this._palette.length?`:palette_${this._palette.join("_")}`:""}\n `.replace(/\s+/g,"")}}class gc extends dc{toString(){return`\n b_auto:predominant\n ${this._contrast?"_contrast":""}\n ${this._palette.length?`:palette_${this._palette.join("_")}`:""}\n `.replace(/\s+/g,"")}}class yc extends uc{constructor(){super("gen_fill"),this._backgroundType="generativeFill"}prompt(e){return this._prompt=e,this}getPrompt(){return this._prompt}getBackgroundType(){return this._backgroundType}toString(){return"b_gen_fill"+(this._prompt?`:prompt_${this._prompt}`:"")}}function vc(e){return`${e}`.replace("b_","")}function bc(e){const t=e._contrast,n=e._palette,r={backgroundType:""};return t&&(r.contrast=!0),n&&(r.palette=n),r}function xc(e){const t=e._gradientColors,n=`${e._gradientDirection}`,r=bc(e);return t&&(r.gradientColors=t),n&&(r.gradientDirection=n),r}function wc(){return new Nu("auto")}function Ec(){return new pc}function kc(){return new uc("auto")}function Sc(){return new fc}function Dc(){return new mc}function jc(){return new gc}function Cc(e){return new uc(Au(e))}function Rc(){return new yc}const Pc={auto:kc,border:Ec,borderGradient:Sc,predominantGradient:Dc,predominant:jc,color:Cc,blurred:function(){return new cc},generativeFill:Rc};function $c(e,t){const{gradientColors:n,gradientDirection:r,contrast:i,palette:a}=t;return i&&e.contrast(),a&&e.palette(...a),n&&e.gradientColors(+n),r&&e.gradientDirection(r),e}function Tc(e,t){const{contrast:n,palette:r}=t;return n&&e.contrast(),r&&e.palette(...r),e}class _c extends lc{x(e){return this._actionModel.x=e,this.addQualifier(new mu("x",e))}y(e){return this._actionModel.y=e,this.addQualifier(new mu("y",e))}zoom(e){return this._actionModel.zoom=e,this.addQualifier(new mu("z",e))}static fromJson(e){const t=super.fromJson.apply(this,[e]);return e.x&&t.x(e.x),e.y&&t.y(e.y),e.zoom&&t.zoom(e.zoom),t}}class Mc extends lc{x(e){return this._actionModel.x=e,this.addQualifier(new mu("x",e))}y(e){return this._actionModel.y=e,this.addQualifier(new mu("y",e))}static fromJson(e){const t=super.fromJson.apply(this,[e]);return e.x&&t.x(e.x),e.y&&t.y(e.y),t}}class Ac extends zu{constructor(e){super("q",e.toString(),"level")}chromaSubSampling(e){this._actionModel.chromaSubSampling=Cu[e];const t=new cu([this._actionModel.level,e]);return t.setDelimiter(":"),this.addQualifier(new mu("q",t))}quantization(e){this._actionModel.quantization=e;const t=new cu([this._actionModel.level,`qmax_${e}`]).setDelimiter(":");return this.addQualifier(new mu("q",t))}static fromJson(e){const{level:t,chromaSubSampling:n,quantization:r}=e,i=new this(ju[t]||t);if(n){const e=Ru[n.toUpperCase()];e&&i.chromaSubSampling(+e)}return r&&i.quantization(r),i}}function Ic(e){return new Uu("f",e)}function Oc(e){return new Ac(e)}Fu(70).color("black"),Fu(40).color("white"),new _u("grayscale"),new class extends bu{constructor(){super(),this._actionModel={},this._actionModel.actionType="assistColorblind",this.addQualifier(new mu("e",new cu("assist_colorblind")))}xray(){return this._actionModel.type="xray",this.addQualifier(new mu("e",new cu(["assist_colorblind","xray"]).setDelimiter(":")))}stripesStrength(e){return this._actionModel.type="stripes",this._actionModel.stripesStrength=e,this.addQualifier(new mu("e",new cu(["assist_colorblind",e]).setDelimiter(":")))}static fromJson(e){const{actionType:t,type:n,stripesStrength:r}=e,i=new this;return"xray"===n&&i.xray(),"stripes"===n&&r&&i.stripesStrength(r),i}};var Fc,Lc={vectorize:(new Wu).effect(new class extends bu{constructor(){super(),this._actionModel={},this._actionModel.actionType="vectorize"}numOfColors(e){return this._actionModel.numOfColors=e,this._numOfColors=e,this}detailsLevel(e){return this._actionModel.detailLevel=e,this._detailsLevel=e,this}despeckleLevel(e){return this._actionModel.despeckleLevel=e,this._despeckleLevel=e,this}cornersLevel(e){return this._actionModel.cornersLevel=e,this._cornersLevel=e,this}paths(e){return this._actionModel.paths=e,this._paths=e,this}prepareQualifiers(){let e="vectorize";this._numOfColors&&(e+=`:${new cu(`colors:${this._numOfColors}`).toString()}`),this._detailsLevel&&(e+=`:${new cu(`detail:${this._detailsLevel}`).toString()}`),this._despeckleLevel&&(e+=`:${new cu(`despeckle:${this._despeckleLevel}`).toString()}`),this._paths&&(e+=`:${new cu(`paths:${this._paths}`).toString()}`),this._cornersLevel&&(e+=`:${new cu(`corners:${this._cornersLevel}`).toString()}`),this.addQualifier(new mu("e",e))}static fromJson(e){const{actionType:t,paths:n,cornersLevel:r,despeckleLevel:i,detailLevel:a,numOfColors:o}=e,s=new this;return n&&s.paths(n),r&&s.cornersLevel(r),i&&s.despeckleLevel(i),a&&s.detailsLevel(a),o&&s.numOfColors(o),s}}).delivery(Oc("auto")).delivery(Ic(new Nu("svg"))),pixelate:(new Wu).effect(new class extends bu{constructor(e){super(),this._actionModel={},this._squareSize=e,this._actionModel.actionType="pixelate",this._actionModel.squareSize=e}region(e){return this._region=e,this._actionModel.region={regionType:this._region.regionType},this}squareSize(e){return this._squareSize=e,this._actionModel.squareSize=e,this}prepareQualifiers(){const e=this._squareSize?`:${this._squareSize}`:"";"_region"in this?(this._region.qualifiers.forEach((e=>this.addQualifier(e))),"custom"===this._region.regionType&&this.addQualifier(new mu("e",`pixelate_region${e}`)),"ocr_text"===this._region.regionType&&(this.addQualifier(new mu("e",`pixelate_region${e}`)),this.addQualifier(new mu("g","ocr_text"))),"faces"===this._region.regionType&&this.addQualifier(new mu("e",`pixelate_faces${e}`))):this.addQualifier(new mu("e",`pixelate${e}`))}static fromJson(e){const{region:t,squareSize:n}=e,r=new this(n);return n&&r.squareSize(n),t&&"faces"===t.regionType&&r.region(Eu()),t&&"custom"===t.regionType&&r.region(new wu),r}}(undefined)).delivery(Oc("auto")).delivery(Ic(wc())),blur:(new Wu).effect(new class extends bu{constructor(e){super(),this._actionModel={},this._strength=e,this._actionModel.actionType="blur",this._actionModel.strength=e}region(e){return this._region=e,this._actionModel.region=e.toJson(),this}strength(e){return this._strength=e,this._actionModel.strength=e,this}prepareQualifiers(){const e=this._strength?`:${this._strength}`:"";"_region"in this?(this._region.qualifiers.forEach((e=>this.addQualifier(e))),"custom"===this._region.regionType&&this.addQualifier(new mu("e",`blur_region${e}`)),"ocr_text"===this._region.regionType&&(this.addQualifier(new mu("e",`blur_region${e}`)),this.addQualifier(new mu("g","ocr_text"))),"faces"===this._region.regionType&&this.addQualifier(new mu("e",`blur_faces${e}`))):this.addQualifier(new mu("e",`blur${e}`))}static fromJson(e){const{strength:t,region:n}=e,r=new this(t);return t&&r.strength(t),n&&"faces"===n.regionType&&r.region(Eu()),n&&"ocr_text"===n.regionType&&r.region(new xu("ocr_text")),n&&"custom"===n.regionType&&r.region(wu.fromJson(n)),r}}(2e3)).delivery(Oc("auto")).delivery(Ic(wc())),"predominant-color":(new Wu).resize(new class extends lc{background(e){return this._actionModel.background=function(e){return"auto"===vc(e)?{backgroundType:"auto"}:e instanceof cc?function(e){const{intensityLevel:t,brightnessLevel:n}=e,r={backgroundType:"blurred"};return(t||0===t)&&(r.intensity=t),(n||0===n)&&(r.brightness=n),r}(e):e instanceof pc?(t=e,Object.assign(Object.assign({},bc(t)),{backgroundType:"border"})):e instanceof fc?function(e){return Object.assign(Object.assign({},xc(e)),{backgroundType:"borderGradient"})}(e):e instanceof gc?function(e){return Object.assign(Object.assign({},bc(e)),{backgroundType:"predominant"})}(e):e instanceof mc?function(e){return Object.assign(Object.assign({},xc(e)),{backgroundType:"predominantGradient"})}(e):e instanceof yc?function(e){return Object.assign({backgroundType:e.getBackgroundType()},e.getPrompt()?{prompt:e.getPrompt()}:{})}(e):function(e){return{backgroundType:"color",color:vc(e)}}(e);var t}(e),this.addQualifier(e)}offsetX(e){return this._actionModel.x=e,this.addQualifier(new mu("x",e))}offsetY(e){return this._actionModel.y=e,this.addQualifier(new mu("y",e))}static fromJson(e){const t=super.fromJson.apply(this,[e]);return e.background&&t.background(function(e){const{backgroundType:t}=e;switch(t){case"auto":return kc();case"blurred":return function(e){const{brightness:t,intensity:n}=e,r=Pc.blurred();return r.brightness(null!=t?t:0),r.intensity(null!=n?n:100),r}(e);case"border":return Tc(Ec(),e);case"borderGradient":return $c(Sc(),e);case"predominant":return Tc(jc(),e);case"predominantGradient":return $c(Dc(),e);case"generativeFill":return function(e,t){const{prompt:n}=t;return n&&e.prompt(n),e}(Rc(),e);default:return Cc(e.color)}}(e.background)),e.x&&t.offsetX(e.x),e.y&&t.offsetY(e.y),e.zoom&&t.zoom(e.zoom),t}}("pad","iw_div_2",undefined).aspectRatio(1).background(Pc.auto())).resize(new _c("crop",1,1).gravity((Fc=new ac("north_east"),new Ju(Fc)))).resize(new Mc("fill",void 0,void 0).height("ih").width("iw")).delivery(Oc("auto")).delivery(Ic(wc()))},Vc="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",Nc={flv:"x-flv","3gp":"3gpp",mov:"quicktime",mpg:"mpeg",avi:"x-msvideo",wmv:"x-ms-wmv",ogv:"ogg",webm:"webm",mp4:"mp4"},zc="?_a=",Bc=function(){function e(e,t,n,r,i,a,o){var s=this;this.mimeType="video",this.mimeSubTypes=Nc,this.videoElement=e,this.originalVideo=t,this.videoOptions=o,this.htmlPluginState={cleanupCallbacks:[],pluginEventSubscription:[]};var l=au(t);su(e,t,r,this.htmlPluginState).then((function(){s.htmlPluginState.pluginEventSubscription.forEach((function(e){e()})),s.setVideoAttributes(i,a),s.handleSourceToVideo(l,n)}))}return e.prototype.handleSourceToVideo=function(e,t){var n=this;t?this.generateUserSources(e,t):["webm","mp4","ogv"].forEach((function(t){n.appendSourceTag(au(e),t)}))},e.prototype.generateUserSources=function(e,t){var n=this;t.map((function(t){var r=t.type,i=t.codecs,a=t.transcode;return n.appendSourceTag(au(e).transcode(a),r,n.buildMimeType(r,i))}))},e.prototype.appendSourceTag=function(e,t,n){var r,i=document.createElement("source"),a=null===(r=this.videoOptions)||void 0===r?void 0:r.useFetchFormat;a&&e.format(t);var o=e.toURL().split(zc),s=o[1]?"".concat(zc).concat(o[1]):"",l=a?"":".".concat(t);i.src="".concat(o[0]).concat(l).concat(s),i.type=n||"video/".concat(Nc[t]||t),this.videoElement.appendChild(i)},e.prototype.buildMimeType=function(e,t){var n="".concat(this.mimeType,"/").concat(this.mimeSubTypes[e]||e);return t&&(n+="; codecs="+(Array.isArray(t)?t.join(", "):t)),n},e.prototype.setVideoAttributes=function(e,t){var n;if(void 0===e&&(e={}),"auto"===t){var r=au(this.originalVideo);e.poster=r.quality("auto").format("jpg").addTransformation("so_auto").toURL()}else t&&(e.poster=null===(n=t.toURL)||void 0===n?void 0:n.call(t));for(var i=0,a=Object.entries(e);i<a.length;i++){var o=a[i],s=o[0],l=o[1];l&&this.videoElement.setAttribute(s,"poster"===s?l:"")}},e.prototype.update=function(e,t,n,r,i){var a=this;if(e!==this.originalVideo){for(var o=this.videoElement.getElementsByTagName("SOURCE");o[0];)o[0].parentNode.removeChild(o[0]);su(this.videoElement,e,n,this.htmlPluginState).then((function(){a.setVideoAttributes(r,i),a.handleSourceToVideo(e,t),a.videoElement.load()}))}},e}(),Uc="object"==typeof ru&&ru&&ru.Object===Object&&ru,Wc="object"==typeof self&&self&&self.Object===Object&&self;function qc(){return"undefined"!=typeof window}function Kc(e){var t={},n=t.rootMargin,r=void 0===n?"0px":n,i=t.threshold,a=void 0===i?.1:i;return Hc.bind(null,r,a)}function Hc(e,t,n,r,i,a){return void 0===e&&(e="0px"),void 0===t&&(t=.1),!!qc()&&new Promise((function(r){var a=function(e,t,n,r){try{if(!window||!("IntersectionObserver"in window))return t(),function(){};var i=new IntersectionObserver((function(e){e.forEach((function(e){e.isIntersecting&&(i.unobserve(e.target),t())}))}),{rootMargin:n,threshold:r});return i.observe(e),function(){e&&i.observe(e)}}catch(a){t()}}(n,(function(){return r({lazyload:!0})}),e,t);i.cleanupCallbacks.push((function(){a(),r("canceled")}))}))}function Zc(e){var t={}.mode,n=void 0===t?"vectorize":t;return Gc.bind(null,n)}function Gc(e,t,n,r,i,a){Lc[e]||(e="vectorize");var o=Lc[e].actions,s=au(n);if(o.forEach((function(e){s.addAction(e)})),!qc())return n.transformation=s.transformation,!0;if(t instanceof HTMLImageElement){s.transformation.actions.forEach((function(e,t){e instanceof bu&&"responsive"===e.getActionTag()&&delete s.transformation.actions[t]}));var l=lu(i,{placeholder:!0});return t.src=s.toURL(l),t.onerror=function(){t.src=Vc},new Promise((function(e){t.onload=function(){e()}})).then((function(){return new Promise((function(e){r.cleanupCallbacks.push((function(){t.src=Vc,e("canceled")}));var i=new Image;i.src=n.toURL(l),i.onload=function(){e({placeholder:!0})},i.onerror=function(){e({placeholder:!0})}}))}))}}function Yc(e){e.cleanupCallbacks.forEach((function(e){e()}))}Uc||Wc||Function("return this")();var Jc=function(e,t){return(Jc=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function Xc(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Jc(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var Qc=function(){return Qc=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Qc.apply(this,arguments)};function ed(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}"function"==typeof SuppressedError&&SuppressedError;var td={exports:{}},nd={},rd=Object.getOwnPropertySymbols,id=Object.prototype.hasOwnProperty,ad=Object.prototype.propertyIsEnumerable,od=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(i){return!1}}()?Object.assign:function(e,t){for(var n,r,i=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),a=1;a<arguments.length;a++){for(var o in n=Object(arguments[a]))id.call(n,o)&&(i[o]=n[o]);if(rd){r=rd(n);for(var s=0;s<r.length;s++)ad.call(n,r[s])&&(i[r[s]]=n[r[s]])}}return i},sd=od,ld="function"==typeof Symbol&&Symbol.for,ud=ld?Symbol.for("react.element"):60103,cd=ld?Symbol.for("react.portal"):60106,dd=ld?Symbol.for("react.fragment"):60107,pd=ld?Symbol.for("react.strict_mode"):60108,hd=ld?Symbol.for("react.profiler"):60114,fd=ld?Symbol.for("react.provider"):60109,md=ld?Symbol.for("react.context"):60110,gd=ld?Symbol.for("react.forward_ref"):60112,yd=ld?Symbol.for("react.suspense"):60113,vd=ld?Symbol.for("react.memo"):60115,bd=ld?Symbol.for("react.lazy"):60116,xd="function"==typeof Symbol&&Symbol.iterator;
|
|
155
155
|
/** @license React v16.14.0
|
|
156
156
|
* react.production.min.js
|
|
157
157
|
*
|
|
@@ -160,7 +160,7 @@
|
|
|
160
160
|
* This source code is licensed under the MIT license found in the
|
|
161
161
|
* LICENSE file in the root directory of this source tree.
|
|
162
162
|
*/
|
|
163
|
-
function
|
|
163
|
+
function wd(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Ed={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},kd={};function Sd(e,t,n){this.props=e,this.context=t,this.refs=kd,this.updater=n||Ed}function Dd(){}function jd(e,t,n){this.props=e,this.context=t,this.refs=kd,this.updater=n||Ed}Sd.prototype.isReactComponent={},Sd.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(wd(85));this.updater.enqueueSetState(this,e,t,"setState")},Sd.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},Dd.prototype=Sd.prototype;var Cd=jd.prototype=new Dd;Cd.constructor=jd,sd(Cd,Sd.prototype),Cd.isPureReactComponent=!0;var Rd={current:null},Pd=Object.prototype.hasOwnProperty,$d={key:!0,ref:!0,__self:!0,__source:!0};function Td(e,t,n){var r,i={},a=null,o=null;if(null!=t)for(r in void 0!==t.ref&&(o=t.ref),void 0!==t.key&&(a=""+t.key),t)Pd.call(t,r)&&!$d.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(1===s)i.children=n;else if(1<s){for(var l=Array(s),u=0;u<s;u++)l[u]=arguments[u+2];i.children=l}if(e&&e.defaultProps)for(r in s=e.defaultProps)void 0===i[r]&&(i[r]=s[r]);return{$$typeof:ud,type:e,key:a,ref:o,props:i,_owner:Rd.current}}function _d(e){return"object"==typeof e&&null!==e&&e.$$typeof===ud}var Md=/\/+/g,Ad=[];function Id(e,t,n,r){if(Ad.length){var i=Ad.pop();return i.result=e,i.keyPrefix=t,i.func=n,i.context=r,i.count=0,i}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function Od(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>Ad.length&&Ad.push(e)}function Fd(e,t,n,r){var i=typeof e;"undefined"!==i&&"boolean"!==i||(e=null);var a=!1;if(null===e)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case ud:case cd:a=!0}}if(a)return n(r,e,""===t?"."+Vd(e,0):t),1;if(a=0,t=""===t?".":t+":",Array.isArray(e))for(var o=0;o<e.length;o++){var s=t+Vd(i=e[o],o);a+=Fd(i,s,n,r)}else if("function"==typeof(s=null===e||"object"!=typeof e?null:"function"==typeof(s=xd&&e[xd]||e["@@iterator"])?s:null))for(e=s.call(e),o=0;!(i=e.next()).done;)a+=Fd(i=i.value,s=t+Vd(i,o++),n,r);else if("object"===i)throw n=""+e,Error(wd(31,"[object Object]"===n?"object with keys {"+Object.keys(e).join(", ")+"}":n,""));return a}function Ld(e,t,n){return null==e?0:Fd(e,"",t,n)}function Vd(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(n=e.key,r={"=":"=0",":":"=2"},"$"+(""+n).replace(/[=:]/g,(function(e){return r[e]}))):t.toString(36);var n,r}function Nd(e,t){e.func.call(e.context,t,e.count++)}function zd(e,t,n){var r,i,a=e.result,o=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?Bd(e,a,n,(function(e){return e})):null!=e&&(_d(e)&&(r=e,i=o+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(Md,"$&/")+"/")+n,e={$$typeof:ud,type:r.type,key:i,ref:r.ref,props:r.props,_owner:r._owner}),a.push(e))}function Bd(e,t,n,r,i){var a="";null!=n&&(a=(""+n).replace(Md,"$&/")+"/"),Ld(e,zd,t=Id(t,a,r,i)),Od(t)}var Ud={current:null};function Wd(){var e=Ud.current;if(null===e)throw Error(wd(321));return e}var qd={ReactCurrentDispatcher:Ud,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:Rd,IsSomeRendererActing:{current:!1},assign:sd};nd.Children={map:function(e,t,n){if(null==e)return e;var r=[];return Bd(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;Ld(e,Nd,t=Id(null,null,t,n)),Od(t)},count:function(e){return Ld(e,(function(){return null}),null)},toArray:function(e){var t=[];return Bd(e,t,null,(function(e){return e})),t},only:function(e){if(!_d(e))throw Error(wd(143));return e}},nd.Component=Sd,nd.Fragment=dd,nd.Profiler=hd,nd.PureComponent=jd,nd.StrictMode=pd,nd.Suspense=yd,nd.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=qd,nd.cloneElement=function(e,t,n){if(null==e)throw Error(wd(267,e));var r=sd({},e.props),i=e.key,a=e.ref,o=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,o=Rd.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(l in t)Pd.call(t,l)&&!$d.hasOwnProperty(l)&&(r[l]=void 0===t[l]&&void 0!==s?s[l]:t[l])}var l=arguments.length-2;if(1===l)r.children=n;else if(1<l){s=Array(l);for(var u=0;u<l;u++)s[u]=arguments[u+2];r.children=s}return{$$typeof:ud,type:e.type,key:i,ref:a,props:r,_owner:o}},nd.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:md,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:fd,_context:e},e.Consumer=e},nd.createElement=Td,nd.createFactory=function(e){var t=Td.bind(null,e);return t.type=e,t},nd.createRef=function(){return{current:null}},nd.forwardRef=function(e){return{$$typeof:gd,render:e}},nd.isValidElement=_d,nd.lazy=function(e){return{$$typeof:bd,_ctor:e,_status:-1,_result:null}},nd.memo=function(e,t){return{$$typeof:vd,type:e,compare:void 0===t?null:t}},nd.useCallback=function(e,t){return Wd().useCallback(e,t)},nd.useContext=function(e,t){return Wd().useContext(e,t)},nd.useDebugValue=function(){},nd.useEffect=function(e,t){return Wd().useEffect(e,t)},nd.useImperativeHandle=function(e,t,n){return Wd().useImperativeHandle(e,t,n)},nd.useLayoutEffect=function(e,t){return Wd().useLayoutEffect(e,t)},nd.useMemo=function(e,t){return Wd().useMemo(e,t)},nd.useReducer=function(e,t,n){return Wd().useReducer(e,t,n)},nd.useRef=function(e){return Wd().useRef(e)},nd.useState=function(e){return Wd().useState(e)},nd.version="16.14.0";var Kd={},Hd=Function.call.bind(Object.prototype.hasOwnProperty),Zd=function(){};if("production"!==process.env.NODE_ENV){var Gd="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Yd={},Jd=Hd;Zd=function(e){var t="Warning: "+e;try{throw new Error(t)}catch(n){}}}function Xd(e,t,n,r,i){if("production"!==process.env.NODE_ENV)for(var a in e)if(Jd(e,a)){var o;try{if("function"!=typeof e[a]){var s=Error((r||"React class")+": "+n+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[a]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw s.name="Invariant Violation",s}o=e[a](t,a,r,n,null,Gd)}catch(u){o=u}if(!o||o instanceof Error||Zd((r||"React class")+": type specification of "+n+" `"+a+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof o+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),o instanceof Error&&!(o.message in Yd)){Yd[o.message]=!0;var l=i?i():"";Zd("Failed "+n+" type: "+o.message+(null!=l?l:""))}}}Xd.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(Yd={})};var Qd=Xd;
|
|
164
164
|
/** @license React v16.14.0
|
|
165
165
|
* react.development.js
|
|
166
166
|
*
|
|
@@ -168,13 +168,13 @@ function hd(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant=
|
|
|
168
168
|
*
|
|
169
169
|
* This source code is licensed under the MIT license found in the
|
|
170
170
|
* LICENSE file in the root directory of this source tree.
|
|
171
|
-
*/"production"!==process.env.NODE_ENV&&function(){var e=Xc,t=qd,n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,a=n?Symbol.for("react.fragment"):60107,o=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,f=n?Symbol.for("react.memo"):60115,m=n?Symbol.for("react.lazy"):60116,g=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,v=n?Symbol.for("react.responder"):60118,b=n?Symbol.for("react.scope"):60119,x="function"==typeof Symbol&&Symbol.iterator;function w(e){if(null===e||"object"!=typeof e)return null;var t=x&&e[x]||e["@@iterator"];return"function"==typeof t?t:null}var E={current:null},k={current:null},S=/^(.*)[\\\/]/;function D(e){if(null==e)return null;if("number"==typeof e.tag&&T("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case a:return"Fragment";case i:return"Portal";case s:return"Profiler";case o:return"StrictMode";case p:return"Suspense";case h:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case u:return"Context.Consumer";case l:return"Context.Provider";case d:return r=e,y="ForwardRef",v=(c=e.render).displayName||c.name||"",r.displayName||(""!==v?y+"("+v+")":y);case f:return D(e.type);case g:return D(e.render);case m:var t=1===(n=e)._status?n._result:null;if(t)return D(t)}var n,r,c,y,v;return null}var j={},C=null;function R(e){C=e}j.getCurrentStack=null,j.getStackAddendum=function(){var e="";if(C){var t=D(C.type),n=C._owner;e+=function(e,t,n){var r="";if(t){var i=t.fileName,a=i.replace(S,"");if(/^index\./.test(a)){var o=i.match(S);if(o){var s=o[1];s&&(a=s.replace(S,"")+"/"+a)}}r=" (at "+a+":"+t.lineNumber+")"}else n&&(r=" (created by "+n+")");return"\n in "+(e||"Unknown")+r}(t,C._source,n&&D(n.type))}var r=j.getCurrentStack;return r&&(e+=r()||""),e};var P={ReactCurrentDispatcher:E,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:k,IsSomeRendererActing:{current:!1},assign:e};function $(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];_("warn",e,n)}function T(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];_("error",e,n)}function _(e,t,n){if(!(n.length>0&&"string"==typeof n[n.length-1]&&0===n[n.length-1].indexOf("\n in"))){var r=P.ReactDebugCurrentFrame.getStackAddendum();""!==r&&(t+="%s",n=n.concat([r]))}var i=n.map((function(e){return""+e}));i.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,i);try{var a=0,o="Warning: "+t.replace(/%s/g,(function(){return n[a++]}));throw new Error(o)}catch(s){}}e(P,{ReactDebugCurrentFrame:j,ReactComponentTreeHook:{}});var M={};function A(e,t){var n=e.constructor,r=n&&(n.displayName||n.name)||"ReactClass",i=r+"."+t;M[i]||(T("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",t,r),M[i]=!0)}var I={isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,n){A(e,"forceUpdate")},enqueueReplaceState:function(e,t,n,r){A(e,"replaceState")},enqueueSetState:function(e,t,n,r){A(e,"setState")}},O={};function F(e,t,n){this.props=e,this.context=t,this.refs=O,this.updater=n||I}Object.freeze(O),F.prototype.isReactComponent={},F.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},F.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};var L={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},V=function(e,t){Object.defineProperty(F.prototype,e,{get:function(){$("%s(...) is deprecated in plain JavaScript React classes. %s",t[0],t[1])}})};for(var N in L)L.hasOwnProperty(N)&&V(N,L[N]);function z(){}function B(e,t,n){this.props=e,this.context=t,this.refs=O,this.updater=n||I}z.prototype=F.prototype;var U=B.prototype=new z;U.constructor=B,e(U,F.prototype),U.isPureReactComponent=!0;var W,q,K,H=Object.prototype.hasOwnProperty,Z={key:!0,ref:!0,__self:!0,__source:!0};function G(e){if(H.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}function Y(e){if(H.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}K={};var J=function(e,t,n,i,a,o,s){var l={$$typeof:r,type:e,key:t,ref:n,props:s,_owner:o,_store:{}};return Object.defineProperty(l._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(l,"_self",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l};function X(e,t,n){var r,i={},a=null,o=null,s=null,l=null;if(null!=t)for(r in G(t)&&(o=t.ref,function(e){if("string"==typeof e.ref&&k.current&&e.__self&&k.current.stateNode!==e.__self){var t=D(k.current.type);K[t]||(T('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://fb.me/react-strict-mode-string-ref',D(k.current.type),e.ref),K[t]=!0)}}(t)),Y(t)&&(a=""+t.key),s=void 0===t.__self?null:t.__self,l=void 0===t.__source?null:t.__source,t)H.call(t,r)&&!Z.hasOwnProperty(r)&&(i[r]=t[r]);var u,c,d,p=arguments.length-2;if(1===p)i.children=n;else if(p>1){for(var h=Array(p),f=0;f<p;f++)h[f]=arguments[f+2];Object.freeze&&Object.freeze(h),i.children=h}if(e&&e.defaultProps){var m=e.defaultProps;for(r in m)void 0===i[r]&&(i[r]=m[r])}if(a||o){var g="function"==typeof e?e.displayName||e.name||"Unknown":e;a&&(u=i,c=g,(d=function(){W||(W=!0,T("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",c))}).isReactWarning=!0,Object.defineProperty(u,"key",{get:d,configurable:!0})),o&&function(e,t){var n=function(){q||(q=!0,T("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}(i,g)}return J(e,a,o,s,l,k.current,i)}function Q(t,n,r){if(null==t)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var i,a,o=e({},t.props),s=t.key,l=t.ref,u=t._self,c=t._source,d=t._owner;if(null!=n)for(i in G(n)&&(l=n.ref,d=k.current),Y(n)&&(s=""+n.key),t.type&&t.type.defaultProps&&(a=t.type.defaultProps),n)H.call(n,i)&&!Z.hasOwnProperty(i)&&(void 0===n[i]&&void 0!==a?o[i]=a[i]:o[i]=n[i]);var p=arguments.length-2;if(1===p)o.children=r;else if(p>1){for(var h=Array(p),f=0;f<p;f++)h[f]=arguments[f+2];o.children=h}return J(t.type,s,l,u,c,d,o)}function ee(e){return"object"==typeof e&&null!==e&&e.$$typeof===r}var te=!1,ne=/\/+/g;function re(e){return(""+e).replace(ne,"$&/")}var ie,ae=[];function oe(e,t,n,r){if(ae.length){var i=ae.pop();return i.result=e,i.keyPrefix=t,i.func=n,i.context=r,i.count=0,i}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function se(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,ae.length<10&&ae.push(e)}function le(e,t,n,a){var o=typeof e;"undefined"!==o&&"boolean"!==o||(e=null);var s,l=!1;if(null===e)l=!0;else switch(o){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case r:case i:l=!0}}if(l)return n(a,e,""===t?"."+ce(e,0):t),1;var u=0,c=""===t?".":t+":";if(Array.isArray(e))for(var d=0;d<e.length;d++)u+=le(s=e[d],c+ce(s,d),n,a);else{var p=w(e);if("function"==typeof p){p===e.entries&&(te||$("Using Maps as children is deprecated and will be removed in a future major release. Consider converting children to an array of keyed ReactElements instead."),te=!0);for(var h,f=p.call(e),m=0;!(h=f.next()).done;)u+=le(s=h.value,c+ce(s,m++),n,a)}else if("object"===o){var g;g=" If you meant to render a collection of children, use an array instead."+j.getStackAddendum();var y=""+e;throw Error("Objects are not valid as a React child (found: "+("[object Object]"===y?"object with keys {"+Object.keys(e).join(", ")+"}":y)+")."+g)}}return u}function ue(e,t,n){return null==e?0:le(e,"",t,n)}function ce(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(n=e.key,r={"=":"=0",":":"=2"},"$"+(""+n).replace(/[=:]/g,(function(e){return r[e]}))):t.toString(36);var n,r}function de(e,t,n){var r=e.func,i=e.context;r.call(i,t,e.count++)}function pe(e,t,n){var r,i,a=e.result,o=e.keyPrefix,s=e.func,l=e.context,u=s.call(l,t,e.count++);Array.isArray(u)?he(u,a,n,(function(e){return e})):null!=u&&(ee(u)&&(r=u,i=o+(!u.key||t&&t.key===u.key?"":re(u.key)+"/")+n,u=J(r.type,i,r.ref,r._self,r._source,r._owner,r.props)),a.push(u))}function he(e,t,n,r,i){var a="";null!=n&&(a=re(n)+"/");var o=oe(t,a,r,i);ue(e,pe,o),se(o)}function fe(e){return"string"==typeof e||"function"==typeof e||e===a||e===c||e===s||e===o||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===f||e.$$typeof===l||e.$$typeof===u||e.$$typeof===d||e.$$typeof===y||e.$$typeof===v||e.$$typeof===b||e.$$typeof===g)}function me(){var e=E.current;if(null===e)throw Error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.");return e}function ge(){if(k.current){var e=D(k.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}ie=!1;var ye={};function ve(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var n=function(e){var t=ge();if(!t){var n="string"==typeof e?e:e.displayName||e.name;n&&(t="\n\nCheck the top-level render call using <"+n+">.")}return t}(t);if(!ye[n]){ye[n]=!0;var r="";e&&e._owner&&e._owner!==k.current&&(r=" It was passed a child from "+D(e._owner.type)+"."),R(e),T('Each child in a list should have a unique "key" prop.%s%s See https://fb.me/react-warning-keys for more information.',n,r),R(null)}}}function be(e,t){if("object"==typeof e)if(Array.isArray(e))for(var n=0;n<e.length;n++){var r=e[n];ee(r)&&ve(r,t)}else if(ee(e))e._store&&(e._store.validated=!0);else if(e){var i=w(e);if("function"==typeof i&&i!==e.entries)for(var a,o=i.call(e);!(a=o.next()).done;)ee(a.value)&&ve(a.value,t)}}function xe(e){var n=e.type;if(null!=n&&"string"!=typeof n){var r,i=D(n);if("function"==typeof n)r=n.propTypes;else{if("object"!=typeof n||n.$$typeof!==d&&n.$$typeof!==f)return;r=n.propTypes}r?(R(e),t(r,e.props,"prop",i,j.getStackAddendum),R(null)):void 0===n.PropTypes||ie||(ie=!0,T("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",i||"Unknown")),"function"!=typeof n.getDefaultProps||n.getDefaultProps.isReactClassApproved||T("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function we(e,t,n){var i,o,s=fe(e);if(!s){var l,u="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(u+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),u+=(null!=(i=t)&&void 0!==(o=i.__source)?"\n\nCheck your code at "+o.fileName.replace(/^.*[\\\/]/,"")+":"+o.lineNumber+".":"")||ge(),null===e?l="null":Array.isArray(e)?l="array":void 0!==e&&e.$$typeof===r?(l="<"+(D(e.type)||"Unknown")+" />",u=" Did you accidentally export a JSX literal instead of a component?"):l=typeof e,T("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",l,u)}var c=X.apply(this,arguments);if(null==c)return c;if(s)for(var d=2;d<arguments.length;d++)be(arguments[d],e);return e===a?function(e){R(e);for(var t=Object.keys(e.props),n=0;n<t.length;n++){var r=t[n];if("children"!==r&&"key"!==r){T("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",r);break}}null!==e.ref&&T("Invalid attribute `ref` supplied to `React.Fragment`."),R(null)}(c):xe(c),c}var Ee=!1;try{var ke=Object.freeze({}),Se=new Map([[ke,null]]),De=new Set([ke]);Se.set(0,0),De.add(0)}catch(Re){}var je=we,Ce={map:function(e,t,n){if(null==e)return e;var r=[];return he(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;var r=oe(null,null,t,n);ue(e,de,r),se(r)},count:function(e){return ue(e,(function(){return null}),null)},toArray:function(e){var t=[];return he(e,t,null,(function(e){return e})),t},only:function(e){if(!ee(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Ld.Children=Ce,Ld.Component=F,Ld.Fragment=a,Ld.Profiler=s,Ld.PureComponent=B,Ld.StrictMode=o,Ld.Suspense=p,Ld.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=P,Ld.cloneElement=function(e,t,n){for(var r=Q.apply(this,arguments),i=2;i<arguments.length;i++)be(arguments[i],r.type);return xe(r),r},Ld.createContext=function(e,t){void 0===t?t=null:null!==t&&"function"!=typeof t&&T("createContext: Expected the optional second argument to be a function. Instead received: %s",t);var n={$$typeof:u,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null};n.Provider={$$typeof:l,_context:n};var r=!1,i=!1,a={$$typeof:u,_context:n,_calculateChangedBits:n._calculateChangedBits};return Object.defineProperties(a,{Provider:{get:function(){return i||(i=!0,T("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),n.Provider},set:function(e){n.Provider=e}},_currentValue:{get:function(){return n._currentValue},set:function(e){n._currentValue=e}},_currentValue2:{get:function(){return n._currentValue2},set:function(e){n._currentValue2=e}},_threadCount:{get:function(){return n._threadCount},set:function(e){n._threadCount=e}},Consumer:{get:function(){return r||(r=!0,T("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),n.Consumer}}}),n.Consumer=a,n._currentRenderer=null,n._currentRenderer2=null,n},Ld.createElement=je,Ld.createFactory=function(e){var t=we.bind(null,e);return t.type=e,Ee||(Ee=!0,$("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(t,"type",{enumerable:!1,get:function(){return $("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}}),t},Ld.createRef=function(){var e={current:null};return Object.seal(e),e},Ld.forwardRef=function(e){return null!=e&&e.$$typeof===f?T("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):"function"!=typeof e?T("forwardRef requires a render function but was given %s.",null===e?"null":typeof e):0!==e.length&&2!==e.length&&T("forwardRef render functions accept exactly two parameters: props and ref. %s",1===e.length?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),null!=e&&(null==e.defaultProps&&null==e.propTypes||T("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?")),{$$typeof:d,render:e}},Ld.isValidElement=ee,Ld.lazy=function(e){var t,n,r={$$typeof:m,_ctor:e,_status:-1,_result:null};return Object.defineProperties(r,{defaultProps:{configurable:!0,get:function(){return t},set:function(e){T("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),t=e,Object.defineProperty(r,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return n},set:function(e){T("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),n=e,Object.defineProperty(r,"propTypes",{enumerable:!0})}}}),r},Ld.memo=function(e,t){return fe(e)||T("memo: The first argument must be a component. Instead received: %s",null===e?"null":typeof e),{$$typeof:f,type:e,compare:void 0===t?null:t}},Ld.useCallback=function(e,t){return me().useCallback(e,t)},Ld.useContext=function(e,t){var n=me();if(void 0!==t&&T("useContext() second argument is reserved for future use in React. Passing it is not supported. You passed: %s.%s",t,"number"==typeof t&&Array.isArray(arguments[2])?"\n\nDid you call array.map(useContext)? Calling Hooks inside a loop is not supported. Learn more at https://fb.me/rules-of-hooks":""),void 0!==e._context){var r=e._context;r.Consumer===e?T("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):r.Provider===e&&T("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return n.useContext(e,t)},Ld.useDebugValue=function(e,t){return me().useDebugValue(e,t)},Ld.useEffect=function(e,t){return me().useEffect(e,t)},Ld.useImperativeHandle=function(e,t,n){return me().useImperativeHandle(e,t,n)},Ld.useLayoutEffect=function(e,t){return me().useLayoutEffect(e,t)},Ld.useMemo=function(e,t){return me().useMemo(e,t)},Ld.useReducer=function(e,t,n){return me().useReducer(e,t,n)},Ld.useRef=function(e){return me().useRef(e)},Ld.useState=function(e){return me().useState(e)},Ld.version="16.14.0"}(),"production"===process.env.NODE_ENV?Hc.exports=Zc:Hc.exports=Ld;var Kd=Hc.exports,Hd={sdkSemver:"1.13.1",techVersion:Kd.version,sdkCode:"J"},Zd=function(e){function t(t){var n=e.call(this,t)||this;return n.imageRef=Kd.createRef(),n}return Wc(t,e),t.prototype.componentDidMount=function(){this.htmlLayerInstance=new tu(this.imageRef.current,this.props.cldImg,this.props.plugins,Hd)},t.prototype.componentDidUpdate=function(){Bc(this.htmlLayerInstance.htmlPluginState),this.htmlLayerInstance.update(this.props.cldImg,this.props.plugins,Hd)},t.prototype.componentWillUnmount=function(){Bc(this.htmlLayerInstance.htmlPluginState),this.htmlLayerInstance.unmount()},t.prototype.render=function(){var e=this.props;e.cldImg,e.plugins;var t=Kc(e,["cldImg","plugins"]);if(Fc())return Kd.createElement("img",qc({suppressHydrationWarning:!0},t,{ref:this.imageRef}));var n=function(e,t,n){var r=Jl(t);if(e)for(var i=0;i<e.length&&e[i](null,r);i++);return r.toURL(n?{trackedAnalytics:n}:null)}(this.props.plugins,this.props.cldImg,Hd);return Kd.createElement("img",qc({},t,{src:n}))},t}(Kd.Component),Gd=["controls","loop","muted","poster","preload","autoplay","playsinline"];!function(e){function t(t){var n=e.call(this,t)||this;return n.videoRef=Hc.exports.createRef(),n.attachRef=n.attachRef.bind(n),n}Wc(t,e),t.prototype.componentDidMount=function(){this.htmlVideoLayerInstance=new Ac(this.videoRef&&this.videoRef.current,this.props.cldVid,this.props.sources,this.props.plugins,this.getVideoAttributes(),this.props.cldPoster,{useFetchFormat:this.props.useFetchFormat})},t.prototype.componentDidUpdate=function(){Bc(this.htmlVideoLayerInstance.htmlPluginState),this.htmlVideoLayerInstance.update(this.props.cldVid,this.props.sources,this.props.plugins,this.getVideoAttributes(),this.props.cldPoster)},t.prototype.componentWillUnmount=function(){Bc(this.htmlVideoLayerInstance.htmlPluginState)},t.prototype.getVideoAttributes=function(){var e=this,t={};return Gd.forEach((function(n){n in e.props&&(t[n]=e.props[n])})),t},t.prototype.attachRef=function(e){this.videoRef.current=e;var t=this.props.innerRef;t&&(t instanceof Function?t(e):t.current=e)},t.prototype.render=function(){var e=this.props;e.cldVid,e.cldPoster,e.plugins,e.sources,e.innerRef,e.useFetchFormat;var t=Kc(e,["cldVid","cldPoster","plugins","sources","innerRef","useFetchFormat"]);return Kd.createElement("video",qc({},t,{ref:this.attachRef}))}}(Hc.exports.Component);const Yd=(e,n)=>{const[r,i]=t.useState(0),[a,o]=t.useState(0);return t.useEffect((()=>{100===a&&i((e=>e===n-1?0:e+1))}),[a,n]),t.useEffect((()=>{const t=setInterval((()=>{o((e=>100===e?0:e+1))}),e);return()=>{clearInterval(t)}}),[e]),{cycle:r,progress:a,setCycle:i,setProgress:o}};class Jd{filterOutNonSupportedKeys(e,t){const n=Object.create({});return"object"!=typeof(r=e)||r instanceof Array?Object.create({}):(Object.keys(e).forEach((r=>{t.indexOf(r)>=0&&(n[r]=e[r])})),n);var r}}const Xd=["cname","secureDistribution","privateCdn","signUrl","longUrlSignature","shorten","useRootPath","secure","forceVersion","analytics","queryParams"];class Qd extends Jd{constructor(e){super();const t=this.filterOutNonSupportedKeys(e,Xd);Object.assign(this,{secure:!0},t)}extend(e){const t=this.filterOutNonSupportedKeys(e,Xd);return new Qd(Object.assign({},this,t))}setCname(e){return this.cname=e,this}setSecureDistribution(e){return this.secureDistribution=e,this}setPrivateCdn(e){return this.privateCdn=e,this}setSignUrl(e){return this.signUrl=e,this}setLongUrlSignature(e){return this.longUrlSignature=e,this}setShorten(e){return this.shorten=e,this}setUseRootPath(e){return this.useRootPath=e,this}setSecure(e){return this.secure=e,this}setForceVersion(e){return this.forceVersion=e,this}setQueryParams(e){return this.queryParams=e,this}}class ep{constructor(e){this.values=[],this.delimiter=":",this.hasValue(e)&&this.addValue(e)}toString(){return this.values.join(this.delimiter)}hasValue(e){return null!=e&&""!==e}addValue(e){return Array.isArray(e)?this.values=this.values.concat(e):this.values.push(e),this.values=this.values.filter((e=>this.hasValue(e))),this}setDelimiter(e){return this.delimiter=e,this}}class tp extends Error{constructor(e="Unsupported"){super(e)}}function np(e){return new tp(e)}function rp(){return this._qualifierModel||{error:np(`unsupported qualifier ${this.constructor.name}`)}}class ip{constructor(){this._qualifierModel={}}toJson(){return rp.apply(this)}}class ap extends ip{constructor(e,t){super(),this.delimiter="_",this.key=e,t instanceof ep?this.qualifierValue=t:(this.qualifierValue=new ep,this.qualifierValue.addValue(t))}toString(){const{key:e,delimiter:t,qualifierValue:n}=this;return`${e}${t}${n.toString()}`}addValue(e){return this.qualifierValue.addValue(e),this}}class op extends ap{constructor(e,t){let n;n=t?new ep([e,`${t}`]).setDelimiter(":"):e,super("fl",n),this.flagValue=t}toString(){return super.toString().replace(/\./g,"%2E")}getFlagValue(){return this.flagValue}}function sp(){var e,t,n;const r=this._actionModel&&Object.keys(this._actionModel).length,i=null===(n=null===(t=null===(e=this._actionModel)||void 0===e?void 0:e.source)||void 0===t?void 0:t.transformation)||void 0===n?void 0:n.error;return i&&i instanceof Error?{error:i}:r?this._actionModel:{error:np(`unsupported action ${this.constructor.name}`)}}class lp{constructor(){this._actionModel={}}toJson(){return sp.apply(this)}}class up extends lp{constructor(){super(...arguments),this.qualifiers=new Map,this.flags=[],this.delimiter=",",this.actionTag=""}prepareQualifiers(){}getActionTag(){return this.actionTag}setActionTag(e){return this.actionTag=e,this}toString(){return this.prepareQualifiers(),function(e,t){const n=Array.from(e.entries());return t.forEach((e=>{n.push(["fl",e])})),n.sort().map((e=>e[1]))}(this.qualifiers,this.flags).join(this.delimiter)}addQualifier(e){if("string"==typeof e){const[t,n]=e.toLowerCase().split("_");"fl"===t?this.flags.push(new op(n)):this.qualifiers.set(t,new ap(t,n))}else this.qualifiers.set(e.key,e);return this}addFlag(e){return"string"==typeof e?this.flags.push(new op(e)):e instanceof op&&this.flags.push(e),this}addValueToQualifier(e,t){return this.qualifiers.get(e).addValue(t),this}}class cp extends up{constructor(e){var t;super(),this._actionModel={},this.addQualifier(new ap("b",new ep((t=e,t&&t.match(/^#/)?`rgb:${t.substr(1)}`:t)).setDelimiter("_"))),this._actionModel.color=e,this._actionModel.actionType="backgroundColor"}static fromJson(e){const{color:t}=e;return new this(t)}}class dp{constructor(e){this.raw=e}toString(){return this.raw}toJson(){return{error:np(`unsupported action ${this.constructor.name}`)}}}class pp extends ep{constructor(e){super(e),this.val=e}getValue(){return this.val}}function hp(e){const t={};return Object.keys(e).forEach((n=>{t[e[n]]=n})),t}hp({444:"CHROMA_444",420:"CHROMA_420"}),hp({noCmyk:"no_cmyk",keepCmyk:"keep_cmyk",tinySrgb:"tinysrgb",srgbTrueColor:"srgb:truecolor"}),hp({limitFit:"limit",limitFill:"lfill",minimumFit:"mfit",thumbnail:"thumb",limitPad:"lpad",minimumPad:"mpad",autoPad:"auto_pad"});const fp=hp({colorSpace:"cs",dpr:"dpr",density:"dn",defaultImage:"d",format:"f",quality:"q"});hp({redEye:"redeye",advancedRedEye:"adv_redeye",oilPaint:"oil_paint",unsharpMask:"unsharp_mask",makeTransparent:"make_transparent",generativeRestore:"gen_restore",upscale:"upscale"}),hp({autoBest:"auto:best",autoEco:"auto:eco",autoGood:"auto:good",autoLow:"auto:low",jpegminiHigh:"jpegmini:1",jpegminiMedium:"jpegmini:2",jpegminiBest:"jpegmini:0"}),hp({fullHd:"full_hd",fullHdWifi:"full_hd_wifi",fullHdLean:"full_hd_lean",hdLean:"hd_lean"});class mp extends up{constructor(e,t,n){let r;super(),this._actionModel={},r=t instanceof pp?t.getValue():t,this._actionModel.actionType=fp[e],this._actionModel[n]=r,this.addQualifier(new ap(e,t))}}class gp extends op{constructor(e){super("progressive",e)}}class yp extends mp{constructor(e,t){super(e,t,"formatType")}lossy(){return this._actionModel.lossy=!0,this.addFlag(new op("lossy")),this}progressive(e){return e instanceof gp?(this._actionModel.progressive={mode:e.getFlagValue()},this.addFlag(e)):(this._actionModel.progressive={mode:e},this.addFlag(new op("progressive",e))),this}preserveTransparency(){return this._actionModel.preserveTransparency=!0,this.addFlag(new op("preserve_transparency")),this}static fromJson(e){const{formatType:t,lossy:n,progressive:r,preserveTransparency:i}=e;let a;return a=t?new this("f",t):new this("f"),r&&(r.mode?a.progressive(r.mode):a.progressive()),n&&a.lossy(),i&&a.preserveTransparency(),a}}class vp{constructor(){this.actions=[]}addAction(e){let t;if("string"==typeof e){if(e.indexOf("/")>=0)throw"addAction cannot accept a string with a forward slash in it - /, use .addTransformation() instead";t=new dp(e)}else t=e;return this.actions.push(t),this}addTransformation(e){return e instanceof vp?this.actions=this.actions.concat(e.actions):this.actions.push(new dp(e)),this}toString(){return this.actions.map((e=>e.toString())).filter((e=>e)).join("/")}animated(e){return this.addAction(e)}border(e){return this.addAction(e)}reshape(e){return this.addAction(e)}resize(e){return this.addAction(e)}quality(e){return this.addAction(new yp("q",e)),this}format(e){return this.addAction(new yp("f",e)),this}roundCorners(e){return this.addAction(e)}overlay(e){return this.addAction(e)}underlay(e){return e.setLayerType("u"),this.addAction(e)}addVariable(e){return this.addAction(e)}conditional(e){return this.addAction(e)}effect(e){return this.addAction(e)}adjust(e){return this.addAction(e)}rotate(e){return this.addAction(e)}namedTransformation(e){return this.addAction(e)}delivery(e){return this.addAction(e)}backgroundColor(e){return this.addAction(new cp(e))}psdTools(e){return this.addAction(e)}extract(e){return this.addAction(e)}addFlag(e){const t=new up;let n=e;return"string"==typeof e&&(n=new op(e)),t.addQualifier(n),this.addAction(t)}customFunction(e){return this.addAction(e)}transcode(e){return this.addAction(e)}videoEdit(e){return this.addAction(e)}toJson(){const e=[];for(const n of this.actions){const r=n.toJson();if("error"in(t=r)&&t.error)return r;e.push(r)}var t;return{actions:e}}}class bp extends vp{}class xp extends vp{}function wp(e,t,n){let r=0|t,i=String(n);return e.length>r?String(e):(r-=e.length,r>i.length&&(i+=function(e,t){let n=t,r="";for(;n>0;)r+=e,n--;return r}(i,r/i.length)),i.slice(0,r)+String(e))}const Ep={};let kp=0;function Sp(e){let t="";const n=6*e.split(".").length,r=function(e){if(e.split(".").length<2)throw new Error("invalid semVer, must have at least two segments");return e.split(".").map((e=>{const t=+e;if(isNaN(t)||t<0)throw"Invalid version number provided";return wp(e,2,"0")})).join(".")}(function(e){if(e.split(".").length<2)throw new Error("invalid semVer, must have at least two segments");return e.split(".").reverse().join(".")}(e));let i=parseInt(r.split(".").join("")).toString(2);if(i=wp(i,n,"0"),i.length%6!=0)throw"Version must be smaller than 43.21.26)";return i.match(/.{1,6}/g).forEach((e=>{t+=Ep[e]})),t}function Dp(){const e="0.0.0";if("undefined"!=typeof window)return e;try{return process.versions.node||e}catch(Kx){return e}}function jp(e){const t=function(e){const t={sdkSemver:e.sdkSemver,techVersion:e.techVersion,sdkCode:e.sdkCode,product:e.product,feature:"0",osType:e.osType,osVersion:e.osVersion};return e.accessibility&&(t.feature="D"),e.lazyload&&(t.feature="C"),e.responsive&&(t.feature="A"),e.placeholder&&(t.feature="B"),t}(function(e){const t={techVersion:Dp(),sdkCode:"T",sdkSemver:"1.21.0".split("-")[0],product:"A",osType:"Z",osVersion:"0.0",responsive:!1,placeholder:!1,lazyload:!1,accessibility:!1};return e?Object.assign(Object.assign({},t),e):t}(e));try{const e=function(e){const t=e.split(".");return`${t[0]}.${t[1]}`}(t.techVersion),n=Sp(t.sdkSemver),r=Sp(e),i=function(e){const[t,n]=e.split("."),r=parseInt(t).toString(2),i=parseInt(n).toString(2),a=r.padStart(6,"0"),o=i.padStart(6,"0");return Ep[a]+Ep[o]}(t.osVersion),a=t.feature,o=t.sdkCode,{product:s,osType:l}=t;return`D${s}${o}${n}${r}${l}${i}${a}`}catch(n){return"E"}}"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("").forEach((e=>{let t=kp.toString(2);t=wp(t,6,"0"),Ep[t]=e,kp++}));const Cp={"image/upload":"images","image/private":"private_images","image/authenticated":"authenticated_images","raw/upload":"files","video/upload":"videos"};class Rp{constructor(e,t={},n){this.setPublicID(e),this.setCloudConfig(t),this.setURLConfig(n)}setURLConfig(e){return this.urlConfig=new Qd(e),this}setCloudConfig(e){return this.cloudName=e.cloudName,this.apiKey=e.apiKey,this.apiSecret=e.apiSecret,this.authToken=e.authToken,this}setPublicID(e){return this.publicID=e?e.toString():"",this}setDeliveryType(e){return this.deliveryType=e,this}setSuffix(e){return this.suffix=e,this}setSignature(e){return this.signature=e,this}setVersion(e){return e&&(this.version=e),this}setAssetType(e){return e&&(this.assetType=e),this}sign(){return this}toURL(e={}){return this.createCloudinaryURL(null,e.trackedAnalytics)}validateAssetForURLCreation(){if(void 0===this.cloudName)throw"You must supply a cloudName when initializing the asset";const e=this.suffix&&this.suffix.indexOf(".")>=0,t=this.suffix&&this.suffix.indexOf("/")>=0;if(e||t)throw"`suffix`` should not include . or /"}getResourceType(){const e=function(e){return e||"image"}(this.assetType),t=function(e){return e||"upload"}(this.deliveryType),n=!!this.suffix,r=`${e}/${t}`,i=Cp[`${e}/${t}`],a=this.urlConfig.useRootPath,o=this.urlConfig.shorten;if(a){if("image/upload"===r)return"";throw new Error(`useRootPath can only be used with assetType: 'image' and deliveryType: 'upload'. Provided: ${r} instead`)}if(o&&"image/upload"===r)return"iu";if(n){if(i)return i;throw new Error(`URL Suffix only supported for ${Object.keys(Cp).join(", ")}, Provided: ${r} instead`)}return r}getSignature(){return this.signature?`s--${this.signature}--`:""}createCloudinaryURL(e,t){if(!this.publicID)return"";this.validateAssetForURLCreation();const n=function(e,t){const n=t.secure,r=t.privateCdn,i=t.cname,a=t.secureDistribution;return n||i?n&&!a&&r?`https://${e}-res.cloudinary.com`:n&&!a?`https://res.cloudinary.com/${e}`:n&&a&&r?`https://${a}`:n&&a?`https://${a}/${e}`:!n&&i?`http://${i}/${e}`:"ERROR":`http://res.cloudinary.com/${e}`}(this.cloudName,this.urlConfig),r=e?e.toString():"",i=function(e,t,n){const r=!1!==n;return t?`v${t}`:e.match(/^v[0-9]+/)||function(e){return e.match(/^https?:\//)}(e)||function(e){return e.indexOf("/")<0}(e)?"":r?"v1":""}(this.publicID,this.version,this.urlConfig.forceVersion),a=this.publicID;if("string"==typeof e){return[n,this.getResourceType(),this.getSignature(),r,i,a.replace(/,/g,"%2C"),this.suffix].filter((e=>e)).join("/")}{const e=[encodeURI(n),this.getResourceType(),this.getSignature(),encodeURI(r),i,encodeURI(a).replace(/,/g,"%2C"),this.suffix&&encodeURI(this.suffix)].filter((e=>e)).join("/").replace(/\?/g,"%3F").replace(/=/g,"%3D"),s=!1!==this.urlConfig.analytics&&!a.includes("?");let l="";if("object"==typeof this.urlConfig.queryParams)try{const e=new URLSearchParams(this.urlConfig.queryParams);s&&e.set("_a",jp(t)),l=e.toString()}catch(o){}else l=this.urlConfig.queryParams||"",s&&(l+=`${l.length>0?"&":""}_a=${jp(t)}`);return l?`${e}?${l}`:e}}}class Pp extends Rp{constructor(e,t,n,r){super(e,t,n),this.transformation=r}animated(e){return this.transformation.animated(e),this}border(e){return this.transformation.border(e),this}reshape(e){return this.transformation.reshape(e),this}resize(e){return this.transformation.resize(e),this}quality(e){return this.addAction(new yp("q",e)),this}format(e){return this.addAction(new yp("f",e)),this}roundCorners(e){return this.transformation.roundCorners(e),this}overlay(e){return this.transformation.overlay(e),this}addVariable(e){return this.transformation.addVariable(e),this}conditional(e){return this.transformation.conditional(e),this}effect(e){return this.transformation.effect(e),this}adjust(e){return this.transformation.adjust(e),this}rotate(e){return this.transformation.rotate(e),this}namedTransformation(e){return this.transformation.namedTransformation(e),this}delivery(e){return this.transformation.delivery(e),this}backgroundColor(e){return this.transformation.backgroundColor(e),this}psdTools(e){return this.transformation.psdTools(e),this}extract(e){return this.transformation.extract(e),this}addFlag(e){return this.transformation.addFlag(e),this}customFunction(e){return this.transformation.customFunction(e),this}addAction(e){return this.transformation.addAction(e),this}addTransformation(e){return this.transformation.addTransformation(e),this}toString(){return this.transformation.toString()}underlay(e){return this.transformation.underlay(e),this}toURL(e={}){return this.createCloudinaryURL(this.transformation,null==e?void 0:e.trackedAnalytics)}}class $p extends Pp{constructor(e,t,n){super(e,t,n,new bp)}}class Tp extends Pp{constructor(e,t,n){super(e,t,n,new xp),this.assetType="video"}transcode(e){return this.transformation.transcode(e),this}videoEdit(e){return this.transformation.videoEdit(e),this}}class _p{constructor(e){e&&(this.cloudinaryConfig=e)}image(e){return new $p(e,this.cloudinaryConfig.cloud,this.cloudinaryConfig.url)}video(e){return new Tp(e,this.cloudinaryConfig.cloud,this.cloudinaryConfig.url)}setConfig(e){return this.cloudinaryConfig=e,this}getConfig(){return this.cloudinaryConfig}extendConfig(){}}const Mp=({publicId:e,format:n="webp"})=>{const r=t.useMemo((()=>new _p({cloud:{cloudName:"fluid-attacks"}})),[]);return t.useMemo((()=>r.image(e).format(n)),[r,e,n])},Ap=(e,n)=>t.useMemo((()=>r.debounce(e,n)),[e,n]),Ip=e=>{const[n,r]=t.useState(!1),i=t.useCallback((()=>{r(!0)}),[]),a=t.useCallback((()=>{r(!1)}),[]),o=t.useCallback((()=>{r((e=>!e))}),[]);return{close:a,isOpen:n,name:e,open:i,setIsOpen:r,toggle:o}},Op=t.memo((({alt:t="img",height:n="",width:r="",plugins:i=[Lc(),Nc()],publicId:a})=>{const o=Mp({publicId:a});return e.jsxRuntimeExports.jsx(Zd,{alt:t,cldImg:o,height:n,plugins:i,width:r})})),Fp=n.styled.label`
|
|
171
|
+
*/"production"!==process.env.NODE_ENV&&function(){var e=od,t=Qd,n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,a=n?Symbol.for("react.fragment"):60107,o=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,f=n?Symbol.for("react.memo"):60115,m=n?Symbol.for("react.lazy"):60116,g=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,v=n?Symbol.for("react.responder"):60118,b=n?Symbol.for("react.scope"):60119,x="function"==typeof Symbol&&Symbol.iterator;function w(e){if(null===e||"object"!=typeof e)return null;var t=x&&e[x]||e["@@iterator"];return"function"==typeof t?t:null}var E={current:null},k={current:null},S=/^(.*)[\\\/]/;function D(e){if(null==e)return null;if("number"==typeof e.tag&&T("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case a:return"Fragment";case i:return"Portal";case s:return"Profiler";case o:return"StrictMode";case p:return"Suspense";case h:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case u:return"Context.Consumer";case l:return"Context.Provider";case d:return r=e,y="ForwardRef",v=(c=e.render).displayName||c.name||"",r.displayName||(""!==v?y+"("+v+")":y);case f:return D(e.type);case g:return D(e.render);case m:var t=1===(n=e)._status?n._result:null;if(t)return D(t)}var n,r,c,y,v;return null}var j={},C=null;function R(e){C=e}j.getCurrentStack=null,j.getStackAddendum=function(){var e="";if(C){var t=D(C.type),n=C._owner;e+=function(e,t,n){var r="";if(t){var i=t.fileName,a=i.replace(S,"");if(/^index\./.test(a)){var o=i.match(S);if(o){var s=o[1];s&&(a=s.replace(S,"")+"/"+a)}}r=" (at "+a+":"+t.lineNumber+")"}else n&&(r=" (created by "+n+")");return"\n in "+(e||"Unknown")+r}(t,C._source,n&&D(n.type))}var r=j.getCurrentStack;return r&&(e+=r()||""),e};var P={ReactCurrentDispatcher:E,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:k,IsSomeRendererActing:{current:!1},assign:e};function $(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];_("warn",e,n)}function T(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];_("error",e,n)}function _(e,t,n){if(!(n.length>0&&"string"==typeof n[n.length-1]&&0===n[n.length-1].indexOf("\n in"))){var r=P.ReactDebugCurrentFrame.getStackAddendum();""!==r&&(t+="%s",n=n.concat([r]))}var i=n.map((function(e){return""+e}));i.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,i);try{var a=0,o="Warning: "+t.replace(/%s/g,(function(){return n[a++]}));throw new Error(o)}catch(s){}}e(P,{ReactDebugCurrentFrame:j,ReactComponentTreeHook:{}});var M={};function A(e,t){var n=e.constructor,r=n&&(n.displayName||n.name)||"ReactClass",i=r+"."+t;M[i]||(T("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",t,r),M[i]=!0)}var I={isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,n){A(e,"forceUpdate")},enqueueReplaceState:function(e,t,n,r){A(e,"replaceState")},enqueueSetState:function(e,t,n,r){A(e,"setState")}},O={};function F(e,t,n){this.props=e,this.context=t,this.refs=O,this.updater=n||I}Object.freeze(O),F.prototype.isReactComponent={},F.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},F.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};var L={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},V=function(e,t){Object.defineProperty(F.prototype,e,{get:function(){$("%s(...) is deprecated in plain JavaScript React classes. %s",t[0],t[1])}})};for(var N in L)L.hasOwnProperty(N)&&V(N,L[N]);function z(){}function B(e,t,n){this.props=e,this.context=t,this.refs=O,this.updater=n||I}z.prototype=F.prototype;var U=B.prototype=new z;U.constructor=B,e(U,F.prototype),U.isPureReactComponent=!0;var W,q,K,H=Object.prototype.hasOwnProperty,Z={key:!0,ref:!0,__self:!0,__source:!0};function G(e){if(H.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}function Y(e){if(H.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}K={};var J=function(e,t,n,i,a,o,s){var l={$$typeof:r,type:e,key:t,ref:n,props:s,_owner:o,_store:{}};return Object.defineProperty(l._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(l,"_self",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l};function X(e,t,n){var r,i={},a=null,o=null,s=null,l=null;if(null!=t)for(r in G(t)&&(o=t.ref,function(e){if("string"==typeof e.ref&&k.current&&e.__self&&k.current.stateNode!==e.__self){var t=D(k.current.type);K[t]||(T('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://fb.me/react-strict-mode-string-ref',D(k.current.type),e.ref),K[t]=!0)}}(t)),Y(t)&&(a=""+t.key),s=void 0===t.__self?null:t.__self,l=void 0===t.__source?null:t.__source,t)H.call(t,r)&&!Z.hasOwnProperty(r)&&(i[r]=t[r]);var u,c,d,p=arguments.length-2;if(1===p)i.children=n;else if(p>1){for(var h=Array(p),f=0;f<p;f++)h[f]=arguments[f+2];Object.freeze&&Object.freeze(h),i.children=h}if(e&&e.defaultProps){var m=e.defaultProps;for(r in m)void 0===i[r]&&(i[r]=m[r])}if(a||o){var g="function"==typeof e?e.displayName||e.name||"Unknown":e;a&&(u=i,c=g,(d=function(){W||(W=!0,T("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",c))}).isReactWarning=!0,Object.defineProperty(u,"key",{get:d,configurable:!0})),o&&function(e,t){var n=function(){q||(q=!0,T("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}(i,g)}return J(e,a,o,s,l,k.current,i)}function Q(t,n,r){if(null==t)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var i,a,o=e({},t.props),s=t.key,l=t.ref,u=t._self,c=t._source,d=t._owner;if(null!=n)for(i in G(n)&&(l=n.ref,d=k.current),Y(n)&&(s=""+n.key),t.type&&t.type.defaultProps&&(a=t.type.defaultProps),n)H.call(n,i)&&!Z.hasOwnProperty(i)&&(void 0===n[i]&&void 0!==a?o[i]=a[i]:o[i]=n[i]);var p=arguments.length-2;if(1===p)o.children=r;else if(p>1){for(var h=Array(p),f=0;f<p;f++)h[f]=arguments[f+2];o.children=h}return J(t.type,s,l,u,c,d,o)}function ee(e){return"object"==typeof e&&null!==e&&e.$$typeof===r}var te=!1,ne=/\/+/g;function re(e){return(""+e).replace(ne,"$&/")}var ie,ae=[];function oe(e,t,n,r){if(ae.length){var i=ae.pop();return i.result=e,i.keyPrefix=t,i.func=n,i.context=r,i.count=0,i}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function se(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,ae.length<10&&ae.push(e)}function le(e,t,n,a){var o=typeof e;"undefined"!==o&&"boolean"!==o||(e=null);var s,l=!1;if(null===e)l=!0;else switch(o){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case r:case i:l=!0}}if(l)return n(a,e,""===t?"."+ce(e,0):t),1;var u=0,c=""===t?".":t+":";if(Array.isArray(e))for(var d=0;d<e.length;d++)u+=le(s=e[d],c+ce(s,d),n,a);else{var p=w(e);if("function"==typeof p){p===e.entries&&(te||$("Using Maps as children is deprecated and will be removed in a future major release. Consider converting children to an array of keyed ReactElements instead."),te=!0);for(var h,f=p.call(e),m=0;!(h=f.next()).done;)u+=le(s=h.value,c+ce(s,m++),n,a)}else if("object"===o){var g;g=" If you meant to render a collection of children, use an array instead."+j.getStackAddendum();var y=""+e;throw Error("Objects are not valid as a React child (found: "+("[object Object]"===y?"object with keys {"+Object.keys(e).join(", ")+"}":y)+")."+g)}}return u}function ue(e,t,n){return null==e?0:le(e,"",t,n)}function ce(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(n=e.key,r={"=":"=0",":":"=2"},"$"+(""+n).replace(/[=:]/g,(function(e){return r[e]}))):t.toString(36);var n,r}function de(e,t,n){var r=e.func,i=e.context;r.call(i,t,e.count++)}function pe(e,t,n){var r,i,a=e.result,o=e.keyPrefix,s=e.func,l=e.context,u=s.call(l,t,e.count++);Array.isArray(u)?he(u,a,n,(function(e){return e})):null!=u&&(ee(u)&&(r=u,i=o+(!u.key||t&&t.key===u.key?"":re(u.key)+"/")+n,u=J(r.type,i,r.ref,r._self,r._source,r._owner,r.props)),a.push(u))}function he(e,t,n,r,i){var a="";null!=n&&(a=re(n)+"/");var o=oe(t,a,r,i);ue(e,pe,o),se(o)}function fe(e){return"string"==typeof e||"function"==typeof e||e===a||e===c||e===s||e===o||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===f||e.$$typeof===l||e.$$typeof===u||e.$$typeof===d||e.$$typeof===y||e.$$typeof===v||e.$$typeof===b||e.$$typeof===g)}function me(){var e=E.current;if(null===e)throw Error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.");return e}function ge(){if(k.current){var e=D(k.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}ie=!1;var ye={};function ve(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var n=function(e){var t=ge();if(!t){var n="string"==typeof e?e:e.displayName||e.name;n&&(t="\n\nCheck the top-level render call using <"+n+">.")}return t}(t);if(!ye[n]){ye[n]=!0;var r="";e&&e._owner&&e._owner!==k.current&&(r=" It was passed a child from "+D(e._owner.type)+"."),R(e),T('Each child in a list should have a unique "key" prop.%s%s See https://fb.me/react-warning-keys for more information.',n,r),R(null)}}}function be(e,t){if("object"==typeof e)if(Array.isArray(e))for(var n=0;n<e.length;n++){var r=e[n];ee(r)&&ve(r,t)}else if(ee(e))e._store&&(e._store.validated=!0);else if(e){var i=w(e);if("function"==typeof i&&i!==e.entries)for(var a,o=i.call(e);!(a=o.next()).done;)ee(a.value)&&ve(a.value,t)}}function xe(e){var n=e.type;if(null!=n&&"string"!=typeof n){var r,i=D(n);if("function"==typeof n)r=n.propTypes;else{if("object"!=typeof n||n.$$typeof!==d&&n.$$typeof!==f)return;r=n.propTypes}r?(R(e),t(r,e.props,"prop",i,j.getStackAddendum),R(null)):void 0===n.PropTypes||ie||(ie=!0,T("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",i||"Unknown")),"function"!=typeof n.getDefaultProps||n.getDefaultProps.isReactClassApproved||T("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function we(e,t,n){var i,o,s=fe(e);if(!s){var l,u="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(u+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),u+=(null!=(i=t)&&void 0!==(o=i.__source)?"\n\nCheck your code at "+o.fileName.replace(/^.*[\\\/]/,"")+":"+o.lineNumber+".":"")||ge(),null===e?l="null":Array.isArray(e)?l="array":void 0!==e&&e.$$typeof===r?(l="<"+(D(e.type)||"Unknown")+" />",u=" Did you accidentally export a JSX literal instead of a component?"):l=typeof e,T("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",l,u)}var c=X.apply(this,arguments);if(null==c)return c;if(s)for(var d=2;d<arguments.length;d++)be(arguments[d],e);return e===a?function(e){R(e);for(var t=Object.keys(e.props),n=0;n<t.length;n++){var r=t[n];if("children"!==r&&"key"!==r){T("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",r);break}}null!==e.ref&&T("Invalid attribute `ref` supplied to `React.Fragment`."),R(null)}(c):xe(c),c}var Ee=!1;try{var ke=Object.freeze({}),Se=new Map([[ke,null]]),De=new Set([ke]);Se.set(0,0),De.add(0)}catch(Re){}var je=we,Ce={map:function(e,t,n){if(null==e)return e;var r=[];return he(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;var r=oe(null,null,t,n);ue(e,de,r),se(r)},count:function(e){return ue(e,(function(){return null}),null)},toArray:function(e){var t=[];return he(e,t,null,(function(e){return e})),t},only:function(e){if(!ee(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Kd.Children=Ce,Kd.Component=F,Kd.Fragment=a,Kd.Profiler=s,Kd.PureComponent=B,Kd.StrictMode=o,Kd.Suspense=p,Kd.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=P,Kd.cloneElement=function(e,t,n){for(var r=Q.apply(this,arguments),i=2;i<arguments.length;i++)be(arguments[i],r.type);return xe(r),r},Kd.createContext=function(e,t){void 0===t?t=null:null!==t&&"function"!=typeof t&&T("createContext: Expected the optional second argument to be a function. Instead received: %s",t);var n={$$typeof:u,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null};n.Provider={$$typeof:l,_context:n};var r=!1,i=!1,a={$$typeof:u,_context:n,_calculateChangedBits:n._calculateChangedBits};return Object.defineProperties(a,{Provider:{get:function(){return i||(i=!0,T("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),n.Provider},set:function(e){n.Provider=e}},_currentValue:{get:function(){return n._currentValue},set:function(e){n._currentValue=e}},_currentValue2:{get:function(){return n._currentValue2},set:function(e){n._currentValue2=e}},_threadCount:{get:function(){return n._threadCount},set:function(e){n._threadCount=e}},Consumer:{get:function(){return r||(r=!0,T("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),n.Consumer}}}),n.Consumer=a,n._currentRenderer=null,n._currentRenderer2=null,n},Kd.createElement=je,Kd.createFactory=function(e){var t=we.bind(null,e);return t.type=e,Ee||(Ee=!0,$("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(t,"type",{enumerable:!1,get:function(){return $("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}}),t},Kd.createRef=function(){var e={current:null};return Object.seal(e),e},Kd.forwardRef=function(e){return null!=e&&e.$$typeof===f?T("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):"function"!=typeof e?T("forwardRef requires a render function but was given %s.",null===e?"null":typeof e):0!==e.length&&2!==e.length&&T("forwardRef render functions accept exactly two parameters: props and ref. %s",1===e.length?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),null!=e&&(null==e.defaultProps&&null==e.propTypes||T("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?")),{$$typeof:d,render:e}},Kd.isValidElement=ee,Kd.lazy=function(e){var t,n,r={$$typeof:m,_ctor:e,_status:-1,_result:null};return Object.defineProperties(r,{defaultProps:{configurable:!0,get:function(){return t},set:function(e){T("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),t=e,Object.defineProperty(r,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return n},set:function(e){T("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),n=e,Object.defineProperty(r,"propTypes",{enumerable:!0})}}}),r},Kd.memo=function(e,t){return fe(e)||T("memo: The first argument must be a component. Instead received: %s",null===e?"null":typeof e),{$$typeof:f,type:e,compare:void 0===t?null:t}},Kd.useCallback=function(e,t){return me().useCallback(e,t)},Kd.useContext=function(e,t){var n=me();if(void 0!==t&&T("useContext() second argument is reserved for future use in React. Passing it is not supported. You passed: %s.%s",t,"number"==typeof t&&Array.isArray(arguments[2])?"\n\nDid you call array.map(useContext)? Calling Hooks inside a loop is not supported. Learn more at https://fb.me/rules-of-hooks":""),void 0!==e._context){var r=e._context;r.Consumer===e?T("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):r.Provider===e&&T("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return n.useContext(e,t)},Kd.useDebugValue=function(e,t){return me().useDebugValue(e,t)},Kd.useEffect=function(e,t){return me().useEffect(e,t)},Kd.useImperativeHandle=function(e,t,n){return me().useImperativeHandle(e,t,n)},Kd.useLayoutEffect=function(e,t){return me().useLayoutEffect(e,t)},Kd.useMemo=function(e,t){return me().useMemo(e,t)},Kd.useReducer=function(e,t,n){return me().useReducer(e,t,n)},Kd.useRef=function(e){return me().useRef(e)},Kd.useState=function(e){return me().useState(e)},Kd.version="16.14.0"}(),"production"===process.env.NODE_ENV?td.exports=nd:td.exports=Kd;var ep=td.exports,tp={sdkSemver:"1.13.1",techVersion:ep.version,sdkCode:"J"},np=function(e){function t(t){var n=e.call(this,t)||this;return n.imageRef=ep.createRef(),n}return Xc(t,e),t.prototype.componentDidMount=function(){this.htmlLayerInstance=new uu(this.imageRef.current,this.props.cldImg,this.props.plugins,tp)},t.prototype.componentDidUpdate=function(){Yc(this.htmlLayerInstance.htmlPluginState),this.htmlLayerInstance.update(this.props.cldImg,this.props.plugins,tp)},t.prototype.componentWillUnmount=function(){Yc(this.htmlLayerInstance.htmlPluginState),this.htmlLayerInstance.unmount()},t.prototype.render=function(){var e=this.props;e.cldImg,e.plugins;var t=ed(e,["cldImg","plugins"]);if(qc())return ep.createElement("img",Qc({suppressHydrationWarning:!0},t,{ref:this.imageRef}));var n=function(e,t,n){var r=au(t);if(e)for(var i=0;i<e.length&&e[i](null,r);i++);return r.toURL(n?{trackedAnalytics:n}:null)}(this.props.plugins,this.props.cldImg,tp);return ep.createElement("img",Qc({},t,{src:n}))},t}(ep.Component),rp=["controls","loop","muted","poster","preload","autoplay","playsinline"];!function(e){function t(t){var n=e.call(this,t)||this;return n.videoRef=td.exports.createRef(),n.attachRef=n.attachRef.bind(n),n}Xc(t,e),t.prototype.componentDidMount=function(){this.htmlVideoLayerInstance=new Bc(this.videoRef&&this.videoRef.current,this.props.cldVid,this.props.sources,this.props.plugins,this.getVideoAttributes(),this.props.cldPoster,{useFetchFormat:this.props.useFetchFormat})},t.prototype.componentDidUpdate=function(){Yc(this.htmlVideoLayerInstance.htmlPluginState),this.htmlVideoLayerInstance.update(this.props.cldVid,this.props.sources,this.props.plugins,this.getVideoAttributes(),this.props.cldPoster)},t.prototype.componentWillUnmount=function(){Yc(this.htmlVideoLayerInstance.htmlPluginState)},t.prototype.getVideoAttributes=function(){var e=this,t={};return rp.forEach((function(n){n in e.props&&(t[n]=e.props[n])})),t},t.prototype.attachRef=function(e){this.videoRef.current=e;var t=this.props.innerRef;t&&(t instanceof Function?t(e):t.current=e)},t.prototype.render=function(){var e=this.props;e.cldVid,e.cldPoster,e.plugins,e.sources,e.innerRef,e.useFetchFormat;var t=ed(e,["cldVid","cldPoster","plugins","sources","innerRef","useFetchFormat"]);return ep.createElement("video",Qc({},t,{ref:this.attachRef}))}}(td.exports.Component);const ip=(e,n)=>{const[r,i]=t.useState(0),[a,o]=t.useState(0);return t.useEffect((()=>{100===a&&i((e=>e===n-1?0:e+1))}),[a,n]),t.useEffect((()=>{const t=setInterval((()=>{o((e=>100===e?0:e+1))}),e);return()=>{clearInterval(t)}}),[e]),{cycle:r,progress:a,setCycle:i,setProgress:o}};class ap{filterOutNonSupportedKeys(e,t){const n=Object.create({});return"object"!=typeof(r=e)||r instanceof Array?Object.create({}):(Object.keys(e).forEach((r=>{t.indexOf(r)>=0&&(n[r]=e[r])})),n);var r}}const op=["cname","secureDistribution","privateCdn","signUrl","longUrlSignature","shorten","useRootPath","secure","forceVersion","analytics","queryParams"];class sp extends ap{constructor(e){super();const t=this.filterOutNonSupportedKeys(e,op);Object.assign(this,{secure:!0},t)}extend(e){const t=this.filterOutNonSupportedKeys(e,op);return new sp(Object.assign({},this,t))}setCname(e){return this.cname=e,this}setSecureDistribution(e){return this.secureDistribution=e,this}setPrivateCdn(e){return this.privateCdn=e,this}setSignUrl(e){return this.signUrl=e,this}setLongUrlSignature(e){return this.longUrlSignature=e,this}setShorten(e){return this.shorten=e,this}setUseRootPath(e){return this.useRootPath=e,this}setSecure(e){return this.secure=e,this}setForceVersion(e){return this.forceVersion=e,this}setQueryParams(e){return this.queryParams=e,this}}class lp{constructor(e){this.values=[],this.delimiter=":",this.hasValue(e)&&this.addValue(e)}toString(){return this.values.join(this.delimiter)}hasValue(e){return null!=e&&""!==e}addValue(e){return Array.isArray(e)?this.values=this.values.concat(e):this.values.push(e),this.values=this.values.filter((e=>this.hasValue(e))),this}setDelimiter(e){return this.delimiter=e,this}}class up extends Error{constructor(e="Unsupported"){super(e)}}function cp(e){return new up(e)}function dp(){return this._qualifierModel||{error:cp(`unsupported qualifier ${this.constructor.name}`)}}class pp{constructor(){this._qualifierModel={}}toJson(){return dp.apply(this)}}class hp extends pp{constructor(e,t){super(),this.delimiter="_",this.key=e,t instanceof lp?this.qualifierValue=t:(this.qualifierValue=new lp,this.qualifierValue.addValue(t))}toString(){const{key:e,delimiter:t,qualifierValue:n}=this;return`${e}${t}${n.toString()}`}addValue(e){return this.qualifierValue.addValue(e),this}}class fp extends hp{constructor(e,t){let n;n=t?new lp([e,`${t}`]).setDelimiter(":"):e,super("fl",n),this.flagValue=t}toString(){return super.toString().replace(/\./g,"%2E")}getFlagValue(){return this.flagValue}}function mp(){var e,t,n;const r=this._actionModel&&Object.keys(this._actionModel).length,i=null===(n=null===(t=null===(e=this._actionModel)||void 0===e?void 0:e.source)||void 0===t?void 0:t.transformation)||void 0===n?void 0:n.error;return i&&i instanceof Error?{error:i}:r?this._actionModel:{error:cp(`unsupported action ${this.constructor.name}`)}}class gp{constructor(){this._actionModel={}}toJson(){return mp.apply(this)}}class yp extends gp{constructor(){super(...arguments),this.qualifiers=new Map,this.flags=[],this.delimiter=",",this.actionTag=""}prepareQualifiers(){}getActionTag(){return this.actionTag}setActionTag(e){return this.actionTag=e,this}toString(){return this.prepareQualifiers(),function(e,t){const n=Array.from(e.entries());return t.forEach((e=>{n.push(["fl",e])})),n.sort().map((e=>e[1]))}(this.qualifiers,this.flags).join(this.delimiter)}addQualifier(e){if("string"==typeof e){const[t,n]=e.toLowerCase().split("_");"fl"===t?this.flags.push(new fp(n)):this.qualifiers.set(t,new hp(t,n))}else this.qualifiers.set(e.key,e);return this}addFlag(e){return"string"==typeof e?this.flags.push(new fp(e)):e instanceof fp&&this.flags.push(e),this}addValueToQualifier(e,t){return this.qualifiers.get(e).addValue(t),this}}class vp extends yp{constructor(e){var t;super(),this._actionModel={},this.addQualifier(new hp("b",new lp((t=e,t&&t.match(/^#/)?`rgb:${t.substr(1)}`:t)).setDelimiter("_"))),this._actionModel.color=e,this._actionModel.actionType="backgroundColor"}static fromJson(e){const{color:t}=e;return new this(t)}}class bp{constructor(e){this.raw=e}toString(){return this.raw}toJson(){return{error:cp(`unsupported action ${this.constructor.name}`)}}}class xp extends lp{constructor(e){super(e),this.val=e}getValue(){return this.val}}function wp(e){const t={};return Object.keys(e).forEach((n=>{t[e[n]]=n})),t}wp({444:"CHROMA_444",420:"CHROMA_420"}),wp({noCmyk:"no_cmyk",keepCmyk:"keep_cmyk",tinySrgb:"tinysrgb",srgbTrueColor:"srgb:truecolor"}),wp({limitFit:"limit",limitFill:"lfill",minimumFit:"mfit",thumbnail:"thumb",limitPad:"lpad",minimumPad:"mpad",autoPad:"auto_pad"});const Ep=wp({colorSpace:"cs",dpr:"dpr",density:"dn",defaultImage:"d",format:"f",quality:"q"});wp({redEye:"redeye",advancedRedEye:"adv_redeye",oilPaint:"oil_paint",unsharpMask:"unsharp_mask",makeTransparent:"make_transparent",generativeRestore:"gen_restore",upscale:"upscale"}),wp({autoBest:"auto:best",autoEco:"auto:eco",autoGood:"auto:good",autoLow:"auto:low",jpegminiHigh:"jpegmini:1",jpegminiMedium:"jpegmini:2",jpegminiBest:"jpegmini:0"}),wp({fullHd:"full_hd",fullHdWifi:"full_hd_wifi",fullHdLean:"full_hd_lean",hdLean:"hd_lean"});class kp extends yp{constructor(e,t,n){let r;super(),this._actionModel={},r=t instanceof xp?t.getValue():t,this._actionModel.actionType=Ep[e],this._actionModel[n]=r,this.addQualifier(new hp(e,t))}}class Sp extends fp{constructor(e){super("progressive",e)}}class Dp extends kp{constructor(e,t){super(e,t,"formatType")}lossy(){return this._actionModel.lossy=!0,this.addFlag(new fp("lossy")),this}progressive(e){return e instanceof Sp?(this._actionModel.progressive={mode:e.getFlagValue()},this.addFlag(e)):(this._actionModel.progressive={mode:e},this.addFlag(new fp("progressive",e))),this}preserveTransparency(){return this._actionModel.preserveTransparency=!0,this.addFlag(new fp("preserve_transparency")),this}static fromJson(e){const{formatType:t,lossy:n,progressive:r,preserveTransparency:i}=e;let a;return a=t?new this("f",t):new this("f"),r&&(r.mode?a.progressive(r.mode):a.progressive()),n&&a.lossy(),i&&a.preserveTransparency(),a}}class jp{constructor(){this.actions=[]}addAction(e){let t;if("string"==typeof e){if(e.indexOf("/")>=0)throw"addAction cannot accept a string with a forward slash in it - /, use .addTransformation() instead";t=new bp(e)}else t=e;return this.actions.push(t),this}addTransformation(e){return e instanceof jp?this.actions=this.actions.concat(e.actions):this.actions.push(new bp(e)),this}toString(){return this.actions.map((e=>e.toString())).filter((e=>e)).join("/")}animated(e){return this.addAction(e)}border(e){return this.addAction(e)}reshape(e){return this.addAction(e)}resize(e){return this.addAction(e)}quality(e){return this.addAction(new Dp("q",e)),this}format(e){return this.addAction(new Dp("f",e)),this}roundCorners(e){return this.addAction(e)}overlay(e){return this.addAction(e)}underlay(e){return e.setLayerType("u"),this.addAction(e)}addVariable(e){return this.addAction(e)}conditional(e){return this.addAction(e)}effect(e){return this.addAction(e)}adjust(e){return this.addAction(e)}rotate(e){return this.addAction(e)}namedTransformation(e){return this.addAction(e)}delivery(e){return this.addAction(e)}backgroundColor(e){return this.addAction(new vp(e))}psdTools(e){return this.addAction(e)}extract(e){return this.addAction(e)}addFlag(e){const t=new yp;let n=e;return"string"==typeof e&&(n=new fp(e)),t.addQualifier(n),this.addAction(t)}customFunction(e){return this.addAction(e)}transcode(e){return this.addAction(e)}videoEdit(e){return this.addAction(e)}toJson(){const e=[];for(const n of this.actions){const r=n.toJson();if("error"in(t=r)&&t.error)return r;e.push(r)}var t;return{actions:e}}}class Cp extends jp{}class Rp extends jp{}function Pp(e,t,n){let r=0|t,i=String(n);return e.length>r?String(e):(r-=e.length,r>i.length&&(i+=function(e,t){let n=t,r="";for(;n>0;)r+=e,n--;return r}(i,r/i.length)),i.slice(0,r)+String(e))}const $p={};let Tp=0;function _p(e){let t="";const n=6*e.split(".").length,r=function(e){if(e.split(".").length<2)throw new Error("invalid semVer, must have at least two segments");return e.split(".").map((e=>{const t=+e;if(isNaN(t)||t<0)throw"Invalid version number provided";return Pp(e,2,"0")})).join(".")}(function(e){if(e.split(".").length<2)throw new Error("invalid semVer, must have at least two segments");return e.split(".").reverse().join(".")}(e));let i=parseInt(r.split(".").join("")).toString(2);if(i=Pp(i,n,"0"),i.length%6!=0)throw"Version must be smaller than 43.21.26)";return i.match(/.{1,6}/g).forEach((e=>{t+=$p[e]})),t}function Mp(){const e="0.0.0";if("undefined"!=typeof window)return e;try{return process.versions.node||e}catch(ew){return e}}function Ap(e){const t=function(e){const t={sdkSemver:e.sdkSemver,techVersion:e.techVersion,sdkCode:e.sdkCode,product:e.product,feature:"0",osType:e.osType,osVersion:e.osVersion};return e.accessibility&&(t.feature="D"),e.lazyload&&(t.feature="C"),e.responsive&&(t.feature="A"),e.placeholder&&(t.feature="B"),t}(function(e){const t={techVersion:Mp(),sdkCode:"T",sdkSemver:"1.21.0".split("-")[0],product:"A",osType:"Z",osVersion:"0.0",responsive:!1,placeholder:!1,lazyload:!1,accessibility:!1};return e?Object.assign(Object.assign({},t),e):t}(e));try{const e=function(e){const t=e.split(".");return`${t[0]}.${t[1]}`}(t.techVersion),n=_p(t.sdkSemver),r=_p(e),i=function(e){const[t,n]=e.split("."),r=parseInt(t).toString(2),i=parseInt(n).toString(2),a=r.padStart(6,"0"),o=i.padStart(6,"0");return $p[a]+$p[o]}(t.osVersion),a=t.feature,o=t.sdkCode,{product:s,osType:l}=t;return`D${s}${o}${n}${r}${l}${i}${a}`}catch(n){return"E"}}"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("").forEach((e=>{let t=Tp.toString(2);t=Pp(t,6,"0"),$p[t]=e,Tp++}));const Ip={"image/upload":"images","image/private":"private_images","image/authenticated":"authenticated_images","raw/upload":"files","video/upload":"videos"};class Op{constructor(e,t={},n){this.setPublicID(e),this.setCloudConfig(t),this.setURLConfig(n)}setURLConfig(e){return this.urlConfig=new sp(e),this}setCloudConfig(e){return this.cloudName=e.cloudName,this.apiKey=e.apiKey,this.apiSecret=e.apiSecret,this.authToken=e.authToken,this}setPublicID(e){return this.publicID=e?e.toString():"",this}setDeliveryType(e){return this.deliveryType=e,this}setSuffix(e){return this.suffix=e,this}setSignature(e){return this.signature=e,this}setVersion(e){return e&&(this.version=e),this}setAssetType(e){return e&&(this.assetType=e),this}sign(){return this}toURL(e={}){return this.createCloudinaryURL(null,e.trackedAnalytics)}validateAssetForURLCreation(){if(void 0===this.cloudName)throw"You must supply a cloudName when initializing the asset";const e=this.suffix&&this.suffix.indexOf(".")>=0,t=this.suffix&&this.suffix.indexOf("/")>=0;if(e||t)throw"`suffix`` should not include . or /"}getResourceType(){const e=function(e){return e||"image"}(this.assetType),t=function(e){return e||"upload"}(this.deliveryType),n=!!this.suffix,r=`${e}/${t}`,i=Ip[`${e}/${t}`],a=this.urlConfig.useRootPath,o=this.urlConfig.shorten;if(a){if("image/upload"===r)return"";throw new Error(`useRootPath can only be used with assetType: 'image' and deliveryType: 'upload'. Provided: ${r} instead`)}if(o&&"image/upload"===r)return"iu";if(n){if(i)return i;throw new Error(`URL Suffix only supported for ${Object.keys(Ip).join(", ")}, Provided: ${r} instead`)}return r}getSignature(){return this.signature?`s--${this.signature}--`:""}createCloudinaryURL(e,t){if(!this.publicID)return"";this.validateAssetForURLCreation();const n=function(e,t){const n=t.secure,r=t.privateCdn,i=t.cname,a=t.secureDistribution;return n||i?n&&!a&&r?`https://${e}-res.cloudinary.com`:n&&!a?`https://res.cloudinary.com/${e}`:n&&a&&r?`https://${a}`:n&&a?`https://${a}/${e}`:!n&&i?`http://${i}/${e}`:"ERROR":`http://res.cloudinary.com/${e}`}(this.cloudName,this.urlConfig),r=e?e.toString():"",i=function(e,t,n){const r=!1!==n;return t?`v${t}`:e.match(/^v[0-9]+/)||function(e){return e.match(/^https?:\//)}(e)||function(e){return e.indexOf("/")<0}(e)?"":r?"v1":""}(this.publicID,this.version,this.urlConfig.forceVersion),a=this.publicID;if("string"==typeof e){return[n,this.getResourceType(),this.getSignature(),r,i,a.replace(/,/g,"%2C"),this.suffix].filter((e=>e)).join("/")}{const e=[encodeURI(n),this.getResourceType(),this.getSignature(),encodeURI(r),i,encodeURI(a).replace(/,/g,"%2C"),this.suffix&&encodeURI(this.suffix)].filter((e=>e)).join("/").replace(/\?/g,"%3F").replace(/=/g,"%3D"),s=!1!==this.urlConfig.analytics&&!a.includes("?");let l="";if("object"==typeof this.urlConfig.queryParams)try{const e=new URLSearchParams(this.urlConfig.queryParams);s&&e.set("_a",Ap(t)),l=e.toString()}catch(o){}else l=this.urlConfig.queryParams||"",s&&(l+=`${l.length>0?"&":""}_a=${Ap(t)}`);return l?`${e}?${l}`:e}}}class Fp extends Op{constructor(e,t,n,r){super(e,t,n),this.transformation=r}animated(e){return this.transformation.animated(e),this}border(e){return this.transformation.border(e),this}reshape(e){return this.transformation.reshape(e),this}resize(e){return this.transformation.resize(e),this}quality(e){return this.addAction(new Dp("q",e)),this}format(e){return this.addAction(new Dp("f",e)),this}roundCorners(e){return this.transformation.roundCorners(e),this}overlay(e){return this.transformation.overlay(e),this}addVariable(e){return this.transformation.addVariable(e),this}conditional(e){return this.transformation.conditional(e),this}effect(e){return this.transformation.effect(e),this}adjust(e){return this.transformation.adjust(e),this}rotate(e){return this.transformation.rotate(e),this}namedTransformation(e){return this.transformation.namedTransformation(e),this}delivery(e){return this.transformation.delivery(e),this}backgroundColor(e){return this.transformation.backgroundColor(e),this}psdTools(e){return this.transformation.psdTools(e),this}extract(e){return this.transformation.extract(e),this}addFlag(e){return this.transformation.addFlag(e),this}customFunction(e){return this.transformation.customFunction(e),this}addAction(e){return this.transformation.addAction(e),this}addTransformation(e){return this.transformation.addTransformation(e),this}toString(){return this.transformation.toString()}underlay(e){return this.transformation.underlay(e),this}toURL(e={}){return this.createCloudinaryURL(this.transformation,null==e?void 0:e.trackedAnalytics)}}class Lp extends Fp{constructor(e,t,n){super(e,t,n,new Cp)}}class Vp extends Fp{constructor(e,t,n){super(e,t,n,new Rp),this.assetType="video"}transcode(e){return this.transformation.transcode(e),this}videoEdit(e){return this.transformation.videoEdit(e),this}}class Np{constructor(e){e&&(this.cloudinaryConfig=e)}image(e){return new Lp(e,this.cloudinaryConfig.cloud,this.cloudinaryConfig.url)}video(e){return new Vp(e,this.cloudinaryConfig.cloud,this.cloudinaryConfig.url)}setConfig(e){return this.cloudinaryConfig=e,this}getConfig(){return this.cloudinaryConfig}extendConfig(){}}const zp=({publicId:e,format:n="webp"})=>{const r=t.useMemo((()=>new Np({cloud:{cloudName:"fluid-attacks"}})),[]);return t.useMemo((()=>r.image(e).format(n)),[r,e,n])},Bp=(e,n)=>t.useMemo((()=>r.debounce(e,n)),[e,n]),Up=e=>{const[n,r]=t.useState(!1),i=t.useCallback((()=>{r(!0)}),[]),a=t.useCallback((()=>{r(!1)}),[]),o=t.useCallback((()=>{r((e=>!e))}),[]);return{close:a,isOpen:n,name:e,open:i,setIsOpen:r,toggle:o}},Wp=t.memo((({alt:t="img",height:n="",width:r="",plugins:i=[Kc(),Zc()],publicId:a})=>{const o=zp({publicId:a});return e.jsxRuntimeExports.jsx(np,{alt:t,cldImg:o,height:n,plugins:i,width:r})})),qp=n.styled.label`
|
|
172
172
|
${({theme:e,$disabled:t})=>{const n=t?300:600,r=t?"not-allowed":"pointer";return`\n display: flex;\n align-items: center;\n font-family: ${e.typography.type.primary};\n font-size: ${e.typography.text.sm};\n font-weight: ${e.typography.weight.regular};\n line-height: ${e.typography.text.lg};\n text-align: left;\n position: relative;\n cursor: ${r};\n color: ${e.palette.gray[n]};\n gap: ${e.spacing[.5]};\n\n input {\n position: absolute;\n opacity: 0;\n cursor: pointer;\n width: 0;\n }\n\n .checkmark {\n position: relative;\n top: 0;\n left: 0;\n height: 16px;\n width: 16px;\n background-color: ${e.palette.white};\n border-radius: 50%;\n border: 1px solid ${e.palette.gray[600]};\n }\n\n input:disabled ~ .checkmark {\n border: 1px solid ${e.palette.gray[300]};\n background-color: ${e.palette.white};\n cursor: not-allowed;\n }\n\n input:not(:disabled):checked ~ .checkmark {\n background-color: ${e.palette.white};\n border: 1px solid ${e.palette.primary[500]};\n }\n\n input:not(:disabled):hover ~ .checkmark {\n background-color: ${e.palette.white};\n box-shadow: 0 0 0 4px ${e.palette.gray[100]};\n }\n\n input:not(:disabled):hover:checked ~ .checkmark {\n background-color: ${e.palette.white};\n box-shadow: 0 0 0 4px ${e.palette.primary[50]};\n }\n\n .checkmark::after {\n content: "";\n position: absolute;\n display: none;\n top: 3px;\n left: 3px;\n width: 8px;\n height: 8px;\n border-radius: 50%;\n background: ${e.palette.primary[500]};\n }\n\n input:checked ~ .checkmark::after {\n display: block;\n }\n\n input:disabled:checked ~ .checkmark::after {\n background-color: ${e.palette.gray[300]};\n }\n `}}
|
|
173
|
-
`,
|
|
173
|
+
`,Kp=n.styled.span.attrs({className:"checkmark"})``,Hp=t.forwardRef((function({defaultChecked:t=!1,disabled:n=!1,label:r,name:i,onChange:a,onClick:o,value:s,...l},u){return e.jsxRuntimeExports.jsxs(qp,{$disabled:n,children:[e.jsxRuntimeExports.jsx("input",{"aria-label":i,defaultChecked:t,disabled:n,name:i,onChange:a,onClick:o,ref:u,type:"radio",value:s,...l}),e.jsxRuntimeExports.jsx(Kp,{}),r??null]})})),Zp=n.styled.div`
|
|
174
174
|
${({theme:e})=>`\n align-items: center;\n background-color: ${e.palette.gray[200]};\n border-radius: 34px;\n cursor: pointer;\n display: flex;\n height: 20px;\n position: relative;\n transition: 0.2s;\n width: 36px;\n `}
|
|
175
|
-
`,
|
|
175
|
+
`,Gp=n.styled.div`
|
|
176
176
|
${({theme:e})=>`\n background-color: ${e.palette.white};\n border-radius: 50%;\n height: ${e.spacing[1]};\n left: 2px;\n position: absolute;\n transition: 0.2s;\n width: ${e.spacing[1]};\n z-index: 1;\n `}
|
|
177
|
-
`,
|
|
177
|
+
`,Yp=n.styled.label`
|
|
178
178
|
display: inline-block;
|
|
179
179
|
|
|
180
180
|
input {
|
|
@@ -184,70 +184,70 @@ function hd(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant=
|
|
|
184
184
|
width: 0;
|
|
185
185
|
}
|
|
186
186
|
|
|
187
|
-
input:checked + ${
|
|
187
|
+
input:checked + ${Zp} {
|
|
188
188
|
background-color: ${({theme:e})=>e.palette.primary[500]};
|
|
189
189
|
}
|
|
190
190
|
|
|
191
|
-
input:checked + ${
|
|
191
|
+
input:checked + ${Zp} > div {
|
|
192
192
|
transform: translateX(100%);
|
|
193
193
|
}
|
|
194
194
|
|
|
195
|
-
input:disabled + ${
|
|
195
|
+
input:disabled + ${Zp} {
|
|
196
196
|
cursor: not-allowed;
|
|
197
197
|
background-color: ${({theme:e})=>e.palette.gray[100]};
|
|
198
198
|
}
|
|
199
199
|
|
|
200
|
-
input:disabled + ${
|
|
200
|
+
input:disabled + ${Zp} > div {
|
|
201
201
|
background-color: ${({theme:e})=>e.palette.gray[200]};
|
|
202
202
|
border: 1px solid ${({theme:e})=>e.palette.gray[200]};
|
|
203
203
|
}
|
|
204
|
-
`,
|
|
204
|
+
`,Jp=t.forwardRef((function({defaultChecked:n,disabled:r=!1,justify:i,name:a,leftDescription:o,rightDescription:s,...l},u){const d=!0===n?"on":"off",p="object"==typeof o&&o.on&&o.off?o[d]:o,h=t.useCallback((e=>{e.stopPropagation()}),[]);return e.jsxRuntimeExports.jsxs(c,{alignItems:"center",display:"flex",fontSize:"14px",gap:.75,justify:i,children:[p,e.jsxRuntimeExports.jsxs(Yp,{onClick:h,children:[e.jsxRuntimeExports.jsx("input",{...l,"aria-disabled":r,"aria-label":a,checked:!0===n,disabled:r,name:a,ref:u,type:"checkbox"}),e.jsxRuntimeExports.jsx(Zp,{"aria-label":"Toggle Switch",id:`${a}Toggle`,children:e.jsxRuntimeExports.jsx(Gp,{})})]}),s]})})),Xp=n.styled.div`
|
|
205
205
|
position: relative;
|
|
206
206
|
margin: auto;
|
|
207
207
|
overflow: hidden;
|
|
208
|
-
`,
|
|
208
|
+
`,Qp=n.styled.div`
|
|
209
209
|
display: flex;
|
|
210
210
|
transition: transform 0.5s ease-in-out;
|
|
211
211
|
transform: translateX(
|
|
212
212
|
${({$currentIndex:e})=>100*-e}%
|
|
213
213
|
);
|
|
214
|
-
`,
|
|
214
|
+
`,eh=n.styled.div`
|
|
215
215
|
align-items: center;
|
|
216
216
|
display: flex;
|
|
217
217
|
justify-content: center;
|
|
218
218
|
min-width: 100%;
|
|
219
|
-
`,
|
|
219
|
+
`,th=n.styled.button`
|
|
220
220
|
${({theme:e,$isActive:t})=>`\n background-color: ${t?e.palette.primary[400]:e.palette.white};\n border: none;\n border-radius: 50%;\n cursor: pointer;\n height: ${e.spacing[.75]};\n width: ${e.spacing[.75]};\n `}
|
|
221
|
-
`,
|
|
221
|
+
`,nh=n.styled.div`
|
|
222
222
|
align-items: center;
|
|
223
223
|
display: flex;
|
|
224
224
|
gap: ${({theme:e})=>e.spacing[.5]};
|
|
225
225
|
justify-content: center;
|
|
226
226
|
margin-top: ${({theme:e})=>e.spacing[2]};
|
|
227
|
-
`,
|
|
228
|
-
${({$alert:t,$disabled:n,$variant:r})=>{const i=n?300:600;return`\n display: flex;\n align-items: start;\n position: relative;\n cursor: ${n?"not-allowed":"pointer"};\n font-family: ${e.theme.typography.type.primary};\n font-size: ${
|
|
229
|
-
`,
|
|
227
|
+
`,rh={web:{normal:e.theme.typography.text.md,sm:e.theme.typography.text.sm},platform:{normal:e.theme.typography.text.sm,sm:e.theme.typography.text.sm}},ih=n.styled.label`
|
|
228
|
+
${({$alert:t,$disabled:n,$variant:r})=>{const i=n?300:600;return`\n display: flex;\n align-items: start;\n position: relative;\n cursor: ${n?"not-allowed":"pointer"};\n font-family: ${e.theme.typography.type.primary};\n font-size: ${rh[r].normal};\n font-weight: ${t?"inherit":e.theme.typography.weight.regular};\n line-height: ${e.theme.spacing[1]};\n letter-spacing: 0;\n text-align: left;\n color: ${t?"inherit":e.theme.palette.gray[i]};\n\n input {\n position: absolute;\n opacity: 0;\n cursor: pointer;\n height: 0;\n width: 0;\n }\n\n svg {\n margin-right: ${e.theme.spacing[.5]};\n top: 0;\n left: 0;\n height: ${e.theme.spacing[.5]};\n width: ${e.theme.spacing[.5]};\n padding: ${e.theme.spacing[.25]};\n background-color: ${e.theme.palette.white};\n border-radius: ${"web"===r?e.theme.spacing[.125]:e.theme.spacing[.25]};\n border: 1px solid ${e.theme.palette.gray[600]};\n }\n\n svg > path {\n fill: ${e.theme.palette.white};\n }\n\n input:checked ~ span > svg {\n background-color: ${e.theme.palette.primary[500]};\n border: 1px solid ${e.theme.palette.primary[500]};\n }\n\n input:disabled ~ span > svg {\n border: 1px solid ${e.theme.palette.gray[300]};\n cursor: not-allowed;\n }\n\n input:not(:disabled):hover ~ span > svg {\n box-shadow: 0 0 0 4px ${e.theme.palette.gray[100]};\n }\n\n input:checked:disabled ~ span > svg {\n background-color: ${e.theme.palette.gray[300]};\n border: 1px solid ${e.theme.palette.gray[300]};\n }\n\n input:not(:disabled):hover:checked ~ span > svg {\n box-shadow: 0 0 0 4px ${e.theme.palette.primary[50]};\n }\n\n input:checked ~ span > svg > path {\n fill: ${e.theme.palette.white};\n }\n\n input:checked:disabled ~ span > svg > path {\n fill: ${e.theme.palette.white};\n }\n\n @media screen and (max-width: ${e.theme.breakpoints.mobile}) {\n font-size: ${rh[r].sm};\n }\n `}}
|
|
229
|
+
`,ah=t.forwardRef((function({defaultChecked:t=!1,disabled:n=!1,label:r,name:i,onChange:a,onClick:o,onFocus:s,onKeyDown:l,value:u,variant:c="web",...d},p){return e.jsxRuntimeExports.jsxs(ih,{$disabled:n,$variant:c,children:[e.jsxRuntimeExports.jsx("input",{"aria-label":i,defaultChecked:t,disabled:n,id:i,name:i,onChange:a,onClick:o,onFocus:s,onKeyDown:l,ref:p,type:"checkbox",value:u,...d}),e.jsxRuntimeExports.jsx(e.Icon,{disabled:n,icon:"check",iconSize:"sm"}),r??u]})})),oh=n.styled.div`
|
|
230
230
|
${({theme:e})=>`\n background-color: ${e.palette.gray[100]};\n border-radius: ${e.spacing[.25]};\n display: inline-flex;\n padding: ${e.spacing[1]};\n position: relative;\n width: fit-content;\n\n .line-highlight.language-none {\n background: ${e.palette.gray[100]};\n }\n\n .line-highlight {\n background: hsl(354deg 88% 93% / 50%);\n font-family: ${e.typography.type.mono};\n font-size: ${e.typography.text.xs};\n line-height: ${e.spacing[1]};\n }\n\n .line-highlight::before,\n .line-highlight[data-end]::after {\n background: ${e.palette.primary[300]};\n background-color: hsl(355deg 89% 36%);\n color: ${e.palette.white};\n }\n\n pre code {\n color: #161616;\n font-family: ${e.typography.type.mono};\n font-size: ${e.typography.text.xs};\n line-height: ${e.spacing[1]};\n }\n\n pre:not(.line-highlight) {\n margin-top: unset;\n margin-bottom: unset;\n padding: unset;\n width: 100%;\n }\n\n span:hover {\n background-color: ${e.palette.gray[200]};\n }\n\n .no-data,\n pre.line-highlight {\n background-color: ${e.palette.gray[100]};\n padding-top: unset;\n padding-bottom: unset;\n }\n `}
|
|
231
|
-
`,
|
|
231
|
+
`,sh=n.styled.div`
|
|
232
232
|
${({theme:e})=>`\n align-items: end;\n background-color: ${e.palette.gray[100]};\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n min-width: 103px;\n margin-right: ${e.spacing[1]};\n padding-top: ${e.spacing[1]};\n padding-bottom: ${e.spacing[1]};\n position: relative;\n padding-left: unset;\n\n button:hover:not([disabled]) {\n background-color: ${e.palette.gray[200]};\n }\n `}
|
|
233
|
-
`,
|
|
233
|
+
`,lh=({disabled:t,id:n="modal-confirm",onCancel:r,onConfirm:i="submit",txtCancel:a,txtConfirm:o})=>{const s="submit"===i;return e.jsxRuntimeExports.jsxs(c,{display:"flex",gap:.75,maxWidth:r?"392px":"190px",mt:1.5,children:[r?e.jsxRuntimeExports.jsx(e.Button,{id:`${n}-cancel`,justify:"center",onClick:r,variant:"tertiary",width:"100%",children:a??"Cancel"}):void 0,e.jsxRuntimeExports.jsx(e.Button,{disabled:t,id:n,justify:"center",onClick:s?void 0:i,type:s?"submit":"button",variant:"primary",width:"100%",children:o??"Confirm"})]})},{getVariant:uh}=e.variantBuilder((e=>({lg:`\n @media screen and (min-width: ${e.breakpoints.sm}) {\n width: 72%;\n }\n @media screen and (max-width: ${e.breakpoints.sm}) {\n width: 80%;\n }\n `,md:`\n @media screen and (min-width: ${e.breakpoints.sm}) {\n width: 48%;\n }\n @media screen and (max-width: ${e.breakpoints.sm}) {\n width: 60%;\n }\n `,sm:`\n @media screen and (min-width: ${e.breakpoints.sm}) {\n width: 32%;\n }\n @media screen and (max-width: ${e.breakpoints.sm}) {\n width: 40%;\n }\n `}))),ch=n.styled.div.attrs({className:"comp-modal fixed inset-0 overflow-auto"})`
|
|
234
234
|
align-items: center;
|
|
235
235
|
background-color: rgb(52 64 84 / 70%);
|
|
236
236
|
display: flex;
|
|
237
237
|
justify-content: center;
|
|
238
238
|
z-index: 99999;
|
|
239
|
-
`,
|
|
240
|
-
${({theme:e,$size:t})=>`\n background-color: ${e.palette.white};\n border: 1px solid ${e.palette.gray[200]};\n border-radius: ${e.spacing[.25]};\n color: ${e.palette.gray[800]};\n display: flex;\n flex-direction: column;\n font-family: ${e.typography.type.primary};\n font-size: ${e.typography.text.sm};\n max-height: 80%;\n min-height: minmax(max-content, 32%);\n overflow: hidden auto;\n padding: ${e.spacing[1.5]};\n box-shadow: ${e.shadows.lg};\n margin: auto;\n white-space: pre-line;\n\n > *:not(img) {\n margin-bottom: ${e.spacing[1.5]};\n }\n\n > *:last-child {\n margin-bottom: 0;\n }\n\n &#table-column-toggle {\n @media screen and (min-width: ${e.breakpoints.sm}) {\n width: 24%;\n }\n @media screen and (max-width: ${e.breakpoints.sm}) {\n width: 32%;\n }\n }\n\n ${
|
|
241
|
-
`,
|
|
239
|
+
`,dh=n.styled.div`
|
|
240
|
+
${({theme:e,$size:t})=>`\n background-color: ${e.palette.white};\n border: 1px solid ${e.palette.gray[200]};\n border-radius: ${e.spacing[.25]};\n color: ${e.palette.gray[800]};\n display: flex;\n flex-direction: column;\n font-family: ${e.typography.type.primary};\n font-size: ${e.typography.text.sm};\n max-height: 80%;\n min-height: minmax(max-content, 32%);\n overflow: hidden auto;\n padding: ${e.spacing[1.5]};\n box-shadow: ${e.shadows.lg};\n margin: auto;\n white-space: pre-line;\n\n > *:not(img) {\n margin-bottom: ${e.spacing[1.5]};\n }\n\n > *:last-child {\n margin-bottom: 0;\n }\n\n &#table-column-toggle {\n @media screen and (min-width: ${e.breakpoints.sm}) {\n width: 24%;\n }\n @media screen and (max-width: ${e.breakpoints.sm}) {\n width: 32%;\n }\n }\n\n ${uh(e,t)}\n `}
|
|
241
|
+
`,ph=n.styled.div`
|
|
242
242
|
display: block;
|
|
243
243
|
overflow: unset;
|
|
244
244
|
height: max-content;
|
|
245
245
|
max-height: 100%;
|
|
246
246
|
max-width: 100%;
|
|
247
247
|
position: static;
|
|
248
|
-
`,
|
|
248
|
+
`,hh=n.styled.div.attrs({className:"flex items-center justify-between mb-1.5"})``,fh=n.styled.div`
|
|
249
249
|
${({theme:e})=>`\n display: flex;\n flex-direction: row;\n gap: ${e.spacing[.75]};\n justify-content: space-between;\n margin: 0;\n max-width: 392px;\n\n > label {\n margin: 0;\n flex: 1 1 auto;\n }\n\n > div {\n display: flex;\n flex-direction: row;\n flex: 1 1 auto;\n gap: ${e.spacing[.75]};\n margin-right: ${e.spacing[.75]};\n\n > button {\n justify-content: center;\n max-width: 190px;\n }\n }\n\n > div:last-child {\n margin-right: 0;\n }\n `}
|
|
250
|
-
`,
|
|
250
|
+
`,mh=n.styled.div`
|
|
251
251
|
img {
|
|
252
252
|
margin: 0 calc(-${({theme:e})=>e.spacing[1.5]} - 1px)
|
|
253
253
|
${({theme:e})=>e.spacing[1.5]};
|
|
@@ -258,9 +258,9 @@ function hd(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant=
|
|
|
258
258
|
|
|
259
259
|
${({$framed:e=!1})=>e?"\n border-radius: 8px;\n min-width: 100%;\n margin-left: 0;\n margin-right: 0;\n ":""}
|
|
260
260
|
}
|
|
261
|
-
`,
|
|
261
|
+
`,gh=({modalRef:n,confirmButton:r,cancelButton:i})=>{const{close:a}=n,o=t.useCallback((()=>{null==i||i.onClick(),a()}),[i,a]),s=t.useCallback((()=>{null==r||r.onClick(),a()}),[r,a]);return[r,i].some((t=>!e.isEmpty(t)))?e.jsxRuntimeExports.jsx(fh,{children:e.jsxRuntimeExports.jsxs("div",{children:[i&&e.jsxRuntimeExports.jsx(e.Button,{onClick:o,variant:"tertiary",width:"100%",children:i.text}),r&&e.jsxRuntimeExports.jsx(e.Button,{onClick:s,variant:"primary",width:"100%",children:r.text})]})}):null};var yh,vh,bh=function(){if(vh)return yh;vh=1;var t=e.require_baseGetTag(),n=e.requireIsArray(),r=e.requireIsObjectLike();return yh=function(e){return"string"==typeof e||!n(e)&&r(e)&&"[object String]"==t(e)}}();const xh=e.getDefaultExportFromCjs(bh),wh=({title:r,description:i,modalRef:a,otherActions:o,onClose:s})=>{const l=n.useTheme(),u=t.useCallback((()=>{null==s||s(),a.close()}),[a,s]);return t.useEffect((()=>{const e=e=>{"Escape"===e.key&&u()};return window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}}),[u]),e.jsxRuntimeExports.jsxs(ph,{children:[e.jsxRuntimeExports.jsxs(hh,{children:["string"==typeof r?e.jsxRuntimeExports.jsx(e.Heading,{fontWeight:"bold",lineSpacing:1.75,mr:1,size:"sm",children:r}):r,e.jsxRuntimeExports.jsxs("div",{className:"flex",children:[o,e.jsxRuntimeExports.jsx(v,{icon:"close",iconColor:l.palette.gray[300],iconSize:"xs",iconType:"fa-light",id:"modal-close",onClick:u,variant:"ghost"})]})]}),i&&xh(i)&&!e.isEmpty(i)?e.jsxRuntimeExports.jsx(e.Text,{mt:.5,size:"sm",children:i}):i]})},Eh=({_portal:t=!0,cancelButton:n,children:i,confirmButton:o,content:s,description:l="",modalRef:u,otherActions:c,onClose:d,title:p="",size:h,id:f="modal-container"})=>{const m=()=>e.jsxRuntimeExports.jsx(ch,{id:"modal-wrapper",children:e.jsxRuntimeExports.jsxs(dh,{$size:h,"data-testid":f,id:f,children:[!r.isEmpty(p)&&e.jsxRuntimeExports.jsx(wh,{description:l,modalRef:u,onClose:d,otherActions:c,title:p}),i,r.isObject(s)&&r.isString(s.imageSrc)&&e.jsxRuntimeExports.jsx(mh,{$framed:s.imageFramed,children:e.jsxRuntimeExports.jsx(Wp,{alt:"modal-img",publicId:s.imageSrc})}),r.isObject(s)&&r.isString(s.imageText)&&e.jsxRuntimeExports.jsx(e.Text,{mb:1.5,size:"sm",children:s.imageText}),e.jsxRuntimeExports.jsx(gh,{cancelButton:n,confirmButton:o,modalRef:u})]})});return t&&u.isOpen?a.createPortal(m(),document.getElementById("portals")??document.body):u.isOpen?m():null},kh=({tag:t,tagPosition:r})=>{const i=n.useTheme();return t?e.jsxRuntimeExports.jsx(c,{alignItems:"center",bgColor:i.palette.white,borderRadius:"8px",display:"flex",justify:"center",margin:"top"===r?[.75,.75,.75,.75]:void 0,padding:[.25,.5,.25,.5],position:"top"===r?"absolute":"relative",top:"0",width:"max-content",children:e.jsxRuntimeExports.jsx(e.Text,{color:i.palette.gray[900],lineSpacing:1.5,lineSpacingSm:1.25,size:"md",sizeSm:"sm",textAlign:"center",children:t})}):null},Sh=({eventDate:t})=>{const r=n.useTheme(),i=e.isEmpty(t)?null:null==t?void 0:t.split("-");if(i){const[t,n]=i;return e.jsxRuntimeExports.jsxs(c,{alignItems:"center",bgColor:r.palette.white,borderRadius:"8px",display:"flex",flexDirection:"column",margin:[.75,.75,.75,.75],padding:[.75,1.5,.75,1.5],position:"absolute",right:"0",shadow:"md",top:"0",children:[e.jsxRuntimeExports.jsx(e.Heading,{fontWeight:"semibold",lineSpacingSm:1.25,size:"md",sizeSm:"sm",textAlign:"center",children:t}),e.jsxRuntimeExports.jsx(e.Text,{color:r.palette.gray[800],fontWeight:"semibold",lineSpacing:1.5,lineSpacingSm:1.25,size:"md",sizeSm:"sm",textAlign:"center",children:n.toUpperCase()})]})}return null},Dh=n.div`
|
|
262
262
|
${({theme:e})=>`\n align-items: flex-start;\n display: flex;\n flex-direction: column;\n gap: ${e.spacing[1.5]};\n width: 384px;\n\n img {\n height: 100%;\n width: 100%;\n }\n\n #card-image {\n border-radius: ${e.spacing[1]};\n height: 240px;\n overflow: hidden;\n }\n\n &:hover {\n img {\n transform: scale(1.2);\n }\n\n > #card-content {\n > .title-dark {\n color: ${e.palette.gray[400]};\n }\n > .title-light {\n background: ${e.palette.gradients["01"]};\n background-clip: text;\n -webkit-background-clip: text;\n -webkit-text-fill-color: transparent;\n }\n }\n }\n\n @media screen and (max-width: ${e.breakpoints.mobile}) {\n width: 320px;\n\n #card-image {\n height: 200px;\n }\n }\n `}
|
|
263
|
-
`,
|
|
263
|
+
`,jh=({author:t,buttonText:r,description:i,eventDate:a,href:o,imageId:s,mode:l="light",publishDate:u,readingTime:d,tag:p,tagPosition:h="top",title:f})=>{const m=n.useTheme(),g=null==u?void 0:u.split("-"),y="dark"===l,v=e.jsxRuntimeExports.jsxs(Dh,{"data-testid":`content-card-${f}`,children:[s||a||p&&"top"===h?e.jsxRuntimeExports.jsxs(c,{id:"card-image",position:"relative",children:[s&&e.jsxRuntimeExports.jsx(Wp,{publicId:s}),"top"===h&&e.jsxRuntimeExports.jsx(kh,{tag:p,tagPosition:h}),e.jsxRuntimeExports.jsx(Sh,{eventDate:a})]}):void 0,e.jsxRuntimeExports.jsxs(c,{alignItems:"flex-start",display:"flex",flexDirection:"column",gap:.5,id:"card-content",children:["bottom"===h&&e.jsxRuntimeExports.jsx(kh,{tag:p,tagPosition:h}),t||g||d?e.jsxRuntimeExports.jsxs(c,{display:"flex",justify:"space-between",width:"100%",children:[t&&g&&e.jsxRuntimeExports.jsx(e.Text,{color:m.palette.gray[y?300:400],fontWeight:"semibold",size:"sm",sizeSm:"xs",children:t+` • ${g[0]} ${g[1]}, ${g[2]}`}),d&&e.jsxRuntimeExports.jsxs(c,{alignItems:"center",display:"flex",gap:.25,justify:"center",minWidth:"60px",children:[e.jsxRuntimeExports.jsx(e.Icon,{icon:"eye",iconColor:m.palette.gray[y?300:400],iconSize:"xs",iconType:"fa-light"}),e.jsxRuntimeExports.jsx(e.Text,{color:m.palette.gray[y?300:400],size:"sm",sizeSm:"xs",textAlign:"right",children:d})]})]}):void 0,e.jsxRuntimeExports.jsx(e.Heading,{className:`title-${l}`,color:y?m.palette.white:m.palette.gray[800],fontWeight:"semibold",size:"sm",sizeSm:"xs",children:f}),i&&e.jsxRuntimeExports.jsx(e.Text,{color:m.palette.gray[y?100:600],size:"md",sizeSm:"sm",children:i}),r&&o&&e.jsxRuntimeExports.jsx(e.Button,{href:o,variant:"link",children:r})]})]});return o?e.jsxRuntimeExports.jsx("a",{className:"flex w-fit",href:o,rel:"noopener noreferrer",target:"_self",children:v}):v},Ch=n.styled.button`
|
|
264
264
|
display: flex;
|
|
265
265
|
position: relative;
|
|
266
266
|
height: 32px;
|
|
@@ -283,9 +283,9 @@ function hd(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant=
|
|
|
283
283
|
display: none;
|
|
284
284
|
}
|
|
285
285
|
}
|
|
286
|
-
`,
|
|
286
|
+
`,Rh=n.styled.div`
|
|
287
287
|
${({theme:e})=>`\n display: flex;\n flex-direction: column;\n gap: ${e.spacing[2.5]};\n overflow: hidden;\n min-height: 589px;\n max-width: 1316px;\n\n span {\n background: ${e.palette.gradients["01"]};\n background-clip: text;\n -webkit-background-clip: text;\n -webkit-text-fill-color: transparent;\n }\n\n #mobile {\n display: none;\n }\n\n #carousel {\n scrollbar-width: none;\n\n &::-webkit-scrollbar {\n display: none;\n }\n }\n\n @media screen and (max-width: ${e.breakpoints.mobile}) {\n align-items: center;\n height: auto;\n max-width: 340px;\n\n #desktop {\n display: none;\n }\n #mobile {\n display: flex;\n }\n }\n `}
|
|
288
|
-
`,
|
|
288
|
+
`,Ph=({containerRef:r,id:i})=>{const a=n.useTheme(),o="desktop"===i?380:342,s=t.useCallback((e=>()=>{if(null==r?void 0:r.current){const{current:t}=r;t.scrollBy({left:"right"===e?o:-o,behavior:"smooth"})}}),[r,o]),l=t.useCallback((t=>e.jsxRuntimeExports.jsxs(Ch,{onClick:s(t),children:[e.jsxRuntimeExports.jsx(e.Icon,{clickable:!0,icon:`circle-arrow-${t}`,iconClass:"hovered",iconColor:a.palette.gray[800],iconSize:"md",iconType:"fa-solid"}),e.jsxRuntimeExports.jsx(e.Icon,{clickable:!0,icon:`circle-arrow-${t}`,iconClass:"uncover",iconColor:a.palette.gray[800],iconSize:"md",iconType:"fa-light"})]})),[s,a]);return e.jsxRuntimeExports.jsxs(c,{alignItems:"center",display:"flex",gap:1,id:i,width:"max-content",children:[l("left"),l("right")]})},$h=t.forwardRef((function({color:t=e.theme.palette.gray[100],mt:n=.5,mb:r=.5,...i},a){return e.jsxRuntimeExports.jsx(c,{as:"hr",border:`1px solid ${t}`,mb:r,mt:n,ref:a,...i})})),Th=({buttonProps:t,variant:n})=>e.jsxRuntimeExports.jsx(e.Button,{onClick:t.onClick,variant:n,children:t.text}),_h=n.styled.div`
|
|
289
289
|
display: flex;
|
|
290
290
|
flex-direction: column;
|
|
291
291
|
align-items: center;
|
|
@@ -293,7 +293,7 @@ function hd(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant=
|
|
|
293
293
|
max-width: 900px;
|
|
294
294
|
white-space: pre-line;
|
|
295
295
|
margin: 0 auto;
|
|
296
|
-
`,
|
|
296
|
+
`,Mh=n.styled.div`
|
|
297
297
|
display: flex;
|
|
298
298
|
flex-direction: row;
|
|
299
299
|
justify-content: center;
|
|
@@ -306,7 +306,7 @@ function hd(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant=
|
|
|
306
306
|
> img {
|
|
307
307
|
width: 100%;
|
|
308
308
|
}
|
|
309
|
-
`,
|
|
309
|
+
`,Ah=n.styled.div`
|
|
310
310
|
display: flex;
|
|
311
311
|
flex-direction: row;
|
|
312
312
|
margin: 0;
|
|
@@ -319,42 +319,42 @@ function hd(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant=
|
|
|
319
319
|
> *:last-child {
|
|
320
320
|
margin-right: 0;
|
|
321
321
|
}
|
|
322
|
-
`,
|
|
322
|
+
`,Ih={md:{description:"md",title:"lg"},sm:{description:"sm",title:"xs"}},Oh=n.styled.form`
|
|
323
323
|
${({theme:e})=>`\n align-items: flex-start;\n align-self: stretch;\n display: flex;\n flex-direction: column;\n gap: ${e.spacing[.5]};\n\n &:has(button[type="reset"]) {\n &:last-child {\n margin-top: ${e.spacing[1]};\n }\n }\n `}
|
|
324
|
-
`,
|
|
324
|
+
`,Fh=t.forwardRef((function({cancelLabel:t,children:n,id:r="modal-confirm",onCancel:i,onConfirm:a="submit",submitLabel:o,submitDisabled:s=!1,...l},u){const d="submit"===a,p=[i,a].some(Boolean);return e.jsxRuntimeExports.jsx(Oh,{ref:u,...l,children:e.jsxRuntimeExports.jsxs(c,{children:[e.jsxRuntimeExports.jsx(c,{display:"flex",flexDirection:"column",gap:.5,mb:1.5,children:n}),p&&e.jsxRuntimeExports.jsxs(c,{display:"flex",gap:.75,maxWidth:"392px",children:[i?e.jsxRuntimeExports.jsx(e.Button,{id:`${r}-cancel`,justify:"center",onClick:i,type:"reset",variant:"tertiary",width:"100%",children:t??"Cancel"}):void 0,e.jsxRuntimeExports.jsx(e.Button,{disabled:s,id:r,justify:"center",onClick:d?void 0:a,type:d?"submit":"button",width:"100%",children:o??"Confirm"})]})]})})})),Lh=n.styled(e.BaseComponent)`
|
|
325
325
|
display: grid;
|
|
326
326
|
gap: ${({$gap:e=1.25})=>`${e}rem`};
|
|
327
327
|
grid-template-columns: ${({$sm:e})=>`repeat(${e}, 1fr)`};
|
|
328
328
|
|
|
329
329
|
${({theme:e,$xl:t,$lg:n,$md:r})=>`\n @media (width >= ${e.breakpoints.sm}) {\n grid-template-columns: repeat(${r}, 1fr);\n }\n\n @media (width >= ${e.breakpoints.md}) {\n grid-template-columns: repeat(${n}, 1fr);\n }\n\n @media (width >= ${e.breakpoints.lg}) {\n grid-template-columns: repeat(${t}, 1fr);\n }\n `}
|
|
330
|
-
`,
|
|
330
|
+
`,Vh=t.forwardRef((function({children:t,md:n,sm:r,lg:i,xl:a,gap:o,...s},l){return e.jsxRuntimeExports.jsx(Lh,{$gap:o,$lg:i,$md:n,$sm:r,$xl:a,ref:l,...s,children:t})})),Nh=n.styled.div`
|
|
331
331
|
${({theme:e,$itemsLength:t})=>`\n display: flex;\n background-color: ${e.palette.white};\n border: 1px solid ${e.palette.gray[200]};\n border-radius: ${e.spacing[.25]};\n box-shadow: ${e.shadows.lg};\n flex-direction: column;\n min-width: 507px;\n max-width: ${t<=4?"507px":"980px"};\n padding: ${e.spacing[1.5]};\n\n @media screen and (max-width: 980px) and (min-width: 742px) {\n width: 742px;\n }\n @media screen and (max-width: 742px) {\n width: 507px;\n }\n `}
|
|
332
|
-
`,
|
|
332
|
+
`,zh=n.styled.div`
|
|
333
333
|
${({theme:e,$isSelected:t})=>`\n align-items: center;\n background-color: ${t?e.palette.gray[100]:e.palette.white};\n border: 1px solid ${e.palette.gray[200]};\n border-radius: ${e.spacing[.25]};\n cursor: pointer;\n display: flex;\n flex-direction: ${t?"row-reverse":"row"};\n min-height: 50px;\n padding: ${e.spacing[1]} ${e.spacing[.625]};\n width: 215px;\n\n &:hover {\n background-color: ${e.palette.gray[100]};\n }\n `}
|
|
334
|
-
`,
|
|
334
|
+
`,Bh=({isSelected:r=!1,label:i,onSelect:a})=>{const o=n.useTheme(),s=t.useCallback((()=>{a&&a(i)}),[a,i]);return e.jsxRuntimeExports.jsxs(zh,{$isSelected:r,onClick:s,children:[r?e.jsxRuntimeExports.jsx(e.Icon,{icon:"check",iconColor:o.palette.gray[800],iconSize:"md"}):null,e.jsxRuntimeExports.jsx(e.Text,{color:o.palette.gray[800],fontWeight:"bold",size:"sm",children:i})]})},Uh=n.styled.input`
|
|
335
335
|
${({theme:e})=>`\n background: none;\n border: none !important;\n box-shadow: none;\n box-sizing: border-box;\n color: ${e.palette.gray[800]};\n font-family: ${e.typography.type.primary};\n font-size: ${e.typography.text.sm};\n outline: none;\n width: 100%;\n\n &::placeholder {\n color: ${e.palette.gray[400]};\n }\n `}
|
|
336
|
-
`,
|
|
336
|
+
`,Wh=n.styled.div`
|
|
337
337
|
${({theme:e})=>`\n align-items: center;\n background-color: ${e.palette.white};\n border: 1px solid ${e.palette.gray[300]};\n border-radius: ${e.spacing[.5]};\n display: flex;\n height: 40px;\n gap: ${e.spacing[.5]};\n padding: ${e.spacing[.5]};\n width: 100%;\n\n &:hover {\n border-color: ${e.palette.gray[600]};\n }\n\n &:focus-within {\n border: 2px solid ${e.palette.black};\n }\n `}
|
|
338
|
-
`,
|
|
338
|
+
`,qh=n.styled.div`
|
|
339
339
|
${({theme:e})=>`\n background-color: ${e.palette.white};\n border-radius: ${e.spacing[.5]};\n width: 250px;\n `}
|
|
340
|
-
`,
|
|
340
|
+
`,Kh=t.forwardRef((function({name:r,smallSearch:i=!1,value:a,...o},s){const l=n.useTheme(),[u,c]=t.useState(!1),{refs:d,floatingStyles:p}=e.useFloating(),h=t.useCallback((()=>{c((e=>!e))}),[]);eu(d.floating.current,(()=>{c(!1)}),!0);const f=e.jsxRuntimeExports.jsxs(Wh,{children:[e.jsxRuntimeExports.jsx(e.Icon,{icon:"magnifying-glass",iconColor:l.palette.gray[700],iconSize:"xs",iconType:"fa-light"}),e.jsxRuntimeExports.jsx(Uh,{...o,id:r,name:r,ref:s,value:a}),!e.isEmpty(a)&&e.jsxRuntimeExports.jsx(v,{icon:"xmark",iconColor:l.palette.gray[300],iconSize:"xs",iconType:"fa-light",px:.25,py:.25,type:"reset",variant:"ghost"})]});return i?e.jsxRuntimeExports.jsxs(t.Fragment,{children:[e.jsxRuntimeExports.jsx(v,{border:`1px solid ${l.palette.gray[300]} !important`,icon:"magnifying-glass",iconSize:"xs",iconType:"fa-light",onClick:h,ref:d.setReference,variant:"ghost"}),u?e.jsxRuntimeExports.jsx(qh,{ref:d.setFloating,style:p,children:f}):void 0]}):f}));var Hh,Zh,Gh=Zh?Hh:(Zh=1,Hh=function(e){return void 0===e});const Yh=e.getDefaultExportFromCjs(Gh),Jh=n.styled.button`
|
|
341
341
|
${({theme:e})=>`\n align-items: center;\n color: ${e.palette.gray[500]};\n display: flex;\n gap: ${e.spacing[.625]};\n justify-content: center;\n padding: ${e.spacing[.75]};\n text-align: center;\n width: 151px;\n\n &.active {\n color: ${e.palette.gray[800]};\n border-bottom: 3px solid ${e.palette.primary[400]};\n }\n\n &:hover {\n color: ${e.palette.gray[800]};\n }\n `}
|
|
342
|
-
`,
|
|
342
|
+
`,Xh=n.styled.div`
|
|
343
343
|
${({theme:e})=>`\n align-items: center;\n border-bottom: 2px solid ${e.palette.gray[200]};\n display: flex;\n gap: ${e.spacing[3]};\n height: ${e.spacing[3]};\n width: max-content;\n `}
|
|
344
|
-
`,
|
|
344
|
+
`,Qh=n.styled(i.NavLink)`
|
|
345
345
|
${({theme:e})=>`\n align-items: center;\n background: transparent;\n cursor: pointer;\n color: ${e.palette.gray[800]};\n font-family: ${e.typography.type.primary};\n font-size: ${e.typography.text.sm};\n display: flex;\n font-weight: ${e.typography.weight.regular};\n padding: ${e.spacing[.625]} ${e.spacing[.5]};\n position: relative;\n text-align: center;\n text-decoration: unset;\n\n &:disabled {\n cursor: not-allowed;\n background-color: ${e.palette.gray[300]};\n color: ${e.palette.gray[300]};\n }\n\n &:hover:not([disabled]) {\n background-color: ${e.palette.gray[100]};\n color: ${e.palette.gray[800]};\n }\n\n &.active {\n background-color: transparent;\n border-bottom: solid 4px ${e.palette.primary[500]};\n padding-bottom: calc(${e.spacing[.625]} - 4px);\n\n &:hover {\n background-color: transparent;\n border-bottom: solid 4px ${e.palette.primary[500]};\n }\n }\n `}
|
|
346
|
-
`,
|
|
346
|
+
`,ef=n.styled(e.BaseComponent)`
|
|
347
347
|
${({theme:e,$variant:t})=>`\n align-items: center;\n background: ${"error"===t?e.palette.primary[400]:e.palette.warning[500]};\n border-radius: 100%;\n font-family: ${e.typography.type.primary};\n justify-content: center;\n padding: 0;\n position: absolute;\n z-index: 11;\n width: ${e.spacing[.5]};\n height: ${e.spacing[.5]};\n `}
|
|
348
|
-
`,
|
|
348
|
+
`,tf=n.styled.div`
|
|
349
349
|
align-items: center;
|
|
350
350
|
color: ${({theme:e})=>e.palette.white};
|
|
351
351
|
display: flex;
|
|
352
352
|
font-size: 6px;
|
|
353
353
|
font-weight: ${({theme:e})=>e.typography.weight.bold};
|
|
354
354
|
justify-content: center;
|
|
355
|
-
`,
|
|
355
|
+
`,nf=t.forwardRef((function({numberIndicator:t,show:n,variant:r="error",...i},a){return e.jsxRuntimeExports.jsx(ef,{$variant:r,className:n?"flex":"hidden","data-testid":"notification-sign",ref:a,...i,children:t&&e.jsxRuntimeExports.jsx(tf,{children:t<=9?t:9})})})),rf=({label:t,id:n,isActive:r=!1,link:i,notificationSign:a,onClick:o,tooltip:s=""})=>e.jsxRuntimeExports.jsx(e.Tooltip,{display:"flex",id:`${n}-tooltip`,tip:s,children:e.jsxRuntimeExports.jsxs(Qh,{className:r?"active":"",id:n,onClick:o,to:i,children:[t,e.jsxRuntimeExports.jsx(nf,{left:null==a?void 0:a.left,numberIndicator:null==a?void 0:a.numberIndicator,show:null==a?void 0:a.show,top:null==a?void 0:a.top,variant:null==a?void 0:a.variant})]})}),af=({items:t,borders:r=!0,box:i=!1})=>{const a=n.useTheme();return e.jsxRuntimeExports.jsx(c,{bgColor:a.palette.white,border:i?"1px solid":void 0,borderBottom:r?`1px solid ${a.palette.gray[300]}`:void 0,borderColor:i?a.palette.gray[200]:void 0,borderRadius:i?a.spacing[.25]:void 0,display:"inline-flex",gap:.25,padding:i?[0,0,0,0]:void 0,pl:r?1.25:void 0,pr:r?1.25:void 0,width:i?"max-content":"100%",children:t.map((({id:t,isActive:n,link:r,label:i,notificationSign:a,onClick:o,tooltip:s})=>e.jsxRuntimeExports.jsx(rf,{id:t,isActive:n,label:i,link:r,notificationSign:a,onClick:o,tooltip:s},t)))})},of=n.styled.div`
|
|
356
356
|
${({theme:e})=>`\n align-items: flex-start;\n backdrop-filter: blur(3.15px);\n background: radial-gradient(\n 68.83% 167.8% at 171.9% 90.34%,\n ${e.palette.complementary[300]} 0%,\n ${e.palette.primary[400]} 100%\n ),\n linear-gradient(\n 241deg,\n ${e.palette.primary[400]} 3.45%,\n ${e.palette.primary[500]} 82.59%\n );\n border-radius: ${e.spacing[1]};\n box-shadow: ${e.shadows.md};\n display: flex;\n flex-direction: column;\n gap: ${e.spacing[.625]};\n height: 300px;\n padding: ${e.spacing[1]};\n position: relative;\n width: 300px;\n\n button > * {\n font-size: ${e.typography.text.sm};\n }\n\n #hovered {\n display: none;\n }\n\n &:hover {\n background: ${e.palette.gray[900]};\n\n #hovered {\n display: flex;\n }\n #uncover {\n display: none;\n }\n }\n\n @media screen and (max-width: ${e.breakpoints.mobile}) {\n height: 320px;\n width: 320px;\n\n #hovered {\n margin-bottom: ${e.spacing[1.75]};\n }\n }\n `}
|
|
357
|
-
`,
|
|
357
|
+
`,sf=n.styled.div`
|
|
358
358
|
align-items: center;
|
|
359
359
|
position: absolute;
|
|
360
360
|
justify-content: center;
|
|
@@ -368,28 +368,28 @@ function hd(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant=
|
|
|
368
368
|
height: 260px;
|
|
369
369
|
width: 260px;
|
|
370
370
|
}
|
|
371
|
-
`,
|
|
371
|
+
`,lf=({icon:t})=>e.jsxRuntimeExports.jsx(sf,{children:e.jsxRuntimeExports.jsx(e.Icon,{icon:t,iconColor:e.theme.palette.white,iconSize:"xs",iconTransform:"shrink-2",iconType:"fa-light"})}),uf=n.styled.button`
|
|
372
372
|
${({theme:e})=>`\n align-items: center;\n border-left: 3px solid transparent;\n display: flex;\n gap: ${e.spacing[.625]};\n height: 42px;\n min-width: 50px;\n padding: ${e.spacing[.625]} ${e.spacing[1]};\n\n &.dark {\n background-color: ${e.palette.gray[800]};\n color: ${e.palette.gray[25]};\n\n &.disabled {\n border-color: ${e.palette.gray[500]};\n color: ${e.palette.gray[500]};\n cursor: not-allowed;\n }\n\n &:hover:not(.disabled) {\n background-color: ${e.palette.gray[700]};\n border-color: ${e.palette.primary[400]};\n }\n }\n\n &.light {\n background-color: ${e.palette.gray[50]};\n color: ${e.palette.gray[800]};\n\n &.disabled {\n background-color: ${e.palette.white};\n border-color: ${e.palette.gray[300]};\n color: ${e.palette.gray[300]};\n cursor: not-allowed;\n }\n\n &:hover:not(.disabled) {\n background-color: ${e.palette.gray[100]};\n border-color: ${e.palette.primary[400]};\n }\n }\n `}
|
|
373
|
-
`,
|
|
373
|
+
`,cf=n.styled.div`
|
|
374
374
|
${({theme:e})=>`\n align-items: center;\n background-color: transparent;\n border-bottom: 2px solid transparent;\n display: flex;\n font-family: ${e.typography.type.primary};\n font-size: ${e.typography.text.sm};\n font-weight: ${e.typography.weight.regular};\n gap: ${e.spacing[.5]};\n height: 30px;\n justify-content: center;\n padding: ${e.spacing[.25]};\n margin-bottom: ${e.spacing[.25]};\n min-width: 50px;\n width: max-content;\n z-index: 11;\n\n &:hover {\n border-color: ${e.palette.primary[400]};\n }\n\n &.dark {\n color: ${e.palette.gray[25]};\n }\n\n &.light {\n color: ${e.palette.gray[800]};\n }\n `}
|
|
375
|
-
`,
|
|
375
|
+
`,df=n.styled.div`
|
|
376
376
|
${({theme:e})=>`\n background-color: ${e.palette.white};\n border-radius: 0 0 ${e.spacing[.25]} ${e.spacing[.25]};\n box-shadow: ${e.shadows.lg};\n display: none;\n flex-direction: column;\n position: absolute;\n top: 100%;\n z-index: 11;\n\n > button:last-child {\n border-radius: 0 0 ${e.spacing[.25]} ${e.spacing[.25]};\n }\n `}
|
|
377
|
-
`,
|
|
377
|
+
`,pf=n.styled.div`
|
|
378
378
|
${({theme:e})=>`\n align-items: flex-start;\n cursor: pointer;\n display: flex;\n flex-direction: column;\n gap: ${e.spacing[.25]};\n height: max-content;\n position: relative;\n width: max-content;\n z-index: 10;\n\n &:hover {\n > div:first-child {\n border-color: ${e.palette.primary[400]};\n }\n\n > div:last-child {\n display: flex;\n }\n }\n `}
|
|
379
|
-
`,
|
|
379
|
+
`,hf=({disabled:t=!1,mode:n,onClick:r,text:i})=>e.jsxRuntimeExports.jsx(uf,{className:`${t&&"disabled"} ${n}`,disabled:t,onClick:r,children:e.jsxRuntimeExports.jsx(e.Text,{color:"inherit",size:"sm",sizeSm:"xs",children:i})}),ff=[{text:"EN"},{text:"ES"}],mf=n.styled.li`
|
|
380
380
|
${({theme:e})=>`\n align-items: center;\n background-color: ${e.palette.white};\n color: ${e.palette.gray[800]};\n cursor: pointer;\n display: flex;\n font-size: ${e.typography.text.sm};\n font-weight: ${e.typography.weight.regular};\n justify-content: space-between;\n gap: ${e.spacing[.625]};\n line-height: ${e.spacing[1.25]};\n list-style-type: none;\n min-height: 40px;\n min-width: 240px;\n padding: ${e.spacing[.625]} ${e.spacing[1]};\n pointer-events: auto;\n\n p,\n a {\n word-break: break-word;\n }\n\n & > label {\n margin: unset;\n }\n\n a {\n color: ${e.palette.gray[500]};\n }\n\n &[aria-disabled="true"] {\n color: ${e.palette.gray[300]};\n pointer-events: none;\n\n a {\n color: ${e.palette.gray[300]};\n }\n }\n\n &[aria-selected="true"] {\n background-color: ${e.palette.gray[200]};\n }\n\n &:hover:not([aria-selected="true"]) {\n background-color: ${e.palette.gray[100]};\n }\n `}
|
|
381
|
-
`,
|
|
381
|
+
`,gf=n.styled.ul`
|
|
382
382
|
${({theme:e})=>`\n background-color: ${e.palette.white};\n border: 1px solid ${e.palette.gray[200]};\n border-radius: ${e.spacing[.25]};\n box-shadow: ${e.shadows.md};\n display: inline-block;\n margin: unset;\n min-width: 240px;\n padding: ${e.spacing[.25]} 0 ${e.spacing[.25]} 0;\n `}
|
|
383
|
-
`,
|
|
383
|
+
`,yf=n.styled.span`
|
|
384
384
|
${({theme:e,$bgColor:t=e.palette.secondary[500],$txtDecoration:n="none"})=>`\n background-color: ${t};\n border-radius: 5px;\n color: ${e.palette.white};\n font-size: 10px;\n padding: ${e.spacing[.125]} ${e.spacing[.25]} ${e.spacing[.125]} ${e.spacing[.25]};\n text-decoration: ${n}\n `}
|
|
385
|
-
`,
|
|
385
|
+
`,vf={lg:"56",md:"30",sm:"12"},{getVariant:bf}=e.variantBuilder((e=>({red:`stroke: ${e.palette.primary[500]};`,white:`stroke: ${e.palette.white};`}))),xf=n.keyframes`
|
|
386
386
|
0% {
|
|
387
387
|
transform: rotateZ(0deg);
|
|
388
388
|
}
|
|
389
389
|
100% {
|
|
390
390
|
transform: rotateZ(360deg)
|
|
391
391
|
}
|
|
392
|
-
`,
|
|
392
|
+
`,wf=n.keyframes`
|
|
393
393
|
0%,
|
|
394
394
|
25% {
|
|
395
395
|
stroke-dashoffset: 280;
|
|
@@ -406,16 +406,16 @@ function hd(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant=
|
|
|
406
406
|
stroke-dashoffset: 280;
|
|
407
407
|
transform: rotate(360deg);
|
|
408
408
|
}
|
|
409
|
-
`,
|
|
409
|
+
`,Ef=n.styled.svg`
|
|
410
410
|
${({$size:e="md"})=>n.css`
|
|
411
|
-
animation: ${
|
|
411
|
+
animation: ${xf} 2s linear infinite;
|
|
412
412
|
animation-timing-function: linear;
|
|
413
413
|
display: inline-block;
|
|
414
|
-
width: ${
|
|
414
|
+
width: ${vf[e]}px;
|
|
415
415
|
`}
|
|
416
|
-
`,
|
|
416
|
+
`,kf=n.styled.circle`
|
|
417
417
|
${({theme:e,$color:t="red"})=>n.css`
|
|
418
|
-
animation: 1.4s ease-in-out infinite both ${
|
|
418
|
+
animation: 1.4s ease-in-out infinite both ${wf};
|
|
419
419
|
display: block;
|
|
420
420
|
fill: transparent;
|
|
421
421
|
stroke-linecap: round;
|
|
@@ -424,9 +424,9 @@ function hd(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant=
|
|
|
424
424
|
stroke-width: 10px;
|
|
425
425
|
transform-origin: 50% 50%;
|
|
426
426
|
|
|
427
|
-
${
|
|
427
|
+
${bf(e,t)}
|
|
428
428
|
`}
|
|
429
|
-
`,
|
|
429
|
+
`,Sf=n.styled.circle`
|
|
430
430
|
display: block;
|
|
431
431
|
fill: transparent;
|
|
432
432
|
stroke: ${({theme:e})=>e.palette.gray[200]};
|
|
@@ -434,13 +434,13 @@ function hd(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant=
|
|
|
434
434
|
stroke-width: 10px;
|
|
435
435
|
transform-origin: 50% 50%;
|
|
436
436
|
opacity: ${({$color:e})=>"white"===e?"20%":"unset"};
|
|
437
|
-
`,
|
|
437
|
+
`,Df={company:{height:"83px",width:"460px"},footer:{height:"57px",width:"315px"},header:{height:"35px",width:"160px"},icon:{height:"40px",width:"40px"},inline:{width:"150px"}},jf=n.styled.div`
|
|
438
438
|
display: flex;
|
|
439
439
|
height: 80px;
|
|
440
440
|
max-width: 1440px;
|
|
441
441
|
overflow: hidden;
|
|
442
442
|
position: relative;
|
|
443
|
-
`,
|
|
443
|
+
`,Cf=n.styled.div`
|
|
444
444
|
height: 79px;
|
|
445
445
|
width: 64px;
|
|
446
446
|
flex-shrink: 0;
|
|
@@ -464,7 +464,7 @@ function hd(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant=
|
|
|
464
464
|
);
|
|
465
465
|
right: 0;
|
|
466
466
|
}
|
|
467
|
-
`,
|
|
467
|
+
`,Rf=n.styled.div`
|
|
468
468
|
display: flex;
|
|
469
469
|
gap: 40px;
|
|
470
470
|
animation: clients-animation 50s linear infinite;
|
|
@@ -479,11 +479,11 @@ function hd(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant=
|
|
|
479
479
|
transform: translateX(calc(-180px * 15));
|
|
480
480
|
}
|
|
481
481
|
}
|
|
482
|
-
`,wf=["airs/clients-carousel/color/bancolombia","airs/clients-carousel/color/itau_colombia","airs/clients-carousel/color/lulo_bank","airs/clients-carousel/color/oxxo_international","airs/clients-carousel/color/interbank","airs/clients-carousel/color/global_bank","airs/clients-carousel/color/gesa","airs/clients-carousel/color/copa_airlines","airs/clients-carousel/color/consubanco","airs/clients-carousel/color/bantrab","airs/clients-carousel/color/banistmo","airs/clients-carousel/color/banco_internacional","airs/clients-carousel/color/banco_general","airs/clients-carousel/color/banbif","airs/clients-carousel/color/avianca"];var Ef,kf={exports:{}},Sf=(Ef||(Ef=1,function(t,n){var r,i=(r=n)&&"object"==typeof r&&"default"in r?r:{default:r},a=("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e.commonjsGlobal?e.commonjsGlobal:"undefined"!=typeof self&&self,{exports:{}});!function(e,t){"undefined"!=typeof navigator&&(e.exports=function(){var e="http://www.w3.org/2000/svg",n="",r=!1,i=-999999,a=function(e){r=!!e},o=function(){return r},s=function(e){n=e},l=function(){return n};function u(e){return document.createElement(e)}function c(e,t){var n,r,i=e.length;for(n=0;n<i;n+=1)for(var a in r=e[n].prototype)Object.prototype.hasOwnProperty.call(r,a)&&(t.prototype[a]=r[a])}function d(e){function t(){}return t.prototype=e,t}var p=function(){function e(e){this.audios=[],this.audioFactory=e,this._volume=1,this._isMuted=!1}return e.prototype={addAudio:function(e){this.audios.push(e)},pause:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].pause()},resume:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].resume()},setRate:function(e){var t,n=this.audios.length;for(t=0;t<n;t+=1)this.audios[t].setRate(e)},createAudio:function(e){return this.audioFactory?this.audioFactory(e):window.Howl?new window.Howl({src:[e]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(e){this.audioFactory=e},setVolume:function(e){this._volume=e,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].volume(this._volume*(this._isMuted?0:1))}},function(){return new e}}(),h=function(){function e(e,t){var n,r=0,i=[];switch(e){case"int16":case"uint8c":n=1;break;default:n=1.1}for(r=0;r<t;r+=1)i.push(n);return i}function t(t,n){return"float32"===t?new Float32Array(n):"int16"===t?new Int16Array(n):"uint8c"===t?new Uint8ClampedArray(n):e(t,n)}return"function"==typeof Uint8ClampedArray&&"function"==typeof Float32Array?t:e}();function f(e){return Array.apply(null,{length:e})}var m=!0,g=null,y="",v=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),b=Math.pow,x=Math.sqrt,w=Math.floor,E=Math.min,k=150,S=Math.PI/180,D=.5519;function j(e,t,n,r){this.type=e,this.currentTime=t,this.totalTime=n,this.direction=r<0?-1:1}function C(e,t){this.type=e,this.direction=t<0?-1:1}function R(e,t,n,r){this.type=e,this.currentLoop=n,this.totalLoops=t,this.direction=r<0?-1:1}function P(e,t,n){this.type=e,this.firstFrame=t,this.totalFrames=n}function $(e,t){this.type=e,this.target=t}function T(e,t){this.type="renderFrameError",this.nativeError=e,this.currentTime=t}function _(e){this.type="configError",this.nativeError=e}var M,A=(M=0,function(){return y+"__lottie_element_"+(M+=1)});function I(e,t,n){var r,i,a,o,s,l,u,c;switch(l=n*(1-t),u=n*(1-(s=6*e-(o=Math.floor(6*e)))*t),c=n*(1-(1-s)*t),o%6){case 0:r=n,i=c,a=l;break;case 1:r=u,i=n,a=l;break;case 2:r=l,i=n,a=c;break;case 3:r=l,i=u,a=n;break;case 4:r=c,i=l,a=n;break;case 5:r=n,i=l,a=u}return[r,i,a]}function O(e,t,n){var r,i=Math.max(e,t,n),a=Math.min(e,t,n),o=i-a,s=0===i?0:o/i,l=i/255;switch(i){case a:r=0;break;case e:r=t-n+o*(t<n?6:0),r/=6*o;break;case t:r=n-e+2*o,r/=6*o;break;case n:r=e-t+4*o,r/=6*o}return[r,s,l]}function F(e,t){var n=O(255*e[0],255*e[1],255*e[2]);return n[1]+=t,n[1]>1?n[1]=1:n[1]<=0&&(n[1]=0),I(n[0],n[1],n[2])}function L(e,t){var n=O(255*e[0],255*e[1],255*e[2]);return n[2]+=t,n[2]>1?n[2]=1:n[2]<0&&(n[2]=0),I(n[0],n[1],n[2])}function V(e,t){var n=O(255*e[0],255*e[1],255*e[2]);return n[0]+=t/360,n[0]>1?n[0]-=1:n[0]<0&&(n[0]+=1),I(n[0],n[1],n[2])}!function(){var e,t,n=[];for(e=0;e<256;e+=1)t=e.toString(16),n[e]=1===t.length?"0"+t:t}();var N=function(e){m=!!e},z=function(){return m},B=function(e){g=e},U=function(){return g},W=function(e){k=e},q=function(){return k},K=function(e){y=e};function H(t){return document.createElementNS(e,t)}function Z(e){return(Z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var G=function(){var e,t,n=1,r=[],i={onmessage:function(){},postMessage:function(t){e({data:t})}},a={postMessage:function(e){i.onmessage({data:e})}};function s(t){if(window.Worker&&window.Blob&&o()){var n=new Blob(["var _workerSelf = self; self.onmessage = ",t.toString()],{type:"text/javascript"}),r=URL.createObjectURL(n);return new Worker(r)}return e=t,i}function l(){t||((t=s((function(e){function t(){function e(t,n){var o,s,l,u,c,d,p=t.length;for(s=0;s<p;s+=1)if("ks"in(o=t[s])&&!o.completed){if(o.completed=!0,o.hasMask){var h=o.masksProperties;for(u=h.length,l=0;l<u;l+=1)if(h[l].pt.k.i)a(h[l].pt.k);else for(d=h[l].pt.k.length,c=0;c<d;c+=1)h[l].pt.k[c].s&&a(h[l].pt.k[c].s[0]),h[l].pt.k[c].e&&a(h[l].pt.k[c].e[0])}0===o.ty?(o.layers=r(o.refId,n),e(o.layers,n)):4===o.ty?i(o.shapes):5===o.ty&&f(o)}}function t(t,n){if(t){var i=0,a=t.length;for(i=0;i<a;i+=1)1===t[i].t&&(t[i].data.layers=r(t[i].data.refId,n),e(t[i].data.layers,n))}}function n(e,t){for(var n=0,r=t.length;n<r;){if(t[n].id===e)return t[n];n+=1}return null}function r(e,t){var r=n(e,t);return r?r.layers.__used?JSON.parse(JSON.stringify(r.layers)):(r.layers.__used=!0,r.layers):null}function i(e){var t,n,r;for(t=e.length-1;t>=0;t-=1)if("sh"===e[t].ty)if(e[t].ks.k.i)a(e[t].ks.k);else for(r=e[t].ks.k.length,n=0;n<r;n+=1)e[t].ks.k[n].s&&a(e[t].ks.k[n].s[0]),e[t].ks.k[n].e&&a(e[t].ks.k[n].e[0]);else"gr"===e[t].ty&&i(e[t].it)}function a(e){var t,n=e.i.length;for(t=0;t<n;t+=1)e.i[t][0]+=e.v[t][0],e.i[t][1]+=e.v[t][1],e.o[t][0]+=e.v[t][0],e.o[t][1]+=e.v[t][1]}function o(e,t){var n=t?t.split("."):[100,100,100];return e[0]>n[0]||!(n[0]>e[0])&&(e[1]>n[1]||!(n[1]>e[1])&&(e[2]>n[2]||!(n[2]>e[2])&&null))}var s,l=function(){var e=[4,4,14];function t(e){var t=e.t.d;e.t.d={k:[{s:t,t:0}]}}function n(e){var n,r=e.length;for(n=0;n<r;n+=1)5===e[n].ty&&t(e[n])}return function(t){if(o(e,t.v)&&(n(t.layers),t.assets)){var r,i=t.assets.length;for(r=0;r<i;r+=1)t.assets[r].layers&&n(t.assets[r].layers)}}}(),u=(s=[4,7,99],function(e){if(e.chars&&!o(s,e.v)){var t,n=e.chars.length;for(t=0;t<n;t+=1){var r=e.chars[t];r.data&&r.data.shapes&&(i(r.data.shapes),r.data.ip=0,r.data.op=99999,r.data.st=0,r.data.sr=1,r.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}},e.chars[t].t||(r.data.shapes.push({ty:"no"}),r.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"})))}}}),c=function(){var e=[5,7,15];function t(e){var t=e.t.p;"number"==typeof t.a&&(t.a={a:0,k:t.a}),"number"==typeof t.p&&(t.p={a:0,k:t.p}),"number"==typeof t.r&&(t.r={a:0,k:t.r})}function n(e){var n,r=e.length;for(n=0;n<r;n+=1)5===e[n].ty&&t(e[n])}return function(t){if(o(e,t.v)&&(n(t.layers),t.assets)){var r,i=t.assets.length;for(r=0;r<i;r+=1)t.assets[r].layers&&n(t.assets[r].layers)}}}(),d=function(){var e=[4,1,9];function t(e){var n,r,i,a=e.length;for(n=0;n<a;n+=1)if("gr"===e[n].ty)t(e[n].it);else if("fl"===e[n].ty||"st"===e[n].ty)if(e[n].c.k&&e[n].c.k[0].i)for(i=e[n].c.k.length,r=0;r<i;r+=1)e[n].c.k[r].s&&(e[n].c.k[r].s[0]/=255,e[n].c.k[r].s[1]/=255,e[n].c.k[r].s[2]/=255,e[n].c.k[r].s[3]/=255),e[n].c.k[r].e&&(e[n].c.k[r].e[0]/=255,e[n].c.k[r].e[1]/=255,e[n].c.k[r].e[2]/=255,e[n].c.k[r].e[3]/=255);else e[n].c.k[0]/=255,e[n].c.k[1]/=255,e[n].c.k[2]/=255,e[n].c.k[3]/=255}function n(e){var n,r=e.length;for(n=0;n<r;n+=1)4===e[n].ty&&t(e[n].shapes)}return function(t){if(o(e,t.v)&&(n(t.layers),t.assets)){var r,i=t.assets.length;for(r=0;r<i;r+=1)t.assets[r].layers&&n(t.assets[r].layers)}}}(),p=function(){var e=[4,4,18];function t(e){var n,r,i;for(n=e.length-1;n>=0;n-=1)if("sh"===e[n].ty)if(e[n].ks.k.i)e[n].ks.k.c=e[n].closed;else for(i=e[n].ks.k.length,r=0;r<i;r+=1)e[n].ks.k[r].s&&(e[n].ks.k[r].s[0].c=e[n].closed),e[n].ks.k[r].e&&(e[n].ks.k[r].e[0].c=e[n].closed);else"gr"===e[n].ty&&t(e[n].it)}function n(e){var n,r,i,a,o,s,l=e.length;for(r=0;r<l;r+=1){if((n=e[r]).hasMask){var u=n.masksProperties;for(a=u.length,i=0;i<a;i+=1)if(u[i].pt.k.i)u[i].pt.k.c=u[i].cl;else for(s=u[i].pt.k.length,o=0;o<s;o+=1)u[i].pt.k[o].s&&(u[i].pt.k[o].s[0].c=u[i].cl),u[i].pt.k[o].e&&(u[i].pt.k[o].e[0].c=u[i].cl)}4===n.ty&&t(n.shapes)}}return function(t){if(o(e,t.v)&&(n(t.layers),t.assets)){var r,i=t.assets.length;for(r=0;r<i;r+=1)t.assets[r].layers&&n(t.assets[r].layers)}}}();function h(n){n.__complete||(d(n),l(n),u(n),c(n),p(n),e(n.layers,n.assets),t(n.chars,n.assets),n.__complete=!0)}function f(e){0===e.t.a.length&&e.t.p}var m={};return m.completeData=h,m.checkColors=d,m.checkChars=u,m.checkPathProperties=c,m.checkShapes=p,m.completeLayers=e,m}if(a.dataManager||(a.dataManager=t()),a.assetLoader||(a.assetLoader=function(){function e(e){var t=e.getResponseHeader("content-type");return t&&"json"===e.responseType&&-1!==t.indexOf("json")||e.response&&"object"===Z(e.response)?e.response:e.response&&"string"==typeof e.response?JSON.parse(e.response):e.responseText?JSON.parse(e.responseText):null}function t(t,n,r,i){var a,o=new XMLHttpRequest;try{o.responseType="json"}catch(s){}o.onreadystatechange=function(){if(4===o.readyState)if(200===o.status)a=e(o),r(a);else try{a=e(o),r(a)}catch(s){i&&i(s)}};try{o.open(["G","E","T"].join(""),t,!0)}catch(s){o.open(["G","E","T"].join(""),n+"/"+t,!0)}o.send()}return{load:t}}()),"loadAnimation"===e.data.type)a.assetLoader.load(e.data.path,e.data.fullPath,(function(t){a.dataManager.completeData(t),a.postMessage({id:e.data.id,payload:t,status:"success"})}),(function(){a.postMessage({id:e.data.id,status:"error"})}));else if("complete"===e.data.type){var n=e.data.animation;a.dataManager.completeData(n),a.postMessage({id:e.data.id,payload:n,status:"success"})}else"loadData"===e.data.type&&a.assetLoader.load(e.data.path,e.data.fullPath,(function(t){a.postMessage({id:e.data.id,payload:t,status:"success"})}),(function(){a.postMessage({id:e.data.id,status:"error"})}))}))).onmessage=function(e){var t=e.data,n=t.id,i=r[n];r[n]=null,"success"===t.status?i.onComplete(t.payload):i.onError&&i.onError()})}function u(e,t){var i="processId_"+(n+=1);return r[i]={onComplete:e,onError:t},i}function c(e,n,r){l();var i=u(n,r);t.postMessage({type:"loadAnimation",path:e,fullPath:window.location.origin+window.location.pathname,id:i})}function d(e,n,r){l();var i=u(n,r);t.postMessage({type:"loadData",path:e,fullPath:window.location.origin+window.location.pathname,id:i})}function p(e,n,r){l();var i=u(n,r);t.postMessage({type:"complete",animation:e,id:i})}return{loadAnimation:c,loadData:d,completeAnimation:p}}(),Y=function(){var e=function(){var e=u("canvas");e.width=1,e.height=1;var t=e.getContext("2d");return t.fillStyle="rgba(0,0,0,0)",t.fillRect(0,0,1,1),e}();function t(){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 r(e,t,n){var r="";if(e.e)r=e.p;else if(t){var i=e.p;-1!==i.indexOf("images/")&&(i=i.split("/")[1]),r=t+i}else r=n,r+=e.u?e.u:"",r+=e.p;return r}function i(e){var t=0,n=setInterval(function(){(e.getBBox().width||t>500)&&(this._imageLoaded(),clearInterval(n)),t+=1}.bind(this),50)}function a(t){var n=r(t,this.assetsPath,this.path),i=H("image");v?this.testImageLoaded(i):i.addEventListener("load",this._imageLoaded,!1),i.addEventListener("error",function(){a.img=e,this._imageLoaded()}.bind(this),!1),i.setAttributeNS("http://www.w3.org/1999/xlink","href",n),this._elementHelper.append?this._elementHelper.append(i):this._elementHelper.appendChild(i);var a={img:i,assetData:t};return a}function o(t){var n=r(t,this.assetsPath,this.path),i=u("img");i.crossOrigin="anonymous",i.addEventListener("load",this._imageLoaded,!1),i.addEventListener("error",function(){a.img=e,this._imageLoaded()}.bind(this),!1),i.src=n;var a={img:i,assetData:t};return a}function s(e){var t={assetData:e},n=r(e,this.assetsPath,this.path);return G.loadData(n,function(e){t.img=e,this._footageLoaded()}.bind(this),function(){t.img={},this._footageLoaded()}.bind(this)),t}function l(e,t){var n;this.imagesLoadedCb=t;var r=e.length;for(n=0;n<r;n+=1)e[n].layers||(e[n].t&&"seq"!==e[n].t?3===e[n].t&&(this.totalFootages+=1,this.images.push(this.createFootageData(e[n]))):(this.totalImages+=1,this.images.push(this._createImageData(e[n]))))}function c(e){this.path=e||""}function d(e){this.assetsPath=e||""}function p(e){for(var t=0,n=this.images.length;t<n;){if(this.images[t].assetData===e)return this.images[t].img;t+=1}return null}function h(){this.imagesLoadedCb=null,this.images.length=0}function f(){return this.totalImages===this.loadedAssets}function m(){return this.totalFootages===this.loadedFootagesCount}function g(e,t){"svg"===e?(this._elementHelper=t,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function y(){this._imageLoaded=t.bind(this),this._footageLoaded=n.bind(this),this.testImageLoaded=i.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 y.prototype={loadAssets:l,setAssetsPath:d,setPath:c,loadedImages:f,loadedFootages:m,destroy:h,getAsset:p,createImgData:o,createImageData:a,imageLoaded:t,footageLoaded:n,setCacheType:g},y}();function J(){}J.prototype={triggerEvent:function(e,t){if(this._cbs[e])for(var n=this._cbs[e],r=0;r<n.length;r+=1)n[r](t)},addEventListener:function(e,t){return this._cbs[e]||(this._cbs[e]=[]),this._cbs[e].push(t),function(){this.removeEventListener(e,t)}.bind(this)},removeEventListener:function(e,t){if(t){if(this._cbs[e]){for(var n=0,r=this._cbs[e].length;n<r;)this._cbs[e][n]===t&&(this._cbs[e].splice(n,1),n-=1,r-=1),n+=1;this._cbs[e].length||(this._cbs[e]=null)}}else this._cbs[e]=null}};var X=function(){function e(e){for(var t,n=e.split("\r\n"),r={},i=0,a=0;a<n.length;a+=1)2===(t=n[a].split(":")).length&&(r[t[0]]=t[1].trim(),i+=1);if(0===i)throw new Error;return r}return function(t){for(var n=[],r=0;r<t.length;r+=1){var i=t[r],a={time:i.tm,duration:i.dr};try{a.payload=JSON.parse(t[r].cm)}catch(o){try{a.payload=e(t[r].cm)}catch(s){a.payload={name:t[r].cm}}}n.push(a)}return n}}(),Q=function(){function e(e){this.compositions.push(e)}return function(){function t(e){for(var t=0,n=this.compositions.length;t<n;){if(this.compositions[t].data&&this.compositions[t].data.nm===e)return this.compositions[t].prepareFrame&&this.compositions[t].data.xt&&this.compositions[t].prepareFrame(this.currentFrame),this.compositions[t].compInterface;t+=1}return null}return t.compositions=[],t.currentFrame=0,t.registerComposition=e,t}}(),ee={},te=function(e,t){ee[e]=t};function ne(e){return ee[e]}function re(e){return(re="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var ie=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=A(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=z(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=Q(),this.imagePreloader=new Y,this.audioController=p(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new j("drawnFrame",0,0,0)};c([J],ie),ie.prototype.setParams=function(e){(e.wrapper||e.container)&&(this.wrapper=e.wrapper||e.container);var t="svg";e.animType?t=e.animType:e.renderer&&(t=e.renderer);var n=ne(t);this.renderer=new n(this,e.rendererSettings),this.imagePreloader.setCacheType(t,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=t,""===e.loop||null===e.loop||void 0===e.loop||!0===e.loop?this.loop=!0:!1===e.loop?this.loop=!1:this.loop=parseInt(e.loop,10),this.autoplay=!("autoplay"in e)||e.autoplay,this.name=e.name?e.name:"",this.autoloadSegments=!Object.prototype.hasOwnProperty.call(e,"autoloadSegments")||e.autoloadSegments,this.assetsPath=e.assetsPath,this.initialSegment=e.initialSegment,e.audioFactory&&this.audioController.setAudioFactory(e.audioFactory),e.animationData?this.setupAnimation(e.animationData):e.path&&(-1!==e.path.lastIndexOf("\\")?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")),G.loadAnimation(e.path,this.configAnimation,this.onSetupError))},ie.prototype.onSetupError=function(){this.trigger("data_failed")},ie.prototype.setupAnimation=function(e){G.completeAnimation(e,this.configAnimation)},ie.prototype.setData=function(e,t){t&&"object"!==re(t)&&(t=JSON.parse(t));var n={wrapper:e,animationData:t},r=e.attributes;n.path=r.getNamedItem("data-animation-path")?r.getNamedItem("data-animation-path").value:r.getNamedItem("data-bm-path")?r.getNamedItem("data-bm-path").value:r.getNamedItem("bm-path")?r.getNamedItem("bm-path").value:"",n.animType=r.getNamedItem("data-anim-type")?r.getNamedItem("data-anim-type").value:r.getNamedItem("data-bm-type")?r.getNamedItem("data-bm-type").value:r.getNamedItem("bm-type")?r.getNamedItem("bm-type").value:r.getNamedItem("data-bm-renderer")?r.getNamedItem("data-bm-renderer").value:r.getNamedItem("bm-renderer")?r.getNamedItem("bm-renderer").value:"canvas";var i=r.getNamedItem("data-anim-loop")?r.getNamedItem("data-anim-loop").value:r.getNamedItem("data-bm-loop")?r.getNamedItem("data-bm-loop").value:r.getNamedItem("bm-loop")?r.getNamedItem("bm-loop").value:"";"false"===i?n.loop=!1:"true"===i?n.loop=!0:""!==i&&(n.loop=parseInt(i,10));var a=r.getNamedItem("data-anim-autoplay")?r.getNamedItem("data-anim-autoplay").value:r.getNamedItem("data-bm-autoplay")?r.getNamedItem("data-bm-autoplay").value:!r.getNamedItem("bm-autoplay")||r.getNamedItem("bm-autoplay").value;n.autoplay="false"!==a,n.name=r.getNamedItem("data-name")?r.getNamedItem("data-name").value:r.getNamedItem("data-bm-name")?r.getNamedItem("data-bm-name").value:r.getNamedItem("bm-name")?r.getNamedItem("bm-name").value:"","false"===(r.getNamedItem("data-anim-prerender")?r.getNamedItem("data-anim-prerender").value:r.getNamedItem("data-bm-prerender")?r.getNamedItem("data-bm-prerender").value:r.getNamedItem("bm-prerender")?r.getNamedItem("bm-prerender").value:"")&&(n.prerender=!1),this.setParams(n)},ie.prototype.includeLayers=function(e){e.op>this.animationData.op&&(this.animationData.op=e.op,this.totalFrames=Math.floor(e.op-this.animationData.ip));var t,n,r=this.animationData.layers,i=r.length,a=e.layers,o=a.length;for(n=0;n<o;n+=1)for(t=0;t<i;){if(r[t].id===a[n].id){r[t]=a[n];break}t+=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(i=e.assets.length,t=0;t<i;t+=1)this.animationData.assets.push(e.assets[t]);this.animationData.__complete=!1,G.completeAnimation(this.animationData,this.onSegmentComplete)},ie.prototype.onSegmentComplete=function(e){this.animationData=e;var t=U();t&&t.initExpressions(this),this.loadNextSegment()},ie.prototype.loadNextSegment=function(){var e=this.animationData.segments;if(!e||0===e.length||!this.autoloadSegments)return this.trigger("data_ready"),void(this.timeCompleted=this.totalFrames);var t=e.shift();this.timeCompleted=t.time*this.frameRate;var n=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,G.loadData(n,this.includeLayers.bind(this),function(){this.trigger("data_failed")}.bind(this))},ie.prototype.loadSegments=function(){this.animationData.segments||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},ie.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},ie.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},ie.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=X(e.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(t){this.triggerConfigError(t)}},ie.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},ie.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||"canvas"!==this.renderer.rendererType)&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var e=U();e&&e.initExpressions(this),this.renderer.initItems(),setTimeout(function(){this.trigger("DOMLoaded")}.bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},ie.prototype.resize=function(e,t){var n="number"==typeof e?e:void 0,r="number"==typeof t?t:void 0;this.renderer.updateContainerSize(n,r)},ie.prototype.setSubframe=function(e){this.isSubframeEnabled=!!e},ie.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")},ie.prototype.renderFrame=function(){if(!1!==this.isLoaded&&this.renderer)try{this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(e){this.triggerRenderFrameError(e)}},ie.prototype.play=function(e){e&&this.name!==e||!0===this.isPaused&&(this.isPaused=!1,this.trigger("_pause"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},ie.prototype.pause=function(e){e&&this.name!==e||!1===this.isPaused&&(this.isPaused=!0,this.trigger("_play"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},ie.prototype.togglePause=function(e){e&&this.name!==e||(!0===this.isPaused?this.play():this.pause())},ie.prototype.stop=function(e){e&&this.name!==e||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},ie.prototype.getMarkerData=function(e){for(var t,n=0;n<this.markers.length;n+=1)if((t=this.markers[n]).payload&&t.payload.name===e)return t;return null},ie.prototype.goToAndStop=function(e,t,n){if(!n||this.name===n){var r=Number(e);if(isNaN(r)){var i=this.getMarkerData(e);i&&this.goToAndStop(i.time,!0)}else t?this.setCurrentRawFrameValue(e):this.setCurrentRawFrameValue(e*this.frameModifier);this.pause()}},ie.prototype.goToAndPlay=function(e,t,n){if(!n||this.name===n){var r=Number(e);if(isNaN(r)){var i=this.getMarkerData(e);i&&(i.duration?this.playSegments([i.time,i.time+i.duration],!0):this.goToAndStop(i.time,!0))}else this.goToAndStop(r,t,n);this.play()}},ie.prototype.advanceTime=function(e){if(!0!==this.isPaused&&!1!==this.isLoaded){var t=this.currentRawFrame+e*this.frameModifier,n=!1;t>=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?t>=this.totalFrames?(this.playCount+=1,this.checkSegments(t%this.totalFrames)||(this.setCurrentRawFrameValue(t%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(t):this.checkSegments(t>this.totalFrames?t%this.totalFrames:0)||(n=!0,t=this.totalFrames-1):t<0?this.checkSegments(t%this.totalFrames)||(!this.loop||this.playCount--<=0&&!0!==this.loop?(n=!0,t=0):(this.setCurrentRawFrameValue(this.totalFrames+t%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(t),n&&(this.setCurrentRawFrameValue(t),this.pause(),this.trigger("complete"))}},ie.prototype.adjustSegment=function(e,t){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-t)):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+t)),this.trigger("segmentStart")},ie.prototype.setSegment=function(e,t){var n=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<e?n=e:this.currentRawFrame+this.firstFrame>t&&(n=t-e)),this.firstFrame=e,this.totalFrames=t-e,this.timeCompleted=this.totalFrames,-1!==n&&this.goToAndStop(n,!0)},ie.prototype.playSegments=function(e,t){if(t&&(this.segments.length=0),"object"===re(e[0])){var n,r=e.length;for(n=0;n<r;n+=1)this.segments.push(e[n])}else this.segments.push(e);this.segments.length&&t&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},ie.prototype.resetSegments=function(e){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),e&&this.checkSegments(0)},ie.prototype.checkSegments=function(e){return!!this.segments.length&&(this.adjustSegment(this.segments.shift(),e),!0)},ie.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.renderer=null,this.imagePreloader=null,this.projectInterface=null)},ie.prototype.setCurrentRawFrameValue=function(e){this.currentRawFrame=e,this.gotoFrame()},ie.prototype.setSpeed=function(e){this.playSpeed=e,this.updaFrameModifier()},ie.prototype.setDirection=function(e){this.playDirection=e<0?-1:1,this.updaFrameModifier()},ie.prototype.setLoop=function(e){this.loop=e},ie.prototype.setVolume=function(e,t){t&&this.name!==t||this.audioController.setVolume(e)},ie.prototype.getVolume=function(){return this.audioController.getVolume()},ie.prototype.mute=function(e){e&&this.name!==e||this.audioController.mute()},ie.prototype.unmute=function(e){e&&this.name!==e||this.audioController.unmute()},ie.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},ie.prototype.getPath=function(){return this.path},ie.prototype.getAssetsPath=function(e){var t="";if(e.e)t=e.p;else if(this.assetsPath){var n=e.p;-1!==n.indexOf("images/")&&(n=n.split("/")[1]),t=this.assetsPath+n}else t=this.path,t+=e.u?e.u:"",t+=e.p;return t},ie.prototype.getAssetData=function(e){for(var t=0,n=this.assets.length;t<n;){if(e===this.assets[t].id)return this.assets[t];t+=1}return null},ie.prototype.hide=function(){this.renderer.hide()},ie.prototype.show=function(){this.renderer.show()},ie.prototype.getDuration=function(e){return e?this.totalFrames:this.totalFrames/this.frameRate},ie.prototype.updateDocumentData=function(e,t,n){try{this.renderer.getElementByPath(e).updateDocumentData(t,n)}catch(r){}},ie.prototype.trigger=function(e){if(this._cbs&&this._cbs[e])switch(e){case"enterFrame":this.triggerEvent(e,new j(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 R(e,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(e,new C(e,this.frameMult));break;case"segmentStart":this.triggerEvent(e,new P(e,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(e,new $(e,this));break;default:this.triggerEvent(e)}"enterFrame"===e&&this.onEnterFrame&&this.onEnterFrame.call(this,new j(e,this.currentFrame,this.totalFrames,this.frameMult)),"loopComplete"===e&&this.onLoopComplete&&this.onLoopComplete.call(this,new R(e,this.loop,this.playCount,this.frameMult)),"complete"===e&&this.onComplete&&this.onComplete.call(this,new C(e,this.frameMult)),"segmentStart"===e&&this.onSegmentStart&&this.onSegmentStart.call(this,new P(e,this.firstFrame,this.totalFrames)),"destroy"===e&&this.onDestroy&&this.onDestroy.call(this,new $(e,this))},ie.prototype.triggerRenderFrameError=function(e){var t=new T(e,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)},ie.prototype.triggerConfigError=function(e){var t=new _(e,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)};var ae=function(){var e={},t=[],n=0,r=0,i=0,a=!0,o=!1;function s(e){for(var n=0,i=e.target;n<r;)t[n].animation===i&&(t.splice(n,1),n-=1,r-=1,i.isPaused||p()),n+=1}function l(e,n){if(!e)return null;for(var i=0;i<r;){if(t[i].elem===e&&null!==t[i].elem)return t[i].animation;i+=1}var a=new ie;return h(a,e),a.setData(e,n),a}function c(){var e,n=t.length,r=[];for(e=0;e<n;e+=1)r.push(t[e].animation);return r}function d(){i+=1,C()}function p(){i-=1}function h(e,n){e.addEventListener("destroy",s),e.addEventListener("_active",d),e.addEventListener("_idle",p),t.push({elem:n,animation:e}),r+=1}function f(e){var t=new ie;return h(t,null),t.setParams(e),t}function m(e,n){var i;for(i=0;i<r;i+=1)t[i].animation.setSpeed(e,n)}function g(e,n){var i;for(i=0;i<r;i+=1)t[i].animation.setDirection(e,n)}function y(e){var n;for(n=0;n<r;n+=1)t[n].animation.play(e)}function v(e){var s,l=e-n;for(s=0;s<r;s+=1)t[s].animation.advanceTime(l);n=e,i&&!o?window.requestAnimationFrame(v):a=!0}function b(e){n=e,window.requestAnimationFrame(v)}function x(e){var n;for(n=0;n<r;n+=1)t[n].animation.pause(e)}function w(e,n,i){var a;for(a=0;a<r;a+=1)t[a].animation.goToAndStop(e,n,i)}function E(e){var n;for(n=0;n<r;n+=1)t[n].animation.stop(e)}function k(e){var n;for(n=0;n<r;n+=1)t[n].animation.togglePause(e)}function S(e){var n;for(n=r-1;n>=0;n-=1)t[n].animation.destroy(e)}function D(e,t,n){var r,i=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),a=i.length;for(r=0;r<a;r+=1)n&&i[r].setAttribute("data-bm-type",n),l(i[r],e);if(t&&0===a){n||(n="svg");var o=document.getElementsByTagName("body")[0];o.innerText="";var s=u("div");s.style.width="100%",s.style.height="100%",s.setAttribute("data-bm-type",n),o.appendChild(s),l(s,e)}}function j(){var e;for(e=0;e<r;e+=1)t[e].animation.resize()}function C(){!o&&i&&a&&(window.requestAnimationFrame(b),a=!1)}function R(){o=!0}function P(){o=!1,C()}function $(e,n){var i;for(i=0;i<r;i+=1)t[i].animation.setVolume(e,n)}function T(e){var n;for(n=0;n<r;n+=1)t[n].animation.mute(e)}function _(e){var n;for(n=0;n<r;n+=1)t[n].animation.unmute(e)}return e.registerAnimation=l,e.loadAnimation=f,e.setSpeed=m,e.setDirection=g,e.play=y,e.pause=x,e.stop=E,e.togglePause=k,e.searchAnimations=D,e.resize=j,e.goToAndStop=w,e.destroy=S,e.freeze=R,e.unfreeze=P,e.setVolume=$,e.mute=T,e.unmute=_,e.getRegisteredAnimations=c,e}(),oe=function(){var e={};e.getBezierEasing=n;var t={};function n(e,n,r,i,a){var o=a||("bez_"+e+"_"+n+"_"+r+"_"+i).replace(/\./g,"p");if(t[o])return t[o];var s=new y([e,n,r,i]);return t[o]=s,s}var r=4,i=.001,a=1e-7,o=10,s=11,l=1/(s-1),u="function"==typeof Float32Array;function c(e,t){return 1-3*t+3*e}function d(e,t){return 3*t-6*e}function p(e){return 3*e}function h(e,t,n){return((c(t,n)*e+d(t,n))*e+p(t))*e}function f(e,t,n){return 3*c(t,n)*e*e+2*d(t,n)*e+p(t)}function m(e,t,n,r,i){var s,l,u=0;do{(s=h(l=t+(n-t)/2,r,i)-e)>0?n=l:t=l}while(Math.abs(s)>a&&++u<o);return l}function g(e,t,n,i){for(var a=0;a<r;++a){var o=f(t,n,i);if(0===o)return t;t-=(h(t,n,i)-e)/o}return t}function y(e){this._p=e,this._mSampleValues=u?new Float32Array(s):new Array(s),this._precomputed=!1,this.get=this.get.bind(this)}return y.prototype={get:function(e){var t=this._p[0],n=this._p[1],r=this._p[2],i=this._p[3];return this._precomputed||this._precompute(),t===n&&r===i?e:0===e?0:1===e?1:h(this._getTForX(e),n,i)},_precompute:function(){var e=this._p[0],t=this._p[1],n=this._p[2],r=this._p[3];this._precomputed=!0,e===t&&n===r||this._calcSampleValues()},_calcSampleValues:function(){for(var e=this._p[0],t=this._p[2],n=0;n<s;++n)this._mSampleValues[n]=h(n*l,e,t)},_getTForX:function(e){for(var t=this._p[0],n=this._p[2],r=this._mSampleValues,a=0,o=1,u=s-1;o!==u&&r[o]<=e;++o)a+=l;var c=a+(e-r[--o])/(r[o+1]-r[o])*l,d=f(c,t,n);return d>=i?g(e,c,t,n):0===d?c:m(e,a,a+l,t,n)}},e}(),se=function(){function e(e){return e.concat(f(e.length))}return{double:e}}(),le=function(e,t,n){var r=0,i=e,a=f(i);function o(){return r?a[r-=1]:t()}function s(e){r===i&&(a=se.double(a),i*=2),n&&n(e),a[r]=e,r+=1}return{newElement:o,release:s}},ue=function(){function e(){return{addedLength:0,percents:h("float32",q()),lengths:h("float32",q())}}return le(8,e)}(),ce=function(){function e(){return{lengths:[],totalLength:0}}function t(e){var t,n=e.lengths.length;for(t=0;t<n;t+=1)ue.release(e.lengths[t]);e.lengths.length=0}return le(8,e,t)}();function de(){var e=Math;function t(e,t,n,r,i,a){var o=e*r+t*i+n*a-i*r-a*e-n*t;return o>-.001&&o<.001}function n(n,r,i,a,o,s,l,u,c){if(0===i&&0===s&&0===c)return t(n,r,a,o,l,u);var d,p=e.sqrt(e.pow(a-n,2)+e.pow(o-r,2)+e.pow(s-i,2)),h=e.sqrt(e.pow(l-n,2)+e.pow(u-r,2)+e.pow(c-i,2)),f=e.sqrt(e.pow(l-a,2)+e.pow(u-o,2)+e.pow(c-s,2));return(d=p>h?p>f?p-h-f:f-h-p:f>h?f-h-p:h-p-f)>-1e-4&&d<1e-4}var r=function(e,t,n,r){var i,a,o,s,l,u,c=q(),d=0,p=[],h=[],f=ue.newElement();for(o=n.length,i=0;i<c;i+=1){for(l=i/(c-1),u=0,a=0;a<o;a+=1)s=b(1-l,3)*e[a]+3*b(1-l,2)*l*n[a]+3*(1-l)*b(l,2)*r[a]+b(l,3)*t[a],p[a]=s,null!==h[a]&&(u+=b(p[a]-h[a],2)),h[a]=p[a];u&&(d+=u=x(u)),f.percents[i]=l,f.lengths[i]=d}return f.addedLength=d,f};function i(e){var t,n=ce.newElement(),i=e.c,a=e.v,o=e.o,s=e.i,l=e._length,u=n.lengths,c=0;for(t=0;t<l-1;t+=1)u[t]=r(a[t],a[t+1],o[t],s[t+1]),c+=u[t].addedLength;return i&&l&&(u[t]=r(a[t],a[0],o[t],s[0]),c+=u[t].addedLength),n.totalLength=c,n}function a(e){this.segmentLength=0,this.points=new Array(e)}function o(e,t){this.partialLength=e,this.point=t}var s,l=(s={},function(e,n,r,i){var l=(e[0]+"_"+e[1]+"_"+n[0]+"_"+n[1]+"_"+r[0]+"_"+r[1]+"_"+i[0]+"_"+i[1]).replace(/\./g,"p");if(!s[l]){var u,c,d,p,h,m,g,y=q(),v=0,w=null;2===e.length&&(e[0]!==n[0]||e[1]!==n[1])&&t(e[0],e[1],n[0],n[1],e[0]+r[0],e[1]+r[1])&&t(e[0],e[1],n[0],n[1],n[0]+i[0],n[1]+i[1])&&(y=2);var E=new a(y);for(d=r.length,u=0;u<y;u+=1){for(g=f(d),h=u/(y-1),m=0,c=0;c<d;c+=1)p=b(1-h,3)*e[c]+3*b(1-h,2)*h*(e[c]+r[c])+3*(1-h)*b(h,2)*(n[c]+i[c])+b(h,3)*n[c],g[c]=p,null!==w&&(m+=b(g[c]-w[c],2));v+=m=x(m),E.points[u]=new o(m,g),w=g}E.segmentLength=v,s[l]=E}return s[l]});function u(e,t){var n=t.percents,r=t.lengths,i=n.length,a=w((i-1)*e),o=e*t.addedLength,s=0;if(a===i-1||0===a||o===r[a])return n[a];for(var l=r[a]>o?-1:1,u=!0;u;)if(r[a]<=o&&r[a+1]>o?(s=(o-r[a])/(r[a+1]-r[a]),u=!1):a+=l,a<0||a>=i-1){if(a===i-1)return n[a];u=!1}return n[a]+(n[a+1]-n[a])*s}function c(t,n,r,i,a,o){var s=u(a,o),l=1-s;return[e.round(1e3*(l*l*l*t[0]+(s*l*l+l*s*l+l*l*s)*r[0]+(s*s*l+l*s*s+s*l*s)*i[0]+s*s*s*n[0]))/1e3,e.round(1e3*(l*l*l*t[1]+(s*l*l+l*s*l+l*l*s)*r[1]+(s*s*l+l*s*s+s*l*s)*i[1]+s*s*s*n[1]))/1e3]}var d=h("float32",8);function p(t,n,r,i,a,o,s){a<0?a=0:a>1&&(a=1);var l,c=u(a,s),p=u(o=o>1?1:o,s),h=t.length,f=1-c,m=1-p,g=f*f*f,y=c*f*f*3,v=c*c*f*3,b=c*c*c,x=f*f*m,w=c*f*m+f*c*m+f*f*p,E=c*c*m+f*c*p+c*f*p,k=c*c*p,S=f*m*m,D=c*m*m+f*p*m+f*m*p,j=c*p*m+f*p*p+c*m*p,C=c*p*p,R=m*m*m,P=p*m*m+m*p*m+m*m*p,$=p*p*m+m*p*p+p*m*p,T=p*p*p;for(l=0;l<h;l+=1)d[4*l]=e.round(1e3*(g*t[l]+y*r[l]+v*i[l]+b*n[l]))/1e3,d[4*l+1]=e.round(1e3*(x*t[l]+w*r[l]+E*i[l]+k*n[l]))/1e3,d[4*l+2]=e.round(1e3*(S*t[l]+D*r[l]+j*i[l]+C*n[l]))/1e3,d[4*l+3]=e.round(1e3*(R*t[l]+P*r[l]+$*i[l]+T*n[l]))/1e3;return d}return{getSegmentsLength:i,getNewSegment:p,getPointInSegment:c,buildBezierData:l,pointOnLine2D:t,pointOnLine3D:n}}var pe=de(),he=function(){var e=i,t=Math.abs;function n(e,t){var n,i=this.offsetTime;"multidimensional"===this.propType&&(n=h("float32",this.pv.length));for(var s,l,u,c,d,p,f,m,g,y=t.lastIndex,v=y,b=this.keyframes.length-1,x=!0;x;){if(s=this.keyframes[v],l=this.keyframes[v+1],v===b-1&&e>=l.t-i){s.h&&(s=l),y=0;break}if(l.t-i>e){y=v;break}v<b-1?v+=1:(y=0,x=!1)}u=this.keyframesMetadata[v]||{};var w,E=l.t-i,k=s.t-i;if(s.to){u.bezierData||(u.bezierData=pe.buildBezierData(s.s,l.s||s.e,s.to,s.ti));var S=u.bezierData;if(e>=E||e<k){var D=e>=E?S.points.length-1:0;for(d=S.points[D].point.length,c=0;c<d;c+=1)n[c]=S.points[D].point[c]}else{u.__fnct?g=u.__fnct:(g=oe.getBezierEasing(s.o.x,s.o.y,s.i.x,s.i.y,s.n).get,u.__fnct=g),p=g((e-k)/(E-k));var j,C=S.segmentLength*p,R=t.lastFrame<e&&t._lastKeyframeIndex===v?t._lastAddedLength:0;for(m=t.lastFrame<e&&t._lastKeyframeIndex===v?t._lastPoint:0,x=!0,f=S.points.length;x;){if(R+=S.points[m].partialLength,0===C||0===p||m===S.points.length-1){for(d=S.points[m].point.length,c=0;c<d;c+=1)n[c]=S.points[m].point[c];break}if(C>=R&&C<R+S.points[m+1].partialLength){for(j=(C-R)/S.points[m+1].partialLength,d=S.points[m].point.length,c=0;c<d;c+=1)n[c]=S.points[m].point[c]+(S.points[m+1].point[c]-S.points[m].point[c])*j;break}m<f-1?m+=1:x=!1}t._lastPoint=m,t._lastAddedLength=R-S.points[m].partialLength,t._lastKeyframeIndex=v}}else{var P,$,T,_,M;if(b=s.s.length,w=l.s||s.e,this.sh&&1!==s.h)e>=E?(n[0]=w[0],n[1]=w[1],n[2]=w[2]):e<=k?(n[0]=s.s[0],n[1]=s.s[1],n[2]=s.s[2]):a(n,r(o(s.s),o(w),(e-k)/(E-k)));else for(v=0;v<b;v+=1)1!==s.h&&(e>=E?p=1:e<k?p=0:(s.o.x.constructor===Array?(u.__fnct||(u.__fnct=[]),u.__fnct[v]?g=u.__fnct[v]:(P=void 0===s.o.x[v]?s.o.x[0]:s.o.x[v],$=void 0===s.o.y[v]?s.o.y[0]:s.o.y[v],T=void 0===s.i.x[v]?s.i.x[0]:s.i.x[v],_=void 0===s.i.y[v]?s.i.y[0]:s.i.y[v],g=oe.getBezierEasing(P,$,T,_).get,u.__fnct[v]=g)):u.__fnct?g=u.__fnct:(P=s.o.x,$=s.o.y,T=s.i.x,_=s.i.y,g=oe.getBezierEasing(P,$,T,_).get,s.keyframeMetadata=g),p=g((e-k)/(E-k)))),w=l.s||s.e,M=1===s.h?s.s[v]:s.s[v]+(w[v]-s.s[v])*p,"multidimensional"===this.propType?n[v]=M:n=M}return t.lastIndex=y,n}function r(e,t,n){var r,i,a,o,s,l=[],u=e[0],c=e[1],d=e[2],p=e[3],h=t[0],f=t[1],m=t[2],g=t[3];return(i=u*h+c*f+d*m+p*g)<0&&(i=-i,h=-h,f=-f,m=-m,g=-g),1-i>1e-6?(r=Math.acos(i),a=Math.sin(r),o=Math.sin((1-n)*r)/a,s=Math.sin(n*r)/a):(o=1-n,s=n),l[0]=o*u+s*h,l[1]=o*c+s*f,l[2]=o*d+s*m,l[3]=o*p+s*g,l}function a(e,t){var n=t[0],r=t[1],i=t[2],a=t[3],o=Math.atan2(2*r*a-2*n*i,1-2*r*r-2*i*i),s=Math.asin(2*n*r+2*i*a),l=Math.atan2(2*n*a-2*r*i,1-2*n*n-2*i*i);e[0]=o/S,e[1]=s/S,e[2]=l/S}function o(e){var t=e[0]*S,n=e[1]*S,r=e[2]*S,i=Math.cos(t/2),a=Math.cos(n/2),o=Math.cos(r/2),s=Math.sin(t/2),l=Math.sin(n/2),u=Math.sin(r/2);return[s*l*o+i*a*u,s*a*o+i*l*u,i*l*o-s*a*u,i*a*o-s*l*u]}function s(){var t=this.comp.renderedFrame-this.offsetTime,n=this.keyframes[0].t-this.offsetTime,r=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(t===this._caching.lastFrame||this._caching.lastFrame!==e&&(this._caching.lastFrame>=r&&t>=r||this._caching.lastFrame<n&&t<n))){this._caching.lastFrame>=t&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var i=this.interpolateValue(t,this._caching);this.pv=i}return this._caching.lastFrame=t,this.pv}function l(e){var n;if("unidimensional"===this.propType)n=e*this.mult,t(this.v-n)>1e-5&&(this.v=n,this._mdf=!0);else for(var r=0,i=this.v.length;r<i;)n=e[r]*this.mult,t(this.v[r]-n)>1e-5&&(this.v[r]=n,this._mdf=!0),r+=1}function u(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var e;this.lock=!0,this._mdf=this._isFirstFrame;var t=this.effectsSequence.length,n=this.kf?this.pv:this.data.k;for(e=0;e<t;e+=1)n=this.effectsSequence[e](n);this.setVValue(n),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function c(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function d(e,t,n,r){this.propType="unidimensional",this.mult=n||1,this.data=t,this.v=n?t.k*n:t.k,this.pv=t.k,this._mdf=!1,this.elem=e,this.container=r,this.comp=e.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=u,this.setVValue=l,this.addEffect=c}function p(e,t,n,r){var i;this.propType="multidimensional",this.mult=n||1,this.data=t,this._mdf=!1,this.elem=e,this.container=r,this.comp=e.comp,this.k=!1,this.kf=!1,this.frameId=-1;var a=t.k.length;for(this.v=h("float32",a),this.pv=h("float32",a),this.vel=h("float32",a),i=0;i<a;i+=1)this.v[i]=t.k[i]*this.mult,this.pv[i]=t.k[i];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=u,this.setVValue=l,this.addEffect=c}function f(t,r,i,a){this.propType="unidimensional",this.keyframes=r.k,this.keyframesMetadata=[],this.offsetTime=t.data.st,this.frameId=-1,this._caching={lastFrame:e,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=r,this.mult=i||1,this.elem=t,this.container=a,this.comp=t.comp,this.v=e,this.pv=e,this._isFirstFrame=!0,this.getValue=u,this.setVValue=l,this.interpolateValue=n,this.effectsSequence=[s.bind(this)],this.addEffect=c}function m(t,r,i,a){var o;this.propType="multidimensional";var d,p,f,m,g=r.k.length;for(o=0;o<g-1;o+=1)r.k[o].to&&r.k[o].s&&r.k[o+1]&&r.k[o+1].s&&(d=r.k[o].s,p=r.k[o+1].s,f=r.k[o].to,m=r.k[o].ti,(2===d.length&&(d[0]!==p[0]||d[1]!==p[1])&&pe.pointOnLine2D(d[0],d[1],p[0],p[1],d[0]+f[0],d[1]+f[1])&&pe.pointOnLine2D(d[0],d[1],p[0],p[1],p[0]+m[0],p[1]+m[1])||3===d.length&&(d[0]!==p[0]||d[1]!==p[1]||d[2]!==p[2])&&pe.pointOnLine3D(d[0],d[1],d[2],p[0],p[1],p[2],d[0]+f[0],d[1]+f[1],d[2]+f[2])&&pe.pointOnLine3D(d[0],d[1],d[2],p[0],p[1],p[2],p[0]+m[0],p[1]+m[1],p[2]+m[2]))&&(r.k[o].to=null,r.k[o].ti=null),d[0]===p[0]&&d[1]===p[1]&&0===f[0]&&0===f[1]&&0===m[0]&&0===m[1]&&(2===d.length||d[2]===p[2]&&0===f[2]&&0===m[2])&&(r.k[o].to=null,r.k[o].ti=null));this.effectsSequence=[s.bind(this)],this.data=r,this.keyframes=r.k,this.keyframesMetadata=[],this.offsetTime=t.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=i||1,this.elem=t,this.container=a,this.comp=t.comp,this.getValue=u,this.setVValue=l,this.interpolateValue=n,this.frameId=-1;var y=r.k[0].s.length;for(this.v=h("float32",y),this.pv=h("float32",y),o=0;o<y;o+=1)this.v[o]=e,this.pv[o]=e;this._caching={lastFrame:e,lastIndex:0,value:h("float32",y)},this.addEffect=c}function g(e,t,n,r,i){var a;if(t.k.length)if("number"==typeof t.k[0])a=new p(e,t,r,i);else switch(n){case 0:a=new f(e,t,r,i);break;case 1:a=new m(e,t,r,i)}else a=new d(e,t,r,i);return a.effectsSequence.length&&i.addDynamicProperty(a),a}return{getProp:g}}();function fe(){}fe.prototype={addDynamicProperty:function(e){-1===this.dynamicProperties.indexOf(e)&&(this.dynamicProperties.push(e),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){var e;this._mdf=!1;var t=this.dynamicProperties.length;for(e=0;e<t;e+=1)this.dynamicProperties[e].getValue(),this.dynamicProperties[e]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(e){this.container=e,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var me=function(){function e(){return h("float32",2)}return le(8,e)}();function ge(){this.c=!1,this._length=0,this._maxLength=8,this.v=f(this._maxLength),this.o=f(this._maxLength),this.i=f(this._maxLength)}ge.prototype.setPathData=function(e,t){this.c=e,this.setLength(t);for(var n=0;n<t;)this.v[n]=me.newElement(),this.o[n]=me.newElement(),this.i[n]=me.newElement(),n+=1},ge.prototype.setLength=function(e){for(;this._maxLength<e;)this.doubleArrayLength();this._length=e},ge.prototype.doubleArrayLength=function(){this.v=this.v.concat(f(this._maxLength)),this.i=this.i.concat(f(this._maxLength)),this.o=this.o.concat(f(this._maxLength)),this._maxLength*=2},ge.prototype.setXYAt=function(e,t,n,r,i){var a;switch(this._length=Math.max(this._length,r+1),this._length>=this._maxLength&&this.doubleArrayLength(),n){case"v":a=this.v;break;case"i":a=this.i;break;case"o":a=this.o;break;default:a=[]}(!a[r]||a[r]&&!i)&&(a[r]=me.newElement()),a[r][0]=e,a[r][1]=t},ge.prototype.setTripleAt=function(e,t,n,r,i,a,o,s){this.setXYAt(e,t,"v",o,s),this.setXYAt(n,r,"o",o,s),this.setXYAt(i,a,"i",o,s)},ge.prototype.reverse=function(){var e=new ge;e.setPathData(this.c,this._length);var t=this.v,n=this.o,r=this.i,i=0;this.c&&(e.setTripleAt(t[0][0],t[0][1],r[0][0],r[0][1],n[0][0],n[0][1],0,!1),i=1);var a,o=this._length-1,s=this._length;for(a=i;a<s;a+=1)e.setTripleAt(t[o][0],t[o][1],r[o][0],r[o][1],n[o][0],n[o][1],a,!1),o-=1;return e},ge.prototype.length=function(){return this._length};var ye=function(){function e(){return new ge}function t(e){var t,n=e._length;for(t=0;t<n;t+=1)me.release(e.v[t]),me.release(e.i[t]),me.release(e.o[t]),e.v[t]=null,e.i[t]=null,e.o[t]=null;e._length=0,e.c=!1}function n(e){var t,n=r.newElement(),i=void 0===e._length?e.v.length:e._length;for(n.setLength(i),n.c=e.c,t=0;t<i;t+=1)n.setTripleAt(e.v[t][0],e.v[t][1],e.o[t][0],e.o[t][1],e.i[t][0],e.i[t][1],t);return n}var r=le(4,e,t);return r.clone=n,r}();function ve(){this._length=0,this._maxLength=4,this.shapes=f(this._maxLength)}ve.prototype.addShape=function(e){this._length===this._maxLength&&(this.shapes=this.shapes.concat(f(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=e,this._length+=1},ve.prototype.releaseShapes=function(){var e;for(e=0;e<this._length;e+=1)ye.release(this.shapes[e]);this._length=0};var be=function(){var e={newShapeCollection:i,release:a},t=0,n=4,r=f(n);function i(){return t?r[t-=1]:new ve}function a(e){var i,a=e._length;for(i=0;i<a;i+=1)ye.release(e.shapes[i]);e._length=0,t===n&&(r=se.double(r),n*=2),r[t]=e,t+=1}return e}(),xe=function(){var e=-999999;function t(e,t,n){var r,i,a,o,s,l,u,c,d,p=n.lastIndex,h=this.keyframes;if(e<h[0].t-this.offsetTime)r=h[0].s[0],a=!0,p=0;else if(e>=h[h.length-1].t-this.offsetTime)r=h[h.length-1].s?h[h.length-1].s[0]:h[h.length-2].e[0],a=!0;else{for(var f,m,g,y=p,v=h.length-1,b=!0;b&&(f=h[y],!((m=h[y+1]).t-this.offsetTime>e));)y<v-1?y+=1:b=!1;if(g=this.keyframesMetadata[y]||{},p=y,!(a=1===f.h)){if(e>=m.t-this.offsetTime)c=1;else if(e<f.t-this.offsetTime)c=0;else{var x;g.__fnct?x=g.__fnct:(x=oe.getBezierEasing(f.o.x,f.o.y,f.i.x,f.i.y).get,g.__fnct=x),c=x((e-(f.t-this.offsetTime))/(m.t-this.offsetTime-(f.t-this.offsetTime)))}i=m.s?m.s[0]:f.e[0]}r=f.s[0]}for(l=t._length,u=r.i[0].length,n.lastIndex=p,o=0;o<l;o+=1)for(s=0;s<u;s+=1)d=a?r.i[o][s]:r.i[o][s]+(i.i[o][s]-r.i[o][s])*c,t.i[o][s]=d,d=a?r.o[o][s]:r.o[o][s]+(i.o[o][s]-r.o[o][s])*c,t.o[o][s]=d,d=a?r.v[o][s]:r.v[o][s]+(i.v[o][s]-r.v[o][s])*c,t.v[o][s]=d}function n(){var t=this.comp.renderedFrame-this.offsetTime,n=this.keyframes[0].t-this.offsetTime,r=this.keyframes[this.keyframes.length-1].t-this.offsetTime,i=this._caching.lastFrame;return i!==e&&(i<n&&t<n||i>r&&t>r)||(this._caching.lastIndex=i<t?this._caching.lastIndex:0,this.interpolateShape(t,this.pv,this._caching)),this._caching.lastFrame=t,this.pv}function r(){this.paths=this.localShapeCollection}function i(e,t){if(e._length!==t._length||e.c!==t.c)return!1;var n,r=e._length;for(n=0;n<r;n+=1)if(e.v[n][0]!==t.v[n][0]||e.v[n][1]!==t.v[n][1]||e.o[n][0]!==t.o[n][0]||e.o[n][1]!==t.o[n][1]||e.i[n][0]!==t.i[n][0]||e.i[n][1]!==t.i[n][1])return!1;return!0}function a(e){i(this.v,e)||(this.v=ye.clone(e),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function o(){if(this.elem.globalData.frameId!==this.frameId)if(this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var e,t;this.lock=!0,this._mdf=!1,e=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k;var n=this.effectsSequence.length;for(t=0;t<n;t+=1)e=this.effectsSequence[t](e);this.setVValue(e),this.lock=!1,this.frameId=this.elem.globalData.frameId}else this._mdf=!1}function s(e,t,n){this.propType="shape",this.comp=e.comp,this.container=e,this.elem=e,this.data=t,this.k=!1,this.kf=!1,this._mdf=!1;var i=3===n?t.pt.k:t.ks.k;this.v=ye.clone(i),this.pv=ye.clone(this.v),this.localShapeCollection=be.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=r,this.effectsSequence=[]}function l(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function u(t,i,a){this.propType="shape",this.comp=t.comp,this.elem=t,this.container=t,this.offsetTime=t.data.st,this.keyframes=3===a?i.pt.k:i.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var o=this.keyframes[0].s[0].i.length;this.v=ye.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,o),this.pv=ye.clone(this.v),this.localShapeCollection=be.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=e,this.reset=r,this._caching={lastFrame:e,lastIndex:0},this.effectsSequence=[n.bind(this)]}s.prototype.interpolateShape=t,s.prototype.getValue=o,s.prototype.setVValue=a,s.prototype.addEffect=l,u.prototype.getValue=o,u.prototype.interpolateShape=t,u.prototype.setVValue=a,u.prototype.addEffect=l;var d=function(){var e=D;function t(e,t){this.v=ye.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=be.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=t.d,this.elem=e,this.comp=e.comp,this.frameId=-1,this.initDynamicPropertyContainer(e),this.p=he.getProp(e,t.p,1,0,this),this.s=he.getProp(e,t.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return t.prototype={reset:r,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var t=this.p.v[0],n=this.p.v[1],r=this.s.v[0]/2,i=this.s.v[1]/2,a=3!==this.d,o=this.v;o.v[0][0]=t,o.v[0][1]=n-i,o.v[1][0]=a?t+r:t-r,o.v[1][1]=n,o.v[2][0]=t,o.v[2][1]=n+i,o.v[3][0]=a?t-r:t+r,o.v[3][1]=n,o.i[0][0]=a?t-r*e:t+r*e,o.i[0][1]=n-i,o.i[1][0]=a?t+r:t-r,o.i[1][1]=n-i*e,o.i[2][0]=a?t+r*e:t-r*e,o.i[2][1]=n+i,o.i[3][0]=a?t-r:t+r,o.i[3][1]=n+i*e,o.o[0][0]=a?t+r*e:t-r*e,o.o[0][1]=n-i,o.o[1][0]=a?t+r:t-r,o.o[1][1]=n+i*e,o.o[2][0]=a?t-r*e:t+r*e,o.o[2][1]=n+i,o.o[3][0]=a?t-r:t+r,o.o[3][1]=n-i*e}},c([fe],t),t}(),p=function(){function e(e,t){this.v=ye.newElement(),this.v.setPathData(!0,0),this.elem=e,this.comp=e.comp,this.data=t,this.frameId=-1,this.d=t.d,this.initDynamicPropertyContainer(e),1===t.sy?(this.ir=he.getProp(e,t.ir,0,0,this),this.is=he.getProp(e,t.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=he.getProp(e,t.pt,0,0,this),this.p=he.getProp(e,t.p,1,0,this),this.r=he.getProp(e,t.r,0,S,this),this.or=he.getProp(e,t.or,0,0,this),this.os=he.getProp(e,t.os,0,.01,this),this.localShapeCollection=be.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return e.prototype={reset:r,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var e,t,n,r,i=2*Math.floor(this.pt.v),a=2*Math.PI/i,o=!0,s=this.or.v,l=this.ir.v,u=this.os.v,c=this.is.v,d=2*Math.PI*s/(2*i),p=2*Math.PI*l/(2*i),h=-Math.PI/2;h+=this.r.v;var f=3===this.data.d?-1:1;for(this.v._length=0,e=0;e<i;e+=1){n=o?u:c,r=o?d:p;var m=(t=o?s:l)*Math.cos(h),g=t*Math.sin(h),y=0===m&&0===g?0:g/Math.sqrt(m*m+g*g),v=0===m&&0===g?0:-m/Math.sqrt(m*m+g*g);m+=+this.p.v[0],g+=+this.p.v[1],this.v.setTripleAt(m,g,m-y*r*n*f,g-v*r*n*f,m+y*r*n*f,g+v*r*n*f,e,!0),o=!o,h+=a*f}},convertPolygonToPath:function(){var e,t=Math.floor(this.pt.v),n=2*Math.PI/t,r=this.or.v,i=this.os.v,a=2*Math.PI*r/(4*t),o=.5*-Math.PI,s=3===this.data.d?-1:1;for(o+=this.r.v,this.v._length=0,e=0;e<t;e+=1){var l=r*Math.cos(o),u=r*Math.sin(o),c=0===l&&0===u?0:u/Math.sqrt(l*l+u*u),d=0===l&&0===u?0:-l/Math.sqrt(l*l+u*u);l+=+this.p.v[0],u+=+this.p.v[1],this.v.setTripleAt(l,u,l-c*a*i*s,u-d*a*i*s,l+c*a*i*s,u+d*a*i*s,e,!0),o+=n*s}this.paths.length=0,this.paths[0]=this.v}},c([fe],e),e}(),h=function(){function e(e,t){this.v=ye.newElement(),this.v.c=!0,this.localShapeCollection=be.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=e,this.comp=e.comp,this.frameId=-1,this.d=t.d,this.initDynamicPropertyContainer(e),this.p=he.getProp(e,t.p,1,0,this),this.s=he.getProp(e,t.s,1,0,this),this.r=he.getProp(e,t.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return e.prototype={convertRectToPath:function(){var e=this.p.v[0],t=this.p.v[1],n=this.s.v[0]/2,r=this.s.v[1]/2,i=E(n,r,this.r.v),a=i*(1-D);this.v._length=0,2===this.d||1===this.d?(this.v.setTripleAt(e+n,t-r+i,e+n,t-r+i,e+n,t-r+a,0,!0),this.v.setTripleAt(e+n,t+r-i,e+n,t+r-a,e+n,t+r-i,1,!0),0!==i?(this.v.setTripleAt(e+n-i,t+r,e+n-i,t+r,e+n-a,t+r,2,!0),this.v.setTripleAt(e-n+i,t+r,e-n+a,t+r,e-n+i,t+r,3,!0),this.v.setTripleAt(e-n,t+r-i,e-n,t+r-i,e-n,t+r-a,4,!0),this.v.setTripleAt(e-n,t-r+i,e-n,t-r+a,e-n,t-r+i,5,!0),this.v.setTripleAt(e-n+i,t-r,e-n+i,t-r,e-n+a,t-r,6,!0),this.v.setTripleAt(e+n-i,t-r,e+n-a,t-r,e+n-i,t-r,7,!0)):(this.v.setTripleAt(e-n,t+r,e-n+a,t+r,e-n,t+r,2),this.v.setTripleAt(e-n,t-r,e-n,t-r+a,e-n,t-r,3))):(this.v.setTripleAt(e+n,t-r+i,e+n,t-r+a,e+n,t-r+i,0,!0),0!==i?(this.v.setTripleAt(e+n-i,t-r,e+n-i,t-r,e+n-a,t-r,1,!0),this.v.setTripleAt(e-n+i,t-r,e-n+a,t-r,e-n+i,t-r,2,!0),this.v.setTripleAt(e-n,t-r+i,e-n,t-r+i,e-n,t-r+a,3,!0),this.v.setTripleAt(e-n,t+r-i,e-n,t+r-a,e-n,t+r-i,4,!0),this.v.setTripleAt(e-n+i,t+r,e-n+i,t+r,e-n+a,t+r,5,!0),this.v.setTripleAt(e+n-i,t+r,e+n-a,t+r,e+n-i,t+r,6,!0),this.v.setTripleAt(e+n,t+r-i,e+n,t+r-i,e+n,t+r-a,7,!0)):(this.v.setTripleAt(e-n,t-r,e-n+a,t-r,e-n,t-r,1,!0),this.v.setTripleAt(e-n,t+r,e-n,t+r-a,e-n,t+r,2,!0),this.v.setTripleAt(e+n,t+r,e+n-a,t+r,e+n,t+r,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:r},c([fe],e),e}();function f(e,t,n){var r;return 3===n||4===n?r=(3===n?t.pt:t.ks).k.length?new u(e,t,n):new s(e,t,n):5===n?r=new h(e,t):6===n?r=new d(e,t):7===n&&(r=new p(e,t)),r.k&&e.addDynamicProperty(r),r}function m(){return s}function g(){return u}var y={};return y.getShapeProp=f,y.getConstructorFunction=m,y.getKeyframedConstructorFunction=g,y}(),we=function(){var e=Math.cos,t=Math.sin,n=Math.tan,r=Math.round;function i(){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 a(n){if(0===n)return this;var r=e(n),i=t(n);return this._t(r,-i,0,0,i,r,0,0,0,0,1,0,0,0,0,1)}function o(n){if(0===n)return this;var r=e(n),i=t(n);return this._t(1,0,0,0,0,r,-i,0,0,i,r,0,0,0,0,1)}function s(n){if(0===n)return this;var r=e(n),i=t(n);return this._t(r,0,i,0,0,1,0,0,-i,0,r,0,0,0,0,1)}function l(n){if(0===n)return this;var r=e(n),i=t(n);return this._t(r,-i,0,0,i,r,0,0,0,0,1,0,0,0,0,1)}function u(e,t){return this._t(1,t,e,1,0,0)}function c(e,t){return this.shear(n(e),n(t))}function d(r,i){var a=e(i),o=t(i);return this._t(a,o,0,0,-o,a,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,n(r),1,0,0,0,0,1,0,0,0,0,1)._t(a,-o,0,0,o,a,0,0,0,0,1,0,0,0,0,1)}function p(e,t,n){return n||0===n||(n=1),1===e&&1===t&&1===n?this:this._t(e,0,0,0,0,t,0,0,0,0,n,0,0,0,0,1)}function f(e,t,n,r,i,a,o,s,l,u,c,d,p,h,f,m){return this.props[0]=e,this.props[1]=t,this.props[2]=n,this.props[3]=r,this.props[4]=i,this.props[5]=a,this.props[6]=o,this.props[7]=s,this.props[8]=l,this.props[9]=u,this.props[10]=c,this.props[11]=d,this.props[12]=p,this.props[13]=h,this.props[14]=f,this.props[15]=m,this}function m(e,t,n){return n=n||0,0!==e||0!==t||0!==n?this._t(1,0,0,0,0,1,0,0,0,0,1,0,e,t,n,1):this}function g(e,t,n,r,i,a,o,s,l,u,c,d,p,h,f,m){var g=this.props;if(1===e&&0===t&&0===n&&0===r&&0===i&&1===a&&0===o&&0===s&&0===l&&0===u&&1===c&&0===d)return g[12]=g[12]*e+g[15]*p,g[13]=g[13]*a+g[15]*h,g[14]=g[14]*c+g[15]*f,g[15]*=m,this._identityCalculated=!1,this;var y=g[0],v=g[1],b=g[2],x=g[3],w=g[4],E=g[5],k=g[6],S=g[7],D=g[8],j=g[9],C=g[10],R=g[11],P=g[12],$=g[13],T=g[14],_=g[15];return g[0]=y*e+v*i+b*l+x*p,g[1]=y*t+v*a+b*u+x*h,g[2]=y*n+v*o+b*c+x*f,g[3]=y*r+v*s+b*d+x*m,g[4]=w*e+E*i+k*l+S*p,g[5]=w*t+E*a+k*u+S*h,g[6]=w*n+E*o+k*c+S*f,g[7]=w*r+E*s+k*d+S*m,g[8]=D*e+j*i+C*l+R*p,g[9]=D*t+j*a+C*u+R*h,g[10]=D*n+j*o+C*c+R*f,g[11]=D*r+j*s+C*d+R*m,g[12]=P*e+$*i+T*l+_*p,g[13]=P*t+$*a+T*u+_*h,g[14]=P*n+$*o+T*c+_*f,g[15]=P*r+$*s+T*d+_*m,this._identityCalculated=!1,this}function y(){return this._identityCalculated||(this._identity=!(1!==this.props[0]||0!==this.props[1]||0!==this.props[2]||0!==this.props[3]||0!==this.props[4]||1!==this.props[5]||0!==this.props[6]||0!==this.props[7]||0!==this.props[8]||0!==this.props[9]||1!==this.props[10]||0!==this.props[11]||0!==this.props[12]||0!==this.props[13]||0!==this.props[14]||1!==this.props[15]),this._identityCalculated=!0),this._identity}function v(e){for(var t=0;t<16;){if(e.props[t]!==this.props[t])return!1;t+=1}return!0}function b(e){var t;for(t=0;t<16;t+=1)e.props[t]=this.props[t];return e}function x(e){var t;for(t=0;t<16;t+=1)this.props[t]=e[t]}function w(e,t,n){return{x:e*this.props[0]+t*this.props[4]+n*this.props[8]+this.props[12],y:e*this.props[1]+t*this.props[5]+n*this.props[9]+this.props[13],z:e*this.props[2]+t*this.props[6]+n*this.props[10]+this.props[14]}}function E(e,t,n){return e*this.props[0]+t*this.props[4]+n*this.props[8]+this.props[12]}function k(e,t,n){return e*this.props[1]+t*this.props[5]+n*this.props[9]+this.props[13]}function S(e,t,n){return e*this.props[2]+t*this.props[6]+n*this.props[10]+this.props[14]}function D(){var e=this.props[0]*this.props[5]-this.props[1]*this.props[4],t=this.props[5]/e,n=-this.props[1]/e,r=-this.props[4]/e,i=this.props[0]/e,a=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/e,o=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/e,s=new we;return s.props[0]=t,s.props[1]=n,s.props[4]=r,s.props[5]=i,s.props[12]=a,s.props[13]=o,s}function j(e){return this.getInverseMatrix().applyToPointArray(e[0],e[1],e[2]||0)}function C(e){var t,n=e.length,r=[];for(t=0;t<n;t+=1)r[t]=j(e[t]);return r}function R(e,t,n){var r=h("float32",6);if(this.isIdentity())r[0]=e[0],r[1]=e[1],r[2]=t[0],r[3]=t[1],r[4]=n[0],r[5]=n[1];else{var i=this.props[0],a=this.props[1],o=this.props[4],s=this.props[5],l=this.props[12],u=this.props[13];r[0]=e[0]*i+e[1]*o+l,r[1]=e[0]*a+e[1]*s+u,r[2]=t[0]*i+t[1]*o+l,r[3]=t[0]*a+t[1]*s+u,r[4]=n[0]*i+n[1]*o+l,r[5]=n[0]*a+n[1]*s+u}return r}function P(e,t,n){return this.isIdentity()?[e,t,n]:[e*this.props[0]+t*this.props[4]+n*this.props[8]+this.props[12],e*this.props[1]+t*this.props[5]+n*this.props[9]+this.props[13],e*this.props[2]+t*this.props[6]+n*this.props[10]+this.props[14]]}function $(e,t){if(this.isIdentity())return e+","+t;var n=this.props;return Math.round(100*(e*n[0]+t*n[4]+n[12]))/100+","+Math.round(100*(e*n[1]+t*n[5]+n[13]))/100}function T(){for(var e=0,t=this.props,n="matrix3d(",i=1e4;e<16;)n+=r(t[e]*i)/i,n+=15===e?")":",",e+=1;return n}function _(e){var t=1e4;return e<1e-6&&e>0||e>-1e-6&&e<0?r(e*t)/t:e}function M(){var e=this.props;return"matrix("+_(e[0])+","+_(e[1])+","+_(e[4])+","+_(e[5])+","+_(e[12])+","+_(e[13])+")"}return function(){this.reset=i,this.rotate=a,this.rotateX=o,this.rotateY=s,this.rotateZ=l,this.skew=c,this.skewFromAxis=d,this.shear=u,this.scale=p,this.setTransform=f,this.translate=m,this.transform=g,this.applyToPoint=w,this.applyToX=E,this.applyToY=k,this.applyToZ=S,this.applyToPointArray=P,this.applyToTriplePoints=R,this.applyToPointStringified=$,this.toCSS=T,this.to2dCSS=M,this.clone=b,this.cloneFromProps=x,this.equals=v,this.inversePoints=C,this.inversePoint=j,this.getInverseMatrix=D,this._t=this.transform,this.isIdentity=y,this._identity=!0,this._identityCalculated=!1,this.props=h("float32",16),this.reset()}}();function Ee(e){return(Ee="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var ke={};function Se(e){s(e)}function De(){ae.searchAnimations()}function je(e){N(e)}function Ce(e){K(e)}function Re(e){return ae.loadAnimation(e)}function Pe(e){if("string"==typeof e)switch(e){case"high":W(200);break;default:case"medium":W(50);break;case"low":W(10)}else!isNaN(e)&&e>1&&W(e)}function $e(){return"undefined"!=typeof navigator}function Te(e,t){"expressions"===e&&B(t)}function _e(e){switch(e){case"propertyFactory":return he;case"shapePropertyFactory":return xe;case"matrix":return we;default:return null}}function Me(){"complete"===document.readyState&&(clearInterval(Le),De())}function Ae(e){for(var t=Ie.split("&"),n=0;n<t.length;n+=1){var r=t[n].split("=");if(decodeURIComponent(r[0])==e)return decodeURIComponent(r[1])}return null}ke.play=ae.play,ke.pause=ae.pause,ke.setLocationHref=Se,ke.togglePause=ae.togglePause,ke.setSpeed=ae.setSpeed,ke.setDirection=ae.setDirection,ke.stop=ae.stop,ke.searchAnimations=De,ke.registerAnimation=ae.registerAnimation,ke.loadAnimation=Re,ke.setSubframeRendering=je,ke.resize=ae.resize,ke.goToAndStop=ae.goToAndStop,ke.destroy=ae.destroy,ke.setQuality=Pe,ke.inBrowser=$e,ke.installPlugin=Te,ke.freeze=ae.freeze,ke.unfreeze=ae.unfreeze,ke.setVolume=ae.setVolume,ke.mute=ae.mute,ke.unmute=ae.unmute,ke.getRegisteredAnimations=ae.getRegisteredAnimations,ke.useWebWorker=a,ke.setIDPrefix=Ce,ke.__getFactory=_e,ke.version="5.10.2";var Ie="",Oe=document.getElementsByTagName("script"),Fe=Oe[Oe.length-1]||{src:""};Ie=Fe.src?Fe.src.replace(/^[^\?]+\??/,""):"",Ae("renderer");var Le=setInterval(Me,100);try{"object"!==Ee(t)&&(window.bodymovin=ke)}catch(On){}var Ve=function(){var e={},t={};function n(e,n){t[e]||(t[e]=n)}function r(e,n,r){return new t[e](n,r)}return e.registerModifier=n,e.getModifier=r,e}();function Ne(){}function ze(){}function Be(){}Ne.prototype.initModifierProperties=function(){},Ne.prototype.addShapeToModifier=function(){},Ne.prototype.addShape=function(e){if(!this.closed){e.sh.container.addDynamicProperty(e.sh);var t={shape:e.sh,data:e,localShapeCollection:be.newShapeCollection()};this.shapes.push(t),this.addShapeToModifier(t),this._isAnimated&&e.setAsAnimated()}},Ne.prototype.init=function(e,t){this.shapes=[],this.elem=e,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t),this.frameId=i,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},Ne.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},c([fe],Ne),c([Ne],ze),ze.prototype.initModifierProperties=function(e,t){this.s=he.getProp(e,t.s,0,.01,this),this.e=he.getProp(e,t.e,0,.01,this),this.o=he.getProp(e,t.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=t.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},ze.prototype.addShapeToModifier=function(e){e.pathsData=[]},ze.prototype.calculateShapeEdges=function(e,t,n,r,i){var a=[];t<=1?a.push({s:e,e:t}):e>=1?a.push({s:e-1,e:t-1}):(a.push({s:e,e:1}),a.push({s:0,e:t-1}));var o,s,l=[],u=a.length;for(o=0;o<u;o+=1){var c,d;(s=a[o]).e*i<r||s.s*i>r+n||(c=s.s*i<=r?0:(s.s*i-r)/n,d=s.e*i>=r+n?1:(s.e*i-r)/n,l.push([c,d]))}return l.length||l.push([0,0]),l},ze.prototype.releasePathsData=function(e){var t,n=e.length;for(t=0;t<n;t+=1)ce.release(e[t]);return e.length=0,e},ze.prototype.processShapes=function(e){var t,n,r,i;if(this._mdf||e){var a=this.o.v%360/360;if(a<0&&(a+=1),(t=this.s.v>1?1+a:this.s.v<0?0+a:this.s.v+a)>(n=this.e.v>1?1+a:this.e.v<0?0+a:this.e.v+a)){var o=t;t=n,n=o}t=1e-4*Math.round(1e4*t),n=1e-4*Math.round(1e4*n),this.sValue=t,this.eValue=n}else t=this.sValue,n=this.eValue;var s,l,u,c,d,p=this.shapes.length,h=0;if(n===t)for(i=0;i<p;i+=1)this.shapes[i].localShapeCollection.releaseShapes(),this.shapes[i].shape._mdf=!0,this.shapes[i].shape.paths=this.shapes[i].localShapeCollection,this._mdf&&(this.shapes[i].pathsData.length=0);else if(1===n&&0===t||0===n&&1===t){if(this._mdf)for(i=0;i<p;i+=1)this.shapes[i].pathsData.length=0,this.shapes[i].shape._mdf=!0}else{var f,m,g=[];for(i=0;i<p;i+=1)if((f=this.shapes[i]).shape._mdf||this._mdf||e||2===this.m){if(l=(r=f.shape.paths)._length,d=0,!f.shape._mdf&&f.pathsData.length)d=f.totalShapeLength;else{for(u=this.releasePathsData(f.pathsData),s=0;s<l;s+=1)c=pe.getSegmentsLength(r.shapes[s]),u.push(c),d+=c.totalLength;f.totalShapeLength=d,f.pathsData=u}h+=d,f.shape._mdf=!0}else f.shape.paths=f.localShapeCollection;var y,v=t,b=n,x=0;for(i=p-1;i>=0;i-=1)if((f=this.shapes[i]).shape._mdf){for((m=f.localShapeCollection).releaseShapes(),2===this.m&&p>1?(y=this.calculateShapeEdges(t,n,f.totalShapeLength,x,h),x+=f.totalShapeLength):y=[[v,b]],l=y.length,s=0;s<l;s+=1){v=y[s][0],b=y[s][1],g.length=0,b<=1?g.push({s:f.totalShapeLength*v,e:f.totalShapeLength*b}):v>=1?g.push({s:f.totalShapeLength*(v-1),e:f.totalShapeLength*(b-1)}):(g.push({s:f.totalShapeLength*v,e:f.totalShapeLength}),g.push({s:0,e:f.totalShapeLength*(b-1)}));var w=this.addShapes(f,g[0]);if(g[0].s!==g[0].e){if(g.length>1)if(f.shape.paths.shapes[f.shape.paths._length-1].c){var E=w.pop();this.addPaths(w,m),w=this.addShapes(f,g[1],E)}else this.addPaths(w,m),w=this.addShapes(f,g[1]);this.addPaths(w,m)}}f.shape.paths=m}}},ze.prototype.addPaths=function(e,t){var n,r=e.length;for(n=0;n<r;n+=1)t.addShape(e[n])},ze.prototype.addSegment=function(e,t,n,r,i,a,o){i.setXYAt(t[0],t[1],"o",a),i.setXYAt(n[0],n[1],"i",a+1),o&&i.setXYAt(e[0],e[1],"v",a),i.setXYAt(r[0],r[1],"v",a+1)},ze.prototype.addSegmentFromArray=function(e,t,n,r){t.setXYAt(e[1],e[5],"o",n),t.setXYAt(e[2],e[6],"i",n+1),r&&t.setXYAt(e[0],e[4],"v",n),t.setXYAt(e[3],e[7],"v",n+1)},ze.prototype.addShapes=function(e,t,n){var r,i,a,o,s,l,u,c,d=e.pathsData,p=e.shape.paths.shapes,h=e.shape.paths._length,f=0,m=[],g=!0;for(n?(s=n._length,c=n._length):(n=ye.newElement(),s=0,c=0),m.push(n),r=0;r<h;r+=1){for(l=d[r].lengths,n.c=p[r].c,a=p[r].c?l.length:l.length+1,i=1;i<a;i+=1)if(f+(o=l[i-1]).addedLength<t.s)f+=o.addedLength,n.c=!1;else{if(f>t.e){n.c=!1;break}t.s<=f&&t.e>=f+o.addedLength?(this.addSegment(p[r].v[i-1],p[r].o[i-1],p[r].i[i],p[r].v[i],n,s,g),g=!1):(u=pe.getNewSegment(p[r].v[i-1],p[r].v[i],p[r].o[i-1],p[r].i[i],(t.s-f)/o.addedLength,(t.e-f)/o.addedLength,l[i-1]),this.addSegmentFromArray(u,n,s,g),g=!1,n.c=!1),f+=o.addedLength,s+=1}if(p[r].c&&l.length){if(o=l[i-1],f<=t.e){var y=l[i-1].addedLength;t.s<=f&&t.e>=f+y?(this.addSegment(p[r].v[i-1],p[r].o[i-1],p[r].i[0],p[r].v[0],n,s,g),g=!1):(u=pe.getNewSegment(p[r].v[i-1],p[r].v[0],p[r].o[i-1],p[r].i[0],(t.s-f)/y,(t.e-f)/y,l[i-1]),this.addSegmentFromArray(u,n,s,g),g=!1,n.c=!1)}else n.c=!1;f+=o.addedLength,s+=1}if(n._length&&(n.setXYAt(n.v[c][0],n.v[c][1],"i",c),n.setXYAt(n.v[n._length-1][0],n.v[n._length-1][1],"o",n._length-1)),f>t.e)break;r<h-1&&(n=ye.newElement(),g=!0,m.push(n),s=0)}return m},c([Ne],Be),Be.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amount=he.getProp(e,t.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},Be.prototype.processPath=function(e,t){var n=t/100,r=[0,0],i=e._length,a=0;for(a=0;a<i;a+=1)r[0]+=e.v[a][0],r[1]+=e.v[a][1];r[0]/=i,r[1]/=i;var o,s,l,u,c,d,p=ye.newElement();for(p.c=e.c,a=0;a<i;a+=1)o=e.v[a][0]+(r[0]-e.v[a][0])*n,s=e.v[a][1]+(r[1]-e.v[a][1])*n,l=e.o[a][0]+(r[0]-e.o[a][0])*-n,u=e.o[a][1]+(r[1]-e.o[a][1])*-n,c=e.i[a][0]+(r[0]-e.i[a][0])*-n,d=e.i[a][1]+(r[1]-e.i[a][1])*-n,p.setTripleAt(o,s,l,u,c,d,a);return p},Be.prototype.processShapes=function(e){var t,n,r,i,a,o,s=this.shapes.length,l=this.amount.v;if(0!==l)for(n=0;n<s;n+=1){if(o=(a=this.shapes[n]).localShapeCollection,a.shape._mdf||this._mdf||e)for(o.releaseShapes(),a.shape._mdf=!0,t=a.shape.paths.shapes,i=a.shape.paths._length,r=0;r<i;r+=1)o.addShape(this.processPath(t[r],l));a.shape.paths=a.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var Ue=function(){var e=[0,0];function t(e){var t=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||t,this.a&&e.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&e.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&e.skewFromAxis(-this.sk.v,this.sa.v),this.r?e.rotate(-this.r.v):e.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?e.translate(this.px.v,this.py.v,-this.pz.v):e.translate(this.px.v,this.py.v,0):e.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function n(t){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||t){var n;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 r,i;if(n=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(r=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/n,0),i=this.p.getValueAtTime(this.p.keyframes[0].t/n,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(r=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/n,0),i=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/n,0)):(r=this.p.pv,i=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/n,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){r=[],i=[];var a=this.px,o=this.py;a._caching.lastFrame+a.offsetTime<=a.keyframes[0].t?(r[0]=a.getValueAtTime((a.keyframes[0].t+.01)/n,0),r[1]=o.getValueAtTime((o.keyframes[0].t+.01)/n,0),i[0]=a.getValueAtTime(a.keyframes[0].t/n,0),i[1]=o.getValueAtTime(o.keyframes[0].t/n,0)):a._caching.lastFrame+a.offsetTime>=a.keyframes[a.keyframes.length-1].t?(r[0]=a.getValueAtTime(a.keyframes[a.keyframes.length-1].t/n,0),r[1]=o.getValueAtTime(o.keyframes[o.keyframes.length-1].t/n,0),i[0]=a.getValueAtTime((a.keyframes[a.keyframes.length-1].t-.01)/n,0),i[1]=o.getValueAtTime((o.keyframes[o.keyframes.length-1].t-.01)/n,0)):(r=[a.pv,o.pv],i[0]=a.getValueAtTime((a._caching.lastFrame+a.offsetTime-.01)/n,a.offsetTime),i[1]=o.getValueAtTime((o._caching.lastFrame+o.offsetTime-.01)/n,o.offsetTime))}else r=i=e;this.v.rotate(-Math.atan2(r[1]-i[1],r[0]-i[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 r(){if(!this.a.k&&(this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1,!this.s.effectsSequence.length)){if(this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2,this.sk){if(this.sk.effectsSequence.length||this.sa.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3}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 i(){}function a(e){this._addDynamicProperty(e),this.elem.addDynamicProperty(e),this._isDirty=!0}function o(e,t,n){if(this.elem=e,this.frameId=-1,this.propType="transform",this.data=t,this.v=new we,this.pre=new we,this.appliedTransformations=0,this.initDynamicPropertyContainer(n||e),t.p&&t.p.s?(this.px=he.getProp(e,t.p.x,0,0,this),this.py=he.getProp(e,t.p.y,0,0,this),t.p.z&&(this.pz=he.getProp(e,t.p.z,0,0,this))):this.p=he.getProp(e,t.p||{k:[0,0,0]},1,0,this),t.rx){if(this.rx=he.getProp(e,t.rx,0,S,this),this.ry=he.getProp(e,t.ry,0,S,this),this.rz=he.getProp(e,t.rz,0,S,this),t.or.k[0].ti){var r,i=t.or.k.length;for(r=0;r<i;r+=1)t.or.k[r].to=null,t.or.k[r].ti=null}this.or=he.getProp(e,t.or,1,S,this),this.or.sh=!0}else this.r=he.getProp(e,t.r||{k:0},0,S,this);t.sk&&(this.sk=he.getProp(e,t.sk,0,S,this),this.sa=he.getProp(e,t.sa,0,S,this)),this.a=he.getProp(e,t.a||{k:[0,0,0]},1,0,this),this.s=he.getProp(e,t.s||{k:[100,100,100]},1,.01,this),t.o?this.o=he.getProp(e,t.o,0,.01,e):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}function s(e,t,n){return new o(e,t,n)}return o.prototype={applyToMatrix:t,getValue:n,precalculateMatrix:r,autoOrient:i},c([fe],o),o.prototype.addDynamicProperty=a,o.prototype._addDynamicProperty=fe.prototype.addDynamicProperty,{getTransformProperty:s}}();function We(){}function qe(){}function Ke(e,t){return 1e5*Math.abs(e-t)<=Math.min(Math.abs(e),Math.abs(t))}function He(e){return Math.abs(e)<=1e-5}function Ze(e,t,n){return e*(1-n)+t*n}function Ge(e,t,n){return[Ze(e[0],t[0],n),Ze(e[1],t[1],n)]}function Ye(e,t,n){if(0===e)return[];var r=t*t-4*e*n;if(r<0)return[];var i=-t/(2*e);if(0===r)return[i];var a=Math.sqrt(r)/(2*e);return[i-a,i+a]}function Je(e,t,n,r){return[3*t-e-3*n+r,3*e-6*t+3*n,-3*e+3*t,e]}function Xe(e){return new Qe(e,e,e,e,!1)}function Qe(e,t,n,r,i){i&&ut(e,t)&&(t=Ge(e,r,1/3)),i&&ut(n,r)&&(n=Ge(e,r,2/3));var a=Je(e[0],t[0],n[0],r[0]),o=Je(e[1],t[1],n[1],r[1]);this.a=[a[0],o[0]],this.b=[a[1],o[1]],this.c=[a[2],o[2]],this.d=[a[3],o[3]],this.points=[e,t,n,r]}function et(e,t){var n=e.points[0][t],r=e.points[e.points.length-1][t];if(n>r){var i=r;r=n,n=i}for(var a=Ye(3*e.a[t],2*e.b[t],e.c[t]),o=0;o<a.length;o+=1)if(a[o]>0&&a[o]<1){var s=e.point(a[o])[t];s<n?n=s:s>r&&(r=s)}return{min:n,max:r}}function tt(e,t,n){var r=e.boundingBox();return{cx:r.cx,cy:r.cy,width:r.width,height:r.height,bez:e,t:(t+n)/2,t1:t,t2:n}}function nt(e){var t=e.bez.split(.5);return[tt(t[0],e.t1,e.t),tt(t[1],e.t,e.t2)]}function rt(e,t){return 2*Math.abs(e.cx-t.cx)<e.width+t.width&&2*Math.abs(e.cy-t.cy)<e.height+t.height}function it(e,t,n,r,i,a){if(rt(e,t))if(n>=a||e.width<=r&&e.height<=r&&t.width<=r&&t.height<=r)i.push([e.t,t.t]);else{var o=nt(e),s=nt(t);it(o[0],s[0],n+1,r,i,a),it(o[0],s[1],n+1,r,i,a),it(o[1],s[0],n+1,r,i,a),it(o[1],s[1],n+1,r,i,a)}}function at(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function ot(e,t,n,r){var i=[e[0],e[1],1],a=[t[0],t[1],1],o=[n[0],n[1],1],s=[r[0],r[1],1],l=at(at(i,a),at(o,s));return He(l[2])?null:[l[0]/l[2],l[1]/l[2]]}function st(e,t,n){return[e[0]+Math.cos(t)*n,e[1]-Math.sin(t)*n]}function lt(e,t){return Math.hypot(e[0]-t[0],e[1]-t[1])}function ut(e,t){return Ke(e[0],t[0])&&Ke(e[1],t[1])}function ct(){}function dt(e,t,n,r,i,a,o){var s=n-Math.PI/2,l=n+Math.PI/2,u=t[0]+Math.cos(n)*r*i,c=t[1]-Math.sin(n)*r*i;e.setTripleAt(u,c,u+Math.cos(s)*a,c-Math.sin(s)*a,u+Math.cos(l)*o,c-Math.sin(l)*o,e.length())}function pt(e,t){var n=[t[0]-e[0],t[1]-e[1]],r=.5*-Math.PI;return[Math.cos(r)*n[0]-Math.sin(r)*n[1],Math.sin(r)*n[0]+Math.cos(r)*n[1]]}function ht(e,t){var n=0===t?e.length()-1:t-1,r=(t+1)%e.length(),i=pt(e.v[n],e.v[r]);return Math.atan2(0,1)-Math.atan2(i[1],i[0])}function ft(e,t,n,r,i,a,o){var s=ht(t,n),l=t.v[n%t._length],u=t.v[0===n?t._length-1:n-1],c=t.v[(n+1)%t._length],d=2===a?Math.sqrt(Math.pow(l[0]-u[0],2)+Math.pow(l[1]-u[1],2)):0,p=2===a?Math.sqrt(Math.pow(l[0]-c[0],2)+Math.pow(l[1]-c[1],2)):0;dt(e,t.v[n%t._length],s,o,r,p/(2*(i+1)),d/(2*(i+1)))}function mt(e,t,n,r,i,a){for(var o=0;o<r;o+=1){var s=(o+1)/(r+1),l=2===i?Math.sqrt(Math.pow(t.points[3][0]-t.points[0][0],2)+Math.pow(t.points[3][1]-t.points[0][1],2)):0,u=t.normalAngle(s);dt(e,t.point(s),u,a,n,l/(2*(r+1)),l/(2*(r+1))),a=-a}return a}function gt(e,t,n){var r=Math.atan2(t[0]-e[0],t[1]-e[1]);return[st(e,r,n),st(t,r,n)]}function yt(e,t){var n,r,i,a,o,s,l;n=(l=gt(e.points[0],e.points[1],t))[0],r=l[1],i=(l=gt(e.points[1],e.points[2],t))[0],a=l[1],o=(l=gt(e.points[2],e.points[3],t))[0],s=l[1];var u=ot(n,r,i,a);null===u&&(u=r);var c=ot(o,s,i,a);return null===c&&(c=o),new Qe(n,u,c,s)}function vt(e,t,n,r,i){var a=t.points[3],o=n.points[0];if(3===r)return a;if(ut(a,o))return a;if(2===r){var s=-t.tangentAngle(1),l=-n.tangentAngle(0)+Math.PI,u=ot(a,st(a,s+Math.PI/2,100),o,st(o,s+Math.PI/2,100)),c=u?lt(u,a):lt(a,o)/2,d=st(a,s,2*c*D);return e.setXYAt(d[0],d[1],"o",e.length()-1),d=st(o,l,2*c*D),e.setTripleAt(o[0],o[1],o[0],o[1],d[0],d[1],e.length()),o}var p=ot(ut(a,t.points[2])?t.points[0]:t.points[2],a,o,ut(o,n.points[1])?n.points[3]:n.points[1]);return p&<(p,a)<i?(e.setTripleAt(p[0],p[1],p[0],p[1],p[0],p[1],e.length()),p):a}function bt(e,t){var n=e.intersections(t);return n.length&&Ke(n[0][0],1)&&n.shift(),n.length?n[0]:null}function xt(e,t){var n=e.slice(),r=t.slice(),i=bt(e[e.length-1],t[0]);return i&&(n[e.length-1]=e[e.length-1].split(i[0])[0],r[0]=t[0].split(i[1])[1]),e.length>1&&t.length>1&&(i=bt(e[0],t[t.length-1]))?[[e[0].split(i[0])[0]],[t[t.length-1].split(i[1])[1]]]:[n,r]}function wt(e){for(var t,n=1;n<e.length;n+=1)t=xt(e[n-1],e[n]),e[n-1]=t[0],e[n]=t[1];return e.length>1&&(t=xt(e[e.length-1],e[0]),e[e.length-1]=t[0],e[0]=t[1]),e}function Et(e,t){var n,r,i,a,o=e.inflectionPoints();if(0===o.length)return[yt(e,t)];if(1===o.length||Ke(o[1],1))return n=(i=e.split(o[0]))[0],r=i[1],[yt(n,t),yt(r,t)];n=(i=e.split(o[0]))[0];var s=(o[1]-o[0])/(1-o[0]);return a=(i=i[1].split(s))[0],r=i[1],[yt(n,t),yt(a,t),yt(r,t)]}function kt(){}function St(e){for(var t=e.fStyle?e.fStyle.split(" "):[],n="normal",r="normal",i=t.length,a=0;a<i;a+=1)switch(t[a].toLowerCase()){case"italic":r="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"}return{style:r,weight:e.fWeight||n}}c([Ne],We),We.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.c=he.getProp(e,t.c,0,null,this),this.o=he.getProp(e,t.o,0,null,this),this.tr=Ue.getTransformProperty(e,t.tr,this),this.so=he.getProp(e,t.tr.so,0,.01,this),this.eo=he.getProp(e,t.tr.eo,0,.01,this),this.data=t,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new we,this.rMatrix=new we,this.sMatrix=new we,this.tMatrix=new we,this.matrix=new we},We.prototype.applyTransforms=function(e,t,n,r,i,a){var o=a?-1:1,s=r.s.v[0]+(1-r.s.v[0])*(1-i),l=r.s.v[1]+(1-r.s.v[1])*(1-i);e.translate(r.p.v[0]*o*i,r.p.v[1]*o*i,r.p.v[2]),t.translate(-r.a.v[0],-r.a.v[1],r.a.v[2]),t.rotate(-r.r.v*o*i),t.translate(r.a.v[0],r.a.v[1],r.a.v[2]),n.translate(-r.a.v[0],-r.a.v[1],r.a.v[2]),n.scale(a?1/s:s,a?1/l:l),n.translate(r.a.v[0],r.a.v[1],r.a.v[2])},We.prototype.init=function(e,t,n,r){for(this.elem=e,this.arr=t,this.pos=n,this.elemsData=r,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t[n]);n>0;)n-=1,this._elements.unshift(t[n]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},We.prototype.resetElements=function(e){var t,n=e.length;for(t=0;t<n;t+=1)e[t]._processed=!1,"gr"===e[t].ty&&this.resetElements(e[t].it)},We.prototype.cloneElements=function(e){var t=JSON.parse(JSON.stringify(e));return this.resetElements(t),t},We.prototype.changeGroupRender=function(e,t){var n,r=e.length;for(n=0;n<r;n+=1)e[n]._render=t,"gr"===e[n].ty&&this.changeGroupRender(e[n].it,t)},We.prototype.processShapes=function(e){var t,n,r,i,a,o=!1;if(this._mdf||e){var s,l=Math.ceil(this.c.v);if(this._groups.length<l){for(;this._groups.length<l;){var u={it:this.cloneElements(this._elements),ty:"gr"};u.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,u),this._groups.splice(0,0,u),this._currentCopies+=1}this.elem.reloadShapes(),o=!0}for(a=0,r=0;r<=this._groups.length-1;r+=1){if(s=a<l,this._groups[r]._render=s,this.changeGroupRender(this._groups[r].it,s),!s){var c=this.elemsData[r].it,d=c[c.length-1];0!==d.transform.op.v?(d.transform.op._mdf=!0,d.transform.op.v=0):d.transform.op._mdf=!1}a+=1}this._currentCopies=l;var p=this.o.v,h=p%1,f=p>0?Math.floor(p):Math.ceil(p),m=this.pMatrix.props,g=this.rMatrix.props,y=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var v,b,x=0;if(p>0){for(;x<f;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),x+=1;h&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,h,!1),x+=h)}else if(p<0){for(;x>f;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),x-=1;h&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-h,!0),x-=h)}for(r=1===this.data.m?0:this._currentCopies-1,i=1===this.data.m?1:-1,a=this._currentCopies;a;){if(b=(n=(t=this.elemsData[r].it)[t.length-1].transform.mProps.v.props).length,t[t.length-1].transform.mProps._mdf=!0,t[t.length-1].transform.op._mdf=!0,t[t.length-1].transform.op.v=1===this._currentCopies?this.so.v:this.so.v+(this.eo.v-this.so.v)*(r/(this._currentCopies-1)),0!==x){for((0!==r&&1===i||r!==this._currentCopies-1&&-1===i)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(g[0],g[1],g[2],g[3],g[4],g[5],g[6],g[7],g[8],g[9],g[10],g[11],g[12],g[13],g[14],g[15]),this.matrix.transform(y[0],y[1],y[2],y[3],y[4],y[5],y[6],y[7],y[8],y[9],y[10],y[11],y[12],y[13],y[14],y[15]),this.matrix.transform(m[0],m[1],m[2],m[3],m[4],m[5],m[6],m[7],m[8],m[9],m[10],m[11],m[12],m[13],m[14],m[15]),v=0;v<b;v+=1)n[v]=this.matrix.props[v];this.matrix.reset()}else for(this.matrix.reset(),v=0;v<b;v+=1)n[v]=this.matrix.props[v];x+=1,a-=1,r+=i}}else for(a=this._currentCopies,r=0,i=1;a;)n=(t=this.elemsData[r].it)[t.length-1].transform.mProps.v.props,t[t.length-1].transform.mProps._mdf=!1,t[t.length-1].transform.op._mdf=!1,a-=1,r+=i;return o},We.prototype.addShape=function(){},c([Ne],qe),qe.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.rd=he.getProp(e,t.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},qe.prototype.processPath=function(e,t){var n,r=ye.newElement();r.c=e.c;var i,a,o,s,l,u,c,d,p,h,f,m,g=e._length,y=0;for(n=0;n<g;n+=1)i=e.v[n],o=e.o[n],a=e.i[n],i[0]===o[0]&&i[1]===o[1]&&i[0]===a[0]&&i[1]===a[1]?0!==n&&n!==g-1||e.c?(s=0===n?e.v[g-1]:e.v[n-1],u=(l=Math.sqrt(Math.pow(i[0]-s[0],2)+Math.pow(i[1]-s[1],2)))?Math.min(l/2,t)/l:0,c=f=i[0]+(s[0]-i[0])*u,d=m=i[1]-(i[1]-s[1])*u,p=c-(c-i[0])*D,h=d-(d-i[1])*D,r.setTripleAt(c,d,p,h,f,m,y),y+=1,s=n===g-1?e.v[0]:e.v[n+1],u=(l=Math.sqrt(Math.pow(i[0]-s[0],2)+Math.pow(i[1]-s[1],2)))?Math.min(l/2,t)/l:0,c=p=i[0]+(s[0]-i[0])*u,d=h=i[1]+(s[1]-i[1])*u,f=c-(c-i[0])*D,m=d-(d-i[1])*D,r.setTripleAt(c,d,p,h,f,m,y),y+=1):(r.setTripleAt(i[0],i[1],o[0],o[1],a[0],a[1],y),y+=1):(r.setTripleAt(e.v[n][0],e.v[n][1],e.o[n][0],e.o[n][1],e.i[n][0],e.i[n][1],y),y+=1);return r},qe.prototype.processShapes=function(e){var t,n,r,i,a,o,s=this.shapes.length,l=this.rd.v;if(0!==l)for(n=0;n<s;n+=1){if(o=(a=this.shapes[n]).localShapeCollection,a.shape._mdf||this._mdf||e)for(o.releaseShapes(),a.shape._mdf=!0,t=a.shape.paths.shapes,i=a.shape.paths._length,r=0;r<i;r+=1)o.addShape(this.processPath(t[r],l));a.shape.paths=a.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},Qe.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]]},Qe.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]]},Qe.prototype.tangentAngle=function(e){var t=this.derivative(e);return Math.atan2(t[1],t[0])},Qe.prototype.normalAngle=function(e){var t=this.derivative(e);return Math.atan2(t[0],t[1])},Qe.prototype.inflectionPoints=function(){var e=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(He(e))return[];var t=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/e,n=t*t-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/e;if(n<0)return[];var r=Math.sqrt(n);return He(r)?r>0&&r<1?[t]:[]:[t-r,t+r].filter((function(e){return e>0&&e<1}))},Qe.prototype.split=function(e){if(e<=0)return[Xe(this.points[0]),this];if(e>=1)return[this,Xe(this.points[this.points.length-1])];var t=Ge(this.points[0],this.points[1],e),n=Ge(this.points[1],this.points[2],e),r=Ge(this.points[2],this.points[3],e),i=Ge(t,n,e),a=Ge(n,r,e),o=Ge(i,a,e);return[new Qe(this.points[0],t,i,o,!0),new Qe(o,a,r,this.points[3],!0)]},Qe.prototype.bounds=function(){return{x:et(this,0),y:et(this,1)}},Qe.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}},Qe.prototype.intersections=function(e,t,n){void 0===t&&(t=2),void 0===n&&(n=7);var r=[];return it(tt(this,0,1),tt(e,0,1),0,t,r,n),r},Qe.shapeSegment=function(e,t){var n=(t+1)%e.length();return new Qe(e.v[t],e.o[t],e.i[n],e.v[n],!0)},Qe.shapeSegmentInverted=function(e,t){var n=(t+1)%e.length();return new Qe(e.v[n],e.i[n],e.o[t],e.v[t],!0)},c([Ne],ct),ct.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amplitude=he.getProp(e,t.s,0,null,this),this.frequency=he.getProp(e,t.r,0,null,this),this.pointsType=he.getProp(e,t.pt,0,null,this),this._isAnimated=0!==this.amplitude.effectsSequence.length||0!==this.frequency.effectsSequence.length||0!==this.pointsType.effectsSequence.length},ct.prototype.processPath=function(e,t,n,r){var i=e._length,a=ye.newElement();if(a.c=e.c,e.c||(i-=1),0===i)return a;var o=-1,s=Qe.shapeSegment(e,0);ft(a,e,0,t,n,r,o);for(var l=0;l<i;l+=1)o=mt(a,s,t,n,r,-o),s=l!==i-1||e.c?Qe.shapeSegment(e,(l+1)%i):null,ft(a,e,l+1,t,n,r,o);return a},ct.prototype.processShapes=function(e){var t,n,r,i,a,o,s=this.shapes.length,l=this.amplitude.v,u=Math.max(0,Math.round(this.frequency.v)),c=this.pointsType.v;if(0!==l)for(n=0;n<s;n+=1){if(o=(a=this.shapes[n]).localShapeCollection,a.shape._mdf||this._mdf||e)for(o.releaseShapes(),a.shape._mdf=!0,t=a.shape.paths.shapes,i=a.shape.paths._length,r=0;r<i;r+=1)o.addShape(this.processPath(t[r],l,u,c));a.shape.paths=a.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},c([Ne],kt),kt.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amount=he.getProp(e,t.a,0,null,this),this.miterLimit=he.getProp(e,t.ml,0,null,this),this.lineJoin=t.lj,this._isAnimated=0!==this.amount.effectsSequence.length},kt.prototype.processPath=function(e,t,n,r){var i=ye.newElement();i.c=e.c;var a,o,s,l=e.length();e.c||(l-=1);var u=[];for(a=0;a<l;a+=1)s=Qe.shapeSegment(e,a),u.push(Et(s,t));if(!e.c)for(a=l-1;a>=0;a-=1)s=Qe.shapeSegmentInverted(e,a),u.push(Et(s,t));u=wt(u);var c=null,d=null;for(a=0;a<u.length;a+=1){var p=u[a];for(d&&(c=vt(i,d,p[0],n,r)),d=p[p.length-1],o=0;o<p.length;o+=1)s=p[o],c&&ut(s.points[0],c)?i.setXYAt(s.points[1][0],s.points[1][1],"o",i.length()-1):i.setTripleAt(s.points[0][0],s.points[0][1],s.points[1][0],s.points[1][1],s.points[0][0],s.points[0][1],i.length()),i.setTripleAt(s.points[3][0],s.points[3][1],s.points[3][0],s.points[3][1],s.points[2][0],s.points[2][1],i.length()),c=s.points[3]}return u.length&&vt(i,d,u[0][0],n,r),i},kt.prototype.processShapes=function(e){var t,n,r,i,a,o,s=this.shapes.length,l=this.amount.v,u=this.miterLimit.v,c=this.lineJoin;if(0!==l)for(n=0;n<s;n+=1){if(o=(a=this.shapes[n]).localShapeCollection,a.shape._mdf||this._mdf||e)for(o.releaseShapes(),a.shape._mdf=!0,t=a.shape.paths.shapes,i=a.shape.paths._length,r=0;r<i;r+=1)o.addShape(this.processPath(t[r],l,c,u));a.shape.paths=a.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var Dt=function(){var e=5e3,t={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 r=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"],i=[65039,8205];function a(e){var t,n=e.split(","),r=n.length,i=[];for(t=0;t<r;t+=1)"sans-serif"!==n[t]&&"monospace"!==n[t]&&i.push(n[t]);return i.join(",")}function o(e,t){var n=u("span");n.setAttribute("aria-hidden",!0),n.style.fontFamily=t;var r=u("span");r.innerText="giItT1WQy@!-/#",n.style.position="absolute",n.style.left="-10000px",n.style.top="-10000px",n.style.fontSize="300px",n.style.fontVariant="normal",n.style.fontStyle="normal",n.style.fontWeight="normal",n.style.letterSpacing="0",n.appendChild(r),document.body.appendChild(n);var i=r.offsetWidth;return r.style.fontFamily=a(e)+", "+t,{node:r,w:i,parent:n}}function s(){var t,n,r,i=this.fonts.length,a=i;for(t=0;t<i;t+=1)this.fonts[t].loaded?a-=1:"n"===this.fonts[t].fOrigin||0===this.fonts[t].origin?this.fonts[t].loaded=!0:(n=this.fonts[t].monoCase.node,r=this.fonts[t].monoCase.w,n.offsetWidth!==r?(a-=1,this.fonts[t].loaded=!0):(n=this.fonts[t].sansCase.node,r=this.fonts[t].sansCase.w,n.offsetWidth!==r&&(a-=1,this.fonts[t].loaded=!0)),this.fonts[t].loaded&&(this.fonts[t].sansCase.parent.parentNode.removeChild(this.fonts[t].sansCase.parent),this.fonts[t].monoCase.parent.parentNode.removeChild(this.fonts[t].monoCase.parent)));0!==a&&Date.now()-this.initTime<e?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function l(e,t){var n,r=document.body&&t?"svg":"canvas",i=St(e);if("svg"===r){var a=H("text");a.style.fontSize="100px",a.setAttribute("font-family",e.fFamily),a.setAttribute("font-style",i.style),a.setAttribute("font-weight",i.weight),a.textContent="1",e.fClass?(a.style.fontFamily="inherit",a.setAttribute("class",e.fClass)):a.style.fontFamily=e.fFamily,t.appendChild(a),n=a}else{var o=new OffscreenCanvas(500,500).getContext("2d");o.font=i.style+" "+i.weight+" 100px "+e.fFamily,n=o}function s(e){return"svg"===r?(n.textContent=e,n.getComputedTextLength()):n.measureText(e).width}return{measureText:s}}function c(e,t){if(e){if(this.chars)return this.isLoaded=!0,void(this.fonts=e.list);if(!document.body)return this.isLoaded=!0,e.list.forEach((function(e){e.helper=l(e),e.cache={}})),void(this.fonts=e.list);var n,r=e.list,i=r.length,a=i;for(n=0;n<i;n+=1){var s,c,d=!0;if(r[n].loaded=!1,r[n].monoCase=o(r[n].fFamily,"monospace"),r[n].sansCase=o(r[n].fFamily,"sans-serif"),r[n].fPath){if("p"===r[n].fOrigin||3===r[n].origin){if((s=document.querySelectorAll('style[f-forigin="p"][f-family="'+r[n].fFamily+'"], style[f-origin="3"][f-family="'+r[n].fFamily+'"]')).length>0&&(d=!1),d){var p=u("style");p.setAttribute("f-forigin",r[n].fOrigin),p.setAttribute("f-origin",r[n].origin),p.setAttribute("f-family",r[n].fFamily),p.type="text/css",p.innerText="@font-face {font-family: "+r[n].fFamily+"; font-style: normal; src: url('"+r[n].fPath+"');}",t.appendChild(p)}}else if("g"===r[n].fOrigin||1===r[n].origin){for(s=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),c=0;c<s.length;c+=1)-1!==s[c].href.indexOf(r[n].fPath)&&(d=!1);if(d){var h=u("link");h.setAttribute("f-forigin",r[n].fOrigin),h.setAttribute("f-origin",r[n].origin),h.type="text/css",h.rel="stylesheet",h.href=r[n].fPath,document.body.appendChild(h)}}else if("t"===r[n].fOrigin||2===r[n].origin){for(s=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),c=0;c<s.length;c+=1)r[n].fPath===s[c].src&&(d=!1);if(d){var f=u("link");f.setAttribute("f-forigin",r[n].fOrigin),f.setAttribute("f-origin",r[n].origin),f.setAttribute("rel","stylesheet"),f.setAttribute("href",r[n].fPath),t.appendChild(f)}}}else r[n].loaded=!0,a-=1;r[n].helper=l(r[n],t),r[n].cache={},this.fonts.push(r[n])}0===a?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0}function d(e){if(e){var t;this.chars||(this.chars=[]);var n,r,i=e.length,a=this.chars.length;for(t=0;t<i;t+=1){for(n=0,r=!1;n<a;)this.chars[n].style===e[t].style&&this.chars[n].fFamily===e[t].fFamily&&this.chars[n].ch===e[t].ch&&(r=!0),n+=1;r||(this.chars.push(e[t]),a+=1)}}}function p(e,n,r){for(var i=0,a=this.chars.length;i<a;){if(this.chars[i].ch===e&&this.chars[i].style===n&&this.chars[i].fFamily===r)return this.chars[i];i+=1}return("string"==typeof e&&13!==e.charCodeAt(0)||!e)&&console&&console.warn&&!this._warned&&(this._warned=!0),t}function h(e,t,n){var r=this.getFontByName(t),i=e.charCodeAt(0);if(!r.cache[i+1]){var a=r.helper;if(" "===e){var o=a.measureText("|"+e+"|"),s=a.measureText("||");r.cache[i+1]=(o-s)/100}else r.cache[i+1]=a.measureText(e)/100}return r.cache[i+1]*n}function f(e){for(var t=0,n=this.fonts.length;t<n;){if(this.fonts[t].fName===e)return this.fonts[t];t+=1}return this.fonts[0]}function m(e,t){var n=e.toString(16)+t.toString(16);return-1!==r.indexOf(n)}function g(e,t){return t?e===i[0]&&t===i[1]:e===i[1]}function y(e){return-1!==n.indexOf(e)}function v(){this.isLoaded=!0}var b=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)};b.isModifier=m,b.isZeroWidthJoiner=g,b.isCombinedCharacter=y;var x={addChars:d,addFonts:c,getCharData:p,getFontByName:f,measureText:h,checkLoadedFonts:s,setIsLoaded:v};return b.prototype=x,b}();function jt(){}jt.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(e){-1===this.renderableComponents.indexOf(e)&&this.renderableComponents.push(e)},removeRenderableComponent:function(e){-1!==this.renderableComponents.indexOf(e)&&this.renderableComponents.splice(this.renderableComponents.indexOf(e),1)},prepareRenderableFrame:function(e){this.checkLayerLimits(e)},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(e){this.data.ip-this.data.st<=e&&this.data.op-this.data.st>e?!0!==this.isInRange&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):!1!==this.isInRange&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var e,t=this.renderableComponents.length;for(e=0;e<t;e+=1)this.renderableComponents[e].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return 5===this.data.ty?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var Ct,Rt=(Ct={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"},function(e){return Ct[e]||""});function Pt(e,t,n){this.p=he.getProp(t,e.v,0,0,n)}function $t(e,t,n){this.p=he.getProp(t,e.v,0,0,n)}function Tt(e,t,n){this.p=he.getProp(t,e.v,1,0,n)}function _t(e,t,n){this.p=he.getProp(t,e.v,1,0,n)}function Mt(e,t,n){this.p=he.getProp(t,e.v,0,0,n)}function At(e,t,n){this.p=he.getProp(t,e.v,0,0,n)}function It(e,t,n){this.p=he.getProp(t,e.v,0,0,n)}function Ot(){this.p={}}function Ft(e,t){var n,r=e.ef||[];this.effectElements=[];var i,a=r.length;for(n=0;n<a;n+=1)i=new Lt(r[n],t),this.effectElements.push(i)}function Lt(e,t){this.init(e,t)}function Vt(){}function Nt(){}function zt(e,t,n){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.footageData=t.imageLoader.getAsset(this.assetData),this.initBaseData(e,t,n)}function Bt(e,t,n){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.initBaseData(e,t,n),this._isPlaying=!1,this._canPlay=!1;var r=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(r),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=e.tm?he.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0},this.lv=he.getProp(this,e.au&&e.au.lv?e.au.lv:{k:[100]},1,.01,this)}function Ut(){}function Wt(){}function qt(e,t,n){this.data=e,this.element=t,this.globalData=n,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var r,i,a=this.globalData.defs,o=this.masksProperties?this.masksProperties.length:0;this.viewData=f(o),this.solidPath="";var s,u,c,d,p,h,m=this.masksProperties,g=0,y=[],v=A(),b="clipPath",x="clip-path";for(r=0;r<o;r+=1)if(("a"!==m[r].mode&&"n"!==m[r].mode||m[r].inv||100!==m[r].o.k||m[r].o.x)&&(b="mask",x="mask"),"s"!==m[r].mode&&"i"!==m[r].mode||0!==g?c=null:((c=H("rect")).setAttribute("fill","#ffffff"),c.setAttribute("width",this.element.comp.data.w||0),c.setAttribute("height",this.element.comp.data.h||0),y.push(c)),i=H("path"),"n"===m[r].mode)this.viewData[r]={op:he.getProp(this.element,m[r].o,0,.01,this.element),prop:xe.getShapeProp(this.element,m[r],3),elem:i,lastPath:""},a.appendChild(i);else{var w;if(g+=1,i.setAttribute("fill","s"===m[r].mode?"#000000":"#ffffff"),i.setAttribute("clip-rule","nonzero"),0!==m[r].x.k?(b="mask",x="mask",h=he.getProp(this.element,m[r].x,0,null,this.element),w=A(),(d=H("filter")).setAttribute("id",w),(p=H("feMorphology")).setAttribute("operator","erode"),p.setAttribute("in","SourceGraphic"),p.setAttribute("radius","0"),d.appendChild(p),a.appendChild(d),i.setAttribute("stroke","s"===m[r].mode?"#000000":"#ffffff")):(p=null,h=null),this.storedData[r]={elem:i,x:h,expan:p,lastPath:"",lastOperator:"",filterId:w,lastRadius:0},"i"===m[r].mode){u=y.length;var E=H("g");for(s=0;s<u;s+=1)E.appendChild(y[s]);var k=H("mask");k.setAttribute("mask-type","alpha"),k.setAttribute("id",v+"_"+g),k.appendChild(i),a.appendChild(k),E.setAttribute("mask","url("+l()+"#"+v+"_"+g+")"),y.length=0,y.push(E)}else y.push(i);m[r].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[r]={elem:i,lastPath:"",op:he.getProp(this.element,m[r].o,0,.01,this.element),prop:xe.getShapeProp(this.element,m[r],3),invRect:c},this.viewData[r].prop.k||this.drawPath(m[r],this.viewData[r].prop.v,this.viewData[r])}for(this.maskElement=H(b),o=y.length,r=0;r<o;r+=1)this.maskElement.appendChild(y[r]);g>0&&(this.maskElement.setAttribute("id",v),this.element.maskedElement.setAttribute(x,"url("+l()+"#"+v+")"),a.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}c([fe],Lt),Lt.prototype.getValue=Lt.prototype.iterateDynamicProperties,Lt.prototype.init=function(e,t){var n;this.data=e,this.effectElements=[],this.initDynamicPropertyContainer(t);var r,i=this.data.ef.length,a=this.data.ef;for(n=0;n<i;n+=1){switch(r=null,a[n].ty){case 0:r=new Pt(a[n],t,this);break;case 1:r=new $t(a[n],t,this);break;case 2:r=new Tt(a[n],t,this);break;case 3:r=new _t(a[n],t,this);break;case 4:case 7:r=new It(a[n],t,this);break;case 10:r=new Mt(a[n],t,this);break;case 11:r=new At(a[n],t,this);break;case 5:r=new Ft(a[n],t);break;default:r=new Ot(a[n])}r&&this.effectElements.push(r)}},Vt.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var e=0,t=this.data.masksProperties.length;e<t;){if("n"!==this.data.masksProperties[e].mode&&!1!==this.data.masksProperties[e].cl)return!0;e+=1}return!1},initExpressions:function(){},setBlendMode:function(){var e=Rt(this.data.bm);(this.baseElement||this.layerElement).style["mix-blend-mode"]=e},initBaseData:function(e,t,n){this.globalData=t,this.comp=n,this.data=e,this.layerId=A(),this.data.sr||(this.data.sr=1),this.effectsManager=new Ft(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}},Nt.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(e,t){var n,r=this.dynamicProperties.length;for(n=0;n<r;n+=1)(t||this._isParent&&"transform"===this.dynamicProperties[n].propType)&&(this.dynamicProperties[n].getValue(),this.dynamicProperties[n]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(e){-1===this.dynamicProperties.indexOf(e)&&this.dynamicProperties.push(e)}},zt.prototype.prepareFrame=function(){},c([jt,Vt,Nt],zt),zt.prototype.getBaseElement=function(){return null},zt.prototype.renderFrame=function(){},zt.prototype.destroy=function(){},zt.prototype.initExpressions=function(){},zt.prototype.getFootageData=function(){return this.footageData},Bt.prototype.prepareFrame=function(e){if(this.prepareRenderableFrame(e,!0),this.prepareProperties(e,!0),this.tm._placeholder)this._currentTime=e/this.data.sr;else{var t=this.tm.v;this._currentTime=t}this._volume=this.lv.v[0];var n=this._volume*this._volumeMultiplier;this._previousVolume!==n&&(this._previousVolume=n,this.audio.volume(n))},c([jt,Vt,Nt],Bt),Bt.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))},Bt.prototype.show=function(){},Bt.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},Bt.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},Bt.prototype.resume=function(){this._canPlay=!0},Bt.prototype.setRate=function(e){this.audio.rate(e)},Bt.prototype.volume=function(e){this._volumeMultiplier=e,this._previousVolume=e*this._volume,this.audio.volume(this._previousVolume)},Bt.prototype.getBaseElement=function(){return null},Bt.prototype.destroy=function(){},Bt.prototype.sourceRectAtTime=function(){},Bt.prototype.initExpressions=function(){},Ut.prototype.checkLayers=function(e){var t,n,r=this.layers.length;for(this.completeLayers=!0,t=r-1;t>=0;t-=1)this.elements[t]||(n=this.layers[t]).ip-n.st<=e-this.layers[t].st&&n.op-n.st>e-this.layers[t].st&&this.buildItem(t),this.completeLayers=!!this.elements[t]&&this.completeLayers;this.checkPendingElements()},Ut.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:default: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)}},Ut.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},Ut.prototype.createAudio=function(e){return new Bt(e,this.globalData,this)},Ut.prototype.createFootage=function(e){return new zt(e,this.globalData,this)},Ut.prototype.buildAllItems=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)this.buildItem(e);this.checkPendingElements()},Ut.prototype.includeLayers=function(e){var t;this.completeLayers=!1;var n,r=e.length,i=this.layers.length;for(t=0;t<r;t+=1)for(n=0;n<i;){if(this.layers[n].id===e[t].id){this.layers[n]=e[t];break}n+=1}},Ut.prototype.setProjectInterface=function(e){this.globalData.projectInterface=e},Ut.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},Ut.prototype.buildElementParenting=function(e,t,n){for(var r=this.elements,i=this.layers,a=0,o=i.length;a<o;)i[a].ind==t&&(r[a]&&!0!==r[a]?(n.push(r[a]),r[a].setAsParent(),void 0!==i[a].parent?this.buildElementParenting(e,i[a].parent,n):e.setHierarchy(n)):(this.buildItem(a),this.addPendingElement(e))),a+=1},Ut.prototype.addPendingElement=function(e){this.pendingElements.push(e)},Ut.prototype.searchExtraCompositions=function(e){var t,n=e.length;for(t=0;t<n;t+=1)if(e[t].xt){var r=this.createComp(e[t]);r.initExpressions(),this.globalData.projectInterface.registerComposition(r)}},Ut.prototype.getElementById=function(e){var t,n=this.elements.length;for(t=0;t<n;t+=1)if(this.elements[t].data.ind===e)return this.elements[t];return null},Ut.prototype.getElementByPath=function(e){var t,n=e.shift();if("number"==typeof n)t=this.elements[n];else{var r,i=this.elements.length;for(r=0;r<i;r+=1)if(this.elements[r].data.nm===n){t=this.elements[r];break}}return 0===e.length?t:t.getElementByPath(e)},Ut.prototype.setupGlobalData=function(e,t){this.globalData.fontManager=new Dt,this.globalData.fontManager.addChars(e.chars),this.globalData.fontManager.addFonts(e.fonts,t),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}},Wt.prototype={initTransform:function(){this.finalTransform={mProp:this.data.ks?Ue.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_opMdf:!1,mat:new we},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 e,t=this.finalTransform.mat,n=0,r=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;n<r;){if(this.hierarchy[n].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}n+=1}if(this.finalTransform._matMdf)for(e=this.finalTransform.mProp.v.props,t.cloneFromProps(e),n=0;n<r;n+=1)e=this.hierarchy[n].finalTransform.mProp.v.props,t.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])}},globalToLocal:function(e){var t=[];t.push(this.finalTransform);for(var n,r=!0,i=this.comp;r;)i.finalTransform?(i.data.hasMask&&t.splice(0,0,i.finalTransform),i=i.comp):r=!1;var a,o=t.length;for(n=0;n<o;n+=1)a=t[n].mat.applyToPointArray(0,0,0),e=[e[0]-a[0],e[1]-a[1],0];return e},mHelper:new we},qt.prototype.getMaskProperty=function(e){return this.viewData[e].prop},qt.prototype.renderFrame=function(e){var t,n=this.element.finalTransform.mat,r=this.masksProperties.length;for(t=0;t<r;t+=1)if((this.viewData[t].prop._mdf||e)&&this.drawPath(this.masksProperties[t],this.viewData[t].prop.v,this.viewData[t]),(this.viewData[t].op._mdf||e)&&this.viewData[t].elem.setAttribute("fill-opacity",this.viewData[t].op.v),"n"!==this.masksProperties[t].mode&&(this.viewData[t].invRect&&(this.element.finalTransform.mProp._mdf||e)&&this.viewData[t].invRect.setAttribute("transform",n.getInverseMatrix().to2dCSS()),this.storedData[t].x&&(this.storedData[t].x._mdf||e))){var i=this.storedData[t].expan;this.storedData[t].x.v<0?("erode"!==this.storedData[t].lastOperator&&(this.storedData[t].lastOperator="erode",this.storedData[t].elem.setAttribute("filter","url("+l()+"#"+this.storedData[t].filterId+")")),i.setAttribute("radius",-this.storedData[t].x.v)):("dilate"!==this.storedData[t].lastOperator&&(this.storedData[t].lastOperator="dilate",this.storedData[t].elem.setAttribute("filter",null)),this.storedData[t].elem.setAttribute("stroke-width",2*this.storedData[t].x.v))}},qt.prototype.getMaskelement=function(){return this.maskElement},qt.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)+" v-"+this.globalData.compSize.h+" "},qt.prototype.drawPath=function(e,t,n){var r,i,a=" M"+t.v[0][0]+","+t.v[0][1];for(i=t._length,r=1;r<i;r+=1)a+=" C"+t.o[r-1][0]+","+t.o[r-1][1]+" "+t.i[r][0]+","+t.i[r][1]+" "+t.v[r][0]+","+t.v[r][1];if(t.c&&i>1&&(a+=" C"+t.o[r-1][0]+","+t.o[r-1][1]+" "+t.i[0][0]+","+t.i[0][1]+" "+t.v[0][0]+","+t.v[0][1]),n.lastPath!==a){var o="";n.elem&&(t.c&&(o=e.inv?this.solidPath+a:a),n.elem.setAttribute("d",o)),n.lastPath=a}},qt.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var Kt,Ht,Zt=function(){var e={};function t(e,t){var n=H("filter");return n.setAttribute("id",e),!0!==t&&(n.setAttribute("filterUnits","objectBoundingBox"),n.setAttribute("x","0%"),n.setAttribute("y","0%"),n.setAttribute("width","100%"),n.setAttribute("height","100%")),n}function n(){var e=H("feColorMatrix");return e.setAttribute("type","matrix"),e.setAttribute("color-interpolation-filters","sRGB"),e.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),e}return e.createFilter=t,e.createAlphaToLuminanceFilter=n,e}(),Gt=(Kt={maskType:!0,svgLumaHidden:!0,offscreenCanvas:"undefined"!=typeof OffscreenCanvas},(/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))&&(Kt.maskType=!1),/firefox/i.test(navigator.userAgent)&&(Kt.svgLumaHidden=!1),Kt),Yt={},Jt="filter_result_";function Xt(e){var t,n,r="SourceGraphic",i=e.data.ef?e.data.ef.length:0,a=A(),o=Zt.createFilter(a,!0),s=0;for(this.filters=[],t=0;t<i;t+=1){n=null;var u=e.data.ef[t].ty;Yt[u]&&(n=new(0,Yt[u].effect)(o,e.effectsManager.effectElements[t],e,Jt+s,r),r=Jt+s,Yt[u].countsAsEffect&&(s+=1)),n&&this.filters.push(n)}s&&(e.globalData.defs.appendChild(o),e.layerElement.setAttribute("filter","url("+l()+"#"+a+")")),this.filters.length&&e.addRenderableComponent(this)}function Qt(){}function en(){}function tn(){}function nn(e,t,n){this.assetData=t.getAssetData(e.refId),this.initElement(e,t,n),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}function rn(e,t){this.elem=e,this.pos=t}function an(){}Xt.prototype.renderFrame=function(e){var t,n=this.filters.length;for(t=0;t<n;t+=1)this.filters[t].renderFrame(e)},Qt.prototype={initRendererElement:function(){this.layerElement=H("g")},createContainerElements:function(){this.matteElement=H("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var e=null;if(this.data.td){this.matteMasks={};var t=H("g");t.setAttribute("id",this.layerId),t.appendChild(this.layerElement),e=t,this.globalData.defs.appendChild(t)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),e=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),0===this.data.ty&&!this.data.hd){var n=H("clipPath"),r=H("path");r.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var i=A();if(n.setAttribute("id",i),n.appendChild(r),this.globalData.defs.appendChild(n),this.checkMasks()){var a=H("g");a.setAttribute("clip-path","url("+l()+"#"+i+")"),a.appendChild(this.layerElement),this.transformedElement=a,e?e.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+l()+"#"+i+")")}0!==this.data.bm&&this.setBlendMode()},renderElement:function(){this.finalTransform._matMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.mat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.mProp.o.v)},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 qt(this.data,this,this.globalData),this.renderableEffectsManager=new Xt(this)},getMatte:function(e){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[e]){var t,n,r,i,a=this.layerId+"_"+e;if(1===e||3===e){var o=H("mask");o.setAttribute("id",a),o.setAttribute("mask-type",3===e?"luminance":"alpha"),(r=H("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),o.appendChild(r),this.globalData.defs.appendChild(o),Gt.maskType||1!==e||(o.setAttribute("mask-type","luminance"),t=A(),n=Zt.createFilter(t),this.globalData.defs.appendChild(n),n.appendChild(Zt.createAlphaToLuminanceFilter()),(i=H("g")).appendChild(r),o.appendChild(i),i.setAttribute("filter","url("+l()+"#"+t+")"))}else if(2===e){var s=H("mask");s.setAttribute("id",a),s.setAttribute("mask-type","alpha");var u=H("g");s.appendChild(u),t=A(),n=Zt.createFilter(t);var c=H("feComponentTransfer");c.setAttribute("in","SourceGraphic"),n.appendChild(c);var d=H("feFuncA");d.setAttribute("type","table"),d.setAttribute("tableValues","1.0 0.0"),c.appendChild(d),this.globalData.defs.appendChild(n);var p=H("rect");p.setAttribute("width",this.comp.data.w),p.setAttribute("height",this.comp.data.h),p.setAttribute("x","0"),p.setAttribute("y","0"),p.setAttribute("fill","#ffffff"),p.setAttribute("opacity","0"),u.setAttribute("filter","url("+l()+"#"+t+")"),u.appendChild(p),(r=H("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),u.appendChild(r),Gt.maskType||(s.setAttribute("mask-type","luminance"),n.appendChild(Zt.createAlphaToLuminanceFilter()),i=H("g"),u.appendChild(p),i.appendChild(this.layerElement),u.appendChild(i)),this.globalData.defs.appendChild(s)}this.matteMasks[e]=a}return this.matteMasks[e]},setMatte:function(e){this.matteElement&&this.matteElement.setAttribute("mask","url("+l()+"#"+e+")")}},en.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(e){this.hierarchy=e},setAsParent:function(){this._isParent=!0},checkParenting:function(){void 0!==this.data.parent&&this.comp.buildElementParenting(this,this.data.parent,[])}},Ht={initElement:function(e,t,n){this.initFrame(),this.initBaseData(e,t,n),this.initTransform(e,t,n),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){this.hidden||this.isInRange&&!this.isTransparent||((this.baseElement||this.layerElement).style.display="none",this.hidden=!0)},show:function(){this.isInRange&&!this.isTransparent&&(this.data.hd||((this.baseElement||this.layerElement).style.display="block"),this.hidden=!1,this._isFirstFrame=!0)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}},c([jt,d(Ht)],tn),c([Vt,Wt,Qt,en,Nt,tn],nn),nn.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData);this.innerElem=H("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)},nn.prototype.sourceRectAtTime=function(){return this.sourceRect},an.prototype={addShapeToModifiers:function(e){var t,n=this.shapeModifiers.length;for(t=0;t<n;t+=1)this.shapeModifiers[t].addShape(e)},isShapeInAnimatedModifiers:function(e){for(var t=0,n=this.shapeModifiers.length;t<n;)if(this.shapeModifiers[t].isAnimatedWithShape(e))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var e,t=this.shapes.length;for(e=0;e<t;e+=1)this.shapes[e].sh.reset();for(e=(t=this.shapeModifiers.length)-1;e>=0&&!this.shapeModifiers[e].processShapes(this._isFirstFrame);e-=1);}},searchProcessedElement:function(e){for(var t=this.processedElements,n=0,r=t.length;n<r;){if(t[n].elem===e)return t[n].pos;n+=1}return 0},addProcessedElement:function(e,t){for(var n=this.processedElements,r=n.length;r;)if(n[r-=1].elem===e)return void(n[r].pos=t);n.push(new rn(e,t))},prepareFrame:function(e){this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)}};var on={1:"butt",2:"round",3:"square"},sn={1:"miter",2:"round",3:"bevel"};function ln(e,t,n){this.caches=[],this.styles=[],this.transformers=e,this.lStr="",this.sh=n,this.lvl=t,this._isAnimated=!!n.k;for(var r=0,i=e.length;r<i;){if(e[r].mProps.dynamicProperties.length){this._isAnimated=!0;break}r+=1}}function un(e,t){this.data=e,this.type=e.ty,this.d="",this.lvl=t,this._mdf=!1,this.closed=!0===e.hd,this.pElem=H("path"),this.msElem=null}function cn(e,t,n,r){var i;this.elem=e,this.frameId=-1,this.dataProps=f(t.length),this.renderer=n,this.k=!1,this.dashStr="",this.dashArray=h("float32",t.length?t.length-1:0),this.dashoffset=h("float32",1),this.initDynamicPropertyContainer(r);var a,o=t.length||0;for(i=0;i<o;i+=1)a=he.getProp(e,t[i].v,0,0,this),this.k=a.k||this.k,this.dataProps[i]={n:t[i].n,p:a};this.k||this.getValue(!0),this._isAnimated=this.k}function dn(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=he.getProp(e,t.o,0,.01,this),this.w=he.getProp(e,t.w,0,null,this),this.d=new cn(e,t.d||{},"svg",this),this.c=he.getProp(e,t.c,1,255,this),this.style=n,this._isAnimated=!!this._isAnimated}function pn(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=he.getProp(e,t.o,0,.01,this),this.c=he.getProp(e,t.c,1,255,this),this.style=n}function hn(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.style=n}function fn(e,t,n){this.data=t,this.c=h("uint8c",4*t.p);var r=t.k.k[0].s?t.k.k[0].s.length-4*t.p:t.k.k.length-4*t.p;this.o=h("float32",r),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=r,this.initDynamicPropertyContainer(n),this.prop=he.getProp(e,t.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}function mn(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.initGradientData(e,t,n)}function gn(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.w=he.getProp(e,t.w,0,null,this),this.d=new cn(e,t.d||{},"svg",this),this.initGradientData(e,t,n),this._isAnimated=!!this._isAnimated}function yn(){this.it=[],this.prevViewData=[],this.gr=H("g")}function vn(e,t,n){this.transform={mProps:e,op:t,container:n},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}ln.prototype.setAsAnimated=function(){this._isAnimated=!0},un.prototype.reset=function(){this.d="",this._mdf=!1},cn.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 t=0,n=this.dataProps.length;for("svg"===this.renderer&&(this.dashStr=""),t=0;t<n;t+=1)"o"!==this.dataProps[t].n?"svg"===this.renderer?this.dashStr+=" "+this.dataProps[t].p.v:this.dashArray[t]=this.dataProps[t].p.v:this.dashoffset[0]=this.dataProps[t].p.v}},c([fe],cn),c([fe],dn),c([fe],pn),c([fe],hn),fn.prototype.comparePoints=function(e,t){for(var n=0,r=this.o.length/2;n<r;){if(Math.abs(e[4*n]-e[4*t+2*n])>.01)return!1;n+=1}return!0},fn.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,t=this.data.k.k.length;e<t;){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},fn.prototype.getValue=function(e){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||e){var t,n,r,i=4*this.data.p;for(t=0;t<i;t+=1)n=t%4==0?100:255,r=Math.round(this.prop.v[t]*n),this.c[t]!==r&&(this.c[t]=r,this._cmdf=!e);if(this.o.length)for(i=this.prop.v.length,t=4*this.data.p;t<i;t+=1)n=t%2==0?100:1,r=t%2==0?Math.round(100*this.prop.v[t]):this.prop.v[t],this.o[t-4*this.data.p]!==r&&(this.o[t-4*this.data.p]=r,this._omdf=!e);this._mdf=!e}},c([fe],fn),mn.prototype.initGradientData=function(e,t,n){this.o=he.getProp(e,t.o,0,.01,this),this.s=he.getProp(e,t.s,1,null,this),this.e=he.getProp(e,t.e,1,null,this),this.h=he.getProp(e,t.h||{k:0},0,.01,this),this.a=he.getProp(e,t.a||{k:0},0,S,this),this.g=new fn(e,t.g,this),this.style=n,this.stops=[],this.setGradientData(n.pElem,t),this.setGradientOpacity(t,n),this._isAnimated=!!this._isAnimated},mn.prototype.setGradientData=function(e,t){var n=A(),r=H(1===t.t?"linearGradient":"radialGradient");r.setAttribute("id",n),r.setAttribute("spreadMethod","pad"),r.setAttribute("gradientUnits","userSpaceOnUse");var i,a,o,s=[];for(o=4*t.g.p,a=0;a<o;a+=4)i=H("stop"),r.appendChild(i),s.push(i);e.setAttribute("gf"===t.ty?"fill":"stroke","url("+l()+"#"+n+")"),this.gf=r,this.cst=s},mn.prototype.setGradientOpacity=function(e,t){if(this.g._hasOpacity&&!this.g._collapsable){var n,r,i,a=H("mask"),o=H("path");a.appendChild(o);var s=A(),u=A();a.setAttribute("id",u);var c=H(1===e.t?"linearGradient":"radialGradient");c.setAttribute("id",s),c.setAttribute("spreadMethod","pad"),c.setAttribute("gradientUnits","userSpaceOnUse"),i=e.g.k.k[0].s?e.g.k.k[0].s.length:e.g.k.k.length;var d=this.stops;for(r=4*e.g.p;r<i;r+=2)(n=H("stop")).setAttribute("stop-color","rgb(255,255,255)"),c.appendChild(n),d.push(n);o.setAttribute("gf"===e.ty?"fill":"stroke","url("+l()+"#"+s+")"),"gs"===e.ty&&(o.setAttribute("stroke-linecap",on[e.lc||2]),o.setAttribute("stroke-linejoin",sn[e.lj||2]),1===e.lj&&o.setAttribute("stroke-miterlimit",e.ml)),this.of=c,this.ms=a,this.ost=d,this.maskId=u,t.msElem=o}},c([fe],mn),c([mn,fe],gn);var bn=function(e,t,n,r){if(0===t)return"";var i,a=e.o,o=e.i,s=e.v,l=" M"+r.applyToPointStringified(s[0][0],s[0][1]);for(i=1;i<t;i+=1)l+=" C"+r.applyToPointStringified(a[i-1][0],a[i-1][1])+" "+r.applyToPointStringified(o[i][0],o[i][1])+" "+r.applyToPointStringified(s[i][0],s[i][1]);return n&&t&&(l+=" C"+r.applyToPointStringified(a[i-1][0],a[i-1][1])+" "+r.applyToPointStringified(o[0][0],o[0][1])+" "+r.applyToPointStringified(s[0][0],s[0][1]),l+="z"),l},xn=function(){var e=new we,t=new we;function n(e){switch(e.ty){case"fl":return o;case"gf":return l;case"gs":return s;case"st":return u;case"sh":case"el":case"rc":case"sr":return a;case"tr":return r;case"no":return i;default:return null}}function r(e,t,n){(n||t.transform.op._mdf)&&t.transform.container.setAttribute("opacity",t.transform.op.v),(n||t.transform.mProps._mdf)&&t.transform.container.setAttribute("transform",t.transform.mProps.v.to2dCSS())}function i(){}function a(n,r,i){var a,o,s,l,u,c,d,p,h,f,m,g=r.styles.length,y=r.lvl;for(c=0;c<g;c+=1){if(l=r.sh._mdf||i,r.styles[c].lvl<y){for(p=t.reset(),f=y-r.styles[c].lvl,m=r.transformers.length-1;!l&&f>0;)l=r.transformers[m].mProps._mdf||l,f-=1,m-=1;if(l)for(f=y-r.styles[c].lvl,m=r.transformers.length-1;f>0;)h=r.transformers[m].mProps.v.props,p.transform(h[0],h[1],h[2],h[3],h[4],h[5],h[6],h[7],h[8],h[9],h[10],h[11],h[12],h[13],h[14],h[15]),f-=1,m-=1}else p=e;if(o=(d=r.sh.paths)._length,l){for(s="",a=0;a<o;a+=1)(u=d.shapes[a])&&u._length&&(s+=bn(u,u._length,u.c,p));r.caches[c]=s}else s=r.caches[c];r.styles[c].d+=!0===n.hd?"":s,r.styles[c]._mdf=l||r.styles[c]._mdf}}function o(e,t,n){var r=t.style;(t.c._mdf||n)&&r.pElem.setAttribute("fill","rgb("+w(t.c.v[0])+","+w(t.c.v[1])+","+w(t.c.v[2])+")"),(t.o._mdf||n)&&r.pElem.setAttribute("fill-opacity",t.o.v)}function s(e,t,n){l(e,t,n),u(e,t,n)}function l(e,t,n){var r,i,a,o,s,l=t.gf,u=t.g._hasOpacity,c=t.s.v,d=t.e.v;if(t.o._mdf||n){var p="gf"===e.ty?"fill-opacity":"stroke-opacity";t.style.pElem.setAttribute(p,t.o.v)}if(t.s._mdf||n){var h=1===e.t?"x1":"cx",f="x1"===h?"y1":"cy";l.setAttribute(h,c[0]),l.setAttribute(f,c[1]),u&&!t.g._collapsable&&(t.of.setAttribute(h,c[0]),t.of.setAttribute(f,c[1]))}if(t.g._cmdf||n){r=t.cst;var m=t.g.c;for(a=r.length,i=0;i<a;i+=1)(o=r[i]).setAttribute("offset",m[4*i]+"%"),o.setAttribute("stop-color","rgb("+m[4*i+1]+","+m[4*i+2]+","+m[4*i+3]+")")}if(u&&(t.g._omdf||n)){var g=t.g.o;for(a=(r=t.g._collapsable?t.cst:t.ost).length,i=0;i<a;i+=1)o=r[i],t.g._collapsable||o.setAttribute("offset",g[2*i]+"%"),o.setAttribute("stop-opacity",g[2*i+1])}if(1===e.t)(t.e._mdf||n)&&(l.setAttribute("x2",d[0]),l.setAttribute("y2",d[1]),u&&!t.g._collapsable&&(t.of.setAttribute("x2",d[0]),t.of.setAttribute("y2",d[1])));else if((t.s._mdf||t.e._mdf||n)&&(s=Math.sqrt(Math.pow(c[0]-d[0],2)+Math.pow(c[1]-d[1],2)),l.setAttribute("r",s),u&&!t.g._collapsable&&t.of.setAttribute("r",s)),t.e._mdf||t.h._mdf||t.a._mdf||n){s||(s=Math.sqrt(Math.pow(c[0]-d[0],2)+Math.pow(c[1]-d[1],2)));var y=Math.atan2(d[1]-c[1],d[0]-c[0]),v=t.h.v;v>=1?v=.99:v<=-1&&(v=-.99);var b=s*v,x=Math.cos(y+t.a.v)*b+c[0],w=Math.sin(y+t.a.v)*b+c[1];l.setAttribute("fx",x),l.setAttribute("fy",w),u&&!t.g._collapsable&&(t.of.setAttribute("fx",x),t.of.setAttribute("fy",w))}}function u(e,t,n){var r=t.style,i=t.d;i&&(i._mdf||n)&&i.dashStr&&(r.pElem.setAttribute("stroke-dasharray",i.dashStr),r.pElem.setAttribute("stroke-dashoffset",i.dashoffset[0])),t.c&&(t.c._mdf||n)&&r.pElem.setAttribute("stroke","rgb("+w(t.c.v[0])+","+w(t.c.v[1])+","+w(t.c.v[2])+")"),(t.o._mdf||n)&&r.pElem.setAttribute("stroke-opacity",t.o.v),(t.w._mdf||n)&&(r.pElem.setAttribute("stroke-width",t.w.v),r.msElem&&r.msElem.setAttribute("stroke-width",t.w.v))}return{createRenderFunction:n}}();function wn(e,t,n){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(e,t,n),this.prevViewData=[]}function En(e,t,n,r,i,a){this.o=e,this.sw=t,this.sc=n,this.fc=r,this.m=i,this.p=a,this._mdf={o:!0,sw:!!t,sc:!!n,fc:!!r,m:!0,p:!0}}function kn(e,t){this._frameId=i,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,this.data=t,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)}c([Vt,Wt,Qt,an,en,Nt,tn],wn),wn.prototype.initSecondaryElement=function(){},wn.prototype.identityMatrix=new we,wn.prototype.buildExpressionInterface=function(){},wn.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},wn.prototype.filterUniqueShapes=function(){var e,t,n,r,i=this.shapes.length,a=this.stylesList.length,o=[],s=!1;for(n=0;n<a;n+=1){for(r=this.stylesList[n],s=!1,o.length=0,e=0;e<i;e+=1)-1!==(t=this.shapes[e]).styles.indexOf(r)&&(o.push(t),s=t._isAnimated||s);o.length>1&&s&&this.setShapesAsAnimated(o)}},wn.prototype.setShapesAsAnimated=function(e){var t,n=e.length;for(t=0;t<n;t+=1)e[t].setAsAnimated()},wn.prototype.createStyleElement=function(e,t){var n,r=new un(e,t),i=r.pElem;return"st"===e.ty?n=new dn(this,e,r):"fl"===e.ty?n=new pn(this,e,r):"gf"===e.ty||"gs"===e.ty?(n=new("gf"===e.ty?mn:gn)(this,e,r),this.globalData.defs.appendChild(n.gf),n.maskId&&(this.globalData.defs.appendChild(n.ms),this.globalData.defs.appendChild(n.of),i.setAttribute("mask","url("+l()+"#"+n.maskId+")"))):"no"===e.ty&&(n=new hn(this,e,r)),"st"!==e.ty&&"gs"!==e.ty||(i.setAttribute("stroke-linecap",on[e.lc||2]),i.setAttribute("stroke-linejoin",sn[e.lj||2]),i.setAttribute("fill-opacity","0"),1===e.lj&&i.setAttribute("stroke-miterlimit",e.ml)),2===e.r&&i.setAttribute("fill-rule","evenodd"),e.ln&&i.setAttribute("id",e.ln),e.cl&&i.setAttribute("class",e.cl),e.bm&&(i.style["mix-blend-mode"]=Rt(e.bm)),this.stylesList.push(r),this.addToAnimatedContents(e,n),n},wn.prototype.createGroupElement=function(e){var t=new yn;return e.ln&&t.gr.setAttribute("id",e.ln),e.cl&&t.gr.setAttribute("class",e.cl),e.bm&&(t.gr.style["mix-blend-mode"]=Rt(e.bm)),t},wn.prototype.createTransformElement=function(e,t){var n=Ue.getTransformProperty(this,e,this),r=new vn(n,n.o,t);return this.addToAnimatedContents(e,r),r},wn.prototype.createShapeElement=function(e,t,n){var r=4;"rc"===e.ty?r=5:"el"===e.ty?r=6:"sr"===e.ty&&(r=7);var i=new ln(t,n,xe.getShapeProp(this,e,r,this));return this.shapes.push(i),this.addShapeToModifiers(i),this.addToAnimatedContents(e,i),i},wn.prototype.addToAnimatedContents=function(e,t){for(var n=0,r=this.animatedContents.length;n<r;){if(this.animatedContents[n].element===t)return;n+=1}this.animatedContents.push({fn:xn.createRenderFunction(e),element:t,data:e})},wn.prototype.setElementStyles=function(e){var t,n=e.styles,r=this.stylesList.length;for(t=0;t<r;t+=1)this.stylesList[t].closed||n.push(this.stylesList[t])},wn.prototype.reloadShapes=function(){var e;this._isFirstFrame=!0;var t=this.itemsData.length;for(e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers()},wn.prototype.searchShapes=function(e,t,n,r,i,a,o){var s,l,u,c,d,p,h=[].concat(a),f=e.length-1,m=[],g=[];for(s=f;s>=0;s-=1){if((p=this.searchProcessedElement(e[s]))?t[s]=n[p-1]:e[s]._render=o,"fl"===e[s].ty||"st"===e[s].ty||"gf"===e[s].ty||"gs"===e[s].ty||"no"===e[s].ty)p?t[s].style.closed=!1:t[s]=this.createStyleElement(e[s],i),e[s]._render&&t[s].style.pElem.parentNode!==r&&r.appendChild(t[s].style.pElem),m.push(t[s].style);else if("gr"===e[s].ty){if(p)for(u=t[s].it.length,l=0;l<u;l+=1)t[s].prevViewData[l]=t[s].it[l];else t[s]=this.createGroupElement(e[s]);this.searchShapes(e[s].it,t[s].it,t[s].prevViewData,t[s].gr,i+1,h,o),e[s]._render&&t[s].gr.parentNode!==r&&r.appendChild(t[s].gr)}else"tr"===e[s].ty?(p||(t[s]=this.createTransformElement(e[s],r)),c=t[s].transform,h.push(c)):"sh"===e[s].ty||"rc"===e[s].ty||"el"===e[s].ty||"sr"===e[s].ty?(p||(t[s]=this.createShapeElement(e[s],h,i)),this.setElementStyles(t[s])):"tm"===e[s].ty||"rd"===e[s].ty||"ms"===e[s].ty||"pb"===e[s].ty||"zz"===e[s].ty||"op"===e[s].ty?(p?(d=t[s]).closed=!1:((d=Ve.getModifier(e[s].ty)).init(this,e[s]),t[s]=d,this.shapeModifiers.push(d)),g.push(d)):"rp"===e[s].ty&&(p?(d=t[s]).closed=!0:(d=Ve.getModifier(e[s].ty),t[s]=d,d.init(this,e,s,t),this.shapeModifiers.push(d),o=!1),g.push(d));this.addProcessedElement(e[s],s+1)}for(f=m.length,s=0;s<f;s+=1)m[s].closed=!0;for(f=g.length,s=0;s<f;s+=1)g[s].closed=!0},wn.prototype.renderInnerContent=function(){var e;this.renderModifiers();var t=this.stylesList.length;for(e=0;e<t;e+=1)this.stylesList[e].reset();for(this.renderShape(),e=0;e<t;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"))},wn.prototype.renderShape=function(){var e,t,n=this.animatedContents.length;for(e=0;e<n;e+=1)t=this.animatedContents[e],(this._isFirstFrame||t.element._isAnimated)&&!0!==t.data&&t.fn(t.data,t.element,this._isFirstFrame)},wn.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null},En.prototype.update=function(e,t,n,r,i,a){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 o=!1;return this.o!==e&&(this.o=e,this._mdf.o=!0,o=!0),this.sw!==t&&(this.sw=t,this._mdf.sw=!0,o=!0),this.sc!==n&&(this.sc=n,this._mdf.sc=!0,o=!0),this.fc!==r&&(this.fc=r,this._mdf.fc=!0,o=!0),this.m!==i&&(this.m=i,this._mdf.m=!0,o=!0),!a.length||this.p[0]===a[0]&&this.p[1]===a[1]&&this.p[4]===a[4]&&this.p[5]===a[5]&&this.p[12]===a[12]&&this.p[13]===a[13]||(this.p=a,this._mdf.p=!0,o=!0),o},kn.prototype.defaultBoxWidth=[0,0],kn.prototype.copyData=function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},kn.prototype.setCurrentData=function(e){e.__complete||this.completeTextData(e),this.currentData=e,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},kn.prototype.searchProperty=function(){return this.searchKeyframes()},kn.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},kn.prototype.addEffect=function(e){this.effectsSequence.push(e),this.elem.addDynamicProperty(this)},kn.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 t=this.currentData,n=this.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else{var r;this.lock=!0,this._mdf=!1;var i=this.effectsSequence.length,a=e||this.data.d.k[this.keysIndex].s;for(r=0;r<i;r+=1)a=n!==this.keysIndex?this.effectsSequence[r](a,a.t):this.effectsSequence[r](this.currentData,a.t);t!==a&&this.setCurrentData(a),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}}},kn.prototype.getKeyframeValue=function(){for(var e=this.data.d.k,t=this.elem.comp.renderedFrame,n=0,r=e.length;n<=r-1&&!(n===r-1||e[n+1].t>t);)n+=1;return this.keysIndex!==n&&(this.keysIndex=n),this.data.d.k[this.keysIndex].s},kn.prototype.buildFinalText=function(e){for(var t,n,r=[],i=0,a=e.length,o=!1;i<a;)t=e.charCodeAt(i),Dt.isCombinedCharacter(t)?r[r.length-1]+=e.charAt(i):t>=55296&&t<=56319?(n=e.charCodeAt(i+1))>=56320&&n<=57343?(o||Dt.isModifier(t,n)?(r[r.length-1]+=e.substr(i,2),o=!1):r.push(e.substr(i,2)),i+=1):r.push(e.charAt(i)):t>56319?(n=e.charCodeAt(i+1),Dt.isZeroWidthJoiner(t,n)?(o=!0,r[r.length-1]+=e.substr(i,2),i+=1):r.push(e.charAt(i))):Dt.isZeroWidthJoiner(t)?(r[r.length-1]+=e.charAt(i),o=!0):r.push(e.charAt(i)),i+=1;return r},kn.prototype.completeTextData=function(e){e.__complete=!0;var t,n,r,i,a,o,s,l=this.elem.globalData.fontManager,u=this.data,c=[],d=0,p=u.m.g,h=0,f=0,m=0,g=[],y=0,v=0,b=l.getFontByName(e.f),x=0,w=St(b);e.fWeight=w.weight,e.fStyle=w.style,e.finalSize=e.s,e.finalText=this.buildFinalText(e.t),n=e.finalText.length,e.finalLineHeight=e.lh;var E,k=e.tr/1e3*e.finalSize;if(e.sz)for(var S,D,j=!0,C=e.sz[0],R=e.sz[1];j;){S=0,y=0,n=(D=this.buildFinalText(e.t)).length,k=e.tr/1e3*e.finalSize;var P=-1;for(t=0;t<n;t+=1)E=D[t].charCodeAt(0),r=!1," "===D[t]?P=t:13!==E&&3!==E||(y=0,r=!0,S+=e.finalLineHeight||1.2*e.finalSize),l.chars?(s=l.getCharData(D[t],b.fStyle,b.fFamily),x=r?0:s.w*e.finalSize/100):x=l.measureText(D[t],e.f,e.finalSize),y+x>C&&" "!==D[t]?(-1===P?n+=1:t=P,S+=e.finalLineHeight||1.2*e.finalSize,D.splice(t,P===t?1:0,"\r"),P=-1,y=0):(y+=x,y+=k);S+=b.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&R<S?(e.finalSize-=1,e.finalLineHeight=e.finalSize*e.lh/e.s):(e.finalText=D,n=e.finalText.length,j=!1)}y=-k,x=0;var $,T=0;for(t=0;t<n;t+=1)if(r=!1,13===(E=($=e.finalText[t]).charCodeAt(0))||3===E?(T=0,g.push(y),v=y>v?y:v,y=-2*k,i="",r=!0,m+=1):i=$,l.chars?(s=l.getCharData($,b.fStyle,l.getFontByName(e.f).fFamily),x=r?0:s.w*e.finalSize/100):x=l.measureText(i,e.f,e.finalSize)," "===$?T+=x+k:(y+=x+k+T,T=0),c.push({l:x,an:x,add:h,n:r,anIndexes:[],val:i,line:m,animatorJustifyOffset:0}),2==p){if(h+=x,""===i||" "===i||t===n-1){for(""!==i&&" "!==i||(h-=x);f<=t;)c[f].an=h,c[f].ind=d,c[f].extra=x,f+=1;d+=1,h=0}}else if(3==p){if(h+=x,""===i||t===n-1){for(""===i&&(h-=x);f<=t;)c[f].an=h,c[f].ind=d,c[f].extra=x,f+=1;h=0,d+=1}}else c[d].ind=d,c[d].extra=0,d+=1;if(e.l=c,v=y>v?y:v,g.push(y),e.sz)e.boxWidth=e.sz[0],e.justifyOffset=0;else switch(e.boxWidth=v,e.j){case 1:e.justifyOffset=-e.boxWidth;break;case 2:e.justifyOffset=-e.boxWidth/2;break;default:e.justifyOffset=0}e.lineWidths=g;var _,M,A,I,O=u.a;o=O.length;var F=[];for(a=0;a<o;a+=1){for((_=O[a]).a.sc&&(e.strokeColorAnim=!0),_.a.sw&&(e.strokeWidthAnim=!0),(_.a.fc||_.a.fh||_.a.fs||_.a.fb)&&(e.fillColorAnim=!0),I=0,A=_.s.b,t=0;t<n;t+=1)(M=c[t]).anIndexes[a]=I,(1==A&&""!==M.val||2==A&&""!==M.val&&" "!==M.val||3==A&&(M.n||" "==M.val||t==n-1)||4==A&&(M.n||t==n-1))&&(1===_.s.rn&&F.push(I),I+=1);u.a[a].s.totalChars=I;var L,V=-1;if(1===_.s.rn)for(t=0;t<n;t+=1)V!=(M=c[t]).anIndexes[a]&&(V=M.anIndexes[a],L=F.splice(Math.floor(Math.random()*F.length),1)[0]),M.anIndexes[a]=L}e.yOffset=e.finalLineHeight||1.2*e.finalSize,e.ls=e.ls||0,e.ascent=b.ascent*e.finalSize/100},kn.prototype.updateDocumentData=function(e,t){t=void 0===t?this.keysIndex:t;var n=this.copyData({},this.data.d.k[t].s);n=this.copyData(n,e),this.data.d.k[t].s=n,this.recalculate(t),this.elem.addDynamicProperty(this)},kn.prototype.recalculate=function(e){var t=this.data.d.k[e].s;t.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(t)},kn.prototype.canResizeFont=function(e){this.canResize=e,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},kn.prototype.setMinimumFontSize=function(e){this.minimumFontSize=Math.floor(e)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var Sn=function(){var e=Math.max,t=Math.min,n=Math.floor;function r(e,t){this._currentTextLength=-1,this.k=!1,this.data=t,this.elem=e,this.comp=e.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(e),this.s=he.getProp(e,t.s||{k:0},0,0,this),this.e="e"in t?he.getProp(e,t.e,0,0,this):{v:100},this.o=he.getProp(e,t.o||{k:0},0,0,this),this.xe=he.getProp(e,t.xe||{k:0},0,0,this),this.ne=he.getProp(e,t.ne||{k:0},0,0,this),this.sm=he.getProp(e,t.sm||{k:100},0,0,this),this.a=he.getProp(e,t.a,0,.01,this),this.dynamicProperties.length||this.getValue()}function i(e,t,n){return new r(e,t)}return r.prototype={getMult:function(r){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var i=0,a=0,o=1,s=1;this.ne.v>0?i=this.ne.v/100:a=-this.ne.v/100,this.xe.v>0?o=1-this.xe.v/100:s=1+this.xe.v/100;var l=oe.getBezierEasing(i,a,o,s).get,u=0,c=this.finalS,d=this.finalE,p=this.data.sh;if(2===p)u=l(u=d===c?r>=d?1:0:e(0,t(.5/(d-c)+(r-c)/(d-c),1)));else if(3===p)u=l(u=d===c?r>=d?0:1:1-e(0,t(.5/(d-c)+(r-c)/(d-c),1)));else if(4===p)d===c?u=0:(u=e(0,t(.5/(d-c)+(r-c)/(d-c),1)))<.5?u*=2:u=1-2*(u-.5),u=l(u);else if(5===p){if(d===c)u=0;else{var h=d-c,f=-h/2+(r=t(e(0,r+.5-c),d-c)),m=h/2;u=Math.sqrt(1-f*f/(m*m))}u=l(u)}else 6===p?(d===c?u=0:(r=t(e(0,r+.5-c),d-c),u=(1+Math.cos(Math.PI+2*Math.PI*r/(d-c)))/2),u=l(u)):(r>=n(c)&&(u=e(0,t(r-c<0?t(d,1)-(c-r):d-r,1))),u=l(u));if(100!==this.sm.v){var g=.01*this.sm.v;0===g&&(g=1e-8);var y=.5-.5*g;u<y?u=0:(u=(u-y)/g)>1&&(u=1)}return u*this.a.v},getValue:function(e){this.iterateDynamicProperties(),this._mdf=e||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,e&&2===this.data.r&&(this.e.v=this._currentTextLength);var t=2===this.data.r?1:100/this.data.totalChars,n=this.o.v/t,r=this.s.v/t+n,i=this.e.v/t+n;if(r>i){var a=r;r=i,i=a}this.finalS=r,this.finalE=i}},c([fe],r),{getTextSelectorProp:i}}();function Dn(e,t,n){var r={propType:!1},i=he.getProp,a=t.a;this.a={r:a.r?i(e,a.r,0,S,n):r,rx:a.rx?i(e,a.rx,0,S,n):r,ry:a.ry?i(e,a.ry,0,S,n):r,sk:a.sk?i(e,a.sk,0,S,n):r,sa:a.sa?i(e,a.sa,0,S,n):r,s:a.s?i(e,a.s,1,.01,n):r,a:a.a?i(e,a.a,1,0,n):r,o:a.o?i(e,a.o,0,.01,n):r,p:a.p?i(e,a.p,1,0,n):r,sw:a.sw?i(e,a.sw,0,0,n):r,sc:a.sc?i(e,a.sc,1,0,n):r,fc:a.fc?i(e,a.fc,1,0,n):r,fh:a.fh?i(e,a.fh,0,0,n):r,fs:a.fs?i(e,a.fs,0,.01,n):r,fb:a.fb?i(e,a.fb,0,.01,n):r,t:a.t?i(e,a.t,0,0,n):r},this.s=Sn.getTextSelectorProp(e,t.s,n),this.s.t=t.s.t}function jn(e,t,n){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=e,this._renderType=t,this._elem=n,this._animatorsData=f(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(n)}function Cn(){}jn.prototype.searchProperties=function(){var e,t,n=this._textData.a.length,r=he.getProp;for(e=0;e<n;e+=1)t=this._textData.a[e],this._animatorsData[e]=new Dn(this._elem,t,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:r(this._elem,this._textData.p.a,0,0,this),f:r(this._elem,this._textData.p.f,0,0,this),l:r(this._elem,this._textData.p.l,0,0,this),r:r(this._elem,this._textData.p.r,0,0,this),p:r(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=r(this._elem,this._textData.m.a,1,0,this)},jn.prototype.getMeasures=function(e,t){if(this.lettersChangedFlag=t,this._mdf||this._isFirstFrame||t||this._hasMaskedPath&&this._pathData.m._mdf){this._isFirstFrame=!1;var n,r,i,a,o,s,l,u,c,d,p,h,f,m,g,y,v,b,x,w=this._moreOptions.alignment.v,E=this._animatorsData,k=this._textData,S=this.mHelper,D=this._renderType,j=this.renderedLetters.length,C=e.l;if(this._hasMaskedPath){if(x=this._pathData.m,!this._pathData.n||this._pathData._mdf){var R,P=x.v;for(this._pathData.r.v&&(P=P.reverse()),o={tLength:0,segments:[]},a=P._length-1,y=0,i=0;i<a;i+=1)R=pe.buildBezierData(P.v[i],P.v[i+1],[P.o[i][0]-P.v[i][0],P.o[i][1]-P.v[i][1]],[P.i[i+1][0]-P.v[i+1][0],P.i[i+1][1]-P.v[i+1][1]]),o.tLength+=R.segmentLength,o.segments.push(R),y+=R.segmentLength;i=a,x.v.c&&(R=pe.buildBezierData(P.v[i],P.v[0],[P.o[i][0]-P.v[i][0],P.o[i][1]-P.v[i][1]],[P.i[0][0]-P.v[0][0],P.i[0][1]-P.v[0][1]]),o.tLength+=R.segmentLength,o.segments.push(R),y+=R.segmentLength),this._pathData.pi=o}if(o=this._pathData.pi,s=this._pathData.f.v,p=0,d=1,u=0,c=!0,m=o.segments,s<0&&x.v.c)for(o.tLength<Math.abs(s)&&(s=-Math.abs(s)%o.tLength),d=(f=m[p=m.length-1].points).length-1;s<0;)s+=f[d].partialLength,(d-=1)<0&&(d=(f=m[p-=1].points).length-1);h=(f=m[p].points)[d-1],g=(l=f[d]).partialLength}a=C.length,n=0,r=0;var $,T,_,M,A,I=1.2*e.finalSize*.714,O=!0;_=E.length;var N,z,B,U,W,q,K,H,Z,G,Y,J,X=-1,Q=s,ee=p,te=d,ne=-1,re="",ie=this.defaultPropsArray;if(2===e.j||1===e.j){var ae=0,oe=0,se=2===e.j?-.5:-1,le=0,ue=!0;for(i=0;i<a;i+=1)if(C[i].n){for(ae&&(ae+=oe);le<i;)C[le].animatorJustifyOffset=ae,le+=1;ae=0,ue=!0}else{for(T=0;T<_;T+=1)($=E[T].a).t.propType&&(ue&&2===e.j&&(oe+=$.t.v*se),(A=E[T].s.getMult(C[i].anIndexes[T],k.a[T].s.totalChars)).length?ae+=$.t.v*A[0]*se:ae+=$.t.v*A*se);ue=!1}for(ae&&(ae+=oe);le<i;)C[le].animatorJustifyOffset=ae,le+=1}for(i=0;i<a;i+=1){if(S.reset(),U=1,C[i].n)n=0,r+=e.yOffset,r+=O?1:0,s=Q,O=!1,this._hasMaskedPath&&(d=te,h=(f=m[p=ee].points)[d-1],g=(l=f[d]).partialLength,u=0),re="",Y="",Z="",J="",ie=this.defaultPropsArray;else{if(this._hasMaskedPath){if(ne!==C[i].line){switch(e.j){case 1:s+=y-e.lineWidths[C[i].line];break;case 2:s+=(y-e.lineWidths[C[i].line])/2}ne=C[i].line}X!==C[i].ind&&(C[X]&&(s+=C[X].extra),s+=C[i].an/2,X=C[i].ind),s+=w[0]*C[i].an*.005;var ce=0;for(T=0;T<_;T+=1)($=E[T].a).p.propType&&((A=E[T].s.getMult(C[i].anIndexes[T],k.a[T].s.totalChars)).length?ce+=$.p.v[0]*A[0]:ce+=$.p.v[0]*A),$.a.propType&&((A=E[T].s.getMult(C[i].anIndexes[T],k.a[T].s.totalChars)).length?ce+=$.a.v[0]*A[0]:ce+=$.a.v[0]*A);for(c=!0,this._pathData.a.v&&(s=.5*C[0].an+(y-this._pathData.f.v-.5*C[0].an-.5*C[C.length-1].an)*X/(a-1),s+=this._pathData.f.v);c;)u+g>=s+ce||!f?(v=(s+ce-u)/l.partialLength,z=h.point[0]+(l.point[0]-h.point[0])*v,B=h.point[1]+(l.point[1]-h.point[1])*v,S.translate(-w[0]*C[i].an*.005,-w[1]*I*.01),c=!1):f&&(u+=l.partialLength,(d+=1)>=f.length&&(d=0,m[p+=1]?f=m[p].points:x.v.c?(d=0,f=m[p=0].points):(u-=l.partialLength,f=null)),f&&(h=l,g=(l=f[d]).partialLength));N=C[i].an/2-C[i].add,S.translate(-N,0,0)}else N=C[i].an/2-C[i].add,S.translate(-N,0,0),S.translate(-w[0]*C[i].an*.005,-w[1]*I*.01,0);for(T=0;T<_;T+=1)($=E[T].a).t.propType&&(A=E[T].s.getMult(C[i].anIndexes[T],k.a[T].s.totalChars),0===n&&0===e.j||(this._hasMaskedPath?A.length?s+=$.t.v*A[0]:s+=$.t.v*A:A.length?n+=$.t.v*A[0]:n+=$.t.v*A));for(e.strokeWidthAnim&&(q=e.sw||0),e.strokeColorAnim&&(W=e.sc?[e.sc[0],e.sc[1],e.sc[2]]:[0,0,0]),e.fillColorAnim&&e.fc&&(K=[e.fc[0],e.fc[1],e.fc[2]]),T=0;T<_;T+=1)($=E[T].a).a.propType&&((A=E[T].s.getMult(C[i].anIndexes[T],k.a[T].s.totalChars)).length?S.translate(-$.a.v[0]*A[0],-$.a.v[1]*A[1],$.a.v[2]*A[2]):S.translate(-$.a.v[0]*A,-$.a.v[1]*A,$.a.v[2]*A));for(T=0;T<_;T+=1)($=E[T].a).s.propType&&((A=E[T].s.getMult(C[i].anIndexes[T],k.a[T].s.totalChars)).length?S.scale(1+($.s.v[0]-1)*A[0],1+($.s.v[1]-1)*A[1],1):S.scale(1+($.s.v[0]-1)*A,1+($.s.v[1]-1)*A,1));for(T=0;T<_;T+=1){if($=E[T].a,A=E[T].s.getMult(C[i].anIndexes[T],k.a[T].s.totalChars),$.sk.propType&&(A.length?S.skewFromAxis(-$.sk.v*A[0],$.sa.v*A[1]):S.skewFromAxis(-$.sk.v*A,$.sa.v*A)),$.r.propType&&(A.length?S.rotateZ(-$.r.v*A[2]):S.rotateZ(-$.r.v*A)),$.ry.propType&&(A.length?S.rotateY($.ry.v*A[1]):S.rotateY($.ry.v*A)),$.rx.propType&&(A.length?S.rotateX($.rx.v*A[0]):S.rotateX($.rx.v*A)),$.o.propType&&(A.length?U+=($.o.v*A[0]-U)*A[0]:U+=($.o.v*A-U)*A),e.strokeWidthAnim&&$.sw.propType&&(A.length?q+=$.sw.v*A[0]:q+=$.sw.v*A),e.strokeColorAnim&&$.sc.propType)for(H=0;H<3;H+=1)A.length?W[H]+=($.sc.v[H]-W[H])*A[0]:W[H]+=($.sc.v[H]-W[H])*A;if(e.fillColorAnim&&e.fc){if($.fc.propType)for(H=0;H<3;H+=1)A.length?K[H]+=($.fc.v[H]-K[H])*A[0]:K[H]+=($.fc.v[H]-K[H])*A;$.fh.propType&&(K=A.length?V(K,$.fh.v*A[0]):V(K,$.fh.v*A)),$.fs.propType&&(K=A.length?F(K,$.fs.v*A[0]):F(K,$.fs.v*A)),$.fb.propType&&(K=A.length?L(K,$.fb.v*A[0]):L(K,$.fb.v*A))}}for(T=0;T<_;T+=1)($=E[T].a).p.propType&&(A=E[T].s.getMult(C[i].anIndexes[T],k.a[T].s.totalChars),this._hasMaskedPath?A.length?S.translate(0,$.p.v[1]*A[0],-$.p.v[2]*A[1]):S.translate(0,$.p.v[1]*A,-$.p.v[2]*A):A.length?S.translate($.p.v[0]*A[0],$.p.v[1]*A[1],-$.p.v[2]*A[2]):S.translate($.p.v[0]*A,$.p.v[1]*A,-$.p.v[2]*A));if(e.strokeWidthAnim&&(Z=q<0?0:q),e.strokeColorAnim&&(G="rgb("+Math.round(255*W[0])+","+Math.round(255*W[1])+","+Math.round(255*W[2])+")"),e.fillColorAnim&&e.fc&&(Y="rgb("+Math.round(255*K[0])+","+Math.round(255*K[1])+","+Math.round(255*K[2])+")"),this._hasMaskedPath){if(S.translate(0,-e.ls),S.translate(0,w[1]*I*.01+r,0),this._pathData.p.v){b=(l.point[1]-h.point[1])/(l.point[0]-h.point[0]);var de=180*Math.atan(b)/Math.PI;l.point[0]<h.point[0]&&(de+=180),S.rotate(-de*Math.PI/180)}S.translate(z,B,0),s-=w[0]*C[i].an*.005,C[i+1]&&X!==C[i+1].ind&&(s+=C[i].an/2,s+=.001*e.tr*e.finalSize)}else{switch(S.translate(n,r,0),e.ps&&S.translate(e.ps[0],e.ps[1]+e.ascent,0),e.j){case 1:S.translate(C[i].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[C[i].line]),0,0);break;case 2:S.translate(C[i].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[C[i].line])/2,0,0)}S.translate(0,-e.ls),S.translate(N,0,0),S.translate(w[0]*C[i].an*.005,w[1]*I*.01,0),n+=C[i].l+.001*e.tr*e.finalSize}"html"===D?re=S.toCSS():"svg"===D?re=S.to2dCSS():ie=[S.props[0],S.props[1],S.props[2],S.props[3],S.props[4],S.props[5],S.props[6],S.props[7],S.props[8],S.props[9],S.props[10],S.props[11],S.props[12],S.props[13],S.props[14],S.props[15]],J=U}j<=i?(M=new En(J,Z,G,Y,re,ie),this.renderedLetters.push(M),j+=1,this.lettersChangedFlag=!0):(M=this.renderedLetters[i],this.lettersChangedFlag=M.update(J,Z,G,Y,re,ie)||this.lettersChangedFlag)}}},jn.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},jn.prototype.mHelper=new we,jn.prototype.defaultPropsArray=[],c([fe],jn),Cn.prototype.initElement=function(e,t,n){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(e,t,n),this.textProperty=new kn(this,e.t,this.dynamicProperties),this.textAnimator=new jn(e.t,this.renderType,this),this.initTransform(e,t,n),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},Cn.prototype.prepareFrame=function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)},Cn.prototype.createPathShape=function(e,t){var n,r,i=t.length,a="";for(n=0;n<i;n+=1)"sh"===t[n].ty&&(r=t[n].ks.k,a+=bn(r,r.i.length,!0,e));return a},Cn.prototype.updateDocumentData=function(e,t){this.textProperty.updateDocumentData(e,t)},Cn.prototype.canResizeFont=function(e){this.textProperty.canResizeFont(e)},Cn.prototype.setMinimumFontSize=function(e){this.textProperty.setMinimumFontSize(e)},Cn.prototype.applyTextPropertiesToMatrix=function(e,t,n,r,i){switch(e.ps&&t.translate(e.ps[0],e.ps[1]+e.ascent,0),t.translate(0,-e.ls,0),e.j){case 1:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[n]),0,0);break;case 2:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[n])/2,0,0)}t.translate(r,i,0)},Cn.prototype.buildColor=function(e){return"rgb("+Math.round(255*e[0])+","+Math.round(255*e[1])+","+Math.round(255*e[2])+")"},Cn.prototype.emptyProp=new En,Cn.prototype.destroy=function(){};var Rn={shapes:[]};function Pn(e,t,n){this.textSpans=[],this.renderType="svg",this.initElement(e,t,n)}function $n(e,t,n){this.initElement(e,t,n)}function Tn(e,t,n){this.initFrame(),this.initBaseData(e,t,n),this.initFrame(),this.initTransform(e,t,n),this.initHierarchy()}function _n(){}function Mn(){}function An(e,t,n){this.layers=e.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?f(this.layers.length):[],this.initElement(e,t,n),this.tm=e.tm?he.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}function In(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.svgElement=H("svg");var n="";if(t&&t.title){var r=H("title"),i=A();r.setAttribute("id",i),r.textContent=t.title,this.svgElement.appendChild(r),n+=i}if(t&&t.description){var a=H("desc"),o=A();a.setAttribute("id",o),a.textContent=t.description,this.svgElement.appendChild(a),n+=" "+o}n&&this.svgElement.setAttribute("aria-labelledby",n);var s=H("defs");this.svgElement.appendChild(s);var l=H("g");this.svgElement.appendChild(l),this.layerElement=l,this.renderConfig={preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",progressiveLoad:t&&t.progressiveLoad||!1,hideOnTransparent:!(t&&!1===t.hideOnTransparent),viewBoxOnly:t&&t.viewBoxOnly||!1,viewBoxSize:t&&t.viewBoxSize||!1,className:t&&t.className||"",id:t&&t.id||"",focusable:t&&t.focusable,filterSize:{width:t&&t.filterSize&&t.filterSize.width||"100%",height:t&&t.filterSize&&t.filterSize.height||"100%",x:t&&t.filterSize&&t.filterSize.x||"0%",y:t&&t.filterSize&&t.filterSize.y||"0%"},width:t&&t.width,height:t&&t.height,runExpressions:!t||void 0===t.runExpressions||t.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:s,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}return c([Vt,Wt,Qt,en,Nt,tn,Cn],Pn),Pn.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=H("text"))},Pn.prototype.buildTextContents=function(e){for(var t=0,n=e.length,r=[],i="";t<n;)e[t]===String.fromCharCode(13)||e[t]===String.fromCharCode(3)?(r.push(i),i=""):i+=e[t],t+=1;return r.push(i),r},Pn.prototype.buildShapeData=function(e,t){if(e.shapes&&e.shapes.length){var n=e.shapes[0];if(n.it){var r=n.it[n.it.length-1];r.s&&(r.s.k[0]=t,r.s.k[1]=t)}}return e},Pn.prototype.buildNewText=function(){var e,t;this.addDynamicProperty(this);var n=this.textProperty.currentData;this.renderedLetters=f(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 r=this.globalData.fontManager.getFontByName(n.f);if(r.fClass)this.layerElement.setAttribute("class",r.fClass);else{this.layerElement.setAttribute("font-family",r.fFamily);var i=n.fWeight,a=n.fStyle;this.layerElement.setAttribute("font-style",a),this.layerElement.setAttribute("font-weight",i)}this.layerElement.setAttribute("aria-label",n.t);var o,s=n.l||[],l=!!this.globalData.fontManager.chars;t=s.length;var u=this.mHelper,c="",d=this.data.singleShape,p=0,h=0,m=!0,g=.001*n.tr*n.finalSize;if(!d||l||n.sz){var y,v=this.textSpans.length;for(e=0;e<t;e+=1){if(this.textSpans[e]||(this.textSpans[e]={span:null,childSpan:null,glyph:null}),!l||!d||0===e){if(o=v>e?this.textSpans[e].span:H(l?"g":"text"),v<=e){if(o.setAttribute("stroke-linecap","butt"),o.setAttribute("stroke-linejoin","round"),o.setAttribute("stroke-miterlimit","4"),this.textSpans[e].span=o,l){var b=H("g");o.appendChild(b),this.textSpans[e].childSpan=b}this.textSpans[e].span=o,this.layerElement.appendChild(o)}o.style.display="inherit"}if(u.reset(),d&&(s[e].n&&(p=-g,h+=n.yOffset,h+=m?1:0,m=!1),this.applyTextPropertiesToMatrix(n,u,s[e].line,p,h),p+=s[e].l||0,p+=g),l){var x;if(1===(y=this.globalData.fontManager.getCharData(n.finalText[e],r.fStyle,this.globalData.fontManager.getFontByName(n.f).fFamily)).t)x=new An(y.data,this.globalData,this);else{var w=Rn;y.data&&y.data.shapes&&(w=this.buildShapeData(y.data,n.finalSize)),x=new wn(w,this.globalData,this)}if(this.textSpans[e].glyph){var E=this.textSpans[e].glyph;this.textSpans[e].childSpan.removeChild(E.layerElement),E.destroy()}this.textSpans[e].glyph=x,x._debug=!0,x.prepareFrame(0),x.renderFrame(),this.textSpans[e].childSpan.appendChild(x.layerElement),1===y.t&&this.textSpans[e].childSpan.setAttribute("transform","scale("+n.finalSize/100+","+n.finalSize/100+")")}else d&&o.setAttribute("transform","translate("+u.props[12]+","+u.props[13]+")"),o.textContent=s[e].val,o.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}d&&o&&o.setAttribute("d",c)}else{var k=this.textContainer,S="start";switch(n.j){case 1:S="end";break;case 2:S="middle";break;default:S="start"}k.setAttribute("text-anchor",S),k.setAttribute("letter-spacing",g);var D=this.buildTextContents(n.finalText);for(t=D.length,h=n.ps?n.ps[1]+n.ascent:0,e=0;e<t;e+=1)(o=this.textSpans[e].span||H("tspan")).textContent=D[e],o.setAttribute("x",0),o.setAttribute("y",h),o.style.display="inherit",k.appendChild(o),this.textSpans[e]||(this.textSpans[e]={span:null,glyph:null}),this.textSpans[e].span=o,h+=n.finalLineHeight;this.layerElement.appendChild(k)}for(;e<this.textSpans.length;)this.textSpans[e].span.style.display="none",e+=1;this._sizeChanged=!0},Pn.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},Pn.prototype.getValue=function(){var e,t,n=this.textSpans.length;for(this.renderedFrame=this.comp.renderedFrame,e=0;e<n;e+=1)(t=this.textSpans[e].glyph)&&(t.prepareFrame(this.comp.renderedFrame-this.data.st),t._mdf&&(this._mdf=!0))},Pn.prototype.renderInnerContent=function(){if((!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){var e,t;this._sizeChanged=!0;var n,r,i,a=this.textAnimator.renderedLetters,o=this.textProperty.currentData.l;for(t=o.length,e=0;e<t;e+=1)o[e].n||(n=a[e],r=this.textSpans[e].span,(i=this.textSpans[e].glyph)&&i.renderFrame(),n._mdf.m&&r.setAttribute("transform",n.m),n._mdf.o&&r.setAttribute("opacity",n.o),n._mdf.sw&&r.setAttribute("stroke-width",n.sw),n._mdf.sc&&r.setAttribute("stroke",n.sc),n._mdf.fc&&r.setAttribute("fill",n.fc))}},c([nn],$n),$n.prototype.createContent=function(){var e=H("rect");e.setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.layerElement.appendChild(e)},Tn.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},Tn.prototype.renderFrame=function(){},Tn.prototype.getBaseElement=function(){return null},Tn.prototype.destroy=function(){},Tn.prototype.sourceRectAtTime=function(){},Tn.prototype.hide=function(){},c([Vt,Wt,en,Nt],Tn),c([Ut],_n),_n.prototype.createNull=function(e){return new Tn(e,this.globalData,this)},_n.prototype.createShape=function(e){return new wn(e,this.globalData,this)},_n.prototype.createText=function(e){return new Pn(e,this.globalData,this)},_n.prototype.createImage=function(e){return new nn(e,this.globalData,this)},_n.prototype.createSolid=function(e){return new $n(e,this.globalData,this)},_n.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),void 0!==this.renderConfig.focusable&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var t=this.globalData.defs;this.setupGlobalData(e,t),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=e;var n=H("clipPath"),r=H("rect");r.setAttribute("width",e.w),r.setAttribute("height",e.h),r.setAttribute("x",0),r.setAttribute("y",0);var i=A();n.setAttribute("id",i),n.appendChild(r),this.layerElement.setAttribute("clip-path","url("+l()+"#"+i+")"),t.appendChild(n),this.layers=e.layers,this.elements=f(e.layers.length)},_n.prototype.destroy=function(){var e;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var t=this.layers?this.layers.length:0;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},_n.prototype.updateContainerSize=function(){},_n.prototype.findIndexByInd=function(e){var t=0,n=this.layers.length;for(t=0;t<n;t+=1)if(this.layers[t].ind===e)return t;return-1},_n.prototype.buildItem=function(e){var t=this.elements;if(!t[e]&&99!==this.layers[e].ty){t[e]=!0;var n=this.createItem(this.layers[e]);if(t[e]=n,U()&&(0===this.layers[e].ty&&this.globalData.projectInterface.registerComposition(n),n.initExpressions()),this.appendElementInPos(n,e),this.layers[e].tt){var r="tp"in this.layers[e]?this.findIndexByInd(this.layers[e].tp):e-1;if(-1===r)return;if(this.elements[r]&&!0!==this.elements[r]){var i=t[r].getMatte(this.layers[e].tt);n.setMatte(i)}else this.buildItem(r),this.addPendingElement(n)}}},_n.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();if(e.checkParenting(),e.data.tt)for(var t=0,n=this.elements.length;t<n;){if(this.elements[t]===e){var r="tp"in e.data?this.findIndexByInd(e.data.tp):t-1,i=this.elements[r].getMatte(this.layers[t].tt);e.setMatte(i);break}t+=1}}},_n.prototype.renderFrame=function(e){if(this.renderedFrame!==e&&!this.destroyed){var t;null===e?e=this.renderedFrame:this.renderedFrame=e,this.globalData.frameNum=e,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=e,this.globalData._mdf=!1;var n=this.layers.length;for(this.completeLayers||this.checkLayers(e),t=n-1;t>=0;t-=1)(this.completeLayers||this.elements[t])&&this.elements[t].prepareFrame(e-this.layers[t].st);if(this.globalData._mdf)for(t=0;t<n;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()}},_n.prototype.appendElementInPos=function(e,t){var n=e.getBaseElement();if(n){for(var r,i=0;i<t;)this.elements[i]&&!0!==this.elements[i]&&this.elements[i].getBaseElement()&&(r=this.elements[i].getBaseElement()),i+=1;r?this.layerElement.insertBefore(n,r):this.layerElement.appendChild(n)}},_n.prototype.hide=function(){this.layerElement.style.display="none"},_n.prototype.show=function(){this.layerElement.style.display="block"},c([Vt,Wt,en,Nt,tn],Mn),Mn.prototype.initElement=function(e,t,n){this.initFrame(),this.initBaseData(e,t,n),this.initTransform(e,t,n),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),!this.data.xt&&t.progressiveLoad||this.buildAllItems(),this.hide()},Mn.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 t=this.tm.v;t===this.data.op&&(t=this.data.op-1),this.renderedFrame=t}var n,r=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),n=r-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))}},Mn.prototype.renderInnerContent=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},Mn.prototype.setElements=function(e){this.elements=e},Mn.prototype.getElements=function(){return this.elements},Mn.prototype.destroyElements=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy()},Mn.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()},c([_n,Mn,Qt],An),An.prototype.createComp=function(e){return new An(e,this.globalData,this)},c([_n],In),In.prototype.createComp=function(e){return new An(e,this.globalData,this)},te("svg",In),Ve.registerModifier("tm",ze),Ve.registerModifier("pb",Be),Ve.registerModifier("rp",We),Ve.registerModifier("rd",qe),Ve.registerModifier("zz",ct),Ve.registerModifier("op",kt),ke}())}(a,a.exports);var o=a.exports;function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t);else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var h=["animationData","loop","autoplay","initialSegment","onComplete","onLoopComplete","onEnterFrame","onSegmentStart","onConfigReady","onDataReady","onDataFailed","onLoadedImages","onDOMLoaded","onDestroy","lottieRef","renderer","name","assetsPath","rendererSettings"],f=function(e,t){var r=e.animationData,a=e.loop,s=e.autoplay,u=e.initialSegment,p=e.onComplete,f=e.onLoopComplete,m=e.onEnterFrame,g=e.onSegmentStart,y=e.onConfigReady,v=e.onDataReady,b=e.onDataFailed,x=e.onLoadedImages,w=e.onDOMLoaded,E=e.onDestroy;e.lottieRef,e.renderer,e.name,e.assetsPath,e.rendererSettings;var k=c(e,h),S=d(n.useState(!1),2),D=S[0],j=S[1],C=n.useRef(),R=n.useRef(null);return n.useEffect((function(){var t=function(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(R.current){null===(t=C.current)||void 0===t||t.destroy();var r=l(l(l({},e),n),{},{container:R.current});return C.current=o.loadAnimation(r),j(!!C.current),function(){var e;null===(e=C.current)||void 0===e||e.destroy(),C.current=void 0}}}();return function(){return null==t?void 0:t()}}),[r,a]),n.useEffect((function(){C.current&&(C.current.autoplay=!!s)}),[s]),n.useEffect((function(){C.current&&(u?Array.isArray(u)&&u.length&&((C.current.currentRawFrame<u[0]||C.current.currentRawFrame>u[1])&&(C.current.currentRawFrame=u[0]),C.current.setSegment(u[0],u[1])):C.current.resetSegments(!0))}),[u]),n.useEffect((function(){var e=[{name:"complete",handler:p},{name:"loopComplete",handler:f},{name:"enterFrame",handler:m},{name:"segmentStart",handler:g},{name:"config_ready",handler:y},{name:"data_ready",handler:v},{name:"data_failed",handler:b},{name:"loaded_images",handler:x},{name:"DOMLoaded",handler:w},{name:"destroy",handler:E}].filter((function(e){return null!=e.handler}));if(e.length){var t=e.map((function(e){var t;return null===(t=C.current)||void 0===t||t.addEventListener(e.name,e.handler),function(){var t;null===(t=C.current)||void 0===t||t.removeEventListener(e.name,e.handler)}}));return function(){t.forEach((function(e){return e()}))}}}),[p,f,m,g,y,v,b,x,w,E]),{View:i.default.createElement("div",l({style:t,ref:R},k)),play:function(){var e;null===(e=C.current)||void 0===e||e.play()},stop:function(){var e;null===(e=C.current)||void 0===e||e.stop()},pause:function(){var e;null===(e=C.current)||void 0===e||e.pause()},setSpeed:function(e){var t;null===(t=C.current)||void 0===t||t.setSpeed(e)},goToAndStop:function(e,t){var n;null===(n=C.current)||void 0===n||n.goToAndStop(e,t)},goToAndPlay:function(e,t){var n;null===(n=C.current)||void 0===n||n.goToAndPlay(e,t)},setDirection:function(e){var t;null===(t=C.current)||void 0===t||t.setDirection(e)},playSegments:function(e,t){var n;null===(n=C.current)||void 0===n||n.playSegments(e,t)},setSubframe:function(e){var t;null===(t=C.current)||void 0===t||t.setSubframe(e)},getDuration:function(e){var t;return null===(t=C.current)||void 0===t?void 0:t.getDuration(e)},destroy:function(){var e;null===(e=C.current)||void 0===e||e.destroy(),C.current=void 0},animationContainerRef:R,animationLoaded:D,animationItem:C.current}};var m=function(e){var t=e.wrapperRef,r=e.animationItem,i=e.mode,a=e.actions;n.useEffect((function(){var e,n,o=t.current;if(o&&r&&a.length){r.stop();switch(i){case"scroll":return e=null,n=function(){var t=function(e){var t=e.getBoundingClientRect(),n=t.top,r=t.height;return(window.innerHeight-n)/(window.innerHeight+r)}(o),n=a.find((function(e){var n=e.visibility;return n&&t>=n[0]&&t<=n[1]}));if(n){if("seek"===n.type&&n.visibility&&2===n.frames.length){var i=n.frames[0]+Math.ceil((t-n.visibility[0])/(n.visibility[1]-n.visibility[0])*n.frames[1]);
|
|
482
|
+
`,Pf=["airs/clients-carousel/color/bancolombia","airs/clients-carousel/color/itau_colombia","airs/clients-carousel/color/lulo_bank","airs/clients-carousel/color/oxxo_international","airs/clients-carousel/color/interbank","airs/clients-carousel/color/global_bank","airs/clients-carousel/color/gesa","airs/clients-carousel/color/copa_airlines","airs/clients-carousel/color/consubanco","airs/clients-carousel/color/bantrab","airs/clients-carousel/color/banistmo","airs/clients-carousel/color/banco_internacional","airs/clients-carousel/color/banco_general","airs/clients-carousel/color/banbif","airs/clients-carousel/color/avianca"];var $f,Tf={exports:{}},_f=($f||($f=1,function(t,n){var r,i=(r=n)&&"object"==typeof r&&"default"in r?r:{default:r},a=("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e.commonjsGlobal?e.commonjsGlobal:"undefined"!=typeof self&&self,{exports:{}});!function(e,t){"undefined"!=typeof navigator&&(e.exports=function(){var e="http://www.w3.org/2000/svg",n="",r=!1,i=-999999,a=function(e){r=!!e},o=function(){return r},s=function(e){n=e},l=function(){return n};function u(e){return document.createElement(e)}function c(e,t){var n,r,i=e.length;for(n=0;n<i;n+=1)for(var a in r=e[n].prototype)Object.prototype.hasOwnProperty.call(r,a)&&(t.prototype[a]=r[a])}function d(e){function t(){}return t.prototype=e,t}var p=function(){function e(e){this.audios=[],this.audioFactory=e,this._volume=1,this._isMuted=!1}return e.prototype={addAudio:function(e){this.audios.push(e)},pause:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].pause()},resume:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].resume()},setRate:function(e){var t,n=this.audios.length;for(t=0;t<n;t+=1)this.audios[t].setRate(e)},createAudio:function(e){return this.audioFactory?this.audioFactory(e):window.Howl?new window.Howl({src:[e]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(e){this.audioFactory=e},setVolume:function(e){this._volume=e,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].volume(this._volume*(this._isMuted?0:1))}},function(){return new e}}(),h=function(){function e(e,t){var n,r=0,i=[];switch(e){case"int16":case"uint8c":n=1;break;default:n=1.1}for(r=0;r<t;r+=1)i.push(n);return i}function t(t,n){return"float32"===t?new Float32Array(n):"int16"===t?new Int16Array(n):"uint8c"===t?new Uint8ClampedArray(n):e(t,n)}return"function"==typeof Uint8ClampedArray&&"function"==typeof Float32Array?t:e}();function f(e){return Array.apply(null,{length:e})}var m=!0,g=null,y="",v=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),b=Math.pow,x=Math.sqrt,w=Math.floor,E=Math.min,k=150,S=Math.PI/180,D=.5519;function j(e,t,n,r){this.type=e,this.currentTime=t,this.totalTime=n,this.direction=r<0?-1:1}function C(e,t){this.type=e,this.direction=t<0?-1:1}function R(e,t,n,r){this.type=e,this.currentLoop=n,this.totalLoops=t,this.direction=r<0?-1:1}function P(e,t,n){this.type=e,this.firstFrame=t,this.totalFrames=n}function $(e,t){this.type=e,this.target=t}function T(e,t){this.type="renderFrameError",this.nativeError=e,this.currentTime=t}function _(e){this.type="configError",this.nativeError=e}var M,A=(M=0,function(){return y+"__lottie_element_"+(M+=1)});function I(e,t,n){var r,i,a,o,s,l,u,c;switch(l=n*(1-t),u=n*(1-(s=6*e-(o=Math.floor(6*e)))*t),c=n*(1-(1-s)*t),o%6){case 0:r=n,i=c,a=l;break;case 1:r=u,i=n,a=l;break;case 2:r=l,i=n,a=c;break;case 3:r=l,i=u,a=n;break;case 4:r=c,i=l,a=n;break;case 5:r=n,i=l,a=u}return[r,i,a]}function O(e,t,n){var r,i=Math.max(e,t,n),a=Math.min(e,t,n),o=i-a,s=0===i?0:o/i,l=i/255;switch(i){case a:r=0;break;case e:r=t-n+o*(t<n?6:0),r/=6*o;break;case t:r=n-e+2*o,r/=6*o;break;case n:r=e-t+4*o,r/=6*o}return[r,s,l]}function F(e,t){var n=O(255*e[0],255*e[1],255*e[2]);return n[1]+=t,n[1]>1?n[1]=1:n[1]<=0&&(n[1]=0),I(n[0],n[1],n[2])}function L(e,t){var n=O(255*e[0],255*e[1],255*e[2]);return n[2]+=t,n[2]>1?n[2]=1:n[2]<0&&(n[2]=0),I(n[0],n[1],n[2])}function V(e,t){var n=O(255*e[0],255*e[1],255*e[2]);return n[0]+=t/360,n[0]>1?n[0]-=1:n[0]<0&&(n[0]+=1),I(n[0],n[1],n[2])}!function(){var e,t,n=[];for(e=0;e<256;e+=1)t=e.toString(16),n[e]=1===t.length?"0"+t:t}();var N=function(e){m=!!e},z=function(){return m},B=function(e){g=e},U=function(){return g},W=function(e){k=e},q=function(){return k},K=function(e){y=e};function H(t){return document.createElementNS(e,t)}function Z(e){return(Z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var G=function(){var e,t,n=1,r=[],i={onmessage:function(){},postMessage:function(t){e({data:t})}},a={postMessage:function(e){i.onmessage({data:e})}};function s(t){if(window.Worker&&window.Blob&&o()){var n=new Blob(["var _workerSelf = self; self.onmessage = ",t.toString()],{type:"text/javascript"}),r=URL.createObjectURL(n);return new Worker(r)}return e=t,i}function l(){t||((t=s((function(e){function t(){function e(t,n){var o,s,l,u,c,d,p=t.length;for(s=0;s<p;s+=1)if("ks"in(o=t[s])&&!o.completed){if(o.completed=!0,o.hasMask){var h=o.masksProperties;for(u=h.length,l=0;l<u;l+=1)if(h[l].pt.k.i)a(h[l].pt.k);else for(d=h[l].pt.k.length,c=0;c<d;c+=1)h[l].pt.k[c].s&&a(h[l].pt.k[c].s[0]),h[l].pt.k[c].e&&a(h[l].pt.k[c].e[0])}0===o.ty?(o.layers=r(o.refId,n),e(o.layers,n)):4===o.ty?i(o.shapes):5===o.ty&&f(o)}}function t(t,n){if(t){var i=0,a=t.length;for(i=0;i<a;i+=1)1===t[i].t&&(t[i].data.layers=r(t[i].data.refId,n),e(t[i].data.layers,n))}}function n(e,t){for(var n=0,r=t.length;n<r;){if(t[n].id===e)return t[n];n+=1}return null}function r(e,t){var r=n(e,t);return r?r.layers.__used?JSON.parse(JSON.stringify(r.layers)):(r.layers.__used=!0,r.layers):null}function i(e){var t,n,r;for(t=e.length-1;t>=0;t-=1)if("sh"===e[t].ty)if(e[t].ks.k.i)a(e[t].ks.k);else for(r=e[t].ks.k.length,n=0;n<r;n+=1)e[t].ks.k[n].s&&a(e[t].ks.k[n].s[0]),e[t].ks.k[n].e&&a(e[t].ks.k[n].e[0]);else"gr"===e[t].ty&&i(e[t].it)}function a(e){var t,n=e.i.length;for(t=0;t<n;t+=1)e.i[t][0]+=e.v[t][0],e.i[t][1]+=e.v[t][1],e.o[t][0]+=e.v[t][0],e.o[t][1]+=e.v[t][1]}function o(e,t){var n=t?t.split("."):[100,100,100];return e[0]>n[0]||!(n[0]>e[0])&&(e[1]>n[1]||!(n[1]>e[1])&&(e[2]>n[2]||!(n[2]>e[2])&&null))}var s,l=function(){var e=[4,4,14];function t(e){var t=e.t.d;e.t.d={k:[{s:t,t:0}]}}function n(e){var n,r=e.length;for(n=0;n<r;n+=1)5===e[n].ty&&t(e[n])}return function(t){if(o(e,t.v)&&(n(t.layers),t.assets)){var r,i=t.assets.length;for(r=0;r<i;r+=1)t.assets[r].layers&&n(t.assets[r].layers)}}}(),u=(s=[4,7,99],function(e){if(e.chars&&!o(s,e.v)){var t,n=e.chars.length;for(t=0;t<n;t+=1){var r=e.chars[t];r.data&&r.data.shapes&&(i(r.data.shapes),r.data.ip=0,r.data.op=99999,r.data.st=0,r.data.sr=1,r.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}},e.chars[t].t||(r.data.shapes.push({ty:"no"}),r.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"})))}}}),c=function(){var e=[5,7,15];function t(e){var t=e.t.p;"number"==typeof t.a&&(t.a={a:0,k:t.a}),"number"==typeof t.p&&(t.p={a:0,k:t.p}),"number"==typeof t.r&&(t.r={a:0,k:t.r})}function n(e){var n,r=e.length;for(n=0;n<r;n+=1)5===e[n].ty&&t(e[n])}return function(t){if(o(e,t.v)&&(n(t.layers),t.assets)){var r,i=t.assets.length;for(r=0;r<i;r+=1)t.assets[r].layers&&n(t.assets[r].layers)}}}(),d=function(){var e=[4,1,9];function t(e){var n,r,i,a=e.length;for(n=0;n<a;n+=1)if("gr"===e[n].ty)t(e[n].it);else if("fl"===e[n].ty||"st"===e[n].ty)if(e[n].c.k&&e[n].c.k[0].i)for(i=e[n].c.k.length,r=0;r<i;r+=1)e[n].c.k[r].s&&(e[n].c.k[r].s[0]/=255,e[n].c.k[r].s[1]/=255,e[n].c.k[r].s[2]/=255,e[n].c.k[r].s[3]/=255),e[n].c.k[r].e&&(e[n].c.k[r].e[0]/=255,e[n].c.k[r].e[1]/=255,e[n].c.k[r].e[2]/=255,e[n].c.k[r].e[3]/=255);else e[n].c.k[0]/=255,e[n].c.k[1]/=255,e[n].c.k[2]/=255,e[n].c.k[3]/=255}function n(e){var n,r=e.length;for(n=0;n<r;n+=1)4===e[n].ty&&t(e[n].shapes)}return function(t){if(o(e,t.v)&&(n(t.layers),t.assets)){var r,i=t.assets.length;for(r=0;r<i;r+=1)t.assets[r].layers&&n(t.assets[r].layers)}}}(),p=function(){var e=[4,4,18];function t(e){var n,r,i;for(n=e.length-1;n>=0;n-=1)if("sh"===e[n].ty)if(e[n].ks.k.i)e[n].ks.k.c=e[n].closed;else for(i=e[n].ks.k.length,r=0;r<i;r+=1)e[n].ks.k[r].s&&(e[n].ks.k[r].s[0].c=e[n].closed),e[n].ks.k[r].e&&(e[n].ks.k[r].e[0].c=e[n].closed);else"gr"===e[n].ty&&t(e[n].it)}function n(e){var n,r,i,a,o,s,l=e.length;for(r=0;r<l;r+=1){if((n=e[r]).hasMask){var u=n.masksProperties;for(a=u.length,i=0;i<a;i+=1)if(u[i].pt.k.i)u[i].pt.k.c=u[i].cl;else for(s=u[i].pt.k.length,o=0;o<s;o+=1)u[i].pt.k[o].s&&(u[i].pt.k[o].s[0].c=u[i].cl),u[i].pt.k[o].e&&(u[i].pt.k[o].e[0].c=u[i].cl)}4===n.ty&&t(n.shapes)}}return function(t){if(o(e,t.v)&&(n(t.layers),t.assets)){var r,i=t.assets.length;for(r=0;r<i;r+=1)t.assets[r].layers&&n(t.assets[r].layers)}}}();function h(n){n.__complete||(d(n),l(n),u(n),c(n),p(n),e(n.layers,n.assets),t(n.chars,n.assets),n.__complete=!0)}function f(e){0===e.t.a.length&&e.t.p}var m={};return m.completeData=h,m.checkColors=d,m.checkChars=u,m.checkPathProperties=c,m.checkShapes=p,m.completeLayers=e,m}if(a.dataManager||(a.dataManager=t()),a.assetLoader||(a.assetLoader=function(){function e(e){var t=e.getResponseHeader("content-type");return t&&"json"===e.responseType&&-1!==t.indexOf("json")||e.response&&"object"===Z(e.response)?e.response:e.response&&"string"==typeof e.response?JSON.parse(e.response):e.responseText?JSON.parse(e.responseText):null}function t(t,n,r,i){var a,o=new XMLHttpRequest;try{o.responseType="json"}catch(s){}o.onreadystatechange=function(){if(4===o.readyState)if(200===o.status)a=e(o),r(a);else try{a=e(o),r(a)}catch(s){i&&i(s)}};try{o.open(["G","E","T"].join(""),t,!0)}catch(s){o.open(["G","E","T"].join(""),n+"/"+t,!0)}o.send()}return{load:t}}()),"loadAnimation"===e.data.type)a.assetLoader.load(e.data.path,e.data.fullPath,(function(t){a.dataManager.completeData(t),a.postMessage({id:e.data.id,payload:t,status:"success"})}),(function(){a.postMessage({id:e.data.id,status:"error"})}));else if("complete"===e.data.type){var n=e.data.animation;a.dataManager.completeData(n),a.postMessage({id:e.data.id,payload:n,status:"success"})}else"loadData"===e.data.type&&a.assetLoader.load(e.data.path,e.data.fullPath,(function(t){a.postMessage({id:e.data.id,payload:t,status:"success"})}),(function(){a.postMessage({id:e.data.id,status:"error"})}))}))).onmessage=function(e){var t=e.data,n=t.id,i=r[n];r[n]=null,"success"===t.status?i.onComplete(t.payload):i.onError&&i.onError()})}function u(e,t){var i="processId_"+(n+=1);return r[i]={onComplete:e,onError:t},i}function c(e,n,r){l();var i=u(n,r);t.postMessage({type:"loadAnimation",path:e,fullPath:window.location.origin+window.location.pathname,id:i})}function d(e,n,r){l();var i=u(n,r);t.postMessage({type:"loadData",path:e,fullPath:window.location.origin+window.location.pathname,id:i})}function p(e,n,r){l();var i=u(n,r);t.postMessage({type:"complete",animation:e,id:i})}return{loadAnimation:c,loadData:d,completeAnimation:p}}(),Y=function(){var e=function(){var e=u("canvas");e.width=1,e.height=1;var t=e.getContext("2d");return t.fillStyle="rgba(0,0,0,0)",t.fillRect(0,0,1,1),e}();function t(){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 r(e,t,n){var r="";if(e.e)r=e.p;else if(t){var i=e.p;-1!==i.indexOf("images/")&&(i=i.split("/")[1]),r=t+i}else r=n,r+=e.u?e.u:"",r+=e.p;return r}function i(e){var t=0,n=setInterval(function(){(e.getBBox().width||t>500)&&(this._imageLoaded(),clearInterval(n)),t+=1}.bind(this),50)}function a(t){var n=r(t,this.assetsPath,this.path),i=H("image");v?this.testImageLoaded(i):i.addEventListener("load",this._imageLoaded,!1),i.addEventListener("error",function(){a.img=e,this._imageLoaded()}.bind(this),!1),i.setAttributeNS("http://www.w3.org/1999/xlink","href",n),this._elementHelper.append?this._elementHelper.append(i):this._elementHelper.appendChild(i);var a={img:i,assetData:t};return a}function o(t){var n=r(t,this.assetsPath,this.path),i=u("img");i.crossOrigin="anonymous",i.addEventListener("load",this._imageLoaded,!1),i.addEventListener("error",function(){a.img=e,this._imageLoaded()}.bind(this),!1),i.src=n;var a={img:i,assetData:t};return a}function s(e){var t={assetData:e},n=r(e,this.assetsPath,this.path);return G.loadData(n,function(e){t.img=e,this._footageLoaded()}.bind(this),function(){t.img={},this._footageLoaded()}.bind(this)),t}function l(e,t){var n;this.imagesLoadedCb=t;var r=e.length;for(n=0;n<r;n+=1)e[n].layers||(e[n].t&&"seq"!==e[n].t?3===e[n].t&&(this.totalFootages+=1,this.images.push(this.createFootageData(e[n]))):(this.totalImages+=1,this.images.push(this._createImageData(e[n]))))}function c(e){this.path=e||""}function d(e){this.assetsPath=e||""}function p(e){for(var t=0,n=this.images.length;t<n;){if(this.images[t].assetData===e)return this.images[t].img;t+=1}return null}function h(){this.imagesLoadedCb=null,this.images.length=0}function f(){return this.totalImages===this.loadedAssets}function m(){return this.totalFootages===this.loadedFootagesCount}function g(e,t){"svg"===e?(this._elementHelper=t,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function y(){this._imageLoaded=t.bind(this),this._footageLoaded=n.bind(this),this.testImageLoaded=i.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 y.prototype={loadAssets:l,setAssetsPath:d,setPath:c,loadedImages:f,loadedFootages:m,destroy:h,getAsset:p,createImgData:o,createImageData:a,imageLoaded:t,footageLoaded:n,setCacheType:g},y}();function J(){}J.prototype={triggerEvent:function(e,t){if(this._cbs[e])for(var n=this._cbs[e],r=0;r<n.length;r+=1)n[r](t)},addEventListener:function(e,t){return this._cbs[e]||(this._cbs[e]=[]),this._cbs[e].push(t),function(){this.removeEventListener(e,t)}.bind(this)},removeEventListener:function(e,t){if(t){if(this._cbs[e]){for(var n=0,r=this._cbs[e].length;n<r;)this._cbs[e][n]===t&&(this._cbs[e].splice(n,1),n-=1,r-=1),n+=1;this._cbs[e].length||(this._cbs[e]=null)}}else this._cbs[e]=null}};var X=function(){function e(e){for(var t,n=e.split("\r\n"),r={},i=0,a=0;a<n.length;a+=1)2===(t=n[a].split(":")).length&&(r[t[0]]=t[1].trim(),i+=1);if(0===i)throw new Error;return r}return function(t){for(var n=[],r=0;r<t.length;r+=1){var i=t[r],a={time:i.tm,duration:i.dr};try{a.payload=JSON.parse(t[r].cm)}catch(o){try{a.payload=e(t[r].cm)}catch(s){a.payload={name:t[r].cm}}}n.push(a)}return n}}(),Q=function(){function e(e){this.compositions.push(e)}return function(){function t(e){for(var t=0,n=this.compositions.length;t<n;){if(this.compositions[t].data&&this.compositions[t].data.nm===e)return this.compositions[t].prepareFrame&&this.compositions[t].data.xt&&this.compositions[t].prepareFrame(this.currentFrame),this.compositions[t].compInterface;t+=1}return null}return t.compositions=[],t.currentFrame=0,t.registerComposition=e,t}}(),ee={},te=function(e,t){ee[e]=t};function ne(e){return ee[e]}function re(e){return(re="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var ie=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=A(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=z(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=Q(),this.imagePreloader=new Y,this.audioController=p(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new j("drawnFrame",0,0,0)};c([J],ie),ie.prototype.setParams=function(e){(e.wrapper||e.container)&&(this.wrapper=e.wrapper||e.container);var t="svg";e.animType?t=e.animType:e.renderer&&(t=e.renderer);var n=ne(t);this.renderer=new n(this,e.rendererSettings),this.imagePreloader.setCacheType(t,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=t,""===e.loop||null===e.loop||void 0===e.loop||!0===e.loop?this.loop=!0:!1===e.loop?this.loop=!1:this.loop=parseInt(e.loop,10),this.autoplay=!("autoplay"in e)||e.autoplay,this.name=e.name?e.name:"",this.autoloadSegments=!Object.prototype.hasOwnProperty.call(e,"autoloadSegments")||e.autoloadSegments,this.assetsPath=e.assetsPath,this.initialSegment=e.initialSegment,e.audioFactory&&this.audioController.setAudioFactory(e.audioFactory),e.animationData?this.setupAnimation(e.animationData):e.path&&(-1!==e.path.lastIndexOf("\\")?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")),G.loadAnimation(e.path,this.configAnimation,this.onSetupError))},ie.prototype.onSetupError=function(){this.trigger("data_failed")},ie.prototype.setupAnimation=function(e){G.completeAnimation(e,this.configAnimation)},ie.prototype.setData=function(e,t){t&&"object"!==re(t)&&(t=JSON.parse(t));var n={wrapper:e,animationData:t},r=e.attributes;n.path=r.getNamedItem("data-animation-path")?r.getNamedItem("data-animation-path").value:r.getNamedItem("data-bm-path")?r.getNamedItem("data-bm-path").value:r.getNamedItem("bm-path")?r.getNamedItem("bm-path").value:"",n.animType=r.getNamedItem("data-anim-type")?r.getNamedItem("data-anim-type").value:r.getNamedItem("data-bm-type")?r.getNamedItem("data-bm-type").value:r.getNamedItem("bm-type")?r.getNamedItem("bm-type").value:r.getNamedItem("data-bm-renderer")?r.getNamedItem("data-bm-renderer").value:r.getNamedItem("bm-renderer")?r.getNamedItem("bm-renderer").value:"canvas";var i=r.getNamedItem("data-anim-loop")?r.getNamedItem("data-anim-loop").value:r.getNamedItem("data-bm-loop")?r.getNamedItem("data-bm-loop").value:r.getNamedItem("bm-loop")?r.getNamedItem("bm-loop").value:"";"false"===i?n.loop=!1:"true"===i?n.loop=!0:""!==i&&(n.loop=parseInt(i,10));var a=r.getNamedItem("data-anim-autoplay")?r.getNamedItem("data-anim-autoplay").value:r.getNamedItem("data-bm-autoplay")?r.getNamedItem("data-bm-autoplay").value:!r.getNamedItem("bm-autoplay")||r.getNamedItem("bm-autoplay").value;n.autoplay="false"!==a,n.name=r.getNamedItem("data-name")?r.getNamedItem("data-name").value:r.getNamedItem("data-bm-name")?r.getNamedItem("data-bm-name").value:r.getNamedItem("bm-name")?r.getNamedItem("bm-name").value:"","false"===(r.getNamedItem("data-anim-prerender")?r.getNamedItem("data-anim-prerender").value:r.getNamedItem("data-bm-prerender")?r.getNamedItem("data-bm-prerender").value:r.getNamedItem("bm-prerender")?r.getNamedItem("bm-prerender").value:"")&&(n.prerender=!1),this.setParams(n)},ie.prototype.includeLayers=function(e){e.op>this.animationData.op&&(this.animationData.op=e.op,this.totalFrames=Math.floor(e.op-this.animationData.ip));var t,n,r=this.animationData.layers,i=r.length,a=e.layers,o=a.length;for(n=0;n<o;n+=1)for(t=0;t<i;){if(r[t].id===a[n].id){r[t]=a[n];break}t+=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(i=e.assets.length,t=0;t<i;t+=1)this.animationData.assets.push(e.assets[t]);this.animationData.__complete=!1,G.completeAnimation(this.animationData,this.onSegmentComplete)},ie.prototype.onSegmentComplete=function(e){this.animationData=e;var t=U();t&&t.initExpressions(this),this.loadNextSegment()},ie.prototype.loadNextSegment=function(){var e=this.animationData.segments;if(!e||0===e.length||!this.autoloadSegments)return this.trigger("data_ready"),void(this.timeCompleted=this.totalFrames);var t=e.shift();this.timeCompleted=t.time*this.frameRate;var n=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,G.loadData(n,this.includeLayers.bind(this),function(){this.trigger("data_failed")}.bind(this))},ie.prototype.loadSegments=function(){this.animationData.segments||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},ie.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},ie.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},ie.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=X(e.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(t){this.triggerConfigError(t)}},ie.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},ie.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||"canvas"!==this.renderer.rendererType)&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var e=U();e&&e.initExpressions(this),this.renderer.initItems(),setTimeout(function(){this.trigger("DOMLoaded")}.bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},ie.prototype.resize=function(e,t){var n="number"==typeof e?e:void 0,r="number"==typeof t?t:void 0;this.renderer.updateContainerSize(n,r)},ie.prototype.setSubframe=function(e){this.isSubframeEnabled=!!e},ie.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")},ie.prototype.renderFrame=function(){if(!1!==this.isLoaded&&this.renderer)try{this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(e){this.triggerRenderFrameError(e)}},ie.prototype.play=function(e){e&&this.name!==e||!0===this.isPaused&&(this.isPaused=!1,this.trigger("_pause"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},ie.prototype.pause=function(e){e&&this.name!==e||!1===this.isPaused&&(this.isPaused=!0,this.trigger("_play"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},ie.prototype.togglePause=function(e){e&&this.name!==e||(!0===this.isPaused?this.play():this.pause())},ie.prototype.stop=function(e){e&&this.name!==e||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},ie.prototype.getMarkerData=function(e){for(var t,n=0;n<this.markers.length;n+=1)if((t=this.markers[n]).payload&&t.payload.name===e)return t;return null},ie.prototype.goToAndStop=function(e,t,n){if(!n||this.name===n){var r=Number(e);if(isNaN(r)){var i=this.getMarkerData(e);i&&this.goToAndStop(i.time,!0)}else t?this.setCurrentRawFrameValue(e):this.setCurrentRawFrameValue(e*this.frameModifier);this.pause()}},ie.prototype.goToAndPlay=function(e,t,n){if(!n||this.name===n){var r=Number(e);if(isNaN(r)){var i=this.getMarkerData(e);i&&(i.duration?this.playSegments([i.time,i.time+i.duration],!0):this.goToAndStop(i.time,!0))}else this.goToAndStop(r,t,n);this.play()}},ie.prototype.advanceTime=function(e){if(!0!==this.isPaused&&!1!==this.isLoaded){var t=this.currentRawFrame+e*this.frameModifier,n=!1;t>=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?t>=this.totalFrames?(this.playCount+=1,this.checkSegments(t%this.totalFrames)||(this.setCurrentRawFrameValue(t%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(t):this.checkSegments(t>this.totalFrames?t%this.totalFrames:0)||(n=!0,t=this.totalFrames-1):t<0?this.checkSegments(t%this.totalFrames)||(!this.loop||this.playCount--<=0&&!0!==this.loop?(n=!0,t=0):(this.setCurrentRawFrameValue(this.totalFrames+t%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(t),n&&(this.setCurrentRawFrameValue(t),this.pause(),this.trigger("complete"))}},ie.prototype.adjustSegment=function(e,t){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-t)):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+t)),this.trigger("segmentStart")},ie.prototype.setSegment=function(e,t){var n=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<e?n=e:this.currentRawFrame+this.firstFrame>t&&(n=t-e)),this.firstFrame=e,this.totalFrames=t-e,this.timeCompleted=this.totalFrames,-1!==n&&this.goToAndStop(n,!0)},ie.prototype.playSegments=function(e,t){if(t&&(this.segments.length=0),"object"===re(e[0])){var n,r=e.length;for(n=0;n<r;n+=1)this.segments.push(e[n])}else this.segments.push(e);this.segments.length&&t&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},ie.prototype.resetSegments=function(e){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),e&&this.checkSegments(0)},ie.prototype.checkSegments=function(e){return!!this.segments.length&&(this.adjustSegment(this.segments.shift(),e),!0)},ie.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.renderer=null,this.imagePreloader=null,this.projectInterface=null)},ie.prototype.setCurrentRawFrameValue=function(e){this.currentRawFrame=e,this.gotoFrame()},ie.prototype.setSpeed=function(e){this.playSpeed=e,this.updaFrameModifier()},ie.prototype.setDirection=function(e){this.playDirection=e<0?-1:1,this.updaFrameModifier()},ie.prototype.setLoop=function(e){this.loop=e},ie.prototype.setVolume=function(e,t){t&&this.name!==t||this.audioController.setVolume(e)},ie.prototype.getVolume=function(){return this.audioController.getVolume()},ie.prototype.mute=function(e){e&&this.name!==e||this.audioController.mute()},ie.prototype.unmute=function(e){e&&this.name!==e||this.audioController.unmute()},ie.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},ie.prototype.getPath=function(){return this.path},ie.prototype.getAssetsPath=function(e){var t="";if(e.e)t=e.p;else if(this.assetsPath){var n=e.p;-1!==n.indexOf("images/")&&(n=n.split("/")[1]),t=this.assetsPath+n}else t=this.path,t+=e.u?e.u:"",t+=e.p;return t},ie.prototype.getAssetData=function(e){for(var t=0,n=this.assets.length;t<n;){if(e===this.assets[t].id)return this.assets[t];t+=1}return null},ie.prototype.hide=function(){this.renderer.hide()},ie.prototype.show=function(){this.renderer.show()},ie.prototype.getDuration=function(e){return e?this.totalFrames:this.totalFrames/this.frameRate},ie.prototype.updateDocumentData=function(e,t,n){try{this.renderer.getElementByPath(e).updateDocumentData(t,n)}catch(r){}},ie.prototype.trigger=function(e){if(this._cbs&&this._cbs[e])switch(e){case"enterFrame":this.triggerEvent(e,new j(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 R(e,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(e,new C(e,this.frameMult));break;case"segmentStart":this.triggerEvent(e,new P(e,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(e,new $(e,this));break;default:this.triggerEvent(e)}"enterFrame"===e&&this.onEnterFrame&&this.onEnterFrame.call(this,new j(e,this.currentFrame,this.totalFrames,this.frameMult)),"loopComplete"===e&&this.onLoopComplete&&this.onLoopComplete.call(this,new R(e,this.loop,this.playCount,this.frameMult)),"complete"===e&&this.onComplete&&this.onComplete.call(this,new C(e,this.frameMult)),"segmentStart"===e&&this.onSegmentStart&&this.onSegmentStart.call(this,new P(e,this.firstFrame,this.totalFrames)),"destroy"===e&&this.onDestroy&&this.onDestroy.call(this,new $(e,this))},ie.prototype.triggerRenderFrameError=function(e){var t=new T(e,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)},ie.prototype.triggerConfigError=function(e){var t=new _(e,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)};var ae=function(){var e={},t=[],n=0,r=0,i=0,a=!0,o=!1;function s(e){for(var n=0,i=e.target;n<r;)t[n].animation===i&&(t.splice(n,1),n-=1,r-=1,i.isPaused||p()),n+=1}function l(e,n){if(!e)return null;for(var i=0;i<r;){if(t[i].elem===e&&null!==t[i].elem)return t[i].animation;i+=1}var a=new ie;return h(a,e),a.setData(e,n),a}function c(){var e,n=t.length,r=[];for(e=0;e<n;e+=1)r.push(t[e].animation);return r}function d(){i+=1,C()}function p(){i-=1}function h(e,n){e.addEventListener("destroy",s),e.addEventListener("_active",d),e.addEventListener("_idle",p),t.push({elem:n,animation:e}),r+=1}function f(e){var t=new ie;return h(t,null),t.setParams(e),t}function m(e,n){var i;for(i=0;i<r;i+=1)t[i].animation.setSpeed(e,n)}function g(e,n){var i;for(i=0;i<r;i+=1)t[i].animation.setDirection(e,n)}function y(e){var n;for(n=0;n<r;n+=1)t[n].animation.play(e)}function v(e){var s,l=e-n;for(s=0;s<r;s+=1)t[s].animation.advanceTime(l);n=e,i&&!o?window.requestAnimationFrame(v):a=!0}function b(e){n=e,window.requestAnimationFrame(v)}function x(e){var n;for(n=0;n<r;n+=1)t[n].animation.pause(e)}function w(e,n,i){var a;for(a=0;a<r;a+=1)t[a].animation.goToAndStop(e,n,i)}function E(e){var n;for(n=0;n<r;n+=1)t[n].animation.stop(e)}function k(e){var n;for(n=0;n<r;n+=1)t[n].animation.togglePause(e)}function S(e){var n;for(n=r-1;n>=0;n-=1)t[n].animation.destroy(e)}function D(e,t,n){var r,i=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),a=i.length;for(r=0;r<a;r+=1)n&&i[r].setAttribute("data-bm-type",n),l(i[r],e);if(t&&0===a){n||(n="svg");var o=document.getElementsByTagName("body")[0];o.innerText="";var s=u("div");s.style.width="100%",s.style.height="100%",s.setAttribute("data-bm-type",n),o.appendChild(s),l(s,e)}}function j(){var e;for(e=0;e<r;e+=1)t[e].animation.resize()}function C(){!o&&i&&a&&(window.requestAnimationFrame(b),a=!1)}function R(){o=!0}function P(){o=!1,C()}function $(e,n){var i;for(i=0;i<r;i+=1)t[i].animation.setVolume(e,n)}function T(e){var n;for(n=0;n<r;n+=1)t[n].animation.mute(e)}function _(e){var n;for(n=0;n<r;n+=1)t[n].animation.unmute(e)}return e.registerAnimation=l,e.loadAnimation=f,e.setSpeed=m,e.setDirection=g,e.play=y,e.pause=x,e.stop=E,e.togglePause=k,e.searchAnimations=D,e.resize=j,e.goToAndStop=w,e.destroy=S,e.freeze=R,e.unfreeze=P,e.setVolume=$,e.mute=T,e.unmute=_,e.getRegisteredAnimations=c,e}(),oe=function(){var e={};e.getBezierEasing=n;var t={};function n(e,n,r,i,a){var o=a||("bez_"+e+"_"+n+"_"+r+"_"+i).replace(/\./g,"p");if(t[o])return t[o];var s=new y([e,n,r,i]);return t[o]=s,s}var r=4,i=.001,a=1e-7,o=10,s=11,l=1/(s-1),u="function"==typeof Float32Array;function c(e,t){return 1-3*t+3*e}function d(e,t){return 3*t-6*e}function p(e){return 3*e}function h(e,t,n){return((c(t,n)*e+d(t,n))*e+p(t))*e}function f(e,t,n){return 3*c(t,n)*e*e+2*d(t,n)*e+p(t)}function m(e,t,n,r,i){var s,l,u=0;do{(s=h(l=t+(n-t)/2,r,i)-e)>0?n=l:t=l}while(Math.abs(s)>a&&++u<o);return l}function g(e,t,n,i){for(var a=0;a<r;++a){var o=f(t,n,i);if(0===o)return t;t-=(h(t,n,i)-e)/o}return t}function y(e){this._p=e,this._mSampleValues=u?new Float32Array(s):new Array(s),this._precomputed=!1,this.get=this.get.bind(this)}return y.prototype={get:function(e){var t=this._p[0],n=this._p[1],r=this._p[2],i=this._p[3];return this._precomputed||this._precompute(),t===n&&r===i?e:0===e?0:1===e?1:h(this._getTForX(e),n,i)},_precompute:function(){var e=this._p[0],t=this._p[1],n=this._p[2],r=this._p[3];this._precomputed=!0,e===t&&n===r||this._calcSampleValues()},_calcSampleValues:function(){for(var e=this._p[0],t=this._p[2],n=0;n<s;++n)this._mSampleValues[n]=h(n*l,e,t)},_getTForX:function(e){for(var t=this._p[0],n=this._p[2],r=this._mSampleValues,a=0,o=1,u=s-1;o!==u&&r[o]<=e;++o)a+=l;var c=a+(e-r[--o])/(r[o+1]-r[o])*l,d=f(c,t,n);return d>=i?g(e,c,t,n):0===d?c:m(e,a,a+l,t,n)}},e}(),se=function(){function e(e){return e.concat(f(e.length))}return{double:e}}(),le=function(e,t,n){var r=0,i=e,a=f(i);function o(){return r?a[r-=1]:t()}function s(e){r===i&&(a=se.double(a),i*=2),n&&n(e),a[r]=e,r+=1}return{newElement:o,release:s}},ue=function(){function e(){return{addedLength:0,percents:h("float32",q()),lengths:h("float32",q())}}return le(8,e)}(),ce=function(){function e(){return{lengths:[],totalLength:0}}function t(e){var t,n=e.lengths.length;for(t=0;t<n;t+=1)ue.release(e.lengths[t]);e.lengths.length=0}return le(8,e,t)}();function de(){var e=Math;function t(e,t,n,r,i,a){var o=e*r+t*i+n*a-i*r-a*e-n*t;return o>-.001&&o<.001}function n(n,r,i,a,o,s,l,u,c){if(0===i&&0===s&&0===c)return t(n,r,a,o,l,u);var d,p=e.sqrt(e.pow(a-n,2)+e.pow(o-r,2)+e.pow(s-i,2)),h=e.sqrt(e.pow(l-n,2)+e.pow(u-r,2)+e.pow(c-i,2)),f=e.sqrt(e.pow(l-a,2)+e.pow(u-o,2)+e.pow(c-s,2));return(d=p>h?p>f?p-h-f:f-h-p:f>h?f-h-p:h-p-f)>-1e-4&&d<1e-4}var r=function(e,t,n,r){var i,a,o,s,l,u,c=q(),d=0,p=[],h=[],f=ue.newElement();for(o=n.length,i=0;i<c;i+=1){for(l=i/(c-1),u=0,a=0;a<o;a+=1)s=b(1-l,3)*e[a]+3*b(1-l,2)*l*n[a]+3*(1-l)*b(l,2)*r[a]+b(l,3)*t[a],p[a]=s,null!==h[a]&&(u+=b(p[a]-h[a],2)),h[a]=p[a];u&&(d+=u=x(u)),f.percents[i]=l,f.lengths[i]=d}return f.addedLength=d,f};function i(e){var t,n=ce.newElement(),i=e.c,a=e.v,o=e.o,s=e.i,l=e._length,u=n.lengths,c=0;for(t=0;t<l-1;t+=1)u[t]=r(a[t],a[t+1],o[t],s[t+1]),c+=u[t].addedLength;return i&&l&&(u[t]=r(a[t],a[0],o[t],s[0]),c+=u[t].addedLength),n.totalLength=c,n}function a(e){this.segmentLength=0,this.points=new Array(e)}function o(e,t){this.partialLength=e,this.point=t}var s,l=(s={},function(e,n,r,i){var l=(e[0]+"_"+e[1]+"_"+n[0]+"_"+n[1]+"_"+r[0]+"_"+r[1]+"_"+i[0]+"_"+i[1]).replace(/\./g,"p");if(!s[l]){var u,c,d,p,h,m,g,y=q(),v=0,w=null;2===e.length&&(e[0]!==n[0]||e[1]!==n[1])&&t(e[0],e[1],n[0],n[1],e[0]+r[0],e[1]+r[1])&&t(e[0],e[1],n[0],n[1],n[0]+i[0],n[1]+i[1])&&(y=2);var E=new a(y);for(d=r.length,u=0;u<y;u+=1){for(g=f(d),h=u/(y-1),m=0,c=0;c<d;c+=1)p=b(1-h,3)*e[c]+3*b(1-h,2)*h*(e[c]+r[c])+3*(1-h)*b(h,2)*(n[c]+i[c])+b(h,3)*n[c],g[c]=p,null!==w&&(m+=b(g[c]-w[c],2));v+=m=x(m),E.points[u]=new o(m,g),w=g}E.segmentLength=v,s[l]=E}return s[l]});function u(e,t){var n=t.percents,r=t.lengths,i=n.length,a=w((i-1)*e),o=e*t.addedLength,s=0;if(a===i-1||0===a||o===r[a])return n[a];for(var l=r[a]>o?-1:1,u=!0;u;)if(r[a]<=o&&r[a+1]>o?(s=(o-r[a])/(r[a+1]-r[a]),u=!1):a+=l,a<0||a>=i-1){if(a===i-1)return n[a];u=!1}return n[a]+(n[a+1]-n[a])*s}function c(t,n,r,i,a,o){var s=u(a,o),l=1-s;return[e.round(1e3*(l*l*l*t[0]+(s*l*l+l*s*l+l*l*s)*r[0]+(s*s*l+l*s*s+s*l*s)*i[0]+s*s*s*n[0]))/1e3,e.round(1e3*(l*l*l*t[1]+(s*l*l+l*s*l+l*l*s)*r[1]+(s*s*l+l*s*s+s*l*s)*i[1]+s*s*s*n[1]))/1e3]}var d=h("float32",8);function p(t,n,r,i,a,o,s){a<0?a=0:a>1&&(a=1);var l,c=u(a,s),p=u(o=o>1?1:o,s),h=t.length,f=1-c,m=1-p,g=f*f*f,y=c*f*f*3,v=c*c*f*3,b=c*c*c,x=f*f*m,w=c*f*m+f*c*m+f*f*p,E=c*c*m+f*c*p+c*f*p,k=c*c*p,S=f*m*m,D=c*m*m+f*p*m+f*m*p,j=c*p*m+f*p*p+c*m*p,C=c*p*p,R=m*m*m,P=p*m*m+m*p*m+m*m*p,$=p*p*m+m*p*p+p*m*p,T=p*p*p;for(l=0;l<h;l+=1)d[4*l]=e.round(1e3*(g*t[l]+y*r[l]+v*i[l]+b*n[l]))/1e3,d[4*l+1]=e.round(1e3*(x*t[l]+w*r[l]+E*i[l]+k*n[l]))/1e3,d[4*l+2]=e.round(1e3*(S*t[l]+D*r[l]+j*i[l]+C*n[l]))/1e3,d[4*l+3]=e.round(1e3*(R*t[l]+P*r[l]+$*i[l]+T*n[l]))/1e3;return d}return{getSegmentsLength:i,getNewSegment:p,getPointInSegment:c,buildBezierData:l,pointOnLine2D:t,pointOnLine3D:n}}var pe=de(),he=function(){var e=i,t=Math.abs;function n(e,t){var n,i=this.offsetTime;"multidimensional"===this.propType&&(n=h("float32",this.pv.length));for(var s,l,u,c,d,p,f,m,g,y=t.lastIndex,v=y,b=this.keyframes.length-1,x=!0;x;){if(s=this.keyframes[v],l=this.keyframes[v+1],v===b-1&&e>=l.t-i){s.h&&(s=l),y=0;break}if(l.t-i>e){y=v;break}v<b-1?v+=1:(y=0,x=!1)}u=this.keyframesMetadata[v]||{};var w,E=l.t-i,k=s.t-i;if(s.to){u.bezierData||(u.bezierData=pe.buildBezierData(s.s,l.s||s.e,s.to,s.ti));var S=u.bezierData;if(e>=E||e<k){var D=e>=E?S.points.length-1:0;for(d=S.points[D].point.length,c=0;c<d;c+=1)n[c]=S.points[D].point[c]}else{u.__fnct?g=u.__fnct:(g=oe.getBezierEasing(s.o.x,s.o.y,s.i.x,s.i.y,s.n).get,u.__fnct=g),p=g((e-k)/(E-k));var j,C=S.segmentLength*p,R=t.lastFrame<e&&t._lastKeyframeIndex===v?t._lastAddedLength:0;for(m=t.lastFrame<e&&t._lastKeyframeIndex===v?t._lastPoint:0,x=!0,f=S.points.length;x;){if(R+=S.points[m].partialLength,0===C||0===p||m===S.points.length-1){for(d=S.points[m].point.length,c=0;c<d;c+=1)n[c]=S.points[m].point[c];break}if(C>=R&&C<R+S.points[m+1].partialLength){for(j=(C-R)/S.points[m+1].partialLength,d=S.points[m].point.length,c=0;c<d;c+=1)n[c]=S.points[m].point[c]+(S.points[m+1].point[c]-S.points[m].point[c])*j;break}m<f-1?m+=1:x=!1}t._lastPoint=m,t._lastAddedLength=R-S.points[m].partialLength,t._lastKeyframeIndex=v}}else{var P,$,T,_,M;if(b=s.s.length,w=l.s||s.e,this.sh&&1!==s.h)e>=E?(n[0]=w[0],n[1]=w[1],n[2]=w[2]):e<=k?(n[0]=s.s[0],n[1]=s.s[1],n[2]=s.s[2]):a(n,r(o(s.s),o(w),(e-k)/(E-k)));else for(v=0;v<b;v+=1)1!==s.h&&(e>=E?p=1:e<k?p=0:(s.o.x.constructor===Array?(u.__fnct||(u.__fnct=[]),u.__fnct[v]?g=u.__fnct[v]:(P=void 0===s.o.x[v]?s.o.x[0]:s.o.x[v],$=void 0===s.o.y[v]?s.o.y[0]:s.o.y[v],T=void 0===s.i.x[v]?s.i.x[0]:s.i.x[v],_=void 0===s.i.y[v]?s.i.y[0]:s.i.y[v],g=oe.getBezierEasing(P,$,T,_).get,u.__fnct[v]=g)):u.__fnct?g=u.__fnct:(P=s.o.x,$=s.o.y,T=s.i.x,_=s.i.y,g=oe.getBezierEasing(P,$,T,_).get,s.keyframeMetadata=g),p=g((e-k)/(E-k)))),w=l.s||s.e,M=1===s.h?s.s[v]:s.s[v]+(w[v]-s.s[v])*p,"multidimensional"===this.propType?n[v]=M:n=M}return t.lastIndex=y,n}function r(e,t,n){var r,i,a,o,s,l=[],u=e[0],c=e[1],d=e[2],p=e[3],h=t[0],f=t[1],m=t[2],g=t[3];return(i=u*h+c*f+d*m+p*g)<0&&(i=-i,h=-h,f=-f,m=-m,g=-g),1-i>1e-6?(r=Math.acos(i),a=Math.sin(r),o=Math.sin((1-n)*r)/a,s=Math.sin(n*r)/a):(o=1-n,s=n),l[0]=o*u+s*h,l[1]=o*c+s*f,l[2]=o*d+s*m,l[3]=o*p+s*g,l}function a(e,t){var n=t[0],r=t[1],i=t[2],a=t[3],o=Math.atan2(2*r*a-2*n*i,1-2*r*r-2*i*i),s=Math.asin(2*n*r+2*i*a),l=Math.atan2(2*n*a-2*r*i,1-2*n*n-2*i*i);e[0]=o/S,e[1]=s/S,e[2]=l/S}function o(e){var t=e[0]*S,n=e[1]*S,r=e[2]*S,i=Math.cos(t/2),a=Math.cos(n/2),o=Math.cos(r/2),s=Math.sin(t/2),l=Math.sin(n/2),u=Math.sin(r/2);return[s*l*o+i*a*u,s*a*o+i*l*u,i*l*o-s*a*u,i*a*o-s*l*u]}function s(){var t=this.comp.renderedFrame-this.offsetTime,n=this.keyframes[0].t-this.offsetTime,r=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(t===this._caching.lastFrame||this._caching.lastFrame!==e&&(this._caching.lastFrame>=r&&t>=r||this._caching.lastFrame<n&&t<n))){this._caching.lastFrame>=t&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var i=this.interpolateValue(t,this._caching);this.pv=i}return this._caching.lastFrame=t,this.pv}function l(e){var n;if("unidimensional"===this.propType)n=e*this.mult,t(this.v-n)>1e-5&&(this.v=n,this._mdf=!0);else for(var r=0,i=this.v.length;r<i;)n=e[r]*this.mult,t(this.v[r]-n)>1e-5&&(this.v[r]=n,this._mdf=!0),r+=1}function u(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var e;this.lock=!0,this._mdf=this._isFirstFrame;var t=this.effectsSequence.length,n=this.kf?this.pv:this.data.k;for(e=0;e<t;e+=1)n=this.effectsSequence[e](n);this.setVValue(n),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function c(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function d(e,t,n,r){this.propType="unidimensional",this.mult=n||1,this.data=t,this.v=n?t.k*n:t.k,this.pv=t.k,this._mdf=!1,this.elem=e,this.container=r,this.comp=e.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=u,this.setVValue=l,this.addEffect=c}function p(e,t,n,r){var i;this.propType="multidimensional",this.mult=n||1,this.data=t,this._mdf=!1,this.elem=e,this.container=r,this.comp=e.comp,this.k=!1,this.kf=!1,this.frameId=-1;var a=t.k.length;for(this.v=h("float32",a),this.pv=h("float32",a),this.vel=h("float32",a),i=0;i<a;i+=1)this.v[i]=t.k[i]*this.mult,this.pv[i]=t.k[i];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=u,this.setVValue=l,this.addEffect=c}function f(t,r,i,a){this.propType="unidimensional",this.keyframes=r.k,this.keyframesMetadata=[],this.offsetTime=t.data.st,this.frameId=-1,this._caching={lastFrame:e,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=r,this.mult=i||1,this.elem=t,this.container=a,this.comp=t.comp,this.v=e,this.pv=e,this._isFirstFrame=!0,this.getValue=u,this.setVValue=l,this.interpolateValue=n,this.effectsSequence=[s.bind(this)],this.addEffect=c}function m(t,r,i,a){var o;this.propType="multidimensional";var d,p,f,m,g=r.k.length;for(o=0;o<g-1;o+=1)r.k[o].to&&r.k[o].s&&r.k[o+1]&&r.k[o+1].s&&(d=r.k[o].s,p=r.k[o+1].s,f=r.k[o].to,m=r.k[o].ti,(2===d.length&&(d[0]!==p[0]||d[1]!==p[1])&&pe.pointOnLine2D(d[0],d[1],p[0],p[1],d[0]+f[0],d[1]+f[1])&&pe.pointOnLine2D(d[0],d[1],p[0],p[1],p[0]+m[0],p[1]+m[1])||3===d.length&&(d[0]!==p[0]||d[1]!==p[1]||d[2]!==p[2])&&pe.pointOnLine3D(d[0],d[1],d[2],p[0],p[1],p[2],d[0]+f[0],d[1]+f[1],d[2]+f[2])&&pe.pointOnLine3D(d[0],d[1],d[2],p[0],p[1],p[2],p[0]+m[0],p[1]+m[1],p[2]+m[2]))&&(r.k[o].to=null,r.k[o].ti=null),d[0]===p[0]&&d[1]===p[1]&&0===f[0]&&0===f[1]&&0===m[0]&&0===m[1]&&(2===d.length||d[2]===p[2]&&0===f[2]&&0===m[2])&&(r.k[o].to=null,r.k[o].ti=null));this.effectsSequence=[s.bind(this)],this.data=r,this.keyframes=r.k,this.keyframesMetadata=[],this.offsetTime=t.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=i||1,this.elem=t,this.container=a,this.comp=t.comp,this.getValue=u,this.setVValue=l,this.interpolateValue=n,this.frameId=-1;var y=r.k[0].s.length;for(this.v=h("float32",y),this.pv=h("float32",y),o=0;o<y;o+=1)this.v[o]=e,this.pv[o]=e;this._caching={lastFrame:e,lastIndex:0,value:h("float32",y)},this.addEffect=c}function g(e,t,n,r,i){var a;if(t.k.length)if("number"==typeof t.k[0])a=new p(e,t,r,i);else switch(n){case 0:a=new f(e,t,r,i);break;case 1:a=new m(e,t,r,i)}else a=new d(e,t,r,i);return a.effectsSequence.length&&i.addDynamicProperty(a),a}return{getProp:g}}();function fe(){}fe.prototype={addDynamicProperty:function(e){-1===this.dynamicProperties.indexOf(e)&&(this.dynamicProperties.push(e),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){var e;this._mdf=!1;var t=this.dynamicProperties.length;for(e=0;e<t;e+=1)this.dynamicProperties[e].getValue(),this.dynamicProperties[e]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(e){this.container=e,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var me=function(){function e(){return h("float32",2)}return le(8,e)}();function ge(){this.c=!1,this._length=0,this._maxLength=8,this.v=f(this._maxLength),this.o=f(this._maxLength),this.i=f(this._maxLength)}ge.prototype.setPathData=function(e,t){this.c=e,this.setLength(t);for(var n=0;n<t;)this.v[n]=me.newElement(),this.o[n]=me.newElement(),this.i[n]=me.newElement(),n+=1},ge.prototype.setLength=function(e){for(;this._maxLength<e;)this.doubleArrayLength();this._length=e},ge.prototype.doubleArrayLength=function(){this.v=this.v.concat(f(this._maxLength)),this.i=this.i.concat(f(this._maxLength)),this.o=this.o.concat(f(this._maxLength)),this._maxLength*=2},ge.prototype.setXYAt=function(e,t,n,r,i){var a;switch(this._length=Math.max(this._length,r+1),this._length>=this._maxLength&&this.doubleArrayLength(),n){case"v":a=this.v;break;case"i":a=this.i;break;case"o":a=this.o;break;default:a=[]}(!a[r]||a[r]&&!i)&&(a[r]=me.newElement()),a[r][0]=e,a[r][1]=t},ge.prototype.setTripleAt=function(e,t,n,r,i,a,o,s){this.setXYAt(e,t,"v",o,s),this.setXYAt(n,r,"o",o,s),this.setXYAt(i,a,"i",o,s)},ge.prototype.reverse=function(){var e=new ge;e.setPathData(this.c,this._length);var t=this.v,n=this.o,r=this.i,i=0;this.c&&(e.setTripleAt(t[0][0],t[0][1],r[0][0],r[0][1],n[0][0],n[0][1],0,!1),i=1);var a,o=this._length-1,s=this._length;for(a=i;a<s;a+=1)e.setTripleAt(t[o][0],t[o][1],r[o][0],r[o][1],n[o][0],n[o][1],a,!1),o-=1;return e},ge.prototype.length=function(){return this._length};var ye=function(){function e(){return new ge}function t(e){var t,n=e._length;for(t=0;t<n;t+=1)me.release(e.v[t]),me.release(e.i[t]),me.release(e.o[t]),e.v[t]=null,e.i[t]=null,e.o[t]=null;e._length=0,e.c=!1}function n(e){var t,n=r.newElement(),i=void 0===e._length?e.v.length:e._length;for(n.setLength(i),n.c=e.c,t=0;t<i;t+=1)n.setTripleAt(e.v[t][0],e.v[t][1],e.o[t][0],e.o[t][1],e.i[t][0],e.i[t][1],t);return n}var r=le(4,e,t);return r.clone=n,r}();function ve(){this._length=0,this._maxLength=4,this.shapes=f(this._maxLength)}ve.prototype.addShape=function(e){this._length===this._maxLength&&(this.shapes=this.shapes.concat(f(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=e,this._length+=1},ve.prototype.releaseShapes=function(){var e;for(e=0;e<this._length;e+=1)ye.release(this.shapes[e]);this._length=0};var be=function(){var e={newShapeCollection:i,release:a},t=0,n=4,r=f(n);function i(){return t?r[t-=1]:new ve}function a(e){var i,a=e._length;for(i=0;i<a;i+=1)ye.release(e.shapes[i]);e._length=0,t===n&&(r=se.double(r),n*=2),r[t]=e,t+=1}return e}(),xe=function(){var e=-999999;function t(e,t,n){var r,i,a,o,s,l,u,c,d,p=n.lastIndex,h=this.keyframes;if(e<h[0].t-this.offsetTime)r=h[0].s[0],a=!0,p=0;else if(e>=h[h.length-1].t-this.offsetTime)r=h[h.length-1].s?h[h.length-1].s[0]:h[h.length-2].e[0],a=!0;else{for(var f,m,g,y=p,v=h.length-1,b=!0;b&&(f=h[y],!((m=h[y+1]).t-this.offsetTime>e));)y<v-1?y+=1:b=!1;if(g=this.keyframesMetadata[y]||{},p=y,!(a=1===f.h)){if(e>=m.t-this.offsetTime)c=1;else if(e<f.t-this.offsetTime)c=0;else{var x;g.__fnct?x=g.__fnct:(x=oe.getBezierEasing(f.o.x,f.o.y,f.i.x,f.i.y).get,g.__fnct=x),c=x((e-(f.t-this.offsetTime))/(m.t-this.offsetTime-(f.t-this.offsetTime)))}i=m.s?m.s[0]:f.e[0]}r=f.s[0]}for(l=t._length,u=r.i[0].length,n.lastIndex=p,o=0;o<l;o+=1)for(s=0;s<u;s+=1)d=a?r.i[o][s]:r.i[o][s]+(i.i[o][s]-r.i[o][s])*c,t.i[o][s]=d,d=a?r.o[o][s]:r.o[o][s]+(i.o[o][s]-r.o[o][s])*c,t.o[o][s]=d,d=a?r.v[o][s]:r.v[o][s]+(i.v[o][s]-r.v[o][s])*c,t.v[o][s]=d}function n(){var t=this.comp.renderedFrame-this.offsetTime,n=this.keyframes[0].t-this.offsetTime,r=this.keyframes[this.keyframes.length-1].t-this.offsetTime,i=this._caching.lastFrame;return i!==e&&(i<n&&t<n||i>r&&t>r)||(this._caching.lastIndex=i<t?this._caching.lastIndex:0,this.interpolateShape(t,this.pv,this._caching)),this._caching.lastFrame=t,this.pv}function r(){this.paths=this.localShapeCollection}function i(e,t){if(e._length!==t._length||e.c!==t.c)return!1;var n,r=e._length;for(n=0;n<r;n+=1)if(e.v[n][0]!==t.v[n][0]||e.v[n][1]!==t.v[n][1]||e.o[n][0]!==t.o[n][0]||e.o[n][1]!==t.o[n][1]||e.i[n][0]!==t.i[n][0]||e.i[n][1]!==t.i[n][1])return!1;return!0}function a(e){i(this.v,e)||(this.v=ye.clone(e),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function o(){if(this.elem.globalData.frameId!==this.frameId)if(this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var e,t;this.lock=!0,this._mdf=!1,e=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k;var n=this.effectsSequence.length;for(t=0;t<n;t+=1)e=this.effectsSequence[t](e);this.setVValue(e),this.lock=!1,this.frameId=this.elem.globalData.frameId}else this._mdf=!1}function s(e,t,n){this.propType="shape",this.comp=e.comp,this.container=e,this.elem=e,this.data=t,this.k=!1,this.kf=!1,this._mdf=!1;var i=3===n?t.pt.k:t.ks.k;this.v=ye.clone(i),this.pv=ye.clone(this.v),this.localShapeCollection=be.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=r,this.effectsSequence=[]}function l(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function u(t,i,a){this.propType="shape",this.comp=t.comp,this.elem=t,this.container=t,this.offsetTime=t.data.st,this.keyframes=3===a?i.pt.k:i.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var o=this.keyframes[0].s[0].i.length;this.v=ye.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,o),this.pv=ye.clone(this.v),this.localShapeCollection=be.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=e,this.reset=r,this._caching={lastFrame:e,lastIndex:0},this.effectsSequence=[n.bind(this)]}s.prototype.interpolateShape=t,s.prototype.getValue=o,s.prototype.setVValue=a,s.prototype.addEffect=l,u.prototype.getValue=o,u.prototype.interpolateShape=t,u.prototype.setVValue=a,u.prototype.addEffect=l;var d=function(){var e=D;function t(e,t){this.v=ye.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=be.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=t.d,this.elem=e,this.comp=e.comp,this.frameId=-1,this.initDynamicPropertyContainer(e),this.p=he.getProp(e,t.p,1,0,this),this.s=he.getProp(e,t.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return t.prototype={reset:r,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var t=this.p.v[0],n=this.p.v[1],r=this.s.v[0]/2,i=this.s.v[1]/2,a=3!==this.d,o=this.v;o.v[0][0]=t,o.v[0][1]=n-i,o.v[1][0]=a?t+r:t-r,o.v[1][1]=n,o.v[2][0]=t,o.v[2][1]=n+i,o.v[3][0]=a?t-r:t+r,o.v[3][1]=n,o.i[0][0]=a?t-r*e:t+r*e,o.i[0][1]=n-i,o.i[1][0]=a?t+r:t-r,o.i[1][1]=n-i*e,o.i[2][0]=a?t+r*e:t-r*e,o.i[2][1]=n+i,o.i[3][0]=a?t-r:t+r,o.i[3][1]=n+i*e,o.o[0][0]=a?t+r*e:t-r*e,o.o[0][1]=n-i,o.o[1][0]=a?t+r:t-r,o.o[1][1]=n+i*e,o.o[2][0]=a?t-r*e:t+r*e,o.o[2][1]=n+i,o.o[3][0]=a?t-r:t+r,o.o[3][1]=n-i*e}},c([fe],t),t}(),p=function(){function e(e,t){this.v=ye.newElement(),this.v.setPathData(!0,0),this.elem=e,this.comp=e.comp,this.data=t,this.frameId=-1,this.d=t.d,this.initDynamicPropertyContainer(e),1===t.sy?(this.ir=he.getProp(e,t.ir,0,0,this),this.is=he.getProp(e,t.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=he.getProp(e,t.pt,0,0,this),this.p=he.getProp(e,t.p,1,0,this),this.r=he.getProp(e,t.r,0,S,this),this.or=he.getProp(e,t.or,0,0,this),this.os=he.getProp(e,t.os,0,.01,this),this.localShapeCollection=be.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return e.prototype={reset:r,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var e,t,n,r,i=2*Math.floor(this.pt.v),a=2*Math.PI/i,o=!0,s=this.or.v,l=this.ir.v,u=this.os.v,c=this.is.v,d=2*Math.PI*s/(2*i),p=2*Math.PI*l/(2*i),h=-Math.PI/2;h+=this.r.v;var f=3===this.data.d?-1:1;for(this.v._length=0,e=0;e<i;e+=1){n=o?u:c,r=o?d:p;var m=(t=o?s:l)*Math.cos(h),g=t*Math.sin(h),y=0===m&&0===g?0:g/Math.sqrt(m*m+g*g),v=0===m&&0===g?0:-m/Math.sqrt(m*m+g*g);m+=+this.p.v[0],g+=+this.p.v[1],this.v.setTripleAt(m,g,m-y*r*n*f,g-v*r*n*f,m+y*r*n*f,g+v*r*n*f,e,!0),o=!o,h+=a*f}},convertPolygonToPath:function(){var e,t=Math.floor(this.pt.v),n=2*Math.PI/t,r=this.or.v,i=this.os.v,a=2*Math.PI*r/(4*t),o=.5*-Math.PI,s=3===this.data.d?-1:1;for(o+=this.r.v,this.v._length=0,e=0;e<t;e+=1){var l=r*Math.cos(o),u=r*Math.sin(o),c=0===l&&0===u?0:u/Math.sqrt(l*l+u*u),d=0===l&&0===u?0:-l/Math.sqrt(l*l+u*u);l+=+this.p.v[0],u+=+this.p.v[1],this.v.setTripleAt(l,u,l-c*a*i*s,u-d*a*i*s,l+c*a*i*s,u+d*a*i*s,e,!0),o+=n*s}this.paths.length=0,this.paths[0]=this.v}},c([fe],e),e}(),h=function(){function e(e,t){this.v=ye.newElement(),this.v.c=!0,this.localShapeCollection=be.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=e,this.comp=e.comp,this.frameId=-1,this.d=t.d,this.initDynamicPropertyContainer(e),this.p=he.getProp(e,t.p,1,0,this),this.s=he.getProp(e,t.s,1,0,this),this.r=he.getProp(e,t.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return e.prototype={convertRectToPath:function(){var e=this.p.v[0],t=this.p.v[1],n=this.s.v[0]/2,r=this.s.v[1]/2,i=E(n,r,this.r.v),a=i*(1-D);this.v._length=0,2===this.d||1===this.d?(this.v.setTripleAt(e+n,t-r+i,e+n,t-r+i,e+n,t-r+a,0,!0),this.v.setTripleAt(e+n,t+r-i,e+n,t+r-a,e+n,t+r-i,1,!0),0!==i?(this.v.setTripleAt(e+n-i,t+r,e+n-i,t+r,e+n-a,t+r,2,!0),this.v.setTripleAt(e-n+i,t+r,e-n+a,t+r,e-n+i,t+r,3,!0),this.v.setTripleAt(e-n,t+r-i,e-n,t+r-i,e-n,t+r-a,4,!0),this.v.setTripleAt(e-n,t-r+i,e-n,t-r+a,e-n,t-r+i,5,!0),this.v.setTripleAt(e-n+i,t-r,e-n+i,t-r,e-n+a,t-r,6,!0),this.v.setTripleAt(e+n-i,t-r,e+n-a,t-r,e+n-i,t-r,7,!0)):(this.v.setTripleAt(e-n,t+r,e-n+a,t+r,e-n,t+r,2),this.v.setTripleAt(e-n,t-r,e-n,t-r+a,e-n,t-r,3))):(this.v.setTripleAt(e+n,t-r+i,e+n,t-r+a,e+n,t-r+i,0,!0),0!==i?(this.v.setTripleAt(e+n-i,t-r,e+n-i,t-r,e+n-a,t-r,1,!0),this.v.setTripleAt(e-n+i,t-r,e-n+a,t-r,e-n+i,t-r,2,!0),this.v.setTripleAt(e-n,t-r+i,e-n,t-r+i,e-n,t-r+a,3,!0),this.v.setTripleAt(e-n,t+r-i,e-n,t+r-a,e-n,t+r-i,4,!0),this.v.setTripleAt(e-n+i,t+r,e-n+i,t+r,e-n+a,t+r,5,!0),this.v.setTripleAt(e+n-i,t+r,e+n-a,t+r,e+n-i,t+r,6,!0),this.v.setTripleAt(e+n,t+r-i,e+n,t+r-i,e+n,t+r-a,7,!0)):(this.v.setTripleAt(e-n,t-r,e-n+a,t-r,e-n,t-r,1,!0),this.v.setTripleAt(e-n,t+r,e-n,t+r-a,e-n,t+r,2,!0),this.v.setTripleAt(e+n,t+r,e+n-a,t+r,e+n,t+r,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:r},c([fe],e),e}();function f(e,t,n){var r;return 3===n||4===n?r=(3===n?t.pt:t.ks).k.length?new u(e,t,n):new s(e,t,n):5===n?r=new h(e,t):6===n?r=new d(e,t):7===n&&(r=new p(e,t)),r.k&&e.addDynamicProperty(r),r}function m(){return s}function g(){return u}var y={};return y.getShapeProp=f,y.getConstructorFunction=m,y.getKeyframedConstructorFunction=g,y}(),we=function(){var e=Math.cos,t=Math.sin,n=Math.tan,r=Math.round;function i(){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 a(n){if(0===n)return this;var r=e(n),i=t(n);return this._t(r,-i,0,0,i,r,0,0,0,0,1,0,0,0,0,1)}function o(n){if(0===n)return this;var r=e(n),i=t(n);return this._t(1,0,0,0,0,r,-i,0,0,i,r,0,0,0,0,1)}function s(n){if(0===n)return this;var r=e(n),i=t(n);return this._t(r,0,i,0,0,1,0,0,-i,0,r,0,0,0,0,1)}function l(n){if(0===n)return this;var r=e(n),i=t(n);return this._t(r,-i,0,0,i,r,0,0,0,0,1,0,0,0,0,1)}function u(e,t){return this._t(1,t,e,1,0,0)}function c(e,t){return this.shear(n(e),n(t))}function d(r,i){var a=e(i),o=t(i);return this._t(a,o,0,0,-o,a,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,n(r),1,0,0,0,0,1,0,0,0,0,1)._t(a,-o,0,0,o,a,0,0,0,0,1,0,0,0,0,1)}function p(e,t,n){return n||0===n||(n=1),1===e&&1===t&&1===n?this:this._t(e,0,0,0,0,t,0,0,0,0,n,0,0,0,0,1)}function f(e,t,n,r,i,a,o,s,l,u,c,d,p,h,f,m){return this.props[0]=e,this.props[1]=t,this.props[2]=n,this.props[3]=r,this.props[4]=i,this.props[5]=a,this.props[6]=o,this.props[7]=s,this.props[8]=l,this.props[9]=u,this.props[10]=c,this.props[11]=d,this.props[12]=p,this.props[13]=h,this.props[14]=f,this.props[15]=m,this}function m(e,t,n){return n=n||0,0!==e||0!==t||0!==n?this._t(1,0,0,0,0,1,0,0,0,0,1,0,e,t,n,1):this}function g(e,t,n,r,i,a,o,s,l,u,c,d,p,h,f,m){var g=this.props;if(1===e&&0===t&&0===n&&0===r&&0===i&&1===a&&0===o&&0===s&&0===l&&0===u&&1===c&&0===d)return g[12]=g[12]*e+g[15]*p,g[13]=g[13]*a+g[15]*h,g[14]=g[14]*c+g[15]*f,g[15]*=m,this._identityCalculated=!1,this;var y=g[0],v=g[1],b=g[2],x=g[3],w=g[4],E=g[5],k=g[6],S=g[7],D=g[8],j=g[9],C=g[10],R=g[11],P=g[12],$=g[13],T=g[14],_=g[15];return g[0]=y*e+v*i+b*l+x*p,g[1]=y*t+v*a+b*u+x*h,g[2]=y*n+v*o+b*c+x*f,g[3]=y*r+v*s+b*d+x*m,g[4]=w*e+E*i+k*l+S*p,g[5]=w*t+E*a+k*u+S*h,g[6]=w*n+E*o+k*c+S*f,g[7]=w*r+E*s+k*d+S*m,g[8]=D*e+j*i+C*l+R*p,g[9]=D*t+j*a+C*u+R*h,g[10]=D*n+j*o+C*c+R*f,g[11]=D*r+j*s+C*d+R*m,g[12]=P*e+$*i+T*l+_*p,g[13]=P*t+$*a+T*u+_*h,g[14]=P*n+$*o+T*c+_*f,g[15]=P*r+$*s+T*d+_*m,this._identityCalculated=!1,this}function y(){return this._identityCalculated||(this._identity=!(1!==this.props[0]||0!==this.props[1]||0!==this.props[2]||0!==this.props[3]||0!==this.props[4]||1!==this.props[5]||0!==this.props[6]||0!==this.props[7]||0!==this.props[8]||0!==this.props[9]||1!==this.props[10]||0!==this.props[11]||0!==this.props[12]||0!==this.props[13]||0!==this.props[14]||1!==this.props[15]),this._identityCalculated=!0),this._identity}function v(e){for(var t=0;t<16;){if(e.props[t]!==this.props[t])return!1;t+=1}return!0}function b(e){var t;for(t=0;t<16;t+=1)e.props[t]=this.props[t];return e}function x(e){var t;for(t=0;t<16;t+=1)this.props[t]=e[t]}function w(e,t,n){return{x:e*this.props[0]+t*this.props[4]+n*this.props[8]+this.props[12],y:e*this.props[1]+t*this.props[5]+n*this.props[9]+this.props[13],z:e*this.props[2]+t*this.props[6]+n*this.props[10]+this.props[14]}}function E(e,t,n){return e*this.props[0]+t*this.props[4]+n*this.props[8]+this.props[12]}function k(e,t,n){return e*this.props[1]+t*this.props[5]+n*this.props[9]+this.props[13]}function S(e,t,n){return e*this.props[2]+t*this.props[6]+n*this.props[10]+this.props[14]}function D(){var e=this.props[0]*this.props[5]-this.props[1]*this.props[4],t=this.props[5]/e,n=-this.props[1]/e,r=-this.props[4]/e,i=this.props[0]/e,a=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/e,o=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/e,s=new we;return s.props[0]=t,s.props[1]=n,s.props[4]=r,s.props[5]=i,s.props[12]=a,s.props[13]=o,s}function j(e){return this.getInverseMatrix().applyToPointArray(e[0],e[1],e[2]||0)}function C(e){var t,n=e.length,r=[];for(t=0;t<n;t+=1)r[t]=j(e[t]);return r}function R(e,t,n){var r=h("float32",6);if(this.isIdentity())r[0]=e[0],r[1]=e[1],r[2]=t[0],r[3]=t[1],r[4]=n[0],r[5]=n[1];else{var i=this.props[0],a=this.props[1],o=this.props[4],s=this.props[5],l=this.props[12],u=this.props[13];r[0]=e[0]*i+e[1]*o+l,r[1]=e[0]*a+e[1]*s+u,r[2]=t[0]*i+t[1]*o+l,r[3]=t[0]*a+t[1]*s+u,r[4]=n[0]*i+n[1]*o+l,r[5]=n[0]*a+n[1]*s+u}return r}function P(e,t,n){return this.isIdentity()?[e,t,n]:[e*this.props[0]+t*this.props[4]+n*this.props[8]+this.props[12],e*this.props[1]+t*this.props[5]+n*this.props[9]+this.props[13],e*this.props[2]+t*this.props[6]+n*this.props[10]+this.props[14]]}function $(e,t){if(this.isIdentity())return e+","+t;var n=this.props;return Math.round(100*(e*n[0]+t*n[4]+n[12]))/100+","+Math.round(100*(e*n[1]+t*n[5]+n[13]))/100}function T(){for(var e=0,t=this.props,n="matrix3d(",i=1e4;e<16;)n+=r(t[e]*i)/i,n+=15===e?")":",",e+=1;return n}function _(e){var t=1e4;return e<1e-6&&e>0||e>-1e-6&&e<0?r(e*t)/t:e}function M(){var e=this.props;return"matrix("+_(e[0])+","+_(e[1])+","+_(e[4])+","+_(e[5])+","+_(e[12])+","+_(e[13])+")"}return function(){this.reset=i,this.rotate=a,this.rotateX=o,this.rotateY=s,this.rotateZ=l,this.skew=c,this.skewFromAxis=d,this.shear=u,this.scale=p,this.setTransform=f,this.translate=m,this.transform=g,this.applyToPoint=w,this.applyToX=E,this.applyToY=k,this.applyToZ=S,this.applyToPointArray=P,this.applyToTriplePoints=R,this.applyToPointStringified=$,this.toCSS=T,this.to2dCSS=M,this.clone=b,this.cloneFromProps=x,this.equals=v,this.inversePoints=C,this.inversePoint=j,this.getInverseMatrix=D,this._t=this.transform,this.isIdentity=y,this._identity=!0,this._identityCalculated=!1,this.props=h("float32",16),this.reset()}}();function Ee(e){return(Ee="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var ke={};function Se(e){s(e)}function De(){ae.searchAnimations()}function je(e){N(e)}function Ce(e){K(e)}function Re(e){return ae.loadAnimation(e)}function Pe(e){if("string"==typeof e)switch(e){case"high":W(200);break;default:case"medium":W(50);break;case"low":W(10)}else!isNaN(e)&&e>1&&W(e)}function $e(){return"undefined"!=typeof navigator}function Te(e,t){"expressions"===e&&B(t)}function _e(e){switch(e){case"propertyFactory":return he;case"shapePropertyFactory":return xe;case"matrix":return we;default:return null}}function Me(){"complete"===document.readyState&&(clearInterval(Le),De())}function Ae(e){for(var t=Ie.split("&"),n=0;n<t.length;n+=1){var r=t[n].split("=");if(decodeURIComponent(r[0])==e)return decodeURIComponent(r[1])}return null}ke.play=ae.play,ke.pause=ae.pause,ke.setLocationHref=Se,ke.togglePause=ae.togglePause,ke.setSpeed=ae.setSpeed,ke.setDirection=ae.setDirection,ke.stop=ae.stop,ke.searchAnimations=De,ke.registerAnimation=ae.registerAnimation,ke.loadAnimation=Re,ke.setSubframeRendering=je,ke.resize=ae.resize,ke.goToAndStop=ae.goToAndStop,ke.destroy=ae.destroy,ke.setQuality=Pe,ke.inBrowser=$e,ke.installPlugin=Te,ke.freeze=ae.freeze,ke.unfreeze=ae.unfreeze,ke.setVolume=ae.setVolume,ke.mute=ae.mute,ke.unmute=ae.unmute,ke.getRegisteredAnimations=ae.getRegisteredAnimations,ke.useWebWorker=a,ke.setIDPrefix=Ce,ke.__getFactory=_e,ke.version="5.10.2";var Ie="",Oe=document.getElementsByTagName("script"),Fe=Oe[Oe.length-1]||{src:""};Ie=Fe.src?Fe.src.replace(/^[^\?]+\??/,""):"",Ae("renderer");var Le=setInterval(Me,100);try{"object"!==Ee(t)&&(window.bodymovin=ke)}catch(On){}var Ve=function(){var e={},t={};function n(e,n){t[e]||(t[e]=n)}function r(e,n,r){return new t[e](n,r)}return e.registerModifier=n,e.getModifier=r,e}();function Ne(){}function ze(){}function Be(){}Ne.prototype.initModifierProperties=function(){},Ne.prototype.addShapeToModifier=function(){},Ne.prototype.addShape=function(e){if(!this.closed){e.sh.container.addDynamicProperty(e.sh);var t={shape:e.sh,data:e,localShapeCollection:be.newShapeCollection()};this.shapes.push(t),this.addShapeToModifier(t),this._isAnimated&&e.setAsAnimated()}},Ne.prototype.init=function(e,t){this.shapes=[],this.elem=e,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t),this.frameId=i,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},Ne.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},c([fe],Ne),c([Ne],ze),ze.prototype.initModifierProperties=function(e,t){this.s=he.getProp(e,t.s,0,.01,this),this.e=he.getProp(e,t.e,0,.01,this),this.o=he.getProp(e,t.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=t.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},ze.prototype.addShapeToModifier=function(e){e.pathsData=[]},ze.prototype.calculateShapeEdges=function(e,t,n,r,i){var a=[];t<=1?a.push({s:e,e:t}):e>=1?a.push({s:e-1,e:t-1}):(a.push({s:e,e:1}),a.push({s:0,e:t-1}));var o,s,l=[],u=a.length;for(o=0;o<u;o+=1){var c,d;(s=a[o]).e*i<r||s.s*i>r+n||(c=s.s*i<=r?0:(s.s*i-r)/n,d=s.e*i>=r+n?1:(s.e*i-r)/n,l.push([c,d]))}return l.length||l.push([0,0]),l},ze.prototype.releasePathsData=function(e){var t,n=e.length;for(t=0;t<n;t+=1)ce.release(e[t]);return e.length=0,e},ze.prototype.processShapes=function(e){var t,n,r,i;if(this._mdf||e){var a=this.o.v%360/360;if(a<0&&(a+=1),(t=this.s.v>1?1+a:this.s.v<0?0+a:this.s.v+a)>(n=this.e.v>1?1+a:this.e.v<0?0+a:this.e.v+a)){var o=t;t=n,n=o}t=1e-4*Math.round(1e4*t),n=1e-4*Math.round(1e4*n),this.sValue=t,this.eValue=n}else t=this.sValue,n=this.eValue;var s,l,u,c,d,p=this.shapes.length,h=0;if(n===t)for(i=0;i<p;i+=1)this.shapes[i].localShapeCollection.releaseShapes(),this.shapes[i].shape._mdf=!0,this.shapes[i].shape.paths=this.shapes[i].localShapeCollection,this._mdf&&(this.shapes[i].pathsData.length=0);else if(1===n&&0===t||0===n&&1===t){if(this._mdf)for(i=0;i<p;i+=1)this.shapes[i].pathsData.length=0,this.shapes[i].shape._mdf=!0}else{var f,m,g=[];for(i=0;i<p;i+=1)if((f=this.shapes[i]).shape._mdf||this._mdf||e||2===this.m){if(l=(r=f.shape.paths)._length,d=0,!f.shape._mdf&&f.pathsData.length)d=f.totalShapeLength;else{for(u=this.releasePathsData(f.pathsData),s=0;s<l;s+=1)c=pe.getSegmentsLength(r.shapes[s]),u.push(c),d+=c.totalLength;f.totalShapeLength=d,f.pathsData=u}h+=d,f.shape._mdf=!0}else f.shape.paths=f.localShapeCollection;var y,v=t,b=n,x=0;for(i=p-1;i>=0;i-=1)if((f=this.shapes[i]).shape._mdf){for((m=f.localShapeCollection).releaseShapes(),2===this.m&&p>1?(y=this.calculateShapeEdges(t,n,f.totalShapeLength,x,h),x+=f.totalShapeLength):y=[[v,b]],l=y.length,s=0;s<l;s+=1){v=y[s][0],b=y[s][1],g.length=0,b<=1?g.push({s:f.totalShapeLength*v,e:f.totalShapeLength*b}):v>=1?g.push({s:f.totalShapeLength*(v-1),e:f.totalShapeLength*(b-1)}):(g.push({s:f.totalShapeLength*v,e:f.totalShapeLength}),g.push({s:0,e:f.totalShapeLength*(b-1)}));var w=this.addShapes(f,g[0]);if(g[0].s!==g[0].e){if(g.length>1)if(f.shape.paths.shapes[f.shape.paths._length-1].c){var E=w.pop();this.addPaths(w,m),w=this.addShapes(f,g[1],E)}else this.addPaths(w,m),w=this.addShapes(f,g[1]);this.addPaths(w,m)}}f.shape.paths=m}}},ze.prototype.addPaths=function(e,t){var n,r=e.length;for(n=0;n<r;n+=1)t.addShape(e[n])},ze.prototype.addSegment=function(e,t,n,r,i,a,o){i.setXYAt(t[0],t[1],"o",a),i.setXYAt(n[0],n[1],"i",a+1),o&&i.setXYAt(e[0],e[1],"v",a),i.setXYAt(r[0],r[1],"v",a+1)},ze.prototype.addSegmentFromArray=function(e,t,n,r){t.setXYAt(e[1],e[5],"o",n),t.setXYAt(e[2],e[6],"i",n+1),r&&t.setXYAt(e[0],e[4],"v",n),t.setXYAt(e[3],e[7],"v",n+1)},ze.prototype.addShapes=function(e,t,n){var r,i,a,o,s,l,u,c,d=e.pathsData,p=e.shape.paths.shapes,h=e.shape.paths._length,f=0,m=[],g=!0;for(n?(s=n._length,c=n._length):(n=ye.newElement(),s=0,c=0),m.push(n),r=0;r<h;r+=1){for(l=d[r].lengths,n.c=p[r].c,a=p[r].c?l.length:l.length+1,i=1;i<a;i+=1)if(f+(o=l[i-1]).addedLength<t.s)f+=o.addedLength,n.c=!1;else{if(f>t.e){n.c=!1;break}t.s<=f&&t.e>=f+o.addedLength?(this.addSegment(p[r].v[i-1],p[r].o[i-1],p[r].i[i],p[r].v[i],n,s,g),g=!1):(u=pe.getNewSegment(p[r].v[i-1],p[r].v[i],p[r].o[i-1],p[r].i[i],(t.s-f)/o.addedLength,(t.e-f)/o.addedLength,l[i-1]),this.addSegmentFromArray(u,n,s,g),g=!1,n.c=!1),f+=o.addedLength,s+=1}if(p[r].c&&l.length){if(o=l[i-1],f<=t.e){var y=l[i-1].addedLength;t.s<=f&&t.e>=f+y?(this.addSegment(p[r].v[i-1],p[r].o[i-1],p[r].i[0],p[r].v[0],n,s,g),g=!1):(u=pe.getNewSegment(p[r].v[i-1],p[r].v[0],p[r].o[i-1],p[r].i[0],(t.s-f)/y,(t.e-f)/y,l[i-1]),this.addSegmentFromArray(u,n,s,g),g=!1,n.c=!1)}else n.c=!1;f+=o.addedLength,s+=1}if(n._length&&(n.setXYAt(n.v[c][0],n.v[c][1],"i",c),n.setXYAt(n.v[n._length-1][0],n.v[n._length-1][1],"o",n._length-1)),f>t.e)break;r<h-1&&(n=ye.newElement(),g=!0,m.push(n),s=0)}return m},c([Ne],Be),Be.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amount=he.getProp(e,t.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},Be.prototype.processPath=function(e,t){var n=t/100,r=[0,0],i=e._length,a=0;for(a=0;a<i;a+=1)r[0]+=e.v[a][0],r[1]+=e.v[a][1];r[0]/=i,r[1]/=i;var o,s,l,u,c,d,p=ye.newElement();for(p.c=e.c,a=0;a<i;a+=1)o=e.v[a][0]+(r[0]-e.v[a][0])*n,s=e.v[a][1]+(r[1]-e.v[a][1])*n,l=e.o[a][0]+(r[0]-e.o[a][0])*-n,u=e.o[a][1]+(r[1]-e.o[a][1])*-n,c=e.i[a][0]+(r[0]-e.i[a][0])*-n,d=e.i[a][1]+(r[1]-e.i[a][1])*-n,p.setTripleAt(o,s,l,u,c,d,a);return p},Be.prototype.processShapes=function(e){var t,n,r,i,a,o,s=this.shapes.length,l=this.amount.v;if(0!==l)for(n=0;n<s;n+=1){if(o=(a=this.shapes[n]).localShapeCollection,a.shape._mdf||this._mdf||e)for(o.releaseShapes(),a.shape._mdf=!0,t=a.shape.paths.shapes,i=a.shape.paths._length,r=0;r<i;r+=1)o.addShape(this.processPath(t[r],l));a.shape.paths=a.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var Ue=function(){var e=[0,0];function t(e){var t=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||t,this.a&&e.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&e.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&e.skewFromAxis(-this.sk.v,this.sa.v),this.r?e.rotate(-this.r.v):e.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?e.translate(this.px.v,this.py.v,-this.pz.v):e.translate(this.px.v,this.py.v,0):e.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function n(t){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||t){var n;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 r,i;if(n=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(r=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/n,0),i=this.p.getValueAtTime(this.p.keyframes[0].t/n,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(r=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/n,0),i=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/n,0)):(r=this.p.pv,i=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/n,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){r=[],i=[];var a=this.px,o=this.py;a._caching.lastFrame+a.offsetTime<=a.keyframes[0].t?(r[0]=a.getValueAtTime((a.keyframes[0].t+.01)/n,0),r[1]=o.getValueAtTime((o.keyframes[0].t+.01)/n,0),i[0]=a.getValueAtTime(a.keyframes[0].t/n,0),i[1]=o.getValueAtTime(o.keyframes[0].t/n,0)):a._caching.lastFrame+a.offsetTime>=a.keyframes[a.keyframes.length-1].t?(r[0]=a.getValueAtTime(a.keyframes[a.keyframes.length-1].t/n,0),r[1]=o.getValueAtTime(o.keyframes[o.keyframes.length-1].t/n,0),i[0]=a.getValueAtTime((a.keyframes[a.keyframes.length-1].t-.01)/n,0),i[1]=o.getValueAtTime((o.keyframes[o.keyframes.length-1].t-.01)/n,0)):(r=[a.pv,o.pv],i[0]=a.getValueAtTime((a._caching.lastFrame+a.offsetTime-.01)/n,a.offsetTime),i[1]=o.getValueAtTime((o._caching.lastFrame+o.offsetTime-.01)/n,o.offsetTime))}else r=i=e;this.v.rotate(-Math.atan2(r[1]-i[1],r[0]-i[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 r(){if(!this.a.k&&(this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1,!this.s.effectsSequence.length)){if(this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2,this.sk){if(this.sk.effectsSequence.length||this.sa.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3}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 i(){}function a(e){this._addDynamicProperty(e),this.elem.addDynamicProperty(e),this._isDirty=!0}function o(e,t,n){if(this.elem=e,this.frameId=-1,this.propType="transform",this.data=t,this.v=new we,this.pre=new we,this.appliedTransformations=0,this.initDynamicPropertyContainer(n||e),t.p&&t.p.s?(this.px=he.getProp(e,t.p.x,0,0,this),this.py=he.getProp(e,t.p.y,0,0,this),t.p.z&&(this.pz=he.getProp(e,t.p.z,0,0,this))):this.p=he.getProp(e,t.p||{k:[0,0,0]},1,0,this),t.rx){if(this.rx=he.getProp(e,t.rx,0,S,this),this.ry=he.getProp(e,t.ry,0,S,this),this.rz=he.getProp(e,t.rz,0,S,this),t.or.k[0].ti){var r,i=t.or.k.length;for(r=0;r<i;r+=1)t.or.k[r].to=null,t.or.k[r].ti=null}this.or=he.getProp(e,t.or,1,S,this),this.or.sh=!0}else this.r=he.getProp(e,t.r||{k:0},0,S,this);t.sk&&(this.sk=he.getProp(e,t.sk,0,S,this),this.sa=he.getProp(e,t.sa,0,S,this)),this.a=he.getProp(e,t.a||{k:[0,0,0]},1,0,this),this.s=he.getProp(e,t.s||{k:[100,100,100]},1,.01,this),t.o?this.o=he.getProp(e,t.o,0,.01,e):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}function s(e,t,n){return new o(e,t,n)}return o.prototype={applyToMatrix:t,getValue:n,precalculateMatrix:r,autoOrient:i},c([fe],o),o.prototype.addDynamicProperty=a,o.prototype._addDynamicProperty=fe.prototype.addDynamicProperty,{getTransformProperty:s}}();function We(){}function qe(){}function Ke(e,t){return 1e5*Math.abs(e-t)<=Math.min(Math.abs(e),Math.abs(t))}function He(e){return Math.abs(e)<=1e-5}function Ze(e,t,n){return e*(1-n)+t*n}function Ge(e,t,n){return[Ze(e[0],t[0],n),Ze(e[1],t[1],n)]}function Ye(e,t,n){if(0===e)return[];var r=t*t-4*e*n;if(r<0)return[];var i=-t/(2*e);if(0===r)return[i];var a=Math.sqrt(r)/(2*e);return[i-a,i+a]}function Je(e,t,n,r){return[3*t-e-3*n+r,3*e-6*t+3*n,-3*e+3*t,e]}function Xe(e){return new Qe(e,e,e,e,!1)}function Qe(e,t,n,r,i){i&&ut(e,t)&&(t=Ge(e,r,1/3)),i&&ut(n,r)&&(n=Ge(e,r,2/3));var a=Je(e[0],t[0],n[0],r[0]),o=Je(e[1],t[1],n[1],r[1]);this.a=[a[0],o[0]],this.b=[a[1],o[1]],this.c=[a[2],o[2]],this.d=[a[3],o[3]],this.points=[e,t,n,r]}function et(e,t){var n=e.points[0][t],r=e.points[e.points.length-1][t];if(n>r){var i=r;r=n,n=i}for(var a=Ye(3*e.a[t],2*e.b[t],e.c[t]),o=0;o<a.length;o+=1)if(a[o]>0&&a[o]<1){var s=e.point(a[o])[t];s<n?n=s:s>r&&(r=s)}return{min:n,max:r}}function tt(e,t,n){var r=e.boundingBox();return{cx:r.cx,cy:r.cy,width:r.width,height:r.height,bez:e,t:(t+n)/2,t1:t,t2:n}}function nt(e){var t=e.bez.split(.5);return[tt(t[0],e.t1,e.t),tt(t[1],e.t,e.t2)]}function rt(e,t){return 2*Math.abs(e.cx-t.cx)<e.width+t.width&&2*Math.abs(e.cy-t.cy)<e.height+t.height}function it(e,t,n,r,i,a){if(rt(e,t))if(n>=a||e.width<=r&&e.height<=r&&t.width<=r&&t.height<=r)i.push([e.t,t.t]);else{var o=nt(e),s=nt(t);it(o[0],s[0],n+1,r,i,a),it(o[0],s[1],n+1,r,i,a),it(o[1],s[0],n+1,r,i,a),it(o[1],s[1],n+1,r,i,a)}}function at(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function ot(e,t,n,r){var i=[e[0],e[1],1],a=[t[0],t[1],1],o=[n[0],n[1],1],s=[r[0],r[1],1],l=at(at(i,a),at(o,s));return He(l[2])?null:[l[0]/l[2],l[1]/l[2]]}function st(e,t,n){return[e[0]+Math.cos(t)*n,e[1]-Math.sin(t)*n]}function lt(e,t){return Math.hypot(e[0]-t[0],e[1]-t[1])}function ut(e,t){return Ke(e[0],t[0])&&Ke(e[1],t[1])}function ct(){}function dt(e,t,n,r,i,a,o){var s=n-Math.PI/2,l=n+Math.PI/2,u=t[0]+Math.cos(n)*r*i,c=t[1]-Math.sin(n)*r*i;e.setTripleAt(u,c,u+Math.cos(s)*a,c-Math.sin(s)*a,u+Math.cos(l)*o,c-Math.sin(l)*o,e.length())}function pt(e,t){var n=[t[0]-e[0],t[1]-e[1]],r=.5*-Math.PI;return[Math.cos(r)*n[0]-Math.sin(r)*n[1],Math.sin(r)*n[0]+Math.cos(r)*n[1]]}function ht(e,t){var n=0===t?e.length()-1:t-1,r=(t+1)%e.length(),i=pt(e.v[n],e.v[r]);return Math.atan2(0,1)-Math.atan2(i[1],i[0])}function ft(e,t,n,r,i,a,o){var s=ht(t,n),l=t.v[n%t._length],u=t.v[0===n?t._length-1:n-1],c=t.v[(n+1)%t._length],d=2===a?Math.sqrt(Math.pow(l[0]-u[0],2)+Math.pow(l[1]-u[1],2)):0,p=2===a?Math.sqrt(Math.pow(l[0]-c[0],2)+Math.pow(l[1]-c[1],2)):0;dt(e,t.v[n%t._length],s,o,r,p/(2*(i+1)),d/(2*(i+1)))}function mt(e,t,n,r,i,a){for(var o=0;o<r;o+=1){var s=(o+1)/(r+1),l=2===i?Math.sqrt(Math.pow(t.points[3][0]-t.points[0][0],2)+Math.pow(t.points[3][1]-t.points[0][1],2)):0,u=t.normalAngle(s);dt(e,t.point(s),u,a,n,l/(2*(r+1)),l/(2*(r+1))),a=-a}return a}function gt(e,t,n){var r=Math.atan2(t[0]-e[0],t[1]-e[1]);return[st(e,r,n),st(t,r,n)]}function yt(e,t){var n,r,i,a,o,s,l;n=(l=gt(e.points[0],e.points[1],t))[0],r=l[1],i=(l=gt(e.points[1],e.points[2],t))[0],a=l[1],o=(l=gt(e.points[2],e.points[3],t))[0],s=l[1];var u=ot(n,r,i,a);null===u&&(u=r);var c=ot(o,s,i,a);return null===c&&(c=o),new Qe(n,u,c,s)}function vt(e,t,n,r,i){var a=t.points[3],o=n.points[0];if(3===r)return a;if(ut(a,o))return a;if(2===r){var s=-t.tangentAngle(1),l=-n.tangentAngle(0)+Math.PI,u=ot(a,st(a,s+Math.PI/2,100),o,st(o,s+Math.PI/2,100)),c=u?lt(u,a):lt(a,o)/2,d=st(a,s,2*c*D);return e.setXYAt(d[0],d[1],"o",e.length()-1),d=st(o,l,2*c*D),e.setTripleAt(o[0],o[1],o[0],o[1],d[0],d[1],e.length()),o}var p=ot(ut(a,t.points[2])?t.points[0]:t.points[2],a,o,ut(o,n.points[1])?n.points[3]:n.points[1]);return p&<(p,a)<i?(e.setTripleAt(p[0],p[1],p[0],p[1],p[0],p[1],e.length()),p):a}function bt(e,t){var n=e.intersections(t);return n.length&&Ke(n[0][0],1)&&n.shift(),n.length?n[0]:null}function xt(e,t){var n=e.slice(),r=t.slice(),i=bt(e[e.length-1],t[0]);return i&&(n[e.length-1]=e[e.length-1].split(i[0])[0],r[0]=t[0].split(i[1])[1]),e.length>1&&t.length>1&&(i=bt(e[0],t[t.length-1]))?[[e[0].split(i[0])[0]],[t[t.length-1].split(i[1])[1]]]:[n,r]}function wt(e){for(var t,n=1;n<e.length;n+=1)t=xt(e[n-1],e[n]),e[n-1]=t[0],e[n]=t[1];return e.length>1&&(t=xt(e[e.length-1],e[0]),e[e.length-1]=t[0],e[0]=t[1]),e}function Et(e,t){var n,r,i,a,o=e.inflectionPoints();if(0===o.length)return[yt(e,t)];if(1===o.length||Ke(o[1],1))return n=(i=e.split(o[0]))[0],r=i[1],[yt(n,t),yt(r,t)];n=(i=e.split(o[0]))[0];var s=(o[1]-o[0])/(1-o[0]);return a=(i=i[1].split(s))[0],r=i[1],[yt(n,t),yt(a,t),yt(r,t)]}function kt(){}function St(e){for(var t=e.fStyle?e.fStyle.split(" "):[],n="normal",r="normal",i=t.length,a=0;a<i;a+=1)switch(t[a].toLowerCase()){case"italic":r="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"}return{style:r,weight:e.fWeight||n}}c([Ne],We),We.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.c=he.getProp(e,t.c,0,null,this),this.o=he.getProp(e,t.o,0,null,this),this.tr=Ue.getTransformProperty(e,t.tr,this),this.so=he.getProp(e,t.tr.so,0,.01,this),this.eo=he.getProp(e,t.tr.eo,0,.01,this),this.data=t,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new we,this.rMatrix=new we,this.sMatrix=new we,this.tMatrix=new we,this.matrix=new we},We.prototype.applyTransforms=function(e,t,n,r,i,a){var o=a?-1:1,s=r.s.v[0]+(1-r.s.v[0])*(1-i),l=r.s.v[1]+(1-r.s.v[1])*(1-i);e.translate(r.p.v[0]*o*i,r.p.v[1]*o*i,r.p.v[2]),t.translate(-r.a.v[0],-r.a.v[1],r.a.v[2]),t.rotate(-r.r.v*o*i),t.translate(r.a.v[0],r.a.v[1],r.a.v[2]),n.translate(-r.a.v[0],-r.a.v[1],r.a.v[2]),n.scale(a?1/s:s,a?1/l:l),n.translate(r.a.v[0],r.a.v[1],r.a.v[2])},We.prototype.init=function(e,t,n,r){for(this.elem=e,this.arr=t,this.pos=n,this.elemsData=r,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t[n]);n>0;)n-=1,this._elements.unshift(t[n]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},We.prototype.resetElements=function(e){var t,n=e.length;for(t=0;t<n;t+=1)e[t]._processed=!1,"gr"===e[t].ty&&this.resetElements(e[t].it)},We.prototype.cloneElements=function(e){var t=JSON.parse(JSON.stringify(e));return this.resetElements(t),t},We.prototype.changeGroupRender=function(e,t){var n,r=e.length;for(n=0;n<r;n+=1)e[n]._render=t,"gr"===e[n].ty&&this.changeGroupRender(e[n].it,t)},We.prototype.processShapes=function(e){var t,n,r,i,a,o=!1;if(this._mdf||e){var s,l=Math.ceil(this.c.v);if(this._groups.length<l){for(;this._groups.length<l;){var u={it:this.cloneElements(this._elements),ty:"gr"};u.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,u),this._groups.splice(0,0,u),this._currentCopies+=1}this.elem.reloadShapes(),o=!0}for(a=0,r=0;r<=this._groups.length-1;r+=1){if(s=a<l,this._groups[r]._render=s,this.changeGroupRender(this._groups[r].it,s),!s){var c=this.elemsData[r].it,d=c[c.length-1];0!==d.transform.op.v?(d.transform.op._mdf=!0,d.transform.op.v=0):d.transform.op._mdf=!1}a+=1}this._currentCopies=l;var p=this.o.v,h=p%1,f=p>0?Math.floor(p):Math.ceil(p),m=this.pMatrix.props,g=this.rMatrix.props,y=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var v,b,x=0;if(p>0){for(;x<f;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),x+=1;h&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,h,!1),x+=h)}else if(p<0){for(;x>f;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),x-=1;h&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-h,!0),x-=h)}for(r=1===this.data.m?0:this._currentCopies-1,i=1===this.data.m?1:-1,a=this._currentCopies;a;){if(b=(n=(t=this.elemsData[r].it)[t.length-1].transform.mProps.v.props).length,t[t.length-1].transform.mProps._mdf=!0,t[t.length-1].transform.op._mdf=!0,t[t.length-1].transform.op.v=1===this._currentCopies?this.so.v:this.so.v+(this.eo.v-this.so.v)*(r/(this._currentCopies-1)),0!==x){for((0!==r&&1===i||r!==this._currentCopies-1&&-1===i)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(g[0],g[1],g[2],g[3],g[4],g[5],g[6],g[7],g[8],g[9],g[10],g[11],g[12],g[13],g[14],g[15]),this.matrix.transform(y[0],y[1],y[2],y[3],y[4],y[5],y[6],y[7],y[8],y[9],y[10],y[11],y[12],y[13],y[14],y[15]),this.matrix.transform(m[0],m[1],m[2],m[3],m[4],m[5],m[6],m[7],m[8],m[9],m[10],m[11],m[12],m[13],m[14],m[15]),v=0;v<b;v+=1)n[v]=this.matrix.props[v];this.matrix.reset()}else for(this.matrix.reset(),v=0;v<b;v+=1)n[v]=this.matrix.props[v];x+=1,a-=1,r+=i}}else for(a=this._currentCopies,r=0,i=1;a;)n=(t=this.elemsData[r].it)[t.length-1].transform.mProps.v.props,t[t.length-1].transform.mProps._mdf=!1,t[t.length-1].transform.op._mdf=!1,a-=1,r+=i;return o},We.prototype.addShape=function(){},c([Ne],qe),qe.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.rd=he.getProp(e,t.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},qe.prototype.processPath=function(e,t){var n,r=ye.newElement();r.c=e.c;var i,a,o,s,l,u,c,d,p,h,f,m,g=e._length,y=0;for(n=0;n<g;n+=1)i=e.v[n],o=e.o[n],a=e.i[n],i[0]===o[0]&&i[1]===o[1]&&i[0]===a[0]&&i[1]===a[1]?0!==n&&n!==g-1||e.c?(s=0===n?e.v[g-1]:e.v[n-1],u=(l=Math.sqrt(Math.pow(i[0]-s[0],2)+Math.pow(i[1]-s[1],2)))?Math.min(l/2,t)/l:0,c=f=i[0]+(s[0]-i[0])*u,d=m=i[1]-(i[1]-s[1])*u,p=c-(c-i[0])*D,h=d-(d-i[1])*D,r.setTripleAt(c,d,p,h,f,m,y),y+=1,s=n===g-1?e.v[0]:e.v[n+1],u=(l=Math.sqrt(Math.pow(i[0]-s[0],2)+Math.pow(i[1]-s[1],2)))?Math.min(l/2,t)/l:0,c=p=i[0]+(s[0]-i[0])*u,d=h=i[1]+(s[1]-i[1])*u,f=c-(c-i[0])*D,m=d-(d-i[1])*D,r.setTripleAt(c,d,p,h,f,m,y),y+=1):(r.setTripleAt(i[0],i[1],o[0],o[1],a[0],a[1],y),y+=1):(r.setTripleAt(e.v[n][0],e.v[n][1],e.o[n][0],e.o[n][1],e.i[n][0],e.i[n][1],y),y+=1);return r},qe.prototype.processShapes=function(e){var t,n,r,i,a,o,s=this.shapes.length,l=this.rd.v;if(0!==l)for(n=0;n<s;n+=1){if(o=(a=this.shapes[n]).localShapeCollection,a.shape._mdf||this._mdf||e)for(o.releaseShapes(),a.shape._mdf=!0,t=a.shape.paths.shapes,i=a.shape.paths._length,r=0;r<i;r+=1)o.addShape(this.processPath(t[r],l));a.shape.paths=a.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},Qe.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]]},Qe.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]]},Qe.prototype.tangentAngle=function(e){var t=this.derivative(e);return Math.atan2(t[1],t[0])},Qe.prototype.normalAngle=function(e){var t=this.derivative(e);return Math.atan2(t[0],t[1])},Qe.prototype.inflectionPoints=function(){var e=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(He(e))return[];var t=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/e,n=t*t-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/e;if(n<0)return[];var r=Math.sqrt(n);return He(r)?r>0&&r<1?[t]:[]:[t-r,t+r].filter((function(e){return e>0&&e<1}))},Qe.prototype.split=function(e){if(e<=0)return[Xe(this.points[0]),this];if(e>=1)return[this,Xe(this.points[this.points.length-1])];var t=Ge(this.points[0],this.points[1],e),n=Ge(this.points[1],this.points[2],e),r=Ge(this.points[2],this.points[3],e),i=Ge(t,n,e),a=Ge(n,r,e),o=Ge(i,a,e);return[new Qe(this.points[0],t,i,o,!0),new Qe(o,a,r,this.points[3],!0)]},Qe.prototype.bounds=function(){return{x:et(this,0),y:et(this,1)}},Qe.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}},Qe.prototype.intersections=function(e,t,n){void 0===t&&(t=2),void 0===n&&(n=7);var r=[];return it(tt(this,0,1),tt(e,0,1),0,t,r,n),r},Qe.shapeSegment=function(e,t){var n=(t+1)%e.length();return new Qe(e.v[t],e.o[t],e.i[n],e.v[n],!0)},Qe.shapeSegmentInverted=function(e,t){var n=(t+1)%e.length();return new Qe(e.v[n],e.i[n],e.o[t],e.v[t],!0)},c([Ne],ct),ct.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amplitude=he.getProp(e,t.s,0,null,this),this.frequency=he.getProp(e,t.r,0,null,this),this.pointsType=he.getProp(e,t.pt,0,null,this),this._isAnimated=0!==this.amplitude.effectsSequence.length||0!==this.frequency.effectsSequence.length||0!==this.pointsType.effectsSequence.length},ct.prototype.processPath=function(e,t,n,r){var i=e._length,a=ye.newElement();if(a.c=e.c,e.c||(i-=1),0===i)return a;var o=-1,s=Qe.shapeSegment(e,0);ft(a,e,0,t,n,r,o);for(var l=0;l<i;l+=1)o=mt(a,s,t,n,r,-o),s=l!==i-1||e.c?Qe.shapeSegment(e,(l+1)%i):null,ft(a,e,l+1,t,n,r,o);return a},ct.prototype.processShapes=function(e){var t,n,r,i,a,o,s=this.shapes.length,l=this.amplitude.v,u=Math.max(0,Math.round(this.frequency.v)),c=this.pointsType.v;if(0!==l)for(n=0;n<s;n+=1){if(o=(a=this.shapes[n]).localShapeCollection,a.shape._mdf||this._mdf||e)for(o.releaseShapes(),a.shape._mdf=!0,t=a.shape.paths.shapes,i=a.shape.paths._length,r=0;r<i;r+=1)o.addShape(this.processPath(t[r],l,u,c));a.shape.paths=a.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},c([Ne],kt),kt.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amount=he.getProp(e,t.a,0,null,this),this.miterLimit=he.getProp(e,t.ml,0,null,this),this.lineJoin=t.lj,this._isAnimated=0!==this.amount.effectsSequence.length},kt.prototype.processPath=function(e,t,n,r){var i=ye.newElement();i.c=e.c;var a,o,s,l=e.length();e.c||(l-=1);var u=[];for(a=0;a<l;a+=1)s=Qe.shapeSegment(e,a),u.push(Et(s,t));if(!e.c)for(a=l-1;a>=0;a-=1)s=Qe.shapeSegmentInverted(e,a),u.push(Et(s,t));u=wt(u);var c=null,d=null;for(a=0;a<u.length;a+=1){var p=u[a];for(d&&(c=vt(i,d,p[0],n,r)),d=p[p.length-1],o=0;o<p.length;o+=1)s=p[o],c&&ut(s.points[0],c)?i.setXYAt(s.points[1][0],s.points[1][1],"o",i.length()-1):i.setTripleAt(s.points[0][0],s.points[0][1],s.points[1][0],s.points[1][1],s.points[0][0],s.points[0][1],i.length()),i.setTripleAt(s.points[3][0],s.points[3][1],s.points[3][0],s.points[3][1],s.points[2][0],s.points[2][1],i.length()),c=s.points[3]}return u.length&&vt(i,d,u[0][0],n,r),i},kt.prototype.processShapes=function(e){var t,n,r,i,a,o,s=this.shapes.length,l=this.amount.v,u=this.miterLimit.v,c=this.lineJoin;if(0!==l)for(n=0;n<s;n+=1){if(o=(a=this.shapes[n]).localShapeCollection,a.shape._mdf||this._mdf||e)for(o.releaseShapes(),a.shape._mdf=!0,t=a.shape.paths.shapes,i=a.shape.paths._length,r=0;r<i;r+=1)o.addShape(this.processPath(t[r],l,c,u));a.shape.paths=a.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var Dt=function(){var e=5e3,t={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 r=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"],i=[65039,8205];function a(e){var t,n=e.split(","),r=n.length,i=[];for(t=0;t<r;t+=1)"sans-serif"!==n[t]&&"monospace"!==n[t]&&i.push(n[t]);return i.join(",")}function o(e,t){var n=u("span");n.setAttribute("aria-hidden",!0),n.style.fontFamily=t;var r=u("span");r.innerText="giItT1WQy@!-/#",n.style.position="absolute",n.style.left="-10000px",n.style.top="-10000px",n.style.fontSize="300px",n.style.fontVariant="normal",n.style.fontStyle="normal",n.style.fontWeight="normal",n.style.letterSpacing="0",n.appendChild(r),document.body.appendChild(n);var i=r.offsetWidth;return r.style.fontFamily=a(e)+", "+t,{node:r,w:i,parent:n}}function s(){var t,n,r,i=this.fonts.length,a=i;for(t=0;t<i;t+=1)this.fonts[t].loaded?a-=1:"n"===this.fonts[t].fOrigin||0===this.fonts[t].origin?this.fonts[t].loaded=!0:(n=this.fonts[t].monoCase.node,r=this.fonts[t].monoCase.w,n.offsetWidth!==r?(a-=1,this.fonts[t].loaded=!0):(n=this.fonts[t].sansCase.node,r=this.fonts[t].sansCase.w,n.offsetWidth!==r&&(a-=1,this.fonts[t].loaded=!0)),this.fonts[t].loaded&&(this.fonts[t].sansCase.parent.parentNode.removeChild(this.fonts[t].sansCase.parent),this.fonts[t].monoCase.parent.parentNode.removeChild(this.fonts[t].monoCase.parent)));0!==a&&Date.now()-this.initTime<e?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function l(e,t){var n,r=document.body&&t?"svg":"canvas",i=St(e);if("svg"===r){var a=H("text");a.style.fontSize="100px",a.setAttribute("font-family",e.fFamily),a.setAttribute("font-style",i.style),a.setAttribute("font-weight",i.weight),a.textContent="1",e.fClass?(a.style.fontFamily="inherit",a.setAttribute("class",e.fClass)):a.style.fontFamily=e.fFamily,t.appendChild(a),n=a}else{var o=new OffscreenCanvas(500,500).getContext("2d");o.font=i.style+" "+i.weight+" 100px "+e.fFamily,n=o}function s(e){return"svg"===r?(n.textContent=e,n.getComputedTextLength()):n.measureText(e).width}return{measureText:s}}function c(e,t){if(e){if(this.chars)return this.isLoaded=!0,void(this.fonts=e.list);if(!document.body)return this.isLoaded=!0,e.list.forEach((function(e){e.helper=l(e),e.cache={}})),void(this.fonts=e.list);var n,r=e.list,i=r.length,a=i;for(n=0;n<i;n+=1){var s,c,d=!0;if(r[n].loaded=!1,r[n].monoCase=o(r[n].fFamily,"monospace"),r[n].sansCase=o(r[n].fFamily,"sans-serif"),r[n].fPath){if("p"===r[n].fOrigin||3===r[n].origin){if((s=document.querySelectorAll('style[f-forigin="p"][f-family="'+r[n].fFamily+'"], style[f-origin="3"][f-family="'+r[n].fFamily+'"]')).length>0&&(d=!1),d){var p=u("style");p.setAttribute("f-forigin",r[n].fOrigin),p.setAttribute("f-origin",r[n].origin),p.setAttribute("f-family",r[n].fFamily),p.type="text/css",p.innerText="@font-face {font-family: "+r[n].fFamily+"; font-style: normal; src: url('"+r[n].fPath+"');}",t.appendChild(p)}}else if("g"===r[n].fOrigin||1===r[n].origin){for(s=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),c=0;c<s.length;c+=1)-1!==s[c].href.indexOf(r[n].fPath)&&(d=!1);if(d){var h=u("link");h.setAttribute("f-forigin",r[n].fOrigin),h.setAttribute("f-origin",r[n].origin),h.type="text/css",h.rel="stylesheet",h.href=r[n].fPath,document.body.appendChild(h)}}else if("t"===r[n].fOrigin||2===r[n].origin){for(s=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),c=0;c<s.length;c+=1)r[n].fPath===s[c].src&&(d=!1);if(d){var f=u("link");f.setAttribute("f-forigin",r[n].fOrigin),f.setAttribute("f-origin",r[n].origin),f.setAttribute("rel","stylesheet"),f.setAttribute("href",r[n].fPath),t.appendChild(f)}}}else r[n].loaded=!0,a-=1;r[n].helper=l(r[n],t),r[n].cache={},this.fonts.push(r[n])}0===a?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0}function d(e){if(e){var t;this.chars||(this.chars=[]);var n,r,i=e.length,a=this.chars.length;for(t=0;t<i;t+=1){for(n=0,r=!1;n<a;)this.chars[n].style===e[t].style&&this.chars[n].fFamily===e[t].fFamily&&this.chars[n].ch===e[t].ch&&(r=!0),n+=1;r||(this.chars.push(e[t]),a+=1)}}}function p(e,n,r){for(var i=0,a=this.chars.length;i<a;){if(this.chars[i].ch===e&&this.chars[i].style===n&&this.chars[i].fFamily===r)return this.chars[i];i+=1}return("string"==typeof e&&13!==e.charCodeAt(0)||!e)&&console&&console.warn&&!this._warned&&(this._warned=!0),t}function h(e,t,n){var r=this.getFontByName(t),i=e.charCodeAt(0);if(!r.cache[i+1]){var a=r.helper;if(" "===e){var o=a.measureText("|"+e+"|"),s=a.measureText("||");r.cache[i+1]=(o-s)/100}else r.cache[i+1]=a.measureText(e)/100}return r.cache[i+1]*n}function f(e){for(var t=0,n=this.fonts.length;t<n;){if(this.fonts[t].fName===e)return this.fonts[t];t+=1}return this.fonts[0]}function m(e,t){var n=e.toString(16)+t.toString(16);return-1!==r.indexOf(n)}function g(e,t){return t?e===i[0]&&t===i[1]:e===i[1]}function y(e){return-1!==n.indexOf(e)}function v(){this.isLoaded=!0}var b=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)};b.isModifier=m,b.isZeroWidthJoiner=g,b.isCombinedCharacter=y;var x={addChars:d,addFonts:c,getCharData:p,getFontByName:f,measureText:h,checkLoadedFonts:s,setIsLoaded:v};return b.prototype=x,b}();function jt(){}jt.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(e){-1===this.renderableComponents.indexOf(e)&&this.renderableComponents.push(e)},removeRenderableComponent:function(e){-1!==this.renderableComponents.indexOf(e)&&this.renderableComponents.splice(this.renderableComponents.indexOf(e),1)},prepareRenderableFrame:function(e){this.checkLayerLimits(e)},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(e){this.data.ip-this.data.st<=e&&this.data.op-this.data.st>e?!0!==this.isInRange&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):!1!==this.isInRange&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var e,t=this.renderableComponents.length;for(e=0;e<t;e+=1)this.renderableComponents[e].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return 5===this.data.ty?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var Ct,Rt=(Ct={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"},function(e){return Ct[e]||""});function Pt(e,t,n){this.p=he.getProp(t,e.v,0,0,n)}function $t(e,t,n){this.p=he.getProp(t,e.v,0,0,n)}function Tt(e,t,n){this.p=he.getProp(t,e.v,1,0,n)}function _t(e,t,n){this.p=he.getProp(t,e.v,1,0,n)}function Mt(e,t,n){this.p=he.getProp(t,e.v,0,0,n)}function At(e,t,n){this.p=he.getProp(t,e.v,0,0,n)}function It(e,t,n){this.p=he.getProp(t,e.v,0,0,n)}function Ot(){this.p={}}function Ft(e,t){var n,r=e.ef||[];this.effectElements=[];var i,a=r.length;for(n=0;n<a;n+=1)i=new Lt(r[n],t),this.effectElements.push(i)}function Lt(e,t){this.init(e,t)}function Vt(){}function Nt(){}function zt(e,t,n){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.footageData=t.imageLoader.getAsset(this.assetData),this.initBaseData(e,t,n)}function Bt(e,t,n){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.initBaseData(e,t,n),this._isPlaying=!1,this._canPlay=!1;var r=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(r),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=e.tm?he.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0},this.lv=he.getProp(this,e.au&&e.au.lv?e.au.lv:{k:[100]},1,.01,this)}function Ut(){}function Wt(){}function qt(e,t,n){this.data=e,this.element=t,this.globalData=n,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var r,i,a=this.globalData.defs,o=this.masksProperties?this.masksProperties.length:0;this.viewData=f(o),this.solidPath="";var s,u,c,d,p,h,m=this.masksProperties,g=0,y=[],v=A(),b="clipPath",x="clip-path";for(r=0;r<o;r+=1)if(("a"!==m[r].mode&&"n"!==m[r].mode||m[r].inv||100!==m[r].o.k||m[r].o.x)&&(b="mask",x="mask"),"s"!==m[r].mode&&"i"!==m[r].mode||0!==g?c=null:((c=H("rect")).setAttribute("fill","#ffffff"),c.setAttribute("width",this.element.comp.data.w||0),c.setAttribute("height",this.element.comp.data.h||0),y.push(c)),i=H("path"),"n"===m[r].mode)this.viewData[r]={op:he.getProp(this.element,m[r].o,0,.01,this.element),prop:xe.getShapeProp(this.element,m[r],3),elem:i,lastPath:""},a.appendChild(i);else{var w;if(g+=1,i.setAttribute("fill","s"===m[r].mode?"#000000":"#ffffff"),i.setAttribute("clip-rule","nonzero"),0!==m[r].x.k?(b="mask",x="mask",h=he.getProp(this.element,m[r].x,0,null,this.element),w=A(),(d=H("filter")).setAttribute("id",w),(p=H("feMorphology")).setAttribute("operator","erode"),p.setAttribute("in","SourceGraphic"),p.setAttribute("radius","0"),d.appendChild(p),a.appendChild(d),i.setAttribute("stroke","s"===m[r].mode?"#000000":"#ffffff")):(p=null,h=null),this.storedData[r]={elem:i,x:h,expan:p,lastPath:"",lastOperator:"",filterId:w,lastRadius:0},"i"===m[r].mode){u=y.length;var E=H("g");for(s=0;s<u;s+=1)E.appendChild(y[s]);var k=H("mask");k.setAttribute("mask-type","alpha"),k.setAttribute("id",v+"_"+g),k.appendChild(i),a.appendChild(k),E.setAttribute("mask","url("+l()+"#"+v+"_"+g+")"),y.length=0,y.push(E)}else y.push(i);m[r].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[r]={elem:i,lastPath:"",op:he.getProp(this.element,m[r].o,0,.01,this.element),prop:xe.getShapeProp(this.element,m[r],3),invRect:c},this.viewData[r].prop.k||this.drawPath(m[r],this.viewData[r].prop.v,this.viewData[r])}for(this.maskElement=H(b),o=y.length,r=0;r<o;r+=1)this.maskElement.appendChild(y[r]);g>0&&(this.maskElement.setAttribute("id",v),this.element.maskedElement.setAttribute(x,"url("+l()+"#"+v+")"),a.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}c([fe],Lt),Lt.prototype.getValue=Lt.prototype.iterateDynamicProperties,Lt.prototype.init=function(e,t){var n;this.data=e,this.effectElements=[],this.initDynamicPropertyContainer(t);var r,i=this.data.ef.length,a=this.data.ef;for(n=0;n<i;n+=1){switch(r=null,a[n].ty){case 0:r=new Pt(a[n],t,this);break;case 1:r=new $t(a[n],t,this);break;case 2:r=new Tt(a[n],t,this);break;case 3:r=new _t(a[n],t,this);break;case 4:case 7:r=new It(a[n],t,this);break;case 10:r=new Mt(a[n],t,this);break;case 11:r=new At(a[n],t,this);break;case 5:r=new Ft(a[n],t);break;default:r=new Ot(a[n])}r&&this.effectElements.push(r)}},Vt.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var e=0,t=this.data.masksProperties.length;e<t;){if("n"!==this.data.masksProperties[e].mode&&!1!==this.data.masksProperties[e].cl)return!0;e+=1}return!1},initExpressions:function(){},setBlendMode:function(){var e=Rt(this.data.bm);(this.baseElement||this.layerElement).style["mix-blend-mode"]=e},initBaseData:function(e,t,n){this.globalData=t,this.comp=n,this.data=e,this.layerId=A(),this.data.sr||(this.data.sr=1),this.effectsManager=new Ft(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}},Nt.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(e,t){var n,r=this.dynamicProperties.length;for(n=0;n<r;n+=1)(t||this._isParent&&"transform"===this.dynamicProperties[n].propType)&&(this.dynamicProperties[n].getValue(),this.dynamicProperties[n]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(e){-1===this.dynamicProperties.indexOf(e)&&this.dynamicProperties.push(e)}},zt.prototype.prepareFrame=function(){},c([jt,Vt,Nt],zt),zt.prototype.getBaseElement=function(){return null},zt.prototype.renderFrame=function(){},zt.prototype.destroy=function(){},zt.prototype.initExpressions=function(){},zt.prototype.getFootageData=function(){return this.footageData},Bt.prototype.prepareFrame=function(e){if(this.prepareRenderableFrame(e,!0),this.prepareProperties(e,!0),this.tm._placeholder)this._currentTime=e/this.data.sr;else{var t=this.tm.v;this._currentTime=t}this._volume=this.lv.v[0];var n=this._volume*this._volumeMultiplier;this._previousVolume!==n&&(this._previousVolume=n,this.audio.volume(n))},c([jt,Vt,Nt],Bt),Bt.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))},Bt.prototype.show=function(){},Bt.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},Bt.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},Bt.prototype.resume=function(){this._canPlay=!0},Bt.prototype.setRate=function(e){this.audio.rate(e)},Bt.prototype.volume=function(e){this._volumeMultiplier=e,this._previousVolume=e*this._volume,this.audio.volume(this._previousVolume)},Bt.prototype.getBaseElement=function(){return null},Bt.prototype.destroy=function(){},Bt.prototype.sourceRectAtTime=function(){},Bt.prototype.initExpressions=function(){},Ut.prototype.checkLayers=function(e){var t,n,r=this.layers.length;for(this.completeLayers=!0,t=r-1;t>=0;t-=1)this.elements[t]||(n=this.layers[t]).ip-n.st<=e-this.layers[t].st&&n.op-n.st>e-this.layers[t].st&&this.buildItem(t),this.completeLayers=!!this.elements[t]&&this.completeLayers;this.checkPendingElements()},Ut.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:default: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)}},Ut.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},Ut.prototype.createAudio=function(e){return new Bt(e,this.globalData,this)},Ut.prototype.createFootage=function(e){return new zt(e,this.globalData,this)},Ut.prototype.buildAllItems=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)this.buildItem(e);this.checkPendingElements()},Ut.prototype.includeLayers=function(e){var t;this.completeLayers=!1;var n,r=e.length,i=this.layers.length;for(t=0;t<r;t+=1)for(n=0;n<i;){if(this.layers[n].id===e[t].id){this.layers[n]=e[t];break}n+=1}},Ut.prototype.setProjectInterface=function(e){this.globalData.projectInterface=e},Ut.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},Ut.prototype.buildElementParenting=function(e,t,n){for(var r=this.elements,i=this.layers,a=0,o=i.length;a<o;)i[a].ind==t&&(r[a]&&!0!==r[a]?(n.push(r[a]),r[a].setAsParent(),void 0!==i[a].parent?this.buildElementParenting(e,i[a].parent,n):e.setHierarchy(n)):(this.buildItem(a),this.addPendingElement(e))),a+=1},Ut.prototype.addPendingElement=function(e){this.pendingElements.push(e)},Ut.prototype.searchExtraCompositions=function(e){var t,n=e.length;for(t=0;t<n;t+=1)if(e[t].xt){var r=this.createComp(e[t]);r.initExpressions(),this.globalData.projectInterface.registerComposition(r)}},Ut.prototype.getElementById=function(e){var t,n=this.elements.length;for(t=0;t<n;t+=1)if(this.elements[t].data.ind===e)return this.elements[t];return null},Ut.prototype.getElementByPath=function(e){var t,n=e.shift();if("number"==typeof n)t=this.elements[n];else{var r,i=this.elements.length;for(r=0;r<i;r+=1)if(this.elements[r].data.nm===n){t=this.elements[r];break}}return 0===e.length?t:t.getElementByPath(e)},Ut.prototype.setupGlobalData=function(e,t){this.globalData.fontManager=new Dt,this.globalData.fontManager.addChars(e.chars),this.globalData.fontManager.addFonts(e.fonts,t),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}},Wt.prototype={initTransform:function(){this.finalTransform={mProp:this.data.ks?Ue.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_opMdf:!1,mat:new we},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 e,t=this.finalTransform.mat,n=0,r=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;n<r;){if(this.hierarchy[n].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}n+=1}if(this.finalTransform._matMdf)for(e=this.finalTransform.mProp.v.props,t.cloneFromProps(e),n=0;n<r;n+=1)e=this.hierarchy[n].finalTransform.mProp.v.props,t.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])}},globalToLocal:function(e){var t=[];t.push(this.finalTransform);for(var n,r=!0,i=this.comp;r;)i.finalTransform?(i.data.hasMask&&t.splice(0,0,i.finalTransform),i=i.comp):r=!1;var a,o=t.length;for(n=0;n<o;n+=1)a=t[n].mat.applyToPointArray(0,0,0),e=[e[0]-a[0],e[1]-a[1],0];return e},mHelper:new we},qt.prototype.getMaskProperty=function(e){return this.viewData[e].prop},qt.prototype.renderFrame=function(e){var t,n=this.element.finalTransform.mat,r=this.masksProperties.length;for(t=0;t<r;t+=1)if((this.viewData[t].prop._mdf||e)&&this.drawPath(this.masksProperties[t],this.viewData[t].prop.v,this.viewData[t]),(this.viewData[t].op._mdf||e)&&this.viewData[t].elem.setAttribute("fill-opacity",this.viewData[t].op.v),"n"!==this.masksProperties[t].mode&&(this.viewData[t].invRect&&(this.element.finalTransform.mProp._mdf||e)&&this.viewData[t].invRect.setAttribute("transform",n.getInverseMatrix().to2dCSS()),this.storedData[t].x&&(this.storedData[t].x._mdf||e))){var i=this.storedData[t].expan;this.storedData[t].x.v<0?("erode"!==this.storedData[t].lastOperator&&(this.storedData[t].lastOperator="erode",this.storedData[t].elem.setAttribute("filter","url("+l()+"#"+this.storedData[t].filterId+")")),i.setAttribute("radius",-this.storedData[t].x.v)):("dilate"!==this.storedData[t].lastOperator&&(this.storedData[t].lastOperator="dilate",this.storedData[t].elem.setAttribute("filter",null)),this.storedData[t].elem.setAttribute("stroke-width",2*this.storedData[t].x.v))}},qt.prototype.getMaskelement=function(){return this.maskElement},qt.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)+" v-"+this.globalData.compSize.h+" "},qt.prototype.drawPath=function(e,t,n){var r,i,a=" M"+t.v[0][0]+","+t.v[0][1];for(i=t._length,r=1;r<i;r+=1)a+=" C"+t.o[r-1][0]+","+t.o[r-1][1]+" "+t.i[r][0]+","+t.i[r][1]+" "+t.v[r][0]+","+t.v[r][1];if(t.c&&i>1&&(a+=" C"+t.o[r-1][0]+","+t.o[r-1][1]+" "+t.i[0][0]+","+t.i[0][1]+" "+t.v[0][0]+","+t.v[0][1]),n.lastPath!==a){var o="";n.elem&&(t.c&&(o=e.inv?this.solidPath+a:a),n.elem.setAttribute("d",o)),n.lastPath=a}},qt.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var Kt,Ht,Zt=function(){var e={};function t(e,t){var n=H("filter");return n.setAttribute("id",e),!0!==t&&(n.setAttribute("filterUnits","objectBoundingBox"),n.setAttribute("x","0%"),n.setAttribute("y","0%"),n.setAttribute("width","100%"),n.setAttribute("height","100%")),n}function n(){var e=H("feColorMatrix");return e.setAttribute("type","matrix"),e.setAttribute("color-interpolation-filters","sRGB"),e.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),e}return e.createFilter=t,e.createAlphaToLuminanceFilter=n,e}(),Gt=(Kt={maskType:!0,svgLumaHidden:!0,offscreenCanvas:"undefined"!=typeof OffscreenCanvas},(/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))&&(Kt.maskType=!1),/firefox/i.test(navigator.userAgent)&&(Kt.svgLumaHidden=!1),Kt),Yt={},Jt="filter_result_";function Xt(e){var t,n,r="SourceGraphic",i=e.data.ef?e.data.ef.length:0,a=A(),o=Zt.createFilter(a,!0),s=0;for(this.filters=[],t=0;t<i;t+=1){n=null;var u=e.data.ef[t].ty;Yt[u]&&(n=new(0,Yt[u].effect)(o,e.effectsManager.effectElements[t],e,Jt+s,r),r=Jt+s,Yt[u].countsAsEffect&&(s+=1)),n&&this.filters.push(n)}s&&(e.globalData.defs.appendChild(o),e.layerElement.setAttribute("filter","url("+l()+"#"+a+")")),this.filters.length&&e.addRenderableComponent(this)}function Qt(){}function en(){}function tn(){}function nn(e,t,n){this.assetData=t.getAssetData(e.refId),this.initElement(e,t,n),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}function rn(e,t){this.elem=e,this.pos=t}function an(){}Xt.prototype.renderFrame=function(e){var t,n=this.filters.length;for(t=0;t<n;t+=1)this.filters[t].renderFrame(e)},Qt.prototype={initRendererElement:function(){this.layerElement=H("g")},createContainerElements:function(){this.matteElement=H("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var e=null;if(this.data.td){this.matteMasks={};var t=H("g");t.setAttribute("id",this.layerId),t.appendChild(this.layerElement),e=t,this.globalData.defs.appendChild(t)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),e=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),0===this.data.ty&&!this.data.hd){var n=H("clipPath"),r=H("path");r.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var i=A();if(n.setAttribute("id",i),n.appendChild(r),this.globalData.defs.appendChild(n),this.checkMasks()){var a=H("g");a.setAttribute("clip-path","url("+l()+"#"+i+")"),a.appendChild(this.layerElement),this.transformedElement=a,e?e.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+l()+"#"+i+")")}0!==this.data.bm&&this.setBlendMode()},renderElement:function(){this.finalTransform._matMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.mat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.mProp.o.v)},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 qt(this.data,this,this.globalData),this.renderableEffectsManager=new Xt(this)},getMatte:function(e){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[e]){var t,n,r,i,a=this.layerId+"_"+e;if(1===e||3===e){var o=H("mask");o.setAttribute("id",a),o.setAttribute("mask-type",3===e?"luminance":"alpha"),(r=H("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),o.appendChild(r),this.globalData.defs.appendChild(o),Gt.maskType||1!==e||(o.setAttribute("mask-type","luminance"),t=A(),n=Zt.createFilter(t),this.globalData.defs.appendChild(n),n.appendChild(Zt.createAlphaToLuminanceFilter()),(i=H("g")).appendChild(r),o.appendChild(i),i.setAttribute("filter","url("+l()+"#"+t+")"))}else if(2===e){var s=H("mask");s.setAttribute("id",a),s.setAttribute("mask-type","alpha");var u=H("g");s.appendChild(u),t=A(),n=Zt.createFilter(t);var c=H("feComponentTransfer");c.setAttribute("in","SourceGraphic"),n.appendChild(c);var d=H("feFuncA");d.setAttribute("type","table"),d.setAttribute("tableValues","1.0 0.0"),c.appendChild(d),this.globalData.defs.appendChild(n);var p=H("rect");p.setAttribute("width",this.comp.data.w),p.setAttribute("height",this.comp.data.h),p.setAttribute("x","0"),p.setAttribute("y","0"),p.setAttribute("fill","#ffffff"),p.setAttribute("opacity","0"),u.setAttribute("filter","url("+l()+"#"+t+")"),u.appendChild(p),(r=H("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),u.appendChild(r),Gt.maskType||(s.setAttribute("mask-type","luminance"),n.appendChild(Zt.createAlphaToLuminanceFilter()),i=H("g"),u.appendChild(p),i.appendChild(this.layerElement),u.appendChild(i)),this.globalData.defs.appendChild(s)}this.matteMasks[e]=a}return this.matteMasks[e]},setMatte:function(e){this.matteElement&&this.matteElement.setAttribute("mask","url("+l()+"#"+e+")")}},en.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(e){this.hierarchy=e},setAsParent:function(){this._isParent=!0},checkParenting:function(){void 0!==this.data.parent&&this.comp.buildElementParenting(this,this.data.parent,[])}},Ht={initElement:function(e,t,n){this.initFrame(),this.initBaseData(e,t,n),this.initTransform(e,t,n),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){this.hidden||this.isInRange&&!this.isTransparent||((this.baseElement||this.layerElement).style.display="none",this.hidden=!0)},show:function(){this.isInRange&&!this.isTransparent&&(this.data.hd||((this.baseElement||this.layerElement).style.display="block"),this.hidden=!1,this._isFirstFrame=!0)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}},c([jt,d(Ht)],tn),c([Vt,Wt,Qt,en,Nt,tn],nn),nn.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData);this.innerElem=H("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)},nn.prototype.sourceRectAtTime=function(){return this.sourceRect},an.prototype={addShapeToModifiers:function(e){var t,n=this.shapeModifiers.length;for(t=0;t<n;t+=1)this.shapeModifiers[t].addShape(e)},isShapeInAnimatedModifiers:function(e){for(var t=0,n=this.shapeModifiers.length;t<n;)if(this.shapeModifiers[t].isAnimatedWithShape(e))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var e,t=this.shapes.length;for(e=0;e<t;e+=1)this.shapes[e].sh.reset();for(e=(t=this.shapeModifiers.length)-1;e>=0&&!this.shapeModifiers[e].processShapes(this._isFirstFrame);e-=1);}},searchProcessedElement:function(e){for(var t=this.processedElements,n=0,r=t.length;n<r;){if(t[n].elem===e)return t[n].pos;n+=1}return 0},addProcessedElement:function(e,t){for(var n=this.processedElements,r=n.length;r;)if(n[r-=1].elem===e)return void(n[r].pos=t);n.push(new rn(e,t))},prepareFrame:function(e){this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)}};var on={1:"butt",2:"round",3:"square"},sn={1:"miter",2:"round",3:"bevel"};function ln(e,t,n){this.caches=[],this.styles=[],this.transformers=e,this.lStr="",this.sh=n,this.lvl=t,this._isAnimated=!!n.k;for(var r=0,i=e.length;r<i;){if(e[r].mProps.dynamicProperties.length){this._isAnimated=!0;break}r+=1}}function un(e,t){this.data=e,this.type=e.ty,this.d="",this.lvl=t,this._mdf=!1,this.closed=!0===e.hd,this.pElem=H("path"),this.msElem=null}function cn(e,t,n,r){var i;this.elem=e,this.frameId=-1,this.dataProps=f(t.length),this.renderer=n,this.k=!1,this.dashStr="",this.dashArray=h("float32",t.length?t.length-1:0),this.dashoffset=h("float32",1),this.initDynamicPropertyContainer(r);var a,o=t.length||0;for(i=0;i<o;i+=1)a=he.getProp(e,t[i].v,0,0,this),this.k=a.k||this.k,this.dataProps[i]={n:t[i].n,p:a};this.k||this.getValue(!0),this._isAnimated=this.k}function dn(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=he.getProp(e,t.o,0,.01,this),this.w=he.getProp(e,t.w,0,null,this),this.d=new cn(e,t.d||{},"svg",this),this.c=he.getProp(e,t.c,1,255,this),this.style=n,this._isAnimated=!!this._isAnimated}function pn(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=he.getProp(e,t.o,0,.01,this),this.c=he.getProp(e,t.c,1,255,this),this.style=n}function hn(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.style=n}function fn(e,t,n){this.data=t,this.c=h("uint8c",4*t.p);var r=t.k.k[0].s?t.k.k[0].s.length-4*t.p:t.k.k.length-4*t.p;this.o=h("float32",r),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=r,this.initDynamicPropertyContainer(n),this.prop=he.getProp(e,t.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}function mn(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.initGradientData(e,t,n)}function gn(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.w=he.getProp(e,t.w,0,null,this),this.d=new cn(e,t.d||{},"svg",this),this.initGradientData(e,t,n),this._isAnimated=!!this._isAnimated}function yn(){this.it=[],this.prevViewData=[],this.gr=H("g")}function vn(e,t,n){this.transform={mProps:e,op:t,container:n},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}ln.prototype.setAsAnimated=function(){this._isAnimated=!0},un.prototype.reset=function(){this.d="",this._mdf=!1},cn.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 t=0,n=this.dataProps.length;for("svg"===this.renderer&&(this.dashStr=""),t=0;t<n;t+=1)"o"!==this.dataProps[t].n?"svg"===this.renderer?this.dashStr+=" "+this.dataProps[t].p.v:this.dashArray[t]=this.dataProps[t].p.v:this.dashoffset[0]=this.dataProps[t].p.v}},c([fe],cn),c([fe],dn),c([fe],pn),c([fe],hn),fn.prototype.comparePoints=function(e,t){for(var n=0,r=this.o.length/2;n<r;){if(Math.abs(e[4*n]-e[4*t+2*n])>.01)return!1;n+=1}return!0},fn.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,t=this.data.k.k.length;e<t;){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},fn.prototype.getValue=function(e){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||e){var t,n,r,i=4*this.data.p;for(t=0;t<i;t+=1)n=t%4==0?100:255,r=Math.round(this.prop.v[t]*n),this.c[t]!==r&&(this.c[t]=r,this._cmdf=!e);if(this.o.length)for(i=this.prop.v.length,t=4*this.data.p;t<i;t+=1)n=t%2==0?100:1,r=t%2==0?Math.round(100*this.prop.v[t]):this.prop.v[t],this.o[t-4*this.data.p]!==r&&(this.o[t-4*this.data.p]=r,this._omdf=!e);this._mdf=!e}},c([fe],fn),mn.prototype.initGradientData=function(e,t,n){this.o=he.getProp(e,t.o,0,.01,this),this.s=he.getProp(e,t.s,1,null,this),this.e=he.getProp(e,t.e,1,null,this),this.h=he.getProp(e,t.h||{k:0},0,.01,this),this.a=he.getProp(e,t.a||{k:0},0,S,this),this.g=new fn(e,t.g,this),this.style=n,this.stops=[],this.setGradientData(n.pElem,t),this.setGradientOpacity(t,n),this._isAnimated=!!this._isAnimated},mn.prototype.setGradientData=function(e,t){var n=A(),r=H(1===t.t?"linearGradient":"radialGradient");r.setAttribute("id",n),r.setAttribute("spreadMethod","pad"),r.setAttribute("gradientUnits","userSpaceOnUse");var i,a,o,s=[];for(o=4*t.g.p,a=0;a<o;a+=4)i=H("stop"),r.appendChild(i),s.push(i);e.setAttribute("gf"===t.ty?"fill":"stroke","url("+l()+"#"+n+")"),this.gf=r,this.cst=s},mn.prototype.setGradientOpacity=function(e,t){if(this.g._hasOpacity&&!this.g._collapsable){var n,r,i,a=H("mask"),o=H("path");a.appendChild(o);var s=A(),u=A();a.setAttribute("id",u);var c=H(1===e.t?"linearGradient":"radialGradient");c.setAttribute("id",s),c.setAttribute("spreadMethod","pad"),c.setAttribute("gradientUnits","userSpaceOnUse"),i=e.g.k.k[0].s?e.g.k.k[0].s.length:e.g.k.k.length;var d=this.stops;for(r=4*e.g.p;r<i;r+=2)(n=H("stop")).setAttribute("stop-color","rgb(255,255,255)"),c.appendChild(n),d.push(n);o.setAttribute("gf"===e.ty?"fill":"stroke","url("+l()+"#"+s+")"),"gs"===e.ty&&(o.setAttribute("stroke-linecap",on[e.lc||2]),o.setAttribute("stroke-linejoin",sn[e.lj||2]),1===e.lj&&o.setAttribute("stroke-miterlimit",e.ml)),this.of=c,this.ms=a,this.ost=d,this.maskId=u,t.msElem=o}},c([fe],mn),c([mn,fe],gn);var bn=function(e,t,n,r){if(0===t)return"";var i,a=e.o,o=e.i,s=e.v,l=" M"+r.applyToPointStringified(s[0][0],s[0][1]);for(i=1;i<t;i+=1)l+=" C"+r.applyToPointStringified(a[i-1][0],a[i-1][1])+" "+r.applyToPointStringified(o[i][0],o[i][1])+" "+r.applyToPointStringified(s[i][0],s[i][1]);return n&&t&&(l+=" C"+r.applyToPointStringified(a[i-1][0],a[i-1][1])+" "+r.applyToPointStringified(o[0][0],o[0][1])+" "+r.applyToPointStringified(s[0][0],s[0][1]),l+="z"),l},xn=function(){var e=new we,t=new we;function n(e){switch(e.ty){case"fl":return o;case"gf":return l;case"gs":return s;case"st":return u;case"sh":case"el":case"rc":case"sr":return a;case"tr":return r;case"no":return i;default:return null}}function r(e,t,n){(n||t.transform.op._mdf)&&t.transform.container.setAttribute("opacity",t.transform.op.v),(n||t.transform.mProps._mdf)&&t.transform.container.setAttribute("transform",t.transform.mProps.v.to2dCSS())}function i(){}function a(n,r,i){var a,o,s,l,u,c,d,p,h,f,m,g=r.styles.length,y=r.lvl;for(c=0;c<g;c+=1){if(l=r.sh._mdf||i,r.styles[c].lvl<y){for(p=t.reset(),f=y-r.styles[c].lvl,m=r.transformers.length-1;!l&&f>0;)l=r.transformers[m].mProps._mdf||l,f-=1,m-=1;if(l)for(f=y-r.styles[c].lvl,m=r.transformers.length-1;f>0;)h=r.transformers[m].mProps.v.props,p.transform(h[0],h[1],h[2],h[3],h[4],h[5],h[6],h[7],h[8],h[9],h[10],h[11],h[12],h[13],h[14],h[15]),f-=1,m-=1}else p=e;if(o=(d=r.sh.paths)._length,l){for(s="",a=0;a<o;a+=1)(u=d.shapes[a])&&u._length&&(s+=bn(u,u._length,u.c,p));r.caches[c]=s}else s=r.caches[c];r.styles[c].d+=!0===n.hd?"":s,r.styles[c]._mdf=l||r.styles[c]._mdf}}function o(e,t,n){var r=t.style;(t.c._mdf||n)&&r.pElem.setAttribute("fill","rgb("+w(t.c.v[0])+","+w(t.c.v[1])+","+w(t.c.v[2])+")"),(t.o._mdf||n)&&r.pElem.setAttribute("fill-opacity",t.o.v)}function s(e,t,n){l(e,t,n),u(e,t,n)}function l(e,t,n){var r,i,a,o,s,l=t.gf,u=t.g._hasOpacity,c=t.s.v,d=t.e.v;if(t.o._mdf||n){var p="gf"===e.ty?"fill-opacity":"stroke-opacity";t.style.pElem.setAttribute(p,t.o.v)}if(t.s._mdf||n){var h=1===e.t?"x1":"cx",f="x1"===h?"y1":"cy";l.setAttribute(h,c[0]),l.setAttribute(f,c[1]),u&&!t.g._collapsable&&(t.of.setAttribute(h,c[0]),t.of.setAttribute(f,c[1]))}if(t.g._cmdf||n){r=t.cst;var m=t.g.c;for(a=r.length,i=0;i<a;i+=1)(o=r[i]).setAttribute("offset",m[4*i]+"%"),o.setAttribute("stop-color","rgb("+m[4*i+1]+","+m[4*i+2]+","+m[4*i+3]+")")}if(u&&(t.g._omdf||n)){var g=t.g.o;for(a=(r=t.g._collapsable?t.cst:t.ost).length,i=0;i<a;i+=1)o=r[i],t.g._collapsable||o.setAttribute("offset",g[2*i]+"%"),o.setAttribute("stop-opacity",g[2*i+1])}if(1===e.t)(t.e._mdf||n)&&(l.setAttribute("x2",d[0]),l.setAttribute("y2",d[1]),u&&!t.g._collapsable&&(t.of.setAttribute("x2",d[0]),t.of.setAttribute("y2",d[1])));else if((t.s._mdf||t.e._mdf||n)&&(s=Math.sqrt(Math.pow(c[0]-d[0],2)+Math.pow(c[1]-d[1],2)),l.setAttribute("r",s),u&&!t.g._collapsable&&t.of.setAttribute("r",s)),t.e._mdf||t.h._mdf||t.a._mdf||n){s||(s=Math.sqrt(Math.pow(c[0]-d[0],2)+Math.pow(c[1]-d[1],2)));var y=Math.atan2(d[1]-c[1],d[0]-c[0]),v=t.h.v;v>=1?v=.99:v<=-1&&(v=-.99);var b=s*v,x=Math.cos(y+t.a.v)*b+c[0],w=Math.sin(y+t.a.v)*b+c[1];l.setAttribute("fx",x),l.setAttribute("fy",w),u&&!t.g._collapsable&&(t.of.setAttribute("fx",x),t.of.setAttribute("fy",w))}}function u(e,t,n){var r=t.style,i=t.d;i&&(i._mdf||n)&&i.dashStr&&(r.pElem.setAttribute("stroke-dasharray",i.dashStr),r.pElem.setAttribute("stroke-dashoffset",i.dashoffset[0])),t.c&&(t.c._mdf||n)&&r.pElem.setAttribute("stroke","rgb("+w(t.c.v[0])+","+w(t.c.v[1])+","+w(t.c.v[2])+")"),(t.o._mdf||n)&&r.pElem.setAttribute("stroke-opacity",t.o.v),(t.w._mdf||n)&&(r.pElem.setAttribute("stroke-width",t.w.v),r.msElem&&r.msElem.setAttribute("stroke-width",t.w.v))}return{createRenderFunction:n}}();function wn(e,t,n){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(e,t,n),this.prevViewData=[]}function En(e,t,n,r,i,a){this.o=e,this.sw=t,this.sc=n,this.fc=r,this.m=i,this.p=a,this._mdf={o:!0,sw:!!t,sc:!!n,fc:!!r,m:!0,p:!0}}function kn(e,t){this._frameId=i,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,this.data=t,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)}c([Vt,Wt,Qt,an,en,Nt,tn],wn),wn.prototype.initSecondaryElement=function(){},wn.prototype.identityMatrix=new we,wn.prototype.buildExpressionInterface=function(){},wn.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},wn.prototype.filterUniqueShapes=function(){var e,t,n,r,i=this.shapes.length,a=this.stylesList.length,o=[],s=!1;for(n=0;n<a;n+=1){for(r=this.stylesList[n],s=!1,o.length=0,e=0;e<i;e+=1)-1!==(t=this.shapes[e]).styles.indexOf(r)&&(o.push(t),s=t._isAnimated||s);o.length>1&&s&&this.setShapesAsAnimated(o)}},wn.prototype.setShapesAsAnimated=function(e){var t,n=e.length;for(t=0;t<n;t+=1)e[t].setAsAnimated()},wn.prototype.createStyleElement=function(e,t){var n,r=new un(e,t),i=r.pElem;return"st"===e.ty?n=new dn(this,e,r):"fl"===e.ty?n=new pn(this,e,r):"gf"===e.ty||"gs"===e.ty?(n=new("gf"===e.ty?mn:gn)(this,e,r),this.globalData.defs.appendChild(n.gf),n.maskId&&(this.globalData.defs.appendChild(n.ms),this.globalData.defs.appendChild(n.of),i.setAttribute("mask","url("+l()+"#"+n.maskId+")"))):"no"===e.ty&&(n=new hn(this,e,r)),"st"!==e.ty&&"gs"!==e.ty||(i.setAttribute("stroke-linecap",on[e.lc||2]),i.setAttribute("stroke-linejoin",sn[e.lj||2]),i.setAttribute("fill-opacity","0"),1===e.lj&&i.setAttribute("stroke-miterlimit",e.ml)),2===e.r&&i.setAttribute("fill-rule","evenodd"),e.ln&&i.setAttribute("id",e.ln),e.cl&&i.setAttribute("class",e.cl),e.bm&&(i.style["mix-blend-mode"]=Rt(e.bm)),this.stylesList.push(r),this.addToAnimatedContents(e,n),n},wn.prototype.createGroupElement=function(e){var t=new yn;return e.ln&&t.gr.setAttribute("id",e.ln),e.cl&&t.gr.setAttribute("class",e.cl),e.bm&&(t.gr.style["mix-blend-mode"]=Rt(e.bm)),t},wn.prototype.createTransformElement=function(e,t){var n=Ue.getTransformProperty(this,e,this),r=new vn(n,n.o,t);return this.addToAnimatedContents(e,r),r},wn.prototype.createShapeElement=function(e,t,n){var r=4;"rc"===e.ty?r=5:"el"===e.ty?r=6:"sr"===e.ty&&(r=7);var i=new ln(t,n,xe.getShapeProp(this,e,r,this));return this.shapes.push(i),this.addShapeToModifiers(i),this.addToAnimatedContents(e,i),i},wn.prototype.addToAnimatedContents=function(e,t){for(var n=0,r=this.animatedContents.length;n<r;){if(this.animatedContents[n].element===t)return;n+=1}this.animatedContents.push({fn:xn.createRenderFunction(e),element:t,data:e})},wn.prototype.setElementStyles=function(e){var t,n=e.styles,r=this.stylesList.length;for(t=0;t<r;t+=1)this.stylesList[t].closed||n.push(this.stylesList[t])},wn.prototype.reloadShapes=function(){var e;this._isFirstFrame=!0;var t=this.itemsData.length;for(e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers()},wn.prototype.searchShapes=function(e,t,n,r,i,a,o){var s,l,u,c,d,p,h=[].concat(a),f=e.length-1,m=[],g=[];for(s=f;s>=0;s-=1){if((p=this.searchProcessedElement(e[s]))?t[s]=n[p-1]:e[s]._render=o,"fl"===e[s].ty||"st"===e[s].ty||"gf"===e[s].ty||"gs"===e[s].ty||"no"===e[s].ty)p?t[s].style.closed=!1:t[s]=this.createStyleElement(e[s],i),e[s]._render&&t[s].style.pElem.parentNode!==r&&r.appendChild(t[s].style.pElem),m.push(t[s].style);else if("gr"===e[s].ty){if(p)for(u=t[s].it.length,l=0;l<u;l+=1)t[s].prevViewData[l]=t[s].it[l];else t[s]=this.createGroupElement(e[s]);this.searchShapes(e[s].it,t[s].it,t[s].prevViewData,t[s].gr,i+1,h,o),e[s]._render&&t[s].gr.parentNode!==r&&r.appendChild(t[s].gr)}else"tr"===e[s].ty?(p||(t[s]=this.createTransformElement(e[s],r)),c=t[s].transform,h.push(c)):"sh"===e[s].ty||"rc"===e[s].ty||"el"===e[s].ty||"sr"===e[s].ty?(p||(t[s]=this.createShapeElement(e[s],h,i)),this.setElementStyles(t[s])):"tm"===e[s].ty||"rd"===e[s].ty||"ms"===e[s].ty||"pb"===e[s].ty||"zz"===e[s].ty||"op"===e[s].ty?(p?(d=t[s]).closed=!1:((d=Ve.getModifier(e[s].ty)).init(this,e[s]),t[s]=d,this.shapeModifiers.push(d)),g.push(d)):"rp"===e[s].ty&&(p?(d=t[s]).closed=!0:(d=Ve.getModifier(e[s].ty),t[s]=d,d.init(this,e,s,t),this.shapeModifiers.push(d),o=!1),g.push(d));this.addProcessedElement(e[s],s+1)}for(f=m.length,s=0;s<f;s+=1)m[s].closed=!0;for(f=g.length,s=0;s<f;s+=1)g[s].closed=!0},wn.prototype.renderInnerContent=function(){var e;this.renderModifiers();var t=this.stylesList.length;for(e=0;e<t;e+=1)this.stylesList[e].reset();for(this.renderShape(),e=0;e<t;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"))},wn.prototype.renderShape=function(){var e,t,n=this.animatedContents.length;for(e=0;e<n;e+=1)t=this.animatedContents[e],(this._isFirstFrame||t.element._isAnimated)&&!0!==t.data&&t.fn(t.data,t.element,this._isFirstFrame)},wn.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null},En.prototype.update=function(e,t,n,r,i,a){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 o=!1;return this.o!==e&&(this.o=e,this._mdf.o=!0,o=!0),this.sw!==t&&(this.sw=t,this._mdf.sw=!0,o=!0),this.sc!==n&&(this.sc=n,this._mdf.sc=!0,o=!0),this.fc!==r&&(this.fc=r,this._mdf.fc=!0,o=!0),this.m!==i&&(this.m=i,this._mdf.m=!0,o=!0),!a.length||this.p[0]===a[0]&&this.p[1]===a[1]&&this.p[4]===a[4]&&this.p[5]===a[5]&&this.p[12]===a[12]&&this.p[13]===a[13]||(this.p=a,this._mdf.p=!0,o=!0),o},kn.prototype.defaultBoxWidth=[0,0],kn.prototype.copyData=function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},kn.prototype.setCurrentData=function(e){e.__complete||this.completeTextData(e),this.currentData=e,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},kn.prototype.searchProperty=function(){return this.searchKeyframes()},kn.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},kn.prototype.addEffect=function(e){this.effectsSequence.push(e),this.elem.addDynamicProperty(this)},kn.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 t=this.currentData,n=this.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else{var r;this.lock=!0,this._mdf=!1;var i=this.effectsSequence.length,a=e||this.data.d.k[this.keysIndex].s;for(r=0;r<i;r+=1)a=n!==this.keysIndex?this.effectsSequence[r](a,a.t):this.effectsSequence[r](this.currentData,a.t);t!==a&&this.setCurrentData(a),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}}},kn.prototype.getKeyframeValue=function(){for(var e=this.data.d.k,t=this.elem.comp.renderedFrame,n=0,r=e.length;n<=r-1&&!(n===r-1||e[n+1].t>t);)n+=1;return this.keysIndex!==n&&(this.keysIndex=n),this.data.d.k[this.keysIndex].s},kn.prototype.buildFinalText=function(e){for(var t,n,r=[],i=0,a=e.length,o=!1;i<a;)t=e.charCodeAt(i),Dt.isCombinedCharacter(t)?r[r.length-1]+=e.charAt(i):t>=55296&&t<=56319?(n=e.charCodeAt(i+1))>=56320&&n<=57343?(o||Dt.isModifier(t,n)?(r[r.length-1]+=e.substr(i,2),o=!1):r.push(e.substr(i,2)),i+=1):r.push(e.charAt(i)):t>56319?(n=e.charCodeAt(i+1),Dt.isZeroWidthJoiner(t,n)?(o=!0,r[r.length-1]+=e.substr(i,2),i+=1):r.push(e.charAt(i))):Dt.isZeroWidthJoiner(t)?(r[r.length-1]+=e.charAt(i),o=!0):r.push(e.charAt(i)),i+=1;return r},kn.prototype.completeTextData=function(e){e.__complete=!0;var t,n,r,i,a,o,s,l=this.elem.globalData.fontManager,u=this.data,c=[],d=0,p=u.m.g,h=0,f=0,m=0,g=[],y=0,v=0,b=l.getFontByName(e.f),x=0,w=St(b);e.fWeight=w.weight,e.fStyle=w.style,e.finalSize=e.s,e.finalText=this.buildFinalText(e.t),n=e.finalText.length,e.finalLineHeight=e.lh;var E,k=e.tr/1e3*e.finalSize;if(e.sz)for(var S,D,j=!0,C=e.sz[0],R=e.sz[1];j;){S=0,y=0,n=(D=this.buildFinalText(e.t)).length,k=e.tr/1e3*e.finalSize;var P=-1;for(t=0;t<n;t+=1)E=D[t].charCodeAt(0),r=!1," "===D[t]?P=t:13!==E&&3!==E||(y=0,r=!0,S+=e.finalLineHeight||1.2*e.finalSize),l.chars?(s=l.getCharData(D[t],b.fStyle,b.fFamily),x=r?0:s.w*e.finalSize/100):x=l.measureText(D[t],e.f,e.finalSize),y+x>C&&" "!==D[t]?(-1===P?n+=1:t=P,S+=e.finalLineHeight||1.2*e.finalSize,D.splice(t,P===t?1:0,"\r"),P=-1,y=0):(y+=x,y+=k);S+=b.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&R<S?(e.finalSize-=1,e.finalLineHeight=e.finalSize*e.lh/e.s):(e.finalText=D,n=e.finalText.length,j=!1)}y=-k,x=0;var $,T=0;for(t=0;t<n;t+=1)if(r=!1,13===(E=($=e.finalText[t]).charCodeAt(0))||3===E?(T=0,g.push(y),v=y>v?y:v,y=-2*k,i="",r=!0,m+=1):i=$,l.chars?(s=l.getCharData($,b.fStyle,l.getFontByName(e.f).fFamily),x=r?0:s.w*e.finalSize/100):x=l.measureText(i,e.f,e.finalSize)," "===$?T+=x+k:(y+=x+k+T,T=0),c.push({l:x,an:x,add:h,n:r,anIndexes:[],val:i,line:m,animatorJustifyOffset:0}),2==p){if(h+=x,""===i||" "===i||t===n-1){for(""!==i&&" "!==i||(h-=x);f<=t;)c[f].an=h,c[f].ind=d,c[f].extra=x,f+=1;d+=1,h=0}}else if(3==p){if(h+=x,""===i||t===n-1){for(""===i&&(h-=x);f<=t;)c[f].an=h,c[f].ind=d,c[f].extra=x,f+=1;h=0,d+=1}}else c[d].ind=d,c[d].extra=0,d+=1;if(e.l=c,v=y>v?y:v,g.push(y),e.sz)e.boxWidth=e.sz[0],e.justifyOffset=0;else switch(e.boxWidth=v,e.j){case 1:e.justifyOffset=-e.boxWidth;break;case 2:e.justifyOffset=-e.boxWidth/2;break;default:e.justifyOffset=0}e.lineWidths=g;var _,M,A,I,O=u.a;o=O.length;var F=[];for(a=0;a<o;a+=1){for((_=O[a]).a.sc&&(e.strokeColorAnim=!0),_.a.sw&&(e.strokeWidthAnim=!0),(_.a.fc||_.a.fh||_.a.fs||_.a.fb)&&(e.fillColorAnim=!0),I=0,A=_.s.b,t=0;t<n;t+=1)(M=c[t]).anIndexes[a]=I,(1==A&&""!==M.val||2==A&&""!==M.val&&" "!==M.val||3==A&&(M.n||" "==M.val||t==n-1)||4==A&&(M.n||t==n-1))&&(1===_.s.rn&&F.push(I),I+=1);u.a[a].s.totalChars=I;var L,V=-1;if(1===_.s.rn)for(t=0;t<n;t+=1)V!=(M=c[t]).anIndexes[a]&&(V=M.anIndexes[a],L=F.splice(Math.floor(Math.random()*F.length),1)[0]),M.anIndexes[a]=L}e.yOffset=e.finalLineHeight||1.2*e.finalSize,e.ls=e.ls||0,e.ascent=b.ascent*e.finalSize/100},kn.prototype.updateDocumentData=function(e,t){t=void 0===t?this.keysIndex:t;var n=this.copyData({},this.data.d.k[t].s);n=this.copyData(n,e),this.data.d.k[t].s=n,this.recalculate(t),this.elem.addDynamicProperty(this)},kn.prototype.recalculate=function(e){var t=this.data.d.k[e].s;t.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(t)},kn.prototype.canResizeFont=function(e){this.canResize=e,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},kn.prototype.setMinimumFontSize=function(e){this.minimumFontSize=Math.floor(e)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var Sn=function(){var e=Math.max,t=Math.min,n=Math.floor;function r(e,t){this._currentTextLength=-1,this.k=!1,this.data=t,this.elem=e,this.comp=e.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(e),this.s=he.getProp(e,t.s||{k:0},0,0,this),this.e="e"in t?he.getProp(e,t.e,0,0,this):{v:100},this.o=he.getProp(e,t.o||{k:0},0,0,this),this.xe=he.getProp(e,t.xe||{k:0},0,0,this),this.ne=he.getProp(e,t.ne||{k:0},0,0,this),this.sm=he.getProp(e,t.sm||{k:100},0,0,this),this.a=he.getProp(e,t.a,0,.01,this),this.dynamicProperties.length||this.getValue()}function i(e,t,n){return new r(e,t)}return r.prototype={getMult:function(r){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var i=0,a=0,o=1,s=1;this.ne.v>0?i=this.ne.v/100:a=-this.ne.v/100,this.xe.v>0?o=1-this.xe.v/100:s=1+this.xe.v/100;var l=oe.getBezierEasing(i,a,o,s).get,u=0,c=this.finalS,d=this.finalE,p=this.data.sh;if(2===p)u=l(u=d===c?r>=d?1:0:e(0,t(.5/(d-c)+(r-c)/(d-c),1)));else if(3===p)u=l(u=d===c?r>=d?0:1:1-e(0,t(.5/(d-c)+(r-c)/(d-c),1)));else if(4===p)d===c?u=0:(u=e(0,t(.5/(d-c)+(r-c)/(d-c),1)))<.5?u*=2:u=1-2*(u-.5),u=l(u);else if(5===p){if(d===c)u=0;else{var h=d-c,f=-h/2+(r=t(e(0,r+.5-c),d-c)),m=h/2;u=Math.sqrt(1-f*f/(m*m))}u=l(u)}else 6===p?(d===c?u=0:(r=t(e(0,r+.5-c),d-c),u=(1+Math.cos(Math.PI+2*Math.PI*r/(d-c)))/2),u=l(u)):(r>=n(c)&&(u=e(0,t(r-c<0?t(d,1)-(c-r):d-r,1))),u=l(u));if(100!==this.sm.v){var g=.01*this.sm.v;0===g&&(g=1e-8);var y=.5-.5*g;u<y?u=0:(u=(u-y)/g)>1&&(u=1)}return u*this.a.v},getValue:function(e){this.iterateDynamicProperties(),this._mdf=e||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,e&&2===this.data.r&&(this.e.v=this._currentTextLength);var t=2===this.data.r?1:100/this.data.totalChars,n=this.o.v/t,r=this.s.v/t+n,i=this.e.v/t+n;if(r>i){var a=r;r=i,i=a}this.finalS=r,this.finalE=i}},c([fe],r),{getTextSelectorProp:i}}();function Dn(e,t,n){var r={propType:!1},i=he.getProp,a=t.a;this.a={r:a.r?i(e,a.r,0,S,n):r,rx:a.rx?i(e,a.rx,0,S,n):r,ry:a.ry?i(e,a.ry,0,S,n):r,sk:a.sk?i(e,a.sk,0,S,n):r,sa:a.sa?i(e,a.sa,0,S,n):r,s:a.s?i(e,a.s,1,.01,n):r,a:a.a?i(e,a.a,1,0,n):r,o:a.o?i(e,a.o,0,.01,n):r,p:a.p?i(e,a.p,1,0,n):r,sw:a.sw?i(e,a.sw,0,0,n):r,sc:a.sc?i(e,a.sc,1,0,n):r,fc:a.fc?i(e,a.fc,1,0,n):r,fh:a.fh?i(e,a.fh,0,0,n):r,fs:a.fs?i(e,a.fs,0,.01,n):r,fb:a.fb?i(e,a.fb,0,.01,n):r,t:a.t?i(e,a.t,0,0,n):r},this.s=Sn.getTextSelectorProp(e,t.s,n),this.s.t=t.s.t}function jn(e,t,n){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=e,this._renderType=t,this._elem=n,this._animatorsData=f(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(n)}function Cn(){}jn.prototype.searchProperties=function(){var e,t,n=this._textData.a.length,r=he.getProp;for(e=0;e<n;e+=1)t=this._textData.a[e],this._animatorsData[e]=new Dn(this._elem,t,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:r(this._elem,this._textData.p.a,0,0,this),f:r(this._elem,this._textData.p.f,0,0,this),l:r(this._elem,this._textData.p.l,0,0,this),r:r(this._elem,this._textData.p.r,0,0,this),p:r(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=r(this._elem,this._textData.m.a,1,0,this)},jn.prototype.getMeasures=function(e,t){if(this.lettersChangedFlag=t,this._mdf||this._isFirstFrame||t||this._hasMaskedPath&&this._pathData.m._mdf){this._isFirstFrame=!1;var n,r,i,a,o,s,l,u,c,d,p,h,f,m,g,y,v,b,x,w=this._moreOptions.alignment.v,E=this._animatorsData,k=this._textData,S=this.mHelper,D=this._renderType,j=this.renderedLetters.length,C=e.l;if(this._hasMaskedPath){if(x=this._pathData.m,!this._pathData.n||this._pathData._mdf){var R,P=x.v;for(this._pathData.r.v&&(P=P.reverse()),o={tLength:0,segments:[]},a=P._length-1,y=0,i=0;i<a;i+=1)R=pe.buildBezierData(P.v[i],P.v[i+1],[P.o[i][0]-P.v[i][0],P.o[i][1]-P.v[i][1]],[P.i[i+1][0]-P.v[i+1][0],P.i[i+1][1]-P.v[i+1][1]]),o.tLength+=R.segmentLength,o.segments.push(R),y+=R.segmentLength;i=a,x.v.c&&(R=pe.buildBezierData(P.v[i],P.v[0],[P.o[i][0]-P.v[i][0],P.o[i][1]-P.v[i][1]],[P.i[0][0]-P.v[0][0],P.i[0][1]-P.v[0][1]]),o.tLength+=R.segmentLength,o.segments.push(R),y+=R.segmentLength),this._pathData.pi=o}if(o=this._pathData.pi,s=this._pathData.f.v,p=0,d=1,u=0,c=!0,m=o.segments,s<0&&x.v.c)for(o.tLength<Math.abs(s)&&(s=-Math.abs(s)%o.tLength),d=(f=m[p=m.length-1].points).length-1;s<0;)s+=f[d].partialLength,(d-=1)<0&&(d=(f=m[p-=1].points).length-1);h=(f=m[p].points)[d-1],g=(l=f[d]).partialLength}a=C.length,n=0,r=0;var $,T,_,M,A,I=1.2*e.finalSize*.714,O=!0;_=E.length;var N,z,B,U,W,q,K,H,Z,G,Y,J,X=-1,Q=s,ee=p,te=d,ne=-1,re="",ie=this.defaultPropsArray;if(2===e.j||1===e.j){var ae=0,oe=0,se=2===e.j?-.5:-1,le=0,ue=!0;for(i=0;i<a;i+=1)if(C[i].n){for(ae&&(ae+=oe);le<i;)C[le].animatorJustifyOffset=ae,le+=1;ae=0,ue=!0}else{for(T=0;T<_;T+=1)($=E[T].a).t.propType&&(ue&&2===e.j&&(oe+=$.t.v*se),(A=E[T].s.getMult(C[i].anIndexes[T],k.a[T].s.totalChars)).length?ae+=$.t.v*A[0]*se:ae+=$.t.v*A*se);ue=!1}for(ae&&(ae+=oe);le<i;)C[le].animatorJustifyOffset=ae,le+=1}for(i=0;i<a;i+=1){if(S.reset(),U=1,C[i].n)n=0,r+=e.yOffset,r+=O?1:0,s=Q,O=!1,this._hasMaskedPath&&(d=te,h=(f=m[p=ee].points)[d-1],g=(l=f[d]).partialLength,u=0),re="",Y="",Z="",J="",ie=this.defaultPropsArray;else{if(this._hasMaskedPath){if(ne!==C[i].line){switch(e.j){case 1:s+=y-e.lineWidths[C[i].line];break;case 2:s+=(y-e.lineWidths[C[i].line])/2}ne=C[i].line}X!==C[i].ind&&(C[X]&&(s+=C[X].extra),s+=C[i].an/2,X=C[i].ind),s+=w[0]*C[i].an*.005;var ce=0;for(T=0;T<_;T+=1)($=E[T].a).p.propType&&((A=E[T].s.getMult(C[i].anIndexes[T],k.a[T].s.totalChars)).length?ce+=$.p.v[0]*A[0]:ce+=$.p.v[0]*A),$.a.propType&&((A=E[T].s.getMult(C[i].anIndexes[T],k.a[T].s.totalChars)).length?ce+=$.a.v[0]*A[0]:ce+=$.a.v[0]*A);for(c=!0,this._pathData.a.v&&(s=.5*C[0].an+(y-this._pathData.f.v-.5*C[0].an-.5*C[C.length-1].an)*X/(a-1),s+=this._pathData.f.v);c;)u+g>=s+ce||!f?(v=(s+ce-u)/l.partialLength,z=h.point[0]+(l.point[0]-h.point[0])*v,B=h.point[1]+(l.point[1]-h.point[1])*v,S.translate(-w[0]*C[i].an*.005,-w[1]*I*.01),c=!1):f&&(u+=l.partialLength,(d+=1)>=f.length&&(d=0,m[p+=1]?f=m[p].points:x.v.c?(d=0,f=m[p=0].points):(u-=l.partialLength,f=null)),f&&(h=l,g=(l=f[d]).partialLength));N=C[i].an/2-C[i].add,S.translate(-N,0,0)}else N=C[i].an/2-C[i].add,S.translate(-N,0,0),S.translate(-w[0]*C[i].an*.005,-w[1]*I*.01,0);for(T=0;T<_;T+=1)($=E[T].a).t.propType&&(A=E[T].s.getMult(C[i].anIndexes[T],k.a[T].s.totalChars),0===n&&0===e.j||(this._hasMaskedPath?A.length?s+=$.t.v*A[0]:s+=$.t.v*A:A.length?n+=$.t.v*A[0]:n+=$.t.v*A));for(e.strokeWidthAnim&&(q=e.sw||0),e.strokeColorAnim&&(W=e.sc?[e.sc[0],e.sc[1],e.sc[2]]:[0,0,0]),e.fillColorAnim&&e.fc&&(K=[e.fc[0],e.fc[1],e.fc[2]]),T=0;T<_;T+=1)($=E[T].a).a.propType&&((A=E[T].s.getMult(C[i].anIndexes[T],k.a[T].s.totalChars)).length?S.translate(-$.a.v[0]*A[0],-$.a.v[1]*A[1],$.a.v[2]*A[2]):S.translate(-$.a.v[0]*A,-$.a.v[1]*A,$.a.v[2]*A));for(T=0;T<_;T+=1)($=E[T].a).s.propType&&((A=E[T].s.getMult(C[i].anIndexes[T],k.a[T].s.totalChars)).length?S.scale(1+($.s.v[0]-1)*A[0],1+($.s.v[1]-1)*A[1],1):S.scale(1+($.s.v[0]-1)*A,1+($.s.v[1]-1)*A,1));for(T=0;T<_;T+=1){if($=E[T].a,A=E[T].s.getMult(C[i].anIndexes[T],k.a[T].s.totalChars),$.sk.propType&&(A.length?S.skewFromAxis(-$.sk.v*A[0],$.sa.v*A[1]):S.skewFromAxis(-$.sk.v*A,$.sa.v*A)),$.r.propType&&(A.length?S.rotateZ(-$.r.v*A[2]):S.rotateZ(-$.r.v*A)),$.ry.propType&&(A.length?S.rotateY($.ry.v*A[1]):S.rotateY($.ry.v*A)),$.rx.propType&&(A.length?S.rotateX($.rx.v*A[0]):S.rotateX($.rx.v*A)),$.o.propType&&(A.length?U+=($.o.v*A[0]-U)*A[0]:U+=($.o.v*A-U)*A),e.strokeWidthAnim&&$.sw.propType&&(A.length?q+=$.sw.v*A[0]:q+=$.sw.v*A),e.strokeColorAnim&&$.sc.propType)for(H=0;H<3;H+=1)A.length?W[H]+=($.sc.v[H]-W[H])*A[0]:W[H]+=($.sc.v[H]-W[H])*A;if(e.fillColorAnim&&e.fc){if($.fc.propType)for(H=0;H<3;H+=1)A.length?K[H]+=($.fc.v[H]-K[H])*A[0]:K[H]+=($.fc.v[H]-K[H])*A;$.fh.propType&&(K=A.length?V(K,$.fh.v*A[0]):V(K,$.fh.v*A)),$.fs.propType&&(K=A.length?F(K,$.fs.v*A[0]):F(K,$.fs.v*A)),$.fb.propType&&(K=A.length?L(K,$.fb.v*A[0]):L(K,$.fb.v*A))}}for(T=0;T<_;T+=1)($=E[T].a).p.propType&&(A=E[T].s.getMult(C[i].anIndexes[T],k.a[T].s.totalChars),this._hasMaskedPath?A.length?S.translate(0,$.p.v[1]*A[0],-$.p.v[2]*A[1]):S.translate(0,$.p.v[1]*A,-$.p.v[2]*A):A.length?S.translate($.p.v[0]*A[0],$.p.v[1]*A[1],-$.p.v[2]*A[2]):S.translate($.p.v[0]*A,$.p.v[1]*A,-$.p.v[2]*A));if(e.strokeWidthAnim&&(Z=q<0?0:q),e.strokeColorAnim&&(G="rgb("+Math.round(255*W[0])+","+Math.round(255*W[1])+","+Math.round(255*W[2])+")"),e.fillColorAnim&&e.fc&&(Y="rgb("+Math.round(255*K[0])+","+Math.round(255*K[1])+","+Math.round(255*K[2])+")"),this._hasMaskedPath){if(S.translate(0,-e.ls),S.translate(0,w[1]*I*.01+r,0),this._pathData.p.v){b=(l.point[1]-h.point[1])/(l.point[0]-h.point[0]);var de=180*Math.atan(b)/Math.PI;l.point[0]<h.point[0]&&(de+=180),S.rotate(-de*Math.PI/180)}S.translate(z,B,0),s-=w[0]*C[i].an*.005,C[i+1]&&X!==C[i+1].ind&&(s+=C[i].an/2,s+=.001*e.tr*e.finalSize)}else{switch(S.translate(n,r,0),e.ps&&S.translate(e.ps[0],e.ps[1]+e.ascent,0),e.j){case 1:S.translate(C[i].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[C[i].line]),0,0);break;case 2:S.translate(C[i].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[C[i].line])/2,0,0)}S.translate(0,-e.ls),S.translate(N,0,0),S.translate(w[0]*C[i].an*.005,w[1]*I*.01,0),n+=C[i].l+.001*e.tr*e.finalSize}"html"===D?re=S.toCSS():"svg"===D?re=S.to2dCSS():ie=[S.props[0],S.props[1],S.props[2],S.props[3],S.props[4],S.props[5],S.props[6],S.props[7],S.props[8],S.props[9],S.props[10],S.props[11],S.props[12],S.props[13],S.props[14],S.props[15]],J=U}j<=i?(M=new En(J,Z,G,Y,re,ie),this.renderedLetters.push(M),j+=1,this.lettersChangedFlag=!0):(M=this.renderedLetters[i],this.lettersChangedFlag=M.update(J,Z,G,Y,re,ie)||this.lettersChangedFlag)}}},jn.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},jn.prototype.mHelper=new we,jn.prototype.defaultPropsArray=[],c([fe],jn),Cn.prototype.initElement=function(e,t,n){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(e,t,n),this.textProperty=new kn(this,e.t,this.dynamicProperties),this.textAnimator=new jn(e.t,this.renderType,this),this.initTransform(e,t,n),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},Cn.prototype.prepareFrame=function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)},Cn.prototype.createPathShape=function(e,t){var n,r,i=t.length,a="";for(n=0;n<i;n+=1)"sh"===t[n].ty&&(r=t[n].ks.k,a+=bn(r,r.i.length,!0,e));return a},Cn.prototype.updateDocumentData=function(e,t){this.textProperty.updateDocumentData(e,t)},Cn.prototype.canResizeFont=function(e){this.textProperty.canResizeFont(e)},Cn.prototype.setMinimumFontSize=function(e){this.textProperty.setMinimumFontSize(e)},Cn.prototype.applyTextPropertiesToMatrix=function(e,t,n,r,i){switch(e.ps&&t.translate(e.ps[0],e.ps[1]+e.ascent,0),t.translate(0,-e.ls,0),e.j){case 1:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[n]),0,0);break;case 2:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[n])/2,0,0)}t.translate(r,i,0)},Cn.prototype.buildColor=function(e){return"rgb("+Math.round(255*e[0])+","+Math.round(255*e[1])+","+Math.round(255*e[2])+")"},Cn.prototype.emptyProp=new En,Cn.prototype.destroy=function(){};var Rn={shapes:[]};function Pn(e,t,n){this.textSpans=[],this.renderType="svg",this.initElement(e,t,n)}function $n(e,t,n){this.initElement(e,t,n)}function Tn(e,t,n){this.initFrame(),this.initBaseData(e,t,n),this.initFrame(),this.initTransform(e,t,n),this.initHierarchy()}function _n(){}function Mn(){}function An(e,t,n){this.layers=e.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?f(this.layers.length):[],this.initElement(e,t,n),this.tm=e.tm?he.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}function In(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.svgElement=H("svg");var n="";if(t&&t.title){var r=H("title"),i=A();r.setAttribute("id",i),r.textContent=t.title,this.svgElement.appendChild(r),n+=i}if(t&&t.description){var a=H("desc"),o=A();a.setAttribute("id",o),a.textContent=t.description,this.svgElement.appendChild(a),n+=" "+o}n&&this.svgElement.setAttribute("aria-labelledby",n);var s=H("defs");this.svgElement.appendChild(s);var l=H("g");this.svgElement.appendChild(l),this.layerElement=l,this.renderConfig={preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",progressiveLoad:t&&t.progressiveLoad||!1,hideOnTransparent:!(t&&!1===t.hideOnTransparent),viewBoxOnly:t&&t.viewBoxOnly||!1,viewBoxSize:t&&t.viewBoxSize||!1,className:t&&t.className||"",id:t&&t.id||"",focusable:t&&t.focusable,filterSize:{width:t&&t.filterSize&&t.filterSize.width||"100%",height:t&&t.filterSize&&t.filterSize.height||"100%",x:t&&t.filterSize&&t.filterSize.x||"0%",y:t&&t.filterSize&&t.filterSize.y||"0%"},width:t&&t.width,height:t&&t.height,runExpressions:!t||void 0===t.runExpressions||t.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:s,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}return c([Vt,Wt,Qt,en,Nt,tn,Cn],Pn),Pn.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=H("text"))},Pn.prototype.buildTextContents=function(e){for(var t=0,n=e.length,r=[],i="";t<n;)e[t]===String.fromCharCode(13)||e[t]===String.fromCharCode(3)?(r.push(i),i=""):i+=e[t],t+=1;return r.push(i),r},Pn.prototype.buildShapeData=function(e,t){if(e.shapes&&e.shapes.length){var n=e.shapes[0];if(n.it){var r=n.it[n.it.length-1];r.s&&(r.s.k[0]=t,r.s.k[1]=t)}}return e},Pn.prototype.buildNewText=function(){var e,t;this.addDynamicProperty(this);var n=this.textProperty.currentData;this.renderedLetters=f(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 r=this.globalData.fontManager.getFontByName(n.f);if(r.fClass)this.layerElement.setAttribute("class",r.fClass);else{this.layerElement.setAttribute("font-family",r.fFamily);var i=n.fWeight,a=n.fStyle;this.layerElement.setAttribute("font-style",a),this.layerElement.setAttribute("font-weight",i)}this.layerElement.setAttribute("aria-label",n.t);var o,s=n.l||[],l=!!this.globalData.fontManager.chars;t=s.length;var u=this.mHelper,c="",d=this.data.singleShape,p=0,h=0,m=!0,g=.001*n.tr*n.finalSize;if(!d||l||n.sz){var y,v=this.textSpans.length;for(e=0;e<t;e+=1){if(this.textSpans[e]||(this.textSpans[e]={span:null,childSpan:null,glyph:null}),!l||!d||0===e){if(o=v>e?this.textSpans[e].span:H(l?"g":"text"),v<=e){if(o.setAttribute("stroke-linecap","butt"),o.setAttribute("stroke-linejoin","round"),o.setAttribute("stroke-miterlimit","4"),this.textSpans[e].span=o,l){var b=H("g");o.appendChild(b),this.textSpans[e].childSpan=b}this.textSpans[e].span=o,this.layerElement.appendChild(o)}o.style.display="inherit"}if(u.reset(),d&&(s[e].n&&(p=-g,h+=n.yOffset,h+=m?1:0,m=!1),this.applyTextPropertiesToMatrix(n,u,s[e].line,p,h),p+=s[e].l||0,p+=g),l){var x;if(1===(y=this.globalData.fontManager.getCharData(n.finalText[e],r.fStyle,this.globalData.fontManager.getFontByName(n.f).fFamily)).t)x=new An(y.data,this.globalData,this);else{var w=Rn;y.data&&y.data.shapes&&(w=this.buildShapeData(y.data,n.finalSize)),x=new wn(w,this.globalData,this)}if(this.textSpans[e].glyph){var E=this.textSpans[e].glyph;this.textSpans[e].childSpan.removeChild(E.layerElement),E.destroy()}this.textSpans[e].glyph=x,x._debug=!0,x.prepareFrame(0),x.renderFrame(),this.textSpans[e].childSpan.appendChild(x.layerElement),1===y.t&&this.textSpans[e].childSpan.setAttribute("transform","scale("+n.finalSize/100+","+n.finalSize/100+")")}else d&&o.setAttribute("transform","translate("+u.props[12]+","+u.props[13]+")"),o.textContent=s[e].val,o.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}d&&o&&o.setAttribute("d",c)}else{var k=this.textContainer,S="start";switch(n.j){case 1:S="end";break;case 2:S="middle";break;default:S="start"}k.setAttribute("text-anchor",S),k.setAttribute("letter-spacing",g);var D=this.buildTextContents(n.finalText);for(t=D.length,h=n.ps?n.ps[1]+n.ascent:0,e=0;e<t;e+=1)(o=this.textSpans[e].span||H("tspan")).textContent=D[e],o.setAttribute("x",0),o.setAttribute("y",h),o.style.display="inherit",k.appendChild(o),this.textSpans[e]||(this.textSpans[e]={span:null,glyph:null}),this.textSpans[e].span=o,h+=n.finalLineHeight;this.layerElement.appendChild(k)}for(;e<this.textSpans.length;)this.textSpans[e].span.style.display="none",e+=1;this._sizeChanged=!0},Pn.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},Pn.prototype.getValue=function(){var e,t,n=this.textSpans.length;for(this.renderedFrame=this.comp.renderedFrame,e=0;e<n;e+=1)(t=this.textSpans[e].glyph)&&(t.prepareFrame(this.comp.renderedFrame-this.data.st),t._mdf&&(this._mdf=!0))},Pn.prototype.renderInnerContent=function(){if((!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){var e,t;this._sizeChanged=!0;var n,r,i,a=this.textAnimator.renderedLetters,o=this.textProperty.currentData.l;for(t=o.length,e=0;e<t;e+=1)o[e].n||(n=a[e],r=this.textSpans[e].span,(i=this.textSpans[e].glyph)&&i.renderFrame(),n._mdf.m&&r.setAttribute("transform",n.m),n._mdf.o&&r.setAttribute("opacity",n.o),n._mdf.sw&&r.setAttribute("stroke-width",n.sw),n._mdf.sc&&r.setAttribute("stroke",n.sc),n._mdf.fc&&r.setAttribute("fill",n.fc))}},c([nn],$n),$n.prototype.createContent=function(){var e=H("rect");e.setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.layerElement.appendChild(e)},Tn.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},Tn.prototype.renderFrame=function(){},Tn.prototype.getBaseElement=function(){return null},Tn.prototype.destroy=function(){},Tn.prototype.sourceRectAtTime=function(){},Tn.prototype.hide=function(){},c([Vt,Wt,en,Nt],Tn),c([Ut],_n),_n.prototype.createNull=function(e){return new Tn(e,this.globalData,this)},_n.prototype.createShape=function(e){return new wn(e,this.globalData,this)},_n.prototype.createText=function(e){return new Pn(e,this.globalData,this)},_n.prototype.createImage=function(e){return new nn(e,this.globalData,this)},_n.prototype.createSolid=function(e){return new $n(e,this.globalData,this)},_n.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),void 0!==this.renderConfig.focusable&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var t=this.globalData.defs;this.setupGlobalData(e,t),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=e;var n=H("clipPath"),r=H("rect");r.setAttribute("width",e.w),r.setAttribute("height",e.h),r.setAttribute("x",0),r.setAttribute("y",0);var i=A();n.setAttribute("id",i),n.appendChild(r),this.layerElement.setAttribute("clip-path","url("+l()+"#"+i+")"),t.appendChild(n),this.layers=e.layers,this.elements=f(e.layers.length)},_n.prototype.destroy=function(){var e;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var t=this.layers?this.layers.length:0;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},_n.prototype.updateContainerSize=function(){},_n.prototype.findIndexByInd=function(e){var t=0,n=this.layers.length;for(t=0;t<n;t+=1)if(this.layers[t].ind===e)return t;return-1},_n.prototype.buildItem=function(e){var t=this.elements;if(!t[e]&&99!==this.layers[e].ty){t[e]=!0;var n=this.createItem(this.layers[e]);if(t[e]=n,U()&&(0===this.layers[e].ty&&this.globalData.projectInterface.registerComposition(n),n.initExpressions()),this.appendElementInPos(n,e),this.layers[e].tt){var r="tp"in this.layers[e]?this.findIndexByInd(this.layers[e].tp):e-1;if(-1===r)return;if(this.elements[r]&&!0!==this.elements[r]){var i=t[r].getMatte(this.layers[e].tt);n.setMatte(i)}else this.buildItem(r),this.addPendingElement(n)}}},_n.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();if(e.checkParenting(),e.data.tt)for(var t=0,n=this.elements.length;t<n;){if(this.elements[t]===e){var r="tp"in e.data?this.findIndexByInd(e.data.tp):t-1,i=this.elements[r].getMatte(this.layers[t].tt);e.setMatte(i);break}t+=1}}},_n.prototype.renderFrame=function(e){if(this.renderedFrame!==e&&!this.destroyed){var t;null===e?e=this.renderedFrame:this.renderedFrame=e,this.globalData.frameNum=e,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=e,this.globalData._mdf=!1;var n=this.layers.length;for(this.completeLayers||this.checkLayers(e),t=n-1;t>=0;t-=1)(this.completeLayers||this.elements[t])&&this.elements[t].prepareFrame(e-this.layers[t].st);if(this.globalData._mdf)for(t=0;t<n;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()}},_n.prototype.appendElementInPos=function(e,t){var n=e.getBaseElement();if(n){for(var r,i=0;i<t;)this.elements[i]&&!0!==this.elements[i]&&this.elements[i].getBaseElement()&&(r=this.elements[i].getBaseElement()),i+=1;r?this.layerElement.insertBefore(n,r):this.layerElement.appendChild(n)}},_n.prototype.hide=function(){this.layerElement.style.display="none"},_n.prototype.show=function(){this.layerElement.style.display="block"},c([Vt,Wt,en,Nt,tn],Mn),Mn.prototype.initElement=function(e,t,n){this.initFrame(),this.initBaseData(e,t,n),this.initTransform(e,t,n),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),!this.data.xt&&t.progressiveLoad||this.buildAllItems(),this.hide()},Mn.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 t=this.tm.v;t===this.data.op&&(t=this.data.op-1),this.renderedFrame=t}var n,r=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),n=r-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))}},Mn.prototype.renderInnerContent=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},Mn.prototype.setElements=function(e){this.elements=e},Mn.prototype.getElements=function(){return this.elements},Mn.prototype.destroyElements=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy()},Mn.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()},c([_n,Mn,Qt],An),An.prototype.createComp=function(e){return new An(e,this.globalData,this)},c([_n],In),In.prototype.createComp=function(e){return new An(e,this.globalData,this)},te("svg",In),Ve.registerModifier("tm",ze),Ve.registerModifier("pb",Be),Ve.registerModifier("rp",We),Ve.registerModifier("rd",qe),Ve.registerModifier("zz",ct),Ve.registerModifier("op",kt),ke}())}(a,a.exports);var o=a.exports;function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t);else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var h=["animationData","loop","autoplay","initialSegment","onComplete","onLoopComplete","onEnterFrame","onSegmentStart","onConfigReady","onDataReady","onDataFailed","onLoadedImages","onDOMLoaded","onDestroy","lottieRef","renderer","name","assetsPath","rendererSettings"],f=function(e,t){var r=e.animationData,a=e.loop,s=e.autoplay,u=e.initialSegment,p=e.onComplete,f=e.onLoopComplete,m=e.onEnterFrame,g=e.onSegmentStart,y=e.onConfigReady,v=e.onDataReady,b=e.onDataFailed,x=e.onLoadedImages,w=e.onDOMLoaded,E=e.onDestroy;e.lottieRef,e.renderer,e.name,e.assetsPath,e.rendererSettings;var k=c(e,h),S=d(n.useState(!1),2),D=S[0],j=S[1],C=n.useRef(),R=n.useRef(null);return n.useEffect((function(){var t=function(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(R.current){null===(t=C.current)||void 0===t||t.destroy();var r=l(l(l({},e),n),{},{container:R.current});return C.current=o.loadAnimation(r),j(!!C.current),function(){var e;null===(e=C.current)||void 0===e||e.destroy(),C.current=void 0}}}();return function(){return null==t?void 0:t()}}),[r,a]),n.useEffect((function(){C.current&&(C.current.autoplay=!!s)}),[s]),n.useEffect((function(){C.current&&(u?Array.isArray(u)&&u.length&&((C.current.currentRawFrame<u[0]||C.current.currentRawFrame>u[1])&&(C.current.currentRawFrame=u[0]),C.current.setSegment(u[0],u[1])):C.current.resetSegments(!0))}),[u]),n.useEffect((function(){var e=[{name:"complete",handler:p},{name:"loopComplete",handler:f},{name:"enterFrame",handler:m},{name:"segmentStart",handler:g},{name:"config_ready",handler:y},{name:"data_ready",handler:v},{name:"data_failed",handler:b},{name:"loaded_images",handler:x},{name:"DOMLoaded",handler:w},{name:"destroy",handler:E}].filter((function(e){return null!=e.handler}));if(e.length){var t=e.map((function(e){var t;return null===(t=C.current)||void 0===t||t.addEventListener(e.name,e.handler),function(){var t;null===(t=C.current)||void 0===t||t.removeEventListener(e.name,e.handler)}}));return function(){t.forEach((function(e){return e()}))}}}),[p,f,m,g,y,v,b,x,w,E]),{View:i.default.createElement("div",l({style:t,ref:R},k)),play:function(){var e;null===(e=C.current)||void 0===e||e.play()},stop:function(){var e;null===(e=C.current)||void 0===e||e.stop()},pause:function(){var e;null===(e=C.current)||void 0===e||e.pause()},setSpeed:function(e){var t;null===(t=C.current)||void 0===t||t.setSpeed(e)},goToAndStop:function(e,t){var n;null===(n=C.current)||void 0===n||n.goToAndStop(e,t)},goToAndPlay:function(e,t){var n;null===(n=C.current)||void 0===n||n.goToAndPlay(e,t)},setDirection:function(e){var t;null===(t=C.current)||void 0===t||t.setDirection(e)},playSegments:function(e,t){var n;null===(n=C.current)||void 0===n||n.playSegments(e,t)},setSubframe:function(e){var t;null===(t=C.current)||void 0===t||t.setSubframe(e)},getDuration:function(e){var t;return null===(t=C.current)||void 0===t?void 0:t.getDuration(e)},destroy:function(){var e;null===(e=C.current)||void 0===e||e.destroy(),C.current=void 0},animationContainerRef:R,animationLoaded:D,animationItem:C.current}};var m=function(e){var t=e.wrapperRef,r=e.animationItem,i=e.mode,a=e.actions;n.useEffect((function(){var e,n,o=t.current;if(o&&r&&a.length){r.stop();switch(i){case"scroll":return e=null,n=function(){var t=function(e){var t=e.getBoundingClientRect(),n=t.top,r=t.height;return(window.innerHeight-n)/(window.innerHeight+r)}(o),n=a.find((function(e){var n=e.visibility;return n&&t>=n[0]&&t<=n[1]}));if(n){if("seek"===n.type&&n.visibility&&2===n.frames.length){var i=n.frames[0]+Math.ceil((t-n.visibility[0])/(n.visibility[1]-n.visibility[0])*n.frames[1]);
|
|
483
483
|
//! goToAndStop must be relative to the start of the current segment
|
|
484
|
-
r.goToAndStop(i-r.firstFrame-1,!0)}"loop"===n.type&&(null===e||e!==n.frames||r.isPaused)&&(r.playSegments(n.frames,!0),e=n.frames),"play"===n.type&&r.isPaused&&(r.resetSegments(!0),r.play()),"stop"===n.type&&r.goToAndStop(n.frames[0]-r.firstFrame-1,!0)}},document.addEventListener("scroll",n),function(){document.removeEventListener("scroll",n)};case"cursor":return function(){var e=function(e,t){var n=e,i=t;if(-1!==n&&-1!==i){var s=function(e,t,n){var r=e.getBoundingClientRect(),i=r.top;return{x:(t-r.left)/r.width,y:(n-i)/r.height}}(o,n,i);n=s.x,i=s.y}var l=a.find((function(e){var t=e.position;return t&&Array.isArray(t.x)&&Array.isArray(t.y)?n>=t.x[0]&&n<=t.x[1]&&i>=t.y[0]&&i<=t.y[1]:!(!t||Number.isNaN(t.x)||Number.isNaN(t.y))&&n===t.x&&i===t.y}));if(l){if("seek"===l.type&&l.position&&Array.isArray(l.position.x)&&Array.isArray(l.position.y)&&2===l.frames.length){var u=(n-l.position.x[0])/(l.position.x[1]-l.position.x[0]),c=(i-l.position.y[0])/(l.position.y[1]-l.position.y[0]);r.playSegments(l.frames,!0),r.goToAndStop(Math.ceil((u+c)/2*(l.frames[1]-l.frames[0])),!0)}"loop"===l.type&&r.playSegments(l.frames,!0),"play"===l.type&&(r.isPaused&&r.resetSegments(!1),r.playSegments(l.frames)),"stop"===l.type&&r.goToAndStop(l.frames[0],!0)}},t=function(t){e(t.clientX,t.clientY)},n=function(){e(-1,-1)};return o.addEventListener("mousemove",t),o.addEventListener("mouseout",n),function(){o.removeEventListener("mousemove",t),o.removeEventListener("mouseout",n)}}()}}}),[i,r])},g=function(e){var t=e.actions,n=e.mode,r=e.lottieObj,i=r.animationItem,a=r.View,o=r.animationContainerRef;return m({actions:t,animationItem:i,mode:n,wrapperRef:o}),a},y=["style","interactivity"];t.LottiePlayer=o,t.default=function(e){var t,r,i,a=e.style,o=e.interactivity,s=c(e,y),l=f(s,a),u=l.View,d=l.play,p=l.stop,h=l.pause,m=l.setSpeed,v=l.goToAndStop,b=l.goToAndPlay,x=l.setDirection,w=l.playSegments,E=l.setSubframe,k=l.getDuration,S=l.destroy,D=l.animationContainerRef,j=l.animationLoaded,C=l.animationItem;return n.useEffect((function(){e.lottieRef&&(e.lottieRef.current={play:d,stop:p,pause:h,setSpeed:m,goToAndPlay:b,goToAndStop:v,setDirection:x,playSegments:w,setSubframe:E,getDuration:k,destroy:S,animationContainerRef:D,animationLoaded:j,animationItem:C})}),[null===(t=e.lottieRef)||void 0===t?void 0:t.current]),g({lottieObj:{View:u,play:d,stop:p,pause:h,setSpeed:m,goToAndStop:v,goToAndPlay:b,setDirection:x,playSegments:w,setSubframe:E,getDuration:k,destroy:S,animationContainerRef:D,animationLoaded:j,animationItem:C},actions:null!==(r=null==o?void 0:o.actions)&&void 0!==r?r:[],mode:null!==(i=null==o?void 0:o.mode)&&void 0!==i?i:"scroll"})},t.useLottie=f,t.useLottieInteractivity=g,Object.defineProperty(t,"__esModule",{value:!0})}(
|
|
484
|
+
r.goToAndStop(i-r.firstFrame-1,!0)}"loop"===n.type&&(null===e||e!==n.frames||r.isPaused)&&(r.playSegments(n.frames,!0),e=n.frames),"play"===n.type&&r.isPaused&&(r.resetSegments(!0),r.play()),"stop"===n.type&&r.goToAndStop(n.frames[0]-r.firstFrame-1,!0)}},document.addEventListener("scroll",n),function(){document.removeEventListener("scroll",n)};case"cursor":return function(){var e=function(e,t){var n=e,i=t;if(-1!==n&&-1!==i){var s=function(e,t,n){var r=e.getBoundingClientRect(),i=r.top;return{x:(t-r.left)/r.width,y:(n-i)/r.height}}(o,n,i);n=s.x,i=s.y}var l=a.find((function(e){var t=e.position;return t&&Array.isArray(t.x)&&Array.isArray(t.y)?n>=t.x[0]&&n<=t.x[1]&&i>=t.y[0]&&i<=t.y[1]:!(!t||Number.isNaN(t.x)||Number.isNaN(t.y))&&n===t.x&&i===t.y}));if(l){if("seek"===l.type&&l.position&&Array.isArray(l.position.x)&&Array.isArray(l.position.y)&&2===l.frames.length){var u=(n-l.position.x[0])/(l.position.x[1]-l.position.x[0]),c=(i-l.position.y[0])/(l.position.y[1]-l.position.y[0]);r.playSegments(l.frames,!0),r.goToAndStop(Math.ceil((u+c)/2*(l.frames[1]-l.frames[0])),!0)}"loop"===l.type&&r.playSegments(l.frames,!0),"play"===l.type&&(r.isPaused&&r.resetSegments(!1),r.playSegments(l.frames)),"stop"===l.type&&r.goToAndStop(l.frames[0],!0)}},t=function(t){e(t.clientX,t.clientY)},n=function(){e(-1,-1)};return o.addEventListener("mousemove",t),o.addEventListener("mouseout",n),function(){o.removeEventListener("mousemove",t),o.removeEventListener("mouseout",n)}}()}}}),[i,r])},g=function(e){var t=e.actions,n=e.mode,r=e.lottieObj,i=r.animationItem,a=r.View,o=r.animationContainerRef;return m({actions:t,animationItem:i,mode:n,wrapperRef:o}),a},y=["style","interactivity"];t.LottiePlayer=o,t.default=function(e){var t,r,i,a=e.style,o=e.interactivity,s=c(e,y),l=f(s,a),u=l.View,d=l.play,p=l.stop,h=l.pause,m=l.setSpeed,v=l.goToAndStop,b=l.goToAndPlay,x=l.setDirection,w=l.playSegments,E=l.setSubframe,k=l.getDuration,S=l.destroy,D=l.animationContainerRef,j=l.animationLoaded,C=l.animationItem;return n.useEffect((function(){e.lottieRef&&(e.lottieRef.current={play:d,stop:p,pause:h,setSpeed:m,goToAndPlay:b,goToAndStop:v,setDirection:x,playSegments:w,setSubframe:E,getDuration:k,destroy:S,animationContainerRef:D,animationLoaded:j,animationItem:C})}),[null===(t=e.lottieRef)||void 0===t?void 0:t.current]),g({lottieObj:{View:u,play:d,stop:p,pause:h,setSpeed:m,goToAndStop:v,goToAndPlay:b,setDirection:x,playSegments:w,setSubframe:E,getDuration:k,destroy:S,animationContainerRef:D,animationLoaded:j,animationItem:C},actions:null!==(r=null==o?void 0:o.actions)&&void 0!==r?r:[],mode:null!==(i=null==o?void 0:o.mode)&&void 0!==i?i:"scroll"})},t.useLottie=f,t.useLottieInteractivity=g,Object.defineProperty(t,"__esModule",{value:!0})}(Tf.exports,t)),Tf.exports);const Mf=e.getDefaultExportFromCjs(_f),Af=n.styled(Mf).attrs((({autoplay:e=!0})=>({autoplay:e,className:"comp-lottie"})))`
|
|
485
485
|
${({$size:e=16})=>`\n height: ${e}px;\n width: ${e}px;\n `}
|
|
486
|
-
`,
|
|
486
|
+
`,If=n.styled.button`
|
|
487
487
|
align-items: center;
|
|
488
488
|
background-color: transparent;
|
|
489
489
|
border: unset;
|
|
@@ -500,11 +500,11 @@ r.goToAndStop(i-r.firstFrame-1,!0)}"loop"===n.type&&(null===e||e!==n.frames||r.i
|
|
|
500
500
|
&:hover span {
|
|
501
501
|
color: ${e.theme.palette.primary[200]};
|
|
502
502
|
}
|
|
503
|
-
`,
|
|
503
|
+
`,Of=n.styled.div`
|
|
504
504
|
${({theme:e,$variant:t})=>`\n background: ${e.palette.white};\n border: 1px solid ${e.palette.gray[200]};\n border-radius: ${e.spacing[.25]};\n border-left: 4px solid ${e.palette[t][500]};\n box-shadow: ${e.shadows.md};\n position: relative;\n display: flex;\n width: 360px;\n padding: ${e.spacing[1.25]} ${e.spacing[1]} ${e.spacing[1.25]} ${e.spacing[.75]};\n gap: ${e.spacing[.5]};\n\n button {\n position: absolute;\n top: 20px;\n right: 16px;\n }\n `}
|
|
505
|
-
`,
|
|
505
|
+
`,Ff=n.styled.div`
|
|
506
506
|
${({theme:e,$variant:t})=>`\n height: ${e.spacing[2.5]};\n width: ${e.spacing[2.5]};\n position: relative;\n flex-shrink: 0;\n\n & .ellipse-1,\n & .ellipse-2,\n & .icon {\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n position: absolute;\n }\n\n & .ellipse-1 {\n transform: scale(2.5) translate(-20%, -20%);\n color: ${e.palette[t][50]};\n position: absolute;\n }\n\n & .ellipse-2 {\n transform: scale(2) translate(-25%, -25%);\n color: ${e.palette[t][200]};\n }\n\n & .icon {\n color: ${e.palette[t][500]};\n }\n `}
|
|
507
|
-
|
|
507
|
+
`,Lf=e=>"warning"===e?"triangle-exclamation":"info"===e?"circle-info":"success"===e?"circle-check":"circle-exclamation",Vf=n.styled.div`
|
|
508
508
|
width: fit-content;
|
|
509
509
|
border: ${({theme:e})=>`1px solid ${e.palette.gray[300]}`};
|
|
510
510
|
border-radius: 4px;
|
|
@@ -517,7 +517,7 @@ r.goToAndStop(i-r.firstFrame-1,!0)}"loop"===n.type&&(null===e||e!==n.frames||r.i
|
|
|
517
517
|
align-items: center;
|
|
518
518
|
justify-content: center;
|
|
519
519
|
padding: 0.5em;
|
|
520
|
-
`,
|
|
520
|
+
`,Nf=n.styled.input`
|
|
521
521
|
width: 4em;
|
|
522
522
|
appearance: textfield;
|
|
523
523
|
border-style: none;
|
|
@@ -537,9 +537,9 @@ r.goToAndStop(i-r.firstFrame-1,!0)}"loop"===n.type&&(null===e||e!==n.frames||r.i
|
|
|
537
537
|
&::-webkit-inner-spin-button {
|
|
538
538
|
opacity: 1;
|
|
539
539
|
}
|
|
540
|
-
`,
|
|
540
|
+
`,zf=t.forwardRef((function({autoUpdate:n=!1,decimalPlaces:i=0,defaultValue:a=0,max:o,min:s,onEnter:l,tooltipMessage:u,...c},d){const p=i<0?0:i,[h,f]=t.useState(Number(a).toFixed(p)),m=t.useCallback((e=>{const t=r.toNumber(e.target.value);e.target.value.endsWith(".")?f(e.target.value):t>=Number(s)&&t<=Number(o)&&(f(String(t)),n&&l(r.toNumber(t.toFixed(p)))),e.stopPropagation()}),[n,p,o,s,l]),g=t.useCallback((e=>{e.currentTarget.contains(e.relatedTarget)||f(Number(a).toFixed(p)),e.stopPropagation()}),[p,a]),y=t.useCallback((e=>{e.stopPropagation(),"Enter"!==e.key||r.isEmpty(e.currentTarget.value)||l(r.toNumber(e.currentTarget.value))}),[l]);return e.jsxRuntimeExports.jsx(Vf,{onBlur:g,tabIndex:-1,children:e.jsxRuntimeExports.jsx(e.Tooltip,{id:"numberInputTooltip",tip:u,children:e.jsxRuntimeExports.jsx(Nf,{...c,max:o,min:s,onChange:m,onKeyUp:y,ref:d,step:10**-p,type:"number",value:h})})})})),Bf={Azure:"integrates/autoenrollment/azureIcon",Bitbucket:"integrates/autoenrollment/bitbucketLogo",GitHub:"integrates/autoenrollment/githubLogo",GitLab:"integrates/autoenrollment/gitlabIcon"},Uf=({icon:t,label:r,onClick:i,onlyLabel:a=!1,provider:o="GitLab"})=>{const s=n.useTheme();return e.jsxRuntimeExports.jsxs(c,{alignItems:"center",bgColorHover:s.palette.gray[100],borderRadius:"4px",cursor:"pointer",display:"flex",flexDirection:"column",gap:.25,height:"62px",justify:"center",minWidth:"64px",onClick:i,pb:.5,pl:.25,pr:.25,pt:.5,children:[!a&&e.jsxRuntimeExports.jsx(c,{height:"24px",width:"24px",children:void 0===t?e.jsxRuntimeExports.jsx(Wp,{alt:`${o} Logo`,height:"100%",publicId:Bf[o],width:"100%"}):e.jsxRuntimeExports.jsx(e.Icon,{icon:t,iconColor:"#000",iconSize:"sm",iconType:"fa-light"})}),e.jsxRuntimeExports.jsx(c,{alignItems:"center",display:"flex",minWidth:"24px",children:e.jsxRuntimeExports.jsx(e.Text,{color:s.palette.gray[800],display:"inline",size:"xs",textAlign:"center",whiteSpace:a?"break-spaces":"nowrap",wordWrap:"unset",children:r??o})})]})},Wf=n.styled.div`
|
|
541
541
|
${({theme:e})=>`\n height: ${e.spacing[1]};\n width: ${e.spacing[1]};\n position: relative;\n flex-shrink: 0;\n\n & .ellipse-1,\n & .ellipse-2,\n & .icon {\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n position: absolute;\n }\n\n & .ellipse-1 {\n color: ${e.palette.warning[200]};\n position: absolute;\n }\n\n & .ellipse-2 {\n transform: scale(0.75) translate(-67%, -66%);\n color: ${e.palette.warning[400]};\n }\n\n & .icon {\n color: ${e.palette.warning[600]};\n font-size: ${e.spacing[.5]};\n }\n `}
|
|
542
|
-
`,
|
|
542
|
+
`,qf=({margin:t,onClick:r,text:i})=>{const a=n.useTheme(),o=e.jsxRuntimeExports.jsxs(Wf,{children:[e.jsxRuntimeExports.jsx(e.Icon,{icon:"circle",iconClass:"ellipse-1",iconSize:"xs"}),e.jsxRuntimeExports.jsx(e.Icon,{icon:"circle",iconClass:"ellipse-2",iconSize:"xs"}),e.jsxRuntimeExports.jsx(e.Icon,{icon:"crown",iconClass:"icon",iconSize:"xs"})]});return void 0!==i?e.jsxRuntimeExports.jsx(c,{cursor:"pointer",display:"inline-block",mr:t,onClick:r,children:e.jsxRuntimeExports.jsxs(c,{alignItems:"center",bgColor:a.palette.warning[50],borderRadius:"4px",display:"flex",padding:[.25,.25,.25,.25],width:"fit-content",children:[o,e.jsxRuntimeExports.jsx(e.Text,{color:a.palette.warning[500],display:"inline",ml:.25,size:"xs",children:i})]})}):e.jsxRuntimeExports.jsx(c,{display:"inline-block",mr:t,onClick:r,children:o})},Kf=n.styled(e.BaseComponent)`
|
|
543
543
|
animation: ${({$animationTime:e})=>`progress-bar ${e}s ease-in-out`};
|
|
544
544
|
animation-fill-mode: both;
|
|
545
545
|
|
|
@@ -552,36 +552,36 @@ r.goToAndStop(i-r.firstFrame-1,!0)}"loop"===n.type&&(null===e||e!==n.frames||r.i
|
|
|
552
552
|
width: 100%;
|
|
553
553
|
}
|
|
554
554
|
}
|
|
555
|
-
`,
|
|
555
|
+
`,Hf=({description:r="",highlightDescription:i=""})=>{const a=n.useTheme(),o="string"==typeof i,s=o?"":new RegExp(`(${i.join("|")})`,"u");return i.length>0?e.jsxRuntimeExports.jsx(e.Text,{display:"inline",lineSpacing:1.5,size:"lg",textAlign:"center",children:o?e.jsxRuntimeExports.jsxs(t.Fragment,{children:[e.jsxRuntimeExports.jsx(e.Span,{color:a.palette.gray[600],display:"inline",fontWeight:"bold",lineSpacing:1.5,size:"lg",children:i}),r]}):r.split(s).map(((t,n)=>i.includes(t)?e.jsxRuntimeExports.jsx(e.Span,{color:a.palette.gray[600],display:"inline",fontWeight:"bold",lineSpacing:1.5,size:"lg",children:t},`${n+1}-bold`):t))}):e.jsxRuntimeExports.jsx(e.Text,{lineSpacing:1.5,size:"lg",textAlign:"center",children:r})},Zf=n.styled.div.attrs({className:"comp-scroll-up"})`
|
|
556
556
|
bottom: 15px;
|
|
557
557
|
position: fixed;
|
|
558
558
|
right: 140px;
|
|
559
559
|
z-index: 100;
|
|
560
|
-
`,
|
|
560
|
+
`,Gf=n.styled.a`
|
|
561
561
|
${({theme:e})=>`\n align-items: center;\n display: flex;\n background: ${e.palette.white};\n border-radius: ${e.spacing[.5]};\n cursor: pointer;\n gap: ${e.spacing[1]};\n padding:\n ${e.spacing[.5]}\n ${e.spacing[1]}\n ${e.spacing[.5]}\n ${e.spacing[.5]};\n width: 1143px;\n\n &:hover {\n background: ${e.palette.gray[100]};\n\n > div.icon-wrap {\n background: ${e.palette.gradients["01"]};\n\n path {\n fill: ${e.palette.white};\n }\n }\n }\n\n @media screen\n and (min-width: ${e.breakpoints.sm})\n and (max-width: ${e.breakpoints.md})\n {\n width: 905px;\n }\n\n @media screen\n and (min-width: 40em)\n and (max-width: ${e.breakpoints.sm})\n {\n width: 475px;\n }\n\n @media screen and (max-width: 40em) {\n width: 270px;\n }\n `}
|
|
562
|
-
`,
|
|
562
|
+
`,Yf=n.styled.div.attrs({className:"icon-wrap"})`
|
|
563
563
|
${({theme:e})=>`\n align-items: center;\n background: ${e.palette.primary[25]};\n border-radius: ${e.spacing[.25]};\n display: flex;\n justify-content: center;\n min-width: ${e.spacing[2.5]};\n height: ${e.spacing[2.5]};\n padding: ${e.spacing[.5]};\n\n span {\n font-size: 20px;\n }\n `}
|
|
564
|
-
`,
|
|
564
|
+
`,Jf=n.styled.div`
|
|
565
565
|
${({theme:e})=>`\n align-items: flex-start;\n display: flex;\n flex-direction: column;\n gap: ${e.spacing[1.5]};\n width: 1193px;\n\n > :is(form, .dropdown) {\n border-radius: ${e.spacing[.5]};\n border: 1px solid ${e.palette.gray[200]};\n background-color: ${e.palette.white};\n }\n\n @media screen\n and (min-width: ${e.breakpoints.sm})\n and (max-width: ${e.breakpoints.md})\n {\n width: 954px;\n }\n\n @media screen\n and (min-width: 40em)\n and (max-width: ${e.breakpoints.sm})\n {\n width: 526px;\n }\n\n @media screen and (max-width: 40em) {\n width: 320px;\n }\n `}
|
|
566
|
-
`,
|
|
566
|
+
`,Xf=n.styled.form`
|
|
567
567
|
${({theme:e})=>`\n align-items: center;\n display: flex;\n gap: ${e.spacing[.5]};\n justify-content: space-between;\n padding: ${e.spacing[1]} ${e.spacing[1.5]};\n width: 100%;\n `}
|
|
568
|
-
`,
|
|
568
|
+
`,Qf=n.styled.input`
|
|
569
569
|
${({theme:e})=>`\n flex: 1 0 0;\n border: none;\n color: ${e.palette.gray[600]};\n font-family: ${e.typography.type.primary};\n font-size: ${e.typography.text.md};\n font-weight: ${e.typography.weight.regular};\n line-height: ${e.spacing[1.5]};\n outline: none;\n\n &::placeholder {\n color: ${e.palette.gray[400]};\n }\n\n &::-webkit-search-decoration,\n &::-webkit-search-cancel-button,\n &::-webkit-search-results-button,\n &::-webkit-search-results-decoration {\n -webkit-appearance:none;\n }\n\n @media screen and (max-width: ${e.breakpoints.mobile}) {\n font-size: ${e.typography.text.sm};\n }\n `}
|
|
570
|
-
`,
|
|
570
|
+
`,em=n.styled.button`
|
|
571
571
|
${({theme:e})=>`\n align-items: center;\n border-radius: ${e.spacing[.5]};\n display: flex;\n width: ${e.spacing[2.5]};\n height: ${e.spacing[2.5]};\n padding: ${e.spacing[.625]} ${e.spacing[1]};\n justify-content: center;\n gap: ${e.spacing[.5]};\n flex-shrink: 0;\n\n span {\n color: ${e.palette.gray[400]};\n }\n\n &:hover {\n background-color: ${e.palette.gray[100]};\n }\n `}
|
|
572
|
-
`,
|
|
572
|
+
`,tm=n.styled.div.attrs({className:"dropdown"})`
|
|
573
573
|
${({theme:e,$empty:t=!1,$showHits:n=!1})=>`\n align-items: flex-start;\n align-self: stretch;\n background-repeat: no-repeat;\n background-size: 100% 100%;\n display: flex;\n flex-direction: column;\n gap: ${e.spacing[.5]};\n max-height: ${n?"270px":"500px"};\n overflow: hidden auto;\n padding: ${e.spacing[1.5]};\n scrollbar-color: ${e.palette.gray[600]} ${e.palette.gray[100]};\n scroll-padding: ${e.spacing[.5]};\n scrollbar-width: thin;\n\n @media screen and (max-width: ${e.breakpoints.sm}) and (${!t}) {\n max-height: 410px;\n }\n ${t&&`\n @media screen and (min-width: ${e.breakpoints.mobile}) {\n border: none !important;\n background-image: url(https://res.cloudinary.com/fluid-attacks/image/upload/v1729784164/airs/search-bar/empty_state_bg.webp);\n }\n @media screen and (max-width: ${e.breakpoints.mobile}) {\n border: none !important;\n background-image: url(https://res.cloudinary.com/fluid-attacks/image/upload/v1729783908/airs/search-bar/empty_state_bg_mobile.webp);\n }\n `}\n\n &::-webkit-scrollbar {\n height: ${e.spacing[.5]};\n width: ${e.spacing[.5]};\n }\n &::-webkit-scrollbar-track {\n background: ${e.palette.gray[100]};\n }\n &::-webkit-scrollbar-thumb {\n background-color: ${e.palette.gray[600]};\n border-radius: ${e.spacing[5]};\n height: ${e.spacing[.5]};\n }\n `}
|
|
574
|
-
`,
|
|
574
|
+
`,nm=({hit:t,icon:n="infinity",showIcon:r=!1})=>{const{slug:i,title:a}=t,o=String(i).startsWith("/pages/")?String(i).replace("/pages/","/"):String(i);return e.jsxRuntimeExports.jsxs(Gf,{href:o,rel:"nofollow noopener noreferrer",children:[r&&e.jsxRuntimeExports.jsx(Yf,{children:e.jsxRuntimeExports.jsx(e.Icon,{icon:n,iconClass:"fill-gradient-01",iconSize:"sm",iconType:"fa-light"})}),e.jsxRuntimeExports.jsx(e.Text,{color:e.theme.palette.gray[800],lineSpacing:1.5,size:"md",sizeSm:"sm",whiteSpace:"wrap",children:String(a)})]})},rm=[{hit:{slug:"/services/continuous-hacking/",title:"Continuous Hacking"},icon:"infinity"},{hit:{slug:"/platform/",title:"Platform"},icon:"sidebar"},{hit:{slug:"/plans/",title:"Plans"},icon:"star-christmas"},{hit:{slug:"/blog/",title:"Blog"},icon:"pen-line"}],im={hit:{slug:"/contact-us/",title:"Contact Support"},icon:"envelope"},am={critical:{bgColor:e.theme.palette.primary[700],colorL:e.theme.palette.gray[800],colorR:e.theme.palette.white},disable:{bgColor:e.theme.palette.gray[200],colorL:e.theme.palette.gray[400],colorR:e.theme.palette.gray[400]},high:{bgColor:e.theme.palette.error[500],colorL:e.theme.palette.gray[800],colorR:e.theme.palette.white},low:{bgColor:e.theme.palette.warning[200],colorL:e.theme.palette.gray[800],colorR:e.theme.palette.gray[800]},medium:{bgColor:e.theme.palette.warning[500],colorL:e.theme.palette.gray[800],colorR:e.theme.palette.gray[800]}};var om,sm,lm,um,cm,dm,pm,hm,fm,mm,gm,ym,vm,bm,xm,wm,Em,km,Sm,Dm,jm,Cm,Rm,Pm,$m,Tm;function _m(){if(hm)return pm;hm=1;var t=function(){if(dm)return cm;dm=1;var t=e.require_Symbol(),n=sm?om:(sm=1,om=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}),r=e.requireIsArray(),i=function(){if(um)return lm;um=1;var t=e.require_baseGetTag(),n=e.requireIsObjectLike();return lm=function(e){return"symbol"==typeof e||n(e)&&"[object Symbol]"==t(e)}}(),a=t?t.prototype:void 0,o=a?a.toString:void 0;return cm=function e(t){if("string"==typeof t)return t;if(r(t))return n(t,e)+"";if(i(t))return o?o.call(t):"";var a=t+"";return"0"==a&&1/t==-1/0?"-0":a}}();return pm=function(e){return null==e?"":t(e)}}function Mm(){if(bm)return vm;bm=1;var e=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");return vm=function(t){return e.test(t)}}function Am(){if(Pm)return Rm;Pm=1;var e=function(){if(Cm)return jm;Cm=1;var e=function(){if(ym)return gm;ym=1;var e=mm?fm:(mm=1,fm=function(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r<i;)a[r]=e[r+t];return a});return gm=function(t,n,r){var i=t.length;return r=void 0===r?i:r,!n&&r>=i?t:e(t,n,r)}}(),t=Mm(),n=function(){if(Dm)return Sm;Dm=1;var e=wm?xm:(wm=1,xm=function(e){return e.split("")}),t=Mm(),n=function(){if(km)return Em;km=1;var e="\\ud800-\\udfff",t="["+e+"]",n="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",r="\\ud83c[\\udffb-\\udfff]",i="[^"+e+"]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",o="[\\ud800-\\udbff][\\udc00-\\udfff]",s="(?:"+n+"|"+r+")?",l="[\\ufe0e\\ufe0f]?",u=l+s+"(?:\\u200d(?:"+[i,a,o].join("|")+")"+l+s+")*",c="(?:"+[i+n+"?",n,a,o,t].join("|")+")",d=RegExp(r+"(?="+r+")|"+c+u,"g");return Em=function(e){return e.match(d)||[]}}();return Sm=function(r){return t(r)?n(r):e(r)}}(),r=_m();return jm=function(i){return function(a){a=r(a);var o=t(a)?n(a):void 0,s=o?o[0]:a.charAt(0),l=o?e(o,1).join(""):a.slice(1);return s[i]()+l}}}()("toUpperCase");return Rm=e}var Im=function(){if(Tm)return $m;Tm=1;var e=_m(),t=Am();return $m=function(n){return t(e(n).toLowerCase())}}();const Om=e.getDefaultExportFromCjs(Im),Fm=({variant:t,value:n})=>{const{iconColor:r,iconText:i,iconTextColor:a,textColor:o}=((t,n)=>{const r={critical:e.theme.palette.primary[700],high:e.theme.palette.error[500],low:e.theme.palette.warning[200],medium:e.theme.palette.warning[500],none:e.theme.palette.gray[200]},i={disabled:e.theme.palette.gray[400],enabled:e.theme.palette.gray[800]},a={critical:e.theme.palette.white,high:e.theme.palette.white,low:e.theme.palette.gray[800],medium:e.theme.palette.gray[800],none:e.theme.palette.gray[400]};return{iconColor:n<1?r.none:r[t],iconText:Om(t.charAt(0)),iconTextColor:n<1?a.none:a[t],textColor:n<1?i.disabled:i.enabled}})(t,n),s=Om(t.charAt(0))+t.slice(1);return e.jsxRuntimeExports.jsxs(c,{alignItems:"center",display:"inline-flex",gap:.5,minWidth:"43px",children:[e.jsxRuntimeExports.jsx(e.Tooltip,{id:s,place:"top",tip:s,children:e.jsxRuntimeExports.jsx(c,{alignItems:"center",bgColor:r,borderRadius:"4px",cursor:"pointer",display:"flex",height:"22px",maxWidth:"22px",minWidth:"22px",children:e.jsxRuntimeExports.jsx(e.Text,{color:a,size:"sm",textAlign:"center",children:i})})}),e.jsxRuntimeExports.jsx(e.Text,{color:o,size:"sm",children:n})]})},Lm=n.styled.div`
|
|
575
575
|
${({theme:e})=>`\n border-radius: ${e.spacing[.25]};\n cursor: pointer;\n display: flex;\n gap: ${e.spacing[.5]};\n justify-content: end;\n position: relative;\n z-index: 20;\n\n &:hover {\n background-color: ${e.palette.gray[100]};\n }\n\n &:hover > div {\n display: block;\n }\n `}
|
|
576
|
-
`,Tm=new Set;function _m(e,t,n){e||Tm.has(t)||Tm.add(t)}function Mm(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}const Am=e=>Array.isArray(e);function Im(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function Om(e){return"string"==typeof e||Array.isArray(e)}function Fm(e){const t=[{},{}];return null==e||e.values.forEach(((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()})),t}function Lm(e,t,n,r){if("function"==typeof t){const[i,a]=Fm(r);t=t(void 0!==n?n:e.custom,i,a)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){const[i,a]=Fm(r);t=t(void 0!==n?n:e.custom,i,a)}return t}function Vm(e,t,n){const r=e.getProps();return Lm(r,t,void 0!==n?n:r.custom,e)}const Nm=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],zm=["initial",...Nm],Bm=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Um=new Set(Bm),Wm=e=>1e3*e,qm=e=>e/1e3,Km={type:"spring",stiffness:500,damping:25,restSpeed:10},Hm={type:"keyframes",duration:.8},Zm={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Gm=(e,{keyframes:t})=>t.length>2?Hm:Um.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:Km:Zm;function Ym(e,t){return e?e[t]||e.default||e:void 0}const Jm=e=>null!==e;function Xm(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(Jm),a=t&&"loop"!==n&&t%2==1?0:i.length-1;return a&&void 0!==r?r:i[a]}const Qm=e=>e;let eg=Qm,tg=Qm;"production"!==process.env.NODE_ENV&&(eg=(e,t)=>{},tg=(e,t)=>{if(!e)throw new Error(t)});const ng=["read","resolveKeyframes","update","preRender","render","postRender"];function rg(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=ng.reduce(((e,t)=>(e[t]=function(e){let t=new Set,n=new Set,r=!1,i=!1;const a=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function s(t){a.has(t)&&(l.schedule(t),e()),t(o)}const l={schedule:(e,i=!1,o=!1)=>{const s=o&&r?t:n;return i&&a.add(e),s.has(e)||s.add(e),e},cancel:e=>{n.delete(e),a.delete(e)},process:e=>{o=e,r?i=!0:(r=!0,[t,n]=[n,t],t.forEach(s),t.clear(),r=!1,i&&(i=!1,l.process(e)))}};return l}(a),e)),{}),{read:s,resolveKeyframes:l,update:u,preRender:c,render:d,postRender:p}=o,h=()=>{const a=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(a-i.timestamp,40),1),i.timestamp=a,i.isProcessing=!0,s.process(i),l.process(i),u.process(i),c.process(i),d.process(i),p.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(h))};return{schedule:ng.reduce(((t,a)=>{const s=o[a];return t[a]=(t,a=!1,o=!1)=>(n||(n=!0,r=!0,i.isProcessing||e(h)),s.schedule(t,a,o)),t}),{}),cancel:e=>{for(let t=0;t<ng.length;t++)o[ng[t]].cancel(e)},state:i,steps:o}}const{schedule:ig,cancel:ag,state:og,steps:sg}=rg("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:Qm,!0),lg=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function ug(e,t,n,r){if(e===t&&n===r)return Qm;return i=>0===i||1===i?i:lg(function(e,t,n,r,i){let a,o,s=0;do{o=t+(n-t)/2,a=lg(o,r,i)-e,a>0?n=o:t=o}while(Math.abs(a)>1e-7&&++s<12);return o}(i,0,1,e,n),t,r)}const cg=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,dg=e=>t=>1-e(1-t),pg=ug(.33,1.53,.69,.99),hg=dg(pg),fg=cg(hg),mg=e=>(e*=2)<1?.5*hg(e):.5*(2-Math.pow(2,-10*(e-1))),gg=e=>1-Math.sin(Math.acos(e)),yg=dg(gg),vg=cg(gg),bg=e=>/^0[^.\s]+$/u.test(e),xg=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),wg=e=>t=>"string"==typeof t&&t.startsWith(e),Eg=wg("--"),kg=wg("var(--"),Sg=e=>!!kg(e)&&Dg.test(e.split("/*")[0].trim()),Dg=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,jg=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Cg(e,t,n=1){tg(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=function(e){const t=jg.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${null!=n?n:r}`,i]}(e);if(!r)return;const a=window.getComputedStyle(t).getPropertyValue(r);if(a){const e=a.trim();return xg(e)?parseFloat(e):e}return Sg(i)?Cg(i,t,n+1):i}const Rg=(e,t,n)=>n>t?t:n<e?e:n,Pg={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},$g={...Pg,transform:e=>Rg(0,1,e)},Tg={...Pg,default:1},_g=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),Mg=_g("deg"),Ag=_g("%"),Ig=_g("px"),Og=_g("vh"),Fg=_g("vw"),Lg={...Ag,parse:e=>Ag.parse(e)/100,transform:e=>Ag.transform(100*e)},Vg=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Ng=e=>e===Pg||e===Ig,zg=(e,t)=>parseFloat(e.split(", ")[t]),Bg=(e,t)=>(n,{transform:r})=>{if("none"===r||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return zg(i[1],t);{const t=r.match(/^matrix\((.+)\)$/u);return t?zg(t[1],e):0}},Ug=new Set(["x","y","z"]),Wg=Bm.filter((e=>!Ug.has(e))),qg={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:Bg(4,13),y:Bg(5,14)};qg.translateX=qg.x,qg.translateY=qg.y;const Kg=e=>t=>t.test(e),Hg=[Pg,Ig,Ag,Mg,Fg,Og,{test:e=>"auto"===e,parse:e=>e}],Zg=e=>Hg.find(Kg(e)),Gg=new Set;let Yg=!1,Jg=!1;function Xg(){if(Jg){const e=Array.from(Gg).filter((e=>e.needsMeasurement)),t=new Set(e.map((e=>e.element))),n=new Map;t.forEach((e=>{const t=function(e){const t=[];return Wg.forEach((n=>{const r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))})),t}(e);t.length&&(n.set(e,t),e.render())})),e.forEach((e=>e.measureInitialState())),t.forEach((e=>{e.render();const t=n.get(e);t&&t.forEach((([t,n])=>{var r;null===(r=e.getValue(t))||void 0===r||r.set(n)}))})),e.forEach((e=>e.measureEndState())),e.forEach((e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)}))}Jg=!1,Yg=!1,Gg.forEach((e=>e.complete())),Gg.clear()}function Qg(){Gg.forEach((e=>{e.readKeyframes(),e.needsMeasurement&&(Jg=!0)}))}class ey{constructor(e,t,n,r,i,a=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Gg.add(this),Yg||(Yg=!0,ig.read(Qg),ig.resolveKeyframes(Xg))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;for(let i=0;i<e.length;i++)if(null===e[i])if(0===i){const i=null==r?void 0:r.get(),a=e[e.length-1];if(void 0!==i)e[0]=i;else if(n&&t){const r=n.readValue(t,a);null!=r&&(e[0]=r)}void 0===e[0]&&(e[0]=a),r&&void 0===i&&r.set(e[0])}else e[i]=e[i-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Gg.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Gg.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const ty=e=>Math.round(1e5*e)/1e5,ny=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,ry=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,iy=(e,t)=>n=>Boolean("string"==typeof n&&ry.test(n)&&n.startsWith(e)||t&&!(null==n)&&Object.prototype.hasOwnProperty.call(n,t)),ay=(e,t,n)=>r=>{if("string"!=typeof r)return r;const[i,a,o,s]=r.match(ny);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:void 0!==s?parseFloat(s):1}},oy={...Pg,transform:e=>Math.round(Rg(0,255,e))},sy={test:iy("rgb","red"),parse:ay("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+oy.transform(e)+", "+oy.transform(t)+", "+oy.transform(n)+", "+ty($g.transform(r))+")"},ly={test:iy("#"),parse:function(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}},transform:sy.transform},uy={test:iy("hsl","hue"),parse:ay("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Ag.transform(ty(t))+", "+Ag.transform(ty(n))+", "+ty($g.transform(r))+")"},cy={test:e=>sy.test(e)||ly.test(e)||uy.test(e),parse:e=>sy.test(e)?sy.parse(e):uy.test(e)?uy.parse(e):ly.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?sy.transform(e):uy.transform(e)},dy=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,py="number",hy="color",fy=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function my(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let a=0;const o=t.replace(fy,(e=>(cy.test(e)?(r.color.push(a),i.push(hy),n.push(cy.parse(e))):e.startsWith("var(")?(r.var.push(a),i.push("var"),n.push(e)):(r.number.push(a),i.push(py),n.push(parseFloat(e))),++a,"${}"))).split("${}");return{values:n,split:o,indexes:r,types:i}}function gy(e){return my(e).values}function yy(e){const{split:t,types:n}=my(e),r=t.length;return e=>{let i="";for(let a=0;a<r;a++)if(i+=t[a],void 0!==e[a]){const t=n[a];i+=t===py?ty(e[a]):t===hy?cy.transform(e[a]):e[a]}return i}}const vy=e=>"number"==typeof e?0:e,by={test:function(e){var t,n;return isNaN(e)&&"string"==typeof e&&((null===(t=e.match(ny))||void 0===t?void 0:t.length)||0)+((null===(n=e.match(dy))||void 0===n?void 0:n.length)||0)>0},parse:gy,createTransformer:yy,getAnimatableNone:function(e){const t=gy(e);return yy(e)(t.map(vy))}},xy=new Set(["brightness","contrast","saturate","opacity"]);function wy(e){const[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(ny)||[];if(!r)return e;const i=n.replace(r,"");let a=xy.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+i+")"}const Ey=/\b([a-z-]*)\(.*?\)/gu,ky={...by,getAnimatableNone:e=>{const t=e.match(Ey);return t?t.map(wy).join(" "):e}},Sy={borderWidth:Ig,borderTopWidth:Ig,borderRightWidth:Ig,borderBottomWidth:Ig,borderLeftWidth:Ig,borderRadius:Ig,radius:Ig,borderTopLeftRadius:Ig,borderTopRightRadius:Ig,borderBottomRightRadius:Ig,borderBottomLeftRadius:Ig,width:Ig,maxWidth:Ig,height:Ig,maxHeight:Ig,top:Ig,right:Ig,bottom:Ig,left:Ig,padding:Ig,paddingTop:Ig,paddingRight:Ig,paddingBottom:Ig,paddingLeft:Ig,margin:Ig,marginTop:Ig,marginRight:Ig,marginBottom:Ig,marginLeft:Ig,backgroundPositionX:Ig,backgroundPositionY:Ig},Dy={rotate:Mg,rotateX:Mg,rotateY:Mg,rotateZ:Mg,scale:Tg,scaleX:Tg,scaleY:Tg,scaleZ:Tg,skew:Mg,skewX:Mg,skewY:Mg,distance:Ig,translateX:Ig,translateY:Ig,translateZ:Ig,x:Ig,y:Ig,z:Ig,perspective:Ig,transformPerspective:Ig,opacity:$g,originX:Lg,originY:Lg,originZ:Ig},jy={...Pg,transform:Math.round},Cy={...Sy,...Dy,zIndex:jy,size:Ig,fillOpacity:$g,strokeOpacity:$g,numOctaves:jy},Ry={...Cy,color:cy,backgroundColor:cy,outlineColor:cy,fill:cy,stroke:cy,borderColor:cy,borderTopColor:cy,borderRightColor:cy,borderBottomColor:cy,borderLeftColor:cy,filter:ky,WebkitFilter:ky},Py=e=>Ry[e];function $y(e,t){let n=Py(e);return n!==ky&&(n=by),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Ty=new Set(["auto","none","0"]);class _y extends ey{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let s=0;s<e.length;s++){let n=e[s];if("string"==typeof n&&(n=n.trim(),Sg(n))){const r=Cg(n,t.current);void 0!==r&&(e[s]=r),s===e.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!Vg.has(n)||2!==e.length)return;const[r,i]=e,a=Zg(r),o=Zg(i);if(a!==o)if(Ng(a)&&Ng(o))for(let s=0;s<e.length;s++){const t=e[s];"string"==typeof t&&(e[s]=parseFloat(t))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:t}=this,n=[];for(let i=0;i<e.length;i++)("number"==typeof(r=e[i])?0===r:null===r||"none"===r||"0"===r||bg(r))&&n.push(i);var r;n.length&&function(e,t,n){let r,i=0;for(;i<e.length&&!r;){const t=e[i];"string"==typeof t&&!Ty.has(t)&&my(t).values.length&&(r=e[i]),i++}if(r&&n)for(const a of t)e[a]=$y(n,r)}(e,n,t)}measureInitialState(){const{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=qg[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;const r=t[t.length-1];void 0!==r&&e.getValue(n,r).jump(r,!1)}measureEndState(){var e;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const i=t.getValue(n);i&&i.jump(this.measuredOrigin,!1);const a=r.length-1,o=r[a];r[a]=qg[n](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==o&&void 0===this.finalKeyframe&&(this.finalKeyframe=o),(null===(e=this.removedTransforms)||void 0===e?void 0:e.length)&&this.removedTransforms.forEach((([e,n])=>{t.getValue(e).set(n)})),this.resolveNoneKeyframes()}}function My(e){return"function"==typeof e}let Ay;function Iy(){Ay=void 0}const Oy={now:()=>(void 0===Ay&&Oy.set(og.isProcessing?og.timestamp:performance.now()),Ay),set:e=>{Ay=e,queueMicrotask(Iy)}},Fy=(e,t)=>!("zIndex"===t||"number"!=typeof e&&!Array.isArray(e)&&("string"!=typeof e||!by.test(e)&&"0"!==e||e.startsWith("url(")));class Ly{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:a="loop",...o}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Oy.now(),this.options={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:a,...o},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(Qg(),Xg()),this._resolved}onKeyframesResolved(e,t){this.resolvedAt=Oy.now(),this.hasAttemptedResolve=!0;const{name:n,type:r,velocity:i,delay:a,onComplete:o,onUpdate:s,isGenerator:l}=this.options;if(!l&&!function(e,t,n,r){const i=e[0];if(null===i)return!1;if("display"===t||"visibility"===t)return!0;const a=e[e.length-1],o=Fy(i,t),s=Fy(a,t);return eg(o===s,`You are trying to animate ${t} from "${i}" to "${a}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${a} via the \`style\` property.`),!(!o||!s)&&(function(e){const t=e[0];if(1===e.length)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}(e)||("spring"===n||My(n))&&r)}(e,n,r,i)){if(!a)return null==s||s(Xm(e,this.options,t)),null==o||o(),void this.resolveFinishedPromise();this.options.duration=0}const u=this.initPlayback(e,t);!1!==u&&(this._resolved={keyframes:e,finalKeyframe:t,...u},this.onPostResolved())}onPostResolved(){}then(e,t){return this.currentFinishedPromise.then(e,t)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise((e=>{this.resolveFinishedPromise=e}))}}const Vy=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},Ny=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let a=0;a<i;a++)r+=e(Vy(0,i-1,a))+", ";return`linear(${r.substring(0,r.length-2)})`};function zy(e,t){return t?e*(1e3/t):0}function By(e,t,n){const r=Math.max(t-5,0);return zy(n-e(r),t-r)}const Uy=.01,Wy=2,qy=.005,Ky=.5;const Hy=12;function Zy(e,t){return e*Math.sqrt(1-t*t)}const Gy=2e4;function Yy(e){let t=0,n=e.next(t);for(;!n.done&&t<Gy;)t+=50,n=e.next(t);return t>=Gy?1/0:t}const Jy=["duration","bounce"],Xy=["stiffness","damping","mass"];function Qy(e,t){return t.some((t=>void 0!==e[t]))}function ev(e=.3,t=.3){const n="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],s={done:!1,value:a},{stiffness:l,damping:u,mass:c,duration:d,velocity:p,isResolvedFromDuration:h}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Qy(e,Xy)&&Qy(e,Jy))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(1.2*n),i=r*r,a=2*Rg(.05,1,1-e.bounce)*Math.sqrt(i);t={...t,mass:1,stiffness:i,damping:a}}else{const n=function({duration:e=800,bounce:t=.3,velocity:n=0,mass:r=1}){let i,a;eg(e<=Wm(10),"Spring duration must be 10 seconds or less");let o=1-t;o=Rg(.05,1,o),e=Rg(.01,10,qm(e)),o<1?(i=t=>{const r=t*o,i=r*e;return.001-(r-n)/Zy(t,o)*Math.exp(-i)},a=t=>{const r=t*o*e,a=r*n+n,s=Math.pow(o,2)*Math.pow(t,2)*e,l=Math.exp(-r),u=Zy(Math.pow(t,2),o);return(.001-i(t)>0?-1:1)*((a-s)*l)/u}):(i=t=>Math.exp(-t*e)*((t-n)*e+1)-.001,a=t=>Math.exp(-t*e)*(e*e*(n-t)));const s=function(e,t,n){let r=n;for(let i=1;i<Hy;i++)r-=e(r)/t(r);return r}(i,a,5/e);if(e=Wm(e),isNaN(s))return{stiffness:100,damping:10,duration:e};{const t=Math.pow(s,2)*r;return{stiffness:t,damping:2*o*Math.sqrt(r*t),duration:e}}}(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}({...n,velocity:-qm(n.velocity||0)}),f=p||0,m=u/(2*Math.sqrt(l*c)),g=o-a,y=qm(Math.sqrt(l/c)),v=Math.abs(g)<5;let b;if(r||(r=v?Uy:Wy),i||(i=v?qy:Ky),m<1){const e=Zy(y,m);b=t=>{const n=Math.exp(-m*y*t);return o-n*((f+m*y*g)/e*Math.sin(e*t)+g*Math.cos(e*t))}}else if(1===m)b=e=>o-Math.exp(-y*e)*(g+(f+y*g)*e);else{const e=y*Math.sqrt(m*m-1);b=t=>{const n=Math.exp(-m*y*t),r=Math.min(e*t,300);return o-n*((f+m*y*g)*Math.sinh(r)+e*g*Math.cosh(r))/e}}const x={calculatedDuration:h&&d||null,next:e=>{const t=b(e);if(h)s.done=e>=d;else{let n=0;m<1&&(n=0===e?Wm(f):By(b,e,t));const a=Math.abs(n)<=r,l=Math.abs(o-t)<=i;s.done=a&&l}return s.value=s.done?o:t,s},toString:()=>{const e=Math.min(Yy(x),Gy),t=Ny((t=>x.next(e*t).value),e,30);return e+"ms "+t}};return x}function tv({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:l,restDelta:u=.5,restSpeed:c}){const d=e[0],p={done:!1,value:d},h=e=>void 0===s?l:void 0===l||Math.abs(s-e)<Math.abs(l-e)?s:l;let f=n*t;const m=d+f,g=void 0===o?m:o(m);g!==m&&(f=g-d);const y=e=>-f*Math.exp(-e/r),v=e=>g+y(e),b=e=>{const t=y(e),n=v(e);p.done=Math.abs(t)<=u,p.value=p.done?g:n};let x,w;const E=e=>{var t;t=p.value,(void 0!==s&&t<s||void 0!==l&&t>l)&&(x=e,w=ev({keyframes:[p.value,h(p.value)],velocity:By(v,e,p.value),damping:i,stiffness:a,restDelta:u,restSpeed:c}))};return E(0),{calculatedDuration:null,next:e=>{let t=!1;return w||void 0!==x||(t=!0,b(e),E(e)),void 0!==x&&e>=x?w.next(e-x):(!t&&b(e),p)}}}const nv=ug(.42,0,1,1),rv=ug(0,0,.58,1),iv=ug(.42,0,.58,1),av=e=>Array.isArray(e)&&"number"==typeof e[0],ov={linear:Qm,easeIn:nv,easeInOut:iv,easeOut:rv,circIn:gg,circInOut:vg,circOut:yg,backIn:hg,backInOut:fg,backOut:pg,anticipate:mg},sv=e=>{if(av(e)){tg(4===e.length,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return ug(t,n,r,i)}return"string"==typeof e?(tg(void 0!==ov[e],`Invalid easing type '${e}'`),ov[e]):e},lv=(e,t)=>n=>t(e(n)),uv=(...e)=>e.reduce(lv),cv=(e,t,n)=>e+(t-e)*n;function dv(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function pv(e,t){return n=>n>0?t:e}const hv=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},fv=[ly,sy,uy];function mv(e){const t=(n=e,fv.find((e=>e.test(n))));var n;if(eg(Boolean(t),`'${e}' is not an animatable color. Use the equivalent color code instead.`),!Boolean(t))return!1;let r=t.parse(e);return t===uy&&(r=function({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let i=0,a=0,o=0;if(t/=100){const r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=dv(s,r,e+1/3),a=dv(s,r,e),o=dv(s,r,e-1/3)}else i=a=o=n;return{red:Math.round(255*i),green:Math.round(255*a),blue:Math.round(255*o),alpha:r}}(r)),r}const gv=(e,t)=>{const n=mv(e),r=mv(t);if(!n||!r)return pv(e,t);const i={...n};return e=>(i.red=hv(n.red,r.red,e),i.green=hv(n.green,r.green,e),i.blue=hv(n.blue,r.blue,e),i.alpha=cv(n.alpha,r.alpha,e),sy.transform(i))},yv=new Set(["none","hidden"]);function vv(e,t){return n=>cv(e,t,n)}function bv(e){return"number"==typeof e?vv:"string"==typeof e?Sg(e)?pv:cy.test(e)?gv:Ev:Array.isArray(e)?xv:"object"==typeof e?cy.test(e)?gv:wv:pv}function xv(e,t){const n=[...e],r=n.length,i=e.map(((e,n)=>bv(e)(e,t[n])));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function wv(e,t){const n={...e,...t},r={};for(const i in n)void 0!==e[i]&&void 0!==t[i]&&(r[i]=bv(e[i])(e[i],t[i]));return e=>{for(const t in r)n[t]=r[t](e);return n}}const Ev=(e,t)=>{const n=by.createTransformer(t),r=my(e),i=my(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?yv.has(e)&&!i.values.length||yv.has(t)&&!r.values.length?(a=e,o=t,yv.has(a)?e=>e<=0?a:o:e=>e>=1?o:a):uv(xv(function(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let a=0;a<t.values.length;a++){const o=t.types[a],s=e.indexes[o][i[o]],l=null!==(n=e.values[s])&&void 0!==n?n:0;r[a]=l,i[o]++}return r}(r,i),i.values),n):(eg(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),pv(e,t));var a,o};function kv(e,t,n){return"number"==typeof e&&"number"==typeof t&&"number"==typeof n?cv(e,t,n):bv(e)(e,t)}function Sv({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=(l=r,Array.isArray(l)&&"number"!=typeof l[0]?r.map(sv):sv(r)),a={done:!1,value:t[0]},o=function(e,t){return e.map((e=>e*t))}(n&&n.length===t.length?n:function(e){const t=[0];return function(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Vy(0,t,r);e.push(cv(n,1,i))}}(t,e.length-1),t}(t),e),s=function(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const a=e.length;if(tg(a===t.length,"Both input and output ranges must be the same length"),1===a)return()=>t[0];if(2===a&&e[0]===e[1])return()=>t[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const o=function(e,t,n){const r=[],i=n||kv,a=e.length-1;for(let o=0;o<a;o++){let n=i(e[o],e[o+1]);if(t){const e=Array.isArray(t)?t[o]||Qm:t;n=uv(e,n)}r.push(n)}return r}(t,r,i),s=o.length,l=t=>{let n=0;if(s>1)for(;n<e.length-2&&!(t<e[n+1]);n++);const r=Vy(e[n],e[n+1],t);return o[n](r)};return n?t=>l(Rg(e[0],e[a-1],t)):l}(o,t,{ease:Array.isArray(i)?i:(u=t,c=i,u.map((()=>c||iv)).splice(0,u.length-1))});var l,u,c;return{calculatedDuration:e,next:t=>(a.value=s(t),a.done=t>=e,a)}}const Dv=e=>{const t=({timestamp:t})=>e(t);return{start:()=>ig.update(t,!0),stop:()=>ag(t),now:()=>og.isProcessing?og.timestamp:Oy.now()}},jv={decay:tv,inertia:tv,tween:Sv,keyframes:Sv,spring:ev},Cv=e=>e/100;class Rv extends Ly{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();const{onStop:e}=this.options;e&&e()};const{name:t,motionValue:n,element:r,keyframes:i}=this.options,a=(null==r?void 0:r.KeyframeResolver)||ey;this.resolver=new a(i,((e,t)=>this.onKeyframesResolved(e,t)),t,n,r),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){const{type:t="keyframes",repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=this.options,o=My(t)?t:jv[t]||Sv;let s,l;o!==Sv&&"number"!=typeof e[0]&&("production"!==process.env.NODE_ENV&&tg(2===e.length,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${e}`),s=uv(Cv,kv(e[0],e[1])),e=[0,100]);const u=o({...this.options,keyframes:e});"mirror"===i&&(l=o({...this.options,keyframes:[...e].reverse(),velocity:-a})),null===u.calculatedDuration&&(u.calculatedDuration=Yy(u));const{calculatedDuration:c}=u,d=c+r;return{generator:u,mirroredGenerator:l,mapPercentToKeyframes:s,calculatedDuration:c,resolvedDuration:d,totalDuration:d*(n+1)-r}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&e?this.state=this.pendingPlayState:this.pause()}tick(e,t=!1){const{resolved:n}=this;if(!n){const{keyframes:e}=this.options;return{done:!0,value:e[e.length-1]}}const{finalKeyframe:r,generator:i,mirroredGenerator:a,mapPercentToKeyframes:o,keyframes:s,calculatedDuration:l,totalDuration:u,resolvedDuration:c}=n;if(null===this.startTime)return i.next(0);const{delay:d,repeat:p,repeatType:h,repeatDelay:f,onUpdate:m}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-u/this.speed,this.startTime)),t?this.currentTime=e:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const g=this.currentTime-d*(this.speed>=0?1:-1),y=this.speed>=0?g<0:g>u;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=u);let v=this.currentTime,b=i;if(p){const e=Math.min(this.currentTime,u)/c;let t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,t=Math.min(t,p+1),Boolean(t%2)&&("reverse"===h?(n=1-n,f&&(n-=f/c)):"mirror"===h&&(b=a)),v=Rg(0,1,n)*c}const x=y?{done:!1,value:s[0]}:b.next(v);o&&(x.value=o(x.value));let{done:w}=x;y||null===l||(w=this.speed>=0?this.currentTime>=u:this.currentTime<=0);const E=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return E&&void 0!==r&&(x.value=Xm(s,this.options,r)),m&&m(x.value),E&&this.finish(),x}get duration(){const{resolved:e}=this;return e?qm(e.calculatedDuration):0}get time(){return qm(this.currentTime)}set time(e){e=Wm(e),this.currentTime=e,null!==this.holdTime||0===this.speed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=qm(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved)return void(this.pendingPlayState="running");if(this.isStopped)return;const{driver:e=Dv,onPlay:t,startTime:n}=this.options;this.driver||(this.driver=e((e=>this.tick(e)))),t&&t();const r=this.driver.now();null!==this.holdTime?this.startTime=r-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=r):this.startTime=null!=n?n:this.calcStartTime(),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;this._resolved?(this.state="paused",this.holdTime=null!==(e=this.currentTime)&&void 0!==e?e:0):this.pendingPlayState="paused"}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}const Pv=new Set(["opacity","clipPath","filter","transform"]);function $v(e){let t;return()=>(void 0===t&&(t=e()),t)}const Tv={linearEasing:void 0};const _v=function(e,t){const n=$v(e);return()=>{var e;return null!==(e=Tv[t])&&void 0!==e?e:n()}}((()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(qx){return!1}return!0}),"linearEasing");function Mv(e){return Boolean("function"==typeof e&&_v()||!e||"string"==typeof e&&(e in Iv||_v())||av(e)||Array.isArray(e)&&e.every(Mv))}const Av=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Iv={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Av([0,.65,.55,1]),circOut:Av([.55,0,1,.45]),backIn:Av([.31,.01,.66,-.59]),backOut:Av([.33,1.53,.69,.99])};function Ov(e,t){return e?"function"==typeof e&&_v()?Ny(e,t):av(e)?Av(e):Array.isArray(e)?e.map((e=>Ov(e,t)||Iv.easeOut)):Iv[e]:void 0}function Fv(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o="loop",ease:s="easeInOut",times:l}={}){const u={[t]:n};l&&(u.offset=l);const c=Ov(s,i);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:r,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:a+1,direction:"reverse"===o?"alternate":"normal"})}function Lv(e,t){e.timeline=t,e.onfinish=null}const Vv=$v((()=>Object.hasOwnProperty.call(Element.prototype,"animate"))),Nv={anticipate:mg,backInOut:fg,circInOut:vg};class zv extends Ly{constructor(e){super(e);const{name:t,motionValue:n,element:r,keyframes:i}=this.options;this.resolver=new _y(i,((e,t)=>this.onKeyframesResolved(e,t)),t,n,r),this.resolver.scheduleResolve()}initPlayback(e,t){var n;let{duration:r=300,times:i,ease:a,type:o,motionValue:s,name:l,startTime:u}=this.options;if(!(null===(n=s.owner)||void 0===n?void 0:n.current))return!1;var c;if("string"==typeof a&&_v()&&a in Nv&&(a=Nv[a]),My((c=this.options).type)||"spring"===c.type||!Mv(c.ease)){const{onComplete:t,onUpdate:n,motionValue:s,element:l,...u}=this.options,c=function(e,t){const n=new Rv({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let a=0;for(;!r.done&&a<2e4;)r=n.sample(a),i.push(r.value),a+=10;return{times:void 0,keyframes:i,duration:a-10,ease:"linear"}}(e,u);1===(e=c.keyframes).length&&(e[1]=e[0]),r=c.duration,i=c.times,a=c.ease,o="keyframes"}const d=Fv(s.owner.current,l,e,{...this.options,duration:r,times:i,ease:a});return d.startTime=null!=u?u:this.calcStartTime(),this.pendingTimeline?(Lv(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{const{onComplete:n}=this.options;s.set(Xm(e,this.options,t)),n&&n(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:r,times:i,type:o,ease:a,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:t}=e;return qm(t)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:t}=e;return qm(t.currentTime||0)}set time(e){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.currentTime=Wm(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:t}=e;return t.playbackRate}set speed(e){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:t}=e;return t.playState}get startTime(){const{resolved:e}=this;if(!e)return null;const{animation:t}=e;return t.startTime}attachTimeline(e){if(this._resolved){const{resolved:t}=this;if(!t)return Qm;const{animation:n}=t;Lv(n,e)}else this.pendingTimeline=e;return Qm}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:t}=e;"finished"===t.playState&&this.updateFinishedPromise(),t.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:t}=e;t.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:e}=this;if(!e)return;const{animation:t,keyframes:n,duration:r,type:i,ease:a,times:o}=e;if("idle"===t.playState||"finished"===t.playState)return;if(this.time){const{motionValue:e,onUpdate:t,onComplete:s,element:l,...u}=this.options,c=new Rv({...u,keyframes:n,duration:r,type:i,ease:a,times:o,isGenerator:!0}),d=Wm(this.time);e.setWithVelocity(c.sample(d-10).value,c.sample(d).value,10)}const{onStop:s}=this.options;s&&s(),this.cancel()}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o}=e;return Vv()&&n&&Pv.has(n)&&t&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate&&!r&&"mirror"!==i&&0!==a&&"inertia"!==o}}const Bv=$v((()=>void 0!==window.ScrollTimeline));class Uv{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}then(e,t){return Promise.all(this.animations).then(e).catch(t)}getAll(e){return this.animations[0][e]}setAll(e,t){for(let n=0;n<this.animations.length;n++)this.animations[n][e]=t}attachTimeline(e,t){const n=this.animations.map((n=>Bv()&&n.attachTimeline?n.attachTimeline(e):t(n)));return()=>{n.forEach(((e,t)=>{e&&e(),this.animations[t].stop()}))}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let t=0;t<this.animations.length;t++)e=Math.max(e,this.animations[t].duration);return e}runAll(e){this.animations.forEach((t=>t[e]()))}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}const Wv=(e,t,n,r={},i,a)=>o=>{const s=Ym(r,e)||{},l=s.delay||r.delay||0;let{elapsed:u=0}=r;u-=Wm(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-u,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};(function({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:a,repeatType:o,repeatDelay:s,from:l,elapsed:u,...c}){return!!Object.keys(c).length})(s)||(c={...c,...Gm(e,c)}),c.duration&&(c.duration=Wm(c.duration)),c.repeatDelay&&(c.repeatDelay=Wm(c.repeatDelay)),void 0!==c.from&&(c.keyframes[0]=c.from);let d=!1;if((!1===c.type||0===c.duration&&!c.repeatDelay)&&(c.duration=0,0===c.delay&&(d=!0)),d&&!a&&void 0!==t.get()){const e=Xm(c.keyframes,s);if(void 0!==e)return ig.update((()=>{c.onUpdate(e),c.onComplete()})),new Uv([])}return!a&&zv.supports(c)?new zv(c):new Rv(c)},qv=e=>Am(e)?e[e.length-1]||0:e;class Kv{constructor(){this.subscriptions=[]}add(e){var t,n;return t=this.subscriptions,n=e,-1===t.indexOf(n)&&t.push(n),()=>function(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}(this.subscriptions,e)}notify(e,t,n){const r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){const r=this.subscriptions[i];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}class Hv{constructor(e,t={}){this.version="11.15.0",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(e,t=!0)=>{const n=Oy.now();this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){var t;this.current=e,this.updatedAt=Oy.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=(t=this.current,!isNaN(parseFloat(t))))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return"production"!==process.env.NODE_ENV&&_m(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new Kv);const n=this.events[e].add(t);return"change"===e?()=>{n(),ig.read((()=>{this.events.change.getSize()||this.stop()}))}:n}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=Oy.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;const t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return zy(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise((t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()})).then((()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()}))}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Zv(e,t){return new Hv(e,t)}function Gv(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Zv(n))}const Yv=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Jv="data-"+Yv("framerAppearId");function Xv(e){return e.props[Jv]}const Qv=e=>Boolean(e&&e.getVelocity);function eb(e,t){const n=e.getValue("willChange");if(r=n,Boolean(Qv(r)&&r.add))return n.add(t);var r}function tb({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}function nb(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var a;let{transition:o=e.getDefaultTransition(),transitionEnd:s,...l}=t;r&&(o=r);const u=[],c=i&&e.animationState&&e.animationState.getState()[i];for(const d in l){const t=e.getValue(d,null!==(a=e.latestValues[d])&&void 0!==a?a:null),r=l[d];if(void 0===r||c&&tb(c,d))continue;const i={delay:n,...Ym(o||{},d)};let s=!1;if(window.MotionHandoffAnimation){const t=Xv(e);if(t){const e=window.MotionHandoffAnimation(t,d,ig);null!==e&&(i.startTime=e,s=!0)}}eb(e,d),t.start(Wv(d,t,r,e.shouldReduceMotion&&Um.has(d)?{type:!1}:i,e,s));const p=t.animation;p&&u.push(p)}return s&&Promise.all(u).then((()=>{ig.update((()=>{s&&function(e,t){const n=Vm(e,t);let{transitionEnd:r={},transition:i={},...a}=n||{};a={...a,...r};for(const o in a)Gv(e,o,qv(a[o]))}(e,s)}))})),u}function rb(e,t,n={}){var r;const i=Vm(e,t,"exit"===n.type?null===(r=e.presenceContext)||void 0===r?void 0:r.custom:void 0);let{transition:a=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(a=n.transitionOverride);const o=i?()=>Promise.all(nb(e,i,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(r=0)=>{const{delayChildren:i=0,staggerChildren:o,staggerDirection:s}=a;return function(e,t,n=0,r=0,i=1,a){const o=[],s=(e.variantChildren.size-1)*r,l=1===i?(e=0)=>e*r:(e=0)=>s-e*r;return Array.from(e.variantChildren).sort(ib).forEach(((e,r)=>{e.notify("AnimationStart",t),o.push(rb(e,t,{...a,delay:n+l(r)}).then((()=>e.notify("AnimationComplete",t))))})),Promise.all(o)}(e,t,i+r,o,s,n)}:()=>Promise.resolve(),{when:l}=a;if(l){const[e,t]="beforeChildren"===l?[o,s]:[s,o];return e().then((()=>t()))}return Promise.all([o(),s(n.delay)])}function ib(e,t){return e.sortNodePosition(t)}const ab=zm.length;function ob(e){if(!e)return;if(!e.isControllingVariants){const t=e.parent&&ob(e.parent)||{};return void 0!==e.props.initial&&(t.initial=e.props.initial),t}const t={};for(let n=0;n<ab;n++){const r=zm[n],i=e.props[r];(Om(i)||!1===i)&&(t[r]=i)}return t}const sb=[...Nm].reverse(),lb=Nm.length;function ub(e){let t=function(e){return t=>Promise.all(t.map((({animation:t,options:n})=>function(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t)){const i=t.map((t=>rb(e,t,n)));r=Promise.all(i)}else if("string"==typeof t)r=rb(e,t,n);else{const i="function"==typeof t?Vm(e,t,n.custom):t;r=Promise.all(nb(e,i,n))}return r.then((()=>{e.notify("AnimationComplete",t)}))}(e,t,n))))}(e),n=pb(),r=!0;const i=t=>(n,r)=>{var i;const a=Vm(e,r,"exit"===t?null===(i=e.presenceContext)||void 0===i?void 0:i.custom:void 0);if(a){const{transition:e,transitionEnd:t,...r}=a;n={...n,...r,...t}}return n};function a(a){const{props:o}=e,s=ob(e.parent)||{},l=[],u=new Set;let c={},d=1/0;for(let t=0;t<lb;t++){const p=sb[t],h=n[p],f=void 0!==o[p]?o[p]:s[p],m=Om(f),g=p===a?h.isActive:null;!1===g&&(d=t);let y=f===s[p]&&f!==o[p]&&m;if(y&&r&&e.manuallyAnimateOnMount&&(y=!1),h.protectedKeys={...c},!h.isActive&&null===g||!f&&!h.prevProp||Mm(f)||"boolean"==typeof f)continue;const v=cb(h.prevProp,f);let b=v||p===a&&h.isActive&&!y&&m||t>d&&m,x=!1;const w=Array.isArray(f)?f:[f];let E=w.reduce(i(p),{});!1===g&&(E={});const{prevResolvedValues:k={}}=h,S={...k,...E},D=t=>{b=!0,u.has(t)&&(x=!0,u.delete(t)),h.needsAnimating[t]=!0;const n=e.getValue(t);n&&(n.liveStyle=!1)};for(const e in S){const t=E[e],n=k[e];if(c.hasOwnProperty(e))continue;let r=!1;r=Am(t)&&Am(n)?!Im(t,n):t!==n,r?null!=t?D(e):u.add(e):void 0!==t&&u.has(e)?D(e):h.protectedKeys[e]=!0}h.prevProp=f,h.prevResolvedValues=E,h.isActive&&(c={...c,...E}),r&&e.blockInitialAnimation&&(b=!1),b&&(!y||!v||x)&&l.push(...w.map((e=>({animation:e,options:{type:p}}))))}if(u.size){const t={};u.forEach((n=>{const r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=null!=r?r:null})),l.push({animation:t})}let p=Boolean(l.length);return!r||!1!==o.initial&&o.initial!==o.animate||e.manuallyAnimateOnMount||(p=!1),r=!1,p?t(l):Promise.resolve()}return{animateChanges:a,setActive:function(t,r){var i;if(n[t].isActive===r)return Promise.resolve();null===(i=e.variantChildren)||void 0===i||i.forEach((e=>{var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)})),n[t].isActive=r;const o=a(t);for(const e in n)n[e].protectedKeys={};return o},setAnimateFunction:function(n){t=n(e)},getState:()=>n,reset:()=>{n=pb(),r=!0}}}function cb(e,t){return"string"==typeof t?t!==e:!!Array.isArray(t)&&!Im(t,e)}function db(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function pb(){return{animate:db(!0),whileInView:db(),whileHover:db(),whileTap:db(),whileDrag:db(),whileFocus:db(),exit:db()}}class hb{constructor(e){this.isMounted=!1,this.node=e}update(){}}let fb=0;const mb={animation:{Feature:class extends hb{constructor(e){super(e),e.animationState||(e.animationState=ub(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();Mm(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),null===(e=this.unmountControls)||void 0===e||e.call(this)}}},exit:{Feature:class extends hb{constructor(){super(...arguments),this.id=fb++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;const r=this.node.animationState.setActive("exit",!e);t&&!e&&r.then((()=>t(this.id)))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}}};function gb(e){return{point:{x:e.pageX,y:e.pageY}}}function yb(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function vb(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}const bb=()=>({x:{min:0,max:0},y:{min:0,max:0}}),xb=t.createContext(null),wb=t.createContext({}),Eb=t.createContext({}),kb={},{schedule:Sb,cancel:Db}=rg(queueMicrotask,!1);function jb(e){const t=Qv(e)?e.get():e;return n=t,Boolean(n&&"object"==typeof n&&n.mix&&n.toValue)?t.toValue():t;var n}function Cb(e,t){const n=function(e){if(e instanceof Element)return[e];if("string"==typeof e){const t=document.querySelectorAll(e);return t?Array.from(t):[]}return Array.from(e)}(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function Rb(e){return t=>{"touch"===t.pointerType||e(t)}}function Pb(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover","Start"===n);const i=r["onHover"+n];i&&ig.postRender((()=>i(t,gb(t))))}const $b=new WeakSet;function Tb(e){return t=>{"Enter"===t.key&&e(t)}}function _b(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Mb=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),Ab=(e,t)=>!!t&&(e===t||Ab(e,t.parentElement));function Ib(e){return("mouse"===(t=e).pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary)&&!0;var t}function Ob(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap","Start"===n);const i=r["onTap"+("End"===n?"":n)];i&&ig.postRender((()=>i(t,gb(t))))}const Fb=new WeakMap,Lb=new WeakMap,Vb=e=>{const t=Fb.get(e.target);t&&t(e)},Nb=e=>{e.forEach(Vb)};const zb={some:0,all:1},Bb={inView:{Feature:class extends hb{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r="some",once:i}=e,a={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:zb[r]};return function(e,t,n){const r=function({root:e,...t}){const n=e||document;Lb.has(n)||Lb.set(n,{});const r=Lb.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Nb,{root:e,...t})),r[i]}(t);return Fb.set(e,n),r.observe(e),()=>{Fb.delete(e),r.unobserve(e)}}(this.node.current,a,(e=>{const{isIntersecting:t}=e;if(this.isInView===t)return;if(this.isInView=t,i&&!t&&this.hasEnteredView)return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);const{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),a=t?n:r;a&&a(e)}))}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends hb{mount(){const{current:e}=this.node;e&&(this.unmount=function(e,t,n={}){const[r,i,a]=Cb(e,n),o=e=>{const r=e.currentTarget;if(!Ib(e)||$b.has(r))return;$b.add(r);const a=t(e),o=(e,t)=>{window.removeEventListener("pointerup",s),window.removeEventListener("pointercancel",l),Ib(e)&&$b.has(r)&&($b.delete(r),a&&a(e,{success:t}))},s=e=>{o(e,n.useGlobalTarget||Ab(r,e.target))},l=e=>{o(e,!1)};window.addEventListener("pointerup",s,i),window.addEventListener("pointercancel",l,i)};return r.forEach((e=>{var t;t=e,Mb.has(t.tagName)||-1!==t.tabIndex||(e.tabIndex=0),(n.useGlobalTarget?window:e).addEventListener("pointerdown",o,i),e.addEventListener("focus",(e=>((e,t)=>{const n=e.currentTarget;if(!n)return;const r=Tb((()=>{if($b.has(n))return;_b(n,"down");const e=Tb((()=>{_b(n,"up")}));n.addEventListener("keyup",e,t),n.addEventListener("blur",(()=>_b(n,"cancel")),t)}));n.addEventListener("keydown",r,t),n.addEventListener("blur",(()=>n.removeEventListener("keydown",r)),t)})(e,i)),i)})),a}(e,(e=>(Ob(this.node,e,"Start"),(e,{success:t})=>Ob(this.node,e,t?"End":"Cancel"))),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}},focus:{Feature:class extends hb{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(Kx){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=uv(yb(this.node.current,"focus",(()=>this.onFocus())),yb(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}},hover:{Feature:class extends hb{mount(){const{current:e}=this.node;e&&(this.unmount=function(e,t,n={}){const[r,i,a]=Cb(e,n),o=Rb((e=>{const{target:n}=e,r=t(e);if(!r||!n)return;const a=Rb((e=>{r(e),n.removeEventListener("pointerleave",a)}));n.addEventListener("pointerleave",a,i)}));return r.forEach((e=>{e.addEventListener("pointerenter",o,i)})),a}(e,(e=>(Pb(this.node,e,"Start"),e=>Pb(this.node,e,"End")))))}unmount(){}}}},Ub=t.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Wb=t.createContext({}),qb="undefined"!=typeof window,Kb=qb?t.useLayoutEffect:t.useEffect,Hb=t.createContext({strict:!1});function Zb(e,n,r,i,a){var o,s;const{visualElement:l}=t.useContext(Wb),u=t.useContext(Hb),c=t.useContext(xb),d=t.useContext(Ub).reducedMotion,p=t.useRef(null);i=i||u.renderer,!p.current&&i&&(p.current=i(e,{visualState:n,parent:l,props:r,presenceContext:c,blockInitialAnimation:!!c&&!1===c.initial,reducedMotionConfig:d}));const h=p.current,f=t.useContext(Eb);!h||h.projection||!a||"html"!==h.type&&"svg"!==h.type||function(e,t,n,r){const{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:l,layoutRoot:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Gb(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:Boolean(o)||s&&vb(s),visualElement:e,animationType:"string"==typeof a?a:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:u})}(p.current,r,a,f);const m=t.useRef(!1);t.useInsertionEffect((()=>{h&&m.current&&h.update(r,c)}));const g=r[Jv],y=t.useRef(Boolean(g)&&!(null===(o=window.MotionHandoffIsComplete)||void 0===o?void 0:o.call(window,g))&&(null===(s=window.MotionHasOptimisedAnimation)||void 0===s?void 0:s.call(window,g)));return Kb((()=>{h&&(m.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),Sb.render(h.render),y.current&&h.animationState&&h.animationState.animateChanges())})),t.useEffect((()=>{h&&(!y.current&&h.animationState&&h.animationState.animateChanges(),y.current&&(queueMicrotask((()=>{var e;null===(e=window.MotionHandoffMarkAsComplete)||void 0===e||e.call(window,g)})),y.current=!1))})),h}function Gb(e){if(e)return!1!==e.options.allowProjection?e.projection:Gb(e.parent)}function Yb(e,n,r){return t.useCallback((t=>{t&&e.mount&&e.mount(t),n&&(t?n.mount(t):n.unmount()),r&&("function"==typeof r?r(t):vb(r)&&(r.current=t))}),[n])}function Jb(e){return Mm(e.animate)||zm.some((t=>Om(e[t])))}function Xb(e){return Boolean(Jb(e)||e.variants)}function Qb(e){return Array.isArray(e)?e.join(" "):e}const ex={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},tx={};for(const zD in ex)tx[zD]={isEnabled:e=>ex[zD].some((t=>!!e[t]))};function nx(e){for(const t in e)tx[t]={...tx[t],...e[t]}}const rx=Symbol.for("motionComponentSymbol");function ix({preloadedFeatures:n,createVisualElement:r,useRender:i,useVisualState:a,Component:o}){n&&nx(n);const s=t.forwardRef((function(s,l){let u;const c={...t.useContext(Ub),...s,layoutId:ax(s)},{isStatic:d}=c,p=function(e){const{initial:n,animate:r}=function(e,t){if(Jb(e)){const{initial:t,animate:n}=e;return{initial:!1===t||Om(t)?t:void 0,animate:Om(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,t.useContext(Wb));return t.useMemo((()=>({initial:n,animate:r})),[Qb(n),Qb(r)])}(s),h=a(s,d);if(!d&&qb){!function(e,n){const r=t.useContext(Hb).strict;if("production"!==process.env.NODE_ENV&&n&&r){const t="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?eg(!1,t):tg(!1,t)}}(c,n);const e=function(e){const{drag:t,layout:n}=tx;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:(null==t?void 0:t.isEnabled(e))||(null==n?void 0:n.isEnabled(e))?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}(c);u=e.MeasureLayout,p.visualElement=Zb(o,h,c,r,e.ProjectionNode)}return e.jsxRuntimeExports.jsxs(Wb.Provider,{value:p,children:[u&&p.visualElement?e.jsxRuntimeExports.jsx(u,{visualElement:p.visualElement,...c}):null,i(o,s,Yb(h,p.visualElement,l),h,d,p.visualElement)]})}));return s[rx]=o,s}function ax({layoutId:e}){const n=t.useContext(wb).id;return n&&void 0!==e?n+"-"+e:e}const ox=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function sx(e){return"string"==typeof e&&!e.includes("-")&&!!(ox.indexOf(e)>-1||/[A-Z]/u.test(e))}function lx(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const a in n)e.style.setProperty(a,n[a])}const ux=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function cx(e,t,n,r){lx(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(ux.has(i)?i:Yv(i),t.attrs[i])}function dx(e,{layout:t,layoutId:n}){return Um.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!kb[e]||"opacity"===e)}function px(e,t,n){var r;const{style:i}=e,a={};for(const o in i)(Qv(i[o])||t.style&&Qv(t.style[o])||dx(o,e)||void 0!==(null===(r=null==n?void 0:n.getValue(o))||void 0===r?void 0:r.liveStyle))&&(a[o]=i[o]);return a}function hx(e,t,n){const r=px(e,t,n);for(const i in e)(Qv(e[i])||Qv(t[i]))&&(r[-1!==Bm.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=e[i]);return r}const fx=e=>(n,r)=>{const i=t.useContext(Wb),a=t.useContext(xb),o=()=>function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,a){const o={latestValues:mx(r,i,a,e),renderState:t()};return n&&(o.mount=e=>n(r,e,o)),o}(e,n,i,a);return r?o():function(e){const n=t.useRef(null);return null===n.current&&(n.current=e()),n.current}(o)};function mx(e,t,n,r){const i={},a=r(e,{});for(const p in a)i[p]=jb(a[p]);let{initial:o,animate:s}=e;const l=Jb(e),u=Xb(e);t&&u&&!l&&!1!==e.inherit&&(void 0===o&&(o=t.initial),void 0===s&&(s=t.animate));let c=!!n&&!1===n.initial;c=c||!1===o;const d=c?s:o;if(d&&"boolean"!=typeof d&&!Mm(d)){const t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){const r=Lm(e,t[n]);if(r){const{transitionEnd:e,transition:t,...n}=r;for(const r in n){let e=n[r];Array.isArray(e)&&(e=e[c?e.length-1:0]),null!==e&&(i[r]=e)}for(const r in e)i[r]=e[r]}}}return i}const gx=(e,t)=>t&&"number"==typeof e?t.transform(e):e,yx={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},vx=Bm.length;function bx(e,t,n){const{style:r,vars:i,transformOrigin:a}=e;let o=!1,s=!1;for(const l in t){const e=t[l];if(Um.has(l))o=!0;else if(Eg(l))i[l]=e;else{const t=gx(e,Cy[l]);l.startsWith("origin")?(s=!0,a[l]=t):r[l]=t}}if(t.transform||(o||n?r.transform=function(e,t,n){let r="",i=!0;for(let a=0;a<vx;a++){const o=Bm[a],s=e[o];if(void 0===s)continue;let l=!0;if(l="number"==typeof s?s===(o.startsWith("scale")?1:0):0===parseFloat(s),!l||n){const e=gx(s,Cy[o]);l||(i=!1,r+=`${yx[o]||o}(${e}) `),n&&(t[o]=e)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}(t,e.transform,n):r.transform&&(r.transform="none")),s){const{originX:e="50%",originY:t="50%",originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}function xx(e,t,n){return"string"==typeof e?e:Ig.transform(t+n*e)}const wx={offset:"stroke-dashoffset",array:"stroke-dasharray"},Ex={offset:"strokeDashoffset",array:"strokeDasharray"};function kx(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:a,pathLength:o,pathSpacing:s=1,pathOffset:l=0,...u},c,d){if(bx(e,u,d),c)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const{attrs:p,style:h,dimensions:f}=e;var m,g;p.transform&&(f&&(h.transform=p.transform),delete p.transform),f&&(void 0!==i||void 0!==a||h.transform)&&(h.transformOrigin=(g=void 0!==a?a:.5,`${xx(void 0!==i?i:.5,(m=f).x,m.width)} ${xx(g,m.y,m.height)}`)),void 0!==t&&(p.x=t),void 0!==n&&(p.y=n),void 0!==r&&(p.scale=r),void 0!==o&&function(e,t,n=1,r=0,i=!0){e.pathLength=1;const a=i?wx:Ex;e[a.offset]=Ig.transform(-r);const o=Ig.transform(t),s=Ig.transform(n);e[a.array]=`${o} ${s}`}(p,o,s,l,!1)}const Sx=e=>"string"==typeof e&&"svg"===e.toLowerCase(),Dx={useVisualState:fx({scrapeMotionValuesFromProps:hx,createRenderState:()=>({style:{},transform:{},transformOrigin:{},vars:{},attrs:{}}),onMount:(e,t,{renderState:n,latestValues:r})=>{ig.read((()=>{try{n.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){n.dimensions={x:0,y:0,width:0,height:0}}})),ig.render((()=>{kx(n,r,Sx(t.tagName),e.transformTemplate),cx(t,n)}))}})},jx={useVisualState:fx({scrapeMotionValuesFromProps:px,createRenderState:()=>({style:{},transform:{},transformOrigin:{},vars:{}})})};function Cx(e,t,n){for(const r in t)Qv(t[r])||dx(r,n)||(e[r]=t[r])}function Rx(e,n){const r={},i=function(e,n){const r={};return Cx(r,e.style||{},e),Object.assign(r,function({transformTemplate:e},n){return t.useMemo((()=>{const t={style:{},transform:{},transformOrigin:{},vars:{}};return bx(t,n,e),Object.assign({},t.vars,t.style)}),[n])}(e,n)),r}(e,n);return e.drag&&!1!==e.dragListener&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=i,r}const Px=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function $x(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Px.has(e)}let Tx=e=>!$x(e);try{(_x=require("@emotion/is-prop-valid").default)&&(Tx=e=>e.startsWith("on")?!$x(e):_x(e))}catch(qx){}var _x;function Mx(e,n,r,i){const a=t.useMemo((()=>{const t={style:{},transform:{},transformOrigin:{},vars:{},attrs:{}};return kx(t,n,Sx(i),e.transformTemplate),{...t.attrs,style:{...t.style}}}),[n]);if(e.style){const t={};Cx(t,e.style,e),a.style={...t,...a.style}}return a}function Ax(e=!1){return(n,r,i,{latestValues:a},o)=>{const s=(sx(n)?Mx:Rx)(r,a,o,n),l=function(e,t,n){const r={};for(const i in e)"values"===i&&"object"==typeof e.values||(Tx(i)||!0===n&&$x(i)||!t&&!$x(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}(r,"string"==typeof n,e),u=n!==t.Fragment?{...l,...s,ref:i}:{},{children:c}=r,d=t.useMemo((()=>Qv(c)?c.get():c),[c]);return t.createElement(n,{...u,children:d})}}const Ix={current:null},Ox={current:!1},Fx=new WeakMap,Lx=[...Hg,cy,by],Vx=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Nx{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,blockInitialAnimation:i,visualState:a},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=ey,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const e=Oy.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,ig.render(this.render,!1,!0))};const{latestValues:s,renderState:l}=a;this.latestValues=s,this.baseTarget={...s},this.initialValues=t.initial?{...s}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=o,this.blockInitialAnimation=Boolean(i),this.isControllingVariants=Jb(t),this.isVariantNode=Xb(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(e&&e.current);const{willChange:u,...c}=this.scrapeMotionValuesFromProps(t,{},this);for(const d in c){const e=c[d];void 0!==s[d]&&Qv(e)&&e.set(s[d],!1)}}mount(e){this.current=e,Fx.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach(((e,t)=>this.bindToMotionValue(t,e))),Ox.current||function(){if(Ox.current=!0,qb)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Ix.current=e.matches;e.addListener(t),t()}else Ix.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||Ix.current),"production"!==process.env.NODE_ENV&&_m(!0!==this.shouldReduceMotion,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Fx.delete(this.current),this.projection&&this.projection.unmount(),ag(this.notifyUpdate),ag(this.render),this.valueSubscriptions.forEach((e=>e())),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}bindToMotionValue(e,t){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const n=Um.has(e),r=t.on("change",(t=>{this.latestValues[e]=t,this.props.onUpdate&&ig.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)})),i=t.on("renderRequest",this.scheduleRender);let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,(()=>{r(),i(),a&&a(),t.owner&&t.stop()}))}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in tx){const t=tx[e];if(!t)continue;const{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){const t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):{x:{min:0,max:0},y:{min:0,max:0}}}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let n=0;n<Vx.length;n++){const t=Vx[n];this.propEventSubscriptions[t]&&(this.propEventSubscriptions[t](),delete this.propEventSubscriptions[t]);const r=e["on"+t];r&&(this.propEventSubscriptions[t]=this.on(t,r))}this.prevMotionValues=function(e,t,n){for(const r in t){const i=t[r],a=n[r];if(Qv(i))e.addValue(r,i),"development"===process.env.NODE_ENV&&_m("11.15.0"===i.version,`Attempting to mix Motion versions ${i.version} with 11.15.0 may not work as expected.`);else if(Qv(a))e.addValue(r,Zv(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){const t=e.getValue(r);!0===t.liveStyle?t.jump(i):t.hasAnimated||t.set(i)}else{const t=e.getStaticValue(r);e.addValue(r,Zv(void 0!==t?t:i,{owner:e}))}}for(const r in n)void 0===t[r]&&e.removeValue(r);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){const n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);const t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=Zv(null===t?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){var n;let r=void 0===this.latestValues[e]&&this.current?null!==(n=this.getBaseTargetFromProps(this.props,e))&&void 0!==n?n:this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];return null!=r&&("string"==typeof r&&(xg(r)||bg(r))?r=parseFloat(r):(i=r,!Lx.find(Kg(i))&&by.test(t)&&(r=$y(e,t))),this.setBaseTarget(e,Qv(r)?r.get():r)),Qv(r)?r.get():r;var i}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;const{initial:n}=this.props;let r;if("string"==typeof n||"object"==typeof n){const i=Lm(this.props,n,null===(t=this.presenceContext)||void 0===t?void 0:t.custom);i&&(r=i[e])}if(n&&void 0!==r)return r;const i=this.getBaseTargetFromProps(this.props,e);return void 0===i||Qv(i)?void 0!==this.initialValues[e]&&void 0===r?void 0:this.baseTarget[e]:i}on(e,t){return this.events[e]||(this.events[e]=new Kv),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class zx extends Nx{constructor(){super(...arguments),this.KeyframeResolver=_y}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;Qv(e)&&(this.childSubscription=e.on("change",(e=>{this.current&&(this.current.textContent=`${e}`)})))}}class Bx extends zx{constructor(){super(...arguments),this.type="html",this.renderInstance=lx}readValueFromInstance(e,t){if(Um.has(t)){const e=Py(t);return e&&e.default||0}{const r=(n=e,window.getComputedStyle(n)),i=(Eg(t)?r.getPropertyValue(t):r[t])||0;return"string"==typeof i?i.trim():i}var n}measureInstanceViewportBox(e,{transformPagePoint:t}){return n=t,function({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}(function(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),n));var n}build(e,t,n){bx(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return px(e,t,n)}}class Ux extends zx{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=bb}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(Um.has(t)){const e=Py(t);return e&&e.default||0}return t=ux.has(t)?t:Yv(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return hx(e,t,n)}build(e,t,n){kx(e,t,this.isSVGTag,n.transformTemplate)}renderInstance(e,t,n,r){cx(e,t,0,r)}mount(e){this.isSVGTag=Sx(e.tagName),super.mount(e)}}const Wx=function(e){if("undefined"==typeof Proxy)return e;const t=new Map;return new Proxy(((...t)=>("production"!==process.env.NODE_ENV&&_m(!1,"motion() is deprecated. Use motion.create() instead."),e(...t))),{get:(n,r)=>"create"===r?e:(t.has(r)||t.set(r,e(r)),t.get(r))})}((function(e,{forwardMotionProps:t}={forwardMotionProps:!1}){return ix({...sx(e)?Dx:jx,preloadedFeatures:qx,useRender:Ax(t),createVisualElement:Kx,Component:e})}));var qx,Kx;function Hx({children:n,features:r,strict:i=!1}){const[,a]=t.useState(!Zx(r)),o=t.useRef(void 0);if(!Zx(r)){const{renderer:e,...t}=r;o.current=e,nx(t)}return t.useEffect((()=>{Zx(r)&&r().then((({renderer:e,...t})=>{nx(t),o.current=e,a(!0)}))}),[]),e.jsxRuntimeExports.jsx(Hb.Provider,{value:{renderer:o.current,strict:i},children:n})}function Zx(e){return"function"==typeof e}const Gx={renderer:(e,n)=>sx(e)?new Ux(n):new Bx(n,{allowProjection:e!==t.Fragment}),...mb,...Bb},Yx=({customBadge:t,description:r,icon:i,onClick:a,requiresUpgrade:o=!1,title:s})=>{const l=n.useTheme();return e.jsxRuntimeExports.jsxs(c,{bgColor:l.palette.white,bgColorHover:l.palette.gray[100],cursor:"pointer",display:"flex",gap:.5,onClick:a,px:1.25,py:1,width:"100%",children:[e.jsxRuntimeExports.jsx(c,{alignItems:"center",bgColor:l.palette.gray[300],borderRadius:l.spacing[.25],display:"flex",height:"24px",justify:"center",width:"24px",children:e.jsxRuntimeExports.jsx(e.Icon,{icon:i,iconColor:l.palette.gray[800],iconSize:"xxs",ml:.5,mr:.5})}),e.jsxRuntimeExports.jsxs(c,{children:[e.jsxRuntimeExports.jsxs(c,{alignItems:"center",display:"inline-flex",gap:.5,children:[e.jsxRuntimeExports.jsx(e.Text,{color:l.palette.gray[800],size:"sm",children:s}),o?e.jsxRuntimeExports.jsx(Ff,{text:"Upgrade"}):void 0,t]}),e.jsxRuntimeExports.jsx(e.Text,{color:l.palette.gray[400],size:"xs",children:r})]})]})},Jx=n.styled(Wx.div)`
|
|
576
|
+
`,Vm=new Set;function Nm(e,t,n){e||Vm.has(t)||Vm.add(t)}function zm(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}const Bm=e=>Array.isArray(e);function Um(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function Wm(e){return"string"==typeof e||Array.isArray(e)}function qm(e){const t=[{},{}];return null==e||e.values.forEach(((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()})),t}function Km(e,t,n,r){if("function"==typeof t){const[i,a]=qm(r);t=t(void 0!==n?n:e.custom,i,a)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){const[i,a]=qm(r);t=t(void 0!==n?n:e.custom,i,a)}return t}function Hm(e,t,n){const r=e.getProps();return Km(r,t,void 0!==n?n:r.custom,e)}const Zm=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Gm=["initial",...Zm],Ym=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Jm=new Set(Ym),Xm=e=>1e3*e,Qm=e=>e/1e3,eg={type:"spring",stiffness:500,damping:25,restSpeed:10},tg={type:"keyframes",duration:.8},ng={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},rg=(e,{keyframes:t})=>t.length>2?tg:Jm.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:eg:ng;function ig(e,t){return e?e[t]||e.default||e:void 0}const ag=e=>null!==e;function og(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(ag),a=t&&"loop"!==n&&t%2==1?0:i.length-1;return a&&void 0!==r?r:i[a]}const sg=e=>e;let lg=sg,ug=sg;"production"!==process.env.NODE_ENV&&(lg=(e,t)=>{},ug=(e,t)=>{if(!e)throw new Error(t)});const cg=["read","resolveKeyframes","update","preRender","render","postRender"];function dg(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=cg.reduce(((e,t)=>(e[t]=function(e){let t=new Set,n=new Set,r=!1,i=!1;const a=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function s(t){a.has(t)&&(l.schedule(t),e()),t(o)}const l={schedule:(e,i=!1,o=!1)=>{const s=o&&r?t:n;return i&&a.add(e),s.has(e)||s.add(e),e},cancel:e=>{n.delete(e),a.delete(e)},process:e=>{o=e,r?i=!0:(r=!0,[t,n]=[n,t],t.forEach(s),t.clear(),r=!1,i&&(i=!1,l.process(e)))}};return l}(a),e)),{}),{read:s,resolveKeyframes:l,update:u,preRender:c,render:d,postRender:p}=o,h=()=>{const a=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(a-i.timestamp,40),1),i.timestamp=a,i.isProcessing=!0,s.process(i),l.process(i),u.process(i),c.process(i),d.process(i),p.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(h))};return{schedule:cg.reduce(((t,a)=>{const s=o[a];return t[a]=(t,a=!1,o=!1)=>(n||(n=!0,r=!0,i.isProcessing||e(h)),s.schedule(t,a,o)),t}),{}),cancel:e=>{for(let t=0;t<cg.length;t++)o[cg[t]].cancel(e)},state:i,steps:o}}const{schedule:pg,cancel:hg,state:fg,steps:mg}=dg("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:sg,!0),gg=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function yg(e,t,n,r){if(e===t&&n===r)return sg;return i=>0===i||1===i?i:gg(function(e,t,n,r,i){let a,o,s=0;do{o=t+(n-t)/2,a=gg(o,r,i)-e,a>0?n=o:t=o}while(Math.abs(a)>1e-7&&++s<12);return o}(i,0,1,e,n),t,r)}const vg=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,bg=e=>t=>1-e(1-t),xg=yg(.33,1.53,.69,.99),wg=bg(xg),Eg=vg(wg),kg=e=>(e*=2)<1?.5*wg(e):.5*(2-Math.pow(2,-10*(e-1))),Sg=e=>1-Math.sin(Math.acos(e)),Dg=bg(Sg),jg=vg(Sg),Cg=e=>/^0[^.\s]+$/u.test(e),Rg=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Pg=e=>t=>"string"==typeof t&&t.startsWith(e),$g=Pg("--"),Tg=Pg("var(--"),_g=e=>!!Tg(e)&&Mg.test(e.split("/*")[0].trim()),Mg=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Ag=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Ig(e,t,n=1){ug(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=function(e){const t=Ag.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${null!=n?n:r}`,i]}(e);if(!r)return;const a=window.getComputedStyle(t).getPropertyValue(r);if(a){const e=a.trim();return Rg(e)?parseFloat(e):e}return _g(i)?Ig(i,t,n+1):i}const Og=(e,t,n)=>n>t?t:n<e?e:n,Fg={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},Lg={...Fg,transform:e=>Og(0,1,e)},Vg={...Fg,default:1},Ng=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),zg=Ng("deg"),Bg=Ng("%"),Ug=Ng("px"),Wg=Ng("vh"),qg=Ng("vw"),Kg={...Bg,parse:e=>Bg.parse(e)/100,transform:e=>Bg.transform(100*e)},Hg=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Zg=e=>e===Fg||e===Ug,Gg=(e,t)=>parseFloat(e.split(", ")[t]),Yg=(e,t)=>(n,{transform:r})=>{if("none"===r||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return Gg(i[1],t);{const t=r.match(/^matrix\((.+)\)$/u);return t?Gg(t[1],e):0}},Jg=new Set(["x","y","z"]),Xg=Ym.filter((e=>!Jg.has(e))),Qg={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:Yg(4,13),y:Yg(5,14)};Qg.translateX=Qg.x,Qg.translateY=Qg.y;const ey=e=>t=>t.test(e),ty=[Fg,Ug,Bg,zg,qg,Wg,{test:e=>"auto"===e,parse:e=>e}],ny=e=>ty.find(ey(e)),ry=new Set;let iy=!1,ay=!1;function oy(){if(ay){const e=Array.from(ry).filter((e=>e.needsMeasurement)),t=new Set(e.map((e=>e.element))),n=new Map;t.forEach((e=>{const t=function(e){const t=[];return Xg.forEach((n=>{const r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))})),t}(e);t.length&&(n.set(e,t),e.render())})),e.forEach((e=>e.measureInitialState())),t.forEach((e=>{e.render();const t=n.get(e);t&&t.forEach((([t,n])=>{var r;null===(r=e.getValue(t))||void 0===r||r.set(n)}))})),e.forEach((e=>e.measureEndState())),e.forEach((e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)}))}ay=!1,iy=!1,ry.forEach((e=>e.complete())),ry.clear()}function sy(){ry.forEach((e=>{e.readKeyframes(),e.needsMeasurement&&(ay=!0)}))}class ly{constructor(e,t,n,r,i,a=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(ry.add(this),iy||(iy=!0,pg.read(sy),pg.resolveKeyframes(oy))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;for(let i=0;i<e.length;i++)if(null===e[i])if(0===i){const i=null==r?void 0:r.get(),a=e[e.length-1];if(void 0!==i)e[0]=i;else if(n&&t){const r=n.readValue(t,a);null!=r&&(e[0]=r)}void 0===e[0]&&(e[0]=a),r&&void 0===i&&r.set(e[0])}else e[i]=e[i-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),ry.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,ry.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const uy=e=>Math.round(1e5*e)/1e5,cy=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,dy=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,py=(e,t)=>n=>Boolean("string"==typeof n&&dy.test(n)&&n.startsWith(e)||t&&!(null==n)&&Object.prototype.hasOwnProperty.call(n,t)),hy=(e,t,n)=>r=>{if("string"!=typeof r)return r;const[i,a,o,s]=r.match(cy);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:void 0!==s?parseFloat(s):1}},fy={...Fg,transform:e=>Math.round(Og(0,255,e))},my={test:py("rgb","red"),parse:hy("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+fy.transform(e)+", "+fy.transform(t)+", "+fy.transform(n)+", "+uy(Lg.transform(r))+")"},gy={test:py("#"),parse:function(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}},transform:my.transform},yy={test:py("hsl","hue"),parse:hy("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Bg.transform(uy(t))+", "+Bg.transform(uy(n))+", "+uy(Lg.transform(r))+")"},vy={test:e=>my.test(e)||gy.test(e)||yy.test(e),parse:e=>my.test(e)?my.parse(e):yy.test(e)?yy.parse(e):gy.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?my.transform(e):yy.transform(e)},by=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,xy="number",wy="color",Ey=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function ky(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let a=0;const o=t.replace(Ey,(e=>(vy.test(e)?(r.color.push(a),i.push(wy),n.push(vy.parse(e))):e.startsWith("var(")?(r.var.push(a),i.push("var"),n.push(e)):(r.number.push(a),i.push(xy),n.push(parseFloat(e))),++a,"${}"))).split("${}");return{values:n,split:o,indexes:r,types:i}}function Sy(e){return ky(e).values}function Dy(e){const{split:t,types:n}=ky(e),r=t.length;return e=>{let i="";for(let a=0;a<r;a++)if(i+=t[a],void 0!==e[a]){const t=n[a];i+=t===xy?uy(e[a]):t===wy?vy.transform(e[a]):e[a]}return i}}const jy=e=>"number"==typeof e?0:e,Cy={test:function(e){var t,n;return isNaN(e)&&"string"==typeof e&&((null===(t=e.match(cy))||void 0===t?void 0:t.length)||0)+((null===(n=e.match(by))||void 0===n?void 0:n.length)||0)>0},parse:Sy,createTransformer:Dy,getAnimatableNone:function(e){const t=Sy(e);return Dy(e)(t.map(jy))}},Ry=new Set(["brightness","contrast","saturate","opacity"]);function Py(e){const[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(cy)||[];if(!r)return e;const i=n.replace(r,"");let a=Ry.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+i+")"}const $y=/\b([a-z-]*)\(.*?\)/gu,Ty={...Cy,getAnimatableNone:e=>{const t=e.match($y);return t?t.map(Py).join(" "):e}},_y={borderWidth:Ug,borderTopWidth:Ug,borderRightWidth:Ug,borderBottomWidth:Ug,borderLeftWidth:Ug,borderRadius:Ug,radius:Ug,borderTopLeftRadius:Ug,borderTopRightRadius:Ug,borderBottomRightRadius:Ug,borderBottomLeftRadius:Ug,width:Ug,maxWidth:Ug,height:Ug,maxHeight:Ug,top:Ug,right:Ug,bottom:Ug,left:Ug,padding:Ug,paddingTop:Ug,paddingRight:Ug,paddingBottom:Ug,paddingLeft:Ug,margin:Ug,marginTop:Ug,marginRight:Ug,marginBottom:Ug,marginLeft:Ug,backgroundPositionX:Ug,backgroundPositionY:Ug},My={rotate:zg,rotateX:zg,rotateY:zg,rotateZ:zg,scale:Vg,scaleX:Vg,scaleY:Vg,scaleZ:Vg,skew:zg,skewX:zg,skewY:zg,distance:Ug,translateX:Ug,translateY:Ug,translateZ:Ug,x:Ug,y:Ug,z:Ug,perspective:Ug,transformPerspective:Ug,opacity:Lg,originX:Kg,originY:Kg,originZ:Ug},Ay={...Fg,transform:Math.round},Iy={..._y,...My,zIndex:Ay,size:Ug,fillOpacity:Lg,strokeOpacity:Lg,numOctaves:Ay},Oy={...Iy,color:vy,backgroundColor:vy,outlineColor:vy,fill:vy,stroke:vy,borderColor:vy,borderTopColor:vy,borderRightColor:vy,borderBottomColor:vy,borderLeftColor:vy,filter:Ty,WebkitFilter:Ty},Fy=e=>Oy[e];function Ly(e,t){let n=Fy(e);return n!==Ty&&(n=Cy),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Vy=new Set(["auto","none","0"]);class Ny extends ly{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let s=0;s<e.length;s++){let n=e[s];if("string"==typeof n&&(n=n.trim(),_g(n))){const r=Ig(n,t.current);void 0!==r&&(e[s]=r),s===e.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!Hg.has(n)||2!==e.length)return;const[r,i]=e,a=ny(r),o=ny(i);if(a!==o)if(Zg(a)&&Zg(o))for(let s=0;s<e.length;s++){const t=e[s];"string"==typeof t&&(e[s]=parseFloat(t))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:t}=this,n=[];for(let i=0;i<e.length;i++)("number"==typeof(r=e[i])?0===r:null===r||"none"===r||"0"===r||Cg(r))&&n.push(i);var r;n.length&&function(e,t,n){let r,i=0;for(;i<e.length&&!r;){const t=e[i];"string"==typeof t&&!Vy.has(t)&&ky(t).values.length&&(r=e[i]),i++}if(r&&n)for(const a of t)e[a]=Ly(n,r)}(e,n,t)}measureInitialState(){const{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Qg[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;const r=t[t.length-1];void 0!==r&&e.getValue(n,r).jump(r,!1)}measureEndState(){var e;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const i=t.getValue(n);i&&i.jump(this.measuredOrigin,!1);const a=r.length-1,o=r[a];r[a]=Qg[n](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==o&&void 0===this.finalKeyframe&&(this.finalKeyframe=o),(null===(e=this.removedTransforms)||void 0===e?void 0:e.length)&&this.removedTransforms.forEach((([e,n])=>{t.getValue(e).set(n)})),this.resolveNoneKeyframes()}}function zy(e){return"function"==typeof e}let By;function Uy(){By=void 0}const Wy={now:()=>(void 0===By&&Wy.set(fg.isProcessing?fg.timestamp:performance.now()),By),set:e=>{By=e,queueMicrotask(Uy)}},qy=(e,t)=>!("zIndex"===t||"number"!=typeof e&&!Array.isArray(e)&&("string"!=typeof e||!Cy.test(e)&&"0"!==e||e.startsWith("url(")));class Ky{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:a="loop",...o}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Wy.now(),this.options={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:a,...o},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(sy(),oy()),this._resolved}onKeyframesResolved(e,t){this.resolvedAt=Wy.now(),this.hasAttemptedResolve=!0;const{name:n,type:r,velocity:i,delay:a,onComplete:o,onUpdate:s,isGenerator:l}=this.options;if(!l&&!function(e,t,n,r){const i=e[0];if(null===i)return!1;if("display"===t||"visibility"===t)return!0;const a=e[e.length-1],o=qy(i,t),s=qy(a,t);return lg(o===s,`You are trying to animate ${t} from "${i}" to "${a}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${a} via the \`style\` property.`),!(!o||!s)&&(function(e){const t=e[0];if(1===e.length)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}(e)||("spring"===n||zy(n))&&r)}(e,n,r,i)){if(!a)return null==s||s(og(e,this.options,t)),null==o||o(),void this.resolveFinishedPromise();this.options.duration=0}const u=this.initPlayback(e,t);!1!==u&&(this._resolved={keyframes:e,finalKeyframe:t,...u},this.onPostResolved())}onPostResolved(){}then(e,t){return this.currentFinishedPromise.then(e,t)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise((e=>{this.resolveFinishedPromise=e}))}}const Hy=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},Zy=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let a=0;a<i;a++)r+=e(Hy(0,i-1,a))+", ";return`linear(${r.substring(0,r.length-2)})`};function Gy(e,t){return t?e*(1e3/t):0}function Yy(e,t,n){const r=Math.max(t-5,0);return Gy(n-e(r),t-r)}const Jy=.01,Xy=2,Qy=.005,ev=.5;const tv=12;function nv(e,t){return e*Math.sqrt(1-t*t)}const rv=2e4;function iv(e){let t=0,n=e.next(t);for(;!n.done&&t<rv;)t+=50,n=e.next(t);return t>=rv?1/0:t}const av=["duration","bounce"],ov=["stiffness","damping","mass"];function sv(e,t){return t.some((t=>void 0!==e[t]))}function lv(e=.3,t=.3){const n="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],s={done:!1,value:a},{stiffness:l,damping:u,mass:c,duration:d,velocity:p,isResolvedFromDuration:h}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!sv(e,ov)&&sv(e,av))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(1.2*n),i=r*r,a=2*Og(.05,1,1-e.bounce)*Math.sqrt(i);t={...t,mass:1,stiffness:i,damping:a}}else{const n=function({duration:e=800,bounce:t=.3,velocity:n=0,mass:r=1}){let i,a;lg(e<=Xm(10),"Spring duration must be 10 seconds or less");let o=1-t;o=Og(.05,1,o),e=Og(.01,10,Qm(e)),o<1?(i=t=>{const r=t*o,i=r*e;return.001-(r-n)/nv(t,o)*Math.exp(-i)},a=t=>{const r=t*o*e,a=r*n+n,s=Math.pow(o,2)*Math.pow(t,2)*e,l=Math.exp(-r),u=nv(Math.pow(t,2),o);return(.001-i(t)>0?-1:1)*((a-s)*l)/u}):(i=t=>Math.exp(-t*e)*((t-n)*e+1)-.001,a=t=>Math.exp(-t*e)*(e*e*(n-t)));const s=function(e,t,n){let r=n;for(let i=1;i<tv;i++)r-=e(r)/t(r);return r}(i,a,5/e);if(e=Xm(e),isNaN(s))return{stiffness:100,damping:10,duration:e};{const t=Math.pow(s,2)*r;return{stiffness:t,damping:2*o*Math.sqrt(r*t),duration:e}}}(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}({...n,velocity:-Qm(n.velocity||0)}),f=p||0,m=u/(2*Math.sqrt(l*c)),g=o-a,y=Qm(Math.sqrt(l/c)),v=Math.abs(g)<5;let b;if(r||(r=v?Jy:Xy),i||(i=v?Qy:ev),m<1){const e=nv(y,m);b=t=>{const n=Math.exp(-m*y*t);return o-n*((f+m*y*g)/e*Math.sin(e*t)+g*Math.cos(e*t))}}else if(1===m)b=e=>o-Math.exp(-y*e)*(g+(f+y*g)*e);else{const e=y*Math.sqrt(m*m-1);b=t=>{const n=Math.exp(-m*y*t),r=Math.min(e*t,300);return o-n*((f+m*y*g)*Math.sinh(r)+e*g*Math.cosh(r))/e}}const x={calculatedDuration:h&&d||null,next:e=>{const t=b(e);if(h)s.done=e>=d;else{let n=0;m<1&&(n=0===e?Xm(f):Yy(b,e,t));const a=Math.abs(n)<=r,l=Math.abs(o-t)<=i;s.done=a&&l}return s.value=s.done?o:t,s},toString:()=>{const e=Math.min(iv(x),rv),t=Zy((t=>x.next(e*t).value),e,30);return e+"ms "+t}};return x}function uv({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:l,restDelta:u=.5,restSpeed:c}){const d=e[0],p={done:!1,value:d},h=e=>void 0===s?l:void 0===l||Math.abs(s-e)<Math.abs(l-e)?s:l;let f=n*t;const m=d+f,g=void 0===o?m:o(m);g!==m&&(f=g-d);const y=e=>-f*Math.exp(-e/r),v=e=>g+y(e),b=e=>{const t=y(e),n=v(e);p.done=Math.abs(t)<=u,p.value=p.done?g:n};let x,w;const E=e=>{var t;t=p.value,(void 0!==s&&t<s||void 0!==l&&t>l)&&(x=e,w=lv({keyframes:[p.value,h(p.value)],velocity:Yy(v,e,p.value),damping:i,stiffness:a,restDelta:u,restSpeed:c}))};return E(0),{calculatedDuration:null,next:e=>{let t=!1;return w||void 0!==x||(t=!0,b(e),E(e)),void 0!==x&&e>=x?w.next(e-x):(!t&&b(e),p)}}}const cv=yg(.42,0,1,1),dv=yg(0,0,.58,1),pv=yg(.42,0,.58,1),hv=e=>Array.isArray(e)&&"number"==typeof e[0],fv={linear:sg,easeIn:cv,easeInOut:pv,easeOut:dv,circIn:Sg,circInOut:jg,circOut:Dg,backIn:wg,backInOut:Eg,backOut:xg,anticipate:kg},mv=e=>{if(hv(e)){ug(4===e.length,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return yg(t,n,r,i)}return"string"==typeof e?(ug(void 0!==fv[e],`Invalid easing type '${e}'`),fv[e]):e},gv=(e,t)=>n=>t(e(n)),yv=(...e)=>e.reduce(gv),vv=(e,t,n)=>e+(t-e)*n;function bv(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function xv(e,t){return n=>n>0?t:e}const wv=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Ev=[gy,my,yy];function kv(e){const t=(n=e,Ev.find((e=>e.test(n))));var n;if(lg(Boolean(t),`'${e}' is not an animatable color. Use the equivalent color code instead.`),!Boolean(t))return!1;let r=t.parse(e);return t===yy&&(r=function({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let i=0,a=0,o=0;if(t/=100){const r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=bv(s,r,e+1/3),a=bv(s,r,e),o=bv(s,r,e-1/3)}else i=a=o=n;return{red:Math.round(255*i),green:Math.round(255*a),blue:Math.round(255*o),alpha:r}}(r)),r}const Sv=(e,t)=>{const n=kv(e),r=kv(t);if(!n||!r)return xv(e,t);const i={...n};return e=>(i.red=wv(n.red,r.red,e),i.green=wv(n.green,r.green,e),i.blue=wv(n.blue,r.blue,e),i.alpha=vv(n.alpha,r.alpha,e),my.transform(i))},Dv=new Set(["none","hidden"]);function jv(e,t){return n=>vv(e,t,n)}function Cv(e){return"number"==typeof e?jv:"string"==typeof e?_g(e)?xv:vy.test(e)?Sv:$v:Array.isArray(e)?Rv:"object"==typeof e?vy.test(e)?Sv:Pv:xv}function Rv(e,t){const n=[...e],r=n.length,i=e.map(((e,n)=>Cv(e)(e,t[n])));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function Pv(e,t){const n={...e,...t},r={};for(const i in n)void 0!==e[i]&&void 0!==t[i]&&(r[i]=Cv(e[i])(e[i],t[i]));return e=>{for(const t in r)n[t]=r[t](e);return n}}const $v=(e,t)=>{const n=Cy.createTransformer(t),r=ky(e),i=ky(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Dv.has(e)&&!i.values.length||Dv.has(t)&&!r.values.length?(a=e,o=t,Dv.has(a)?e=>e<=0?a:o:e=>e>=1?o:a):yv(Rv(function(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let a=0;a<t.values.length;a++){const o=t.types[a],s=e.indexes[o][i[o]],l=null!==(n=e.values[s])&&void 0!==n?n:0;r[a]=l,i[o]++}return r}(r,i),i.values),n):(lg(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),xv(e,t));var a,o};function Tv(e,t,n){return"number"==typeof e&&"number"==typeof t&&"number"==typeof n?vv(e,t,n):Cv(e)(e,t)}function _v({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=(l=r,Array.isArray(l)&&"number"!=typeof l[0]?r.map(mv):mv(r)),a={done:!1,value:t[0]},o=function(e,t){return e.map((e=>e*t))}(n&&n.length===t.length?n:function(e){const t=[0];return function(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Hy(0,t,r);e.push(vv(n,1,i))}}(t,e.length-1),t}(t),e),s=function(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const a=e.length;if(ug(a===t.length,"Both input and output ranges must be the same length"),1===a)return()=>t[0];if(2===a&&e[0]===e[1])return()=>t[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const o=function(e,t,n){const r=[],i=n||Tv,a=e.length-1;for(let o=0;o<a;o++){let n=i(e[o],e[o+1]);if(t){const e=Array.isArray(t)?t[o]||sg:t;n=yv(e,n)}r.push(n)}return r}(t,r,i),s=o.length,l=t=>{let n=0;if(s>1)for(;n<e.length-2&&!(t<e[n+1]);n++);const r=Hy(e[n],e[n+1],t);return o[n](r)};return n?t=>l(Og(e[0],e[a-1],t)):l}(o,t,{ease:Array.isArray(i)?i:(u=t,c=i,u.map((()=>c||pv)).splice(0,u.length-1))});var l,u,c;return{calculatedDuration:e,next:t=>(a.value=s(t),a.done=t>=e,a)}}const Mv=e=>{const t=({timestamp:t})=>e(t);return{start:()=>pg.update(t,!0),stop:()=>hg(t),now:()=>fg.isProcessing?fg.timestamp:Wy.now()}},Av={decay:uv,inertia:uv,tween:_v,keyframes:_v,spring:lv},Iv=e=>e/100;class Ov extends Ky{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();const{onStop:e}=this.options;e&&e()};const{name:t,motionValue:n,element:r,keyframes:i}=this.options,a=(null==r?void 0:r.KeyframeResolver)||ly;this.resolver=new a(i,((e,t)=>this.onKeyframesResolved(e,t)),t,n,r),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){const{type:t="keyframes",repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=this.options,o=zy(t)?t:Av[t]||_v;let s,l;o!==_v&&"number"!=typeof e[0]&&("production"!==process.env.NODE_ENV&&ug(2===e.length,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${e}`),s=yv(Iv,Tv(e[0],e[1])),e=[0,100]);const u=o({...this.options,keyframes:e});"mirror"===i&&(l=o({...this.options,keyframes:[...e].reverse(),velocity:-a})),null===u.calculatedDuration&&(u.calculatedDuration=iv(u));const{calculatedDuration:c}=u,d=c+r;return{generator:u,mirroredGenerator:l,mapPercentToKeyframes:s,calculatedDuration:c,resolvedDuration:d,totalDuration:d*(n+1)-r}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&e?this.state=this.pendingPlayState:this.pause()}tick(e,t=!1){const{resolved:n}=this;if(!n){const{keyframes:e}=this.options;return{done:!0,value:e[e.length-1]}}const{finalKeyframe:r,generator:i,mirroredGenerator:a,mapPercentToKeyframes:o,keyframes:s,calculatedDuration:l,totalDuration:u,resolvedDuration:c}=n;if(null===this.startTime)return i.next(0);const{delay:d,repeat:p,repeatType:h,repeatDelay:f,onUpdate:m}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-u/this.speed,this.startTime)),t?this.currentTime=e:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const g=this.currentTime-d*(this.speed>=0?1:-1),y=this.speed>=0?g<0:g>u;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=u);let v=this.currentTime,b=i;if(p){const e=Math.min(this.currentTime,u)/c;let t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,t=Math.min(t,p+1),Boolean(t%2)&&("reverse"===h?(n=1-n,f&&(n-=f/c)):"mirror"===h&&(b=a)),v=Og(0,1,n)*c}const x=y?{done:!1,value:s[0]}:b.next(v);o&&(x.value=o(x.value));let{done:w}=x;y||null===l||(w=this.speed>=0?this.currentTime>=u:this.currentTime<=0);const E=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return E&&void 0!==r&&(x.value=og(s,this.options,r)),m&&m(x.value),E&&this.finish(),x}get duration(){const{resolved:e}=this;return e?Qm(e.calculatedDuration):0}get time(){return Qm(this.currentTime)}set time(e){e=Xm(e),this.currentTime=e,null!==this.holdTime||0===this.speed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=Qm(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved)return void(this.pendingPlayState="running");if(this.isStopped)return;const{driver:e=Mv,onPlay:t,startTime:n}=this.options;this.driver||(this.driver=e((e=>this.tick(e)))),t&&t();const r=this.driver.now();null!==this.holdTime?this.startTime=r-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=r):this.startTime=null!=n?n:this.calcStartTime(),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;this._resolved?(this.state="paused",this.holdTime=null!==(e=this.currentTime)&&void 0!==e?e:0):this.pendingPlayState="paused"}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}const Fv=new Set(["opacity","clipPath","filter","transform"]);function Lv(e){let t;return()=>(void 0===t&&(t=e()),t)}const Vv={linearEasing:void 0};const Nv=function(e,t){const n=Lv(e);return()=>{var e;return null!==(e=Vv[t])&&void 0!==e?e:n()}}((()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(Qx){return!1}return!0}),"linearEasing");function zv(e){return Boolean("function"==typeof e&&Nv()||!e||"string"==typeof e&&(e in Uv||Nv())||hv(e)||Array.isArray(e)&&e.every(zv))}const Bv=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Uv={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Bv([0,.65,.55,1]),circOut:Bv([.55,0,1,.45]),backIn:Bv([.31,.01,.66,-.59]),backOut:Bv([.33,1.53,.69,.99])};function Wv(e,t){return e?"function"==typeof e&&Nv()?Zy(e,t):hv(e)?Bv(e):Array.isArray(e)?e.map((e=>Wv(e,t)||Uv.easeOut)):Uv[e]:void 0}function qv(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o="loop",ease:s="easeInOut",times:l}={}){const u={[t]:n};l&&(u.offset=l);const c=Wv(s,i);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:r,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:a+1,direction:"reverse"===o?"alternate":"normal"})}function Kv(e,t){e.timeline=t,e.onfinish=null}const Hv=Lv((()=>Object.hasOwnProperty.call(Element.prototype,"animate"))),Zv={anticipate:kg,backInOut:Eg,circInOut:jg};class Gv extends Ky{constructor(e){super(e);const{name:t,motionValue:n,element:r,keyframes:i}=this.options;this.resolver=new Ny(i,((e,t)=>this.onKeyframesResolved(e,t)),t,n,r),this.resolver.scheduleResolve()}initPlayback(e,t){var n;let{duration:r=300,times:i,ease:a,type:o,motionValue:s,name:l,startTime:u}=this.options;if(!(null===(n=s.owner)||void 0===n?void 0:n.current))return!1;var c;if("string"==typeof a&&Nv()&&a in Zv&&(a=Zv[a]),zy((c=this.options).type)||"spring"===c.type||!zv(c.ease)){const{onComplete:t,onUpdate:n,motionValue:s,element:l,...u}=this.options,c=function(e,t){const n=new Ov({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let a=0;for(;!r.done&&a<2e4;)r=n.sample(a),i.push(r.value),a+=10;return{times:void 0,keyframes:i,duration:a-10,ease:"linear"}}(e,u);1===(e=c.keyframes).length&&(e[1]=e[0]),r=c.duration,i=c.times,a=c.ease,o="keyframes"}const d=qv(s.owner.current,l,e,{...this.options,duration:r,times:i,ease:a});return d.startTime=null!=u?u:this.calcStartTime(),this.pendingTimeline?(Kv(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{const{onComplete:n}=this.options;s.set(og(e,this.options,t)),n&&n(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:r,times:i,type:o,ease:a,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:t}=e;return Qm(t)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:t}=e;return Qm(t.currentTime||0)}set time(e){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.currentTime=Xm(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:t}=e;return t.playbackRate}set speed(e){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:t}=e;return t.playState}get startTime(){const{resolved:e}=this;if(!e)return null;const{animation:t}=e;return t.startTime}attachTimeline(e){if(this._resolved){const{resolved:t}=this;if(!t)return sg;const{animation:n}=t;Kv(n,e)}else this.pendingTimeline=e;return sg}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:t}=e;"finished"===t.playState&&this.updateFinishedPromise(),t.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:t}=e;t.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:e}=this;if(!e)return;const{animation:t,keyframes:n,duration:r,type:i,ease:a,times:o}=e;if("idle"===t.playState||"finished"===t.playState)return;if(this.time){const{motionValue:e,onUpdate:t,onComplete:s,element:l,...u}=this.options,c=new Ov({...u,keyframes:n,duration:r,type:i,ease:a,times:o,isGenerator:!0}),d=Xm(this.time);e.setWithVelocity(c.sample(d-10).value,c.sample(d).value,10)}const{onStop:s}=this.options;s&&s(),this.cancel()}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o}=e;return Hv()&&n&&Fv.has(n)&&t&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate&&!r&&"mirror"!==i&&0!==a&&"inertia"!==o}}const Yv=Lv((()=>void 0!==window.ScrollTimeline));class Jv{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}then(e,t){return Promise.all(this.animations).then(e).catch(t)}getAll(e){return this.animations[0][e]}setAll(e,t){for(let n=0;n<this.animations.length;n++)this.animations[n][e]=t}attachTimeline(e,t){const n=this.animations.map((n=>Yv()&&n.attachTimeline?n.attachTimeline(e):t(n)));return()=>{n.forEach(((e,t)=>{e&&e(),this.animations[t].stop()}))}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let t=0;t<this.animations.length;t++)e=Math.max(e,this.animations[t].duration);return e}runAll(e){this.animations.forEach((t=>t[e]()))}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}const Xv=(e,t,n,r={},i,a)=>o=>{const s=ig(r,e)||{},l=s.delay||r.delay||0;let{elapsed:u=0}=r;u-=Xm(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-u,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};(function({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:a,repeatType:o,repeatDelay:s,from:l,elapsed:u,...c}){return!!Object.keys(c).length})(s)||(c={...c,...rg(e,c)}),c.duration&&(c.duration=Xm(c.duration)),c.repeatDelay&&(c.repeatDelay=Xm(c.repeatDelay)),void 0!==c.from&&(c.keyframes[0]=c.from);let d=!1;if((!1===c.type||0===c.duration&&!c.repeatDelay)&&(c.duration=0,0===c.delay&&(d=!0)),d&&!a&&void 0!==t.get()){const e=og(c.keyframes,s);if(void 0!==e)return pg.update((()=>{c.onUpdate(e),c.onComplete()})),new Jv([])}return!a&&Gv.supports(c)?new Gv(c):new Ov(c)},Qv=e=>Bm(e)?e[e.length-1]||0:e;class eb{constructor(){this.subscriptions=[]}add(e){var t,n;return t=this.subscriptions,n=e,-1===t.indexOf(n)&&t.push(n),()=>function(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}(this.subscriptions,e)}notify(e,t,n){const r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){const r=this.subscriptions[i];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}class tb{constructor(e,t={}){this.version="11.15.0",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(e,t=!0)=>{const n=Wy.now();this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){var t;this.current=e,this.updatedAt=Wy.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=(t=this.current,!isNaN(parseFloat(t))))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return"production"!==process.env.NODE_ENV&&Nm(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new eb);const n=this.events[e].add(t);return"change"===e?()=>{n(),pg.read((()=>{this.events.change.getSize()||this.stop()}))}:n}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=Wy.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;const t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return Gy(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise((t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()})).then((()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()}))}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function nb(e,t){return new tb(e,t)}function rb(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,nb(n))}const ib=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),ab="data-"+ib("framerAppearId");function ob(e){return e.props[ab]}const sb=e=>Boolean(e&&e.getVelocity);function lb(e,t){const n=e.getValue("willChange");if(r=n,Boolean(sb(r)&&r.add))return n.add(t);var r}function ub({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}function cb(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var a;let{transition:o=e.getDefaultTransition(),transitionEnd:s,...l}=t;r&&(o=r);const u=[],c=i&&e.animationState&&e.animationState.getState()[i];for(const d in l){const t=e.getValue(d,null!==(a=e.latestValues[d])&&void 0!==a?a:null),r=l[d];if(void 0===r||c&&ub(c,d))continue;const i={delay:n,...ig(o||{},d)};let s=!1;if(window.MotionHandoffAnimation){const t=ob(e);if(t){const e=window.MotionHandoffAnimation(t,d,pg);null!==e&&(i.startTime=e,s=!0)}}lb(e,d),t.start(Xv(d,t,r,e.shouldReduceMotion&&Jm.has(d)?{type:!1}:i,e,s));const p=t.animation;p&&u.push(p)}return s&&Promise.all(u).then((()=>{pg.update((()=>{s&&function(e,t){const n=Hm(e,t);let{transitionEnd:r={},transition:i={},...a}=n||{};a={...a,...r};for(const o in a)rb(e,o,Qv(a[o]))}(e,s)}))})),u}function db(e,t,n={}){var r;const i=Hm(e,t,"exit"===n.type?null===(r=e.presenceContext)||void 0===r?void 0:r.custom:void 0);let{transition:a=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(a=n.transitionOverride);const o=i?()=>Promise.all(cb(e,i,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(r=0)=>{const{delayChildren:i=0,staggerChildren:o,staggerDirection:s}=a;return function(e,t,n=0,r=0,i=1,a){const o=[],s=(e.variantChildren.size-1)*r,l=1===i?(e=0)=>e*r:(e=0)=>s-e*r;return Array.from(e.variantChildren).sort(pb).forEach(((e,r)=>{e.notify("AnimationStart",t),o.push(db(e,t,{...a,delay:n+l(r)}).then((()=>e.notify("AnimationComplete",t))))})),Promise.all(o)}(e,t,i+r,o,s,n)}:()=>Promise.resolve(),{when:l}=a;if(l){const[e,t]="beforeChildren"===l?[o,s]:[s,o];return e().then((()=>t()))}return Promise.all([o(),s(n.delay)])}function pb(e,t){return e.sortNodePosition(t)}const hb=Gm.length;function fb(e){if(!e)return;if(!e.isControllingVariants){const t=e.parent&&fb(e.parent)||{};return void 0!==e.props.initial&&(t.initial=e.props.initial),t}const t={};for(let n=0;n<hb;n++){const r=Gm[n],i=e.props[r];(Wm(i)||!1===i)&&(t[r]=i)}return t}const mb=[...Zm].reverse(),gb=Zm.length;function yb(e){let t=function(e){return t=>Promise.all(t.map((({animation:t,options:n})=>function(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t)){const i=t.map((t=>db(e,t,n)));r=Promise.all(i)}else if("string"==typeof t)r=db(e,t,n);else{const i="function"==typeof t?Hm(e,t,n.custom):t;r=Promise.all(cb(e,i,n))}return r.then((()=>{e.notify("AnimationComplete",t)}))}(e,t,n))))}(e),n=xb(),r=!0;const i=t=>(n,r)=>{var i;const a=Hm(e,r,"exit"===t?null===(i=e.presenceContext)||void 0===i?void 0:i.custom:void 0);if(a){const{transition:e,transitionEnd:t,...r}=a;n={...n,...r,...t}}return n};function a(a){const{props:o}=e,s=fb(e.parent)||{},l=[],u=new Set;let c={},d=1/0;for(let t=0;t<gb;t++){const p=mb[t],h=n[p],f=void 0!==o[p]?o[p]:s[p],m=Wm(f),g=p===a?h.isActive:null;!1===g&&(d=t);let y=f===s[p]&&f!==o[p]&&m;if(y&&r&&e.manuallyAnimateOnMount&&(y=!1),h.protectedKeys={...c},!h.isActive&&null===g||!f&&!h.prevProp||zm(f)||"boolean"==typeof f)continue;const v=vb(h.prevProp,f);let b=v||p===a&&h.isActive&&!y&&m||t>d&&m,x=!1;const w=Array.isArray(f)?f:[f];let E=w.reduce(i(p),{});!1===g&&(E={});const{prevResolvedValues:k={}}=h,S={...k,...E},D=t=>{b=!0,u.has(t)&&(x=!0,u.delete(t)),h.needsAnimating[t]=!0;const n=e.getValue(t);n&&(n.liveStyle=!1)};for(const e in S){const t=E[e],n=k[e];if(c.hasOwnProperty(e))continue;let r=!1;r=Bm(t)&&Bm(n)?!Um(t,n):t!==n,r?null!=t?D(e):u.add(e):void 0!==t&&u.has(e)?D(e):h.protectedKeys[e]=!0}h.prevProp=f,h.prevResolvedValues=E,h.isActive&&(c={...c,...E}),r&&e.blockInitialAnimation&&(b=!1),b&&(!y||!v||x)&&l.push(...w.map((e=>({animation:e,options:{type:p}}))))}if(u.size){const t={};u.forEach((n=>{const r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=null!=r?r:null})),l.push({animation:t})}let p=Boolean(l.length);return!r||!1!==o.initial&&o.initial!==o.animate||e.manuallyAnimateOnMount||(p=!1),r=!1,p?t(l):Promise.resolve()}return{animateChanges:a,setActive:function(t,r){var i;if(n[t].isActive===r)return Promise.resolve();null===(i=e.variantChildren)||void 0===i||i.forEach((e=>{var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)})),n[t].isActive=r;const o=a(t);for(const e in n)n[e].protectedKeys={};return o},setAnimateFunction:function(n){t=n(e)},getState:()=>n,reset:()=>{n=xb(),r=!0}}}function vb(e,t){return"string"==typeof t?t!==e:!!Array.isArray(t)&&!Um(t,e)}function bb(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function xb(){return{animate:bb(!0),whileInView:bb(),whileHover:bb(),whileTap:bb(),whileDrag:bb(),whileFocus:bb(),exit:bb()}}class wb{constructor(e){this.isMounted=!1,this.node=e}update(){}}let Eb=0;const kb={animation:{Feature:class extends wb{constructor(e){super(e),e.animationState||(e.animationState=yb(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();zm(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),null===(e=this.unmountControls)||void 0===e||e.call(this)}}},exit:{Feature:class extends wb{constructor(){super(...arguments),this.id=Eb++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;const r=this.node.animationState.setActive("exit",!e);t&&!e&&r.then((()=>t(this.id)))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}}};function Sb(e){return{point:{x:e.pageX,y:e.pageY}}}function Db(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function jb(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}const Cb=()=>({x:{min:0,max:0},y:{min:0,max:0}}),Rb=t.createContext(null),Pb=t.createContext({}),$b=t.createContext({}),Tb={},{schedule:_b,cancel:Mb}=dg(queueMicrotask,!1);function Ab(e){const t=sb(e)?e.get():e;return n=t,Boolean(n&&"object"==typeof n&&n.mix&&n.toValue)?t.toValue():t;var n}function Ib(e,t){const n=function(e){if(e instanceof Element)return[e];if("string"==typeof e){const t=document.querySelectorAll(e);return t?Array.from(t):[]}return Array.from(e)}(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function Ob(e){return t=>{"touch"===t.pointerType||e(t)}}function Fb(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover","Start"===n);const i=r["onHover"+n];i&&pg.postRender((()=>i(t,Sb(t))))}const Lb=new WeakSet;function Vb(e){return t=>{"Enter"===t.key&&e(t)}}function Nb(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const zb=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),Bb=(e,t)=>!!t&&(e===t||Bb(e,t.parentElement));function Ub(e){return("mouse"===(t=e).pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary)&&!0;var t}function Wb(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap","Start"===n);const i=r["onTap"+("End"===n?"":n)];i&&pg.postRender((()=>i(t,Sb(t))))}const qb=new WeakMap,Kb=new WeakMap,Hb=e=>{const t=qb.get(e.target);t&&t(e)},Zb=e=>{e.forEach(Hb)};const Gb={some:0,all:1},Yb={inView:{Feature:class extends wb{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r="some",once:i}=e,a={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:Gb[r]};return function(e,t,n){const r=function({root:e,...t}){const n=e||document;Kb.has(n)||Kb.set(n,{});const r=Kb.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Zb,{root:e,...t})),r[i]}(t);return qb.set(e,n),r.observe(e),()=>{qb.delete(e),r.unobserve(e)}}(this.node.current,a,(e=>{const{isIntersecting:t}=e;if(this.isInView===t)return;if(this.isInView=t,i&&!t&&this.hasEnteredView)return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);const{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),a=t?n:r;a&&a(e)}))}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends wb{mount(){const{current:e}=this.node;e&&(this.unmount=function(e,t,n={}){const[r,i,a]=Ib(e,n),o=e=>{const r=e.currentTarget;if(!Ub(e)||Lb.has(r))return;Lb.add(r);const a=t(e),o=(e,t)=>{window.removeEventListener("pointerup",s),window.removeEventListener("pointercancel",l),Ub(e)&&Lb.has(r)&&(Lb.delete(r),a&&a(e,{success:t}))},s=e=>{o(e,n.useGlobalTarget||Bb(r,e.target))},l=e=>{o(e,!1)};window.addEventListener("pointerup",s,i),window.addEventListener("pointercancel",l,i)};return r.forEach((e=>{var t;t=e,zb.has(t.tagName)||-1!==t.tabIndex||(e.tabIndex=0),(n.useGlobalTarget?window:e).addEventListener("pointerdown",o,i),e.addEventListener("focus",(e=>((e,t)=>{const n=e.currentTarget;if(!n)return;const r=Vb((()=>{if(Lb.has(n))return;Nb(n,"down");const e=Vb((()=>{Nb(n,"up")}));n.addEventListener("keyup",e,t),n.addEventListener("blur",(()=>Nb(n,"cancel")),t)}));n.addEventListener("keydown",r,t),n.addEventListener("blur",(()=>n.removeEventListener("keydown",r)),t)})(e,i)),i)})),a}(e,(e=>(Wb(this.node,e,"Start"),(e,{success:t})=>Wb(this.node,e,t?"End":"Cancel"))),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}},focus:{Feature:class extends wb{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(ew){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=yv(Db(this.node.current,"focus",(()=>this.onFocus())),Db(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}},hover:{Feature:class extends wb{mount(){const{current:e}=this.node;e&&(this.unmount=function(e,t,n={}){const[r,i,a]=Ib(e,n),o=Ob((e=>{const{target:n}=e,r=t(e);if(!r||!n)return;const a=Ob((e=>{r(e),n.removeEventListener("pointerleave",a)}));n.addEventListener("pointerleave",a,i)}));return r.forEach((e=>{e.addEventListener("pointerenter",o,i)})),a}(e,(e=>(Fb(this.node,e,"Start"),e=>Fb(this.node,e,"End")))))}unmount(){}}}},Jb=t.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Xb=t.createContext({}),Qb="undefined"!=typeof window,ex=Qb?t.useLayoutEffect:t.useEffect,tx=t.createContext({strict:!1});function nx(e,n,r,i,a){var o,s;const{visualElement:l}=t.useContext(Xb),u=t.useContext(tx),c=t.useContext(Rb),d=t.useContext(Jb).reducedMotion,p=t.useRef(null);i=i||u.renderer,!p.current&&i&&(p.current=i(e,{visualState:n,parent:l,props:r,presenceContext:c,blockInitialAnimation:!!c&&!1===c.initial,reducedMotionConfig:d}));const h=p.current,f=t.useContext($b);!h||h.projection||!a||"html"!==h.type&&"svg"!==h.type||function(e,t,n,r){const{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:l,layoutRoot:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:rx(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:Boolean(o)||s&&jb(s),visualElement:e,animationType:"string"==typeof a?a:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:u})}(p.current,r,a,f);const m=t.useRef(!1);t.useInsertionEffect((()=>{h&&m.current&&h.update(r,c)}));const g=r[ab],y=t.useRef(Boolean(g)&&!(null===(o=window.MotionHandoffIsComplete)||void 0===o?void 0:o.call(window,g))&&(null===(s=window.MotionHasOptimisedAnimation)||void 0===s?void 0:s.call(window,g)));return ex((()=>{h&&(m.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),_b.render(h.render),y.current&&h.animationState&&h.animationState.animateChanges())})),t.useEffect((()=>{h&&(!y.current&&h.animationState&&h.animationState.animateChanges(),y.current&&(queueMicrotask((()=>{var e;null===(e=window.MotionHandoffMarkAsComplete)||void 0===e||e.call(window,g)})),y.current=!1))})),h}function rx(e){if(e)return!1!==e.options.allowProjection?e.projection:rx(e.parent)}function ix(e,n,r){return t.useCallback((t=>{t&&e.mount&&e.mount(t),n&&(t?n.mount(t):n.unmount()),r&&("function"==typeof r?r(t):jb(r)&&(r.current=t))}),[n])}function ax(e){return zm(e.animate)||Gm.some((t=>Wm(e[t])))}function ox(e){return Boolean(ax(e)||e.variants)}function sx(e){return Array.isArray(e)?e.join(" "):e}const lx={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},ux={};for(const zD in lx)ux[zD]={isEnabled:e=>lx[zD].some((t=>!!e[t]))};function cx(e){for(const t in e)ux[t]={...ux[t],...e[t]}}const dx=Symbol.for("motionComponentSymbol");function px({preloadedFeatures:n,createVisualElement:r,useRender:i,useVisualState:a,Component:o}){n&&cx(n);const s=t.forwardRef((function(s,l){let u;const c={...t.useContext(Jb),...s,layoutId:hx(s)},{isStatic:d}=c,p=function(e){const{initial:n,animate:r}=function(e,t){if(ax(e)){const{initial:t,animate:n}=e;return{initial:!1===t||Wm(t)?t:void 0,animate:Wm(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,t.useContext(Xb));return t.useMemo((()=>({initial:n,animate:r})),[sx(n),sx(r)])}(s),h=a(s,d);if(!d&&Qb){!function(e,n){const r=t.useContext(tx).strict;if("production"!==process.env.NODE_ENV&&n&&r){const t="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?lg(!1,t):ug(!1,t)}}(c,n);const e=function(e){const{drag:t,layout:n}=ux;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:(null==t?void 0:t.isEnabled(e))||(null==n?void 0:n.isEnabled(e))?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}(c);u=e.MeasureLayout,p.visualElement=nx(o,h,c,r,e.ProjectionNode)}return e.jsxRuntimeExports.jsxs(Xb.Provider,{value:p,children:[u&&p.visualElement?e.jsxRuntimeExports.jsx(u,{visualElement:p.visualElement,...c}):null,i(o,s,ix(h,p.visualElement,l),h,d,p.visualElement)]})}));return s[dx]=o,s}function hx({layoutId:e}){const n=t.useContext(Pb).id;return n&&void 0!==e?n+"-"+e:e}const fx=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function mx(e){return"string"==typeof e&&!e.includes("-")&&!!(fx.indexOf(e)>-1||/[A-Z]/u.test(e))}function gx(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const a in n)e.style.setProperty(a,n[a])}const yx=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function vx(e,t,n,r){gx(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(yx.has(i)?i:ib(i),t.attrs[i])}function bx(e,{layout:t,layoutId:n}){return Jm.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!Tb[e]||"opacity"===e)}function xx(e,t,n){var r;const{style:i}=e,a={};for(const o in i)(sb(i[o])||t.style&&sb(t.style[o])||bx(o,e)||void 0!==(null===(r=null==n?void 0:n.getValue(o))||void 0===r?void 0:r.liveStyle))&&(a[o]=i[o]);return a}function wx(e,t,n){const r=xx(e,t,n);for(const i in e)(sb(e[i])||sb(t[i]))&&(r[-1!==Ym.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=e[i]);return r}const Ex=e=>(n,r)=>{const i=t.useContext(Xb),a=t.useContext(Rb),o=()=>function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,a){const o={latestValues:kx(r,i,a,e),renderState:t()};return n&&(o.mount=e=>n(r,e,o)),o}(e,n,i,a);return r?o():function(e){const n=t.useRef(null);return null===n.current&&(n.current=e()),n.current}(o)};function kx(e,t,n,r){const i={},a=r(e,{});for(const p in a)i[p]=Ab(a[p]);let{initial:o,animate:s}=e;const l=ax(e),u=ox(e);t&&u&&!l&&!1!==e.inherit&&(void 0===o&&(o=t.initial),void 0===s&&(s=t.animate));let c=!!n&&!1===n.initial;c=c||!1===o;const d=c?s:o;if(d&&"boolean"!=typeof d&&!zm(d)){const t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){const r=Km(e,t[n]);if(r){const{transitionEnd:e,transition:t,...n}=r;for(const r in n){let e=n[r];Array.isArray(e)&&(e=e[c?e.length-1:0]),null!==e&&(i[r]=e)}for(const r in e)i[r]=e[r]}}}return i}const Sx=(e,t)=>t&&"number"==typeof e?t.transform(e):e,Dx={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},jx=Ym.length;function Cx(e,t,n){const{style:r,vars:i,transformOrigin:a}=e;let o=!1,s=!1;for(const l in t){const e=t[l];if(Jm.has(l))o=!0;else if($g(l))i[l]=e;else{const t=Sx(e,Iy[l]);l.startsWith("origin")?(s=!0,a[l]=t):r[l]=t}}if(t.transform||(o||n?r.transform=function(e,t,n){let r="",i=!0;for(let a=0;a<jx;a++){const o=Ym[a],s=e[o];if(void 0===s)continue;let l=!0;if(l="number"==typeof s?s===(o.startsWith("scale")?1:0):0===parseFloat(s),!l||n){const e=Sx(s,Iy[o]);l||(i=!1,r+=`${Dx[o]||o}(${e}) `),n&&(t[o]=e)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}(t,e.transform,n):r.transform&&(r.transform="none")),s){const{originX:e="50%",originY:t="50%",originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}function Rx(e,t,n){return"string"==typeof e?e:Ug.transform(t+n*e)}const Px={offset:"stroke-dashoffset",array:"stroke-dasharray"},$x={offset:"strokeDashoffset",array:"strokeDasharray"};function Tx(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:a,pathLength:o,pathSpacing:s=1,pathOffset:l=0,...u},c,d){if(Cx(e,u,d),c)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const{attrs:p,style:h,dimensions:f}=e;var m,g;p.transform&&(f&&(h.transform=p.transform),delete p.transform),f&&(void 0!==i||void 0!==a||h.transform)&&(h.transformOrigin=(g=void 0!==a?a:.5,`${Rx(void 0!==i?i:.5,(m=f).x,m.width)} ${Rx(g,m.y,m.height)}`)),void 0!==t&&(p.x=t),void 0!==n&&(p.y=n),void 0!==r&&(p.scale=r),void 0!==o&&function(e,t,n=1,r=0,i=!0){e.pathLength=1;const a=i?Px:$x;e[a.offset]=Ug.transform(-r);const o=Ug.transform(t),s=Ug.transform(n);e[a.array]=`${o} ${s}`}(p,o,s,l,!1)}const _x=e=>"string"==typeof e&&"svg"===e.toLowerCase(),Mx={useVisualState:Ex({scrapeMotionValuesFromProps:wx,createRenderState:()=>({style:{},transform:{},transformOrigin:{},vars:{},attrs:{}}),onMount:(e,t,{renderState:n,latestValues:r})=>{pg.read((()=>{try{n.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){n.dimensions={x:0,y:0,width:0,height:0}}})),pg.render((()=>{Tx(n,r,_x(t.tagName),e.transformTemplate),vx(t,n)}))}})},Ax={useVisualState:Ex({scrapeMotionValuesFromProps:xx,createRenderState:()=>({style:{},transform:{},transformOrigin:{},vars:{}})})};function Ix(e,t,n){for(const r in t)sb(t[r])||bx(r,n)||(e[r]=t[r])}function Ox(e,n){const r={},i=function(e,n){const r={};return Ix(r,e.style||{},e),Object.assign(r,function({transformTemplate:e},n){return t.useMemo((()=>{const t={style:{},transform:{},transformOrigin:{},vars:{}};return Cx(t,n,e),Object.assign({},t.vars,t.style)}),[n])}(e,n)),r}(e,n);return e.drag&&!1!==e.dragListener&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=i,r}const Fx=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Lx(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Fx.has(e)}let Vx=e=>!Lx(e);try{(Nx=require("@emotion/is-prop-valid").default)&&(Vx=e=>e.startsWith("on")?!Lx(e):Nx(e))}catch(Qx){}var Nx;function zx(e,n,r,i){const a=t.useMemo((()=>{const t={style:{},transform:{},transformOrigin:{},vars:{},attrs:{}};return Tx(t,n,_x(i),e.transformTemplate),{...t.attrs,style:{...t.style}}}),[n]);if(e.style){const t={};Ix(t,e.style,e),a.style={...t,...a.style}}return a}function Bx(e=!1){return(n,r,i,{latestValues:a},o)=>{const s=(mx(n)?zx:Ox)(r,a,o,n),l=function(e,t,n){const r={};for(const i in e)"values"===i&&"object"==typeof e.values||(Vx(i)||!0===n&&Lx(i)||!t&&!Lx(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}(r,"string"==typeof n,e),u=n!==t.Fragment?{...l,...s,ref:i}:{},{children:c}=r,d=t.useMemo((()=>sb(c)?c.get():c),[c]);return t.createElement(n,{...u,children:d})}}const Ux={current:null},Wx={current:!1},qx=new WeakMap,Kx=[...ty,vy,Cy],Hx=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Zx{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,blockInitialAnimation:i,visualState:a},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=ly,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const e=Wy.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,pg.render(this.render,!1,!0))};const{latestValues:s,renderState:l}=a;this.latestValues=s,this.baseTarget={...s},this.initialValues=t.initial?{...s}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=o,this.blockInitialAnimation=Boolean(i),this.isControllingVariants=ax(t),this.isVariantNode=ox(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(e&&e.current);const{willChange:u,...c}=this.scrapeMotionValuesFromProps(t,{},this);for(const d in c){const e=c[d];void 0!==s[d]&&sb(e)&&e.set(s[d],!1)}}mount(e){this.current=e,qx.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach(((e,t)=>this.bindToMotionValue(t,e))),Wx.current||function(){if(Wx.current=!0,Qb)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Ux.current=e.matches;e.addListener(t),t()}else Ux.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||Ux.current),"production"!==process.env.NODE_ENV&&Nm(!0!==this.shouldReduceMotion,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){qx.delete(this.current),this.projection&&this.projection.unmount(),hg(this.notifyUpdate),hg(this.render),this.valueSubscriptions.forEach((e=>e())),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}bindToMotionValue(e,t){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const n=Jm.has(e),r=t.on("change",(t=>{this.latestValues[e]=t,this.props.onUpdate&&pg.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)})),i=t.on("renderRequest",this.scheduleRender);let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,(()=>{r(),i(),a&&a(),t.owner&&t.stop()}))}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in ux){const t=ux[e];if(!t)continue;const{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){const t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):{x:{min:0,max:0},y:{min:0,max:0}}}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let n=0;n<Hx.length;n++){const t=Hx[n];this.propEventSubscriptions[t]&&(this.propEventSubscriptions[t](),delete this.propEventSubscriptions[t]);const r=e["on"+t];r&&(this.propEventSubscriptions[t]=this.on(t,r))}this.prevMotionValues=function(e,t,n){for(const r in t){const i=t[r],a=n[r];if(sb(i))e.addValue(r,i),"development"===process.env.NODE_ENV&&Nm("11.15.0"===i.version,`Attempting to mix Motion versions ${i.version} with 11.15.0 may not work as expected.`);else if(sb(a))e.addValue(r,nb(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){const t=e.getValue(r);!0===t.liveStyle?t.jump(i):t.hasAnimated||t.set(i)}else{const t=e.getStaticValue(r);e.addValue(r,nb(void 0!==t?t:i,{owner:e}))}}for(const r in n)void 0===t[r]&&e.removeValue(r);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){const n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);const t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=nb(null===t?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){var n;let r=void 0===this.latestValues[e]&&this.current?null!==(n=this.getBaseTargetFromProps(this.props,e))&&void 0!==n?n:this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];return null!=r&&("string"==typeof r&&(Rg(r)||Cg(r))?r=parseFloat(r):(i=r,!Kx.find(ey(i))&&Cy.test(t)&&(r=Ly(e,t))),this.setBaseTarget(e,sb(r)?r.get():r)),sb(r)?r.get():r;var i}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;const{initial:n}=this.props;let r;if("string"==typeof n||"object"==typeof n){const i=Km(this.props,n,null===(t=this.presenceContext)||void 0===t?void 0:t.custom);i&&(r=i[e])}if(n&&void 0!==r)return r;const i=this.getBaseTargetFromProps(this.props,e);return void 0===i||sb(i)?void 0!==this.initialValues[e]&&void 0===r?void 0:this.baseTarget[e]:i}on(e,t){return this.events[e]||(this.events[e]=new eb),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class Gx extends Zx{constructor(){super(...arguments),this.KeyframeResolver=Ny}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;sb(e)&&(this.childSubscription=e.on("change",(e=>{this.current&&(this.current.textContent=`${e}`)})))}}class Yx extends Gx{constructor(){super(...arguments),this.type="html",this.renderInstance=gx}readValueFromInstance(e,t){if(Jm.has(t)){const e=Fy(t);return e&&e.default||0}{const r=(n=e,window.getComputedStyle(n)),i=($g(t)?r.getPropertyValue(t):r[t])||0;return"string"==typeof i?i.trim():i}var n}measureInstanceViewportBox(e,{transformPagePoint:t}){return n=t,function({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}(function(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),n));var n}build(e,t,n){Cx(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return xx(e,t,n)}}class Jx extends Gx{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Cb}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(Jm.has(t)){const e=Fy(t);return e&&e.default||0}return t=yx.has(t)?t:ib(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return wx(e,t,n)}build(e,t,n){Tx(e,t,this.isSVGTag,n.transformTemplate)}renderInstance(e,t,n,r){vx(e,t,0,r)}mount(e){this.isSVGTag=_x(e.tagName),super.mount(e)}}const Xx=function(e){if("undefined"==typeof Proxy)return e;const t=new Map;return new Proxy(((...t)=>("production"!==process.env.NODE_ENV&&Nm(!1,"motion() is deprecated. Use motion.create() instead."),e(...t))),{get:(n,r)=>"create"===r?e:(t.has(r)||t.set(r,e(r)),t.get(r))})}((function(e,{forwardMotionProps:t}={forwardMotionProps:!1}){return px({...mx(e)?Mx:Ax,preloadedFeatures:Qx,useRender:Bx(t),createVisualElement:ew,Component:e})}));var Qx,ew;function tw({children:n,features:r,strict:i=!1}){const[,a]=t.useState(!nw(r)),o=t.useRef(void 0);if(!nw(r)){const{renderer:e,...t}=r;o.current=e,cx(t)}return t.useEffect((()=>{nw(r)&&r().then((({renderer:e,...t})=>{cx(t),o.current=e,a(!0)}))}),[]),e.jsxRuntimeExports.jsx(tx.Provider,{value:{renderer:o.current,strict:i},children:n})}function nw(e){return"function"==typeof e}const rw={renderer:(e,n)=>mx(e)?new Jx(n):new Yx(n,{allowProjection:e!==t.Fragment}),...kb,...Yb},iw=({customBadge:t,description:r,icon:i,onClick:a,requiresUpgrade:o=!1,title:s})=>{const l=n.useTheme();return e.jsxRuntimeExports.jsxs(c,{bgColor:l.palette.white,bgColorHover:l.palette.gray[100],cursor:"pointer",display:"flex",gap:.5,onClick:a,px:1.25,py:1,width:"100%",children:[e.jsxRuntimeExports.jsx(c,{alignItems:"center",bgColor:l.palette.gray[300],borderRadius:l.spacing[.25],display:"flex",height:"24px",justify:"center",width:"24px",children:e.jsxRuntimeExports.jsx(e.Icon,{icon:i,iconColor:l.palette.gray[800],iconSize:"xxs",ml:.5,mr:.5})}),e.jsxRuntimeExports.jsxs(c,{children:[e.jsxRuntimeExports.jsxs(c,{alignItems:"center",display:"inline-flex",gap:.5,children:[e.jsxRuntimeExports.jsx(e.Text,{color:l.palette.gray[800],size:"sm",children:s}),o?e.jsxRuntimeExports.jsx(qf,{text:"Upgrade"}):void 0,t]}),e.jsxRuntimeExports.jsx(e.Text,{color:l.palette.gray[400],size:"xs",children:r})]})]})},aw=n.styled(Xx.div)`
|
|
577
577
|
${({theme:e})=>`\n background-color: ${e.palette.white};\n box-shadow: ${e.shadows.lg};\n max-width: 350px;\n min-width: 350px;\n height: 100%;\n position: absolute;\n right: 0;\n top: 0;\n overflow: hidden auto;\n scrollbar-color: ${e.palette.gray[600]} ${e.palette.gray[100]};\n scroll-padding: ${e.spacing[.5]};\n scrollbar-width: thin;\n z-index: 99999;\n\n > div {\n border: 1px solid ${e.palette.gray[100]};\n width: auto;\n min-height: 100vh;\n height: auto;\n }\n `}
|
|
578
|
-
`,
|
|
578
|
+
`,ow=n.styled.div`
|
|
579
579
|
${({theme:e,$min:t,$value:n})=>{return`\n align-items: center;\n align-self: stretch;\n display: flex;\n flex-direction: column;\n justify-content: end;\n gap: ${e.spacing[.75]};\n width: 304px;\n\n .track {\n background: linear-gradient(\n to right,\n ${t>=0?`\n ${e.palette.primary[500]} ${n}%,\n ${e.palette.gray[200]} ${n}%\n `:(r=e,i=n,i>=50?`\n ${r.palette.gray[200]} 50%,\n ${r.palette.primary[500]} 50.05%,\n ${r.palette.primary[500]} ${i}%,\n ${r.palette.gray[200]} ${i}%\n `:`\n ${r.palette.gray[200]} ${i}%,\n ${r.palette.primary[500]} ${i}%,\n ${r.palette.primary[500]} 50%,\n ${r.palette.gray[200]} 50.05%,\n ${r.palette.gray[200]} 100%\n `)}\n );\n border-radius: ${e.spacing[.125]};\n height: ${e.spacing[.25]};\n width: 100%;\n }\n\n .track.disabled {\n opacity: 0.4;\n }\n\n .thumb {\n background: ${e.palette.white};\n border-radius: ${e.spacing[1.25]};\n box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.30);\n top: 50%;\n height: 20px;\n width: 20px;\n }\n\n .thumb.dragging {\n border: 1px solid ${e.palette.primary[500]};\n }\n `;var r,i}}
|
|
580
580
|
`,sw=n.styled.div`
|
|
581
581
|
${({theme:e})=>`\n align-items: center;\n display: flex;\n justify-content: space-between;\n height: ${e.spacing[.625]};\n width: 100%;\n\n p {\n color: ${e.palette.gray[400]};\n font-family: ${e.typography.type.primary};\n font-size: ${e.spacing[.5]};\n }\n `}
|
|
582
582
|
`,lw=n.styled.output`
|
|
583
583
|
${({theme:e})=>`\n align-items: flex-end;\n border-radius: ${e.spacing[.5]};\n border: 1px solid ${e.palette.gray[300]};\n background: ${e.palette.white};\n display: flex;\n gap: ${e.spacing[.625]};\n padding: ${e.spacing[.625]} ${e.spacing[.75]};\n width: 59px;\n `}
|
|
584
|
-
`,uw=({state:n,trackRef:r,index:i})=>{const a=t.useRef(null),{thumbProps:o,inputProps:s,isDragging:l}=function(e,n){let{index:r=0,isRequired:i,validationState:a,isInvalid:o,trackRef:s,inputRef:l,orientation:u=n.orientation,name:c}=e,d=e.isDisabled||n.isDisabled,p="vertical"===u,{direction:h}=
|
|
584
|
+
`,uw=({state:n,trackRef:r,index:i})=>{const a=t.useRef(null),{thumbProps:o,inputProps:s,isDragging:l}=function(e,n){let{index:r=0,isRequired:i,validationState:a,isInvalid:o,trackRef:s,inputRef:l,orientation:u=n.orientation,name:c}=e,d=e.isDisabled||n.isDisabled,p="vertical"===u,{direction:h}=Bi(),{addGlobalListener:f,removeGlobalListener:m}=Kn(),g=Ya.get(n);var y;const{labelProps:v,fieldProps:b}=Na({...e,id:Ja(n,r),"aria-labelledby":`${g.id} ${null!==(y=e["aria-labelledby"])&&void 0!==y?y:""}`.trim()}),x=n.values[r],w=t.useCallback((()=>{l.current&&Rn(l.current)}),[l]),E=n.focusedThumb===r;t.useEffect((()=>{E&&w()}),[E,w]);let k="rtl"===h,S=t.useRef(null),{keyboardProps:D}=ri({onKeyDown(e){let{getThumbMaxValue:t,getThumbMinValue:i,decrementThumb:a,incrementThumb:o,setThumbValue:s,setThumbDragging:l,pageSize:u}=n;if(/^(PageUp|PageDown|Home|End)$/.test(e.key)){switch(e.preventDefault(),l(r,!0),e.key){case"PageUp":o(r,u);break;case"PageDown":a(r,u);break;case"Home":s(r,i(r));break;case"End":s(r,t(r))}l(r,!1)}else e.continuePropagation()}}),{moveProps:j}=ii({onMoveStart(){S.current=null,n.setThumbDragging(r,!0)},onMove({deltaX:e,deltaY:t,pointerType:i,shiftKey:a}){const{getThumbPercent:o,setThumbPercent:l,decrementThumb:u,incrementThumb:c,step:d,pageSize:h}=n;if(!s.current)return;let{width:f,height:m}=s.current.getBoundingClientRect(),g=p?m:f;if(null==S.current&&(S.current=o(r)*g),"keyboard"===i)e>0&&k||e<0&&!k||t>0?u(r,a?h:d):c(r,a?h:d);else{let n=p?t:e;(p||k)&&(n=-n),S.current+=n,l(r,cr(S.current/g,0,1))}},onMoveEnd(){n.setThumbDragging(r,!1)}});n.setThumbEditable(r,!d);const{focusableProps:C}=_i(En(e,{onFocus:()=>n.setFocusedThumb(r),onBlur:()=>n.setFocusedThumb(void 0)}),l);let R=t.useRef(void 0),P=e=>{w(),R.current=e,n.setThumbDragging(r,!0),f(window,"mouseup",$,!1),f(window,"touchend",$,!1),f(window,"pointerup",$,!1)},$=e=>{var t,i;(null!==(i=e.pointerId)&&void 0!==i?i:null===(t=e.changedTouches)||void 0===t?void 0:t[0].identifier)===R.current&&(w(),n.setThumbDragging(r,!1),m(window,"mouseup",$,!1),m(window,"touchend",$,!1),m(window,"pointerup",$,!1))},T=n.getThumbPercent(r);(p||"rtl"===h)&&(T=1-T);let _=d?{}:En(D,j,{onMouseDown:e=>{0!==e.button||e.altKey||e.ctrlKey||e.metaKey||P()},onPointerDown:e=>{0!==e.button||e.altKey||e.ctrlKey||e.metaKey||P(e.pointerId)},onTouchStart:e=>{P(e.changedTouches[0].identifier)}});return lr(l,x,(e=>{n.setThumbValue(r,e)})),{inputProps:En(C,b,{type:"range",tabIndex:d?void 0:0,min:n.getThumbMinValue(r),max:n.getThumbMaxValue(r),step:n.step,value:x,name:c,disabled:d,"aria-orientation":u,"aria-valuetext":n.getThumbValueLabel(r),"aria-required":i||void 0,"aria-invalid":o||"invalid"===a||void 0,"aria-errormessage":e["aria-errormessage"],"aria-describedby":[g["aria-describedby"],e["aria-describedby"]].filter(Boolean).join(" "),"aria-details":[g["aria-details"],e["aria-details"]].filter(Boolean).join(" "),onChange:e=>{n.setThumbValue(r,parseFloat(e.target.value))}}),thumbProps:{..._,style:{position:"absolute",[p?"top":"left"]:100*T+"%",transform:"translate(-50%, -50%)",touchAction:"none"}},labelProps:v,isDragging:n.isThumbDragging(r),isDisabled:d,isFocused:E}}({index:i,trackRef:r,inputRef:a},n);return e.jsxRuntimeExports.jsx("div",{...o,className:"thumb "+(l?"dragging":""),children:e.jsxRuntimeExports.jsx(Ga,{children:e.jsxRuntimeExports.jsx("input",{ref:a,...s})})})},{getVariant:cw}=e.variantBuilder((e=>({completed:`\n background-color: ${e.palette.primary[500]};\n color: ${e.palette.white};\n\n &::after {\n background-color: ${e.palette.primary[500]};\n }\n `,current:`\n background-color: ${e.palette.primary[500]};\n color: ${e.palette.white};\n\n &::after {\n background-color: ${e.palette.gray[200]};\n }\n `,disabled:`\n background-color: ${e.palette.gray[200]};\n outline: 1px solid ${e.palette.gray[400]};\n outline-offset: -1px;\n color: ${e.palette.gray[400]};\n\n &::after {\n background-color: ${e.palette.gray[200]};\n }\n `}))),dw=n.styled.div`
|
|
585
585
|
${({theme:e})=>`\n align-items: stretch;\n background-color: ${e.palette.white};\n display: flex;\n flex-direction: column;\n height: 100%;\n padding: ${e.spacing[1]} ${e.spacing[1]};\n scroll-behavior: unset;\n `}
|
|
586
586
|
`,pw=n.styled.div`
|
|
587
587
|
display: flex;
|
|
@@ -661,4 +661,4 @@ object-assign
|
|
|
661
661
|
}
|
|
662
662
|
`,ND=n.styled.div`
|
|
663
663
|
${({theme:e})=>`\n align-items: flex-start;\n align-self: stretch;\n container-type: inline-size;\n display: flex;\n flex-direction: row;\n gap: ${e.spacing[1]};\n position: relative;\n\n &:has(> :nth-child(2)) {\n > div {\n display: flex;\n width: 50%;\n }\n }\n\n @media screen and (max-width: ${e.breakpoints.mobile}) {\n flex-direction: column;\n }\n `}
|
|
664
|
-
`;exports.BaseButtonComponent=e.BaseButtonComponent,exports.BaseComponent=e.BaseComponent,exports.BaseSpanComponent=e.BaseSpanComponent,exports.BaseTextComponent=e.BaseTextComponent,exports.Button=e.Button,exports.CustomThemeProvider=e.CustomThemeProvider,exports.Heading=e.Heading,exports.Icon=e.Icon,exports.Span=e.Span,exports.Text=e.Text,exports.Tooltip=e.Tooltip,exports.getStyledConfig=e.getStyledConfig,exports.hiddenProps=e.hiddenProps,exports.icons=e.icons,exports.setBorder=e.setBorder,exports.setDisplay=e.setDisplay,exports.setInteraction=e.setInteraction,exports.setMargin=e.setMargin,exports.setPadding=e.setPadding,exports.setPosition=e.setPosition,exports.setText=e.setText,exports.theme=e.theme,exports.uniqueIcons=e.uniqueIcons,exports.variantBuilder=e.variantBuilder,exports.Accordion=p,exports.Alert=b,exports.CardHeader=x,exports.CardWithImage=({alt:r,authorEmail:i,date:a,description:o,src:s,children:l,isEditing:u,onClick:d,title:p,hideDescription:h=!1,headerType:f="image",showMaximize:m=!0})=>{const g=n.useTheme(),[y,b]=t.useState(!1),w=t.useCallback((()=>{b(!0)}),[]),E=t.useCallback((()=>{b(!1)}),[]);return e.jsxRuntimeExports.jsxs(c,{bgColor:"transparent",border:"1px solid transparent",borderColorHover:"black",borderRadius:g.spacing[.25],display:"flex",flexDirection:"column",gap:1,onHover:w,onLeave:E,padding:[.5,.5,.5,.5],width:"100%",children:[e.jsxRuntimeExports.jsx(c,{cursor:u?"unset":"pointer",display:"inline-flex",justify:"center",onClick:d,position:"relative",width:"100%",children:void 0===l?e.jsxRuntimeExports.jsxs(t.Fragment,{children:[e.jsxRuntimeExports.jsx(C,{alt:r,fileType:f,height:"147px",opacity:y?.3:0,src:s,width:"100%"}),m?e.jsxRuntimeExports.jsx(c,{bottom:"10px",position:"absolute",right:"10px",children:e.jsxRuntimeExports.jsx(v,{color:"white",icon:"arrows-maximize",iconSize:"xxs",iconType:"fa-light",variant:"secondary"})}):void 0]}):l}),h?null:e.jsxRuntimeExports.jsx(x,{authorEmail:i,date:a,description:o,descriptionColor:g.palette.gray[600],id:`${r}-card-header`,title:p})]})},exports.CardWithInput=({description:n,disabled:r,id:i,align:a,inputType:o="text",inputNumberProps:s,minHeight:l,minWidth:u,name:c,placeholder:d,tooltip:p,title:h})=>{const f=t.useMemo((()=>{if("text"===o)return e.jsxRuntimeExports.jsx(cl,{disabled:r,name:c,placeholder:d});if("date"===o)return e.jsxRuntimeExports.jsx(nl,{disabled:r,name:c});const{decimalPlaces:t,max:n,min:i}=s??{};return e.jsxRuntimeExports.jsx(vl,{decimalPlaces:t,disabled:r,max:n,min:i,name:c,placeholder:d})}),[r,s,o,c,d]);return e.jsxRuntimeExports.jsxs(R,{$align:a,$minHeight:l,$minWidth:u,children:[e.jsxRuntimeExports.jsx(x,{description:n,id:i,title:h,tooltip:p}),f]})},exports.CardWithSelector=({alt:t,imageId:r,icon:i,selectorProps:a,onClick:o,title:s,width:l="fit-content"})=>{const u=n.useTheme();return e.jsxRuntimeExports.jsxs(c,{alignItems:"center",border:`1px solid ${u.palette.gray[200]}`,borderColorHover:u.palette.gray[600],borderRadius:u.spacing[.25],display:"inline-flex",padding:[1,1,1,1],shadowHover:"md",width:l,children:[e.jsxRuntimeExports.jsx(c,{alignSelf:"start",display:"flex",width:"fit-content",children:e.jsxRuntimeExports.jsx(Vp,{name:a.name,onClick:o,value:a.value})}),e.jsxRuntimeExports.jsxs(c,{alignItems:"center",display:"flex",gap:.5,justify:"space-between",ml:1,mr:1,width:"100%",children:[void 0===r?void 0:e.jsxRuntimeExports.jsx(Op,{alt:t??"card image",height:"32px",publicId:r,width:"32px"}),void 0===i?void 0:e.jsxRuntimeExports.jsx(e.Icon,{icon:i,iconSize:"sm",iconType:"fa-light"}),e.jsxRuntimeExports.jsx(e.Heading,{fontWeight:"bold",lineSpacing:1.75,size:"xs",children:s})]})]})},exports.CardWithSwitch=({id:t,title:r,toggles:i,minWidth:a="auto",height:o="auto"})=>{const s=n.useTheme();return e.jsxRuntimeExports.jsxs(c,{alignItems:"center",bgColor:s.palette.white,border:`1px solid ${s.palette.gray[200]}`,borderRadius:s.spacing[.25],display:"flex",flexDirection:"column",gap:.5,height:o,justify:"center",minHeight:"100px",minWidth:a,padding:[1.25,1.25,1.25,1.25],children:[e.jsxRuntimeExports.jsx(x,{id:t,title:r}),e.jsxRuntimeExports.jsx(c,{display:"flex",flexDirection:"column",gap:.5,minHeight:"40px",width:"100%",children:i.map((t=>e.jsxRuntimeExports.jsx(Up,{...t},`$card-toggle-${t.name}`)))})]})},exports.Carousel=({slides:n,interval:r=300})=>{const{cycle:i,setCycle:a,setProgress:o}=Yd(r,n.length),s=t.useCallback((e=>()=>{a(e),o(0)}),[a,o]);return e.jsxRuntimeExports.jsxs(Wp,{children:[e.jsxRuntimeExports.jsx(qp,{$currentIndex:i,children:n.map(((t,n)=>{const r=`slide-${n}`;return e.jsxRuntimeExports.jsx(Kp,{children:t.content},r)}))}),e.jsxRuntimeExports.jsx(Zp,{children:n.map(((t,n)=>{const r=`nav-button-${n}`;return e.jsxRuntimeExports.jsx(Hp,{$isActive:n===i,"data-testid":n===i?"active":"inactive",onClick:s(n)},r)}))})]})},exports.Checkbox=Jp,exports.CloudImage=Op,exports.CodeSnippet=({noCodeMessage:i="Code snippet not available",snippet:a})=>{const o=n.useTheme(),[s,l]=t.useState(!1),[u,d]=t.useState(!0),p=t.useCallback((()=>{l((e=>!e))}),[l]),h=t.useCallback((()=>{if(r.isNil(a)||r.isEmpty(a)||!r.isString(a))return d(!1),i;const e=a.split("\n");return e.length>8&&!s?`${[...e].splice(0,7).join("\n")}\n${e[8]}...`:(e.length<8&&d(!1),a)}),[s,a,i]),f=t.useMemo(h,[h]),m=t.useCallback((async()=>{await navigator.clipboard.writeText(f)}),[f]);return e.jsxRuntimeExports.jsxs(c,{bgColor:o.palette.gray[100],borderRadius:"4px",display:"inline-flex",minWidth:"565px",position:"relative",children:[e.jsxRuntimeExports.jsx(Xp,{"data-private":!0,children:e.jsxRuntimeExports.jsx("pre",{children:e.jsxRuntimeExports.jsx("code",{className:"language-none",children:f})})}),e.jsxRuntimeExports.jsxs(Qp,{children:[e.jsxRuntimeExports.jsx(v,{height:o.spacing[2.5],icon:"copy",iconColor:o.palette.gray[700],iconSize:"xs",iconType:"fa-light",onClick:m,variant:"ghost",width:o.spacing[2.5]}),!!u&&e.jsxRuntimeExports.jsxs(e.Button,{onClick:p,variant:"ghost",children:[s?"Show Less":"Show more",e.jsxRuntimeExports.jsx(e.Icon,{icon:s?"chevron-up":"chevron-down",iconColor:o.palette.gray[700],iconSize:"xxs",iconType:"fa-light",ml:.25,onClick:m})]})]})]})},exports.Container=c,exports.ContentCard=vh,exports.ContentCardCarousel=({description:n,items:r,title:i,titleHighlighted:a})=>{const o=t.useRef(null);return e.jsxRuntimeExports.jsxs(xh,{"data-testid":"content-card-carousel",children:[e.jsxRuntimeExports.jsxs(c,{alignItems:"flex-start",display:"flex",justify:"space-between",children:[e.jsxRuntimeExports.jsxs(c,{alignItems:"flex-start",display:"flex",flexDirection:"column",gap:.625,maxWidth:"800px",children:[e.jsxRuntimeExports.jsxs(e.Heading,{display:"inline",fontWeight:"semibold",lineSpacing:2.25,lineSpacingSm:1.75,size:"lg",sizeSm:"md",children:[i+" "," ",e.jsxRuntimeExports.jsx("span",{className:"inline",children:a})]}),e.jsxRuntimeExports.jsx(e.Text,{lineSpacing:1.5,lineSpacingSm:1.25,size:"md",sizeSm:"sm",children:n})]}),e.jsxRuntimeExports.jsx(wh,{containerRef:o,id:"desktop"})]}),e.jsxRuntimeExports.jsx(c,{alignSelf:"stretch",display:"flex",id:"carousel",pb:1,pr:2.25,ref:o,scroll:"x",children:e.jsxRuntimeExports.jsx(c,{alignItems:"flex-start",display:"flex",gap:1.5,width:"max-content",children:r.map(((t,n)=>e.jsxRuntimeExports.jsx(vh,{...t},`${n}-${t.title}`)))})}),e.jsxRuntimeExports.jsx(wh,{containerRef:o,id:"mobile"})]})},exports.Divider=Eh,exports.Editable=({children:t,currentValue:n,externalLink:r,isEditing:i,label:a,name:o,tooltip:s})=>{if(i)return e.jsxRuntimeExports.jsx("div",{children:t});const l=hs(n)?"":n,u=String(r??l);return e.jsxRuntimeExports.jsxs(c,{children:[e.jsxRuntimeExports.jsx(rs,{htmlFor:o,label:a,tooltip:s,weight:"bold"}),u.startsWith("https://")?e.jsxRuntimeExports.jsx(j,{href:u,children:l}):e.jsxRuntimeExports.jsx(e.Text,{size:"md",children:l})]})},exports.EmptyState=({cancelButton:t,confirmButton:n,description:r,imageSrc:i="integrates/empty/addRoot",padding:a=1.25,title:o,size:s="md"})=>{const l=void 0!==(n??t);return e.jsxRuntimeExports.jsxs(Sh,{$padding:a,children:[e.jsxRuntimeExports.jsx(Dh,{children:e.jsxRuntimeExports.jsx(Op,{alt:"empty-icon",publicId:i})}),e.jsxRuntimeExports.jsx(e.Heading,{fontWeight:"bold",lineSpacing:1.75,mb:.25,size:Ch[s].title,textAlign:"center",children:o}),e.jsxRuntimeExports.jsx(e.Text,{mb:l?2:void 0,size:Ch[s].description,textAlign:"center",children:r}),l?e.jsxRuntimeExports.jsxs(jh,{children:[t&&e.jsxRuntimeExports.jsx(kh,{buttonProps:t,variant:"tertiary"}),n&&e.jsxRuntimeExports.jsx(kh,{buttonProps:n,variant:"primary"})]}):void 0]})},exports.FilePreview=C,exports.FixedTabs=({items:t})=>e.jsxRuntimeExports.jsx(Wh,{children:t.map((({isActive:t,label:n,onClick:r},i)=>e.jsxRuntimeExports.jsx(Uh,{className:t?"active":"",onClick:r,type:"button",children:e.jsxRuntimeExports.jsx(e.Heading,{color:"inherit",fontWeight:"semibold",size:"sm",sizeSm:"xs",children:n})},`${n}-${i}`)))}),exports.Form=Ph,exports.FormItem=ND,exports.GridContainer=Th,exports.GroupSelector=({isOpen:r=!0,items:i,handleNewOrganization:o,onSelect:s,onClose:l,selectedItem:u,title:d,variant:p})=>{const h=n.useTheme(),[f,m]=t.useState(i),[g,y]=t.useState(""),b=t.useCallback((e=>{m((t=>t.filter((t=>String(t.name).toLowerCase().includes(e.toLocaleLowerCase())))))}),[m]),x=t.useCallback((e=>{e.currentTarget&&(y(e.currentTarget.value),b(e.currentTarget.value))}),[y,b]);return t.useEffect((()=>{m(i),b(g)}),[i,b,g]),r?a.createPortal(e.jsxRuntimeExports.jsx(c,{className:"comp-modal fixed inset-0 overflow-auto",zIndex:99999,children:e.jsxRuntimeExports.jsx(c,{alignItems:"center",bgColor:"rgb(52 64 84 / 70%)",display:"flex",height:"100vh",justify:"center",left:"0",top:"0",width:"100%",children:e.jsxRuntimeExports.jsxs(_h,{$itemsLength:f.length,children:[e.jsxRuntimeExports.jsxs(c,{alignItems:"center",display:"flex",justify:"space-between",children:[e.jsxRuntimeExports.jsx(e.Text,{color:h.palette.gray[800],fontWeight:"bold",size:"lg",children:d}),e.jsxRuntimeExports.jsx(v,{icon:"xmark",iconColor:h.palette.gray[400],iconSize:"xs",iconType:"fa-light",onClick:l,variant:"ghost"})]}),e.jsxRuntimeExports.jsx(c,{mt:1,children:e.jsxRuntimeExports.jsx(Lh,{onInput:x,placeholder:"Search"})}),e.jsxRuntimeExports.jsx(Eh,{mb:1,mt:1}),e.jsxRuntimeExports.jsxs(c,{display:"inline-flex",gap:1,maxHeight:"332px",scroll:"y",wrap:"wrap",children:["organization-selector"===p?e.jsxRuntimeExports.jsx(Mh,{onClick:o,children:e.jsxRuntimeExports.jsxs(c,{alignItems:"center",display:"flex",children:[e.jsxRuntimeExports.jsx(e.Icon,{icon:"square-plus",iconColor:h.palette.gray[400],iconSize:"xs",iconType:"fa-light",mr:.5}),e.jsxRuntimeExports.jsx(e.Text,{color:h.palette.gray[400],size:"sm",children:"New organization"})]})}):void 0,f.map((t=>e.jsxRuntimeExports.jsx(Ah,{isSelected:u.toLowerCase()===t.name,label:t.name.charAt(0).toUpperCase()+t.name.slice(1),onSelect:s},t.name)))]})]})})}),document.body):e.jsxRuntimeExports.jsx("div",{})},exports.IconButton=v,exports.IndicatorCard=({description:t,height:r="auto",leftIconName:i,children:a,rightIconName:o,title:s,tooltipId:l,tooltipTip:u,tooltipPlace:d="bottom",variant:p="centered",width:h="318px"})=>{const f=n.useTheme(),m="centered"===p,g=e.jsxRuntimeExports.jsx(e.Tooltip,{icon:o??i,iconColor:f.palette.gray[800],id:l,place:d,tip:u});return e.jsxRuntimeExports.jsxs(c,{alignItems:m?"center":"flex-start",bgColor:f.palette.gray[50],border:`1px solid ${f.palette.gray[200]}`,borderRadius:"4px",display:"inline-flex",flexDirection:m?"column":"column-reverse",gap:.5,height:r,justify:"center",padding:[1.25,1.25,1.25,1.25],width:h,children:[e.jsxRuntimeExports.jsxs(c,{alignItems:"center",display:"flex",gap:.5,children:[m||Bh(i)?void 0:g,e.jsxRuntimeExports.jsx(e.Text,{color:m?f.palette.gray[800]:f.palette.gray[400],size:"md",textAlign:m?"center":"start",children:t}),m||Bh(o)?void 0:g]}),e.jsxRuntimeExports.jsxs(c,{alignItems:"center",display:"flex",gap:.5,my:.5,children:[m&&!Bh(i)?g:void 0,e.jsxRuntimeExports.jsxs("div",{style:{display:"flex",gap:"12px"},children:[Bh(s)?void 0:e.jsxRuntimeExports.jsx(e.Heading,{fontWeight:"bold",size:"md",children:s}),a]}),m&&!Bh(o)?g:void 0]})]})},exports.InfoSidebar=({actions:t,children:r,header:i,title:a,tabs:o,footer:s})=>{const l=n.useTheme();return e.jsxRuntimeExports.jsxs(c,{alignItems:"flex-start",bgColor:l.palette.white,borderLeft:`1px solid ${l.palette.gray[300]}`,display:"flex",flexDirection:"column",maxHeight:"750px",width:"480px",children:[e.jsxRuntimeExports.jsxs(c,{alignItems:"flex-start",alignSelf:"stretch",borderBottom:`1px solid ${l.palette.gray[300]}`,display:"flex",gap:.25,justify:"space-between",px:1.25,py:1,children:[e.jsxRuntimeExports.jsxs(c,{display:"flex",flexDirection:"column",gap:.25,children:[e.jsxRuntimeExports.jsx(e.Text,{color:l.palette.gray[800],fontWeight:"bold",lineSpacing:1.75,size:"xl",children:a}),i]}),t&&e.jsxRuntimeExports.jsx(c,{display:"flex",gap:.25,children:t.map((({icon:t,onClick:n},r)=>e.jsxRuntimeExports.jsx(v,{icon:t??"paper-plane",iconColor:l.palette.gray[400],iconSize:"xxs",iconType:"fa-light",onClick:n,variant:"ghost"},`${r}-${t}`)))})]}),e.jsxRuntimeExports.jsx(c,{display:"flex",pt:.25,width:"100%",children:e.jsxRuntimeExports.jsx(Yh,{items:o})}),e.jsxRuntimeExports.jsx(c,{alignSelf:"stretch",display:"flex",flexDirection:"column",px:1.25,py:1,scroll:"y",children:r}),s&&e.jsxRuntimeExports.jsx(c,{alignSelf:"stretch",borderTop:`1px solid ${l.palette.gray[300]}`,display:"flex",gap:.5,justify:"end",px:1.25,py:1,children:s.map((({icon:t,text:n,onClick:r},i)=>e.jsxRuntimeExports.jsx(e.Button,{icon:t,onClick:r,variant:0===i?"primary":"tertiary",width:"100%",children:n},`${i}-${n}`)))})]})},exports.Input=cl,exports.InputDate=nl,exports.InputDateRange=al,exports.InputDateTime=ul,exports.InputFile=hl,exports.InputNumber=vl,exports.InputNumberRange=bl,exports.InputTags=ml,exports.InteractiveCard=({category:t,description:r,href:i,icon:a,location:o,title:s})=>{const l=n.useTheme();return e.jsxRuntimeExports.jsxs(Jh,{children:[e.jsxRuntimeExports.jsxs(c,{alignItems:"flex-start",display:"flex",flexDirection:"column",gap:1.5,height:"100%",id:"uncover",justify:"space-between",children:[e.jsxRuntimeExports.jsxs("div",{className:"flex flex-col gap-0.5",children:[e.jsxRuntimeExports.jsx(e.Text,{color:l.palette.white,size:"sm",sizeSm:"xs",children:t}),e.jsxRuntimeExports.jsx(e.Heading,{color:l.palette.white,fontWeight:"bold",lineSpacing:2.25,lineSpacingSm:1.75,size:"lg",sizeSm:"md",children:s})]}),e.jsxRuntimeExports.jsxs("div",{className:"flex flex-col gap-0.5",children:[e.jsxRuntimeExports.jsx(e.Text,{color:l.palette.white,size:"sm",sizeSm:"xs",children:"Location"}),e.jsxRuntimeExports.jsx(e.Text,{color:l.palette.white,fontWeight:"bold",lineSpacing:1.5,lineSpacingSm:1.25,size:"md",sizeSm:"sm",children:o})]})]}),e.jsxRuntimeExports.jsxs(c,{alignItems:"self-start",display:"flex",flexDirection:"column",gap:2,height:"100%",id:"hovered",justify:"space-between",pt:1,children:[e.jsxRuntimeExports.jsx(e.Heading,{color:l.palette.white,fontWeight:"bold",lineSpacing:1.75,lineSpacingSm:1.5,size:"md",sizeSm:"sm",children:s}),e.jsxRuntimeExports.jsxs("div",{className:"flex flex-col gap-8",children:[e.jsxRuntimeExports.jsx(e.Text,{color:l.palette.gray[100],lineSpacing:1.5,lineSpacingSm:1.25,size:"md",sizeSm:"sm",children:r}),e.jsxRuntimeExports.jsx(e.Button,{external:!0,href:i,variant:"link",width:"max-content",children:"Download now"})]})]}),e.jsxRuntimeExports.jsx(Qh,{icon:a})]})},exports.LanguageSelector=({items:n,handleClick:r,mode:i="light"})=>{const a=n??of,[o,s]=t.useState(a[0].text),l=t.useCallback((e=>()=>{r(e.text),s(e.text)}),[r]);return e.jsxRuntimeExports.jsxs(rf,{children:[e.jsxRuntimeExports.jsxs(tf,{className:i,children:[e.jsxRuntimeExports.jsx(e.Icon,{icon:"globe",iconSize:"xs",iconType:"fa-light"}),o]}),e.jsxRuntimeExports.jsx(nf,{children:a.map(((t,n)=>e.jsxRuntimeExports.jsx(af,{disabled:t.disabled,mode:i,onClick:l(t),text:t.text},`${t.text}_${n}`)))})]})},exports.Link=j,exports.ListItem=({children:r,disabled:i=!1,icon:a,iconType:o="fa-light",href:s,onClick:l,onKeyDown:u,selected:d=!1,value:p,...h})=>{const f=n.useTheme().palette.gray[i?300:800],m=i?t.Children.map(r,(e=>t.isValidElement(e)?t.cloneElement(e,{disabled:i,...e.props}):e)):r;return e.jsxRuntimeExports.jsxs(sf,{"aria-disabled":i,"aria-label":p,"aria-selected":d,"data-testid":p,onClick:l,onKeyDown:u,value:p,...h,children:[void 0!==a||void 0!==p?e.jsxRuntimeExports.jsxs(c,{alignItems:"center",display:"flex",gap:.625,children:[a?e.jsxRuntimeExports.jsx(e.Icon,{disabled:i,icon:a,iconColor:f,iconSize:"xs",iconType:o}):null,void 0===s?m:e.jsxRuntimeExports.jsx(j,{href:s,children:m})]}):null,d?e.jsxRuntimeExports.jsx(e.Icon,{disabled:i,icon:"check",iconColor:f,iconSize:"xs",iconType:o}):null]})},exports.ListItemsWrapper=lf,exports.LittleFlag=({bgColor:t,children:n,txtDecoration:r,ml:i=1})=>e.jsxRuntimeExports.jsx(uf,{$bgColor:t,$txtDecoration:r,className:`ml-${i}`,children:n}),exports.Loading=({color:t="red",label:r,size:i})=>{const a=n.useTheme();return e.jsxRuntimeExports.jsxs(c,{alignItems:"center",display:"flex",children:[e.jsxRuntimeExports.jsxs(ff,{$size:i,viewBox:"0 0 100 100",children:[e.jsxRuntimeExports.jsx(gf,{$color:t,cx:"50",cy:"50",r:"45"}),e.jsxRuntimeExports.jsx(mf,{$color:t,cx:"50",cy:"50",r:"45"})]}),r&&e.jsxRuntimeExports.jsx(e.Text,{color:"red"===t?a.palette.gray[700]:a.palette.white,ml:.5,size:"sm",children:r})]})},exports.Logo=({publicId:t,variant:n})=>e.jsxRuntimeExports.jsx(c,{...yf[n],children:e.jsxRuntimeExports.jsx(Op,{alt:"logo",publicId:t})}),exports.LogoCarousel=({fusion:t=!1,logos:n=wf})=>e.jsxRuntimeExports.jsxs(vf,{children:[t&&e.jsxRuntimeExports.jsx(bf,{className:"left"}),e.jsxRuntimeExports.jsx(xf,{children:[...n,...n].map(((t,n)=>e.jsxRuntimeExports.jsx(Op,{alt:`${t}-${n}`,height:"80px",plugins:[Nc()],publicId:t,width:"140px"},`${t}-${n}`)))}),t&&e.jsxRuntimeExports.jsx(bf,{className:"right"})]}),exports.Lottie=t=>{const{size:n}=t;return e.jsxRuntimeExports.jsx(jf,{$size:n,...t})},exports.Menu=({children:t,commitSha:r,commitShortSha:i,parentElement:a,userInfo:o,setVisibility:s})=>{const l=n.useTheme(),{userName:u,email:d,phone:p,userRole:h}=o;return Kl(a,(()=>{s(!1)})),e.jsxRuntimeExports.jsxs(lf,{children:[e.jsxRuntimeExports.jsx("li",{className:"user-info",children:e.jsxRuntimeExports.jsxs(c,{display:"inline-flex",gap:.25,width:"100%",children:[e.jsxRuntimeExports.jsxs(c,{display:"flex",flexDirection:"column",gap:.25,width:"100%",children:[e.jsxRuntimeExports.jsx(e.Text,{color:l.palette.gray[800],fontWeight:"bold",size:"sm",children:u}),e.jsxRuntimeExports.jsx(e.Text,{color:l.palette.gray[400],size:"sm",children:d}),Bh(p)?void 0:e.jsxRuntimeExports.jsx(e.Text,{color:l.palette.gray[400],size:"sm",children:p})]}),e.jsxRuntimeExports.jsx(c,{children:e.jsxRuntimeExports.jsx(ls,{tagLabel:h,variant:"role"})})]})}),e.jsxRuntimeExports.jsx(Eh,{}),t,e.jsxRuntimeExports.jsx(Eh,{}),e.jsxRuntimeExports.jsx("li",{className:"commit-info",children:e.jsxRuntimeExports.jsx(j,{href:`https://gitlab.com/fluidattacks/universe/-/tree/${r}`,iconPosition:"hidden",children:e.jsxRuntimeExports.jsx(e.Text,{color:l.palette.gray[400],size:"xs",children:`commit : ${i}`})})})]})},exports.MessageBanner=({message:r,onClickButton:i,buttonText:a,buttonFontWeight:o="regular",icon:s,onClose:l,variant:u="web"})=>{const d=n.useTheme(),[p,h]=t.useState(!0),f=t.useCallback((()=>{h(!1),null==l||l()}),[l]),m=(e=>"platform"===e?{normal:"sm",small:void 0}:{normal:"md",small:"sm"})(u);return e.jsxRuntimeExports.jsxs(c,{alignItems:"center",bgGradient:d.palette.gradients["01"],display:p?"flex":"none",id:"message-banner",justify:"space-between",padding:[.75,.75,.75,.75],children:[e.jsxRuntimeExports.jsxs(c,{display:"flex",gap:.5,justify:"center",width:"100%",children:[e.jsxRuntimeExports.jsx(c,{children:"string"==typeof r?e.jsxRuntimeExports.jsx(e.Text,{color:d.palette.white,display:"inline",size:m.normal,sizeSm:m.small,children:r}):r}),i?e.jsxRuntimeExports.jsxs(Cf,{onClick:i,children:[e.jsxRuntimeExports.jsx(e.Text,{color:d.palette.white,fontWeight:o,size:m.normal,sizeSm:m.small,textDecoration:"underline",children:a}),e.jsxRuntimeExports.jsx(e.Icon,{icon:s??"arrow-right",iconColor:d.palette.white,iconSize:"xs",iconType:"bold"===o?"fa-regular":"fa-light"})]}):void 0]}),e.jsxRuntimeExports.jsx(e.Icon,{clickable:!0,hoverColor:d.palette.primary[200],icon:"close",iconColor:d.palette.white,iconSize:"xs",iconType:"fa-light",onClick:f})]})},exports.Modal=fh,exports.ModalConfirm=eh,exports.Notification=({description:r,onClose:i,title:a,variant:o})=>{const s=n.useTheme(),l=t.useCallback((()=>{null==i||i()}),[i]);return e.jsxRuntimeExports.jsxs(Rf,{$variant:o,className:`notification notification__${o}`,children:[e.jsxRuntimeExports.jsxs(Pf,{$variant:o,children:[e.jsxRuntimeExports.jsx(e.Icon,{icon:"circle",iconClass:"ellipse-1",iconSize:"xs"}),e.jsxRuntimeExports.jsx(e.Icon,{icon:"circle",iconClass:"ellipse-2",iconSize:"xs"}),e.jsxRuntimeExports.jsx(e.Icon,{icon:$f(o),iconClass:"icon",iconSize:"xs",iconType:"fa-light"})]}),e.jsxRuntimeExports.jsxs(c,{pr:1.5,children:[e.jsxRuntimeExports.jsx(e.Heading,{fontWeight:"bold",size:"xs",children:a}),e.jsxRuntimeExports.jsx(e.Text,{size:"sm",whiteSpace:"break-spaces",wordWrap:"break-word",children:r})]}),e.jsxRuntimeExports.jsx(v,{height:"fit-content",icon:"close",iconColor:s.palette.gray[400],iconSize:"xs",iconType:"fa-light",onClick:l,px:.125,py:.125,variant:"ghost"})]})},exports.NotificationSign=Zh,exports.NumberInput=Mf,exports.OAuthSelector=({align:r="end",buttonLabel:i="Add Credential",children:a,id:o,manualOption:s,providers:l})=>{const u=n.useTheme(),[d,p]=t.useState(!1),h=t.useRef(null);Kl(h.current,(()=>{p(!1)}),!0);const f=t.useCallback((e=>{null==s||s.onClick(e),p(!1)}),[s]),m=t.useCallback((()=>{p((e=>!e))}),[p]),g=t.useCallback((e=>t=>{var n;null==(n=l[e])||n.onClick(t),p(!1)}),[l]);return e.jsxRuntimeExports.jsxs(c,{alignItems:r,display:"flex",flexDirection:"column",position:"relative",ref:h,width:"max-content",zIndex:10,children:[e.jsxRuntimeExports.jsx(e.Button,{icon:"plus",onClick:m,variant:"primary",children:i}),e.jsxRuntimeExports.jsxs(c,{alignItems:"center",bgColor:"#fff",border:`1px solid ${u.palette.gray[200]}`,borderRadius:"4px",display:"flex",gap:.5,height:"78px",id:o,pb:.5,pl:.75,position:"absolute",pr:.75,pt:.5,shadow:"md",top:"40px",visibility:d?"visible":"hidden",zIndex:10,children:[Object.keys(l).map((t=>e.jsxRuntimeExports.jsx(If,{onClick:g(t),provider:t},t))),void 0===s?void 0:e.jsxRuntimeExports.jsx(If,{icon:"square-plus",label:s.label??"Add manually",onClick:f}),a]})]})},exports.OptionContainer=If,exports.OutlineContainer=us,exports.PhoneInput=Hl,exports.PopUp=({_portal:r=!1,cancelButton:i,darkBackground:o=!1,children:s,confirmButton:l,container:u,description:d,highlightDescription:p="",image:h,maxWidth:f,title:m,titleColor:g})=>{const y=n.useTheme(),{alt:v,src:b,width:x="77px",height:w="77px"}=h,E=t.useCallback((()=>{null==i||i.onClick()}),[i]),k=t.useCallback((()=>{null==l||l.onClick()}),[l]),S=e.jsxRuntimeExports.jsx(c,{alignItems:"center",bgColor:o?"rgba(52, 64, 84, 70%)":"",display:"flex",height:"100vh",justify:"center",left:"0",position:r?"fixed":"absolute",top:"0px",width:"100%",zIndex:99999,children:e.jsxRuntimeExports.jsxs(c,{bgColor:y.palette.white,border:`1px solid ${y.palette.gray[200]}`,borderRadius:"8px",display:"inline-flex",flexDirection:"column",maxWidth:f,pb:2.5,pl:2.5,pr:2.5,pt:2.5,shadow:"lg",width:"100%",zIndex:11,children:[e.jsxRuntimeExports.jsxs(c,{alignItems:"center",display:"flex",flexDirection:"column",width:"100%",children:[e.jsxRuntimeExports.jsx(c,{children:e.jsxRuntimeExports.jsx(Op,{alt:v,height:w,publicId:b,width:x})}),e.jsxRuntimeExports.jsxs(c,{display:"flex",flexDirection:"column",gap:.5,mb:1.5,mt:1.5,children:[e.jsxRuntimeExports.jsx(e.Heading,{color:g,fontWeight:"bold",lineSpacing:2.5,size:"lg",textAlign:"center",children:m}),e.jsxRuntimeExports.jsx(Vf,{description:d,highlightDescription:p})]})]}),s&&e.jsxRuntimeExports.jsx(c,{mb:1,scroll:"y",children:e.jsxRuntimeExports.jsx(c,{height:"100%",children:s})}),e.jsxRuntimeExports.jsxs(c,{alignItems:"flex-start",display:"flex",gap:1,justify:"center",children:[e.isObject(l)?e.jsxRuntimeExports.jsx(e.Button,{onClick:k,variant:(null==l?void 0:l.variant)??"primary",children:null==l?void 0:l.text},null==l?void 0:l.key):void 0,e.isObject(i)?e.jsxRuntimeExports.jsx(e.Button,{onClick:E,variant:(null==i?void 0:i.variant)??"tertiary",children:null==i?void 0:i.text},null==i?void 0:i.key):void 0]})]})});return r?a.createPortal(S,u??document.body):S},exports.PremiumFeature=Ff,exports.PriorityScore=({score:t})=>{const r=n.useTheme(),i=t>66||0===t?"priority-bars-high":t<=33?"priority-bars-low":"priority-bars-medium";return e.jsxRuntimeExports.jsxs(c,{alignItems:"center",display:"inline-flex",gap:.25,children:[e.jsxRuntimeExports.jsx(e.Icon,{icon:i,iconClass:t<=66?"fa-kit-duotone":"",iconColor:t>0?r.palette.primary[500]:r.palette.gray[200],iconSize:"xs",iconType:"fa-kit",secondaryColor:r.palette.gray[200]}),e.jsxRuntimeExports.jsx(e.Text,{color:r.palette.gray[800],size:"sm",textAlign:"right",children:t+"%"})]})},exports.Progress=({progressTime:r=10,onComplete:i})=>{const a=n.useTheme(),[o,s]=t.useState(0);return t.useEffect((()=>{100===o&&(null==i||i())}),[o,i]),t.useEffect((()=>{const e=setInterval((()=>{s((e=>100===e?0:e+1))}),1e3*r/100);return()=>{clearInterval(e)}}),[o,r]),e.jsxRuntimeExports.jsx(c,{bgColor:a.palette.gray[200],height:"4px",children:e.jsxRuntimeExports.jsx(Lf,{$animationTime:r,bgGradient:a.palette.gradients["01"],height:"100%",width:`${o}%`})})},exports.RadioButton=Vp,exports.ScrollUpButton=({scrollerId:n="dashboard",visibleAt:r=500})=>{const[i,a]=t.useState(!1),[o,s]=t.useState(null);t.useEffect((()=>{s(document.getElementById(n)),null==o||o.addEventListener("scroll",(()=>{a(o.scrollTop>r)}))}),[o,n,r]);const l=t.useCallback((()=>{null==o||o.scrollTo({behavior:"smooth",top:0})}),[o]);return i?e.jsxRuntimeExports.jsx(Nf,{children:e.jsxRuntimeExports.jsx(v,{height:"40px",icon:"arrow-up",iconSize:"sm",id:"scroll-up",onClick:l,width:"40px"})}):null},exports.Search=Lh,exports.SearchBar=({items:n,placeholder:r="Search",refine:i,query:a})=>{const[o,s]=t.useState(a),[l,u]=t.useState(!1),c=t.useRef(null),d=t.useRef(null),p=o.length>=2,h=t.useCallback((e=>{s(e),i(e)}),[i]),f=t.useCallback((()=>{h("")}),[h]),m=t.useCallback((()=>{u(!0)}),[]),g=t.useCallback((e=>{h(e.currentTarget.value)}),[h]),y=t.useCallback((e=>{e.preventDefault(),e.stopPropagation(),f(),d.current&&d.current.focus()}),[f]),v=t.useCallback((e=>{e.preventDefault(),e.stopPropagation(),d.current&&d.current.blur()}),[]);return Kl(c.current,(()=>{f(),u(!1)}),!0),e.jsxRuntimeExports.jsxs(Uf,{ref:c,children:[e.jsxRuntimeExports.jsxs(Wf,{action:"",noValidate:!0,onReset:y,onSubmit:v,role:"search",children:[e.jsxRuntimeExports.jsxs("div",{className:"flex gap-2 w-full",children:[e.jsxRuntimeExports.jsx("div",{className:"h-10 p-2",children:e.jsxRuntimeExports.jsx(e.Icon,{icon:"magnifying-glass",iconSize:"sm",iconType:"fa-light"})}),e.jsxRuntimeExports.jsx(qf,{autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",maxLength:512,onChange:g,onFocus:m,placeholder:r,ref:d,spellCheck:!1,type:"search",value:o})]}),p&&e.jsxRuntimeExports.jsx(Kf,{type:"reset",children:e.jsxRuntimeExports.jsx(e.Icon,{icon:"xmark",iconSize:"sm",iconType:"fa-light"})})]}),l&&o.length<2&&e.jsxRuntimeExports.jsxs(Hf,{children:[e.jsxRuntimeExports.jsx(e.Text,{color:e.theme.palette.gray[400],fontWeight:"bold",lineSpacing:1.5,size:"md",sizeSm:"sm",children:"Suggested"}),e.jsxRuntimeExports.jsx("div",{className:"flex flex-col items-start self-stretch",children:Gf.map((({hit:t,icon:n},r)=>e.jsxRuntimeExports.jsx(Zf,{hit:t,icon:n,showIcon:!0},`${n}-${r}`)))}),e.jsxRuntimeExports.jsx(e.Text,{color:e.theme.palette.gray[400],fontWeight:"bold",lineSpacing:1.5,size:"md",sizeSm:"sm",children:"Can’t find what you’re looking for?"}),e.jsxRuntimeExports.jsx(Zf,{hit:Yf.hit,icon:Yf.icon,showIcon:!0})]}),p&&n.length>0&&e.jsxRuntimeExports.jsxs(Hf,{$showHits:p,children:[e.jsxRuntimeExports.jsx(e.Text,{color:e.theme.palette.gray[400],fontWeight:"bold",lineSpacing:1.5,size:"md",sizeSm:"sm",children:"Results"}),e.jsxRuntimeExports.jsx("div",{className:"flex flex-col items-start self-stretch",children:n.map((t=>e.jsxRuntimeExports.jsx(Zf,{hit:t},t.objectID)))})]}),p&&0===n.length&&e.jsxRuntimeExports.jsx(Hf,{$empty:0===n.length,children:e.jsxRuntimeExports.jsxs("div",{className:"items-center\tflex flex-col\tgap-4 py-[90px] w-full",children:[e.jsxRuntimeExports.jsx(Op,{height:96,publicId:"airs/search-bar/empty-state-icon",width:96}),e.jsxRuntimeExports.jsx(e.Heading,{display:"flex",size:"sm",sizeSm:"xs",textAlign:"center",children:"No results found"}),e.jsxRuntimeExports.jsxs(e.Text,{display:"flex",lineSpacing:1.5,size:"md",sizeSm:"sm",textAlign:"center",children:[`“${o}” did not match.`,e.jsxRuntimeExports.jsx("br",{}),"Please try again."]}),e.jsxRuntimeExports.jsx(e.Button,{onClick:f,variant:"secondary",children:"Clear search"})]})})]})},exports.SeverityBadge=({textL:t,textR:r,variant:i})=>{const a=n.useTheme(),{bgColor:o,colorL:s,colorR:l}=Jf[i];return e.jsxRuntimeExports.jsxs(c,{alignItems:"flex-start",display:"inline-flex",children:[t?e.jsxRuntimeExports.jsx(c,{alignItems:"center",bgColor:a.palette.white,border:`1px solid ${o}`,borderRadius:"4px 0px 0px 4px",display:"flex",justify:"center",padding:[0,.25,0,.25],children:e.jsxRuntimeExports.jsx(e.Text,{color:s,size:"xs",children:t})}):void 0,e.jsxRuntimeExports.jsx(c,{alignItems:"center",bgColor:o,border:`1px solid ${o}`,borderRadius:t?"0px 4px 4px 0px":"4px",display:"flex",padding:t?[0,.25,0,.125]:[0,.25,0,.25],pb:.125,pl:.125,pr:.125,pt:.125,children:e.jsxRuntimeExports.jsx(e.Text,{color:l,size:"xs",children:r})})]})},exports.SeverityOverview=({critical:t,high:n,medium:r,low:i})=>e.jsxRuntimeExports.jsxs(c,{alignItems:"center",display:"inline-flex",gap:1,children:[e.jsxRuntimeExports.jsx(Pm,{value:t,variant:"critical"}),e.jsxRuntimeExports.jsx(Pm,{value:n,variant:"high"}),e.jsxRuntimeExports.jsx(Pm,{value:r,variant:"medium"}),e.jsxRuntimeExports.jsx(Pm,{value:i,variant:"low"})]}),exports.ShowOnHover=({visibleElement:t,hiddenElement:n})=>e.jsxRuntimeExports.jsxs($m,{children:[t,e.jsxRuntimeExports.jsx(c,{display:"none",position:"absolute",top:"100%",zIndex:10,children:n})]}),exports.SlideOutMenu=({children:r,closeIconId:i="close-menu",isOpen:a,items:o,onClose:s,primaryButtonText:l,primaryOnClick:u,secondaryButtonText:d,secondaryOnClick:p,title:h})=>{const f=n.useTheme(),m=t.useRef(null),g=t.useCallback((e=>()=>{e(),s()}),[s]);return Kl(m.current,(()=>{s()}),!0),e.jsxRuntimeExports.jsx(Hx,{features:Gx,children:e.jsxRuntimeExports.jsx(Jx,{animate:a?{display:"block",x:0}:{transitionEnd:{display:"none"},x:"100%"},initial:{display:"none",x:"100%"},ref:m,transition:{bounce:0,duration:.6,type:"spring"},children:e.jsxRuntimeExports.jsxs(c,{height:"100%",position:"relative",children:[e.jsxRuntimeExports.jsxs(c,{alignItems:"center",bgColor:f.palette.white,borderBottom:"1px solid",borderColor:f.palette.gray[200],display:"flex",gap:1.25,justify:"space-between",padding:[1.25,1.25,1.25,1.25],position:"sticky",top:"0",zIndex:40,children:[e.jsxRuntimeExports.jsx(e.Text,{color:f.palette.black,display:"inline",fontWeight:"bold",size:"xl",children:h}),e.jsxRuntimeExports.jsx(v,{icon:"close",iconColor:f.palette.gray[400],iconSize:"xs",iconTransform:"grow-4",iconType:"fa-light",id:i,onClick:s,px:.25,py:.25,variant:"ghost"})]}),e.jsxRuntimeExports.jsxs(c,{display:"flex",flexDirection:"column",justify:"space-between",minHeight:"100vh",children:[e.jsxRuntimeExports.jsxs(c,{py:1.25,children:[(o??[]).map((({customBadge:t,description:n,icon:r,onClick:i,requiresUpgrade:a,title:o})=>e.jsxRuntimeExports.jsx(Yx,{customBadge:t,description:n,icon:r,onClick:g(i),requiresUpgrade:a,title:o},o))),r&&e.jsxRuntimeExports.jsx(c,{px:1.25,children:r})]}),void 0===l?void 0:e.jsxRuntimeExports.jsxs(c,{alignItems:"center",bgColor:f.palette.white,borderColor:f.palette.gray[200],borderTop:"1px solid",bottom:"0",display:"flex",gap:1.25,justify:"end",padding:[1.25,1.25,1.25,1.25],position:"sticky",width:"100%",zIndex:40,children:[void 0===d?void 0:e.jsxRuntimeExports.jsx(e.Button,{color:`${f.palette.primary[500]} !important`,onClick:p,pl:.5,pr:.5,variant:"ghost",children:d}),e.jsxRuntimeExports.jsx(e.Button,{onClick:u,type:"submit",children:l})]})]})]})})})},exports.Slider=r=>{const i=n.useTheme(),a=t.useRef(null),{minValue:o=0,maxValue:s=100}=r,l=function(e={}){let{locale:n}=Ui();return t.useMemo((()=>new oa(n,e)),[n,e])}(),u=function(e){const{isDisabled:n=!1,minValue:r=ew,maxValue:i=tw,numberFormatter:a,step:o=nw,orientation:s="horizontal"}=e;let l=t.useMemo((()=>{let e=(i-r)/10;return e=hr(e,0,e+o,o),Math.max(e,o)}),[o,i,r]),u=t.useCallback((e=>null==e?void 0:e.map(((t,n)=>hr(t,0===n?r:e[n-1],n===e.length-1?i:e[n+1],o)))),[r,i,o]),c=t.useMemo((()=>u(iw(e.value))),[e.value]),d=t.useMemo((()=>{var t;return u(null!==(t=iw(e.defaultValue))&&void 0!==t?t:[r])}),[e.defaultValue,r]),p=aw(e.value,e.defaultValue,e.onChange),h=aw(e.value,e.defaultValue,e.onChangeEnd);const[f,m]=cr(c,d,p),[g,y]=t.useState(new Array(f.length).fill(!1)),v=t.useRef(new Array(f.length).fill(!0)),[b,x]=t.useState(void 0),w=t.useRef(f),E=t.useRef(g);function k(e){return(e-r)/(i-r)}function S(e){return 0===e?r:f[e-1]}function D(e){return e===f.length-1?i:f[e+1]}function j(e){return v.current[e]}function C(e,t){var r;!n&&j(e)&&(t=hr(t,S(e),D(e),o),r=rw(w.current,e,t),w.current=r,m(r))}function R(e){return a.format(e)}function P(e){return dr((t=e*(i-r)+r,Math.round((t-r)/o)*o+r),r,i);var t}return{values:f,getThumbValue:e=>f[e],setThumbValue:C,setThumbPercent:function(e,t){C(e,P(t))},isThumbDragging:e=>g[e],setThumbDragging:function(e,t){if(n||!j(e))return;t&&(w.current=f);const r=E.current[e];var i;E.current=rw(E.current,e,t),i=E.current,E.current=i,y(i),h&&r&&!E.current.some(Boolean)&&h(w.current)},focusedThumb:b,setFocusedThumb:x,getThumbPercent:e=>k(f[e]),getValuePercent:k,getThumbValueLabel:e=>R(f[e]),getFormattedValue:R,getThumbMinValue:S,getThumbMaxValue:D,getPercentValue:P,isThumbEditable:j,setThumbEditable:function(e,t){v.current[e]=t},incrementThumb:function(e,t=1){let n=Math.max(t,o);C(e,hr(f[e]+n,r,i,o))},decrementThumb:function(e,t=1){let n=Math.max(t,o);C(e,hr(f[e]-n,r,i,o))},step:o,pageSize:l,orientation:s,isDisabled:n}}({...r,numberFormatter:l}),d=((e,t,n)=>Math.round((n-e)/(t-e)*100))(o,s,u.getThumbValue(0)),{groupProps:p,trackProps:h}=function(e,n,r){let{labelProps:i,fieldProps:a}=xa(e),o="vertical"===e.orientation;var s;Xx.set(n,{id:null!==(s=i.id)&&void 0!==s?s:a.id,"aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"]});let{direction:l}=Ui(),{addGlobalListener:u,removeGlobalListener:c}=Hn();const d=t.useRef(null),p="rtl"===l,h=t.useRef(null),{moveProps:f}=ai({onMoveStart(){h.current=null},onMove({deltaX:e,deltaY:t}){if(!r.current)return;let{height:i,width:a}=r.current.getBoundingClientRect(),s=o?i:a;null==h.current&&null!=d.current&&(h.current=n.getThumbPercent(d.current)*s);let l=o?t:e;if((o||p)&&(l=-l),h.current+=l,null!=d.current&&r.current){const e=dr(h.current/s,0,1);n.setThumbPercent(d.current,e)}},onMoveEnd(){null!=d.current&&(n.setThumbDragging(d.current,!1),d.current=null)}});let m=t.useRef(void 0),g=(t,i,a,s)=>{if(r.current&&!e.isDisabled&&n.values.every(((e,t)=>!n.isThumbDragging(t)))){let{height:e,width:c,top:p,left:h}=r.current.getBoundingClientRect(),f=((o?s:a)-(o?p:h))/(o?e:c);("rtl"===l||o)&&(f=1-f);let g,v=n.getPercentValue(f),b=n.values.findIndex((e=>v-e<0));if(0===b)g=b;else if(-1===b)g=n.values.length-1;else{let e=n.values[b-1],t=n.values[b];g=Math.abs(e-v)<Math.abs(t-v)?b-1:b}g>=0&&n.isThumbEditable(g)?(t.preventDefault(),d.current=g,n.setFocusedThumb(g),m.current=i,n.setThumbDragging(d.current,!0),n.setThumbValue(g,v),u(window,"mouseup",y,!1),u(window,"touchend",y,!1),u(window,"pointerup",y,!1)):d.current=null}},y=e=>{var t,r;(null!==(r=e.pointerId)&&void 0!==r?r:null===(t=e.changedTouches)||void 0===t?void 0:t[0].identifier)===m.current&&(null!=d.current&&(n.setThumbDragging(d.current,!1),d.current=null),c(window,"mouseup",y,!1),c(window,"touchend",y,!1),c(window,"pointerup",y,!1))};return"htmlFor"in i&&i.htmlFor&&(delete i.htmlFor,i.onClick=()=>{var e;null===(e=document.getElementById(Qx(n,0)))||void 0===e||e.focus(),ei("keyboard")}),{labelProps:i,groupProps:{role:"group",...a},trackProps:kn({onMouseDown(e){0!==e.button||e.altKey||e.ctrlKey||e.metaKey||g(e,void 0,e.clientX,e.clientY)},onPointerDown(e){"mouse"===e.pointerType&&(0!==e.button||e.altKey||e.ctrlKey||e.metaKey)||g(e,e.pointerId,e.clientX,e.clientY)},onTouchStart(e){g(e,e.changedTouches[0].identifier,e.changedTouches[0].clientX,e.changedTouches[0].clientY)},style:{position:"relative",touchAction:"none"}},f),outputProps:{htmlFor:n.values.map(((e,t)=>Qx(n,t))).join(" "),"aria-live":"off"}}}({...r,"aria-label":"slider"},u,a);return e.jsxRuntimeExports.jsxs(c,{alignItems:"center",display:"inline-flex",gap:1.25,children:[e.jsxRuntimeExports.jsxs(ow,{...p,$min:o??0,$value:d,className:"slider",children:[e.jsxRuntimeExports.jsx("div",{...h,className:"track "+(u.isDisabled?"disabled":""),ref:a,children:e.jsxRuntimeExports.jsx(uw,{index:0,state:u,trackRef:a})}),e.jsxRuntimeExports.jsxs(sw,{children:[e.jsxRuntimeExports.jsx("p",{children:`${l.format(o)} (Low)`}),o<0&&e.jsxRuntimeExports.jsx("p",{children:"0"}),e.jsxRuntimeExports.jsx("p",{children:`${l.format(s)} (High)`})]})]}),e.jsxRuntimeExports.jsx(lw,{children:e.jsxRuntimeExports.jsx(e.Text,{color:i.palette.gray[800],size:"sm",textAlign:"right",children:u.getThumbValueLabel(0)})})]})},exports.StepLapse=({button:{disabled:n=!1,text:r,type:i="button",onClick:a},steps:o})=>{const[s,l]=t.useState(1),u=t.useCallback(((e,t)=>()=>{l((t=>t+e)),null==t||t()}),[]);return e.jsxRuntimeExports.jsx(dw,{children:o.map(((t,l)=>{const{content:d,title:p,nextAction:h,previousAction:f}=t,m=l+1,g=m<s?"completed":m===s?"current":"disabled";return e.jsxRuntimeExports.jsxs(pw,{children:[e.jsxRuntimeExports.jsx(c,{maxWidth:"40px",position:"relative",children:e.jsxRuntimeExports.jsx(fw,{$variant:g,children:"completed"===g?e.jsxRuntimeExports.jsx(e.Icon,{icon:"check",iconSize:"xs",iconType:"fa-solid"}):m})}),e.jsxRuntimeExports.jsxs(c,{ml:1.5,width:"100%",children:[e.jsxRuntimeExports.jsx(e.Heading,{fontWeight:"bold",lineSpacing:1.25,mb:1.5,size:"xs",children:p}),"current"===g&&e.jsxRuntimeExports.jsxs(c,{children:[d,e.jsxRuntimeExports.jsxs(hw,{children:[s>1&&e.jsxRuntimeExports.jsx(e.Button,{disabled:t.isDisabledPrevious??!1,onClick:u(-1,f),variant:"tertiary",children:"Previous"}),s<o.length?e.jsxRuntimeExports.jsx(e.Button,{disabled:t.isDisabledNext??!1,onClick:u(1,h),variant:"primary",children:"Next step"}):e.jsxRuntimeExports.jsx(e.Button,{disabled:n,onClick:a,type:i,variant:"primary",children:r})]})]})]})]},t.title)}))})},exports.Tab=Gh,exports.TableButton=({disabled:t=!1,icon:r,id:i,label:a,name:o,onClick:s,type:l="button",variant:u})=>{const d=n.useTheme(),p=e.jsxRuntimeExports.jsxs(mw,{"aria-label":o??void 0,className:u,disabled:t,id:i,onClick:s,type:l,children:[e.jsxRuntimeExports.jsx(e.Icon,{clickable:!1,icon:r??gw[u].icon,iconSize:void 0===o?"xxs":"xs",iconType:"fa-light"}),o??void 0]});return e.jsxRuntimeExports.jsxs(c,{alignItems:"center",display:"flex",children:[p,a&&e.jsxRuntimeExports.jsx(e.Text,{color:d.palette.gray[800],ml:.5,size:"sm",children:a})]})},exports.Tabs=Yh,exports.Tag=ls,exports.TextArea=Zl,exports.TimeLine=({items:t})=>e.jsxRuntimeExports.jsx(vw,{children:t.map(((t,n)=>e.jsxRuntimeExports.jsx(bw,{date:t.date,description:t.description,title:t.title},`${t.title}-${n}`)))}),exports.TimeLineCard=bw,exports.Toggle=Up,exports.ToggleButton=({defaultSelection:n,options:r,handleClick:i})=>{const[a,o]=t.useState(n??r[0]),s=t.useCallback((e=>()=>{o(e),i(e)}),[i]);return e.jsxRuntimeExports.jsx(xw,{children:r.map(((t,n)=>e.jsxRuntimeExports.jsx(ww,{className:`${t.includes(a)&&"selected"}`,onClick:s(t),children:e.jsxRuntimeExports.jsx(e.Text,{color:"inherit",fontWeight:"bold",size:"md",sizeSm:"sm",textAlign:"center",children:t})},`${t}-${n}`)))})},exports.Tour=({run:n,steps:r,onFinish:i})=>{const[a,o]=t.useState(n),[s,l]=t.useState(0),u=t.useCallback((e=>{const{action:t,index:n,status:r,type:a}=e;[KS.STEP_AFTER,KS.TARGET_NOT_FOUND].includes(a)?l(n+(t===zS?-1:1)):([ZS.FINISHED,ZS.SKIPPED].includes(r)||"close"===t)&&(o(!1),Bh(i)||i())}),[i]);return e.jsxRuntimeExports.jsx(FD,{callback:u,continuous:!0,disableOverlayClose:!0,disableScrollParentFix:!0,run:a,spotlightClicks:!0,stepIndex:s,steps:r,styles:{buttonNext:{display:s===r.length-1?"none":"block"},options:{zIndex:9999}}})},exports.WebForm=({children:t,name:n,onSubmit:r,submitDisabled:i,submitLabel:a="Submit"})=>e.jsxRuntimeExports.jsx(LD,{"aria-label":n,name:n,onSubmit:r,children:e.jsxRuntimeExports.jsxs(VD,{children:[t,e.jsxRuntimeExports.jsx(e.Button,{disabled:i,type:"submit",children:a})]})}),exports.baseStep={content:"",disableBeacon:!0,hideCloseButton:!1,locale:{back:"Back",close:"Close",last:"Close",next:"Next",open:"Open the dialog",skip:"Skip"},showSkipButton:!0,styles:{buttonBack:{fontFamily:"roboto"},buttonNext:{fontFamily:"roboto"},buttonSkip:{fontFamily:"roboto"},options:{zIndex:9999},tooltipContainer:{fontFamily:"roboto",textAlign:"left"}},target:""},exports.useCarousel=Yd,exports.useClickOutside=Kl,exports.useCloudinaryImage=Mp,exports.useConfirmDialog=()=>{const[n,r]=t.useState(!1),[i,a]=t.useState(),o=t.useRef(null),s=Ip("confirm-dialog-modal"),l=t.useCallback((async e=>(a(e),r(!0),new Promise((e=>{o.current=e})))),[]),u=t.useCallback((()=>{var e;r(!1),a(void 0),null==(e=o.current)||e.call(o,!0)}),[]),c=t.useCallback((()=>{var e;r(!1),a(void 0),null==(e=o.current)||e.call(o,!1)}),[]);return t.useEffect((()=>{s.setIsOpen(n)}),[n,s]),{ConfirmDialog:({id:t="confirm-dialog-modal",children:n})=>e.jsxRuntimeExports.jsxs(fh,{id:t,modalRef:{...s,close:c},size:"sm",title:null==i?void 0:i.title,children:[n,null==i?void 0:i.message,e.jsxRuntimeExports.jsx(eh,{id:null==i?void 0:i.id,onCancel:c,onConfirm:u})]}),confirm:l}},exports.useDebouncedCallback=Ap,exports.useModal=Ip,exports.useSearch=e=>{const[n,r]=t.useState();return[n,Ap((e=>{r(e)}),(null==e?void 0:e.debounceWait)??300)]};
|
|
664
|
+
`;exports.BaseButtonComponent=e.BaseButtonComponent,exports.BaseComponent=e.BaseComponent,exports.BaseSpanComponent=e.BaseSpanComponent,exports.BaseTextComponent=e.BaseTextComponent,exports.Button=e.Button,exports.CustomThemeProvider=e.CustomThemeProvider,exports.Heading=e.Heading,exports.Icon=e.Icon,exports.Span=e.Span,exports.Text=e.Text,exports.Tooltip=e.Tooltip,exports.getStyledConfig=e.getStyledConfig,exports.hiddenProps=e.hiddenProps,exports.icons=e.icons,exports.setBorder=e.setBorder,exports.setDisplay=e.setDisplay,exports.setInteraction=e.setInteraction,exports.setMargin=e.setMargin,exports.setPadding=e.setPadding,exports.setPosition=e.setPosition,exports.setText=e.setText,exports.theme=e.theme,exports.uniqueIcons=e.uniqueIcons,exports.variantBuilder=e.variantBuilder,exports.Accordion=p,exports.Alert=b,exports.CardHeader=x,exports.CardWithImage=({alt:r,authorEmail:i,date:a,description:o,src:s,children:l,isEditing:u,onClick:d,title:p,hideDescription:h=!1,headerType:f="image",showMaximize:m=!0})=>{const g=n.useTheme(),[y,b]=t.useState(!1),w=t.useCallback((()=>{b(!0)}),[]),E=t.useCallback((()=>{b(!1)}),[]);return e.jsxRuntimeExports.jsxs(c,{bgColor:"transparent",border:"1px solid transparent",borderColorHover:"black",borderRadius:g.spacing[.25],display:"flex",flexDirection:"column",gap:1,onHover:w,onLeave:E,padding:[.5,.5,.5,.5],width:"100%",children:[e.jsxRuntimeExports.jsx(c,{cursor:u?"unset":"pointer",display:"inline-flex",justify:"center",onClick:d,position:"relative",width:"100%",children:void 0===l?e.jsxRuntimeExports.jsxs(t.Fragment,{children:[e.jsxRuntimeExports.jsx(C,{alt:r,fileType:f,height:"147px",opacity:y?.3:0,src:s,width:"100%"}),m?e.jsxRuntimeExports.jsx(c,{bottom:"10px",position:"absolute",right:"10px",children:e.jsxRuntimeExports.jsx(v,{color:"white",icon:"arrows-maximize",iconSize:"xxs",iconType:"fa-light",variant:"secondary"})}):void 0]}):l}),h?null:e.jsxRuntimeExports.jsx(x,{authorEmail:i,date:a,description:o,descriptionColor:g.palette.gray[600],id:`${r}-card-header`,title:p})]})},exports.CardWithInput=({description:n,disabled:r,id:i,align:a,inputType:o="text",inputNumberProps:s,minHeight:l,minWidth:u,name:c,placeholder:d,tooltip:p,title:h})=>{const f=t.useMemo((()=>{if("text"===o)return e.jsxRuntimeExports.jsx(vl,{disabled:r,name:c,placeholder:d});if("date"===o)return e.jsxRuntimeExports.jsx(cl,{disabled:r,name:c});const{decimalPlaces:t,max:n,min:i}=s??{};return e.jsxRuntimeExports.jsx(jl,{decimalPlaces:t,disabled:r,max:n,min:i,name:c,placeholder:d})}),[r,s,o,c,d]);return e.jsxRuntimeExports.jsxs(R,{$align:a,$minHeight:l,$minWidth:u,children:[e.jsxRuntimeExports.jsx(x,{description:n,id:i,title:h,tooltip:p}),f]})},exports.CardWithSelector=({alt:t,imageId:r,icon:i,selectorProps:a,onClick:o,title:s,width:l="fit-content"})=>{const u=n.useTheme();return e.jsxRuntimeExports.jsxs(c,{alignItems:"center",border:`1px solid ${u.palette.gray[200]}`,borderColorHover:u.palette.gray[600],borderRadius:u.spacing[.25],display:"inline-flex",padding:[1,1,1,1],shadowHover:"md",width:l,children:[e.jsxRuntimeExports.jsx(c,{alignSelf:"start",display:"flex",width:"fit-content",children:e.jsxRuntimeExports.jsx(Hp,{name:a.name,onClick:o,value:a.value})}),e.jsxRuntimeExports.jsxs(c,{alignItems:"center",display:"flex",gap:.5,justify:"space-between",ml:1,mr:1,width:"100%",children:[void 0===r?void 0:e.jsxRuntimeExports.jsx(Wp,{alt:t??"card image",height:"32px",publicId:r,width:"32px"}),void 0===i?void 0:e.jsxRuntimeExports.jsx(e.Icon,{icon:i,iconSize:"sm",iconType:"fa-light"}),e.jsxRuntimeExports.jsx(e.Heading,{fontWeight:"bold",lineSpacing:1.75,size:"xs",children:s})]})]})},exports.CardWithSwitch=({id:t,title:r,toggles:i,minWidth:a="auto",height:o="auto"})=>{const s=n.useTheme();return e.jsxRuntimeExports.jsxs(c,{alignItems:"center",bgColor:s.palette.white,border:`1px solid ${s.palette.gray[200]}`,borderRadius:s.spacing[.25],display:"flex",flexDirection:"column",gap:.5,height:o,justify:"center",minHeight:"100px",minWidth:a,padding:[1.25,1.25,1.25,1.25],children:[e.jsxRuntimeExports.jsx(x,{id:t,title:r}),e.jsxRuntimeExports.jsx(c,{display:"flex",flexDirection:"column",gap:.5,minHeight:"40px",width:"100%",children:i.map((t=>e.jsxRuntimeExports.jsx(Jp,{...t},`$card-toggle-${t.name}`)))})]})},exports.Carousel=({slides:n,interval:r=300})=>{const{cycle:i,setCycle:a,setProgress:o}=ip(r,n.length),s=t.useCallback((e=>()=>{a(e),o(0)}),[a,o]);return e.jsxRuntimeExports.jsxs(Xp,{children:[e.jsxRuntimeExports.jsx(Qp,{$currentIndex:i,children:n.map(((t,n)=>{const r=`slide-${n}`;return e.jsxRuntimeExports.jsx(eh,{children:t.content},r)}))}),e.jsxRuntimeExports.jsx(nh,{children:n.map(((t,n)=>{const r=`nav-button-${n}`;return e.jsxRuntimeExports.jsx(th,{$isActive:n===i,"data-testid":n===i?"active":"inactive",onClick:s(n)},r)}))})]})},exports.Checkbox=ah,exports.CloudImage=Wp,exports.CodeSnippet=({noCodeMessage:i="Code snippet not available",snippet:a})=>{const o=n.useTheme(),[s,l]=t.useState(!1),[u,d]=t.useState(!0),p=t.useCallback((()=>{l((e=>!e))}),[l]),h=t.useCallback((()=>{if(r.isNil(a)||r.isEmpty(a)||!r.isString(a))return d(!1),i;const e=a.split("\n");return e.length>8&&!s?`${[...e].splice(0,7).join("\n")}\n${e[8]}...`:(e.length<8&&d(!1),a)}),[s,a,i]),f=t.useMemo(h,[h]),m=t.useCallback((async()=>{await navigator.clipboard.writeText(f)}),[f]);return e.jsxRuntimeExports.jsxs(c,{bgColor:o.palette.gray[100],borderRadius:"4px",display:"inline-flex",minWidth:"565px",position:"relative",children:[e.jsxRuntimeExports.jsx(oh,{"data-private":!0,children:e.jsxRuntimeExports.jsx("pre",{children:e.jsxRuntimeExports.jsx("code",{className:"language-none",children:f})})}),e.jsxRuntimeExports.jsxs(sh,{children:[e.jsxRuntimeExports.jsx(v,{height:o.spacing[2.5],icon:"copy",iconColor:o.palette.gray[700],iconSize:"xs",iconType:"fa-light",onClick:m,variant:"ghost",width:o.spacing[2.5]}),!!u&&e.jsxRuntimeExports.jsxs(e.Button,{onClick:p,variant:"ghost",children:[s?"Show Less":"Show more",e.jsxRuntimeExports.jsx(e.Icon,{icon:s?"chevron-up":"chevron-down",iconColor:o.palette.gray[700],iconSize:"xxs",iconType:"fa-light",ml:.25,onClick:m})]})]})]})},exports.Container=c,exports.ContentCard=jh,exports.ContentCardCarousel=({description:n,items:r,title:i,titleHighlighted:a})=>{const o=t.useRef(null);return e.jsxRuntimeExports.jsxs(Rh,{"data-testid":"content-card-carousel",children:[e.jsxRuntimeExports.jsxs(c,{alignItems:"flex-start",display:"flex",justify:"space-between",children:[e.jsxRuntimeExports.jsxs(c,{alignItems:"flex-start",display:"flex",flexDirection:"column",gap:.625,maxWidth:"800px",children:[e.jsxRuntimeExports.jsxs(e.Heading,{display:"inline",fontWeight:"semibold",lineSpacing:2.25,lineSpacingSm:1.75,size:"lg",sizeSm:"md",children:[i+" "," ",e.jsxRuntimeExports.jsx("span",{className:"inline",children:a})]}),e.jsxRuntimeExports.jsx(e.Text,{lineSpacing:1.5,lineSpacingSm:1.25,size:"md",sizeSm:"sm",children:n})]}),e.jsxRuntimeExports.jsx(Ph,{containerRef:o,id:"desktop"})]}),e.jsxRuntimeExports.jsx(c,{alignSelf:"stretch",display:"flex",id:"carousel",pb:1,pr:2.25,ref:o,scroll:"x",children:e.jsxRuntimeExports.jsx(c,{alignItems:"flex-start",display:"flex",gap:1.5,width:"max-content",children:r.map(((t,n)=>e.jsxRuntimeExports.jsx(jh,{...t},`${n}-${t.title}`)))})}),e.jsxRuntimeExports.jsx(Ph,{containerRef:o,id:"mobile"})]})},exports.Divider=$h,exports.Editable=({children:t,currentValue:n,externalLink:r,isEditing:i,label:a,name:o,tooltip:s})=>{if(i)return e.jsxRuntimeExports.jsx("div",{children:t});const l=rl(n)?"":n,u=String(r??l);return e.jsxRuntimeExports.jsxs(c,{children:[e.jsxRuntimeExports.jsx(Hs,{htmlFor:o,label:a,tooltip:s,weight:"bold"}),u.startsWith("https://")?e.jsxRuntimeExports.jsx(j,{href:u,children:l}):e.jsxRuntimeExports.jsx(e.Text,{size:"md",children:l})]})},exports.EmptyState=({cancelButton:t,confirmButton:n,description:r,imageSrc:i="integrates/empty/addRoot",padding:a=1.25,title:o,size:s="md"})=>{const l=void 0!==(n??t);return e.jsxRuntimeExports.jsxs(_h,{$padding:a,children:[e.jsxRuntimeExports.jsx(Mh,{children:e.jsxRuntimeExports.jsx(Wp,{alt:"empty-icon",publicId:i})}),e.jsxRuntimeExports.jsx(e.Heading,{fontWeight:"bold",lineSpacing:1.75,mb:.25,size:Ih[s].title,textAlign:"center",children:o}),e.jsxRuntimeExports.jsx(e.Text,{mb:l?2:void 0,size:Ih[s].description,textAlign:"center",children:r}),l?e.jsxRuntimeExports.jsxs(Ah,{children:[t&&e.jsxRuntimeExports.jsx(Th,{buttonProps:t,variant:"tertiary"}),n&&e.jsxRuntimeExports.jsx(Th,{buttonProps:n,variant:"primary"})]}):void 0]})},exports.FilePreview=C,exports.FixedTabs=({items:t})=>e.jsxRuntimeExports.jsx(Xh,{children:t.map((({isActive:t,label:n,onClick:r},i)=>e.jsxRuntimeExports.jsx(Jh,{className:t?"active":"",onClick:r,type:"button",children:e.jsxRuntimeExports.jsx(e.Heading,{color:"inherit",fontWeight:"semibold",size:"sm",sizeSm:"xs",children:n})},`${n}-${i}`)))}),exports.Form=Fh,exports.FormItem=ND,exports.GridContainer=Vh,exports.GroupSelector=({isOpen:r=!0,items:i,handleNewOrganization:o,onSelect:s,onClose:l,selectedItem:u,title:d,variant:p})=>{const h=n.useTheme(),[f,m]=t.useState(i),[g,y]=t.useState(""),b=t.useCallback((e=>{m((t=>t.filter((t=>String(t.name).toLowerCase().includes(e.toLocaleLowerCase())))))}),[m]),x=t.useCallback((e=>{e.currentTarget&&(y(e.currentTarget.value),b(e.currentTarget.value))}),[y,b]);return t.useEffect((()=>{m(i),b(g)}),[i,b,g]),r?a.createPortal(e.jsxRuntimeExports.jsx(c,{className:"comp-modal fixed inset-0 overflow-auto",zIndex:99999,children:e.jsxRuntimeExports.jsx(c,{alignItems:"center",bgColor:"rgb(52 64 84 / 70%)",display:"flex",height:"100vh",justify:"center",left:"0",top:"0",width:"100%",children:e.jsxRuntimeExports.jsxs(Nh,{$itemsLength:f.length,children:[e.jsxRuntimeExports.jsxs(c,{alignItems:"center",display:"flex",justify:"space-between",children:[e.jsxRuntimeExports.jsx(e.Text,{color:h.palette.gray[800],fontWeight:"bold",size:"lg",children:d}),e.jsxRuntimeExports.jsx(v,{icon:"xmark",iconColor:h.palette.gray[400],iconSize:"xs",iconType:"fa-light",onClick:l,variant:"ghost"})]}),e.jsxRuntimeExports.jsx(c,{mt:1,children:e.jsxRuntimeExports.jsx(Kh,{onInput:x,placeholder:"Search"})}),e.jsxRuntimeExports.jsx($h,{mb:1,mt:1}),e.jsxRuntimeExports.jsxs(c,{display:"inline-flex",gap:1,maxHeight:"332px",scroll:"y",wrap:"wrap",children:["organization-selector"===p?e.jsxRuntimeExports.jsx(zh,{onClick:o,children:e.jsxRuntimeExports.jsxs(c,{alignItems:"center",display:"flex",children:[e.jsxRuntimeExports.jsx(e.Icon,{icon:"square-plus",iconColor:h.palette.gray[400],iconSize:"xs",iconType:"fa-light",mr:.5}),e.jsxRuntimeExports.jsx(e.Text,{color:h.palette.gray[400],size:"sm",children:"New organization"})]})}):void 0,f.map((t=>e.jsxRuntimeExports.jsx(Bh,{isSelected:u.toLowerCase()===t.name,label:t.name.charAt(0).toUpperCase()+t.name.slice(1),onSelect:s},t.name)))]})]})})}),document.body):e.jsxRuntimeExports.jsx("div",{})},exports.IconButton=v,exports.IndicatorCard=({description:t,height:r="auto",leftIconName:i,children:a,rightIconName:o,title:s,tooltipId:l,tooltipTip:u,tooltipPlace:d="bottom",variant:p="centered",width:h="318px"})=>{const f=n.useTheme(),m="centered"===p,g=e.jsxRuntimeExports.jsx(e.Tooltip,{icon:o??i,iconColor:f.palette.gray[800],id:l,place:d,tip:u});return e.jsxRuntimeExports.jsxs(c,{alignItems:m?"center":"flex-start",bgColor:f.palette.gray[50],border:`1px solid ${f.palette.gray[200]}`,borderRadius:"4px",display:"inline-flex",flexDirection:m?"column":"column-reverse",gap:.5,height:r,justify:"center",padding:[1.25,1.25,1.25,1.25],width:h,children:[e.jsxRuntimeExports.jsxs(c,{alignItems:"center",display:"flex",gap:.5,children:[m||Yh(i)?void 0:g,e.jsxRuntimeExports.jsx(e.Text,{color:m?f.palette.gray[800]:f.palette.gray[400],size:"md",textAlign:m?"center":"start",children:t}),m||Yh(o)?void 0:g]}),e.jsxRuntimeExports.jsxs(c,{alignItems:"center",display:"flex",gap:.5,my:.5,children:[m&&!Yh(i)?g:void 0,e.jsxRuntimeExports.jsxs("div",{style:{display:"flex",gap:"12px"},children:[Yh(s)?void 0:e.jsxRuntimeExports.jsx(e.Heading,{fontWeight:"bold",size:"md",children:s}),a]}),m&&!Yh(o)?g:void 0]})]})},exports.InfoSidebar=({actions:t,children:r,header:i,title:a,tabs:o,footer:s})=>{const l=n.useTheme();return e.jsxRuntimeExports.jsxs(c,{alignItems:"flex-start",bgColor:l.palette.white,borderLeft:`1px solid ${l.palette.gray[300]}`,display:"flex",flexDirection:"column",maxHeight:"750px",width:"480px",children:[e.jsxRuntimeExports.jsxs(c,{alignItems:"flex-start",alignSelf:"stretch",borderBottom:`1px solid ${l.palette.gray[300]}`,display:"flex",gap:.25,justify:"space-between",px:1.25,py:1,children:[e.jsxRuntimeExports.jsxs(c,{display:"flex",flexDirection:"column",gap:.25,children:[e.jsxRuntimeExports.jsx(e.Text,{color:l.palette.gray[800],fontWeight:"bold",lineSpacing:1.75,size:"xl",children:a}),i]}),t&&e.jsxRuntimeExports.jsx(c,{display:"flex",gap:.25,children:t.map((({icon:t,onClick:n},r)=>e.jsxRuntimeExports.jsx(v,{icon:t??"paper-plane",iconColor:l.palette.gray[400],iconSize:"xxs",iconType:"fa-light",onClick:n,variant:"ghost"},`${r}-${t}`)))})]}),e.jsxRuntimeExports.jsx(c,{display:"flex",pt:.25,width:"100%",children:e.jsxRuntimeExports.jsx(af,{items:o})}),e.jsxRuntimeExports.jsx(c,{alignSelf:"stretch",display:"flex",flexDirection:"column",px:1.25,py:1,scroll:"y",children:r}),s&&e.jsxRuntimeExports.jsx(c,{alignSelf:"stretch",borderTop:`1px solid ${l.palette.gray[300]}`,display:"flex",gap:.5,justify:"end",px:1.25,py:1,children:s.map((({icon:t,text:n,onClick:r},i)=>e.jsxRuntimeExports.jsx(e.Button,{icon:t,onClick:r,variant:0===i?"primary":"tertiary",width:"100%",children:n},`${i}-${n}`)))})]})},exports.Input=vl,exports.InputDate=cl,exports.InputDateRange=hl,exports.InputDateTime=yl,exports.InputFile=wl,exports.InputNumber=jl,exports.InputNumberRange=Cl,exports.InputTags=kl,exports.InteractiveCard=({category:t,description:r,href:i,icon:a,location:o,title:s})=>{const l=n.useTheme();return e.jsxRuntimeExports.jsxs(of,{children:[e.jsxRuntimeExports.jsxs(c,{alignItems:"flex-start",display:"flex",flexDirection:"column",gap:1.5,height:"100%",id:"uncover",justify:"space-between",children:[e.jsxRuntimeExports.jsxs("div",{className:"flex flex-col gap-0.5",children:[e.jsxRuntimeExports.jsx(e.Text,{color:l.palette.white,size:"sm",sizeSm:"xs",children:t}),e.jsxRuntimeExports.jsx(e.Heading,{color:l.palette.white,fontWeight:"bold",lineSpacing:2.25,lineSpacingSm:1.75,size:"lg",sizeSm:"md",children:s})]}),e.jsxRuntimeExports.jsxs("div",{className:"flex flex-col gap-0.5",children:[e.jsxRuntimeExports.jsx(e.Text,{color:l.palette.white,size:"sm",sizeSm:"xs",children:"Location"}),e.jsxRuntimeExports.jsx(e.Text,{color:l.palette.white,fontWeight:"bold",lineSpacing:1.5,lineSpacingSm:1.25,size:"md",sizeSm:"sm",children:o})]})]}),e.jsxRuntimeExports.jsxs(c,{alignItems:"self-start",display:"flex",flexDirection:"column",gap:2,height:"100%",id:"hovered",justify:"space-between",pt:1,children:[e.jsxRuntimeExports.jsx(e.Heading,{color:l.palette.white,fontWeight:"bold",lineSpacing:1.75,lineSpacingSm:1.5,size:"md",sizeSm:"sm",children:s}),e.jsxRuntimeExports.jsxs("div",{className:"flex flex-col gap-8",children:[e.jsxRuntimeExports.jsx(e.Text,{color:l.palette.gray[100],lineSpacing:1.5,lineSpacingSm:1.25,size:"md",sizeSm:"sm",children:r}),e.jsxRuntimeExports.jsx(e.Button,{external:!0,href:i,variant:"link",width:"max-content",children:"Download now"})]})]}),e.jsxRuntimeExports.jsx(lf,{icon:a})]})},exports.LanguageSelector=({items:n,handleClick:r,mode:i="light"})=>{const a=n??ff,[o,s]=t.useState(a[0].text),l=t.useCallback((e=>()=>{r(e.text),s(e.text)}),[r]);return e.jsxRuntimeExports.jsxs(pf,{children:[e.jsxRuntimeExports.jsxs(cf,{className:i,children:[e.jsxRuntimeExports.jsx(e.Icon,{icon:"globe",iconSize:"xs",iconType:"fa-light"}),o]}),e.jsxRuntimeExports.jsx(df,{children:a.map(((t,n)=>e.jsxRuntimeExports.jsx(hf,{disabled:t.disabled,mode:i,onClick:l(t),text:t.text},`${t.text}_${n}`)))})]})},exports.Link=j,exports.ListItem=({children:r,disabled:i=!1,icon:a,iconType:o="fa-light",href:s,onClick:l,onKeyDown:u,selected:d=!1,value:p,...h})=>{const f=n.useTheme().palette.gray[i?300:800],m=i?t.Children.map(r,(e=>t.isValidElement(e)?t.cloneElement(e,{disabled:i,...e.props}):e)):r;return e.jsxRuntimeExports.jsxs(mf,{"aria-disabled":i,"aria-label":p,"aria-selected":d,"data-testid":p,onClick:l,onKeyDown:u,value:p,...h,children:[void 0!==a||void 0!==p?e.jsxRuntimeExports.jsxs(c,{alignItems:"center",display:"flex",gap:.625,children:[a?e.jsxRuntimeExports.jsx(e.Icon,{disabled:i,icon:a,iconColor:f,iconSize:"xs",iconType:o}):null,void 0===s?m:e.jsxRuntimeExports.jsx(j,{href:s,children:m})]}):null,d?e.jsxRuntimeExports.jsx(e.Icon,{disabled:i,icon:"check",iconColor:f,iconSize:"xs",iconType:o}):null]})},exports.ListItemsWrapper=gf,exports.LittleFlag=({bgColor:t,children:n,txtDecoration:r,ml:i=1})=>e.jsxRuntimeExports.jsx(yf,{$bgColor:t,$txtDecoration:r,className:`ml-${i}`,children:n}),exports.Loading=({color:t="red",label:r,size:i})=>{const a=n.useTheme();return e.jsxRuntimeExports.jsxs(c,{alignItems:"center",display:"flex",children:[e.jsxRuntimeExports.jsxs(Ef,{$size:i,viewBox:"0 0 100 100",children:[e.jsxRuntimeExports.jsx(Sf,{$color:t,cx:"50",cy:"50",r:"45"}),e.jsxRuntimeExports.jsx(kf,{$color:t,cx:"50",cy:"50",r:"45"})]}),r&&e.jsxRuntimeExports.jsx(e.Text,{color:"red"===t?a.palette.gray[700]:a.palette.white,ml:.5,size:"sm",children:r})]})},exports.Logo=({publicId:t,variant:n})=>e.jsxRuntimeExports.jsx(c,{...Df[n],children:e.jsxRuntimeExports.jsx(Wp,{alt:"logo",publicId:t})}),exports.LogoCarousel=({fusion:t=!1,logos:n=Pf})=>e.jsxRuntimeExports.jsxs(jf,{children:[t&&e.jsxRuntimeExports.jsx(Cf,{className:"left"}),e.jsxRuntimeExports.jsx(Rf,{children:[...n,...n].map(((t,n)=>e.jsxRuntimeExports.jsx(Wp,{alt:`${t}-${n}`,height:"80px",plugins:[Zc()],publicId:t,width:"140px"},`${t}-${n}`)))}),t&&e.jsxRuntimeExports.jsx(Cf,{className:"right"})]}),exports.Lottie=t=>{const{size:n}=t;return e.jsxRuntimeExports.jsx(Af,{$size:n,...t})},exports.Menu=({children:t,commitSha:r,commitShortSha:i,parentElement:a,userInfo:o,setVisibility:s})=>{const l=n.useTheme(),{userName:u,email:d,phone:p,userRole:h}=o;return eu(a,(()=>{s(!1)})),e.jsxRuntimeExports.jsxs(gf,{children:[e.jsxRuntimeExports.jsx("li",{className:"user-info",children:e.jsxRuntimeExports.jsxs(c,{display:"inline-flex",gap:.25,width:"100%",children:[e.jsxRuntimeExports.jsxs(c,{display:"flex",flexDirection:"column",gap:.25,width:"100%",children:[e.jsxRuntimeExports.jsx(e.Text,{color:l.palette.gray[800],fontWeight:"bold",size:"sm",children:u}),e.jsxRuntimeExports.jsx(e.Text,{color:l.palette.gray[400],size:"sm",children:d}),Yh(p)?void 0:e.jsxRuntimeExports.jsx(e.Text,{color:l.palette.gray[400],size:"sm",children:p})]}),e.jsxRuntimeExports.jsx(c,{children:e.jsxRuntimeExports.jsx(Xs,{tagLabel:h,variant:"role"})})]})}),e.jsxRuntimeExports.jsx($h,{}),t,e.jsxRuntimeExports.jsx($h,{}),e.jsxRuntimeExports.jsx("li",{className:"commit-info",children:e.jsxRuntimeExports.jsx(j,{href:`https://gitlab.com/fluidattacks/universe/-/tree/${r}`,iconPosition:"hidden",children:e.jsxRuntimeExports.jsx(e.Text,{color:l.palette.gray[400],size:"xs",children:`commit : ${i}`})})})]})},exports.MessageBanner=({message:r,onClickButton:i,buttonText:a,buttonFontWeight:o="regular",icon:s,onClose:l,variant:u="web"})=>{const d=n.useTheme(),[p,h]=t.useState(!0),f=t.useCallback((()=>{h(!1),null==l||l()}),[l]),m=(e=>"platform"===e?{normal:"sm",small:void 0}:{normal:"md",small:"sm"})(u);return e.jsxRuntimeExports.jsxs(c,{alignItems:"center",bgGradient:d.palette.gradients["01"],display:p?"flex":"none",id:"message-banner",justify:"space-between",padding:[.75,.75,.75,.75],children:[e.jsxRuntimeExports.jsxs(c,{display:"flex",gap:.5,justify:"center",width:"100%",children:[e.jsxRuntimeExports.jsx(c,{children:"string"==typeof r?e.jsxRuntimeExports.jsx(e.Text,{color:d.palette.white,display:"inline",size:m.normal,sizeSm:m.small,children:r}):r}),i?e.jsxRuntimeExports.jsxs(If,{onClick:i,children:[e.jsxRuntimeExports.jsx(e.Text,{color:d.palette.white,fontWeight:o,size:m.normal,sizeSm:m.small,textDecoration:"underline",children:a}),e.jsxRuntimeExports.jsx(e.Icon,{icon:s??"arrow-right",iconColor:d.palette.white,iconSize:"xs",iconType:"bold"===o?"fa-regular":"fa-light"})]}):void 0]}),e.jsxRuntimeExports.jsx(e.Icon,{clickable:!0,hoverColor:d.palette.primary[200],icon:"close",iconColor:d.palette.white,iconSize:"xs",iconType:"fa-light",onClick:f})]})},exports.Modal=Eh,exports.ModalConfirm=lh,exports.Notification=({description:r,onClose:i,title:a,variant:o})=>{const s=n.useTheme(),l=t.useCallback((()=>{null==i||i()}),[i]);return e.jsxRuntimeExports.jsxs(Of,{$variant:o,className:`notification notification__${o}`,children:[e.jsxRuntimeExports.jsxs(Ff,{$variant:o,children:[e.jsxRuntimeExports.jsx(e.Icon,{icon:"circle",iconClass:"ellipse-1",iconSize:"xs"}),e.jsxRuntimeExports.jsx(e.Icon,{icon:"circle",iconClass:"ellipse-2",iconSize:"xs"}),e.jsxRuntimeExports.jsx(e.Icon,{icon:Lf(o),iconClass:"icon",iconSize:"xs",iconType:"fa-light"})]}),e.jsxRuntimeExports.jsxs(c,{pr:1.5,children:[e.jsxRuntimeExports.jsx(e.Heading,{fontWeight:"bold",size:"xs",children:a}),e.jsxRuntimeExports.jsx(e.Text,{size:"sm",whiteSpace:"break-spaces",wordWrap:"break-word",children:r})]}),e.jsxRuntimeExports.jsx(v,{height:"fit-content",icon:"close",iconColor:s.palette.gray[400],iconSize:"xs",iconType:"fa-light",onClick:l,px:.125,py:.125,variant:"ghost"})]})},exports.NotificationSign=nf,exports.NumberInput=zf,exports.OAuthSelector=({align:r="end",buttonLabel:i="Add Credential",children:a,id:o,manualOption:s,providers:l})=>{const u=n.useTheme(),[d,p]=t.useState(!1),h=t.useRef(null);eu(h.current,(()=>{p(!1)}),!0);const f=t.useCallback((e=>{null==s||s.onClick(e),p(!1)}),[s]),m=t.useCallback((()=>{p((e=>!e))}),[p]),g=t.useCallback((e=>t=>{var n;null==(n=l[e])||n.onClick(t),p(!1)}),[l]);return e.jsxRuntimeExports.jsxs(c,{alignItems:r,display:"flex",flexDirection:"column",position:"relative",ref:h,width:"max-content",zIndex:10,children:[e.jsxRuntimeExports.jsx(e.Button,{icon:"plus",onClick:m,variant:"primary",children:i}),e.jsxRuntimeExports.jsxs(c,{alignItems:"center",bgColor:"#fff",border:`1px solid ${u.palette.gray[200]}`,borderRadius:"4px",display:"flex",gap:.5,height:"78px",id:o,pb:.5,pl:.75,position:"absolute",pr:.75,pt:.5,shadow:"md",top:"40px",visibility:d?"visible":"hidden",zIndex:10,children:[Object.keys(l).map((t=>e.jsxRuntimeExports.jsx(Uf,{onClick:g(t),provider:t},t))),void 0===s?void 0:e.jsxRuntimeExports.jsx(Uf,{icon:"square-plus",label:s.label??"Add manually",onClick:f}),a]})]})},exports.OptionContainer=Uf,exports.OutlineContainer=Qs,exports.PhoneInput=tu,exports.PopUp=({_portal:r=!1,cancelButton:i,darkBackground:o=!1,children:s,confirmButton:l,container:u,description:d,highlightDescription:p="",image:h,maxWidth:f,title:m,titleColor:g})=>{const y=n.useTheme(),{alt:v,src:b,width:x="77px",height:w="77px"}=h,E=t.useCallback((()=>{null==i||i.onClick()}),[i]),k=t.useCallback((()=>{null==l||l.onClick()}),[l]),S=e.jsxRuntimeExports.jsx(c,{alignItems:"center",bgColor:o?"rgba(52, 64, 84, 70%)":"",display:"flex",height:"100vh",justify:"center",left:"0",position:r?"fixed":"absolute",top:"0px",width:"100%",zIndex:99999,children:e.jsxRuntimeExports.jsxs(c,{bgColor:y.palette.white,border:`1px solid ${y.palette.gray[200]}`,borderRadius:"8px",display:"inline-flex",flexDirection:"column",maxWidth:f,pb:2.5,pl:2.5,pr:2.5,pt:2.5,shadow:"lg",width:"100%",zIndex:11,children:[e.jsxRuntimeExports.jsxs(c,{alignItems:"center",display:"flex",flexDirection:"column",width:"100%",children:[e.jsxRuntimeExports.jsx(c,{children:e.jsxRuntimeExports.jsx(Wp,{alt:v,height:w,publicId:b,width:x})}),e.jsxRuntimeExports.jsxs(c,{display:"flex",flexDirection:"column",gap:.5,mb:1.5,mt:1.5,children:[e.jsxRuntimeExports.jsx(e.Heading,{color:g,fontWeight:"bold",lineSpacing:2.5,size:"lg",textAlign:"center",children:m}),e.jsxRuntimeExports.jsx(Hf,{description:d,highlightDescription:p})]})]}),s&&e.jsxRuntimeExports.jsx(c,{mb:1,scroll:"y",children:e.jsxRuntimeExports.jsx(c,{height:"100%",children:s})}),e.jsxRuntimeExports.jsxs(c,{alignItems:"flex-start",display:"flex",gap:1,justify:"center",children:[e.isObject(l)?e.jsxRuntimeExports.jsx(e.Button,{onClick:k,variant:(null==l?void 0:l.variant)??"primary",children:null==l?void 0:l.text},null==l?void 0:l.key):void 0,e.isObject(i)?e.jsxRuntimeExports.jsx(e.Button,{onClick:E,variant:(null==i?void 0:i.variant)??"tertiary",children:null==i?void 0:i.text},null==i?void 0:i.key):void 0]})]})});return r?a.createPortal(S,u??document.body):S},exports.PremiumFeature=qf,exports.PriorityScore=({score:t})=>{const r=n.useTheme(),i=t>66||0===t?"priority-bars-high":t<=33?"priority-bars-low":"priority-bars-medium";return e.jsxRuntimeExports.jsxs(c,{alignItems:"center",display:"inline-flex",gap:.25,children:[e.jsxRuntimeExports.jsx(e.Icon,{icon:i,iconClass:t<=66?"fa-kit-duotone":"",iconColor:t>0?r.palette.primary[500]:r.palette.gray[200],iconSize:"xs",iconType:"fa-kit",secondaryColor:r.palette.gray[200]}),e.jsxRuntimeExports.jsx(e.Text,{color:r.palette.gray[800],size:"sm",textAlign:"right",children:t+"%"})]})},exports.Progress=({progressTime:r=10,onComplete:i})=>{const a=n.useTheme(),[o,s]=t.useState(0);return t.useEffect((()=>{100===o&&(null==i||i())}),[o,i]),t.useEffect((()=>{const e=setInterval((()=>{s((e=>100===e?0:e+1))}),1e3*r/100);return()=>{clearInterval(e)}}),[o,r]),e.jsxRuntimeExports.jsx(c,{bgColor:a.palette.gray[200],height:"4px",children:e.jsxRuntimeExports.jsx(Kf,{$animationTime:r,bgGradient:a.palette.gradients["01"],height:"100%",width:`${o}%`})})},exports.RadioButton=Hp,exports.ScrollUpButton=({scrollerId:n="dashboard",visibleAt:r=500})=>{const[i,a]=t.useState(!1),[o,s]=t.useState(null);t.useEffect((()=>{s(document.getElementById(n)),null==o||o.addEventListener("scroll",(()=>{a(o.scrollTop>r)}))}),[o,n,r]);const l=t.useCallback((()=>{null==o||o.scrollTo({behavior:"smooth",top:0})}),[o]);return i?e.jsxRuntimeExports.jsx(Zf,{children:e.jsxRuntimeExports.jsx(v,{height:"40px",icon:"arrow-up",iconSize:"sm",id:"scroll-up",onClick:l,width:"40px"})}):null},exports.Search=Kh,exports.SearchBar=({items:n,placeholder:r="Search",refine:i,query:a})=>{const[o,s]=t.useState(a),[l,u]=t.useState(!1),c=t.useRef(null),d=t.useRef(null),p=o.length>=2,h=t.useCallback((e=>{s(e),i(e)}),[i]),f=t.useCallback((()=>{h("")}),[h]),m=t.useCallback((()=>{u(!0)}),[]),g=t.useCallback((e=>{h(e.currentTarget.value)}),[h]),y=t.useCallback((e=>{e.preventDefault(),e.stopPropagation(),f(),d.current&&d.current.focus()}),[f]),v=t.useCallback((e=>{e.preventDefault(),e.stopPropagation(),d.current&&d.current.blur()}),[]);return eu(c.current,(()=>{f(),u(!1)}),!0),e.jsxRuntimeExports.jsxs(Jf,{ref:c,children:[e.jsxRuntimeExports.jsxs(Xf,{action:"",noValidate:!0,onReset:y,onSubmit:v,role:"search",children:[e.jsxRuntimeExports.jsxs("div",{className:"flex gap-2 w-full",children:[e.jsxRuntimeExports.jsx("div",{className:"h-10 p-2",children:e.jsxRuntimeExports.jsx(e.Icon,{icon:"magnifying-glass",iconSize:"sm",iconType:"fa-light"})}),e.jsxRuntimeExports.jsx(Qf,{autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",maxLength:512,onChange:g,onFocus:m,placeholder:r,ref:d,spellCheck:!1,type:"search",value:o})]}),p&&e.jsxRuntimeExports.jsx(em,{type:"reset",children:e.jsxRuntimeExports.jsx(e.Icon,{icon:"xmark",iconSize:"sm",iconType:"fa-light"})})]}),l&&o.length<2&&e.jsxRuntimeExports.jsxs(tm,{children:[e.jsxRuntimeExports.jsx(e.Text,{color:e.theme.palette.gray[400],fontWeight:"bold",lineSpacing:1.5,size:"md",sizeSm:"sm",children:"Suggested"}),e.jsxRuntimeExports.jsx("div",{className:"flex flex-col items-start self-stretch",children:rm.map((({hit:t,icon:n},r)=>e.jsxRuntimeExports.jsx(nm,{hit:t,icon:n,showIcon:!0},`${n}-${r}`)))}),e.jsxRuntimeExports.jsx(e.Text,{color:e.theme.palette.gray[400],fontWeight:"bold",lineSpacing:1.5,size:"md",sizeSm:"sm",children:"Can’t find what you’re looking for?"}),e.jsxRuntimeExports.jsx(nm,{hit:im.hit,icon:im.icon,showIcon:!0})]}),p&&n.length>0&&e.jsxRuntimeExports.jsxs(tm,{$showHits:p,children:[e.jsxRuntimeExports.jsx(e.Text,{color:e.theme.palette.gray[400],fontWeight:"bold",lineSpacing:1.5,size:"md",sizeSm:"sm",children:"Results"}),e.jsxRuntimeExports.jsx("div",{className:"flex flex-col items-start self-stretch",children:n.map((t=>e.jsxRuntimeExports.jsx(nm,{hit:t},t.objectID)))})]}),p&&0===n.length&&e.jsxRuntimeExports.jsx(tm,{$empty:0===n.length,children:e.jsxRuntimeExports.jsxs("div",{className:"items-center\tflex flex-col\tgap-4 py-[90px] w-full",children:[e.jsxRuntimeExports.jsx(Wp,{height:96,publicId:"airs/search-bar/empty-state-icon",width:96}),e.jsxRuntimeExports.jsx(e.Heading,{display:"flex",size:"sm",sizeSm:"xs",textAlign:"center",children:"No results found"}),e.jsxRuntimeExports.jsxs(e.Text,{display:"flex",lineSpacing:1.5,size:"md",sizeSm:"sm",textAlign:"center",children:[`“${o}” did not match.`,e.jsxRuntimeExports.jsx("br",{}),"Please try again."]}),e.jsxRuntimeExports.jsx(e.Button,{onClick:f,variant:"secondary",children:"Clear search"})]})})]})},exports.SeverityBadge=({textL:t,textR:r,variant:i})=>{const a=n.useTheme(),{bgColor:o,colorL:s,colorR:l}=am[i];return e.jsxRuntimeExports.jsxs(c,{alignItems:"flex-start",display:"inline-flex",children:[t?e.jsxRuntimeExports.jsx(c,{alignItems:"center",bgColor:a.palette.white,border:`1px solid ${o}`,borderRadius:"4px 0px 0px 4px",display:"flex",justify:"center",padding:[0,.25,0,.25],children:e.jsxRuntimeExports.jsx(e.Text,{color:s,size:"xs",children:t})}):void 0,e.jsxRuntimeExports.jsx(c,{alignItems:"center",bgColor:o,border:`1px solid ${o}`,borderRadius:t?"0px 4px 4px 0px":"4px",display:"flex",padding:t?[0,.25,0,.125]:[0,.25,0,.25],pb:.125,pl:.125,pr:.125,pt:.125,children:e.jsxRuntimeExports.jsx(e.Text,{color:l,size:"xs",children:r})})]})},exports.SeverityOverview=({critical:t,high:n,medium:r,low:i})=>e.jsxRuntimeExports.jsxs(c,{alignItems:"center",display:"inline-flex",gap:1,children:[e.jsxRuntimeExports.jsx(Fm,{value:t,variant:"critical"}),e.jsxRuntimeExports.jsx(Fm,{value:n,variant:"high"}),e.jsxRuntimeExports.jsx(Fm,{value:r,variant:"medium"}),e.jsxRuntimeExports.jsx(Fm,{value:i,variant:"low"})]}),exports.ShowOnHover=({visibleElement:t,hiddenElement:n})=>e.jsxRuntimeExports.jsxs(Lm,{children:[t,e.jsxRuntimeExports.jsx(c,{display:"none",position:"absolute",top:"100%",zIndex:10,children:n})]}),exports.SlideOutMenu=({children:r,closeIconId:i="close-menu",isOpen:a,items:o,onClose:s,primaryButtonText:l,primaryOnClick:u,secondaryButtonText:d,secondaryOnClick:p,title:h})=>{const f=n.useTheme(),m=t.useRef(null),g=t.useCallback((e=>()=>{e(),s()}),[s]);return eu(m.current,(()=>{s()}),!0),e.jsxRuntimeExports.jsx(tw,{features:rw,children:e.jsxRuntimeExports.jsx(aw,{animate:a?{display:"block",x:0}:{transitionEnd:{display:"none"},x:"100%"},initial:{display:"none",x:"100%"},ref:m,transition:{bounce:0,duration:.6,type:"spring"},children:e.jsxRuntimeExports.jsxs(c,{height:"100%",position:"relative",children:[e.jsxRuntimeExports.jsxs(c,{alignItems:"center",bgColor:f.palette.white,borderBottom:"1px solid",borderColor:f.palette.gray[200],display:"flex",gap:1.25,justify:"space-between",padding:[1.25,1.25,1.25,1.25],position:"sticky",top:"0",zIndex:40,children:[e.jsxRuntimeExports.jsx(e.Text,{color:f.palette.black,display:"inline",fontWeight:"bold",size:"xl",children:h}),e.jsxRuntimeExports.jsx(v,{icon:"close",iconColor:f.palette.gray[400],iconSize:"xs",iconTransform:"grow-4",iconType:"fa-light",id:i,onClick:s,px:.25,py:.25,variant:"ghost"})]}),e.jsxRuntimeExports.jsxs(c,{display:"flex",flexDirection:"column",justify:"space-between",minHeight:"100vh",children:[e.jsxRuntimeExports.jsxs(c,{py:1.25,children:[(o??[]).map((({customBadge:t,description:n,icon:r,onClick:i,requiresUpgrade:a,title:o})=>e.jsxRuntimeExports.jsx(iw,{customBadge:t,description:n,icon:r,onClick:g(i),requiresUpgrade:a,title:o},o))),r&&e.jsxRuntimeExports.jsx(c,{px:1.25,children:r})]}),void 0===l?void 0:e.jsxRuntimeExports.jsxs(c,{alignItems:"center",bgColor:f.palette.white,borderColor:f.palette.gray[200],borderTop:"1px solid",bottom:"0",display:"flex",gap:1.25,justify:"end",padding:[1.25,1.25,1.25,1.25],position:"sticky",width:"100%",zIndex:40,children:[void 0===d?void 0:e.jsxRuntimeExports.jsx(e.Button,{color:`${f.palette.primary[500]} !important`,onClick:p,pl:.5,pr:.5,variant:"ghost",children:d}),e.jsxRuntimeExports.jsx(e.Button,{onClick:u,type:"submit",children:l})]})]})]})})})},exports.Slider=r=>{const i=n.useTheme(),a=t.useRef(null),{minValue:o=0,maxValue:s=100}=r,l=function(e={}){let{locale:n}=Bi();return t.useMemo((()=>new aa(n,e)),[n,e])}(),u=function(e){const{isDisabled:n=!1,minValue:r=Ba,maxValue:i=Ua,numberFormatter:a,step:o=Wa,orientation:s="horizontal"}=e;let l=t.useMemo((()=>{let e=(i-r)/10;return e=pr(e,0,e+o,o),Math.max(e,o)}),[o,i,r]),u=t.useCallback((e=>null==e?void 0:e.map(((t,n)=>pr(t,0===n?r:e[n-1],n===e.length-1?i:e[n+1],o)))),[r,i,o]),c=t.useMemo((()=>u(Ka(e.value))),[e.value]),d=t.useMemo((()=>{var t;return u(null!==(t=Ka(e.defaultValue))&&void 0!==t?t:[r])}),[e.defaultValue,r]),p=Ha(e.value,e.defaultValue,e.onChange),h=Ha(e.value,e.defaultValue,e.onChangeEnd);const[f,m]=ur(c,d,p),[g,y]=t.useState(new Array(f.length).fill(!1)),v=t.useRef(new Array(f.length).fill(!0)),[b,x]=t.useState(void 0),w=t.useRef(f),E=t.useRef(g);function k(e){return(e-r)/(i-r)}function S(e){return 0===e?r:f[e-1]}function D(e){return e===f.length-1?i:f[e+1]}function j(e){return v.current[e]}function C(e,t){var r;!n&&j(e)&&(t=pr(t,S(e),D(e),o),r=qa(w.current,e,t),w.current=r,m(r))}function R(e){return a.format(e)}function P(e){return cr((t=e*(i-r)+r,Math.round((t-r)/o)*o+r),r,i);var t}return{values:f,getThumbValue:e=>f[e],setThumbValue:C,setThumbPercent:function(e,t){C(e,P(t))},isThumbDragging:e=>g[e],setThumbDragging:function(e,t){if(n||!j(e))return;t&&(w.current=f);const r=E.current[e];var i;E.current=qa(E.current,e,t),i=E.current,E.current=i,y(i),h&&r&&!E.current.some(Boolean)&&h(w.current)},focusedThumb:b,setFocusedThumb:x,getThumbPercent:e=>k(f[e]),getValuePercent:k,getThumbValueLabel:e=>R(f[e]),getFormattedValue:R,getThumbMinValue:S,getThumbMaxValue:D,getPercentValue:P,isThumbEditable:j,setThumbEditable:function(e,t){v.current[e]=t},incrementThumb:function(e,t=1){let n=Math.max(t,o);C(e,pr(f[e]+n,r,i,o))},decrementThumb:function(e,t=1){let n=Math.max(t,o);C(e,pr(f[e]-n,r,i,o))},step:o,pageSize:l,orientation:s,isDisabled:n}}({...r,numberFormatter:l}),d=((e,t,n)=>Math.round((n-e)/(t-e)*100))(o,s,u.getThumbValue(0)),{groupProps:p,trackProps:h}=function(e,n,r){let{labelProps:i,fieldProps:a}=Na(e),o="vertical"===e.orientation;var s;Ya.set(n,{id:null!==(s=i.id)&&void 0!==s?s:a.id,"aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"]});let{direction:l}=Bi(),{addGlobalListener:u,removeGlobalListener:c}=Kn();const d=t.useRef(null),p="rtl"===l,h=t.useRef(null),{moveProps:f}=ii({onMoveStart(){h.current=null},onMove({deltaX:e,deltaY:t}){if(!r.current)return;let{height:i,width:a}=r.current.getBoundingClientRect(),s=o?i:a;null==h.current&&null!=d.current&&(h.current=n.getThumbPercent(d.current)*s);let l=o?t:e;if((o||p)&&(l=-l),h.current+=l,null!=d.current&&r.current){const e=cr(h.current/s,0,1);n.setThumbPercent(d.current,e)}},onMoveEnd(){null!=d.current&&(n.setThumbDragging(d.current,!1),d.current=null)}});let m=t.useRef(void 0),g=(t,i,a,s)=>{if(r.current&&!e.isDisabled&&n.values.every(((e,t)=>!n.isThumbDragging(t)))){let{height:e,width:c,top:p,left:h}=r.current.getBoundingClientRect(),f=((o?s:a)-(o?p:h))/(o?e:c);("rtl"===l||o)&&(f=1-f);let g,v=n.getPercentValue(f),b=n.values.findIndex((e=>v-e<0));if(0===b)g=b;else if(-1===b)g=n.values.length-1;else{let e=n.values[b-1],t=n.values[b];g=Math.abs(e-v)<Math.abs(t-v)?b-1:b}g>=0&&n.isThumbEditable(g)?(t.preventDefault(),d.current=g,n.setFocusedThumb(g),m.current=i,n.setThumbDragging(d.current,!0),n.setThumbValue(g,v),u(window,"mouseup",y,!1),u(window,"touchend",y,!1),u(window,"pointerup",y,!1)):d.current=null}},y=e=>{var t,r;(null!==(r=e.pointerId)&&void 0!==r?r:null===(t=e.changedTouches)||void 0===t?void 0:t[0].identifier)===m.current&&(null!=d.current&&(n.setThumbDragging(d.current,!1),d.current=null),c(window,"mouseup",y,!1),c(window,"touchend",y,!1),c(window,"pointerup",y,!1))};return"htmlFor"in i&&i.htmlFor&&(delete i.htmlFor,i.onClick=()=>{var e;null===(e=document.getElementById(Ja(n,0)))||void 0===e||e.focus(),Qr("keyboard")}),{labelProps:i,groupProps:{role:"group",...a},trackProps:En({onMouseDown(e){0!==e.button||e.altKey||e.ctrlKey||e.metaKey||g(e,void 0,e.clientX,e.clientY)},onPointerDown(e){"mouse"===e.pointerType&&(0!==e.button||e.altKey||e.ctrlKey||e.metaKey)||g(e,e.pointerId,e.clientX,e.clientY)},onTouchStart(e){g(e,e.changedTouches[0].identifier,e.changedTouches[0].clientX,e.changedTouches[0].clientY)},style:{position:"relative",touchAction:"none"}},f),outputProps:{htmlFor:n.values.map(((e,t)=>Ja(n,t))).join(" "),"aria-live":"off"}}}({...r,"aria-label":"slider"},u,a);return e.jsxRuntimeExports.jsxs(c,{alignItems:"center",display:"inline-flex",gap:1.25,children:[e.jsxRuntimeExports.jsxs(ow,{...p,$min:o??0,$value:d,className:"slider",children:[e.jsxRuntimeExports.jsx("div",{...h,className:"track "+(u.isDisabled?"disabled":""),ref:a,children:e.jsxRuntimeExports.jsx(uw,{index:0,state:u,trackRef:a})}),e.jsxRuntimeExports.jsxs(sw,{children:[e.jsxRuntimeExports.jsx("p",{children:`${l.format(o)} (Low)`}),o<0&&e.jsxRuntimeExports.jsx("p",{children:"0"}),e.jsxRuntimeExports.jsx("p",{children:`${l.format(s)} (High)`})]})]}),e.jsxRuntimeExports.jsx(lw,{children:e.jsxRuntimeExports.jsx(e.Text,{color:i.palette.gray[800],size:"sm",textAlign:"right",children:u.getThumbValueLabel(0)})})]})},exports.StepLapse=({button:{disabled:n=!1,text:r,type:i="button",onClick:a},steps:o})=>{const[s,l]=t.useState(1),u=t.useCallback(((e,t)=>()=>{l((t=>t+e)),null==t||t()}),[]);return e.jsxRuntimeExports.jsx(dw,{children:o.map(((t,l)=>{const{content:d,title:p,nextAction:h,previousAction:f}=t,m=l+1,g=m<s?"completed":m===s?"current":"disabled";return e.jsxRuntimeExports.jsxs(pw,{children:[e.jsxRuntimeExports.jsx(c,{maxWidth:"40px",position:"relative",children:e.jsxRuntimeExports.jsx(fw,{$variant:g,children:"completed"===g?e.jsxRuntimeExports.jsx(e.Icon,{icon:"check",iconSize:"xs",iconType:"fa-solid"}):m})}),e.jsxRuntimeExports.jsxs(c,{ml:1.5,width:"100%",children:[e.jsxRuntimeExports.jsx(e.Heading,{fontWeight:"bold",lineSpacing:1.25,mb:1.5,size:"xs",children:p}),"current"===g&&e.jsxRuntimeExports.jsxs(c,{children:[d,e.jsxRuntimeExports.jsxs(hw,{children:[s>1&&e.jsxRuntimeExports.jsx(e.Button,{disabled:t.isDisabledPrevious??!1,onClick:u(-1,f),variant:"tertiary",children:"Previous"}),s<o.length?e.jsxRuntimeExports.jsx(e.Button,{disabled:t.isDisabledNext??!1,onClick:u(1,h),variant:"primary",children:"Next step"}):e.jsxRuntimeExports.jsx(e.Button,{disabled:n,onClick:a,type:i,variant:"primary",children:r})]})]})]})]},t.title)}))})},exports.Tab=rf,exports.TableButton=({disabled:t=!1,icon:r,id:i,label:a,name:o,onClick:s,type:l="button",variant:u})=>{const d=n.useTheme(),p=e.jsxRuntimeExports.jsxs(mw,{"aria-label":o??void 0,className:u,disabled:t,id:i,onClick:s,type:l,children:[e.jsxRuntimeExports.jsx(e.Icon,{clickable:!1,icon:r??gw[u].icon,iconSize:void 0===o?"xxs":"xs",iconType:"fa-light"}),o??void 0]});return e.jsxRuntimeExports.jsxs(c,{alignItems:"center",display:"flex",children:[p,a&&e.jsxRuntimeExports.jsx(e.Text,{color:d.palette.gray[800],ml:.5,size:"sm",children:a})]})},exports.Tabs=af,exports.Tag=Xs,exports.TextArea=nu,exports.TimeLine=({items:t})=>e.jsxRuntimeExports.jsx(vw,{children:t.map(((t,n)=>e.jsxRuntimeExports.jsx(bw,{date:t.date,description:t.description,title:t.title},`${t.title}-${n}`)))}),exports.TimeLineCard=bw,exports.Toggle=Jp,exports.ToggleButton=({defaultSelection:n,options:r,handleClick:i})=>{const[a,o]=t.useState(n??r[0]),s=t.useCallback((e=>()=>{o(e),i(e)}),[i]);return e.jsxRuntimeExports.jsx(xw,{children:r.map(((t,n)=>e.jsxRuntimeExports.jsx(ww,{className:`${t.includes(a)&&"selected"}`,onClick:s(t),children:e.jsxRuntimeExports.jsx(e.Text,{color:"inherit",fontWeight:"bold",size:"md",sizeSm:"sm",textAlign:"center",children:t})},`${t}-${n}`)))})},exports.Tour=({run:n,steps:r,onFinish:i})=>{const[a,o]=t.useState(n),[s,l]=t.useState(0),u=t.useCallback((e=>{const{action:t,index:n,status:r,type:a}=e;[KS.STEP_AFTER,KS.TARGET_NOT_FOUND].includes(a)?l(n+(t===zS?-1:1)):([ZS.FINISHED,ZS.SKIPPED].includes(r)||"close"===t)&&(o(!1),Yh(i)||i())}),[i]);return e.jsxRuntimeExports.jsx(FD,{callback:u,continuous:!0,disableOverlayClose:!0,disableScrollParentFix:!0,run:a,spotlightClicks:!0,stepIndex:s,steps:r,styles:{buttonNext:{display:s===r.length-1?"none":"block"},options:{zIndex:9999}}})},exports.WebForm=({children:t,name:n,onSubmit:r,submitDisabled:i,submitLabel:a="Submit"})=>e.jsxRuntimeExports.jsx(LD,{"aria-label":n,name:n,onSubmit:r,children:e.jsxRuntimeExports.jsxs(VD,{children:[t,e.jsxRuntimeExports.jsx(e.Button,{disabled:i,type:"submit",children:a})]})}),exports.baseStep={content:"",disableBeacon:!0,hideCloseButton:!1,locale:{back:"Back",close:"Close",last:"Close",next:"Next",open:"Open the dialog",skip:"Skip"},showSkipButton:!0,styles:{buttonBack:{fontFamily:"roboto"},buttonNext:{fontFamily:"roboto"},buttonSkip:{fontFamily:"roboto"},options:{zIndex:9999},tooltipContainer:{fontFamily:"roboto",textAlign:"left"}},target:""},exports.useCarousel=ip,exports.useClickOutside=eu,exports.useCloudinaryImage=zp,exports.useConfirmDialog=()=>{const[n,r]=t.useState(!1),[i,a]=t.useState(),o=t.useRef(null),s=Up("confirm-dialog-modal"),l=t.useCallback((async e=>(a(e),r(!0),new Promise((e=>{o.current=e})))),[]),u=t.useCallback((()=>{var e;r(!1),a(void 0),null==(e=o.current)||e.call(o,!0)}),[]),c=t.useCallback((()=>{var e;r(!1),a(void 0),null==(e=o.current)||e.call(o,!1)}),[]);return t.useEffect((()=>{s.setIsOpen(n)}),[n,s]),{ConfirmDialog:({id:t="confirm-dialog-modal",children:n})=>e.jsxRuntimeExports.jsxs(Eh,{id:t,modalRef:{...s,close:c},size:"sm",title:null==i?void 0:i.title,children:[n,null==i?void 0:i.message,e.jsxRuntimeExports.jsx(lh,{id:null==i?void 0:i.id,onCancel:c,onConfirm:u})]}),confirm:l}},exports.useDebouncedCallback=Bp,exports.useModal=Up,exports.useSearch=e=>{const[n,r]=t.useState();return[n,Bp((e=>{r(e)}),(null==e?void 0:e.debounceWait)??300)]};
|