lawgic-dev-kit 0.25.2 → 0.25.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/index2.js +2 -3
- package/dist/_virtual/index3.js +3 -3
- package/dist/_virtual/index4.js +3 -5
- package/dist/_virtual/index5.js +5 -2
- package/dist/_virtual/index6.js +2 -2
- package/dist/_virtual/index7.js +2 -2
- package/dist/components/molecules/Stepper/Stepper.js +16 -16
- package/dist/lawgic-dev-kit.css +1 -1
- package/dist/lawgic-dev-kit.umd.js +10 -10
- package/dist/node_modules/prop-types/index.js +1 -1
- package/dist/node_modules/prop-types/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/toposort/index.js +1 -1
- package/dist/node_modules/yup/index.esm.js +3 -3
- package/package.json +1 -1
|
@@ -622,14 +622,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
622
622
|
* Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com
|
|
623
623
|
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
|
624
624
|
* Copyright 2024 Fonticons, Inc.
|
|
625
|
-
*/const gO={prefix:"fas",iconName:"user",icon:[448,512,[128100,62144],"f007","M224 256A128 128 0 1 0 224 0a128 128 0 1 0 0 256zm-45.7 48C79.8 304 0 383.8 0 482.3C0 498.7 13.3 512 29.7 512l388.6 0c16.4 0 29.7-13.3 29.7-29.7C448 383.8 368.2 304 269.7 304l-91.4 0z"]},yO={prefix:"fas",iconName:"chevron-right",icon:[320,512,[9002],"f054","M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"]},xO={prefix:"fas",iconName:"check",icon:[448,512,[10003,10004],"f00c","M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"]},tx={prefix:"fas",iconName:"x",icon:[384,512,[120],"58","M376.6 84.5c11.3-13.6 9.5-33.8-4.1-45.1s-33.8-9.5-45.1 4.1L192 206 56.6 43.5C45.3 29.9 25.1 28.1 11.5 39.4S-3.9 70.9 7.4 84.5L150.3 256 7.4 427.5c-11.3 13.6-9.5 33.8 4.1 45.1s33.8 9.5 45.1-4.1L192 306 327.4 468.5c11.3 13.6 31.5 15.4 45.1 4.1s15.4-31.5 4.1-45.1L233.7 256 376.6 84.5z"]},nx=6048e5,vO=864e5,rx=Symbol.for("constructDateFrom");function Ut(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&rx in e?e[rx](t):e instanceof Date?new e.constructor(t):new Date(t)}function pt(e,t){return Ut(t||e,e)}function sx(e,t,n){const r=pt(e,n==null?void 0:n.in);if(isNaN(t))return Ut(e,NaN);if(!t)return r;const s=r.getDate(),o=Ut(e,r.getTime());o.setMonth(r.getMonth()+t+1,0);const a=o.getDate();return s>=a?o:(r.setFullYear(o.getFullYear(),o.getMonth(),s),r)}let bO={};function co(){return bO}function Ks(e,t){var c,u,d,h;const n=co(),r=(t==null?void 0:t.weekStartsOn)??((u=(c=t==null?void 0:t.locale)==null?void 0:c.options)==null?void 0:u.weekStartsOn)??n.weekStartsOn??((h=(d=n.locale)==null?void 0:d.options)==null?void 0:h.weekStartsOn)??0,s=pt(e,t==null?void 0:t.in),o=s.getDay(),a=(o<r?7:0)+o-r;return s.setDate(s.getDate()-a),s.setHours(0,0,0,0),s}function Oa(e,t){return Ks(e,{...t,weekStartsOn:1})}function ix(e,t){const n=pt(e,t==null?void 0:t.in),r=n.getFullYear(),s=Ut(n,0);s.setFullYear(r+1,0,4),s.setHours(0,0,0,0);const o=Oa(s),a=Ut(n,0);a.setFullYear(r,0,4),a.setHours(0,0,0,0);const c=Oa(a);return n.getTime()>=o.getTime()?r+1:n.getTime()>=c.getTime()?r:r-1}function ox(e){const t=pt(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function $a(e,...t){const n=Ut.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function _a(e,t){const n=pt(e,t==null?void 0:t.in);return n.setHours(0,0,0,0),n}function wO(e,t,n){const[r,s]=$a(n==null?void 0:n.in,e,t),o=_a(r),a=_a(s),c=+o-ox(o),u=+a-ox(a);return Math.round((c-u)/vO)}function SO(e,t){const n=ix(e,t),r=Ut(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Oa(r)}function TO(e){return Ut(e,Date.now())}function ax(e,t,n){const[r,s]=$a(n==null?void 0:n.in,e,t);return+_a(r)==+_a(s)}function CO(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function EO(e){return!(!CO(e)&&typeof e!="number"||isNaN(+pt(e)))}function PO(e,t){const n=pt(e,t==null?void 0:t.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function AO(e,t){const[n,r]=$a(e,t.start,t.end);return{start:n,end:r}}function MO(e,t){const{start:n,end:r}=AO(t==null?void 0:t.in,e);let s=+n>+r;const o=s?+n:+r,a=s?r:n;a.setHours(0,0,0,0);let c=1;const u=[];for(;+a<=o;)u.push(Ut(n,a)),a.setDate(a.getDate()+c),a.setHours(0,0,0,0);return s?u.reverse():u}function OO(e,t){const n=pt(e,t==null?void 0:t.in);return n.setDate(1),n.setHours(0,0,0,0),n}function $O(e,t){const n=pt(e,t==null?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function _O(e,t){var c,u;const n=co(),r=n.weekStartsOn??((u=(c=n.locale)==null?void 0:c.options)==null?void 0:u.weekStartsOn)??0,s=pt(e,t==null?void 0:t.in),o=s.getDay(),a=(o<r?-7:0)+6-(o-r);return s.setDate(s.getDate()+a),s.setHours(23,59,59,999),s}const IO={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},DO=(e,t,n)=>{let r;const s=IO[e];return typeof s=="string"?r=s:t===1?r=s.one:r=s.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function Xs(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const NO={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},kO={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},jO={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},LO={date:Xs({formats:NO,defaultWidth:"full"}),time:Xs({formats:kO,defaultWidth:"full"}),dateTime:Xs({formats:jO,defaultWidth:"full"})},RO={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},FO=(e,t,n,r)=>RO[e];function On(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let s;if(r==="formatting"&&e.formattingValues){const a=e.defaultFormattingWidth||e.defaultWidth,c=n!=null&&n.width?String(n.width):a;s=e.formattingValues[c]||e.formattingValues[a]}else{const a=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;s=e.values[c]||e.values[a]}const o=e.argumentCallback?e.argumentCallback(t):t;return s[o]}}const VO={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},BO={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},WO={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},UO={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},zO={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},GO={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},YO={ordinalNumber:(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:On({values:VO,defaultWidth:"wide"}),quarter:On({values:BO,defaultWidth:"wide",argumentCallback:e=>e-1}),month:On({values:WO,defaultWidth:"wide"}),day:On({values:UO,defaultWidth:"wide"}),dayPeriod:On({values:zO,defaultWidth:"wide",formattingValues:GO,defaultFormattingWidth:"wide"})};function $n(e){return(t,n={})=>{const r=n.width,s=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(s);if(!o)return null;const a=o[0],c=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(c)?qO(c,m=>m.test(a)):HO(c,m=>m.test(a));let d;d=e.valueCallback?e.valueCallback(u):u,d=n.valueCallback?n.valueCallback(d):d;const h=t.slice(a.length);return{value:d,rest:h}}}function HO(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function qO(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function lx(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const s=r[0],o=t.match(e.parsePattern);if(!o)return null;let a=e.valueCallback?e.valueCallback(o[0]):o[0];a=n.valueCallback?n.valueCallback(a):a;const c=t.slice(s.length);return{value:a,rest:c}}}const KO=/^(\d+)(th|st|nd|rd)?/i,XO=/\d+/i,ZO={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},JO={any:[/^b/i,/^(a|c)/i]},QO={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},e$={any:[/1/i,/2/i,/3/i,/4/i]},t$={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},n$={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},r$={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},s$={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},i$={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},o$={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},a$={ordinalNumber:lx({matchPattern:KO,parsePattern:XO,valueCallback:e=>parseInt(e,10)}),era:$n({matchPatterns:ZO,defaultMatchWidth:"wide",parsePatterns:JO,defaultParseWidth:"any"}),quarter:$n({matchPatterns:QO,defaultMatchWidth:"wide",parsePatterns:e$,defaultParseWidth:"any",valueCallback:e=>e+1}),month:$n({matchPatterns:t$,defaultMatchWidth:"wide",parsePatterns:n$,defaultParseWidth:"any"}),day:$n({matchPatterns:r$,defaultMatchWidth:"wide",parsePatterns:s$,defaultParseWidth:"any"}),dayPeriod:$n({matchPatterns:i$,defaultMatchWidth:"any",parsePatterns:o$,defaultParseWidth:"any"})},cx={code:"en-US",formatDistance:DO,formatLong:LO,formatRelative:FO,localize:YO,match:a$,options:{weekStartsOn:0,firstWeekContainsDate:1}};function l$(e,t){const n=pt(e,t==null?void 0:t.in);return wO(n,$O(n))+1}function c$(e,t){const n=pt(e,t==null?void 0:t.in),r=+Oa(n)-+SO(n);return Math.round(r/nx)+1}function ux(e,t){var h,m,p,x;const n=pt(e,t==null?void 0:t.in),r=n.getFullYear(),s=co(),o=(t==null?void 0:t.firstWeekContainsDate)??((m=(h=t==null?void 0:t.locale)==null?void 0:h.options)==null?void 0:m.firstWeekContainsDate)??s.firstWeekContainsDate??((x=(p=s.locale)==null?void 0:p.options)==null?void 0:x.firstWeekContainsDate)??1,a=Ut((t==null?void 0:t.in)||e,0);a.setFullYear(r+1,0,o),a.setHours(0,0,0,0);const c=Ks(a,t),u=Ut((t==null?void 0:t.in)||e,0);u.setFullYear(r,0,o),u.setHours(0,0,0,0);const d=Ks(u,t);return+n>=+c?r+1:+n>=+d?r:r-1}function u$(e,t){var c,u,d,h;const n=co(),r=(t==null?void 0:t.firstWeekContainsDate)??((u=(c=t==null?void 0:t.locale)==null?void 0:c.options)==null?void 0:u.firstWeekContainsDate)??n.firstWeekContainsDate??((h=(d=n.locale)==null?void 0:d.options)==null?void 0:h.firstWeekContainsDate)??1,s=ux(e,t),o=Ut((t==null?void 0:t.in)||e,0);return o.setFullYear(s,0,r),o.setHours(0,0,0,0),Ks(o,t)}function f$(e,t){const n=pt(e,t==null?void 0:t.in),r=+Ks(n,t)-+u$(n,t);return Math.round(r/nx)+1}function Ue(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Or={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return Ue(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):Ue(n+1,2)},d(e,t){return Ue(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return Ue(e.getHours()%12||12,t.length)},H(e,t){return Ue(e.getHours(),t.length)},m(e,t){return Ue(e.getMinutes(),t.length)},s(e,t){return Ue(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),s=Math.trunc(r*Math.pow(10,n-3));return Ue(s,t.length)}},Zs={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},fx={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),s=r>0?r:1-r;return n.ordinalNumber(s,{unit:"year"})}return Or.y(e,t)},Y:function(e,t,n,r){const s=ux(e,r),o=s>0?s:1-s;if(t==="YY"){const a=o%100;return Ue(a,2)}return t==="Yo"?n.ordinalNumber(o,{unit:"year"}):Ue(o,t.length)},R:function(e,t){const n=ix(e);return Ue(n,t.length)},u:function(e,t){const n=e.getFullYear();return Ue(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return Ue(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return Ue(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return Or.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return Ue(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const s=f$(e,r);return t==="wo"?n.ordinalNumber(s,{unit:"week"}):Ue(s,t.length)},I:function(e,t,n){const r=c$(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):Ue(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Or.d(e,t)},D:function(e,t,n){const r=l$(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):Ue(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const s=e.getDay(),o=(s-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return Ue(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(s,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(s,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(s,{width:"short",context:"formatting"});case"eeee":default:return n.day(s,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const s=e.getDay(),o=(s-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return Ue(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(s,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(s,{width:"narrow",context:"standalone"});case"cccccc":return n.day(s,{width:"short",context:"standalone"});case"cccc":default:return n.day(s,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),s=r===0?7:r;switch(t){case"i":return String(s);case"ii":return Ue(s,t.length);case"io":return n.ordinalNumber(s,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const s=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let s;switch(r===12?s=Zs.noon:r===0?s=Zs.midnight:s=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let s;switch(r>=17?s=Zs.evening:r>=12?s=Zs.afternoon:r>=4?s=Zs.morning:s=Zs.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Or.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Or.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):Ue(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):Ue(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Or.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Or.s(e,t)},S:function(e,t){return Or.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return hx(r);case"XXXX":case"XX":return as(r);case"XXXXX":case"XXX":default:return as(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return hx(r);case"xxxx":case"xx":return as(r);case"xxxxx":case"xxx":default:return as(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+dx(r,":");case"OOOO":default:return"GMT"+as(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+dx(r,":");case"zzzz":default:return"GMT"+as(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return Ue(r,t.length)},T:function(e,t,n){return Ue(+e,t.length)}};function dx(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),s=Math.trunc(r/60),o=r%60;return o===0?n+String(s):n+String(s)+t+Ue(o,2)}function hx(e,t){return e%60===0?(e>0?"-":"+")+Ue(Math.abs(e)/60,2):as(e,t)}function as(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),s=Ue(Math.trunc(r/60),2),o=Ue(r%60,2);return n+s+t+o}const mx=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},px=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},d$={p:px,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],s=n[2];if(!s)return mx(e,t);let o;switch(r){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",mx(r,t)).replace("{{time}}",px(s,t))}},h$=/^D+$/,m$=/^Y+$/,p$=["D","DD","YY","YYYY"];function g$(e){return h$.test(e)}function y$(e){return m$.test(e)}function x$(e,t,n){const r=v$(e,t,n);if(console.warn(r),p$.includes(e))throw new RangeError(r)}function v$(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const b$=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,w$=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,S$=/^'([^]*?)'?$/,T$=/''/g,C$=/[a-zA-Z]/;function _n(e,t,n){var h,m,p,x,S,b,T,v;const r=co(),s=(n==null?void 0:n.locale)??r.locale??cx,o=(n==null?void 0:n.firstWeekContainsDate)??((m=(h=n==null?void 0:n.locale)==null?void 0:h.options)==null?void 0:m.firstWeekContainsDate)??r.firstWeekContainsDate??((x=(p=r.locale)==null?void 0:p.options)==null?void 0:x.firstWeekContainsDate)??1,a=(n==null?void 0:n.weekStartsOn)??((b=(S=n==null?void 0:n.locale)==null?void 0:S.options)==null?void 0:b.weekStartsOn)??r.weekStartsOn??((v=(T=r.locale)==null?void 0:T.options)==null?void 0:v.weekStartsOn)??0,c=pt(e,n==null?void 0:n.in);if(!EO(c))throw new RangeError("Invalid time value");let u=t.match(w$).map(A=>{const C=A[0];if(C==="p"||C==="P"){const I=d$[C];return I(A,s.formatLong)}return A}).join("").match(b$).map(A=>{if(A==="''")return{isToken:!1,value:"'"};const C=A[0];if(C==="'")return{isToken:!1,value:E$(A)};if(fx[C])return{isToken:!0,value:A};if(C.match(C$))throw new RangeError("Format string contains an unescaped latin alphabet character `"+C+"`");return{isToken:!1,value:A}});s.localize.preprocessor&&(u=s.localize.preprocessor(c,u));const d={firstWeekContainsDate:o,weekStartsOn:a,locale:s};return u.map(A=>{if(!A.isToken)return A.value;const C=A.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&y$(C)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&g$(C))&&x$(C,t,String(e));const I=fx[C[0]];return I(c,C,s.localize,d)}).join("")}function E$(e){const t=e.match(S$);return t?t[1].replace(T$,"'"):e}function P$(e,t,n){const[r,s]=$a(n==null?void 0:n.in,e,t);return r.getFullYear()===s.getFullYear()&&r.getMonth()===s.getMonth()}function A$(e,t){return ax(Ut(e,e),TO(e))}function gx(e,t,n){const r=pt(e,n==null?void 0:n.in);return r.setHours(t),r}function yx(e,t,n){const r=pt(e,n==null?void 0:n.in);return r.setMinutes(t),r}function xx(e,t,n){const r=pt(e,n==null?void 0:n.in);return r.setSeconds(t),r}function M$(e,t,n){return sx(e,-1,n)}const O$={lessThanXSeconds:{one:"menos de un segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"medio minuto",lessThanXMinutes:{one:"menos de un minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"alrededor de 1 hora",other:"alrededor de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 día",other:"{{count}} días"},aboutXWeeks:{one:"alrededor de 1 semana",other:"alrededor de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"alrededor de 1 mes",other:"alrededor de {{count}} meses"},xMonths:{one:"1 mes",other:"{{count}} meses"},aboutXYears:{one:"alrededor de 1 año",other:"alrededor de {{count}} años"},xYears:{one:"1 año",other:"{{count}} años"},overXYears:{one:"más de 1 año",other:"más de {{count}} años"},almostXYears:{one:"casi 1 año",other:"casi {{count}} años"}},$$=(e,t,n)=>{let r;const s=O$[e];return typeof s=="string"?r=s:t===1?r=s.one:r=s.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"en "+r:"hace "+r:r},_$={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/y"},I$={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},D$={full:"{{date}} 'a las' {{time}}",long:"{{date}} 'a las' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},N$={date:Xs({formats:_$,defaultWidth:"full"}),time:Xs({formats:I$,defaultWidth:"full"}),dateTime:Xs({formats:D$,defaultWidth:"full"})},k$={lastWeek:"'el' eeee 'pasado a la' p",yesterday:"'ayer a la' p",today:"'hoy a la' p",tomorrow:"'mañana a la' p",nextWeek:"eeee 'a la' p",other:"P"},j$={lastWeek:"'el' eeee 'pasado a las' p",yesterday:"'ayer a las' p",today:"'hoy a las' p",tomorrow:"'mañana a las' p",nextWeek:"eeee 'a las' p",other:"P"},L$=(e,t,n,r)=>t.getHours()!==1?j$[e]:k$[e],R$={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","después de cristo"]},F$={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},V$={narrow:["e","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],wide:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]},B$={narrow:["d","l","m","m","j","v","s"],short:["do","lu","ma","mi","ju","vi","sá"],abbreviated:["dom","lun","mar","mié","jue","vie","sáb"],wide:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"]},W$={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"}},U$={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"}},z$={ordinalNumber:(e,t)=>Number(e)+"º",era:On({values:R$,defaultWidth:"wide"}),quarter:On({values:F$,defaultWidth:"wide",argumentCallback:e=>Number(e)-1}),month:On({values:V$,defaultWidth:"wide"}),day:On({values:B$,defaultWidth:"wide"}),dayPeriod:On({values:W$,defaultWidth:"wide",formattingValues:U$,defaultFormattingWidth:"wide"})},G$=/^(\d+)(º)?/i,Y$=/\d+/i,H$={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes de la era com[uú]n|despu[eé]s de cristo|era com[uú]n)/i},q$={any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes de la era com[uú]n)/i,/^(despu[eé]s de cristo|era com[uú]n)/i]},K$={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},X$={any:[/1/i,/2/i,/3/i,/4/i]},Z$={narrow:/^[efmajsond]/i,abbreviated:/^(ene|feb|mar|abr|may|jun|jul|ago|sep|oct|nov|dic)/i,wide:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i},J$={narrow:[/^e/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^en/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i]},Q$={narrow:/^[dlmjvs]/i,short:/^(do|lu|ma|mi|ju|vi|s[áa])/i,abbreviated:/^(dom|lun|mar|mi[ée]|jue|vie|s[áa]b)/i,wide:/^(domingo|lunes|martes|mi[ée]rcoles|jueves|viernes|s[áa]bado)/i},e5={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^do/i,/^lu/i,/^ma/i,/^mi/i,/^ju/i,/^vi/i,/^sa/i]},t5={narrow:/^(a|p|mn|md|(de la|a las) (mañana|tarde|noche))/i,any:/^([ap]\.?\s?m\.?|medianoche|mediodia|(de la|a las) (mañana|tarde|noche))/i},n5={any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/^md/i,morning:/mañana/i,afternoon:/tarde/i,evening:/tarde/i,night:/noche/i}},r5={ordinalNumber:lx({matchPattern:G$,parsePattern:Y$,valueCallback:function(e){return parseInt(e,10)}}),era:$n({matchPatterns:H$,defaultMatchWidth:"wide",parsePatterns:q$,defaultParseWidth:"any"}),quarter:$n({matchPatterns:K$,defaultMatchWidth:"wide",parsePatterns:X$,defaultParseWidth:"any",valueCallback:e=>e+1}),month:$n({matchPatterns:Z$,defaultMatchWidth:"wide",parsePatterns:J$,defaultParseWidth:"any"}),day:$n({matchPatterns:Q$,defaultMatchWidth:"wide",parsePatterns:e5,defaultParseWidth:"any"}),dayPeriod:$n({matchPatterns:t5,defaultMatchWidth:"any",parsePatterns:n5,defaultParseWidth:"any"})},Js={code:"es",formatDistance:$$,formatLong:N$,formatRelative:L$,localize:z$,match:r5,options:{weekStartsOn:1,firstWeekContainsDate:1}},vx=e=>e&&e.charAt(0).toUpperCase()+e.slice(1),df=e=>{if(!e)return"#9CA1B6";let t=0,n;for(n=0;n<e.length;n+=1)t=e.charCodeAt(n)+((t<<5)-t);let r="#";for(n=0;n<3;n+=1){const s=t>>n*8&255;r+=`00${s.toString(16)}`.slice(-2)}return r},s5=(e,t="PPPP",n="es")=>{const r=typeof e=="string"?new Date(e):e;return vx(_n(r,t,{locale:{en:cx,es:Js}[n]}))},i5=e=>new Promise((t,n)=>{const r=new FileReader;r.readAsDataURL(e),r.onload=()=>t(r.result),r.onerror=s=>n(s)});function bx(e,t){if(e<0)throw new Error("El valor en bytes no puede ser negativo");const r={b:{divisor:1,label:"B"},kb:{divisor:1024,label:"KB"},mb:{divisor:1024*1024,label:"MB"},gb:{divisor:1024*1024*1024,label:"GB"},tb:{divisor:1024*1024*1024*1024,label:"TB"},pb:{divisor:1024*1024*1024*1024*1024,label:"PB"}}[t];if(!r)throw new Error(`Unidad de medida '${t}' no reconocida`);return`${(e/r.divisor).toFixed(2).replace(/\.?0+$/,"")} ${r.label}`}const wx=e=>e;var uo={exports:{}};/**
|
|
625
|
+
*/const gO={prefix:"fas",iconName:"user",icon:[448,512,[128100,62144],"f007","M224 256A128 128 0 1 0 224 0a128 128 0 1 0 0 256zm-45.7 48C79.8 304 0 383.8 0 482.3C0 498.7 13.3 512 29.7 512l388.6 0c16.4 0 29.7-13.3 29.7-29.7C448 383.8 368.2 304 269.7 304l-91.4 0z"]},yO={prefix:"fas",iconName:"chevron-right",icon:[320,512,[9002],"f054","M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"]},xO={prefix:"fas",iconName:"check",icon:[448,512,[10003,10004],"f00c","M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"]},tx={prefix:"fas",iconName:"x",icon:[384,512,[120],"58","M376.6 84.5c11.3-13.6 9.5-33.8-4.1-45.1s-33.8-9.5-45.1 4.1L192 206 56.6 43.5C45.3 29.9 25.1 28.1 11.5 39.4S-3.9 70.9 7.4 84.5L150.3 256 7.4 427.5c-11.3 13.6-9.5 33.8 4.1 45.1s33.8 9.5 45.1-4.1L192 306 327.4 468.5c11.3 13.6 31.5 15.4 45.1 4.1s15.4-31.5 4.1-45.1L233.7 256 376.6 84.5z"]},nx=6048e5,vO=864e5,rx=Symbol.for("constructDateFrom");function Ut(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&rx in e?e[rx](t):e instanceof Date?new e.constructor(t):new Date(t)}function pt(e,t){return Ut(t||e,e)}function sx(e,t,n){const r=pt(e,n==null?void 0:n.in);if(isNaN(t))return Ut(e,NaN);if(!t)return r;const s=r.getDate(),o=Ut(e,r.getTime());o.setMonth(r.getMonth()+t+1,0);const a=o.getDate();return s>=a?o:(r.setFullYear(o.getFullYear(),o.getMonth(),s),r)}let bO={};function co(){return bO}function Ks(e,t){var c,u,d,h;const n=co(),r=(t==null?void 0:t.weekStartsOn)??((u=(c=t==null?void 0:t.locale)==null?void 0:c.options)==null?void 0:u.weekStartsOn)??n.weekStartsOn??((h=(d=n.locale)==null?void 0:d.options)==null?void 0:h.weekStartsOn)??0,s=pt(e,t==null?void 0:t.in),o=s.getDay(),a=(o<r?7:0)+o-r;return s.setDate(s.getDate()-a),s.setHours(0,0,0,0),s}function Oa(e,t){return Ks(e,{...t,weekStartsOn:1})}function ix(e,t){const n=pt(e,t==null?void 0:t.in),r=n.getFullYear(),s=Ut(n,0);s.setFullYear(r+1,0,4),s.setHours(0,0,0,0);const o=Oa(s),a=Ut(n,0);a.setFullYear(r,0,4),a.setHours(0,0,0,0);const c=Oa(a);return n.getTime()>=o.getTime()?r+1:n.getTime()>=c.getTime()?r:r-1}function ox(e){const t=pt(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function $a(e,...t){const n=Ut.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function _a(e,t){const n=pt(e,t==null?void 0:t.in);return n.setHours(0,0,0,0),n}function wO(e,t,n){const[r,s]=$a(n==null?void 0:n.in,e,t),o=_a(r),a=_a(s),c=+o-ox(o),u=+a-ox(a);return Math.round((c-u)/vO)}function SO(e,t){const n=ix(e,t),r=Ut(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Oa(r)}function TO(e){return Ut(e,Date.now())}function ax(e,t,n){const[r,s]=$a(n==null?void 0:n.in,e,t);return+_a(r)==+_a(s)}function CO(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function EO(e){return!(!CO(e)&&typeof e!="number"||isNaN(+pt(e)))}function PO(e,t){const n=pt(e,t==null?void 0:t.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function AO(e,t){const[n,r]=$a(e,t.start,t.end);return{start:n,end:r}}function MO(e,t){const{start:n,end:r}=AO(t==null?void 0:t.in,e);let s=+n>+r;const o=s?+n:+r,a=s?r:n;a.setHours(0,0,0,0);let c=1;const u=[];for(;+a<=o;)u.push(Ut(n,a)),a.setDate(a.getDate()+c),a.setHours(0,0,0,0);return s?u.reverse():u}function OO(e,t){const n=pt(e,t==null?void 0:t.in);return n.setDate(1),n.setHours(0,0,0,0),n}function $O(e,t){const n=pt(e,t==null?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function _O(e,t){var c,u;const n=co(),r=n.weekStartsOn??((u=(c=n.locale)==null?void 0:c.options)==null?void 0:u.weekStartsOn)??0,s=pt(e,t==null?void 0:t.in),o=s.getDay(),a=(o<r?-7:0)+6-(o-r);return s.setDate(s.getDate()+a),s.setHours(23,59,59,999),s}const IO={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},DO=(e,t,n)=>{let r;const s=IO[e];return typeof s=="string"?r=s:t===1?r=s.one:r=s.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function Xs(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const NO={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},kO={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},jO={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},LO={date:Xs({formats:NO,defaultWidth:"full"}),time:Xs({formats:kO,defaultWidth:"full"}),dateTime:Xs({formats:jO,defaultWidth:"full"})},RO={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},FO=(e,t,n,r)=>RO[e];function On(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let s;if(r==="formatting"&&e.formattingValues){const a=e.defaultFormattingWidth||e.defaultWidth,c=n!=null&&n.width?String(n.width):a;s=e.formattingValues[c]||e.formattingValues[a]}else{const a=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;s=e.values[c]||e.values[a]}const o=e.argumentCallback?e.argumentCallback(t):t;return s[o]}}const VO={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},BO={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},WO={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},UO={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},zO={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},GO={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},YO={ordinalNumber:(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:On({values:VO,defaultWidth:"wide"}),quarter:On({values:BO,defaultWidth:"wide",argumentCallback:e=>e-1}),month:On({values:WO,defaultWidth:"wide"}),day:On({values:UO,defaultWidth:"wide"}),dayPeriod:On({values:zO,defaultWidth:"wide",formattingValues:GO,defaultFormattingWidth:"wide"})};function $n(e){return(t,n={})=>{const r=n.width,s=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(s);if(!o)return null;const a=o[0],c=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(c)?qO(c,m=>m.test(a)):HO(c,m=>m.test(a));let d;d=e.valueCallback?e.valueCallback(u):u,d=n.valueCallback?n.valueCallback(d):d;const h=t.slice(a.length);return{value:d,rest:h}}}function HO(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function qO(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function lx(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const s=r[0],o=t.match(e.parsePattern);if(!o)return null;let a=e.valueCallback?e.valueCallback(o[0]):o[0];a=n.valueCallback?n.valueCallback(a):a;const c=t.slice(s.length);return{value:a,rest:c}}}const KO=/^(\d+)(th|st|nd|rd)?/i,XO=/\d+/i,ZO={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},JO={any:[/^b/i,/^(a|c)/i]},QO={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},e$={any:[/1/i,/2/i,/3/i,/4/i]},t$={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},n$={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},r$={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},s$={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},i$={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},o$={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},a$={ordinalNumber:lx({matchPattern:KO,parsePattern:XO,valueCallback:e=>parseInt(e,10)}),era:$n({matchPatterns:ZO,defaultMatchWidth:"wide",parsePatterns:JO,defaultParseWidth:"any"}),quarter:$n({matchPatterns:QO,defaultMatchWidth:"wide",parsePatterns:e$,defaultParseWidth:"any",valueCallback:e=>e+1}),month:$n({matchPatterns:t$,defaultMatchWidth:"wide",parsePatterns:n$,defaultParseWidth:"any"}),day:$n({matchPatterns:r$,defaultMatchWidth:"wide",parsePatterns:s$,defaultParseWidth:"any"}),dayPeriod:$n({matchPatterns:i$,defaultMatchWidth:"any",parsePatterns:o$,defaultParseWidth:"any"})},cx={code:"en-US",formatDistance:DO,formatLong:LO,formatRelative:FO,localize:YO,match:a$,options:{weekStartsOn:0,firstWeekContainsDate:1}};function l$(e,t){const n=pt(e,t==null?void 0:t.in);return wO(n,$O(n))+1}function c$(e,t){const n=pt(e,t==null?void 0:t.in),r=+Oa(n)-+SO(n);return Math.round(r/nx)+1}function ux(e,t){var h,m,p,x;const n=pt(e,t==null?void 0:t.in),r=n.getFullYear(),s=co(),o=(t==null?void 0:t.firstWeekContainsDate)??((m=(h=t==null?void 0:t.locale)==null?void 0:h.options)==null?void 0:m.firstWeekContainsDate)??s.firstWeekContainsDate??((x=(p=s.locale)==null?void 0:p.options)==null?void 0:x.firstWeekContainsDate)??1,a=Ut((t==null?void 0:t.in)||e,0);a.setFullYear(r+1,0,o),a.setHours(0,0,0,0);const c=Ks(a,t),u=Ut((t==null?void 0:t.in)||e,0);u.setFullYear(r,0,o),u.setHours(0,0,0,0);const d=Ks(u,t);return+n>=+c?r+1:+n>=+d?r:r-1}function u$(e,t){var c,u,d,h;const n=co(),r=(t==null?void 0:t.firstWeekContainsDate)??((u=(c=t==null?void 0:t.locale)==null?void 0:c.options)==null?void 0:u.firstWeekContainsDate)??n.firstWeekContainsDate??((h=(d=n.locale)==null?void 0:d.options)==null?void 0:h.firstWeekContainsDate)??1,s=ux(e,t),o=Ut((t==null?void 0:t.in)||e,0);return o.setFullYear(s,0,r),o.setHours(0,0,0,0),Ks(o,t)}function f$(e,t){const n=pt(e,t==null?void 0:t.in),r=+Ks(n,t)-+u$(n,t);return Math.round(r/nx)+1}function Ue(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Or={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return Ue(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):Ue(n+1,2)},d(e,t){return Ue(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return Ue(e.getHours()%12||12,t.length)},H(e,t){return Ue(e.getHours(),t.length)},m(e,t){return Ue(e.getMinutes(),t.length)},s(e,t){return Ue(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),s=Math.trunc(r*Math.pow(10,n-3));return Ue(s,t.length)}},Zs={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},fx={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),s=r>0?r:1-r;return n.ordinalNumber(s,{unit:"year"})}return Or.y(e,t)},Y:function(e,t,n,r){const s=ux(e,r),o=s>0?s:1-s;if(t==="YY"){const a=o%100;return Ue(a,2)}return t==="Yo"?n.ordinalNumber(o,{unit:"year"}):Ue(o,t.length)},R:function(e,t){const n=ix(e);return Ue(n,t.length)},u:function(e,t){const n=e.getFullYear();return Ue(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return Ue(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return Ue(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return Or.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return Ue(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const s=f$(e,r);return t==="wo"?n.ordinalNumber(s,{unit:"week"}):Ue(s,t.length)},I:function(e,t,n){const r=c$(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):Ue(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Or.d(e,t)},D:function(e,t,n){const r=l$(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):Ue(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const s=e.getDay(),o=(s-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return Ue(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(s,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(s,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(s,{width:"short",context:"formatting"});case"eeee":default:return n.day(s,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const s=e.getDay(),o=(s-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return Ue(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(s,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(s,{width:"narrow",context:"standalone"});case"cccccc":return n.day(s,{width:"short",context:"standalone"});case"cccc":default:return n.day(s,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),s=r===0?7:r;switch(t){case"i":return String(s);case"ii":return Ue(s,t.length);case"io":return n.ordinalNumber(s,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const s=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let s;switch(r===12?s=Zs.noon:r===0?s=Zs.midnight:s=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let s;switch(r>=17?s=Zs.evening:r>=12?s=Zs.afternoon:r>=4?s=Zs.morning:s=Zs.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Or.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Or.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):Ue(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):Ue(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Or.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Or.s(e,t)},S:function(e,t){return Or.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return hx(r);case"XXXX":case"XX":return as(r);case"XXXXX":case"XXX":default:return as(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return hx(r);case"xxxx":case"xx":return as(r);case"xxxxx":case"xxx":default:return as(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+dx(r,":");case"OOOO":default:return"GMT"+as(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+dx(r,":");case"zzzz":default:return"GMT"+as(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return Ue(r,t.length)},T:function(e,t,n){return Ue(+e,t.length)}};function dx(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),s=Math.trunc(r/60),o=r%60;return o===0?n+String(s):n+String(s)+t+Ue(o,2)}function hx(e,t){return e%60===0?(e>0?"-":"+")+Ue(Math.abs(e)/60,2):as(e,t)}function as(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),s=Ue(Math.trunc(r/60),2),o=Ue(r%60,2);return n+s+t+o}const mx=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},px=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},d$={p:px,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],s=n[2];if(!s)return mx(e,t);let o;switch(r){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",mx(r,t)).replace("{{time}}",px(s,t))}},h$=/^D+$/,m$=/^Y+$/,p$=["D","DD","YY","YYYY"];function g$(e){return h$.test(e)}function y$(e){return m$.test(e)}function x$(e,t,n){const r=v$(e,t,n);if(console.warn(r),p$.includes(e))throw new RangeError(r)}function v$(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const b$=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,w$=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,S$=/^'([^]*?)'?$/,T$=/''/g,C$=/[a-zA-Z]/;function _n(e,t,n){var h,m,p,x,S,b,T,v;const r=co(),s=(n==null?void 0:n.locale)??r.locale??cx,o=(n==null?void 0:n.firstWeekContainsDate)??((m=(h=n==null?void 0:n.locale)==null?void 0:h.options)==null?void 0:m.firstWeekContainsDate)??r.firstWeekContainsDate??((x=(p=r.locale)==null?void 0:p.options)==null?void 0:x.firstWeekContainsDate)??1,a=(n==null?void 0:n.weekStartsOn)??((b=(S=n==null?void 0:n.locale)==null?void 0:S.options)==null?void 0:b.weekStartsOn)??r.weekStartsOn??((v=(T=r.locale)==null?void 0:T.options)==null?void 0:v.weekStartsOn)??0,c=pt(e,n==null?void 0:n.in);if(!EO(c))throw new RangeError("Invalid time value");let u=t.match(w$).map(A=>{const C=A[0];if(C==="p"||C==="P"){const I=d$[C];return I(A,s.formatLong)}return A}).join("").match(b$).map(A=>{if(A==="''")return{isToken:!1,value:"'"};const C=A[0];if(C==="'")return{isToken:!1,value:E$(A)};if(fx[C])return{isToken:!0,value:A};if(C.match(C$))throw new RangeError("Format string contains an unescaped latin alphabet character `"+C+"`");return{isToken:!1,value:A}});s.localize.preprocessor&&(u=s.localize.preprocessor(c,u));const d={firstWeekContainsDate:o,weekStartsOn:a,locale:s};return u.map(A=>{if(!A.isToken)return A.value;const C=A.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&y$(C)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&g$(C))&&x$(C,t,String(e));const I=fx[C[0]];return I(c,C,s.localize,d)}).join("")}function E$(e){const t=e.match(S$);return t?t[1].replace(T$,"'"):e}function P$(e,t,n){const[r,s]=$a(n==null?void 0:n.in,e,t);return r.getFullYear()===s.getFullYear()&&r.getMonth()===s.getMonth()}function A$(e,t){return ax(Ut(e,e),TO(e))}function gx(e,t,n){const r=pt(e,n==null?void 0:n.in);return r.setHours(t),r}function yx(e,t,n){const r=pt(e,n==null?void 0:n.in);return r.setMinutes(t),r}function xx(e,t,n){const r=pt(e,n==null?void 0:n.in);return r.setSeconds(t),r}function M$(e,t,n){return sx(e,-1,n)}const O$={lessThanXSeconds:{one:"menos de un segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"medio minuto",lessThanXMinutes:{one:"menos de un minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"alrededor de 1 hora",other:"alrededor de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 día",other:"{{count}} días"},aboutXWeeks:{one:"alrededor de 1 semana",other:"alrededor de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"alrededor de 1 mes",other:"alrededor de {{count}} meses"},xMonths:{one:"1 mes",other:"{{count}} meses"},aboutXYears:{one:"alrededor de 1 año",other:"alrededor de {{count}} años"},xYears:{one:"1 año",other:"{{count}} años"},overXYears:{one:"más de 1 año",other:"más de {{count}} años"},almostXYears:{one:"casi 1 año",other:"casi {{count}} años"}},$$=(e,t,n)=>{let r;const s=O$[e];return typeof s=="string"?r=s:t===1?r=s.one:r=s.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"en "+r:"hace "+r:r},_$={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/y"},I$={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},D$={full:"{{date}} 'a las' {{time}}",long:"{{date}} 'a las' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},N$={date:Xs({formats:_$,defaultWidth:"full"}),time:Xs({formats:I$,defaultWidth:"full"}),dateTime:Xs({formats:D$,defaultWidth:"full"})},k$={lastWeek:"'el' eeee 'pasado a la' p",yesterday:"'ayer a la' p",today:"'hoy a la' p",tomorrow:"'mañana a la' p",nextWeek:"eeee 'a la' p",other:"P"},j$={lastWeek:"'el' eeee 'pasado a las' p",yesterday:"'ayer a las' p",today:"'hoy a las' p",tomorrow:"'mañana a las' p",nextWeek:"eeee 'a las' p",other:"P"},L$=(e,t,n,r)=>t.getHours()!==1?j$[e]:k$[e],R$={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","después de cristo"]},F$={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},V$={narrow:["e","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],wide:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]},B$={narrow:["d","l","m","m","j","v","s"],short:["do","lu","ma","mi","ju","vi","sá"],abbreviated:["dom","lun","mar","mié","jue","vie","sáb"],wide:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"]},W$={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"}},U$={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"}},z$={ordinalNumber:(e,t)=>Number(e)+"º",era:On({values:R$,defaultWidth:"wide"}),quarter:On({values:F$,defaultWidth:"wide",argumentCallback:e=>Number(e)-1}),month:On({values:V$,defaultWidth:"wide"}),day:On({values:B$,defaultWidth:"wide"}),dayPeriod:On({values:W$,defaultWidth:"wide",formattingValues:U$,defaultFormattingWidth:"wide"})},G$=/^(\d+)(º)?/i,Y$=/\d+/i,H$={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes de la era com[uú]n|despu[eé]s de cristo|era com[uú]n)/i},q$={any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes de la era com[uú]n)/i,/^(despu[eé]s de cristo|era com[uú]n)/i]},K$={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},X$={any:[/1/i,/2/i,/3/i,/4/i]},Z$={narrow:/^[efmajsond]/i,abbreviated:/^(ene|feb|mar|abr|may|jun|jul|ago|sep|oct|nov|dic)/i,wide:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i},J$={narrow:[/^e/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^en/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i]},Q$={narrow:/^[dlmjvs]/i,short:/^(do|lu|ma|mi|ju|vi|s[áa])/i,abbreviated:/^(dom|lun|mar|mi[ée]|jue|vie|s[áa]b)/i,wide:/^(domingo|lunes|martes|mi[ée]rcoles|jueves|viernes|s[áa]bado)/i},e3={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^do/i,/^lu/i,/^ma/i,/^mi/i,/^ju/i,/^vi/i,/^sa/i]},t3={narrow:/^(a|p|mn|md|(de la|a las) (mañana|tarde|noche))/i,any:/^([ap]\.?\s?m\.?|medianoche|mediodia|(de la|a las) (mañana|tarde|noche))/i},n3={any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/^md/i,morning:/mañana/i,afternoon:/tarde/i,evening:/tarde/i,night:/noche/i}},r3={ordinalNumber:lx({matchPattern:G$,parsePattern:Y$,valueCallback:function(e){return parseInt(e,10)}}),era:$n({matchPatterns:H$,defaultMatchWidth:"wide",parsePatterns:q$,defaultParseWidth:"any"}),quarter:$n({matchPatterns:K$,defaultMatchWidth:"wide",parsePatterns:X$,defaultParseWidth:"any",valueCallback:e=>e+1}),month:$n({matchPatterns:Z$,defaultMatchWidth:"wide",parsePatterns:J$,defaultParseWidth:"any"}),day:$n({matchPatterns:Q$,defaultMatchWidth:"wide",parsePatterns:e3,defaultParseWidth:"any"}),dayPeriod:$n({matchPatterns:t3,defaultMatchWidth:"any",parsePatterns:n3,defaultParseWidth:"any"})},Js={code:"es",formatDistance:$$,formatLong:N$,formatRelative:L$,localize:z$,match:r3,options:{weekStartsOn:1,firstWeekContainsDate:1}},vx=e=>e&&e.charAt(0).toUpperCase()+e.slice(1),df=e=>{if(!e)return"#9CA1B6";let t=0,n;for(n=0;n<e.length;n+=1)t=e.charCodeAt(n)+((t<<5)-t);let r="#";for(n=0;n<3;n+=1){const s=t>>n*8&255;r+=`00${s.toString(16)}`.slice(-2)}return r},s3=(e,t="PPPP",n="es")=>{const r=typeof e=="string"?new Date(e):e;return vx(_n(r,t,{locale:{en:cx,es:Js}[n]}))},i3=e=>new Promise((t,n)=>{const r=new FileReader;r.readAsDataURL(e),r.onload=()=>t(r.result),r.onerror=s=>n(s)});function bx(e,t){if(e<0)throw new Error("El valor en bytes no puede ser negativo");const r={b:{divisor:1,label:"B"},kb:{divisor:1024,label:"KB"},mb:{divisor:1024*1024,label:"MB"},gb:{divisor:1024*1024*1024,label:"GB"},tb:{divisor:1024*1024*1024*1024,label:"TB"},pb:{divisor:1024*1024*1024*1024*1024,label:"PB"}}[t];if(!r)throw new Error(`Unidad de medida '${t}' no reconocida`);return`${(e/r.divisor).toFixed(2).replace(/\.?0+$/,"")} ${r.label}`}const wx=e=>e;var uo={exports:{}};/**
|
|
626
626
|
* @license
|
|
627
627
|
* Lodash <https://lodash.com/>
|
|
628
628
|
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
629
629
|
* Released under MIT license <https://lodash.com/license>
|
|
630
630
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
631
631
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
632
|
-
*/var o5=uo.exports,Sx;function a5(){return Sx||(Sx=1,function(e,t){(function(){var n,r="4.17.21",s=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",c="Invalid `variable` option passed into `_.template`",u="__lodash_hash_undefined__",d=500,h="__lodash_placeholder__",m=1,p=2,x=4,S=1,b=2,T=1,v=2,A=4,C=8,I=16,E=32,N=64,R=128,F=256,G=512,re=30,ee="...",le=800,oe=16,ue=1,ce=2,fe=3,U=1/0,W=9007199254740991,K=17976931348623157e292,$=NaN,k=4294967295,J=k-1,H=k>>>1,Z=[["ary",R],["bind",T],["bindKey",v],["curry",C],["curryRight",I],["flip",G],["partial",E],["partialRight",N],["rearg",F]],B="[object Arguments]",X="[object Array]",ae="[object AsyncFunction]",se="[object Boolean]",he="[object Date]",Ee="[object DOMException]",Be="[object Error]",ie="[object Function]",ge="[object GeneratorFunction]",De="[object Map]",ft="[object Number]",Ss="[object Null]",dt="[object Object]",yl="[object Promise]",xl="[object Proxy]",Br="[object RegExp]",qt="[object Set]",yn="[object String]",Ts="[object Symbol]",vl="[object Undefined]",Wr="[object WeakMap]",bl="[object WeakSet]",ve="[object ArrayBuffer]",Ze="[object DataView]",Pt="[object Float32Array]",xn="[object Float64Array]",ur="[object Int8Array]",ah="[object Int16Array]",lh="[object Int32Array]",ch="[object Uint8Array]",uh="[object Uint8ClampedArray]",fh="[object Uint16Array]",dh="[object Uint32Array]",Pj=/\b__p \+= '';/g,Aj=/\b(__p \+=) '' \+/g,Mj=/(__e\(.*?\)|\b__t\)) \+\n'';/g,D2=/&(?:amp|lt|gt|quot|#39);/g,N2=/[&<>"']/g,Oj=RegExp(D2.source),$j=RegExp(N2.source),_j=/<%-([\s\S]+?)%>/g,Ij=/<%([\s\S]+?)%>/g,k2=/<%=([\s\S]+?)%>/g,Dj=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Nj=/^\w*$/,kj=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,hh=/[\\^$.*+?()[\]{}|]/g,jj=RegExp(hh.source),mh=/^\s+/,Lj=/\s/,Rj=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Fj=/\{\n\/\* \[wrapped with (.+)\] \*/,Vj=/,? & /,Bj=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Wj=/[()=,{}\[\]\/\s]/,Uj=/\\(\\)?/g,zj=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,j2=/\w*$/,Gj=/^[-+]0x[0-9a-f]+$/i,Yj=/^0b[01]+$/i,Hj=/^\[object .+?Constructor\]$/,qj=/^0o[0-7]+$/i,Kj=/^(?:0|[1-9]\d*)$/,Xj=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,wl=/($^)/,Zj=/['\n\r\u2028\u2029\\]/g,Sl="\\ud800-\\udfff",Jj="\\u0300-\\u036f",Qj="\\ufe20-\\ufe2f",eL="\\u20d0-\\u20ff",L2=Jj+Qj+eL,R2="\\u2700-\\u27bf",F2="a-z\\xdf-\\xf6\\xf8-\\xff",tL="\\xac\\xb1\\xd7\\xf7",nL="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",rL="\\u2000-\\u206f",sL=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",V2="A-Z\\xc0-\\xd6\\xd8-\\xde",B2="\\ufe0e\\ufe0f",W2=tL+nL+rL+sL,ph="['’]",iL="["+Sl+"]",U2="["+W2+"]",Tl="["+L2+"]",z2="\\d+",oL="["+R2+"]",G2="["+F2+"]",Y2="[^"+Sl+W2+z2+R2+F2+V2+"]",gh="\\ud83c[\\udffb-\\udfff]",aL="(?:"+Tl+"|"+gh+")",H2="[^"+Sl+"]",yh="(?:\\ud83c[\\udde6-\\uddff]){2}",xh="[\\ud800-\\udbff][\\udc00-\\udfff]",bi="["+V2+"]",q2="\\u200d",K2="(?:"+G2+"|"+Y2+")",lL="(?:"+bi+"|"+Y2+")",X2="(?:"+ph+"(?:d|ll|m|re|s|t|ve))?",Z2="(?:"+ph+"(?:D|LL|M|RE|S|T|VE))?",J2=aL+"?",Q2="["+B2+"]?",cL="(?:"+q2+"(?:"+[H2,yh,xh].join("|")+")"+Q2+J2+")*",uL="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",fL="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ew=Q2+J2+cL,dL="(?:"+[oL,yh,xh].join("|")+")"+ew,hL="(?:"+[H2+Tl+"?",Tl,yh,xh,iL].join("|")+")",mL=RegExp(ph,"g"),pL=RegExp(Tl,"g"),vh=RegExp(gh+"(?="+gh+")|"+hL+ew,"g"),gL=RegExp([bi+"?"+G2+"+"+X2+"(?="+[U2,bi,"$"].join("|")+")",lL+"+"+Z2+"(?="+[U2,bi+K2,"$"].join("|")+")",bi+"?"+K2+"+"+X2,bi+"+"+Z2,fL,uL,z2,dL].join("|"),"g"),yL=RegExp("["+q2+Sl+L2+B2+"]"),xL=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,vL=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],bL=-1,Xe={};Xe[Pt]=Xe[xn]=Xe[ur]=Xe[ah]=Xe[lh]=Xe[ch]=Xe[uh]=Xe[fh]=Xe[dh]=!0,Xe[B]=Xe[X]=Xe[ve]=Xe[se]=Xe[Ze]=Xe[he]=Xe[Be]=Xe[ie]=Xe[De]=Xe[ft]=Xe[dt]=Xe[Br]=Xe[qt]=Xe[yn]=Xe[Wr]=!1;var qe={};qe[B]=qe[X]=qe[ve]=qe[Ze]=qe[se]=qe[he]=qe[Pt]=qe[xn]=qe[ur]=qe[ah]=qe[lh]=qe[De]=qe[ft]=qe[dt]=qe[Br]=qe[qt]=qe[yn]=qe[Ts]=qe[ch]=qe[uh]=qe[fh]=qe[dh]=!0,qe[Be]=qe[ie]=qe[Wr]=!1;var wL={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},SL={"&":"&","<":"<",">":">",'"':""","'":"'"},TL={"&":"&","<":"<",">":">",""":'"',"'":"'"},CL={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},EL=parseFloat,PL=parseInt,tw=typeof Ko=="object"&&Ko&&Ko.Object===Object&&Ko,AL=typeof self=="object"&&self&&self.Object===Object&&self,vt=tw||AL||Function("return this")(),bh=t&&!t.nodeType&&t,Cs=bh&&!0&&e&&!e.nodeType&&e,nw=Cs&&Cs.exports===bh,wh=nw&&tw.process,an=function(){try{var j=Cs&&Cs.require&&Cs.require("util").types;return j||wh&&wh.binding&&wh.binding("util")}catch{}}(),rw=an&&an.isArrayBuffer,sw=an&&an.isDate,iw=an&&an.isMap,ow=an&&an.isRegExp,aw=an&&an.isSet,lw=an&&an.isTypedArray;function Kt(j,z,V){switch(V.length){case 0:return j.call(z);case 1:return j.call(z,V[0]);case 2:return j.call(z,V[0],V[1]);case 3:return j.call(z,V[0],V[1],V[2])}return j.apply(z,V)}function ML(j,z,V,pe){for(var Ae=-1,Le=j==null?0:j.length;++Ae<Le;){var ht=j[Ae];z(pe,ht,V(ht),j)}return pe}function ln(j,z){for(var V=-1,pe=j==null?0:j.length;++V<pe&&z(j[V],V,j)!==!1;);return j}function OL(j,z){for(var V=j==null?0:j.length;V--&&z(j[V],V,j)!==!1;);return j}function cw(j,z){for(var V=-1,pe=j==null?0:j.length;++V<pe;)if(!z(j[V],V,j))return!1;return!0}function Ur(j,z){for(var V=-1,pe=j==null?0:j.length,Ae=0,Le=[];++V<pe;){var ht=j[V];z(ht,V,j)&&(Le[Ae++]=ht)}return Le}function Cl(j,z){var V=j==null?0:j.length;return!!V&&wi(j,z,0)>-1}function Sh(j,z,V){for(var pe=-1,Ae=j==null?0:j.length;++pe<Ae;)if(V(z,j[pe]))return!0;return!1}function Je(j,z){for(var V=-1,pe=j==null?0:j.length,Ae=Array(pe);++V<pe;)Ae[V]=z(j[V],V,j);return Ae}function zr(j,z){for(var V=-1,pe=z.length,Ae=j.length;++V<pe;)j[Ae+V]=z[V];return j}function Th(j,z,V,pe){var Ae=-1,Le=j==null?0:j.length;for(pe&&Le&&(V=j[++Ae]);++Ae<Le;)V=z(V,j[Ae],Ae,j);return V}function $L(j,z,V,pe){var Ae=j==null?0:j.length;for(pe&&Ae&&(V=j[--Ae]);Ae--;)V=z(V,j[Ae],Ae,j);return V}function Ch(j,z){for(var V=-1,pe=j==null?0:j.length;++V<pe;)if(z(j[V],V,j))return!0;return!1}var _L=Eh("length");function IL(j){return j.split("")}function DL(j){return j.match(Bj)||[]}function uw(j,z,V){var pe;return V(j,function(Ae,Le,ht){if(z(Ae,Le,ht))return pe=Le,!1}),pe}function El(j,z,V,pe){for(var Ae=j.length,Le=V+(pe?1:-1);pe?Le--:++Le<Ae;)if(z(j[Le],Le,j))return Le;return-1}function wi(j,z,V){return z===z?GL(j,z,V):El(j,fw,V)}function NL(j,z,V,pe){for(var Ae=V-1,Le=j.length;++Ae<Le;)if(pe(j[Ae],z))return Ae;return-1}function fw(j){return j!==j}function dw(j,z){var V=j==null?0:j.length;return V?Ah(j,z)/V:$}function Eh(j){return function(z){return z==null?n:z[j]}}function Ph(j){return function(z){return j==null?n:j[z]}}function hw(j,z,V,pe,Ae){return Ae(j,function(Le,ht,Ge){V=pe?(pe=!1,Le):z(V,Le,ht,Ge)}),V}function kL(j,z){var V=j.length;for(j.sort(z);V--;)j[V]=j[V].value;return j}function Ah(j,z){for(var V,pe=-1,Ae=j.length;++pe<Ae;){var Le=z(j[pe]);Le!==n&&(V=V===n?Le:V+Le)}return V}function Mh(j,z){for(var V=-1,pe=Array(j);++V<j;)pe[V]=z(V);return pe}function jL(j,z){return Je(z,function(V){return[V,j[V]]})}function mw(j){return j&&j.slice(0,xw(j)+1).replace(mh,"")}function Xt(j){return function(z){return j(z)}}function Oh(j,z){return Je(z,function(V){return j[V]})}function No(j,z){return j.has(z)}function pw(j,z){for(var V=-1,pe=j.length;++V<pe&&wi(z,j[V],0)>-1;);return V}function gw(j,z){for(var V=j.length;V--&&wi(z,j[V],0)>-1;);return V}function LL(j,z){for(var V=j.length,pe=0;V--;)j[V]===z&&++pe;return pe}var RL=Ph(wL),FL=Ph(SL);function VL(j){return"\\"+CL[j]}function BL(j,z){return j==null?n:j[z]}function Si(j){return yL.test(j)}function WL(j){return xL.test(j)}function UL(j){for(var z,V=[];!(z=j.next()).done;)V.push(z.value);return V}function $h(j){var z=-1,V=Array(j.size);return j.forEach(function(pe,Ae){V[++z]=[Ae,pe]}),V}function yw(j,z){return function(V){return j(z(V))}}function Gr(j,z){for(var V=-1,pe=j.length,Ae=0,Le=[];++V<pe;){var ht=j[V];(ht===z||ht===h)&&(j[V]=h,Le[Ae++]=V)}return Le}function Pl(j){var z=-1,V=Array(j.size);return j.forEach(function(pe){V[++z]=pe}),V}function zL(j){var z=-1,V=Array(j.size);return j.forEach(function(pe){V[++z]=[pe,pe]}),V}function GL(j,z,V){for(var pe=V-1,Ae=j.length;++pe<Ae;)if(j[pe]===z)return pe;return-1}function YL(j,z,V){for(var pe=V+1;pe--;)if(j[pe]===z)return pe;return pe}function Ti(j){return Si(j)?qL(j):_L(j)}function vn(j){return Si(j)?KL(j):IL(j)}function xw(j){for(var z=j.length;z--&&Lj.test(j.charAt(z)););return z}var HL=Ph(TL);function qL(j){for(var z=vh.lastIndex=0;vh.test(j);)++z;return z}function KL(j){return j.match(vh)||[]}function XL(j){return j.match(gL)||[]}var ZL=function j(z){z=z==null?vt:Ci.defaults(vt.Object(),z,Ci.pick(vt,vL));var V=z.Array,pe=z.Date,Ae=z.Error,Le=z.Function,ht=z.Math,Ge=z.Object,_h=z.RegExp,JL=z.String,cn=z.TypeError,Al=V.prototype,QL=Le.prototype,Ei=Ge.prototype,Ml=z["__core-js_shared__"],Ol=QL.toString,ze=Ei.hasOwnProperty,eR=0,vw=function(){var i=/[^.]+$/.exec(Ml&&Ml.keys&&Ml.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""}(),$l=Ei.toString,tR=Ol.call(Ge),nR=vt._,rR=_h("^"+Ol.call(ze).replace(hh,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),_l=nw?z.Buffer:n,Yr=z.Symbol,Il=z.Uint8Array,bw=_l?_l.allocUnsafe:n,Dl=yw(Ge.getPrototypeOf,Ge),ww=Ge.create,Sw=Ei.propertyIsEnumerable,Nl=Al.splice,Tw=Yr?Yr.isConcatSpreadable:n,ko=Yr?Yr.iterator:n,Es=Yr?Yr.toStringTag:n,kl=function(){try{var i=$s(Ge,"defineProperty");return i({},"",{}),i}catch{}}(),sR=z.clearTimeout!==vt.clearTimeout&&z.clearTimeout,iR=pe&&pe.now!==vt.Date.now&&pe.now,oR=z.setTimeout!==vt.setTimeout&&z.setTimeout,jl=ht.ceil,Ll=ht.floor,Ih=Ge.getOwnPropertySymbols,aR=_l?_l.isBuffer:n,Cw=z.isFinite,lR=Al.join,cR=yw(Ge.keys,Ge),mt=ht.max,At=ht.min,uR=pe.now,fR=z.parseInt,Ew=ht.random,dR=Al.reverse,Dh=$s(z,"DataView"),jo=$s(z,"Map"),Nh=$s(z,"Promise"),Pi=$s(z,"Set"),Lo=$s(z,"WeakMap"),Ro=$s(Ge,"create"),Rl=Lo&&new Lo,Ai={},hR=_s(Dh),mR=_s(jo),pR=_s(Nh),gR=_s(Pi),yR=_s(Lo),Fl=Yr?Yr.prototype:n,Fo=Fl?Fl.valueOf:n,Pw=Fl?Fl.toString:n;function P(i){if(ot(i)&&!Me(i)&&!(i instanceof ke)){if(i instanceof un)return i;if(ze.call(i,"__wrapped__"))return AS(i)}return new un(i)}var Mi=function(){function i(){}return function(l){if(!rt(l))return{};if(ww)return ww(l);i.prototype=l;var f=new i;return i.prototype=n,f}}();function Vl(){}function un(i,l){this.__wrapped__=i,this.__actions__=[],this.__chain__=!!l,this.__index__=0,this.__values__=n}P.templateSettings={escape:_j,evaluate:Ij,interpolate:k2,variable:"",imports:{_:P}},P.prototype=Vl.prototype,P.prototype.constructor=P,un.prototype=Mi(Vl.prototype),un.prototype.constructor=un;function ke(i){this.__wrapped__=i,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=k,this.__views__=[]}function xR(){var i=new ke(this.__wrapped__);return i.__actions__=Rt(this.__actions__),i.__dir__=this.__dir__,i.__filtered__=this.__filtered__,i.__iteratees__=Rt(this.__iteratees__),i.__takeCount__=this.__takeCount__,i.__views__=Rt(this.__views__),i}function vR(){if(this.__filtered__){var i=new ke(this);i.__dir__=-1,i.__filtered__=!0}else i=this.clone(),i.__dir__*=-1;return i}function bR(){var i=this.__wrapped__.value(),l=this.__dir__,f=Me(i),y=l<0,w=f?i.length:0,M=IF(0,w,this.__views__),_=M.start,D=M.end,L=D-_,Y=y?D:_-1,q=this.__iteratees__,Q=q.length,de=0,ye=At(L,this.__takeCount__);if(!f||!y&&w==L&&ye==L)return Xw(i,this.__actions__);var Te=[];e:for(;L--&&de<ye;){Y+=l;for(var $e=-1,Ce=i[Y];++$e<Q;){var Ne=q[$e],je=Ne.iteratee,Qt=Ne.type,Dt=je(Ce);if(Qt==ce)Ce=Dt;else if(!Dt){if(Qt==ue)continue e;break e}}Te[de++]=Ce}return Te}ke.prototype=Mi(Vl.prototype),ke.prototype.constructor=ke;function Ps(i){var l=-1,f=i==null?0:i.length;for(this.clear();++l<f;){var y=i[l];this.set(y[0],y[1])}}function wR(){this.__data__=Ro?Ro(null):{},this.size=0}function SR(i){var l=this.has(i)&&delete this.__data__[i];return this.size-=l?1:0,l}function TR(i){var l=this.__data__;if(Ro){var f=l[i];return f===u?n:f}return ze.call(l,i)?l[i]:n}function CR(i){var l=this.__data__;return Ro?l[i]!==n:ze.call(l,i)}function ER(i,l){var f=this.__data__;return this.size+=this.has(i)?0:1,f[i]=Ro&&l===n?u:l,this}Ps.prototype.clear=wR,Ps.prototype.delete=SR,Ps.prototype.get=TR,Ps.prototype.has=CR,Ps.prototype.set=ER;function fr(i){var l=-1,f=i==null?0:i.length;for(this.clear();++l<f;){var y=i[l];this.set(y[0],y[1])}}function PR(){this.__data__=[],this.size=0}function AR(i){var l=this.__data__,f=Bl(l,i);if(f<0)return!1;var y=l.length-1;return f==y?l.pop():Nl.call(l,f,1),--this.size,!0}function MR(i){var l=this.__data__,f=Bl(l,i);return f<0?n:l[f][1]}function OR(i){return Bl(this.__data__,i)>-1}function $R(i,l){var f=this.__data__,y=Bl(f,i);return y<0?(++this.size,f.push([i,l])):f[y][1]=l,this}fr.prototype.clear=PR,fr.prototype.delete=AR,fr.prototype.get=MR,fr.prototype.has=OR,fr.prototype.set=$R;function dr(i){var l=-1,f=i==null?0:i.length;for(this.clear();++l<f;){var y=i[l];this.set(y[0],y[1])}}function _R(){this.size=0,this.__data__={hash:new Ps,map:new(jo||fr),string:new Ps}}function IR(i){var l=Ql(this,i).delete(i);return this.size-=l?1:0,l}function DR(i){return Ql(this,i).get(i)}function NR(i){return Ql(this,i).has(i)}function kR(i,l){var f=Ql(this,i),y=f.size;return f.set(i,l),this.size+=f.size==y?0:1,this}dr.prototype.clear=_R,dr.prototype.delete=IR,dr.prototype.get=DR,dr.prototype.has=NR,dr.prototype.set=kR;function As(i){var l=-1,f=i==null?0:i.length;for(this.__data__=new dr;++l<f;)this.add(i[l])}function jR(i){return this.__data__.set(i,u),this}function LR(i){return this.__data__.has(i)}As.prototype.add=As.prototype.push=jR,As.prototype.has=LR;function bn(i){var l=this.__data__=new fr(i);this.size=l.size}function RR(){this.__data__=new fr,this.size=0}function FR(i){var l=this.__data__,f=l.delete(i);return this.size=l.size,f}function VR(i){return this.__data__.get(i)}function BR(i){return this.__data__.has(i)}function WR(i,l){var f=this.__data__;if(f instanceof fr){var y=f.__data__;if(!jo||y.length<s-1)return y.push([i,l]),this.size=++f.size,this;f=this.__data__=new dr(y)}return f.set(i,l),this.size=f.size,this}bn.prototype.clear=RR,bn.prototype.delete=FR,bn.prototype.get=VR,bn.prototype.has=BR,bn.prototype.set=WR;function Aw(i,l){var f=Me(i),y=!f&&Is(i),w=!f&&!y&&Zr(i),M=!f&&!y&&!w&&Ii(i),_=f||y||w||M,D=_?Mh(i.length,JL):[],L=D.length;for(var Y in i)(l||ze.call(i,Y))&&!(_&&(Y=="length"||w&&(Y=="offset"||Y=="parent")||M&&(Y=="buffer"||Y=="byteLength"||Y=="byteOffset")||gr(Y,L)))&&D.push(Y);return D}function Mw(i){var l=i.length;return l?i[Gh(0,l-1)]:n}function UR(i,l){return ec(Rt(i),Ms(l,0,i.length))}function zR(i){return ec(Rt(i))}function kh(i,l,f){(f!==n&&!wn(i[l],f)||f===n&&!(l in i))&&hr(i,l,f)}function Vo(i,l,f){var y=i[l];(!(ze.call(i,l)&&wn(y,f))||f===n&&!(l in i))&&hr(i,l,f)}function Bl(i,l){for(var f=i.length;f--;)if(wn(i[f][0],l))return f;return-1}function GR(i,l,f,y){return Hr(i,function(w,M,_){l(y,w,f(w),_)}),y}function Ow(i,l){return i&&Bn(l,gt(l),i)}function YR(i,l){return i&&Bn(l,Vt(l),i)}function hr(i,l,f){l=="__proto__"&&kl?kl(i,l,{configurable:!0,enumerable:!0,value:f,writable:!0}):i[l]=f}function jh(i,l){for(var f=-1,y=l.length,w=V(y),M=i==null;++f<y;)w[f]=M?n:gm(i,l[f]);return w}function Ms(i,l,f){return i===i&&(f!==n&&(i=i<=f?i:f),l!==n&&(i=i>=l?i:l)),i}function fn(i,l,f,y,w,M){var _,D=l&m,L=l&p,Y=l&x;if(f&&(_=w?f(i,y,w,M):f(i)),_!==n)return _;if(!rt(i))return i;var q=Me(i);if(q){if(_=NF(i),!D)return Rt(i,_)}else{var Q=Mt(i),de=Q==ie||Q==ge;if(Zr(i))return Qw(i,D);if(Q==dt||Q==B||de&&!w){if(_=L||de?{}:xS(i),!D)return L?TF(i,YR(_,i)):SF(i,Ow(_,i))}else{if(!qe[Q])return w?i:{};_=kF(i,Q,D)}}M||(M=new bn);var ye=M.get(i);if(ye)return ye;M.set(i,_),HS(i)?i.forEach(function(Ce){_.add(fn(Ce,l,f,Ce,i,M))}):GS(i)&&i.forEach(function(Ce,Ne){_.set(Ne,fn(Ce,l,f,Ne,i,M))});var Te=Y?L?nm:tm:L?Vt:gt,$e=q?n:Te(i);return ln($e||i,function(Ce,Ne){$e&&(Ne=Ce,Ce=i[Ne]),Vo(_,Ne,fn(Ce,l,f,Ne,i,M))}),_}function HR(i){var l=gt(i);return function(f){return $w(f,i,l)}}function $w(i,l,f){var y=f.length;if(i==null)return!y;for(i=Ge(i);y--;){var w=f[y],M=l[w],_=i[w];if(_===n&&!(w in i)||!M(_))return!1}return!0}function _w(i,l,f){if(typeof i!="function")throw new cn(a);return Ho(function(){i.apply(n,f)},l)}function Bo(i,l,f,y){var w=-1,M=Cl,_=!0,D=i.length,L=[],Y=l.length;if(!D)return L;f&&(l=Je(l,Xt(f))),y?(M=Sh,_=!1):l.length>=s&&(M=No,_=!1,l=new As(l));e:for(;++w<D;){var q=i[w],Q=f==null?q:f(q);if(q=y||q!==0?q:0,_&&Q===Q){for(var de=Y;de--;)if(l[de]===Q)continue e;L.push(q)}else M(l,Q,y)||L.push(q)}return L}var Hr=sS(Vn),Iw=sS(Rh,!0);function qR(i,l){var f=!0;return Hr(i,function(y,w,M){return f=!!l(y,w,M),f}),f}function Wl(i,l,f){for(var y=-1,w=i.length;++y<w;){var M=i[y],_=l(M);if(_!=null&&(D===n?_===_&&!Jt(_):f(_,D)))var D=_,L=M}return L}function KR(i,l,f,y){var w=i.length;for(f=Oe(f),f<0&&(f=-f>w?0:w+f),y=y===n||y>w?w:Oe(y),y<0&&(y+=w),y=f>y?0:KS(y);f<y;)i[f++]=l;return i}function Dw(i,l){var f=[];return Hr(i,function(y,w,M){l(y,w,M)&&f.push(y)}),f}function bt(i,l,f,y,w){var M=-1,_=i.length;for(f||(f=LF),w||(w=[]);++M<_;){var D=i[M];l>0&&f(D)?l>1?bt(D,l-1,f,y,w):zr(w,D):y||(w[w.length]=D)}return w}var Lh=iS(),Nw=iS(!0);function Vn(i,l){return i&&Lh(i,l,gt)}function Rh(i,l){return i&&Nw(i,l,gt)}function Ul(i,l){return Ur(l,function(f){return yr(i[f])})}function Os(i,l){l=Kr(l,i);for(var f=0,y=l.length;i!=null&&f<y;)i=i[Wn(l[f++])];return f&&f==y?i:n}function kw(i,l,f){var y=l(i);return Me(i)?y:zr(y,f(i))}function _t(i){return i==null?i===n?vl:Ss:Es&&Es in Ge(i)?_F(i):zF(i)}function Fh(i,l){return i>l}function XR(i,l){return i!=null&&ze.call(i,l)}function ZR(i,l){return i!=null&&l in Ge(i)}function JR(i,l,f){return i>=At(l,f)&&i<mt(l,f)}function Vh(i,l,f){for(var y=f?Sh:Cl,w=i[0].length,M=i.length,_=M,D=V(M),L=1/0,Y=[];_--;){var q=i[_];_&&l&&(q=Je(q,Xt(l))),L=At(q.length,L),D[_]=!f&&(l||w>=120&&q.length>=120)?new As(_&&q):n}q=i[0];var Q=-1,de=D[0];e:for(;++Q<w&&Y.length<L;){var ye=q[Q],Te=l?l(ye):ye;if(ye=f||ye!==0?ye:0,!(de?No(de,Te):y(Y,Te,f))){for(_=M;--_;){var $e=D[_];if(!($e?No($e,Te):y(i[_],Te,f)))continue e}de&&de.push(Te),Y.push(ye)}}return Y}function QR(i,l,f,y){return Vn(i,function(w,M,_){l(y,f(w),M,_)}),y}function Wo(i,l,f){l=Kr(l,i),i=SS(i,l);var y=i==null?i:i[Wn(hn(l))];return y==null?n:Kt(y,i,f)}function jw(i){return ot(i)&&_t(i)==B}function eF(i){return ot(i)&&_t(i)==ve}function tF(i){return ot(i)&&_t(i)==he}function Uo(i,l,f,y,w){return i===l?!0:i==null||l==null||!ot(i)&&!ot(l)?i!==i&&l!==l:nF(i,l,f,y,Uo,w)}function nF(i,l,f,y,w,M){var _=Me(i),D=Me(l),L=_?X:Mt(i),Y=D?X:Mt(l);L=L==B?dt:L,Y=Y==B?dt:Y;var q=L==dt,Q=Y==dt,de=L==Y;if(de&&Zr(i)){if(!Zr(l))return!1;_=!0,q=!1}if(de&&!q)return M||(M=new bn),_||Ii(i)?pS(i,l,f,y,w,M):OF(i,l,L,f,y,w,M);if(!(f&S)){var ye=q&&ze.call(i,"__wrapped__"),Te=Q&&ze.call(l,"__wrapped__");if(ye||Te){var $e=ye?i.value():i,Ce=Te?l.value():l;return M||(M=new bn),w($e,Ce,f,y,M)}}return de?(M||(M=new bn),$F(i,l,f,y,w,M)):!1}function rF(i){return ot(i)&&Mt(i)==De}function Bh(i,l,f,y){var w=f.length,M=w,_=!y;if(i==null)return!M;for(i=Ge(i);w--;){var D=f[w];if(_&&D[2]?D[1]!==i[D[0]]:!(D[0]in i))return!1}for(;++w<M;){D=f[w];var L=D[0],Y=i[L],q=D[1];if(_&&D[2]){if(Y===n&&!(L in i))return!1}else{var Q=new bn;if(y)var de=y(Y,q,L,i,l,Q);if(!(de===n?Uo(q,Y,S|b,y,Q):de))return!1}}return!0}function Lw(i){if(!rt(i)||FF(i))return!1;var l=yr(i)?rR:Hj;return l.test(_s(i))}function sF(i){return ot(i)&&_t(i)==Br}function iF(i){return ot(i)&&Mt(i)==qt}function oF(i){return ot(i)&&oc(i.length)&&!!Xe[_t(i)]}function Rw(i){return typeof i=="function"?i:i==null?Bt:typeof i=="object"?Me(i)?Bw(i[0],i[1]):Vw(i):oT(i)}function Wh(i){if(!Yo(i))return cR(i);var l=[];for(var f in Ge(i))ze.call(i,f)&&f!="constructor"&&l.push(f);return l}function aF(i){if(!rt(i))return UF(i);var l=Yo(i),f=[];for(var y in i)y=="constructor"&&(l||!ze.call(i,y))||f.push(y);return f}function Uh(i,l){return i<l}function Fw(i,l){var f=-1,y=Ft(i)?V(i.length):[];return Hr(i,function(w,M,_){y[++f]=l(w,M,_)}),y}function Vw(i){var l=sm(i);return l.length==1&&l[0][2]?bS(l[0][0],l[0][1]):function(f){return f===i||Bh(f,i,l)}}function Bw(i,l){return om(i)&&vS(l)?bS(Wn(i),l):function(f){var y=gm(f,i);return y===n&&y===l?ym(f,i):Uo(l,y,S|b)}}function zl(i,l,f,y,w){i!==l&&Lh(l,function(M,_){if(w||(w=new bn),rt(M))lF(i,l,_,f,zl,y,w);else{var D=y?y(lm(i,_),M,_+"",i,l,w):n;D===n&&(D=M),kh(i,_,D)}},Vt)}function lF(i,l,f,y,w,M,_){var D=lm(i,f),L=lm(l,f),Y=_.get(L);if(Y){kh(i,f,Y);return}var q=M?M(D,L,f+"",i,l,_):n,Q=q===n;if(Q){var de=Me(L),ye=!de&&Zr(L),Te=!de&&!ye&&Ii(L);q=L,de||ye||Te?Me(D)?q=D:ct(D)?q=Rt(D):ye?(Q=!1,q=Qw(L,!0)):Te?(Q=!1,q=eS(L,!0)):q=[]:qo(L)||Is(L)?(q=D,Is(D)?q=XS(D):(!rt(D)||yr(D))&&(q=xS(L))):Q=!1}Q&&(_.set(L,q),w(q,L,y,M,_),_.delete(L)),kh(i,f,q)}function Ww(i,l){var f=i.length;if(f)return l+=l<0?f:0,gr(l,f)?i[l]:n}function Uw(i,l,f){l.length?l=Je(l,function(M){return Me(M)?function(_){return Os(_,M.length===1?M[0]:M)}:M}):l=[Bt];var y=-1;l=Je(l,Xt(be()));var w=Fw(i,function(M,_,D){var L=Je(l,function(Y){return Y(M)});return{criteria:L,index:++y,value:M}});return kL(w,function(M,_){return wF(M,_,f)})}function cF(i,l){return zw(i,l,function(f,y){return ym(i,y)})}function zw(i,l,f){for(var y=-1,w=l.length,M={};++y<w;){var _=l[y],D=Os(i,_);f(D,_)&&zo(M,Kr(_,i),D)}return M}function uF(i){return function(l){return Os(l,i)}}function zh(i,l,f,y){var w=y?NL:wi,M=-1,_=l.length,D=i;for(i===l&&(l=Rt(l)),f&&(D=Je(i,Xt(f)));++M<_;)for(var L=0,Y=l[M],q=f?f(Y):Y;(L=w(D,q,L,y))>-1;)D!==i&&Nl.call(D,L,1),Nl.call(i,L,1);return i}function Gw(i,l){for(var f=i?l.length:0,y=f-1;f--;){var w=l[f];if(f==y||w!==M){var M=w;gr(w)?Nl.call(i,w,1):qh(i,w)}}return i}function Gh(i,l){return i+Ll(Ew()*(l-i+1))}function fF(i,l,f,y){for(var w=-1,M=mt(jl((l-i)/(f||1)),0),_=V(M);M--;)_[y?M:++w]=i,i+=f;return _}function Yh(i,l){var f="";if(!i||l<1||l>W)return f;do l%2&&(f+=i),l=Ll(l/2),l&&(i+=i);while(l);return f}function _e(i,l){return cm(wS(i,l,Bt),i+"")}function dF(i){return Mw(Di(i))}function hF(i,l){var f=Di(i);return ec(f,Ms(l,0,f.length))}function zo(i,l,f,y){if(!rt(i))return i;l=Kr(l,i);for(var w=-1,M=l.length,_=M-1,D=i;D!=null&&++w<M;){var L=Wn(l[w]),Y=f;if(L==="__proto__"||L==="constructor"||L==="prototype")return i;if(w!=_){var q=D[L];Y=y?y(q,L,D):n,Y===n&&(Y=rt(q)?q:gr(l[w+1])?[]:{})}Vo(D,L,Y),D=D[L]}return i}var Yw=Rl?function(i,l){return Rl.set(i,l),i}:Bt,mF=kl?function(i,l){return kl(i,"toString",{configurable:!0,enumerable:!1,value:vm(l),writable:!0})}:Bt;function pF(i){return ec(Di(i))}function dn(i,l,f){var y=-1,w=i.length;l<0&&(l=-l>w?0:w+l),f=f>w?w:f,f<0&&(f+=w),w=l>f?0:f-l>>>0,l>>>=0;for(var M=V(w);++y<w;)M[y]=i[y+l];return M}function gF(i,l){var f;return Hr(i,function(y,w,M){return f=l(y,w,M),!f}),!!f}function Gl(i,l,f){var y=0,w=i==null?y:i.length;if(typeof l=="number"&&l===l&&w<=H){for(;y<w;){var M=y+w>>>1,_=i[M];_!==null&&!Jt(_)&&(f?_<=l:_<l)?y=M+1:w=M}return w}return Hh(i,l,Bt,f)}function Hh(i,l,f,y){var w=0,M=i==null?0:i.length;if(M===0)return 0;l=f(l);for(var _=l!==l,D=l===null,L=Jt(l),Y=l===n;w<M;){var q=Ll((w+M)/2),Q=f(i[q]),de=Q!==n,ye=Q===null,Te=Q===Q,$e=Jt(Q);if(_)var Ce=y||Te;else Y?Ce=Te&&(y||de):D?Ce=Te&&de&&(y||!ye):L?Ce=Te&&de&&!ye&&(y||!$e):ye||$e?Ce=!1:Ce=y?Q<=l:Q<l;Ce?w=q+1:M=q}return At(M,J)}function Hw(i,l){for(var f=-1,y=i.length,w=0,M=[];++f<y;){var _=i[f],D=l?l(_):_;if(!f||!wn(D,L)){var L=D;M[w++]=_===0?0:_}}return M}function qw(i){return typeof i=="number"?i:Jt(i)?$:+i}function Zt(i){if(typeof i=="string")return i;if(Me(i))return Je(i,Zt)+"";if(Jt(i))return Pw?Pw.call(i):"";var l=i+"";return l=="0"&&1/i==-1/0?"-0":l}function qr(i,l,f){var y=-1,w=Cl,M=i.length,_=!0,D=[],L=D;if(f)_=!1,w=Sh;else if(M>=s){var Y=l?null:AF(i);if(Y)return Pl(Y);_=!1,w=No,L=new As}else L=l?[]:D;e:for(;++y<M;){var q=i[y],Q=l?l(q):q;if(q=f||q!==0?q:0,_&&Q===Q){for(var de=L.length;de--;)if(L[de]===Q)continue e;l&&L.push(Q),D.push(q)}else w(L,Q,f)||(L!==D&&L.push(Q),D.push(q))}return D}function qh(i,l){return l=Kr(l,i),i=SS(i,l),i==null||delete i[Wn(hn(l))]}function Kw(i,l,f,y){return zo(i,l,f(Os(i,l)),y)}function Yl(i,l,f,y){for(var w=i.length,M=y?w:-1;(y?M--:++M<w)&&l(i[M],M,i););return f?dn(i,y?0:M,y?M+1:w):dn(i,y?M+1:0,y?w:M)}function Xw(i,l){var f=i;return f instanceof ke&&(f=f.value()),Th(l,function(y,w){return w.func.apply(w.thisArg,zr([y],w.args))},f)}function Kh(i,l,f){var y=i.length;if(y<2)return y?qr(i[0]):[];for(var w=-1,M=V(y);++w<y;)for(var _=i[w],D=-1;++D<y;)D!=w&&(M[w]=Bo(M[w]||_,i[D],l,f));return qr(bt(M,1),l,f)}function Zw(i,l,f){for(var y=-1,w=i.length,M=l.length,_={};++y<w;){var D=y<M?l[y]:n;f(_,i[y],D)}return _}function Xh(i){return ct(i)?i:[]}function Zh(i){return typeof i=="function"?i:Bt}function Kr(i,l){return Me(i)?i:om(i,l)?[i]:PS(We(i))}var yF=_e;function Xr(i,l,f){var y=i.length;return f=f===n?y:f,!l&&f>=y?i:dn(i,l,f)}var Jw=sR||function(i){return vt.clearTimeout(i)};function Qw(i,l){if(l)return i.slice();var f=i.length,y=bw?bw(f):new i.constructor(f);return i.copy(y),y}function Jh(i){var l=new i.constructor(i.byteLength);return new Il(l).set(new Il(i)),l}function xF(i,l){var f=l?Jh(i.buffer):i.buffer;return new i.constructor(f,i.byteOffset,i.byteLength)}function vF(i){var l=new i.constructor(i.source,j2.exec(i));return l.lastIndex=i.lastIndex,l}function bF(i){return Fo?Ge(Fo.call(i)):{}}function eS(i,l){var f=l?Jh(i.buffer):i.buffer;return new i.constructor(f,i.byteOffset,i.length)}function tS(i,l){if(i!==l){var f=i!==n,y=i===null,w=i===i,M=Jt(i),_=l!==n,D=l===null,L=l===l,Y=Jt(l);if(!D&&!Y&&!M&&i>l||M&&_&&L&&!D&&!Y||y&&_&&L||!f&&L||!w)return 1;if(!y&&!M&&!Y&&i<l||Y&&f&&w&&!y&&!M||D&&f&&w||!_&&w||!L)return-1}return 0}function wF(i,l,f){for(var y=-1,w=i.criteria,M=l.criteria,_=w.length,D=f.length;++y<_;){var L=tS(w[y],M[y]);if(L){if(y>=D)return L;var Y=f[y];return L*(Y=="desc"?-1:1)}}return i.index-l.index}function nS(i,l,f,y){for(var w=-1,M=i.length,_=f.length,D=-1,L=l.length,Y=mt(M-_,0),q=V(L+Y),Q=!y;++D<L;)q[D]=l[D];for(;++w<_;)(Q||w<M)&&(q[f[w]]=i[w]);for(;Y--;)q[D++]=i[w++];return q}function rS(i,l,f,y){for(var w=-1,M=i.length,_=-1,D=f.length,L=-1,Y=l.length,q=mt(M-D,0),Q=V(q+Y),de=!y;++w<q;)Q[w]=i[w];for(var ye=w;++L<Y;)Q[ye+L]=l[L];for(;++_<D;)(de||w<M)&&(Q[ye+f[_]]=i[w++]);return Q}function Rt(i,l){var f=-1,y=i.length;for(l||(l=V(y));++f<y;)l[f]=i[f];return l}function Bn(i,l,f,y){var w=!f;f||(f={});for(var M=-1,_=l.length;++M<_;){var D=l[M],L=y?y(f[D],i[D],D,f,i):n;L===n&&(L=i[D]),w?hr(f,D,L):Vo(f,D,L)}return f}function SF(i,l){return Bn(i,im(i),l)}function TF(i,l){return Bn(i,gS(i),l)}function Hl(i,l){return function(f,y){var w=Me(f)?ML:GR,M=l?l():{};return w(f,i,be(y,2),M)}}function Oi(i){return _e(function(l,f){var y=-1,w=f.length,M=w>1?f[w-1]:n,_=w>2?f[2]:n;for(M=i.length>3&&typeof M=="function"?(w--,M):n,_&&It(f[0],f[1],_)&&(M=w<3?n:M,w=1),l=Ge(l);++y<w;){var D=f[y];D&&i(l,D,y,M)}return l})}function sS(i,l){return function(f,y){if(f==null)return f;if(!Ft(f))return i(f,y);for(var w=f.length,M=l?w:-1,_=Ge(f);(l?M--:++M<w)&&y(_[M],M,_)!==!1;);return f}}function iS(i){return function(l,f,y){for(var w=-1,M=Ge(l),_=y(l),D=_.length;D--;){var L=_[i?D:++w];if(f(M[L],L,M)===!1)break}return l}}function CF(i,l,f){var y=l&T,w=Go(i);function M(){var _=this&&this!==vt&&this instanceof M?w:i;return _.apply(y?f:this,arguments)}return M}function oS(i){return function(l){l=We(l);var f=Si(l)?vn(l):n,y=f?f[0]:l.charAt(0),w=f?Xr(f,1).join(""):l.slice(1);return y[i]()+w}}function $i(i){return function(l){return Th(sT(rT(l).replace(mL,"")),i,"")}}function Go(i){return function(){var l=arguments;switch(l.length){case 0:return new i;case 1:return new i(l[0]);case 2:return new i(l[0],l[1]);case 3:return new i(l[0],l[1],l[2]);case 4:return new i(l[0],l[1],l[2],l[3]);case 5:return new i(l[0],l[1],l[2],l[3],l[4]);case 6:return new i(l[0],l[1],l[2],l[3],l[4],l[5]);case 7:return new i(l[0],l[1],l[2],l[3],l[4],l[5],l[6])}var f=Mi(i.prototype),y=i.apply(f,l);return rt(y)?y:f}}function EF(i,l,f){var y=Go(i);function w(){for(var M=arguments.length,_=V(M),D=M,L=_i(w);D--;)_[D]=arguments[D];var Y=M<3&&_[0]!==L&&_[M-1]!==L?[]:Gr(_,L);if(M-=Y.length,M<f)return fS(i,l,ql,w.placeholder,n,_,Y,n,n,f-M);var q=this&&this!==vt&&this instanceof w?y:i;return Kt(q,this,_)}return w}function aS(i){return function(l,f,y){var w=Ge(l);if(!Ft(l)){var M=be(f,3);l=gt(l),f=function(D){return M(w[D],D,w)}}var _=i(l,f,y);return _>-1?w[M?l[_]:_]:n}}function lS(i){return pr(function(l){var f=l.length,y=f,w=un.prototype.thru;for(i&&l.reverse();y--;){var M=l[y];if(typeof M!="function")throw new cn(a);if(w&&!_&&Jl(M)=="wrapper")var _=new un([],!0)}for(y=_?y:f;++y<f;){M=l[y];var D=Jl(M),L=D=="wrapper"?rm(M):n;L&&am(L[0])&&L[1]==(R|C|E|F)&&!L[4].length&&L[9]==1?_=_[Jl(L[0])].apply(_,L[3]):_=M.length==1&&am(M)?_[D]():_.thru(M)}return function(){var Y=arguments,q=Y[0];if(_&&Y.length==1&&Me(q))return _.plant(q).value();for(var Q=0,de=f?l[Q].apply(this,Y):q;++Q<f;)de=l[Q].call(this,de);return de}})}function ql(i,l,f,y,w,M,_,D,L,Y){var q=l&R,Q=l&T,de=l&v,ye=l&(C|I),Te=l&G,$e=de?n:Go(i);function Ce(){for(var Ne=arguments.length,je=V(Ne),Qt=Ne;Qt--;)je[Qt]=arguments[Qt];if(ye)var Dt=_i(Ce),en=LL(je,Dt);if(y&&(je=nS(je,y,w,ye)),M&&(je=rS(je,M,_,ye)),Ne-=en,ye&&Ne<Y){var ut=Gr(je,Dt);return fS(i,l,ql,Ce.placeholder,f,je,ut,D,L,Y-Ne)}var Sn=Q?f:this,vr=de?Sn[i]:i;return Ne=je.length,D?je=GF(je,D):Te&&Ne>1&&je.reverse(),q&&L<Ne&&(je.length=L),this&&this!==vt&&this instanceof Ce&&(vr=$e||Go(vr)),vr.apply(Sn,je)}return Ce}function cS(i,l){return function(f,y){return QR(f,i,l(y),{})}}function Kl(i,l){return function(f,y){var w;if(f===n&&y===n)return l;if(f!==n&&(w=f),y!==n){if(w===n)return y;typeof f=="string"||typeof y=="string"?(f=Zt(f),y=Zt(y)):(f=qw(f),y=qw(y)),w=i(f,y)}return w}}function Qh(i){return pr(function(l){return l=Je(l,Xt(be())),_e(function(f){var y=this;return i(l,function(w){return Kt(w,y,f)})})})}function Xl(i,l){l=l===n?" ":Zt(l);var f=l.length;if(f<2)return f?Yh(l,i):l;var y=Yh(l,jl(i/Ti(l)));return Si(l)?Xr(vn(y),0,i).join(""):y.slice(0,i)}function PF(i,l,f,y){var w=l&T,M=Go(i);function _(){for(var D=-1,L=arguments.length,Y=-1,q=y.length,Q=V(q+L),de=this&&this!==vt&&this instanceof _?M:i;++Y<q;)Q[Y]=y[Y];for(;L--;)Q[Y++]=arguments[++D];return Kt(de,w?f:this,Q)}return _}function uS(i){return function(l,f,y){return y&&typeof y!="number"&&It(l,f,y)&&(f=y=n),l=xr(l),f===n?(f=l,l=0):f=xr(f),y=y===n?l<f?1:-1:xr(y),fF(l,f,y,i)}}function Zl(i){return function(l,f){return typeof l=="string"&&typeof f=="string"||(l=mn(l),f=mn(f)),i(l,f)}}function fS(i,l,f,y,w,M,_,D,L,Y){var q=l&C,Q=q?_:n,de=q?n:_,ye=q?M:n,Te=q?n:M;l|=q?E:N,l&=~(q?N:E),l&A||(l&=-4);var $e=[i,l,w,ye,Q,Te,de,D,L,Y],Ce=f.apply(n,$e);return am(i)&&TS(Ce,$e),Ce.placeholder=y,CS(Ce,i,l)}function em(i){var l=ht[i];return function(f,y){if(f=mn(f),y=y==null?0:At(Oe(y),292),y&&Cw(f)){var w=(We(f)+"e").split("e"),M=l(w[0]+"e"+(+w[1]+y));return w=(We(M)+"e").split("e"),+(w[0]+"e"+(+w[1]-y))}return l(f)}}var AF=Pi&&1/Pl(new Pi([,-0]))[1]==U?function(i){return new Pi(i)}:Sm;function dS(i){return function(l){var f=Mt(l);return f==De?$h(l):f==qt?zL(l):jL(l,i(l))}}function mr(i,l,f,y,w,M,_,D){var L=l&v;if(!L&&typeof i!="function")throw new cn(a);var Y=y?y.length:0;if(Y||(l&=-97,y=w=n),_=_===n?_:mt(Oe(_),0),D=D===n?D:Oe(D),Y-=w?w.length:0,l&N){var q=y,Q=w;y=w=n}var de=L?n:rm(i),ye=[i,l,f,y,w,q,Q,M,_,D];if(de&&WF(ye,de),i=ye[0],l=ye[1],f=ye[2],y=ye[3],w=ye[4],D=ye[9]=ye[9]===n?L?0:i.length:mt(ye[9]-Y,0),!D&&l&(C|I)&&(l&=-25),!l||l==T)var Te=CF(i,l,f);else l==C||l==I?Te=EF(i,l,D):(l==E||l==(T|E))&&!w.length?Te=PF(i,l,f,y):Te=ql.apply(n,ye);var $e=de?Yw:TS;return CS($e(Te,ye),i,l)}function hS(i,l,f,y){return i===n||wn(i,Ei[f])&&!ze.call(y,f)?l:i}function mS(i,l,f,y,w,M){return rt(i)&&rt(l)&&(M.set(l,i),zl(i,l,n,mS,M),M.delete(l)),i}function MF(i){return qo(i)?n:i}function pS(i,l,f,y,w,M){var _=f&S,D=i.length,L=l.length;if(D!=L&&!(_&&L>D))return!1;var Y=M.get(i),q=M.get(l);if(Y&&q)return Y==l&&q==i;var Q=-1,de=!0,ye=f&b?new As:n;for(M.set(i,l),M.set(l,i);++Q<D;){var Te=i[Q],$e=l[Q];if(y)var Ce=_?y($e,Te,Q,l,i,M):y(Te,$e,Q,i,l,M);if(Ce!==n){if(Ce)continue;de=!1;break}if(ye){if(!Ch(l,function(Ne,je){if(!No(ye,je)&&(Te===Ne||w(Te,Ne,f,y,M)))return ye.push(je)})){de=!1;break}}else if(!(Te===$e||w(Te,$e,f,y,M))){de=!1;break}}return M.delete(i),M.delete(l),de}function OF(i,l,f,y,w,M,_){switch(f){case Ze:if(i.byteLength!=l.byteLength||i.byteOffset!=l.byteOffset)return!1;i=i.buffer,l=l.buffer;case ve:return!(i.byteLength!=l.byteLength||!M(new Il(i),new Il(l)));case se:case he:case ft:return wn(+i,+l);case Be:return i.name==l.name&&i.message==l.message;case Br:case yn:return i==l+"";case De:var D=$h;case qt:var L=y&S;if(D||(D=Pl),i.size!=l.size&&!L)return!1;var Y=_.get(i);if(Y)return Y==l;y|=b,_.set(i,l);var q=pS(D(i),D(l),y,w,M,_);return _.delete(i),q;case Ts:if(Fo)return Fo.call(i)==Fo.call(l)}return!1}function $F(i,l,f,y,w,M){var _=f&S,D=tm(i),L=D.length,Y=tm(l),q=Y.length;if(L!=q&&!_)return!1;for(var Q=L;Q--;){var de=D[Q];if(!(_?de in l:ze.call(l,de)))return!1}var ye=M.get(i),Te=M.get(l);if(ye&&Te)return ye==l&&Te==i;var $e=!0;M.set(i,l),M.set(l,i);for(var Ce=_;++Q<L;){de=D[Q];var Ne=i[de],je=l[de];if(y)var Qt=_?y(je,Ne,de,l,i,M):y(Ne,je,de,i,l,M);if(!(Qt===n?Ne===je||w(Ne,je,f,y,M):Qt)){$e=!1;break}Ce||(Ce=de=="constructor")}if($e&&!Ce){var Dt=i.constructor,en=l.constructor;Dt!=en&&"constructor"in i&&"constructor"in l&&!(typeof Dt=="function"&&Dt instanceof Dt&&typeof en=="function"&&en instanceof en)&&($e=!1)}return M.delete(i),M.delete(l),$e}function pr(i){return cm(wS(i,n,$S),i+"")}function tm(i){return kw(i,gt,im)}function nm(i){return kw(i,Vt,gS)}var rm=Rl?function(i){return Rl.get(i)}:Sm;function Jl(i){for(var l=i.name+"",f=Ai[l],y=ze.call(Ai,l)?f.length:0;y--;){var w=f[y],M=w.func;if(M==null||M==i)return w.name}return l}function _i(i){var l=ze.call(P,"placeholder")?P:i;return l.placeholder}function be(){var i=P.iteratee||bm;return i=i===bm?Rw:i,arguments.length?i(arguments[0],arguments[1]):i}function Ql(i,l){var f=i.__data__;return RF(l)?f[typeof l=="string"?"string":"hash"]:f.map}function sm(i){for(var l=gt(i),f=l.length;f--;){var y=l[f],w=i[y];l[f]=[y,w,vS(w)]}return l}function $s(i,l){var f=BL(i,l);return Lw(f)?f:n}function _F(i){var l=ze.call(i,Es),f=i[Es];try{i[Es]=n;var y=!0}catch{}var w=$l.call(i);return y&&(l?i[Es]=f:delete i[Es]),w}var im=Ih?function(i){return i==null?[]:(i=Ge(i),Ur(Ih(i),function(l){return Sw.call(i,l)}))}:Tm,gS=Ih?function(i){for(var l=[];i;)zr(l,im(i)),i=Dl(i);return l}:Tm,Mt=_t;(Dh&&Mt(new Dh(new ArrayBuffer(1)))!=Ze||jo&&Mt(new jo)!=De||Nh&&Mt(Nh.resolve())!=yl||Pi&&Mt(new Pi)!=qt||Lo&&Mt(new Lo)!=Wr)&&(Mt=function(i){var l=_t(i),f=l==dt?i.constructor:n,y=f?_s(f):"";if(y)switch(y){case hR:return Ze;case mR:return De;case pR:return yl;case gR:return qt;case yR:return Wr}return l});function IF(i,l,f){for(var y=-1,w=f.length;++y<w;){var M=f[y],_=M.size;switch(M.type){case"drop":i+=_;break;case"dropRight":l-=_;break;case"take":l=At(l,i+_);break;case"takeRight":i=mt(i,l-_);break}}return{start:i,end:l}}function DF(i){var l=i.match(Fj);return l?l[1].split(Vj):[]}function yS(i,l,f){l=Kr(l,i);for(var y=-1,w=l.length,M=!1;++y<w;){var _=Wn(l[y]);if(!(M=i!=null&&f(i,_)))break;i=i[_]}return M||++y!=w?M:(w=i==null?0:i.length,!!w&&oc(w)&&gr(_,w)&&(Me(i)||Is(i)))}function NF(i){var l=i.length,f=new i.constructor(l);return l&&typeof i[0]=="string"&&ze.call(i,"index")&&(f.index=i.index,f.input=i.input),f}function xS(i){return typeof i.constructor=="function"&&!Yo(i)?Mi(Dl(i)):{}}function kF(i,l,f){var y=i.constructor;switch(l){case ve:return Jh(i);case se:case he:return new y(+i);case Ze:return xF(i,f);case Pt:case xn:case ur:case ah:case lh:case ch:case uh:case fh:case dh:return eS(i,f);case De:return new y;case ft:case yn:return new y(i);case Br:return vF(i);case qt:return new y;case Ts:return bF(i)}}function jF(i,l){var f=l.length;if(!f)return i;var y=f-1;return l[y]=(f>1?"& ":"")+l[y],l=l.join(f>2?", ":" "),i.replace(Rj,`{
|
|
632
|
+
*/var o3=uo.exports,Sx;function a3(){return Sx||(Sx=1,function(e,t){(function(){var n,r="4.17.21",s=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",c="Invalid `variable` option passed into `_.template`",u="__lodash_hash_undefined__",d=500,h="__lodash_placeholder__",m=1,p=2,x=4,S=1,b=2,T=1,v=2,A=4,C=8,I=16,E=32,N=64,R=128,F=256,G=512,re=30,ee="...",le=800,oe=16,ue=1,ce=2,fe=3,U=1/0,W=9007199254740991,K=17976931348623157e292,$=NaN,k=4294967295,J=k-1,H=k>>>1,Z=[["ary",R],["bind",T],["bindKey",v],["curry",C],["curryRight",I],["flip",G],["partial",E],["partialRight",N],["rearg",F]],B="[object Arguments]",X="[object Array]",ae="[object AsyncFunction]",se="[object Boolean]",he="[object Date]",Ee="[object DOMException]",Be="[object Error]",ie="[object Function]",ge="[object GeneratorFunction]",De="[object Map]",ft="[object Number]",Ss="[object Null]",dt="[object Object]",yl="[object Promise]",xl="[object Proxy]",Br="[object RegExp]",qt="[object Set]",yn="[object String]",Ts="[object Symbol]",vl="[object Undefined]",Wr="[object WeakMap]",bl="[object WeakSet]",ve="[object ArrayBuffer]",Ze="[object DataView]",Pt="[object Float32Array]",xn="[object Float64Array]",ur="[object Int8Array]",ah="[object Int16Array]",lh="[object Int32Array]",ch="[object Uint8Array]",uh="[object Uint8ClampedArray]",fh="[object Uint16Array]",dh="[object Uint32Array]",Pj=/\b__p \+= '';/g,Aj=/\b(__p \+=) '' \+/g,Mj=/(__e\(.*?\)|\b__t\)) \+\n'';/g,D2=/&(?:amp|lt|gt|quot|#39);/g,N2=/[&<>"']/g,Oj=RegExp(D2.source),$j=RegExp(N2.source),_j=/<%-([\s\S]+?)%>/g,Ij=/<%([\s\S]+?)%>/g,k2=/<%=([\s\S]+?)%>/g,Dj=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Nj=/^\w*$/,kj=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,hh=/[\\^$.*+?()[\]{}|]/g,jj=RegExp(hh.source),mh=/^\s+/,Lj=/\s/,Rj=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Fj=/\{\n\/\* \[wrapped with (.+)\] \*/,Vj=/,? & /,Bj=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Wj=/[()=,{}\[\]\/\s]/,Uj=/\\(\\)?/g,zj=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,j2=/\w*$/,Gj=/^[-+]0x[0-9a-f]+$/i,Yj=/^0b[01]+$/i,Hj=/^\[object .+?Constructor\]$/,qj=/^0o[0-7]+$/i,Kj=/^(?:0|[1-9]\d*)$/,Xj=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,wl=/($^)/,Zj=/['\n\r\u2028\u2029\\]/g,Sl="\\ud800-\\udfff",Jj="\\u0300-\\u036f",Qj="\\ufe20-\\ufe2f",eL="\\u20d0-\\u20ff",L2=Jj+Qj+eL,R2="\\u2700-\\u27bf",F2="a-z\\xdf-\\xf6\\xf8-\\xff",tL="\\xac\\xb1\\xd7\\xf7",nL="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",rL="\\u2000-\\u206f",sL=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",V2="A-Z\\xc0-\\xd6\\xd8-\\xde",B2="\\ufe0e\\ufe0f",W2=tL+nL+rL+sL,ph="['’]",iL="["+Sl+"]",U2="["+W2+"]",Tl="["+L2+"]",z2="\\d+",oL="["+R2+"]",G2="["+F2+"]",Y2="[^"+Sl+W2+z2+R2+F2+V2+"]",gh="\\ud83c[\\udffb-\\udfff]",aL="(?:"+Tl+"|"+gh+")",H2="[^"+Sl+"]",yh="(?:\\ud83c[\\udde6-\\uddff]){2}",xh="[\\ud800-\\udbff][\\udc00-\\udfff]",bi="["+V2+"]",q2="\\u200d",K2="(?:"+G2+"|"+Y2+")",lL="(?:"+bi+"|"+Y2+")",X2="(?:"+ph+"(?:d|ll|m|re|s|t|ve))?",Z2="(?:"+ph+"(?:D|LL|M|RE|S|T|VE))?",J2=aL+"?",Q2="["+B2+"]?",cL="(?:"+q2+"(?:"+[H2,yh,xh].join("|")+")"+Q2+J2+")*",uL="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",fL="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ew=Q2+J2+cL,dL="(?:"+[oL,yh,xh].join("|")+")"+ew,hL="(?:"+[H2+Tl+"?",Tl,yh,xh,iL].join("|")+")",mL=RegExp(ph,"g"),pL=RegExp(Tl,"g"),vh=RegExp(gh+"(?="+gh+")|"+hL+ew,"g"),gL=RegExp([bi+"?"+G2+"+"+X2+"(?="+[U2,bi,"$"].join("|")+")",lL+"+"+Z2+"(?="+[U2,bi+K2,"$"].join("|")+")",bi+"?"+K2+"+"+X2,bi+"+"+Z2,fL,uL,z2,dL].join("|"),"g"),yL=RegExp("["+q2+Sl+L2+B2+"]"),xL=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,vL=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],bL=-1,Xe={};Xe[Pt]=Xe[xn]=Xe[ur]=Xe[ah]=Xe[lh]=Xe[ch]=Xe[uh]=Xe[fh]=Xe[dh]=!0,Xe[B]=Xe[X]=Xe[ve]=Xe[se]=Xe[Ze]=Xe[he]=Xe[Be]=Xe[ie]=Xe[De]=Xe[ft]=Xe[dt]=Xe[Br]=Xe[qt]=Xe[yn]=Xe[Wr]=!1;var qe={};qe[B]=qe[X]=qe[ve]=qe[Ze]=qe[se]=qe[he]=qe[Pt]=qe[xn]=qe[ur]=qe[ah]=qe[lh]=qe[De]=qe[ft]=qe[dt]=qe[Br]=qe[qt]=qe[yn]=qe[Ts]=qe[ch]=qe[uh]=qe[fh]=qe[dh]=!0,qe[Be]=qe[ie]=qe[Wr]=!1;var wL={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},SL={"&":"&","<":"<",">":">",'"':""","'":"'"},TL={"&":"&","<":"<",">":">",""":'"',"'":"'"},CL={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},EL=parseFloat,PL=parseInt,tw=typeof Ko=="object"&&Ko&&Ko.Object===Object&&Ko,AL=typeof self=="object"&&self&&self.Object===Object&&self,vt=tw||AL||Function("return this")(),bh=t&&!t.nodeType&&t,Cs=bh&&!0&&e&&!e.nodeType&&e,nw=Cs&&Cs.exports===bh,wh=nw&&tw.process,an=function(){try{var j=Cs&&Cs.require&&Cs.require("util").types;return j||wh&&wh.binding&&wh.binding("util")}catch{}}(),rw=an&&an.isArrayBuffer,sw=an&&an.isDate,iw=an&&an.isMap,ow=an&&an.isRegExp,aw=an&&an.isSet,lw=an&&an.isTypedArray;function Kt(j,z,V){switch(V.length){case 0:return j.call(z);case 1:return j.call(z,V[0]);case 2:return j.call(z,V[0],V[1]);case 3:return j.call(z,V[0],V[1],V[2])}return j.apply(z,V)}function ML(j,z,V,pe){for(var Ae=-1,Le=j==null?0:j.length;++Ae<Le;){var ht=j[Ae];z(pe,ht,V(ht),j)}return pe}function ln(j,z){for(var V=-1,pe=j==null?0:j.length;++V<pe&&z(j[V],V,j)!==!1;);return j}function OL(j,z){for(var V=j==null?0:j.length;V--&&z(j[V],V,j)!==!1;);return j}function cw(j,z){for(var V=-1,pe=j==null?0:j.length;++V<pe;)if(!z(j[V],V,j))return!1;return!0}function Ur(j,z){for(var V=-1,pe=j==null?0:j.length,Ae=0,Le=[];++V<pe;){var ht=j[V];z(ht,V,j)&&(Le[Ae++]=ht)}return Le}function Cl(j,z){var V=j==null?0:j.length;return!!V&&wi(j,z,0)>-1}function Sh(j,z,V){for(var pe=-1,Ae=j==null?0:j.length;++pe<Ae;)if(V(z,j[pe]))return!0;return!1}function Je(j,z){for(var V=-1,pe=j==null?0:j.length,Ae=Array(pe);++V<pe;)Ae[V]=z(j[V],V,j);return Ae}function zr(j,z){for(var V=-1,pe=z.length,Ae=j.length;++V<pe;)j[Ae+V]=z[V];return j}function Th(j,z,V,pe){var Ae=-1,Le=j==null?0:j.length;for(pe&&Le&&(V=j[++Ae]);++Ae<Le;)V=z(V,j[Ae],Ae,j);return V}function $L(j,z,V,pe){var Ae=j==null?0:j.length;for(pe&&Ae&&(V=j[--Ae]);Ae--;)V=z(V,j[Ae],Ae,j);return V}function Ch(j,z){for(var V=-1,pe=j==null?0:j.length;++V<pe;)if(z(j[V],V,j))return!0;return!1}var _L=Eh("length");function IL(j){return j.split("")}function DL(j){return j.match(Bj)||[]}function uw(j,z,V){var pe;return V(j,function(Ae,Le,ht){if(z(Ae,Le,ht))return pe=Le,!1}),pe}function El(j,z,V,pe){for(var Ae=j.length,Le=V+(pe?1:-1);pe?Le--:++Le<Ae;)if(z(j[Le],Le,j))return Le;return-1}function wi(j,z,V){return z===z?GL(j,z,V):El(j,fw,V)}function NL(j,z,V,pe){for(var Ae=V-1,Le=j.length;++Ae<Le;)if(pe(j[Ae],z))return Ae;return-1}function fw(j){return j!==j}function dw(j,z){var V=j==null?0:j.length;return V?Ah(j,z)/V:$}function Eh(j){return function(z){return z==null?n:z[j]}}function Ph(j){return function(z){return j==null?n:j[z]}}function hw(j,z,V,pe,Ae){return Ae(j,function(Le,ht,Ge){V=pe?(pe=!1,Le):z(V,Le,ht,Ge)}),V}function kL(j,z){var V=j.length;for(j.sort(z);V--;)j[V]=j[V].value;return j}function Ah(j,z){for(var V,pe=-1,Ae=j.length;++pe<Ae;){var Le=z(j[pe]);Le!==n&&(V=V===n?Le:V+Le)}return V}function Mh(j,z){for(var V=-1,pe=Array(j);++V<j;)pe[V]=z(V);return pe}function jL(j,z){return Je(z,function(V){return[V,j[V]]})}function mw(j){return j&&j.slice(0,xw(j)+1).replace(mh,"")}function Xt(j){return function(z){return j(z)}}function Oh(j,z){return Je(z,function(V){return j[V]})}function No(j,z){return j.has(z)}function pw(j,z){for(var V=-1,pe=j.length;++V<pe&&wi(z,j[V],0)>-1;);return V}function gw(j,z){for(var V=j.length;V--&&wi(z,j[V],0)>-1;);return V}function LL(j,z){for(var V=j.length,pe=0;V--;)j[V]===z&&++pe;return pe}var RL=Ph(wL),FL=Ph(SL);function VL(j){return"\\"+CL[j]}function BL(j,z){return j==null?n:j[z]}function Si(j){return yL.test(j)}function WL(j){return xL.test(j)}function UL(j){for(var z,V=[];!(z=j.next()).done;)V.push(z.value);return V}function $h(j){var z=-1,V=Array(j.size);return j.forEach(function(pe,Ae){V[++z]=[Ae,pe]}),V}function yw(j,z){return function(V){return j(z(V))}}function Gr(j,z){for(var V=-1,pe=j.length,Ae=0,Le=[];++V<pe;){var ht=j[V];(ht===z||ht===h)&&(j[V]=h,Le[Ae++]=V)}return Le}function Pl(j){var z=-1,V=Array(j.size);return j.forEach(function(pe){V[++z]=pe}),V}function zL(j){var z=-1,V=Array(j.size);return j.forEach(function(pe){V[++z]=[pe,pe]}),V}function GL(j,z,V){for(var pe=V-1,Ae=j.length;++pe<Ae;)if(j[pe]===z)return pe;return-1}function YL(j,z,V){for(var pe=V+1;pe--;)if(j[pe]===z)return pe;return pe}function Ti(j){return Si(j)?qL(j):_L(j)}function vn(j){return Si(j)?KL(j):IL(j)}function xw(j){for(var z=j.length;z--&&Lj.test(j.charAt(z)););return z}var HL=Ph(TL);function qL(j){for(var z=vh.lastIndex=0;vh.test(j);)++z;return z}function KL(j){return j.match(vh)||[]}function XL(j){return j.match(gL)||[]}var ZL=function j(z){z=z==null?vt:Ci.defaults(vt.Object(),z,Ci.pick(vt,vL));var V=z.Array,pe=z.Date,Ae=z.Error,Le=z.Function,ht=z.Math,Ge=z.Object,_h=z.RegExp,JL=z.String,cn=z.TypeError,Al=V.prototype,QL=Le.prototype,Ei=Ge.prototype,Ml=z["__core-js_shared__"],Ol=QL.toString,ze=Ei.hasOwnProperty,eR=0,vw=function(){var i=/[^.]+$/.exec(Ml&&Ml.keys&&Ml.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""}(),$l=Ei.toString,tR=Ol.call(Ge),nR=vt._,rR=_h("^"+Ol.call(ze).replace(hh,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),_l=nw?z.Buffer:n,Yr=z.Symbol,Il=z.Uint8Array,bw=_l?_l.allocUnsafe:n,Dl=yw(Ge.getPrototypeOf,Ge),ww=Ge.create,Sw=Ei.propertyIsEnumerable,Nl=Al.splice,Tw=Yr?Yr.isConcatSpreadable:n,ko=Yr?Yr.iterator:n,Es=Yr?Yr.toStringTag:n,kl=function(){try{var i=$s(Ge,"defineProperty");return i({},"",{}),i}catch{}}(),sR=z.clearTimeout!==vt.clearTimeout&&z.clearTimeout,iR=pe&&pe.now!==vt.Date.now&&pe.now,oR=z.setTimeout!==vt.setTimeout&&z.setTimeout,jl=ht.ceil,Ll=ht.floor,Ih=Ge.getOwnPropertySymbols,aR=_l?_l.isBuffer:n,Cw=z.isFinite,lR=Al.join,cR=yw(Ge.keys,Ge),mt=ht.max,At=ht.min,uR=pe.now,fR=z.parseInt,Ew=ht.random,dR=Al.reverse,Dh=$s(z,"DataView"),jo=$s(z,"Map"),Nh=$s(z,"Promise"),Pi=$s(z,"Set"),Lo=$s(z,"WeakMap"),Ro=$s(Ge,"create"),Rl=Lo&&new Lo,Ai={},hR=_s(Dh),mR=_s(jo),pR=_s(Nh),gR=_s(Pi),yR=_s(Lo),Fl=Yr?Yr.prototype:n,Fo=Fl?Fl.valueOf:n,Pw=Fl?Fl.toString:n;function P(i){if(ot(i)&&!Me(i)&&!(i instanceof ke)){if(i instanceof un)return i;if(ze.call(i,"__wrapped__"))return AS(i)}return new un(i)}var Mi=function(){function i(){}return function(l){if(!rt(l))return{};if(ww)return ww(l);i.prototype=l;var f=new i;return i.prototype=n,f}}();function Vl(){}function un(i,l){this.__wrapped__=i,this.__actions__=[],this.__chain__=!!l,this.__index__=0,this.__values__=n}P.templateSettings={escape:_j,evaluate:Ij,interpolate:k2,variable:"",imports:{_:P}},P.prototype=Vl.prototype,P.prototype.constructor=P,un.prototype=Mi(Vl.prototype),un.prototype.constructor=un;function ke(i){this.__wrapped__=i,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=k,this.__views__=[]}function xR(){var i=new ke(this.__wrapped__);return i.__actions__=Rt(this.__actions__),i.__dir__=this.__dir__,i.__filtered__=this.__filtered__,i.__iteratees__=Rt(this.__iteratees__),i.__takeCount__=this.__takeCount__,i.__views__=Rt(this.__views__),i}function vR(){if(this.__filtered__){var i=new ke(this);i.__dir__=-1,i.__filtered__=!0}else i=this.clone(),i.__dir__*=-1;return i}function bR(){var i=this.__wrapped__.value(),l=this.__dir__,f=Me(i),y=l<0,w=f?i.length:0,M=IF(0,w,this.__views__),_=M.start,D=M.end,L=D-_,Y=y?D:_-1,q=this.__iteratees__,Q=q.length,de=0,ye=At(L,this.__takeCount__);if(!f||!y&&w==L&&ye==L)return Xw(i,this.__actions__);var Te=[];e:for(;L--&&de<ye;){Y+=l;for(var $e=-1,Ce=i[Y];++$e<Q;){var Ne=q[$e],je=Ne.iteratee,Qt=Ne.type,Dt=je(Ce);if(Qt==ce)Ce=Dt;else if(!Dt){if(Qt==ue)continue e;break e}}Te[de++]=Ce}return Te}ke.prototype=Mi(Vl.prototype),ke.prototype.constructor=ke;function Ps(i){var l=-1,f=i==null?0:i.length;for(this.clear();++l<f;){var y=i[l];this.set(y[0],y[1])}}function wR(){this.__data__=Ro?Ro(null):{},this.size=0}function SR(i){var l=this.has(i)&&delete this.__data__[i];return this.size-=l?1:0,l}function TR(i){var l=this.__data__;if(Ro){var f=l[i];return f===u?n:f}return ze.call(l,i)?l[i]:n}function CR(i){var l=this.__data__;return Ro?l[i]!==n:ze.call(l,i)}function ER(i,l){var f=this.__data__;return this.size+=this.has(i)?0:1,f[i]=Ro&&l===n?u:l,this}Ps.prototype.clear=wR,Ps.prototype.delete=SR,Ps.prototype.get=TR,Ps.prototype.has=CR,Ps.prototype.set=ER;function fr(i){var l=-1,f=i==null?0:i.length;for(this.clear();++l<f;){var y=i[l];this.set(y[0],y[1])}}function PR(){this.__data__=[],this.size=0}function AR(i){var l=this.__data__,f=Bl(l,i);if(f<0)return!1;var y=l.length-1;return f==y?l.pop():Nl.call(l,f,1),--this.size,!0}function MR(i){var l=this.__data__,f=Bl(l,i);return f<0?n:l[f][1]}function OR(i){return Bl(this.__data__,i)>-1}function $R(i,l){var f=this.__data__,y=Bl(f,i);return y<0?(++this.size,f.push([i,l])):f[y][1]=l,this}fr.prototype.clear=PR,fr.prototype.delete=AR,fr.prototype.get=MR,fr.prototype.has=OR,fr.prototype.set=$R;function dr(i){var l=-1,f=i==null?0:i.length;for(this.clear();++l<f;){var y=i[l];this.set(y[0],y[1])}}function _R(){this.size=0,this.__data__={hash:new Ps,map:new(jo||fr),string:new Ps}}function IR(i){var l=Ql(this,i).delete(i);return this.size-=l?1:0,l}function DR(i){return Ql(this,i).get(i)}function NR(i){return Ql(this,i).has(i)}function kR(i,l){var f=Ql(this,i),y=f.size;return f.set(i,l),this.size+=f.size==y?0:1,this}dr.prototype.clear=_R,dr.prototype.delete=IR,dr.prototype.get=DR,dr.prototype.has=NR,dr.prototype.set=kR;function As(i){var l=-1,f=i==null?0:i.length;for(this.__data__=new dr;++l<f;)this.add(i[l])}function jR(i){return this.__data__.set(i,u),this}function LR(i){return this.__data__.has(i)}As.prototype.add=As.prototype.push=jR,As.prototype.has=LR;function bn(i){var l=this.__data__=new fr(i);this.size=l.size}function RR(){this.__data__=new fr,this.size=0}function FR(i){var l=this.__data__,f=l.delete(i);return this.size=l.size,f}function VR(i){return this.__data__.get(i)}function BR(i){return this.__data__.has(i)}function WR(i,l){var f=this.__data__;if(f instanceof fr){var y=f.__data__;if(!jo||y.length<s-1)return y.push([i,l]),this.size=++f.size,this;f=this.__data__=new dr(y)}return f.set(i,l),this.size=f.size,this}bn.prototype.clear=RR,bn.prototype.delete=FR,bn.prototype.get=VR,bn.prototype.has=BR,bn.prototype.set=WR;function Aw(i,l){var f=Me(i),y=!f&&Is(i),w=!f&&!y&&Zr(i),M=!f&&!y&&!w&&Ii(i),_=f||y||w||M,D=_?Mh(i.length,JL):[],L=D.length;for(var Y in i)(l||ze.call(i,Y))&&!(_&&(Y=="length"||w&&(Y=="offset"||Y=="parent")||M&&(Y=="buffer"||Y=="byteLength"||Y=="byteOffset")||gr(Y,L)))&&D.push(Y);return D}function Mw(i){var l=i.length;return l?i[Gh(0,l-1)]:n}function UR(i,l){return ec(Rt(i),Ms(l,0,i.length))}function zR(i){return ec(Rt(i))}function kh(i,l,f){(f!==n&&!wn(i[l],f)||f===n&&!(l in i))&&hr(i,l,f)}function Vo(i,l,f){var y=i[l];(!(ze.call(i,l)&&wn(y,f))||f===n&&!(l in i))&&hr(i,l,f)}function Bl(i,l){for(var f=i.length;f--;)if(wn(i[f][0],l))return f;return-1}function GR(i,l,f,y){return Hr(i,function(w,M,_){l(y,w,f(w),_)}),y}function Ow(i,l){return i&&Bn(l,gt(l),i)}function YR(i,l){return i&&Bn(l,Vt(l),i)}function hr(i,l,f){l=="__proto__"&&kl?kl(i,l,{configurable:!0,enumerable:!0,value:f,writable:!0}):i[l]=f}function jh(i,l){for(var f=-1,y=l.length,w=V(y),M=i==null;++f<y;)w[f]=M?n:gm(i,l[f]);return w}function Ms(i,l,f){return i===i&&(f!==n&&(i=i<=f?i:f),l!==n&&(i=i>=l?i:l)),i}function fn(i,l,f,y,w,M){var _,D=l&m,L=l&p,Y=l&x;if(f&&(_=w?f(i,y,w,M):f(i)),_!==n)return _;if(!rt(i))return i;var q=Me(i);if(q){if(_=NF(i),!D)return Rt(i,_)}else{var Q=Mt(i),de=Q==ie||Q==ge;if(Zr(i))return Qw(i,D);if(Q==dt||Q==B||de&&!w){if(_=L||de?{}:xS(i),!D)return L?TF(i,YR(_,i)):SF(i,Ow(_,i))}else{if(!qe[Q])return w?i:{};_=kF(i,Q,D)}}M||(M=new bn);var ye=M.get(i);if(ye)return ye;M.set(i,_),HS(i)?i.forEach(function(Ce){_.add(fn(Ce,l,f,Ce,i,M))}):GS(i)&&i.forEach(function(Ce,Ne){_.set(Ne,fn(Ce,l,f,Ne,i,M))});var Te=Y?L?nm:tm:L?Vt:gt,$e=q?n:Te(i);return ln($e||i,function(Ce,Ne){$e&&(Ne=Ce,Ce=i[Ne]),Vo(_,Ne,fn(Ce,l,f,Ne,i,M))}),_}function HR(i){var l=gt(i);return function(f){return $w(f,i,l)}}function $w(i,l,f){var y=f.length;if(i==null)return!y;for(i=Ge(i);y--;){var w=f[y],M=l[w],_=i[w];if(_===n&&!(w in i)||!M(_))return!1}return!0}function _w(i,l,f){if(typeof i!="function")throw new cn(a);return Ho(function(){i.apply(n,f)},l)}function Bo(i,l,f,y){var w=-1,M=Cl,_=!0,D=i.length,L=[],Y=l.length;if(!D)return L;f&&(l=Je(l,Xt(f))),y?(M=Sh,_=!1):l.length>=s&&(M=No,_=!1,l=new As(l));e:for(;++w<D;){var q=i[w],Q=f==null?q:f(q);if(q=y||q!==0?q:0,_&&Q===Q){for(var de=Y;de--;)if(l[de]===Q)continue e;L.push(q)}else M(l,Q,y)||L.push(q)}return L}var Hr=sS(Vn),Iw=sS(Rh,!0);function qR(i,l){var f=!0;return Hr(i,function(y,w,M){return f=!!l(y,w,M),f}),f}function Wl(i,l,f){for(var y=-1,w=i.length;++y<w;){var M=i[y],_=l(M);if(_!=null&&(D===n?_===_&&!Jt(_):f(_,D)))var D=_,L=M}return L}function KR(i,l,f,y){var w=i.length;for(f=Oe(f),f<0&&(f=-f>w?0:w+f),y=y===n||y>w?w:Oe(y),y<0&&(y+=w),y=f>y?0:KS(y);f<y;)i[f++]=l;return i}function Dw(i,l){var f=[];return Hr(i,function(y,w,M){l(y,w,M)&&f.push(y)}),f}function bt(i,l,f,y,w){var M=-1,_=i.length;for(f||(f=LF),w||(w=[]);++M<_;){var D=i[M];l>0&&f(D)?l>1?bt(D,l-1,f,y,w):zr(w,D):y||(w[w.length]=D)}return w}var Lh=iS(),Nw=iS(!0);function Vn(i,l){return i&&Lh(i,l,gt)}function Rh(i,l){return i&&Nw(i,l,gt)}function Ul(i,l){return Ur(l,function(f){return yr(i[f])})}function Os(i,l){l=Kr(l,i);for(var f=0,y=l.length;i!=null&&f<y;)i=i[Wn(l[f++])];return f&&f==y?i:n}function kw(i,l,f){var y=l(i);return Me(i)?y:zr(y,f(i))}function _t(i){return i==null?i===n?vl:Ss:Es&&Es in Ge(i)?_F(i):zF(i)}function Fh(i,l){return i>l}function XR(i,l){return i!=null&&ze.call(i,l)}function ZR(i,l){return i!=null&&l in Ge(i)}function JR(i,l,f){return i>=At(l,f)&&i<mt(l,f)}function Vh(i,l,f){for(var y=f?Sh:Cl,w=i[0].length,M=i.length,_=M,D=V(M),L=1/0,Y=[];_--;){var q=i[_];_&&l&&(q=Je(q,Xt(l))),L=At(q.length,L),D[_]=!f&&(l||w>=120&&q.length>=120)?new As(_&&q):n}q=i[0];var Q=-1,de=D[0];e:for(;++Q<w&&Y.length<L;){var ye=q[Q],Te=l?l(ye):ye;if(ye=f||ye!==0?ye:0,!(de?No(de,Te):y(Y,Te,f))){for(_=M;--_;){var $e=D[_];if(!($e?No($e,Te):y(i[_],Te,f)))continue e}de&&de.push(Te),Y.push(ye)}}return Y}function QR(i,l,f,y){return Vn(i,function(w,M,_){l(y,f(w),M,_)}),y}function Wo(i,l,f){l=Kr(l,i),i=SS(i,l);var y=i==null?i:i[Wn(hn(l))];return y==null?n:Kt(y,i,f)}function jw(i){return ot(i)&&_t(i)==B}function eF(i){return ot(i)&&_t(i)==ve}function tF(i){return ot(i)&&_t(i)==he}function Uo(i,l,f,y,w){return i===l?!0:i==null||l==null||!ot(i)&&!ot(l)?i!==i&&l!==l:nF(i,l,f,y,Uo,w)}function nF(i,l,f,y,w,M){var _=Me(i),D=Me(l),L=_?X:Mt(i),Y=D?X:Mt(l);L=L==B?dt:L,Y=Y==B?dt:Y;var q=L==dt,Q=Y==dt,de=L==Y;if(de&&Zr(i)){if(!Zr(l))return!1;_=!0,q=!1}if(de&&!q)return M||(M=new bn),_||Ii(i)?pS(i,l,f,y,w,M):OF(i,l,L,f,y,w,M);if(!(f&S)){var ye=q&&ze.call(i,"__wrapped__"),Te=Q&&ze.call(l,"__wrapped__");if(ye||Te){var $e=ye?i.value():i,Ce=Te?l.value():l;return M||(M=new bn),w($e,Ce,f,y,M)}}return de?(M||(M=new bn),$F(i,l,f,y,w,M)):!1}function rF(i){return ot(i)&&Mt(i)==De}function Bh(i,l,f,y){var w=f.length,M=w,_=!y;if(i==null)return!M;for(i=Ge(i);w--;){var D=f[w];if(_&&D[2]?D[1]!==i[D[0]]:!(D[0]in i))return!1}for(;++w<M;){D=f[w];var L=D[0],Y=i[L],q=D[1];if(_&&D[2]){if(Y===n&&!(L in i))return!1}else{var Q=new bn;if(y)var de=y(Y,q,L,i,l,Q);if(!(de===n?Uo(q,Y,S|b,y,Q):de))return!1}}return!0}function Lw(i){if(!rt(i)||FF(i))return!1;var l=yr(i)?rR:Hj;return l.test(_s(i))}function sF(i){return ot(i)&&_t(i)==Br}function iF(i){return ot(i)&&Mt(i)==qt}function oF(i){return ot(i)&&oc(i.length)&&!!Xe[_t(i)]}function Rw(i){return typeof i=="function"?i:i==null?Bt:typeof i=="object"?Me(i)?Bw(i[0],i[1]):Vw(i):oT(i)}function Wh(i){if(!Yo(i))return cR(i);var l=[];for(var f in Ge(i))ze.call(i,f)&&f!="constructor"&&l.push(f);return l}function aF(i){if(!rt(i))return UF(i);var l=Yo(i),f=[];for(var y in i)y=="constructor"&&(l||!ze.call(i,y))||f.push(y);return f}function Uh(i,l){return i<l}function Fw(i,l){var f=-1,y=Ft(i)?V(i.length):[];return Hr(i,function(w,M,_){y[++f]=l(w,M,_)}),y}function Vw(i){var l=sm(i);return l.length==1&&l[0][2]?bS(l[0][0],l[0][1]):function(f){return f===i||Bh(f,i,l)}}function Bw(i,l){return om(i)&&vS(l)?bS(Wn(i),l):function(f){var y=gm(f,i);return y===n&&y===l?ym(f,i):Uo(l,y,S|b)}}function zl(i,l,f,y,w){i!==l&&Lh(l,function(M,_){if(w||(w=new bn),rt(M))lF(i,l,_,f,zl,y,w);else{var D=y?y(lm(i,_),M,_+"",i,l,w):n;D===n&&(D=M),kh(i,_,D)}},Vt)}function lF(i,l,f,y,w,M,_){var D=lm(i,f),L=lm(l,f),Y=_.get(L);if(Y){kh(i,f,Y);return}var q=M?M(D,L,f+"",i,l,_):n,Q=q===n;if(Q){var de=Me(L),ye=!de&&Zr(L),Te=!de&&!ye&&Ii(L);q=L,de||ye||Te?Me(D)?q=D:ct(D)?q=Rt(D):ye?(Q=!1,q=Qw(L,!0)):Te?(Q=!1,q=eS(L,!0)):q=[]:qo(L)||Is(L)?(q=D,Is(D)?q=XS(D):(!rt(D)||yr(D))&&(q=xS(L))):Q=!1}Q&&(_.set(L,q),w(q,L,y,M,_),_.delete(L)),kh(i,f,q)}function Ww(i,l){var f=i.length;if(f)return l+=l<0?f:0,gr(l,f)?i[l]:n}function Uw(i,l,f){l.length?l=Je(l,function(M){return Me(M)?function(_){return Os(_,M.length===1?M[0]:M)}:M}):l=[Bt];var y=-1;l=Je(l,Xt(be()));var w=Fw(i,function(M,_,D){var L=Je(l,function(Y){return Y(M)});return{criteria:L,index:++y,value:M}});return kL(w,function(M,_){return wF(M,_,f)})}function cF(i,l){return zw(i,l,function(f,y){return ym(i,y)})}function zw(i,l,f){for(var y=-1,w=l.length,M={};++y<w;){var _=l[y],D=Os(i,_);f(D,_)&&zo(M,Kr(_,i),D)}return M}function uF(i){return function(l){return Os(l,i)}}function zh(i,l,f,y){var w=y?NL:wi,M=-1,_=l.length,D=i;for(i===l&&(l=Rt(l)),f&&(D=Je(i,Xt(f)));++M<_;)for(var L=0,Y=l[M],q=f?f(Y):Y;(L=w(D,q,L,y))>-1;)D!==i&&Nl.call(D,L,1),Nl.call(i,L,1);return i}function Gw(i,l){for(var f=i?l.length:0,y=f-1;f--;){var w=l[f];if(f==y||w!==M){var M=w;gr(w)?Nl.call(i,w,1):qh(i,w)}}return i}function Gh(i,l){return i+Ll(Ew()*(l-i+1))}function fF(i,l,f,y){for(var w=-1,M=mt(jl((l-i)/(f||1)),0),_=V(M);M--;)_[y?M:++w]=i,i+=f;return _}function Yh(i,l){var f="";if(!i||l<1||l>W)return f;do l%2&&(f+=i),l=Ll(l/2),l&&(i+=i);while(l);return f}function _e(i,l){return cm(wS(i,l,Bt),i+"")}function dF(i){return Mw(Di(i))}function hF(i,l){var f=Di(i);return ec(f,Ms(l,0,f.length))}function zo(i,l,f,y){if(!rt(i))return i;l=Kr(l,i);for(var w=-1,M=l.length,_=M-1,D=i;D!=null&&++w<M;){var L=Wn(l[w]),Y=f;if(L==="__proto__"||L==="constructor"||L==="prototype")return i;if(w!=_){var q=D[L];Y=y?y(q,L,D):n,Y===n&&(Y=rt(q)?q:gr(l[w+1])?[]:{})}Vo(D,L,Y),D=D[L]}return i}var Yw=Rl?function(i,l){return Rl.set(i,l),i}:Bt,mF=kl?function(i,l){return kl(i,"toString",{configurable:!0,enumerable:!1,value:vm(l),writable:!0})}:Bt;function pF(i){return ec(Di(i))}function dn(i,l,f){var y=-1,w=i.length;l<0&&(l=-l>w?0:w+l),f=f>w?w:f,f<0&&(f+=w),w=l>f?0:f-l>>>0,l>>>=0;for(var M=V(w);++y<w;)M[y]=i[y+l];return M}function gF(i,l){var f;return Hr(i,function(y,w,M){return f=l(y,w,M),!f}),!!f}function Gl(i,l,f){var y=0,w=i==null?y:i.length;if(typeof l=="number"&&l===l&&w<=H){for(;y<w;){var M=y+w>>>1,_=i[M];_!==null&&!Jt(_)&&(f?_<=l:_<l)?y=M+1:w=M}return w}return Hh(i,l,Bt,f)}function Hh(i,l,f,y){var w=0,M=i==null?0:i.length;if(M===0)return 0;l=f(l);for(var _=l!==l,D=l===null,L=Jt(l),Y=l===n;w<M;){var q=Ll((w+M)/2),Q=f(i[q]),de=Q!==n,ye=Q===null,Te=Q===Q,$e=Jt(Q);if(_)var Ce=y||Te;else Y?Ce=Te&&(y||de):D?Ce=Te&&de&&(y||!ye):L?Ce=Te&&de&&!ye&&(y||!$e):ye||$e?Ce=!1:Ce=y?Q<=l:Q<l;Ce?w=q+1:M=q}return At(M,J)}function Hw(i,l){for(var f=-1,y=i.length,w=0,M=[];++f<y;){var _=i[f],D=l?l(_):_;if(!f||!wn(D,L)){var L=D;M[w++]=_===0?0:_}}return M}function qw(i){return typeof i=="number"?i:Jt(i)?$:+i}function Zt(i){if(typeof i=="string")return i;if(Me(i))return Je(i,Zt)+"";if(Jt(i))return Pw?Pw.call(i):"";var l=i+"";return l=="0"&&1/i==-1/0?"-0":l}function qr(i,l,f){var y=-1,w=Cl,M=i.length,_=!0,D=[],L=D;if(f)_=!1,w=Sh;else if(M>=s){var Y=l?null:AF(i);if(Y)return Pl(Y);_=!1,w=No,L=new As}else L=l?[]:D;e:for(;++y<M;){var q=i[y],Q=l?l(q):q;if(q=f||q!==0?q:0,_&&Q===Q){for(var de=L.length;de--;)if(L[de]===Q)continue e;l&&L.push(Q),D.push(q)}else w(L,Q,f)||(L!==D&&L.push(Q),D.push(q))}return D}function qh(i,l){return l=Kr(l,i),i=SS(i,l),i==null||delete i[Wn(hn(l))]}function Kw(i,l,f,y){return zo(i,l,f(Os(i,l)),y)}function Yl(i,l,f,y){for(var w=i.length,M=y?w:-1;(y?M--:++M<w)&&l(i[M],M,i););return f?dn(i,y?0:M,y?M+1:w):dn(i,y?M+1:0,y?w:M)}function Xw(i,l){var f=i;return f instanceof ke&&(f=f.value()),Th(l,function(y,w){return w.func.apply(w.thisArg,zr([y],w.args))},f)}function Kh(i,l,f){var y=i.length;if(y<2)return y?qr(i[0]):[];for(var w=-1,M=V(y);++w<y;)for(var _=i[w],D=-1;++D<y;)D!=w&&(M[w]=Bo(M[w]||_,i[D],l,f));return qr(bt(M,1),l,f)}function Zw(i,l,f){for(var y=-1,w=i.length,M=l.length,_={};++y<w;){var D=y<M?l[y]:n;f(_,i[y],D)}return _}function Xh(i){return ct(i)?i:[]}function Zh(i){return typeof i=="function"?i:Bt}function Kr(i,l){return Me(i)?i:om(i,l)?[i]:PS(We(i))}var yF=_e;function Xr(i,l,f){var y=i.length;return f=f===n?y:f,!l&&f>=y?i:dn(i,l,f)}var Jw=sR||function(i){return vt.clearTimeout(i)};function Qw(i,l){if(l)return i.slice();var f=i.length,y=bw?bw(f):new i.constructor(f);return i.copy(y),y}function Jh(i){var l=new i.constructor(i.byteLength);return new Il(l).set(new Il(i)),l}function xF(i,l){var f=l?Jh(i.buffer):i.buffer;return new i.constructor(f,i.byteOffset,i.byteLength)}function vF(i){var l=new i.constructor(i.source,j2.exec(i));return l.lastIndex=i.lastIndex,l}function bF(i){return Fo?Ge(Fo.call(i)):{}}function eS(i,l){var f=l?Jh(i.buffer):i.buffer;return new i.constructor(f,i.byteOffset,i.length)}function tS(i,l){if(i!==l){var f=i!==n,y=i===null,w=i===i,M=Jt(i),_=l!==n,D=l===null,L=l===l,Y=Jt(l);if(!D&&!Y&&!M&&i>l||M&&_&&L&&!D&&!Y||y&&_&&L||!f&&L||!w)return 1;if(!y&&!M&&!Y&&i<l||Y&&f&&w&&!y&&!M||D&&f&&w||!_&&w||!L)return-1}return 0}function wF(i,l,f){for(var y=-1,w=i.criteria,M=l.criteria,_=w.length,D=f.length;++y<_;){var L=tS(w[y],M[y]);if(L){if(y>=D)return L;var Y=f[y];return L*(Y=="desc"?-1:1)}}return i.index-l.index}function nS(i,l,f,y){for(var w=-1,M=i.length,_=f.length,D=-1,L=l.length,Y=mt(M-_,0),q=V(L+Y),Q=!y;++D<L;)q[D]=l[D];for(;++w<_;)(Q||w<M)&&(q[f[w]]=i[w]);for(;Y--;)q[D++]=i[w++];return q}function rS(i,l,f,y){for(var w=-1,M=i.length,_=-1,D=f.length,L=-1,Y=l.length,q=mt(M-D,0),Q=V(q+Y),de=!y;++w<q;)Q[w]=i[w];for(var ye=w;++L<Y;)Q[ye+L]=l[L];for(;++_<D;)(de||w<M)&&(Q[ye+f[_]]=i[w++]);return Q}function Rt(i,l){var f=-1,y=i.length;for(l||(l=V(y));++f<y;)l[f]=i[f];return l}function Bn(i,l,f,y){var w=!f;f||(f={});for(var M=-1,_=l.length;++M<_;){var D=l[M],L=y?y(f[D],i[D],D,f,i):n;L===n&&(L=i[D]),w?hr(f,D,L):Vo(f,D,L)}return f}function SF(i,l){return Bn(i,im(i),l)}function TF(i,l){return Bn(i,gS(i),l)}function Hl(i,l){return function(f,y){var w=Me(f)?ML:GR,M=l?l():{};return w(f,i,be(y,2),M)}}function Oi(i){return _e(function(l,f){var y=-1,w=f.length,M=w>1?f[w-1]:n,_=w>2?f[2]:n;for(M=i.length>3&&typeof M=="function"?(w--,M):n,_&&It(f[0],f[1],_)&&(M=w<3?n:M,w=1),l=Ge(l);++y<w;){var D=f[y];D&&i(l,D,y,M)}return l})}function sS(i,l){return function(f,y){if(f==null)return f;if(!Ft(f))return i(f,y);for(var w=f.length,M=l?w:-1,_=Ge(f);(l?M--:++M<w)&&y(_[M],M,_)!==!1;);return f}}function iS(i){return function(l,f,y){for(var w=-1,M=Ge(l),_=y(l),D=_.length;D--;){var L=_[i?D:++w];if(f(M[L],L,M)===!1)break}return l}}function CF(i,l,f){var y=l&T,w=Go(i);function M(){var _=this&&this!==vt&&this instanceof M?w:i;return _.apply(y?f:this,arguments)}return M}function oS(i){return function(l){l=We(l);var f=Si(l)?vn(l):n,y=f?f[0]:l.charAt(0),w=f?Xr(f,1).join(""):l.slice(1);return y[i]()+w}}function $i(i){return function(l){return Th(sT(rT(l).replace(mL,"")),i,"")}}function Go(i){return function(){var l=arguments;switch(l.length){case 0:return new i;case 1:return new i(l[0]);case 2:return new i(l[0],l[1]);case 3:return new i(l[0],l[1],l[2]);case 4:return new i(l[0],l[1],l[2],l[3]);case 5:return new i(l[0],l[1],l[2],l[3],l[4]);case 6:return new i(l[0],l[1],l[2],l[3],l[4],l[5]);case 7:return new i(l[0],l[1],l[2],l[3],l[4],l[5],l[6])}var f=Mi(i.prototype),y=i.apply(f,l);return rt(y)?y:f}}function EF(i,l,f){var y=Go(i);function w(){for(var M=arguments.length,_=V(M),D=M,L=_i(w);D--;)_[D]=arguments[D];var Y=M<3&&_[0]!==L&&_[M-1]!==L?[]:Gr(_,L);if(M-=Y.length,M<f)return fS(i,l,ql,w.placeholder,n,_,Y,n,n,f-M);var q=this&&this!==vt&&this instanceof w?y:i;return Kt(q,this,_)}return w}function aS(i){return function(l,f,y){var w=Ge(l);if(!Ft(l)){var M=be(f,3);l=gt(l),f=function(D){return M(w[D],D,w)}}var _=i(l,f,y);return _>-1?w[M?l[_]:_]:n}}function lS(i){return pr(function(l){var f=l.length,y=f,w=un.prototype.thru;for(i&&l.reverse();y--;){var M=l[y];if(typeof M!="function")throw new cn(a);if(w&&!_&&Jl(M)=="wrapper")var _=new un([],!0)}for(y=_?y:f;++y<f;){M=l[y];var D=Jl(M),L=D=="wrapper"?rm(M):n;L&&am(L[0])&&L[1]==(R|C|E|F)&&!L[4].length&&L[9]==1?_=_[Jl(L[0])].apply(_,L[3]):_=M.length==1&&am(M)?_[D]():_.thru(M)}return function(){var Y=arguments,q=Y[0];if(_&&Y.length==1&&Me(q))return _.plant(q).value();for(var Q=0,de=f?l[Q].apply(this,Y):q;++Q<f;)de=l[Q].call(this,de);return de}})}function ql(i,l,f,y,w,M,_,D,L,Y){var q=l&R,Q=l&T,de=l&v,ye=l&(C|I),Te=l&G,$e=de?n:Go(i);function Ce(){for(var Ne=arguments.length,je=V(Ne),Qt=Ne;Qt--;)je[Qt]=arguments[Qt];if(ye)var Dt=_i(Ce),en=LL(je,Dt);if(y&&(je=nS(je,y,w,ye)),M&&(je=rS(je,M,_,ye)),Ne-=en,ye&&Ne<Y){var ut=Gr(je,Dt);return fS(i,l,ql,Ce.placeholder,f,je,ut,D,L,Y-Ne)}var Sn=Q?f:this,vr=de?Sn[i]:i;return Ne=je.length,D?je=GF(je,D):Te&&Ne>1&&je.reverse(),q&&L<Ne&&(je.length=L),this&&this!==vt&&this instanceof Ce&&(vr=$e||Go(vr)),vr.apply(Sn,je)}return Ce}function cS(i,l){return function(f,y){return QR(f,i,l(y),{})}}function Kl(i,l){return function(f,y){var w;if(f===n&&y===n)return l;if(f!==n&&(w=f),y!==n){if(w===n)return y;typeof f=="string"||typeof y=="string"?(f=Zt(f),y=Zt(y)):(f=qw(f),y=qw(y)),w=i(f,y)}return w}}function Qh(i){return pr(function(l){return l=Je(l,Xt(be())),_e(function(f){var y=this;return i(l,function(w){return Kt(w,y,f)})})})}function Xl(i,l){l=l===n?" ":Zt(l);var f=l.length;if(f<2)return f?Yh(l,i):l;var y=Yh(l,jl(i/Ti(l)));return Si(l)?Xr(vn(y),0,i).join(""):y.slice(0,i)}function PF(i,l,f,y){var w=l&T,M=Go(i);function _(){for(var D=-1,L=arguments.length,Y=-1,q=y.length,Q=V(q+L),de=this&&this!==vt&&this instanceof _?M:i;++Y<q;)Q[Y]=y[Y];for(;L--;)Q[Y++]=arguments[++D];return Kt(de,w?f:this,Q)}return _}function uS(i){return function(l,f,y){return y&&typeof y!="number"&&It(l,f,y)&&(f=y=n),l=xr(l),f===n?(f=l,l=0):f=xr(f),y=y===n?l<f?1:-1:xr(y),fF(l,f,y,i)}}function Zl(i){return function(l,f){return typeof l=="string"&&typeof f=="string"||(l=mn(l),f=mn(f)),i(l,f)}}function fS(i,l,f,y,w,M,_,D,L,Y){var q=l&C,Q=q?_:n,de=q?n:_,ye=q?M:n,Te=q?n:M;l|=q?E:N,l&=~(q?N:E),l&A||(l&=-4);var $e=[i,l,w,ye,Q,Te,de,D,L,Y],Ce=f.apply(n,$e);return am(i)&&TS(Ce,$e),Ce.placeholder=y,CS(Ce,i,l)}function em(i){var l=ht[i];return function(f,y){if(f=mn(f),y=y==null?0:At(Oe(y),292),y&&Cw(f)){var w=(We(f)+"e").split("e"),M=l(w[0]+"e"+(+w[1]+y));return w=(We(M)+"e").split("e"),+(w[0]+"e"+(+w[1]-y))}return l(f)}}var AF=Pi&&1/Pl(new Pi([,-0]))[1]==U?function(i){return new Pi(i)}:Sm;function dS(i){return function(l){var f=Mt(l);return f==De?$h(l):f==qt?zL(l):jL(l,i(l))}}function mr(i,l,f,y,w,M,_,D){var L=l&v;if(!L&&typeof i!="function")throw new cn(a);var Y=y?y.length:0;if(Y||(l&=-97,y=w=n),_=_===n?_:mt(Oe(_),0),D=D===n?D:Oe(D),Y-=w?w.length:0,l&N){var q=y,Q=w;y=w=n}var de=L?n:rm(i),ye=[i,l,f,y,w,q,Q,M,_,D];if(de&&WF(ye,de),i=ye[0],l=ye[1],f=ye[2],y=ye[3],w=ye[4],D=ye[9]=ye[9]===n?L?0:i.length:mt(ye[9]-Y,0),!D&&l&(C|I)&&(l&=-25),!l||l==T)var Te=CF(i,l,f);else l==C||l==I?Te=EF(i,l,D):(l==E||l==(T|E))&&!w.length?Te=PF(i,l,f,y):Te=ql.apply(n,ye);var $e=de?Yw:TS;return CS($e(Te,ye),i,l)}function hS(i,l,f,y){return i===n||wn(i,Ei[f])&&!ze.call(y,f)?l:i}function mS(i,l,f,y,w,M){return rt(i)&&rt(l)&&(M.set(l,i),zl(i,l,n,mS,M),M.delete(l)),i}function MF(i){return qo(i)?n:i}function pS(i,l,f,y,w,M){var _=f&S,D=i.length,L=l.length;if(D!=L&&!(_&&L>D))return!1;var Y=M.get(i),q=M.get(l);if(Y&&q)return Y==l&&q==i;var Q=-1,de=!0,ye=f&b?new As:n;for(M.set(i,l),M.set(l,i);++Q<D;){var Te=i[Q],$e=l[Q];if(y)var Ce=_?y($e,Te,Q,l,i,M):y(Te,$e,Q,i,l,M);if(Ce!==n){if(Ce)continue;de=!1;break}if(ye){if(!Ch(l,function(Ne,je){if(!No(ye,je)&&(Te===Ne||w(Te,Ne,f,y,M)))return ye.push(je)})){de=!1;break}}else if(!(Te===$e||w(Te,$e,f,y,M))){de=!1;break}}return M.delete(i),M.delete(l),de}function OF(i,l,f,y,w,M,_){switch(f){case Ze:if(i.byteLength!=l.byteLength||i.byteOffset!=l.byteOffset)return!1;i=i.buffer,l=l.buffer;case ve:return!(i.byteLength!=l.byteLength||!M(new Il(i),new Il(l)));case se:case he:case ft:return wn(+i,+l);case Be:return i.name==l.name&&i.message==l.message;case Br:case yn:return i==l+"";case De:var D=$h;case qt:var L=y&S;if(D||(D=Pl),i.size!=l.size&&!L)return!1;var Y=_.get(i);if(Y)return Y==l;y|=b,_.set(i,l);var q=pS(D(i),D(l),y,w,M,_);return _.delete(i),q;case Ts:if(Fo)return Fo.call(i)==Fo.call(l)}return!1}function $F(i,l,f,y,w,M){var _=f&S,D=tm(i),L=D.length,Y=tm(l),q=Y.length;if(L!=q&&!_)return!1;for(var Q=L;Q--;){var de=D[Q];if(!(_?de in l:ze.call(l,de)))return!1}var ye=M.get(i),Te=M.get(l);if(ye&&Te)return ye==l&&Te==i;var $e=!0;M.set(i,l),M.set(l,i);for(var Ce=_;++Q<L;){de=D[Q];var Ne=i[de],je=l[de];if(y)var Qt=_?y(je,Ne,de,l,i,M):y(Ne,je,de,i,l,M);if(!(Qt===n?Ne===je||w(Ne,je,f,y,M):Qt)){$e=!1;break}Ce||(Ce=de=="constructor")}if($e&&!Ce){var Dt=i.constructor,en=l.constructor;Dt!=en&&"constructor"in i&&"constructor"in l&&!(typeof Dt=="function"&&Dt instanceof Dt&&typeof en=="function"&&en instanceof en)&&($e=!1)}return M.delete(i),M.delete(l),$e}function pr(i){return cm(wS(i,n,$S),i+"")}function tm(i){return kw(i,gt,im)}function nm(i){return kw(i,Vt,gS)}var rm=Rl?function(i){return Rl.get(i)}:Sm;function Jl(i){for(var l=i.name+"",f=Ai[l],y=ze.call(Ai,l)?f.length:0;y--;){var w=f[y],M=w.func;if(M==null||M==i)return w.name}return l}function _i(i){var l=ze.call(P,"placeholder")?P:i;return l.placeholder}function be(){var i=P.iteratee||bm;return i=i===bm?Rw:i,arguments.length?i(arguments[0],arguments[1]):i}function Ql(i,l){var f=i.__data__;return RF(l)?f[typeof l=="string"?"string":"hash"]:f.map}function sm(i){for(var l=gt(i),f=l.length;f--;){var y=l[f],w=i[y];l[f]=[y,w,vS(w)]}return l}function $s(i,l){var f=BL(i,l);return Lw(f)?f:n}function _F(i){var l=ze.call(i,Es),f=i[Es];try{i[Es]=n;var y=!0}catch{}var w=$l.call(i);return y&&(l?i[Es]=f:delete i[Es]),w}var im=Ih?function(i){return i==null?[]:(i=Ge(i),Ur(Ih(i),function(l){return Sw.call(i,l)}))}:Tm,gS=Ih?function(i){for(var l=[];i;)zr(l,im(i)),i=Dl(i);return l}:Tm,Mt=_t;(Dh&&Mt(new Dh(new ArrayBuffer(1)))!=Ze||jo&&Mt(new jo)!=De||Nh&&Mt(Nh.resolve())!=yl||Pi&&Mt(new Pi)!=qt||Lo&&Mt(new Lo)!=Wr)&&(Mt=function(i){var l=_t(i),f=l==dt?i.constructor:n,y=f?_s(f):"";if(y)switch(y){case hR:return Ze;case mR:return De;case pR:return yl;case gR:return qt;case yR:return Wr}return l});function IF(i,l,f){for(var y=-1,w=f.length;++y<w;){var M=f[y],_=M.size;switch(M.type){case"drop":i+=_;break;case"dropRight":l-=_;break;case"take":l=At(l,i+_);break;case"takeRight":i=mt(i,l-_);break}}return{start:i,end:l}}function DF(i){var l=i.match(Fj);return l?l[1].split(Vj):[]}function yS(i,l,f){l=Kr(l,i);for(var y=-1,w=l.length,M=!1;++y<w;){var _=Wn(l[y]);if(!(M=i!=null&&f(i,_)))break;i=i[_]}return M||++y!=w?M:(w=i==null?0:i.length,!!w&&oc(w)&&gr(_,w)&&(Me(i)||Is(i)))}function NF(i){var l=i.length,f=new i.constructor(l);return l&&typeof i[0]=="string"&&ze.call(i,"index")&&(f.index=i.index,f.input=i.input),f}function xS(i){return typeof i.constructor=="function"&&!Yo(i)?Mi(Dl(i)):{}}function kF(i,l,f){var y=i.constructor;switch(l){case ve:return Jh(i);case se:case he:return new y(+i);case Ze:return xF(i,f);case Pt:case xn:case ur:case ah:case lh:case ch:case uh:case fh:case dh:return eS(i,f);case De:return new y;case ft:case yn:return new y(i);case Br:return vF(i);case qt:return new y;case Ts:return bF(i)}}function jF(i,l){var f=l.length;if(!f)return i;var y=f-1;return l[y]=(f>1?"& ":"")+l[y],l=l.join(f>2?", ":" "),i.replace(Rj,`{
|
|
633
633
|
/* [wrapped with `+l+`] */
|
|
634
634
|
`)}function LF(i){return Me(i)||Is(i)||!!(Tw&&i&&i[Tw])}function gr(i,l){var f=typeof i;return l=l??W,!!l&&(f=="number"||f!="symbol"&&Kj.test(i))&&i>-1&&i%1==0&&i<l}function It(i,l,f){if(!rt(f))return!1;var y=typeof l;return(y=="number"?Ft(f)&&gr(l,f.length):y=="string"&&l in f)?wn(f[l],i):!1}function om(i,l){if(Me(i))return!1;var f=typeof i;return f=="number"||f=="symbol"||f=="boolean"||i==null||Jt(i)?!0:Nj.test(i)||!Dj.test(i)||l!=null&&i in Ge(l)}function RF(i){var l=typeof i;return l=="string"||l=="number"||l=="symbol"||l=="boolean"?i!=="__proto__":i===null}function am(i){var l=Jl(i),f=P[l];if(typeof f!="function"||!(l in ke.prototype))return!1;if(i===f)return!0;var y=rm(f);return!!y&&i===y[0]}function FF(i){return!!vw&&vw in i}var VF=Ml?yr:Cm;function Yo(i){var l=i&&i.constructor,f=typeof l=="function"&&l.prototype||Ei;return i===f}function vS(i){return i===i&&!rt(i)}function bS(i,l){return function(f){return f==null?!1:f[i]===l&&(l!==n||i in Ge(f))}}function BF(i){var l=sc(i,function(y){return f.size===d&&f.clear(),y}),f=l.cache;return l}function WF(i,l){var f=i[1],y=l[1],w=f|y,M=w<(T|v|R),_=y==R&&f==C||y==R&&f==F&&i[7].length<=l[8]||y==(R|F)&&l[7].length<=l[8]&&f==C;if(!(M||_))return i;y&T&&(i[2]=l[2],w|=f&T?0:A);var D=l[3];if(D){var L=i[3];i[3]=L?nS(L,D,l[4]):D,i[4]=L?Gr(i[3],h):l[4]}return D=l[5],D&&(L=i[5],i[5]=L?rS(L,D,l[6]):D,i[6]=L?Gr(i[5],h):l[6]),D=l[7],D&&(i[7]=D),y&R&&(i[8]=i[8]==null?l[8]:At(i[8],l[8])),i[9]==null&&(i[9]=l[9]),i[0]=l[0],i[1]=w,i}function UF(i){var l=[];if(i!=null)for(var f in Ge(i))l.push(f);return l}function zF(i){return $l.call(i)}function wS(i,l,f){return l=mt(l===n?i.length-1:l,0),function(){for(var y=arguments,w=-1,M=mt(y.length-l,0),_=V(M);++w<M;)_[w]=y[l+w];w=-1;for(var D=V(l+1);++w<l;)D[w]=y[w];return D[l]=f(_),Kt(i,this,D)}}function SS(i,l){return l.length<2?i:Os(i,dn(l,0,-1))}function GF(i,l){for(var f=i.length,y=At(l.length,f),w=Rt(i);y--;){var M=l[y];i[y]=gr(M,f)?w[M]:n}return i}function lm(i,l){if(!(l==="constructor"&&typeof i[l]=="function")&&l!="__proto__")return i[l]}var TS=ES(Yw),Ho=oR||function(i,l){return vt.setTimeout(i,l)},cm=ES(mF);function CS(i,l,f){var y=l+"";return cm(i,jF(y,YF(DF(y),f)))}function ES(i){var l=0,f=0;return function(){var y=uR(),w=oe-(y-f);if(f=y,w>0){if(++l>=le)return arguments[0]}else l=0;return i.apply(n,arguments)}}function ec(i,l){var f=-1,y=i.length,w=y-1;for(l=l===n?y:l;++f<l;){var M=Gh(f,w),_=i[M];i[M]=i[f],i[f]=_}return i.length=l,i}var PS=BF(function(i){var l=[];return i.charCodeAt(0)===46&&l.push(""),i.replace(kj,function(f,y,w,M){l.push(w?M.replace(Uj,"$1"):y||f)}),l});function Wn(i){if(typeof i=="string"||Jt(i))return i;var l=i+"";return l=="0"&&1/i==-1/0?"-0":l}function _s(i){if(i!=null){try{return Ol.call(i)}catch{}try{return i+""}catch{}}return""}function YF(i,l){return ln(Z,function(f){var y="_."+f[0];l&f[1]&&!Cl(i,y)&&i.push(y)}),i.sort()}function AS(i){if(i instanceof ke)return i.clone();var l=new un(i.__wrapped__,i.__chain__);return l.__actions__=Rt(i.__actions__),l.__index__=i.__index__,l.__values__=i.__values__,l}function HF(i,l,f){(f?It(i,l,f):l===n)?l=1:l=mt(Oe(l),0);var y=i==null?0:i.length;if(!y||l<1)return[];for(var w=0,M=0,_=V(jl(y/l));w<y;)_[M++]=dn(i,w,w+=l);return _}function qF(i){for(var l=-1,f=i==null?0:i.length,y=0,w=[];++l<f;){var M=i[l];M&&(w[y++]=M)}return w}function KF(){var i=arguments.length;if(!i)return[];for(var l=V(i-1),f=arguments[0],y=i;y--;)l[y-1]=arguments[y];return zr(Me(f)?Rt(f):[f],bt(l,1))}var XF=_e(function(i,l){return ct(i)?Bo(i,bt(l,1,ct,!0)):[]}),ZF=_e(function(i,l){var f=hn(l);return ct(f)&&(f=n),ct(i)?Bo(i,bt(l,1,ct,!0),be(f,2)):[]}),JF=_e(function(i,l){var f=hn(l);return ct(f)&&(f=n),ct(i)?Bo(i,bt(l,1,ct,!0),n,f):[]});function QF(i,l,f){var y=i==null?0:i.length;return y?(l=f||l===n?1:Oe(l),dn(i,l<0?0:l,y)):[]}function e8(i,l,f){var y=i==null?0:i.length;return y?(l=f||l===n?1:Oe(l),l=y-l,dn(i,0,l<0?0:l)):[]}function t8(i,l){return i&&i.length?Yl(i,be(l,3),!0,!0):[]}function n8(i,l){return i&&i.length?Yl(i,be(l,3),!0):[]}function r8(i,l,f,y){var w=i==null?0:i.length;return w?(f&&typeof f!="number"&&It(i,l,f)&&(f=0,y=w),KR(i,l,f,y)):[]}function MS(i,l,f){var y=i==null?0:i.length;if(!y)return-1;var w=f==null?0:Oe(f);return w<0&&(w=mt(y+w,0)),El(i,be(l,3),w)}function OS(i,l,f){var y=i==null?0:i.length;if(!y)return-1;var w=y-1;return f!==n&&(w=Oe(f),w=f<0?mt(y+w,0):At(w,y-1)),El(i,be(l,3),w,!0)}function $S(i){var l=i==null?0:i.length;return l?bt(i,1):[]}function s8(i){var l=i==null?0:i.length;return l?bt(i,U):[]}function i8(i,l){var f=i==null?0:i.length;return f?(l=l===n?1:Oe(l),bt(i,l)):[]}function o8(i){for(var l=-1,f=i==null?0:i.length,y={};++l<f;){var w=i[l];y[w[0]]=w[1]}return y}function _S(i){return i&&i.length?i[0]:n}function a8(i,l,f){var y=i==null?0:i.length;if(!y)return-1;var w=f==null?0:Oe(f);return w<0&&(w=mt(y+w,0)),wi(i,l,w)}function l8(i){var l=i==null?0:i.length;return l?dn(i,0,-1):[]}var c8=_e(function(i){var l=Je(i,Xh);return l.length&&l[0]===i[0]?Vh(l):[]}),u8=_e(function(i){var l=hn(i),f=Je(i,Xh);return l===hn(f)?l=n:f.pop(),f.length&&f[0]===i[0]?Vh(f,be(l,2)):[]}),f8=_e(function(i){var l=hn(i),f=Je(i,Xh);return l=typeof l=="function"?l:n,l&&f.pop(),f.length&&f[0]===i[0]?Vh(f,n,l):[]});function d8(i,l){return i==null?"":lR.call(i,l)}function hn(i){var l=i==null?0:i.length;return l?i[l-1]:n}function h8(i,l,f){var y=i==null?0:i.length;if(!y)return-1;var w=y;return f!==n&&(w=Oe(f),w=w<0?mt(y+w,0):At(w,y-1)),l===l?YL(i,l,w):El(i,fw,w,!0)}function m8(i,l){return i&&i.length?Ww(i,Oe(l)):n}var p8=_e(IS);function IS(i,l){return i&&i.length&&l&&l.length?zh(i,l):i}function g8(i,l,f){return i&&i.length&&l&&l.length?zh(i,l,be(f,2)):i}function y8(i,l,f){return i&&i.length&&l&&l.length?zh(i,l,n,f):i}var x8=pr(function(i,l){var f=i==null?0:i.length,y=jh(i,l);return Gw(i,Je(l,function(w){return gr(w,f)?+w:w}).sort(tS)),y});function v8(i,l){var f=[];if(!(i&&i.length))return f;var y=-1,w=[],M=i.length;for(l=be(l,3);++y<M;){var _=i[y];l(_,y,i)&&(f.push(_),w.push(y))}return Gw(i,w),f}function um(i){return i==null?i:dR.call(i)}function b8(i,l,f){var y=i==null?0:i.length;return y?(f&&typeof f!="number"&&It(i,l,f)?(l=0,f=y):(l=l==null?0:Oe(l),f=f===n?y:Oe(f)),dn(i,l,f)):[]}function w8(i,l){return Gl(i,l)}function S8(i,l,f){return Hh(i,l,be(f,2))}function T8(i,l){var f=i==null?0:i.length;if(f){var y=Gl(i,l);if(y<f&&wn(i[y],l))return y}return-1}function C8(i,l){return Gl(i,l,!0)}function E8(i,l,f){return Hh(i,l,be(f,2),!0)}function P8(i,l){var f=i==null?0:i.length;if(f){var y=Gl(i,l,!0)-1;if(wn(i[y],l))return y}return-1}function A8(i){return i&&i.length?Hw(i):[]}function M8(i,l){return i&&i.length?Hw(i,be(l,2)):[]}function O8(i){var l=i==null?0:i.length;return l?dn(i,1,l):[]}function $8(i,l,f){return i&&i.length?(l=f||l===n?1:Oe(l),dn(i,0,l<0?0:l)):[]}function _8(i,l,f){var y=i==null?0:i.length;return y?(l=f||l===n?1:Oe(l),l=y-l,dn(i,l<0?0:l,y)):[]}function I8(i,l){return i&&i.length?Yl(i,be(l,3),!1,!0):[]}function D8(i,l){return i&&i.length?Yl(i,be(l,3)):[]}var N8=_e(function(i){return qr(bt(i,1,ct,!0))}),k8=_e(function(i){var l=hn(i);return ct(l)&&(l=n),qr(bt(i,1,ct,!0),be(l,2))}),j8=_e(function(i){var l=hn(i);return l=typeof l=="function"?l:n,qr(bt(i,1,ct,!0),n,l)});function L8(i){return i&&i.length?qr(i):[]}function R8(i,l){return i&&i.length?qr(i,be(l,2)):[]}function F8(i,l){return l=typeof l=="function"?l:n,i&&i.length?qr(i,n,l):[]}function fm(i){if(!(i&&i.length))return[];var l=0;return i=Ur(i,function(f){if(ct(f))return l=mt(f.length,l),!0}),Mh(l,function(f){return Je(i,Eh(f))})}function DS(i,l){if(!(i&&i.length))return[];var f=fm(i);return l==null?f:Je(f,function(y){return Kt(l,n,y)})}var V8=_e(function(i,l){return ct(i)?Bo(i,l):[]}),B8=_e(function(i){return Kh(Ur(i,ct))}),W8=_e(function(i){var l=hn(i);return ct(l)&&(l=n),Kh(Ur(i,ct),be(l,2))}),U8=_e(function(i){var l=hn(i);return l=typeof l=="function"?l:n,Kh(Ur(i,ct),n,l)}),z8=_e(fm);function G8(i,l){return Zw(i||[],l||[],Vo)}function Y8(i,l){return Zw(i||[],l||[],zo)}var H8=_e(function(i){var l=i.length,f=l>1?i[l-1]:n;return f=typeof f=="function"?(i.pop(),f):n,DS(i,f)});function NS(i){var l=P(i);return l.__chain__=!0,l}function q8(i,l){return l(i),i}function tc(i,l){return l(i)}var K8=pr(function(i){var l=i.length,f=l?i[0]:0,y=this.__wrapped__,w=function(M){return jh(M,i)};return l>1||this.__actions__.length||!(y instanceof ke)||!gr(f)?this.thru(w):(y=y.slice(f,+f+(l?1:0)),y.__actions__.push({func:tc,args:[w],thisArg:n}),new un(y,this.__chain__).thru(function(M){return l&&!M.length&&M.push(n),M}))});function X8(){return NS(this)}function Z8(){return new un(this.value(),this.__chain__)}function J8(){this.__values__===n&&(this.__values__=qS(this.value()));var i=this.__index__>=this.__values__.length,l=i?n:this.__values__[this.__index__++];return{done:i,value:l}}function Q8(){return this}function e9(i){for(var l,f=this;f instanceof Vl;){var y=AS(f);y.__index__=0,y.__values__=n,l?w.__wrapped__=y:l=y;var w=y;f=f.__wrapped__}return w.__wrapped__=i,l}function t9(){var i=this.__wrapped__;if(i instanceof ke){var l=i;return this.__actions__.length&&(l=new ke(this)),l=l.reverse(),l.__actions__.push({func:tc,args:[um],thisArg:n}),new un(l,this.__chain__)}return this.thru(um)}function n9(){return Xw(this.__wrapped__,this.__actions__)}var r9=Hl(function(i,l,f){ze.call(i,f)?++i[f]:hr(i,f,1)});function s9(i,l,f){var y=Me(i)?cw:qR;return f&&It(i,l,f)&&(l=n),y(i,be(l,3))}function i9(i,l){var f=Me(i)?Ur:Dw;return f(i,be(l,3))}var o9=aS(MS),a9=aS(OS);function l9(i,l){return bt(nc(i,l),1)}function c9(i,l){return bt(nc(i,l),U)}function u9(i,l,f){return f=f===n?1:Oe(f),bt(nc(i,l),f)}function kS(i,l){var f=Me(i)?ln:Hr;return f(i,be(l,3))}function jS(i,l){var f=Me(i)?OL:Iw;return f(i,be(l,3))}var f9=Hl(function(i,l,f){ze.call(i,f)?i[f].push(l):hr(i,f,[l])});function d9(i,l,f,y){i=Ft(i)?i:Di(i),f=f&&!y?Oe(f):0;var w=i.length;return f<0&&(f=mt(w+f,0)),ac(i)?f<=w&&i.indexOf(l,f)>-1:!!w&&wi(i,l,f)>-1}var h9=_e(function(i,l,f){var y=-1,w=typeof l=="function",M=Ft(i)?V(i.length):[];return Hr(i,function(_){M[++y]=w?Kt(l,_,f):Wo(_,l,f)}),M}),m9=Hl(function(i,l,f){hr(i,f,l)});function nc(i,l){var f=Me(i)?Je:Fw;return f(i,be(l,3))}function p9(i,l,f,y){return i==null?[]:(Me(l)||(l=l==null?[]:[l]),f=y?n:f,Me(f)||(f=f==null?[]:[f]),Uw(i,l,f))}var g9=Hl(function(i,l,f){i[f?0:1].push(l)},function(){return[[],[]]});function y9(i,l,f){var y=Me(i)?Th:hw,w=arguments.length<3;return y(i,be(l,4),f,w,Hr)}function x9(i,l,f){var y=Me(i)?$L:hw,w=arguments.length<3;return y(i,be(l,4),f,w,Iw)}function v9(i,l){var f=Me(i)?Ur:Dw;return f(i,ic(be(l,3)))}function b9(i){var l=Me(i)?Mw:dF;return l(i)}function w9(i,l,f){(f?It(i,l,f):l===n)?l=1:l=Oe(l);var y=Me(i)?UR:hF;return y(i,l)}function S9(i){var l=Me(i)?zR:pF;return l(i)}function T9(i){if(i==null)return 0;if(Ft(i))return ac(i)?Ti(i):i.length;var l=Mt(i);return l==De||l==qt?i.size:Wh(i).length}function C9(i,l,f){var y=Me(i)?Ch:gF;return f&&It(i,l,f)&&(l=n),y(i,be(l,3))}var E9=_e(function(i,l){if(i==null)return[];var f=l.length;return f>1&&It(i,l[0],l[1])?l=[]:f>2&&It(l[0],l[1],l[2])&&(l=[l[0]]),Uw(i,bt(l,1),[])}),rc=iR||function(){return vt.Date.now()};function P9(i,l){if(typeof l!="function")throw new cn(a);return i=Oe(i),function(){if(--i<1)return l.apply(this,arguments)}}function LS(i,l,f){return l=f?n:l,l=i&&l==null?i.length:l,mr(i,R,n,n,n,n,l)}function RS(i,l){var f;if(typeof l!="function")throw new cn(a);return i=Oe(i),function(){return--i>0&&(f=l.apply(this,arguments)),i<=1&&(l=n),f}}var dm=_e(function(i,l,f){var y=T;if(f.length){var w=Gr(f,_i(dm));y|=E}return mr(i,y,l,f,w)}),FS=_e(function(i,l,f){var y=T|v;if(f.length){var w=Gr(f,_i(FS));y|=E}return mr(l,y,i,f,w)});function VS(i,l,f){l=f?n:l;var y=mr(i,C,n,n,n,n,n,l);return y.placeholder=VS.placeholder,y}function BS(i,l,f){l=f?n:l;var y=mr(i,I,n,n,n,n,n,l);return y.placeholder=BS.placeholder,y}function WS(i,l,f){var y,w,M,_,D,L,Y=0,q=!1,Q=!1,de=!0;if(typeof i!="function")throw new cn(a);l=mn(l)||0,rt(f)&&(q=!!f.leading,Q="maxWait"in f,M=Q?mt(mn(f.maxWait)||0,l):M,de="trailing"in f?!!f.trailing:de);function ye(ut){var Sn=y,vr=w;return y=w=n,Y=ut,_=i.apply(vr,Sn),_}function Te(ut){return Y=ut,D=Ho(Ne,l),q?ye(ut):_}function $e(ut){var Sn=ut-L,vr=ut-Y,aT=l-Sn;return Q?At(aT,M-vr):aT}function Ce(ut){var Sn=ut-L,vr=ut-Y;return L===n||Sn>=l||Sn<0||Q&&vr>=M}function Ne(){var ut=rc();if(Ce(ut))return je(ut);D=Ho(Ne,$e(ut))}function je(ut){return D=n,de&&y?ye(ut):(y=w=n,_)}function Qt(){D!==n&&Jw(D),Y=0,y=L=w=D=n}function Dt(){return D===n?_:je(rc())}function en(){var ut=rc(),Sn=Ce(ut);if(y=arguments,w=this,L=ut,Sn){if(D===n)return Te(L);if(Q)return Jw(D),D=Ho(Ne,l),ye(L)}return D===n&&(D=Ho(Ne,l)),_}return en.cancel=Qt,en.flush=Dt,en}var A9=_e(function(i,l){return _w(i,1,l)}),M9=_e(function(i,l,f){return _w(i,mn(l)||0,f)});function O9(i){return mr(i,G)}function sc(i,l){if(typeof i!="function"||l!=null&&typeof l!="function")throw new cn(a);var f=function(){var y=arguments,w=l?l.apply(this,y):y[0],M=f.cache;if(M.has(w))return M.get(w);var _=i.apply(this,y);return f.cache=M.set(w,_)||M,_};return f.cache=new(sc.Cache||dr),f}sc.Cache=dr;function ic(i){if(typeof i!="function")throw new cn(a);return function(){var l=arguments;switch(l.length){case 0:return!i.call(this);case 1:return!i.call(this,l[0]);case 2:return!i.call(this,l[0],l[1]);case 3:return!i.call(this,l[0],l[1],l[2])}return!i.apply(this,l)}}function $9(i){return RS(2,i)}var _9=yF(function(i,l){l=l.length==1&&Me(l[0])?Je(l[0],Xt(be())):Je(bt(l,1),Xt(be()));var f=l.length;return _e(function(y){for(var w=-1,M=At(y.length,f);++w<M;)y[w]=l[w].call(this,y[w]);return Kt(i,this,y)})}),hm=_e(function(i,l){var f=Gr(l,_i(hm));return mr(i,E,n,l,f)}),US=_e(function(i,l){var f=Gr(l,_i(US));return mr(i,N,n,l,f)}),I9=pr(function(i,l){return mr(i,F,n,n,n,l)});function D9(i,l){if(typeof i!="function")throw new cn(a);return l=l===n?l:Oe(l),_e(i,l)}function N9(i,l){if(typeof i!="function")throw new cn(a);return l=l==null?0:mt(Oe(l),0),_e(function(f){var y=f[l],w=Xr(f,0,l);return y&&zr(w,y),Kt(i,this,w)})}function k9(i,l,f){var y=!0,w=!0;if(typeof i!="function")throw new cn(a);return rt(f)&&(y="leading"in f?!!f.leading:y,w="trailing"in f?!!f.trailing:w),WS(i,l,{leading:y,maxWait:l,trailing:w})}function j9(i){return LS(i,1)}function L9(i,l){return hm(Zh(l),i)}function R9(){if(!arguments.length)return[];var i=arguments[0];return Me(i)?i:[i]}function F9(i){return fn(i,x)}function V9(i,l){return l=typeof l=="function"?l:n,fn(i,x,l)}function B9(i){return fn(i,m|x)}function W9(i,l){return l=typeof l=="function"?l:n,fn(i,m|x,l)}function U9(i,l){return l==null||$w(i,l,gt(l))}function wn(i,l){return i===l||i!==i&&l!==l}var z9=Zl(Fh),G9=Zl(function(i,l){return i>=l}),Is=jw(function(){return arguments}())?jw:function(i){return ot(i)&&ze.call(i,"callee")&&!Sw.call(i,"callee")},Me=V.isArray,Y9=rw?Xt(rw):eF;function Ft(i){return i!=null&&oc(i.length)&&!yr(i)}function ct(i){return ot(i)&&Ft(i)}function H9(i){return i===!0||i===!1||ot(i)&&_t(i)==se}var Zr=aR||Cm,q9=sw?Xt(sw):tF;function K9(i){return ot(i)&&i.nodeType===1&&!qo(i)}function X9(i){if(i==null)return!0;if(Ft(i)&&(Me(i)||typeof i=="string"||typeof i.splice=="function"||Zr(i)||Ii(i)||Is(i)))return!i.length;var l=Mt(i);if(l==De||l==qt)return!i.size;if(Yo(i))return!Wh(i).length;for(var f in i)if(ze.call(i,f))return!1;return!0}function Z9(i,l){return Uo(i,l)}function J9(i,l,f){f=typeof f=="function"?f:n;var y=f?f(i,l):n;return y===n?Uo(i,l,n,f):!!y}function mm(i){if(!ot(i))return!1;var l=_t(i);return l==Be||l==Ee||typeof i.message=="string"&&typeof i.name=="string"&&!qo(i)}function Q9(i){return typeof i=="number"&&Cw(i)}function yr(i){if(!rt(i))return!1;var l=_t(i);return l==ie||l==ge||l==ae||l==xl}function zS(i){return typeof i=="number"&&i==Oe(i)}function oc(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=W}function rt(i){var l=typeof i;return i!=null&&(l=="object"||l=="function")}function ot(i){return i!=null&&typeof i=="object"}var GS=iw?Xt(iw):rF;function eV(i,l){return i===l||Bh(i,l,sm(l))}function tV(i,l,f){return f=typeof f=="function"?f:n,Bh(i,l,sm(l),f)}function nV(i){return YS(i)&&i!=+i}function rV(i){if(VF(i))throw new Ae(o);return Lw(i)}function sV(i){return i===null}function iV(i){return i==null}function YS(i){return typeof i=="number"||ot(i)&&_t(i)==ft}function qo(i){if(!ot(i)||_t(i)!=dt)return!1;var l=Dl(i);if(l===null)return!0;var f=ze.call(l,"constructor")&&l.constructor;return typeof f=="function"&&f instanceof f&&Ol.call(f)==tR}var pm=ow?Xt(ow):sF;function oV(i){return zS(i)&&i>=-9007199254740991&&i<=W}var HS=aw?Xt(aw):iF;function ac(i){return typeof i=="string"||!Me(i)&&ot(i)&&_t(i)==yn}function Jt(i){return typeof i=="symbol"||ot(i)&&_t(i)==Ts}var Ii=lw?Xt(lw):oF;function aV(i){return i===n}function lV(i){return ot(i)&&Mt(i)==Wr}function cV(i){return ot(i)&&_t(i)==bl}var uV=Zl(Uh),fV=Zl(function(i,l){return i<=l});function qS(i){if(!i)return[];if(Ft(i))return ac(i)?vn(i):Rt(i);if(ko&&i[ko])return UL(i[ko]());var l=Mt(i),f=l==De?$h:l==qt?Pl:Di;return f(i)}function xr(i){if(!i)return i===0?i:0;if(i=mn(i),i===U||i===-1/0){var l=i<0?-1:1;return l*K}return i===i?i:0}function Oe(i){var l=xr(i),f=l%1;return l===l?f?l-f:l:0}function KS(i){return i?Ms(Oe(i),0,k):0}function mn(i){if(typeof i=="number")return i;if(Jt(i))return $;if(rt(i)){var l=typeof i.valueOf=="function"?i.valueOf():i;i=rt(l)?l+"":l}if(typeof i!="string")return i===0?i:+i;i=mw(i);var f=Yj.test(i);return f||qj.test(i)?PL(i.slice(2),f?2:8):Gj.test(i)?$:+i}function XS(i){return Bn(i,Vt(i))}function dV(i){return i?Ms(Oe(i),-9007199254740991,W):i===0?i:0}function We(i){return i==null?"":Zt(i)}var hV=Oi(function(i,l){if(Yo(l)||Ft(l)){Bn(l,gt(l),i);return}for(var f in l)ze.call(l,f)&&Vo(i,f,l[f])}),ZS=Oi(function(i,l){Bn(l,Vt(l),i)}),lc=Oi(function(i,l,f,y){Bn(l,Vt(l),i,y)}),mV=Oi(function(i,l,f,y){Bn(l,gt(l),i,y)}),pV=pr(jh);function gV(i,l){var f=Mi(i);return l==null?f:Ow(f,l)}var yV=_e(function(i,l){i=Ge(i);var f=-1,y=l.length,w=y>2?l[2]:n;for(w&&It(l[0],l[1],w)&&(y=1);++f<y;)for(var M=l[f],_=Vt(M),D=-1,L=_.length;++D<L;){var Y=_[D],q=i[Y];(q===n||wn(q,Ei[Y])&&!ze.call(i,Y))&&(i[Y]=M[Y])}return i}),xV=_e(function(i){return i.push(n,mS),Kt(JS,n,i)});function vV(i,l){return uw(i,be(l,3),Vn)}function bV(i,l){return uw(i,be(l,3),Rh)}function wV(i,l){return i==null?i:Lh(i,be(l,3),Vt)}function SV(i,l){return i==null?i:Nw(i,be(l,3),Vt)}function TV(i,l){return i&&Vn(i,be(l,3))}function CV(i,l){return i&&Rh(i,be(l,3))}function EV(i){return i==null?[]:Ul(i,gt(i))}function PV(i){return i==null?[]:Ul(i,Vt(i))}function gm(i,l,f){var y=i==null?n:Os(i,l);return y===n?f:y}function AV(i,l){return i!=null&&yS(i,l,XR)}function ym(i,l){return i!=null&&yS(i,l,ZR)}var MV=cS(function(i,l,f){l!=null&&typeof l.toString!="function"&&(l=$l.call(l)),i[l]=f},vm(Bt)),OV=cS(function(i,l,f){l!=null&&typeof l.toString!="function"&&(l=$l.call(l)),ze.call(i,l)?i[l].push(f):i[l]=[f]},be),$V=_e(Wo);function gt(i){return Ft(i)?Aw(i):Wh(i)}function Vt(i){return Ft(i)?Aw(i,!0):aF(i)}function _V(i,l){var f={};return l=be(l,3),Vn(i,function(y,w,M){hr(f,l(y,w,M),y)}),f}function IV(i,l){var f={};return l=be(l,3),Vn(i,function(y,w,M){hr(f,w,l(y,w,M))}),f}var DV=Oi(function(i,l,f){zl(i,l,f)}),JS=Oi(function(i,l,f,y){zl(i,l,f,y)}),NV=pr(function(i,l){var f={};if(i==null)return f;var y=!1;l=Je(l,function(M){return M=Kr(M,i),y||(y=M.length>1),M}),Bn(i,nm(i),f),y&&(f=fn(f,m|p|x,MF));for(var w=l.length;w--;)qh(f,l[w]);return f});function kV(i,l){return QS(i,ic(be(l)))}var jV=pr(function(i,l){return i==null?{}:cF(i,l)});function QS(i,l){if(i==null)return{};var f=Je(nm(i),function(y){return[y]});return l=be(l),zw(i,f,function(y,w){return l(y,w[0])})}function LV(i,l,f){l=Kr(l,i);var y=-1,w=l.length;for(w||(w=1,i=n);++y<w;){var M=i==null?n:i[Wn(l[y])];M===n&&(y=w,M=f),i=yr(M)?M.call(i):M}return i}function RV(i,l,f){return i==null?i:zo(i,l,f)}function FV(i,l,f,y){return y=typeof y=="function"?y:n,i==null?i:zo(i,l,f,y)}var eT=dS(gt),tT=dS(Vt);function VV(i,l,f){var y=Me(i),w=y||Zr(i)||Ii(i);if(l=be(l,4),f==null){var M=i&&i.constructor;w?f=y?new M:[]:rt(i)?f=yr(M)?Mi(Dl(i)):{}:f={}}return(w?ln:Vn)(i,function(_,D,L){return l(f,_,D,L)}),f}function BV(i,l){return i==null?!0:qh(i,l)}function WV(i,l,f){return i==null?i:Kw(i,l,Zh(f))}function UV(i,l,f,y){return y=typeof y=="function"?y:n,i==null?i:Kw(i,l,Zh(f),y)}function Di(i){return i==null?[]:Oh(i,gt(i))}function zV(i){return i==null?[]:Oh(i,Vt(i))}function GV(i,l,f){return f===n&&(f=l,l=n),f!==n&&(f=mn(f),f=f===f?f:0),l!==n&&(l=mn(l),l=l===l?l:0),Ms(mn(i),l,f)}function YV(i,l,f){return l=xr(l),f===n?(f=l,l=0):f=xr(f),i=mn(i),JR(i,l,f)}function HV(i,l,f){if(f&&typeof f!="boolean"&&It(i,l,f)&&(l=f=n),f===n&&(typeof l=="boolean"?(f=l,l=n):typeof i=="boolean"&&(f=i,i=n)),i===n&&l===n?(i=0,l=1):(i=xr(i),l===n?(l=i,i=0):l=xr(l)),i>l){var y=i;i=l,l=y}if(f||i%1||l%1){var w=Ew();return At(i+w*(l-i+EL("1e-"+((w+"").length-1))),l)}return Gh(i,l)}var qV=$i(function(i,l,f){return l=l.toLowerCase(),i+(f?nT(l):l)});function nT(i){return xm(We(i).toLowerCase())}function rT(i){return i=We(i),i&&i.replace(Xj,RL).replace(pL,"")}function KV(i,l,f){i=We(i),l=Zt(l);var y=i.length;f=f===n?y:Ms(Oe(f),0,y);var w=f;return f-=l.length,f>=0&&i.slice(f,w)==l}function XV(i){return i=We(i),i&&$j.test(i)?i.replace(N2,FL):i}function ZV(i){return i=We(i),i&&jj.test(i)?i.replace(hh,"\\$&"):i}var JV=$i(function(i,l,f){return i+(f?"-":"")+l.toLowerCase()}),QV=$i(function(i,l,f){return i+(f?" ":"")+l.toLowerCase()}),e7=oS("toLowerCase");function t7(i,l,f){i=We(i),l=Oe(l);var y=l?Ti(i):0;if(!l||y>=l)return i;var w=(l-y)/2;return Xl(Ll(w),f)+i+Xl(jl(w),f)}function n7(i,l,f){i=We(i),l=Oe(l);var y=l?Ti(i):0;return l&&y<l?i+Xl(l-y,f):i}function r7(i,l,f){i=We(i),l=Oe(l);var y=l?Ti(i):0;return l&&y<l?Xl(l-y,f)+i:i}function s7(i,l,f){return f||l==null?l=0:l&&(l=+l),fR(We(i).replace(mh,""),l||0)}function i7(i,l,f){return(f?It(i,l,f):l===n)?l=1:l=Oe(l),Yh(We(i),l)}function o7(){var i=arguments,l=We(i[0]);return i.length<3?l:l.replace(i[1],i[2])}var a7=$i(function(i,l,f){return i+(f?"_":"")+l.toLowerCase()});function l7(i,l,f){return f&&typeof f!="number"&&It(i,l,f)&&(l=f=n),f=f===n?k:f>>>0,f?(i=We(i),i&&(typeof l=="string"||l!=null&&!pm(l))&&(l=Zt(l),!l&&Si(i))?Xr(vn(i),0,f):i.split(l,f)):[]}var c7=$i(function(i,l,f){return i+(f?" ":"")+xm(l)});function u7(i,l,f){return i=We(i),f=f==null?0:Ms(Oe(f),0,i.length),l=Zt(l),i.slice(f,f+l.length)==l}function f7(i,l,f){var y=P.templateSettings;f&&It(i,l,f)&&(l=n),i=We(i),l=lc({},l,y,hS);var w=lc({},l.imports,y.imports,hS),M=gt(w),_=Oh(w,M),D,L,Y=0,q=l.interpolate||wl,Q="__p += '",de=_h((l.escape||wl).source+"|"+q.source+"|"+(q===k2?zj:wl).source+"|"+(l.evaluate||wl).source+"|$","g"),ye="//# sourceURL="+(ze.call(l,"sourceURL")?(l.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++bL+"]")+`
|
|
635
635
|
`;i.replace(de,function(Ce,Ne,je,Qt,Dt,en){return je||(je=Qt),Q+=i.slice(Y,en).replace(Zj,VL),Ne&&(D=!0,Q+=`' +
|
|
@@ -648,11 +648,11 @@ __p += '`),je&&(Q+=`' +
|
|
|
648
648
|
function print() { __p += __j.call(arguments, '') }
|
|
649
649
|
`:`;
|
|
650
650
|
`)+Q+`return __p
|
|
651
|
-
}`;var $e=iT(function(){return Le(M,ye+"return "+Q).apply(n,_)});if($e.source=Q,mm($e))throw $e;return $e}function d7(i){return We(i).toLowerCase()}function h7(i){return We(i).toUpperCase()}function m7(i,l,f){if(i=We(i),i&&(f||l===n))return mw(i);if(!i||!(l=Zt(l)))return i;var y=vn(i),w=vn(l),M=pw(y,w),_=gw(y,w)+1;return Xr(y,M,_).join("")}function p7(i,l,f){if(i=We(i),i&&(f||l===n))return i.slice(0,xw(i)+1);if(!i||!(l=Zt(l)))return i;var y=vn(i),w=gw(y,vn(l))+1;return Xr(y,0,w).join("")}function g7(i,l,f){if(i=We(i),i&&(f||l===n))return i.replace(mh,"");if(!i||!(l=Zt(l)))return i;var y=vn(i),w=pw(y,vn(l));return Xr(y,w).join("")}function y7(i,l){var f=re,y=ee;if(rt(l)){var w="separator"in l?l.separator:w;f="length"in l?Oe(l.length):f,y="omission"in l?Zt(l.omission):y}i=We(i);var M=i.length;if(Si(i)){var _=vn(i);M=_.length}if(f>=M)return i;var D=f-Ti(y);if(D<1)return y;var L=_?Xr(_,0,D).join(""):i.slice(0,D);if(w===n)return L+y;if(_&&(D+=L.length-D),pm(w)){if(i.slice(D).search(w)){var Y,q=L;for(w.global||(w=_h(w.source,We(j2.exec(w))+"g")),w.lastIndex=0;Y=w.exec(q);)var Q=Y.index;L=L.slice(0,Q===n?D:Q)}}else if(i.indexOf(Zt(w),D)!=D){var de=L.lastIndexOf(w);de>-1&&(L=L.slice(0,de))}return L+y}function x7(i){return i=We(i),i&&Oj.test(i)?i.replace(D2,HL):i}var v7=$i(function(i,l,f){return i+(f?" ":"")+l.toUpperCase()}),xm=oS("toUpperCase");function sT(i,l,f){return i=We(i),l=f?n:l,l===n?WL(i)?XL(i):DL(i):i.match(l)||[]}var iT=_e(function(i,l){try{return Kt(i,n,l)}catch(f){return mm(f)?f:new Ae(f)}}),b7=pr(function(i,l){return ln(l,function(f){f=Wn(f),hr(i,f,dm(i[f],i))}),i});function w7(i){var l=i==null?0:i.length,f=be();return i=l?Je(i,function(y){if(typeof y[1]!="function")throw new cn(a);return[f(y[0]),y[1]]}):[],_e(function(y){for(var w=-1;++w<l;){var M=i[w];if(Kt(M[0],this,y))return Kt(M[1],this,y)}})}function S7(i){return HR(fn(i,m))}function vm(i){return function(){return i}}function T7(i,l){return i==null||i!==i?l:i}var C7=lS(),E7=lS(!0);function Bt(i){return i}function bm(i){return Rw(typeof i=="function"?i:fn(i,m))}function P7(i){return Vw(fn(i,m))}function A7(i,l){return Bw(i,fn(l,m))}var M7=_e(function(i,l){return function(f){return Wo(f,i,l)}}),O7=_e(function(i,l){return function(f){return Wo(i,f,l)}});function wm(i,l,f){var y=gt(l),w=Ul(l,y);f==null&&!(rt(l)&&(w.length||!y.length))&&(f=l,l=i,i=this,w=Ul(l,gt(l)));var M=!(rt(f)&&"chain"in f)||!!f.chain,_=yr(i);return ln(w,function(D){var L=l[D];i[D]=L,_&&(i.prototype[D]=function(){var Y=this.__chain__;if(M||Y){var q=i(this.__wrapped__),Q=q.__actions__=Rt(this.__actions__);return Q.push({func:L,args:arguments,thisArg:i}),q.__chain__=Y,q}return L.apply(i,zr([this.value()],arguments))})}),i}function $7(){return vt._===this&&(vt._=nR),this}function Sm(){}function _7(i){return i=Oe(i),_e(function(l){return Ww(l,i)})}var I7=Qh(Je),D7=Qh(cw),N7=Qh(Ch);function oT(i){return om(i)?Eh(Wn(i)):uF(i)}function k7(i){return function(l){return i==null?n:Os(i,l)}}var j7=uS(),L7=uS(!0);function Tm(){return[]}function Cm(){return!1}function R7(){return{}}function F7(){return""}function V7(){return!0}function B7(i,l){if(i=Oe(i),i<1||i>W)return[];var f=k,y=At(i,k);l=be(l),i-=k;for(var w=Mh(y,l);++f<i;)l(f);return w}function W7(i){return Me(i)?Je(i,Wn):Jt(i)?[i]:Rt(PS(We(i)))}function U7(i){var l=++eR;return We(i)+l}var z7=Kl(function(i,l){return i+l},0),G7=em("ceil"),Y7=Kl(function(i,l){return i/l},1),H7=em("floor");function q7(i){return i&&i.length?Wl(i,Bt,Fh):n}function K7(i,l){return i&&i.length?Wl(i,be(l,2),Fh):n}function X7(i){return dw(i,Bt)}function Z7(i,l){return dw(i,be(l,2))}function J7(i){return i&&i.length?Wl(i,Bt,Uh):n}function Q7(i,l){return i&&i.length?Wl(i,be(l,2),Uh):n}var eB=Kl(function(i,l){return i*l},1),tB=em("round"),nB=Kl(function(i,l){return i-l},0);function rB(i){return i&&i.length?Ah(i,Bt):0}function sB(i,l){return i&&i.length?Ah(i,be(l,2)):0}return P.after=P9,P.ary=LS,P.assign=hV,P.assignIn=ZS,P.assignInWith=lc,P.assignWith=mV,P.at=pV,P.before=RS,P.bind=dm,P.bindAll=b7,P.bindKey=FS,P.castArray=R9,P.chain=NS,P.chunk=HF,P.compact=qF,P.concat=KF,P.cond=w7,P.conforms=S7,P.constant=vm,P.countBy=r9,P.create=gV,P.curry=VS,P.curryRight=BS,P.debounce=WS,P.defaults=yV,P.defaultsDeep=xV,P.defer=A9,P.delay=M9,P.difference=XF,P.differenceBy=ZF,P.differenceWith=JF,P.drop=QF,P.dropRight=e8,P.dropRightWhile=t8,P.dropWhile=n8,P.fill=r8,P.filter=i9,P.flatMap=l9,P.flatMapDeep=c9,P.flatMapDepth=u9,P.flatten=$S,P.flattenDeep=s8,P.flattenDepth=i8,P.flip=O9,P.flow=C7,P.flowRight=E7,P.fromPairs=o8,P.functions=EV,P.functionsIn=PV,P.groupBy=f9,P.initial=l8,P.intersection=c8,P.intersectionBy=u8,P.intersectionWith=f8,P.invert=MV,P.invertBy=OV,P.invokeMap=h9,P.iteratee=bm,P.keyBy=m9,P.keys=gt,P.keysIn=Vt,P.map=nc,P.mapKeys=_V,P.mapValues=IV,P.matches=P7,P.matchesProperty=A7,P.memoize=sc,P.merge=DV,P.mergeWith=JS,P.method=M7,P.methodOf=O7,P.mixin=wm,P.negate=ic,P.nthArg=_7,P.omit=NV,P.omitBy=kV,P.once=$9,P.orderBy=p9,P.over=I7,P.overArgs=_9,P.overEvery=D7,P.overSome=N7,P.partial=hm,P.partialRight=US,P.partition=g9,P.pick=jV,P.pickBy=QS,P.property=oT,P.propertyOf=k7,P.pull=p8,P.pullAll=IS,P.pullAllBy=g8,P.pullAllWith=y8,P.pullAt=x8,P.range=j7,P.rangeRight=L7,P.rearg=I9,P.reject=v9,P.remove=v8,P.rest=D9,P.reverse=um,P.sampleSize=w9,P.set=RV,P.setWith=FV,P.shuffle=S9,P.slice=b8,P.sortBy=E9,P.sortedUniq=A8,P.sortedUniqBy=M8,P.split=l7,P.spread=N9,P.tail=O8,P.take=$8,P.takeRight=_8,P.takeRightWhile=I8,P.takeWhile=D8,P.tap=q8,P.throttle=k9,P.thru=tc,P.toArray=qS,P.toPairs=eT,P.toPairsIn=tT,P.toPath=W7,P.toPlainObject=XS,P.transform=VV,P.unary=j9,P.union=N8,P.unionBy=k8,P.unionWith=j8,P.uniq=L8,P.uniqBy=R8,P.uniqWith=F8,P.unset=BV,P.unzip=fm,P.unzipWith=DS,P.update=WV,P.updateWith=UV,P.values=Di,P.valuesIn=zV,P.without=V8,P.words=sT,P.wrap=L9,P.xor=B8,P.xorBy=W8,P.xorWith=U8,P.zip=z8,P.zipObject=G8,P.zipObjectDeep=Y8,P.zipWith=H8,P.entries=eT,P.entriesIn=tT,P.extend=ZS,P.extendWith=lc,wm(P,P),P.add=z7,P.attempt=iT,P.camelCase=qV,P.capitalize=nT,P.ceil=G7,P.clamp=GV,P.clone=F9,P.cloneDeep=B9,P.cloneDeepWith=W9,P.cloneWith=V9,P.conformsTo=U9,P.deburr=rT,P.defaultTo=T7,P.divide=Y7,P.endsWith=KV,P.eq=wn,P.escape=XV,P.escapeRegExp=ZV,P.every=s9,P.find=o9,P.findIndex=MS,P.findKey=vV,P.findLast=a9,P.findLastIndex=OS,P.findLastKey=bV,P.floor=H7,P.forEach=kS,P.forEachRight=jS,P.forIn=wV,P.forInRight=SV,P.forOwn=TV,P.forOwnRight=CV,P.get=gm,P.gt=z9,P.gte=G9,P.has=AV,P.hasIn=ym,P.head=_S,P.identity=Bt,P.includes=d9,P.indexOf=a8,P.inRange=YV,P.invoke=$V,P.isArguments=Is,P.isArray=Me,P.isArrayBuffer=Y9,P.isArrayLike=Ft,P.isArrayLikeObject=ct,P.isBoolean=H9,P.isBuffer=Zr,P.isDate=q9,P.isElement=K9,P.isEmpty=X9,P.isEqual=Z9,P.isEqualWith=J9,P.isError=mm,P.isFinite=Q9,P.isFunction=yr,P.isInteger=zS,P.isLength=oc,P.isMap=GS,P.isMatch=eV,P.isMatchWith=tV,P.isNaN=nV,P.isNative=rV,P.isNil=iV,P.isNull=sV,P.isNumber=YS,P.isObject=rt,P.isObjectLike=ot,P.isPlainObject=qo,P.isRegExp=pm,P.isSafeInteger=oV,P.isSet=HS,P.isString=ac,P.isSymbol=Jt,P.isTypedArray=Ii,P.isUndefined=aV,P.isWeakMap=lV,P.isWeakSet=cV,P.join=d8,P.kebabCase=JV,P.last=hn,P.lastIndexOf=h8,P.lowerCase=QV,P.lowerFirst=e7,P.lt=uV,P.lte=fV,P.max=q7,P.maxBy=K7,P.mean=X7,P.meanBy=Z7,P.min=J7,P.minBy=Q7,P.stubArray=Tm,P.stubFalse=Cm,P.stubObject=R7,P.stubString=F7,P.stubTrue=V7,P.multiply=eB,P.nth=m8,P.noConflict=$7,P.noop=Sm,P.now=rc,P.pad=t7,P.padEnd=n7,P.padStart=r7,P.parseInt=s7,P.random=HV,P.reduce=y9,P.reduceRight=x9,P.repeat=i7,P.replace=o7,P.result=LV,P.round=tB,P.runInContext=j,P.sample=b9,P.size=T9,P.snakeCase=a7,P.some=C9,P.sortedIndex=w8,P.sortedIndexBy=S8,P.sortedIndexOf=T8,P.sortedLastIndex=C8,P.sortedLastIndexBy=E8,P.sortedLastIndexOf=P8,P.startCase=c7,P.startsWith=u7,P.subtract=nB,P.sum=rB,P.sumBy=sB,P.template=f7,P.times=B7,P.toFinite=xr,P.toInteger=Oe,P.toLength=KS,P.toLower=d7,P.toNumber=mn,P.toSafeInteger=dV,P.toString=We,P.toUpper=h7,P.trim=m7,P.trimEnd=p7,P.trimStart=g7,P.truncate=y7,P.unescape=x7,P.uniqueId=U7,P.upperCase=v7,P.upperFirst=xm,P.each=kS,P.eachRight=jS,P.first=_S,wm(P,function(){var i={};return Vn(P,function(l,f){ze.call(P.prototype,f)||(i[f]=l)}),i}(),{chain:!1}),P.VERSION=r,ln(["bind","bindKey","curry","curryRight","partial","partialRight"],function(i){P[i].placeholder=P}),ln(["drop","take"],function(i,l){ke.prototype[i]=function(f){f=f===n?1:mt(Oe(f),0);var y=this.__filtered__&&!l?new ke(this):this.clone();return y.__filtered__?y.__takeCount__=At(f,y.__takeCount__):y.__views__.push({size:At(f,k),type:i+(y.__dir__<0?"Right":"")}),y},ke.prototype[i+"Right"]=function(f){return this.reverse()[i](f).reverse()}}),ln(["filter","map","takeWhile"],function(i,l){var f=l+1,y=f==ue||f==fe;ke.prototype[i]=function(w){var M=this.clone();return M.__iteratees__.push({iteratee:be(w,3),type:f}),M.__filtered__=M.__filtered__||y,M}}),ln(["head","last"],function(i,l){var f="take"+(l?"Right":"");ke.prototype[i]=function(){return this[f](1).value()[0]}}),ln(["initial","tail"],function(i,l){var f="drop"+(l?"":"Right");ke.prototype[i]=function(){return this.__filtered__?new ke(this):this[f](1)}}),ke.prototype.compact=function(){return this.filter(Bt)},ke.prototype.find=function(i){return this.filter(i).head()},ke.prototype.findLast=function(i){return this.reverse().find(i)},ke.prototype.invokeMap=_e(function(i,l){return typeof i=="function"?new ke(this):this.map(function(f){return Wo(f,i,l)})}),ke.prototype.reject=function(i){return this.filter(ic(be(i)))},ke.prototype.slice=function(i,l){i=Oe(i);var f=this;return f.__filtered__&&(i>0||l<0)?new ke(f):(i<0?f=f.takeRight(-i):i&&(f=f.drop(i)),l!==n&&(l=Oe(l),f=l<0?f.dropRight(-l):f.take(l-i)),f)},ke.prototype.takeRightWhile=function(i){return this.reverse().takeWhile(i).reverse()},ke.prototype.toArray=function(){return this.take(k)},Vn(ke.prototype,function(i,l){var f=/^(?:filter|find|map|reject)|While$/.test(l),y=/^(?:head|last)$/.test(l),w=P[y?"take"+(l=="last"?"Right":""):l],M=y||/^find/.test(l);w&&(P.prototype[l]=function(){var _=this.__wrapped__,D=y?[1]:arguments,L=_ instanceof ke,Y=D[0],q=L||Me(_),Q=function(Ne){var je=w.apply(P,zr([Ne],D));return y&&de?je[0]:je};q&&f&&typeof Y=="function"&&Y.length!=1&&(L=q=!1);var de=this.__chain__,ye=!!this.__actions__.length,Te=M&&!de,$e=L&&!ye;if(!M&&q){_=$e?_:new ke(this);var Ce=i.apply(_,D);return Ce.__actions__.push({func:tc,args:[Q],thisArg:n}),new un(Ce,de)}return Te&&$e?i.apply(this,D):(Ce=this.thru(Q),Te?y?Ce.value()[0]:Ce.value():Ce)})}),ln(["pop","push","shift","sort","splice","unshift"],function(i){var l=Al[i],f=/^(?:push|sort|unshift)$/.test(i)?"tap":"thru",y=/^(?:pop|shift)$/.test(i);P.prototype[i]=function(){var w=arguments;if(y&&!this.__chain__){var M=this.value();return l.apply(Me(M)?M:[],w)}return this[f](function(_){return l.apply(Me(_)?_:[],w)})}}),Vn(ke.prototype,function(i,l){var f=P[l];if(f){var y=f.name+"";ze.call(Ai,y)||(Ai[y]=[]),Ai[y].push({name:l,func:f})}}),Ai[ql(n,v).name]=[{name:"wrapper",func:n}],ke.prototype.clone=xR,ke.prototype.reverse=vR,ke.prototype.value=bR,P.prototype.at=K8,P.prototype.chain=X8,P.prototype.commit=Z8,P.prototype.next=J8,P.prototype.plant=e9,P.prototype.reverse=t9,P.prototype.toJSON=P.prototype.valueOf=P.prototype.value=n9,P.prototype.first=P.prototype.head,ko&&(P.prototype[ko]=Q8),P},Ci=ZL();Cs?((Cs.exports=Ci)._=Ci,bh._=Ci):vt._=Ci}).call(o5)}(uo,uo.exports)),uo.exports}var hf=a5();/*!
|
|
651
|
+
}`;var $e=iT(function(){return Le(M,ye+"return "+Q).apply(n,_)});if($e.source=Q,mm($e))throw $e;return $e}function d7(i){return We(i).toLowerCase()}function h7(i){return We(i).toUpperCase()}function m7(i,l,f){if(i=We(i),i&&(f||l===n))return mw(i);if(!i||!(l=Zt(l)))return i;var y=vn(i),w=vn(l),M=pw(y,w),_=gw(y,w)+1;return Xr(y,M,_).join("")}function p7(i,l,f){if(i=We(i),i&&(f||l===n))return i.slice(0,xw(i)+1);if(!i||!(l=Zt(l)))return i;var y=vn(i),w=gw(y,vn(l))+1;return Xr(y,0,w).join("")}function g7(i,l,f){if(i=We(i),i&&(f||l===n))return i.replace(mh,"");if(!i||!(l=Zt(l)))return i;var y=vn(i),w=pw(y,vn(l));return Xr(y,w).join("")}function y7(i,l){var f=re,y=ee;if(rt(l)){var w="separator"in l?l.separator:w;f="length"in l?Oe(l.length):f,y="omission"in l?Zt(l.omission):y}i=We(i);var M=i.length;if(Si(i)){var _=vn(i);M=_.length}if(f>=M)return i;var D=f-Ti(y);if(D<1)return y;var L=_?Xr(_,0,D).join(""):i.slice(0,D);if(w===n)return L+y;if(_&&(D+=L.length-D),pm(w)){if(i.slice(D).search(w)){var Y,q=L;for(w.global||(w=_h(w.source,We(j2.exec(w))+"g")),w.lastIndex=0;Y=w.exec(q);)var Q=Y.index;L=L.slice(0,Q===n?D:Q)}}else if(i.indexOf(Zt(w),D)!=D){var de=L.lastIndexOf(w);de>-1&&(L=L.slice(0,de))}return L+y}function x7(i){return i=We(i),i&&Oj.test(i)?i.replace(D2,HL):i}var v7=$i(function(i,l,f){return i+(f?" ":"")+l.toUpperCase()}),xm=oS("toUpperCase");function sT(i,l,f){return i=We(i),l=f?n:l,l===n?WL(i)?XL(i):DL(i):i.match(l)||[]}var iT=_e(function(i,l){try{return Kt(i,n,l)}catch(f){return mm(f)?f:new Ae(f)}}),b7=pr(function(i,l){return ln(l,function(f){f=Wn(f),hr(i,f,dm(i[f],i))}),i});function w7(i){var l=i==null?0:i.length,f=be();return i=l?Je(i,function(y){if(typeof y[1]!="function")throw new cn(a);return[f(y[0]),y[1]]}):[],_e(function(y){for(var w=-1;++w<l;){var M=i[w];if(Kt(M[0],this,y))return Kt(M[1],this,y)}})}function S7(i){return HR(fn(i,m))}function vm(i){return function(){return i}}function T7(i,l){return i==null||i!==i?l:i}var C7=lS(),E7=lS(!0);function Bt(i){return i}function bm(i){return Rw(typeof i=="function"?i:fn(i,m))}function P7(i){return Vw(fn(i,m))}function A7(i,l){return Bw(i,fn(l,m))}var M7=_e(function(i,l){return function(f){return Wo(f,i,l)}}),O7=_e(function(i,l){return function(f){return Wo(i,f,l)}});function wm(i,l,f){var y=gt(l),w=Ul(l,y);f==null&&!(rt(l)&&(w.length||!y.length))&&(f=l,l=i,i=this,w=Ul(l,gt(l)));var M=!(rt(f)&&"chain"in f)||!!f.chain,_=yr(i);return ln(w,function(D){var L=l[D];i[D]=L,_&&(i.prototype[D]=function(){var Y=this.__chain__;if(M||Y){var q=i(this.__wrapped__),Q=q.__actions__=Rt(this.__actions__);return Q.push({func:L,args:arguments,thisArg:i}),q.__chain__=Y,q}return L.apply(i,zr([this.value()],arguments))})}),i}function $7(){return vt._===this&&(vt._=nR),this}function Sm(){}function _7(i){return i=Oe(i),_e(function(l){return Ww(l,i)})}var I7=Qh(Je),D7=Qh(cw),N7=Qh(Ch);function oT(i){return om(i)?Eh(Wn(i)):uF(i)}function k7(i){return function(l){return i==null?n:Os(i,l)}}var j7=uS(),L7=uS(!0);function Tm(){return[]}function Cm(){return!1}function R7(){return{}}function F7(){return""}function V7(){return!0}function B7(i,l){if(i=Oe(i),i<1||i>W)return[];var f=k,y=At(i,k);l=be(l),i-=k;for(var w=Mh(y,l);++f<i;)l(f);return w}function W7(i){return Me(i)?Je(i,Wn):Jt(i)?[i]:Rt(PS(We(i)))}function U7(i){var l=++eR;return We(i)+l}var z7=Kl(function(i,l){return i+l},0),G7=em("ceil"),Y7=Kl(function(i,l){return i/l},1),H7=em("floor");function q7(i){return i&&i.length?Wl(i,Bt,Fh):n}function K7(i,l){return i&&i.length?Wl(i,be(l,2),Fh):n}function X7(i){return dw(i,Bt)}function Z7(i,l){return dw(i,be(l,2))}function J7(i){return i&&i.length?Wl(i,Bt,Uh):n}function Q7(i,l){return i&&i.length?Wl(i,be(l,2),Uh):n}var eB=Kl(function(i,l){return i*l},1),tB=em("round"),nB=Kl(function(i,l){return i-l},0);function rB(i){return i&&i.length?Ah(i,Bt):0}function sB(i,l){return i&&i.length?Ah(i,be(l,2)):0}return P.after=P9,P.ary=LS,P.assign=hV,P.assignIn=ZS,P.assignInWith=lc,P.assignWith=mV,P.at=pV,P.before=RS,P.bind=dm,P.bindAll=b7,P.bindKey=FS,P.castArray=R9,P.chain=NS,P.chunk=HF,P.compact=qF,P.concat=KF,P.cond=w7,P.conforms=S7,P.constant=vm,P.countBy=r9,P.create=gV,P.curry=VS,P.curryRight=BS,P.debounce=WS,P.defaults=yV,P.defaultsDeep=xV,P.defer=A9,P.delay=M9,P.difference=XF,P.differenceBy=ZF,P.differenceWith=JF,P.drop=QF,P.dropRight=e8,P.dropRightWhile=t8,P.dropWhile=n8,P.fill=r8,P.filter=i9,P.flatMap=l9,P.flatMapDeep=c9,P.flatMapDepth=u9,P.flatten=$S,P.flattenDeep=s8,P.flattenDepth=i8,P.flip=O9,P.flow=C7,P.flowRight=E7,P.fromPairs=o8,P.functions=EV,P.functionsIn=PV,P.groupBy=f9,P.initial=l8,P.intersection=c8,P.intersectionBy=u8,P.intersectionWith=f8,P.invert=MV,P.invertBy=OV,P.invokeMap=h9,P.iteratee=bm,P.keyBy=m9,P.keys=gt,P.keysIn=Vt,P.map=nc,P.mapKeys=_V,P.mapValues=IV,P.matches=P7,P.matchesProperty=A7,P.memoize=sc,P.merge=DV,P.mergeWith=JS,P.method=M7,P.methodOf=O7,P.mixin=wm,P.negate=ic,P.nthArg=_7,P.omit=NV,P.omitBy=kV,P.once=$9,P.orderBy=p9,P.over=I7,P.overArgs=_9,P.overEvery=D7,P.overSome=N7,P.partial=hm,P.partialRight=US,P.partition=g9,P.pick=jV,P.pickBy=QS,P.property=oT,P.propertyOf=k7,P.pull=p8,P.pullAll=IS,P.pullAllBy=g8,P.pullAllWith=y8,P.pullAt=x8,P.range=j7,P.rangeRight=L7,P.rearg=I9,P.reject=v9,P.remove=v8,P.rest=D9,P.reverse=um,P.sampleSize=w9,P.set=RV,P.setWith=FV,P.shuffle=S9,P.slice=b8,P.sortBy=E9,P.sortedUniq=A8,P.sortedUniqBy=M8,P.split=l7,P.spread=N9,P.tail=O8,P.take=$8,P.takeRight=_8,P.takeRightWhile=I8,P.takeWhile=D8,P.tap=q8,P.throttle=k9,P.thru=tc,P.toArray=qS,P.toPairs=eT,P.toPairsIn=tT,P.toPath=W7,P.toPlainObject=XS,P.transform=VV,P.unary=j9,P.union=N8,P.unionBy=k8,P.unionWith=j8,P.uniq=L8,P.uniqBy=R8,P.uniqWith=F8,P.unset=BV,P.unzip=fm,P.unzipWith=DS,P.update=WV,P.updateWith=UV,P.values=Di,P.valuesIn=zV,P.without=V8,P.words=sT,P.wrap=L9,P.xor=B8,P.xorBy=W8,P.xorWith=U8,P.zip=z8,P.zipObject=G8,P.zipObjectDeep=Y8,P.zipWith=H8,P.entries=eT,P.entriesIn=tT,P.extend=ZS,P.extendWith=lc,wm(P,P),P.add=z7,P.attempt=iT,P.camelCase=qV,P.capitalize=nT,P.ceil=G7,P.clamp=GV,P.clone=F9,P.cloneDeep=B9,P.cloneDeepWith=W9,P.cloneWith=V9,P.conformsTo=U9,P.deburr=rT,P.defaultTo=T7,P.divide=Y7,P.endsWith=KV,P.eq=wn,P.escape=XV,P.escapeRegExp=ZV,P.every=s9,P.find=o9,P.findIndex=MS,P.findKey=vV,P.findLast=a9,P.findLastIndex=OS,P.findLastKey=bV,P.floor=H7,P.forEach=kS,P.forEachRight=jS,P.forIn=wV,P.forInRight=SV,P.forOwn=TV,P.forOwnRight=CV,P.get=gm,P.gt=z9,P.gte=G9,P.has=AV,P.hasIn=ym,P.head=_S,P.identity=Bt,P.includes=d9,P.indexOf=a8,P.inRange=YV,P.invoke=$V,P.isArguments=Is,P.isArray=Me,P.isArrayBuffer=Y9,P.isArrayLike=Ft,P.isArrayLikeObject=ct,P.isBoolean=H9,P.isBuffer=Zr,P.isDate=q9,P.isElement=K9,P.isEmpty=X9,P.isEqual=Z9,P.isEqualWith=J9,P.isError=mm,P.isFinite=Q9,P.isFunction=yr,P.isInteger=zS,P.isLength=oc,P.isMap=GS,P.isMatch=eV,P.isMatchWith=tV,P.isNaN=nV,P.isNative=rV,P.isNil=iV,P.isNull=sV,P.isNumber=YS,P.isObject=rt,P.isObjectLike=ot,P.isPlainObject=qo,P.isRegExp=pm,P.isSafeInteger=oV,P.isSet=HS,P.isString=ac,P.isSymbol=Jt,P.isTypedArray=Ii,P.isUndefined=aV,P.isWeakMap=lV,P.isWeakSet=cV,P.join=d8,P.kebabCase=JV,P.last=hn,P.lastIndexOf=h8,P.lowerCase=QV,P.lowerFirst=e7,P.lt=uV,P.lte=fV,P.max=q7,P.maxBy=K7,P.mean=X7,P.meanBy=Z7,P.min=J7,P.minBy=Q7,P.stubArray=Tm,P.stubFalse=Cm,P.stubObject=R7,P.stubString=F7,P.stubTrue=V7,P.multiply=eB,P.nth=m8,P.noConflict=$7,P.noop=Sm,P.now=rc,P.pad=t7,P.padEnd=n7,P.padStart=r7,P.parseInt=s7,P.random=HV,P.reduce=y9,P.reduceRight=x9,P.repeat=i7,P.replace=o7,P.result=LV,P.round=tB,P.runInContext=j,P.sample=b9,P.size=T9,P.snakeCase=a7,P.some=C9,P.sortedIndex=w8,P.sortedIndexBy=S8,P.sortedIndexOf=T8,P.sortedLastIndex=C8,P.sortedLastIndexBy=E8,P.sortedLastIndexOf=P8,P.startCase=c7,P.startsWith=u7,P.subtract=nB,P.sum=rB,P.sumBy=sB,P.template=f7,P.times=B7,P.toFinite=xr,P.toInteger=Oe,P.toLength=KS,P.toLower=d7,P.toNumber=mn,P.toSafeInteger=dV,P.toString=We,P.toUpper=h7,P.trim=m7,P.trimEnd=p7,P.trimStart=g7,P.truncate=y7,P.unescape=x7,P.uniqueId=U7,P.upperCase=v7,P.upperFirst=xm,P.each=kS,P.eachRight=jS,P.first=_S,wm(P,function(){var i={};return Vn(P,function(l,f){ze.call(P.prototype,f)||(i[f]=l)}),i}(),{chain:!1}),P.VERSION=r,ln(["bind","bindKey","curry","curryRight","partial","partialRight"],function(i){P[i].placeholder=P}),ln(["drop","take"],function(i,l){ke.prototype[i]=function(f){f=f===n?1:mt(Oe(f),0);var y=this.__filtered__&&!l?new ke(this):this.clone();return y.__filtered__?y.__takeCount__=At(f,y.__takeCount__):y.__views__.push({size:At(f,k),type:i+(y.__dir__<0?"Right":"")}),y},ke.prototype[i+"Right"]=function(f){return this.reverse()[i](f).reverse()}}),ln(["filter","map","takeWhile"],function(i,l){var f=l+1,y=f==ue||f==fe;ke.prototype[i]=function(w){var M=this.clone();return M.__iteratees__.push({iteratee:be(w,3),type:f}),M.__filtered__=M.__filtered__||y,M}}),ln(["head","last"],function(i,l){var f="take"+(l?"Right":"");ke.prototype[i]=function(){return this[f](1).value()[0]}}),ln(["initial","tail"],function(i,l){var f="drop"+(l?"":"Right");ke.prototype[i]=function(){return this.__filtered__?new ke(this):this[f](1)}}),ke.prototype.compact=function(){return this.filter(Bt)},ke.prototype.find=function(i){return this.filter(i).head()},ke.prototype.findLast=function(i){return this.reverse().find(i)},ke.prototype.invokeMap=_e(function(i,l){return typeof i=="function"?new ke(this):this.map(function(f){return Wo(f,i,l)})}),ke.prototype.reject=function(i){return this.filter(ic(be(i)))},ke.prototype.slice=function(i,l){i=Oe(i);var f=this;return f.__filtered__&&(i>0||l<0)?new ke(f):(i<0?f=f.takeRight(-i):i&&(f=f.drop(i)),l!==n&&(l=Oe(l),f=l<0?f.dropRight(-l):f.take(l-i)),f)},ke.prototype.takeRightWhile=function(i){return this.reverse().takeWhile(i).reverse()},ke.prototype.toArray=function(){return this.take(k)},Vn(ke.prototype,function(i,l){var f=/^(?:filter|find|map|reject)|While$/.test(l),y=/^(?:head|last)$/.test(l),w=P[y?"take"+(l=="last"?"Right":""):l],M=y||/^find/.test(l);w&&(P.prototype[l]=function(){var _=this.__wrapped__,D=y?[1]:arguments,L=_ instanceof ke,Y=D[0],q=L||Me(_),Q=function(Ne){var je=w.apply(P,zr([Ne],D));return y&&de?je[0]:je};q&&f&&typeof Y=="function"&&Y.length!=1&&(L=q=!1);var de=this.__chain__,ye=!!this.__actions__.length,Te=M&&!de,$e=L&&!ye;if(!M&&q){_=$e?_:new ke(this);var Ce=i.apply(_,D);return Ce.__actions__.push({func:tc,args:[Q],thisArg:n}),new un(Ce,de)}return Te&&$e?i.apply(this,D):(Ce=this.thru(Q),Te?y?Ce.value()[0]:Ce.value():Ce)})}),ln(["pop","push","shift","sort","splice","unshift"],function(i){var l=Al[i],f=/^(?:push|sort|unshift)$/.test(i)?"tap":"thru",y=/^(?:pop|shift)$/.test(i);P.prototype[i]=function(){var w=arguments;if(y&&!this.__chain__){var M=this.value();return l.apply(Me(M)?M:[],w)}return this[f](function(_){return l.apply(Me(_)?_:[],w)})}}),Vn(ke.prototype,function(i,l){var f=P[l];if(f){var y=f.name+"";ze.call(Ai,y)||(Ai[y]=[]),Ai[y].push({name:l,func:f})}}),Ai[ql(n,v).name]=[{name:"wrapper",func:n}],ke.prototype.clone=xR,ke.prototype.reverse=vR,ke.prototype.value=bR,P.prototype.at=K8,P.prototype.chain=X8,P.prototype.commit=Z8,P.prototype.next=J8,P.prototype.plant=e9,P.prototype.reverse=t9,P.prototype.toJSON=P.prototype.valueOf=P.prototype.value=n9,P.prototype.first=P.prototype.head,ko&&(P.prototype[ko]=Q8),P},Ci=ZL();Cs?((Cs.exports=Ci)._=Ci,bh._=Ci):vt._=Ci}).call(o3)}(uo,uo.exports)),uo.exports}var hf=a3();/*!
|
|
652
652
|
* Font Awesome Pro 6.7.2 by @fontawesome - https://fontawesome.com
|
|
653
653
|
* License - https://fontawesome.com/license (Commercial License)
|
|
654
654
|
* Copyright 2024 Fonticons, Inc.
|
|
655
|
-
*/const
|
|
655
|
+
*/const l3={prefix:"fal",iconName:"eye-slash",icon:[640,512,[],"f070","M25.9 3.4C19-2 8.9-.8 3.4 6.1S-.8 23.1 6.1 28.6l608 480c6.9 5.5 17 4.3 22.5-2.6s4.3-17-2.6-22.5L25.9 3.4zM605.5 268.3c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C465.5 68.8 400.8 32 320 32c-51.2 0-96 14.8-133.9 36.8l27.3 21.5C244.6 74.2 280.2 64 320 64c70.4 0 127.7 32 170.8 72c43.1 40 71.9 88 85.2 120c-9.2 22.1-25.9 52-49.5 81.5l25.1 19.8c25.6-32 43.7-64.4 53.9-89zM88.4 154.7c-25.6 32-43.7 64.4-53.9 89c-3.3 7.9-3.3 16.7 0 24.6c14.9 35.7 46.2 87.7 93 131.1C174.5 443.2 239.2 480 320 480c51.2 0 96-14.8 133.9-36.8l-27.3-21.5C395.4 437.8 359.8 448 320 448c-70.4 0-127.7-32-170.8-72C106.1 336 77.3 288 64 256c9.2-22.1 25.9-52 49.5-81.5L88.4 154.7zM320 384c16.7 0 32.7-3.2 47.4-9.1l-30.9-24.4c-5.4 .9-10.9 1.4-16.5 1.4c-51 0-92.8-39.8-95.8-90.1l-30.9-24.4c-.9 6-1.3 12.2-1.3 18.5c0 70.7 57.3 128 128 128zM448 256c0-70.7-57.3-128-128-128c-16.7 0-32.7 3.2-47.4 9.1l30.9 24.4c5.4-.9 10.9-1.4 16.5-1.4c51 0 92.8 39.8 95.8 90.1l30.9 24.4c.9-6 1.3-12.2 1.3-18.5z"]},c3={prefix:"fal",iconName:"chevron-up",icon:[512,512,[],"f077","M244.7 116.7c6.2-6.2 16.4-6.2 22.6 0l192 192c6.2 6.2 6.2 16.4 0 22.6s-16.4 6.2-22.6 0L256 150.6 75.3 331.3c-6.2 6.2-16.4 6.2-22.6 0s-6.2-16.4 0-22.6l192-192z"]},u3={prefix:"fal",iconName:"arrows-rotate",icon:[512,512,[128472,"refresh","sync"],"f021","M69.4 210.6C89.8 126.5 165.6 64 256 64c71.1 0 133.1 38.6 166.3 96L368 160c-8.8 0-16 7.2-16 16s7.2 16 16 16l80.7 0 15.3 0c8.8 0 16-7.2 16-16l0-96c0-8.8-7.2-16-16-16s-16 7.2-16 16l0 60.6C408.8 75.5 337.5 32 256 32C149.6 32 60.5 106.2 37.7 205.6C35.5 215.2 43.1 224 53 224c7.9 0 14.6-5.7 16.5-13.4zm373.2 90.9C422.2 385.5 346.4 448 256 448c-71.1 0-133.1-38.6-166.3-96l54.5 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-80.9 0-15.1 0c-8.8 0-16 7.2-16 16l0 96c0 8.8 7.2 16 16 16s16-7.2 16-16l0-60.2C103.4 436.6 174.7 480 256 480c106.4 0 195.5-74.2 218.3-173.6c2.2-9.6-5.4-18.4-15.3-18.4c-7.9 0-14.6 5.7-16.5 13.4z"]},f3={prefix:"fal",iconName:"eye",icon:[576,512,[128065],"f06e","M117.2 136C160.3 96 217.6 64 288 64s127.7 32 170.8 72c43.1 40 71.9 88 85.2 120c-13.3 32-42.1 80-85.2 120c-43.1 40-100.4 72-170.8 72s-127.7-32-170.8-72C74.1 336 45.3 288 32 256c13.3-32 42.1-80 85.2-120zM288 32c-80.8 0-145.5 36.8-192.6 80.6C48.6 156 17.3 208 2.5 243.7c-3.3 7.9-3.3 16.7 0 24.6C17.3 304 48.6 356 95.4 399.4C142.5 443.2 207.2 480 288 480s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C433.5 68.8 368.8 32 288 32zM192 256a96 96 0 1 1 192 0 96 96 0 1 1 -192 0zm224 0a128 128 0 1 0 -256 0 128 128 0 1 0 256 0z"]},d3={prefix:"fal",iconName:"trash",icon:[448,512,[],"f1f8","M177.7 32l92.5 0c5.5 0 10.6 2.8 13.6 7.5L299.1 64 148.9 64l15.3-24.5c2.9-4.7 8.1-7.5 13.6-7.5zM336.9 64L311 22.6C302.2 8.5 286.8 0 270.3 0L177.7 0C161.2 0 145.8 8.5 137 22.6L111.1 64 64.1 64 32 64 16 64C7.2 64 0 71.2 0 80s7.2 16 16 16l18.3 0L59.8 452.6C62.1 486.1 90 512 123.6 512l200.8 0c33.6 0 61.4-25.9 63.8-59.4L413.7 96 432 96c8.8 0 16-7.2 16-16s-7.2-16-16-16l-16 0-32.1 0-47.1 0zm44.8 32L356.3 450.3C355.1 467 341.2 480 324.4 480l-200.8 0c-16.8 0-30.7-13-31.9-29.7L66.4 96l315.3 0z"]},h3={prefix:"fal",iconName:"file",icon:[384,512,[128196,128459,61462],"f15b","M352 448l0-256-112 0c-26.5 0-48-21.5-48-48l0-112L64 32C46.3 32 32 46.3 32 64l0 384c0 17.7 14.3 32 32 32l256 0c17.7 0 32-14.3 32-32zm-.5-288c-.7-2.8-2.1-5.4-4.2-7.4L231.4 36.7c-2.1-2.1-4.6-3.5-7.4-4.2L224 144c0 8.8 7.2 16 16 16l111.5 0zM0 64C0 28.7 28.7 0 64 0L220.1 0c12.7 0 24.9 5.1 33.9 14.1L369.9 129.9c9 9 14.1 21.2 14.1 33.9L384 448c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 64z"]},m3={prefix:"fal",iconName:"chevron-down",icon:[512,512,[],"f078","M267.3 395.3c-6.2 6.2-16.4 6.2-22.6 0l-192-192c-6.2-6.2-6.2-16.4 0-22.6s16.4-6.2 22.6 0L256 361.4 436.7 180.7c6.2-6.2 16.4-6.2 22.6 0s6.2 16.4 0 22.6l-192 192z"]},mf={prefix:"fal",iconName:"x",icon:[384,512,[120],"58","M380.2 58.3c5.7-6.7 4.9-16.8-1.9-22.5s-16.8-4.9-22.6 1.9L192 231.2 28.2 37.7c-5.7-6.7-15.8-7.6-22.5-1.9s-7.6 15.8-1.9 22.5L171 256 3.8 453.7c-5.7 6.7-4.9 16.8 1.9 22.6s16.8 4.9 22.5-1.9L192 280.8 355.8 474.3c5.7 6.7 15.8 7.6 22.6 1.9s7.6-15.8 1.9-22.6L213 256 380.2 58.3z"]},pf=O.createContext({});function gf(e){const t=O.useRef(null);return t.current===null&&(t.current=e()),t.current}const yf=typeof window<"u",Tx=yf?O.useLayoutEffect:O.useEffect,Ia=O.createContext(null),xf=O.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class p3 extends me.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,s=r instanceof HTMLElement&&r.offsetWidth||0,o=this.props.sizeRef.current;o.height=n.offsetHeight||0,o.width=n.offsetWidth||0,o.top=n.offsetTop,o.left=n.offsetLeft,o.right=s-o.width-o.left}return null}componentDidUpdate(){}render(){return this.props.children}}function g3({children:e,isPresent:t,anchorX:n}){const r=O.useId(),s=O.useRef(null),o=O.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:a}=O.useContext(xf);return O.useInsertionEffect(()=>{const{width:c,height:u,top:d,left:h,right:m}=o.current;if(t||!s.current||!c||!u)return;const p=n==="left"?`left: ${h}`:`right: ${m}`;s.current.dataset.motionPopId=r;const x=document.createElement("style");return a&&(x.nonce=a),document.head.appendChild(x),x.sheet&&x.sheet.insertRule(`
|
|
656
656
|
[data-motion-pop-id="${r}"] {
|
|
657
657
|
position: absolute !important;
|
|
658
658
|
width: ${c}px !important;
|
|
@@ -660,7 +660,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
660
660
|
${p}px !important;
|
|
661
661
|
top: ${d}px !important;
|
|
662
662
|
}
|
|
663
|
-
`),()=>{document.head.removeChild(x)}},[t]),g.jsx(p5,{isPresent:t,childRef:s,sizeRef:o,children:me.cloneElement(e,{ref:s})})}const y5=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:s,presenceAffectsLayout:o,mode:a,anchorX:c})=>{const u=gf(x5),d=O.useId(),h=O.useCallback(p=>{u.set(p,!0);for(const x of u.values())if(!x)return;r&&r()},[u,r]),m=O.useMemo(()=>({id:d,initial:t,isPresent:n,custom:s,onExitComplete:h,register:p=>(u.set(p,!1),()=>u.delete(p))}),o?[Math.random(),h]:[n,h]);return O.useMemo(()=>{u.forEach((p,x)=>u.set(x,!1))},[n]),me.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),a==="popLayout"&&(e=g.jsx(g5,{isPresent:n,anchorX:c,children:e})),g.jsx(Ia.Provider,{value:m,children:e})};function x5(){return new Map}function Cx(e=!0){const t=O.useContext(Ia);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:s}=t,o=O.useId();O.useEffect(()=>{if(e)return s(o)},[e]);const a=O.useCallback(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,a]:[!0]}const Da=e=>e.key||"";function Ex(e){const t=[];return O.Children.forEach(e,n=>{O.isValidElement(n)&&t.push(n)}),t}const Kn=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:s=!0,mode:o="sync",propagate:a=!1,anchorX:c="left"})=>{const[u,d]=Cx(a),h=O.useMemo(()=>Ex(e),[e]),m=a&&!u?[]:h.map(Da),p=O.useRef(!0),x=O.useRef(h),S=gf(()=>new Map),[b,T]=O.useState(h),[v,A]=O.useState(h);Tx(()=>{p.current=!1,x.current=h;for(let E=0;E<v.length;E++){const N=Da(v[E]);m.includes(N)?S.delete(N):S.get(N)!==!0&&S.set(N,!1)}},[v,m.length,m.join("-")]);const C=[];if(h!==b){let E=[...h];for(let N=0;N<v.length;N++){const R=v[N],F=Da(R);m.includes(F)||(E.splice(N,0,R),C.push(R))}return o==="wait"&&C.length&&(E=C),A(Ex(E)),T(h),null}process.env.NODE_ENV!=="production"&&o==="wait"&&v.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:I}=O.useContext(pf);return g.jsx(g.Fragment,{children:v.map(E=>{const N=Da(E),R=a&&!u?!1:h===v||m.includes(N),F=()=>{if(S.has(N))S.set(N,!0);else return;let G=!0;S.forEach(re=>{re||(G=!1)}),G&&(I==null||I(),A(x.current),a&&(d==null||d()),r&&r())};return g.jsx(y5,{isPresent:R,initial:!p.current||n?void 0:!1,custom:t,presenceAffectsLayout:s,mode:o,onExitComplete:R?void 0:F,anchorX:c,children:E},N)})})},kt=e=>e;let Qs=kt,$r=kt;process.env.NODE_ENV!=="production"&&(Qs=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},$r=(e,t)=>{if(!e)throw new Error(t)});const v5={useManualTiming:!1},Na=["read","resolveKeyframes","update","preRender","render","postRender"],Px={value:null};function b5(e,t){let n=new Set,r=new Set,s=!1,o=!1;const a=new WeakSet;let c={delta:0,timestamp:0,isProcessing:!1},u=0;function d(m){a.has(m)&&(h.schedule(m),e()),u++,m(c)}const h={schedule:(m,p=!1,x=!1)=>{const b=x&&s?n:r;return p&&a.add(m),b.has(m)||b.add(m),m},cancel:m=>{r.delete(m),a.delete(m)},process:m=>{if(c=m,s){o=!0;return}s=!0,[n,r]=[r,n],n.forEach(d),t&&Px.value&&Px.value.frameloop[t].push(u),u=0,n.clear(),s=!1,o&&(o=!1,h.process(m))}};return h}const w5=40;function Ax(e,t){let n=!1,r=!0;const s={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,a=Na.reduce((v,A)=>(v[A]=b5(o,t?A:void 0),v),{}),{read:c,resolveKeyframes:u,update:d,preRender:h,render:m,postRender:p}=a,x=()=>{const v=performance.now();n=!1,s.delta=r?1e3/60:Math.max(Math.min(v-s.timestamp,w5),1),s.timestamp=v,s.isProcessing=!0,c.process(s),u.process(s),d.process(s),h.process(s),m.process(s),p.process(s),s.isProcessing=!1,n&&t&&(r=!1,e(x))},S=()=>{n=!0,r=!0,s.isProcessing||e(x)};return{schedule:Na.reduce((v,A)=>{const C=a[A];return v[A]=(I,E=!1,N=!1)=>(n||S(),C.schedule(I,E,N)),v},{}),cancel:v=>{for(let A=0;A<Na.length;A++)a[Na[A]].cancel(v)},state:s,steps:a}}const{schedule:He,cancel:_r,state:xt,steps:vf}=Ax(typeof requestAnimationFrame<"u"?requestAnimationFrame:kt,!0),Mx=O.createContext({strict:!1}),Ox={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"]},ei={};for(const e in Ox)ei[e]={isEnabled:t=>Ox[e].some(n=>!!t[n])};function S5(e){for(const t in e)ei[t]={...ei[t],...e[t]}}const T5=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 ka(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||T5.has(e)}let $x=e=>!ka(e);function C5(e){e&&($x=t=>t.startsWith("on")?!ka(t):e(t))}try{C5(require("@emotion/is-prop-valid").default)}catch{}function E5(e,t,n){const r={};for(const s in e)s==="values"&&typeof e.values=="object"||($x(s)||n===!0&&ka(s)||!t&&!ka(s)||e.draggable&&s.startsWith("onDrag"))&&(r[s]=e[s]);return r}const _x=new Set;function ja(e,t,n){e||_x.has(t)||(console.warn(t),_x.add(t))}function P5(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&ja(!1,"motion() is deprecated. Use motion.create() instead."),e(...r));return new Proxy(n,{get:(r,s)=>s==="create"?e:(t.has(s)||t.set(s,e(s)),t.get(s))})}const La=O.createContext({});function Ra(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function fo(e){return typeof e=="string"||Array.isArray(e)}const bf=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],wf=["initial",...bf];function Fa(e){return Ra(e.animate)||wf.some(t=>fo(e[t]))}function Ix(e){return!!(Fa(e)||e.variants)}function A5(e,t){if(Fa(e)){const{initial:n,animate:r}=e;return{initial:n===!1||fo(n)?n:void 0,animate:fo(r)?r:void 0}}return e.inherit!==!1?t:{}}function M5(e){const{initial:t,animate:n}=A5(e,O.useContext(La));return O.useMemo(()=>({initial:t,animate:n}),[Dx(t),Dx(n)])}function Dx(e){return Array.isArray(e)?e.join(" "):e}const O5=Symbol.for("motionComponentSymbol");function ti(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function $5(e,t,n){return O.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):ti(n)&&(n.current=r))},[t])}const{schedule:Sf}=Ax(queueMicrotask,!1),Tf=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Nx="data-"+Tf("framerAppearId"),kx=O.createContext({});function _5(e,t,n,r,s){var o,a;const{visualElement:c}=O.useContext(La),u=O.useContext(Mx),d=O.useContext(Ia),h=O.useContext(xf).reducedMotion,m=O.useRef(null);r=r||u.renderer,!m.current&&r&&(m.current=r(e,{visualState:t,parent:c,props:n,presenceContext:d,blockInitialAnimation:d?d.initial===!1:!1,reducedMotionConfig:h}));const p=m.current,x=O.useContext(kx);p&&!p.projection&&s&&(p.type==="html"||p.type==="svg")&&I5(m.current,n,s,x);const S=O.useRef(!1);O.useInsertionEffect(()=>{p&&S.current&&p.update(n,d)});const b=n[Nx],T=O.useRef(!!b&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,b))&&((a=window.MotionHasOptimisedAnimation)===null||a===void 0?void 0:a.call(window,b)));return Tx(()=>{p&&(S.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),Sf.render(p.render),T.current&&p.animationState&&p.animationState.animateChanges())}),O.useEffect(()=>{p&&(!T.current&&p.animationState&&p.animationState.animateChanges(),T.current&&(queueMicrotask(()=>{var v;(v=window.MotionHandoffMarkAsComplete)===null||v===void 0||v.call(window,b)}),T.current=!1))}),p}function I5(e,t,n,r){const{layoutId:s,layout:o,drag:a,dragConstraints:c,layoutScroll:u,layoutRoot:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:jx(e.parent)),e.projection.setOptions({layoutId:s,layout:o,alwaysMeasureLayout:!!a||c&&ti(c),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:u,layoutRoot:d})}function jx(e){if(e)return e.options.allowProjection!==!1?e.projection:jx(e.parent)}function D5({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:s}){var o,a;e&&S5(e);function c(d,h){let m;const p={...O.useContext(xf),...d,layoutId:N5(d)},{isStatic:x}=p,S=M5(d),b=r(d,x);if(!x&&yf){k5(p,e);const T=j5(p);m=T.MeasureLayout,S.visualElement=_5(s,b,p,t,T.ProjectionNode)}return g.jsxs(La.Provider,{value:S,children:[m&&S.visualElement?g.jsx(m,{visualElement:S.visualElement,...p}):null,n(s,d,$5(b,S.visualElement,h),b,x,S.visualElement)]})}c.displayName=`motion.${typeof s=="string"?s:`create(${(a=(o=s.displayName)!==null&&o!==void 0?o:s.name)!==null&&a!==void 0?a:""})`}`;const u=O.forwardRef(c);return u[O5]=s,u}function N5({layoutId:e}){const t=O.useContext(pf).id;return t&&e!==void 0?t+"-"+e:e}function k5(e,t){const n=O.useContext(Mx).strict;if(process.env.NODE_ENV!=="production"&&t&&n){const r="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?Qs(!1,r):$r(!1,r)}}function j5(e){const{drag:t,layout:n}=ei;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const Lx=e=>t=>typeof t=="string"&&t.startsWith(e),Cf=Lx("--"),L5=Lx("var(--"),Ef=e=>L5(e)?R5.test(e.split("/*")[0].trim()):!1,R5=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,ho={};function F5(e){for(const t in e)ho[t]=e[t],Cf(t)&&(ho[t].isCSSVariable=!0)}const ni=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ls=new Set(ni);function Rx(e,{layout:t,layoutId:n}){return ls.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!ho[e]||e==="opacity")}const Ct=e=>!!(e&&e.getVelocity),Fx=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Xn=(e,t,n)=>n>t?t:n<e?e:n,ri={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},mo={...ri,transform:e=>Xn(0,1,e)},Va={...ri,default:1},po=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Ir=po("deg"),In=po("%"),Se=po("px"),V5=po("vh"),B5=po("vw"),Vx={...In,parse:e=>In.parse(e)/100,transform:e=>In.transform(e*100)},W5={borderWidth:Se,borderTopWidth:Se,borderRightWidth:Se,borderBottomWidth:Se,borderLeftWidth:Se,borderRadius:Se,radius:Se,borderTopLeftRadius:Se,borderTopRightRadius:Se,borderBottomRightRadius:Se,borderBottomLeftRadius:Se,width:Se,maxWidth:Se,height:Se,maxHeight:Se,top:Se,right:Se,bottom:Se,left:Se,padding:Se,paddingTop:Se,paddingRight:Se,paddingBottom:Se,paddingLeft:Se,margin:Se,marginTop:Se,marginRight:Se,marginBottom:Se,marginLeft:Se,backgroundPositionX:Se,backgroundPositionY:Se},U5={rotate:Ir,rotateX:Ir,rotateY:Ir,rotateZ:Ir,scale:Va,scaleX:Va,scaleY:Va,scaleZ:Va,skew:Ir,skewX:Ir,skewY:Ir,distance:Se,translateX:Se,translateY:Se,translateZ:Se,x:Se,y:Se,z:Se,perspective:Se,transformPerspective:Se,opacity:mo,originX:Vx,originY:Vx,originZ:Se},Bx={...ri,transform:Math.round},Pf={...W5,...U5,zIndex:Bx,size:Se,fillOpacity:mo,strokeOpacity:mo,numOctaves:Bx},z5={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},G5=ni.length;function Y5(e,t,n){let r="",s=!0;for(let o=0;o<G5;o++){const a=ni[o],c=e[a];if(c===void 0)continue;let u=!0;if(typeof c=="number"?u=c===(a.startsWith("scale")?1:0):u=parseFloat(c)===0,!u||n){const d=Fx(c,Pf[a]);if(!u){s=!1;const h=z5[a]||a;r+=`${h}(${d}) `}n&&(t[a]=d)}}return r=r.trim(),n?r=n(t,s?"":r):s&&(r="none"),r}function Af(e,t,n){const{style:r,vars:s,transformOrigin:o}=e;let a=!1,c=!1;for(const u in t){const d=t[u];if(ls.has(u)){a=!0;continue}else if(Cf(u)){s[u]=d;continue}else{const h=Fx(d,Pf[u]);u.startsWith("origin")?(c=!0,o[u]=h):r[u]=h}}if(t.transform||(a||n?r.transform=Y5(t,e.transform,n):r.transform&&(r.transform="none")),c){const{originX:u="50%",originY:d="50%",originZ:h=0}=o;r.transformOrigin=`${u} ${d} ${h}`}}const Mf=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Wx(e,t,n){for(const r in t)!Ct(t[r])&&!Rx(r,n)&&(e[r]=t[r])}function H5({transformTemplate:e},t){return O.useMemo(()=>{const n=Mf();return Af(n,t,e),Object.assign({},n.vars,n.style)},[t])}function q5(e,t){const n=e.style||{},r={};return Wx(r,n,e),Object.assign(r,H5(e,t)),r}function K5(e,t){const n={},r=q5(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const X5=["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 Of(e){return typeof e!="string"||e.includes("-")?!1:!!(X5.indexOf(e)>-1||/[A-Z]/u.test(e))}const Z5={offset:"stroke-dashoffset",array:"stroke-dasharray"},J5={offset:"strokeDashoffset",array:"strokeDasharray"};function Q5(e,t,n=1,r=0,s=!0){e.pathLength=1;const o=s?Z5:J5;e[o.offset]=Se.transform(-r);const a=Se.transform(t),c=Se.transform(n);e[o.array]=`${a} ${c}`}function Ux(e,t,n){return typeof e=="string"?e:Se.transform(t+n*e)}function e3(e,t,n){const r=Ux(t,e.x,e.width),s=Ux(n,e.y,e.height);return`${r} ${s}`}function $f(e,{attrX:t,attrY:n,attrScale:r,originX:s,originY:o,pathLength:a,pathSpacing:c=1,pathOffset:u=0,...d},h,m){if(Af(e,d,m),h){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:p,style:x,dimensions:S}=e;p.transform&&(S&&(x.transform=p.transform),delete p.transform),S&&(s!==void 0||o!==void 0||x.transform)&&(x.transformOrigin=e3(S,s!==void 0?s:.5,o!==void 0?o:.5)),t!==void 0&&(p.x=t),n!==void 0&&(p.y=n),r!==void 0&&(p.scale=r),a!==void 0&&Q5(p,a,c,u,!1)}const zx=()=>({...Mf(),attrs:{}}),_f=e=>typeof e=="string"&&e.toLowerCase()==="svg";function t3(e,t,n,r){const s=O.useMemo(()=>{const o=zx();return $f(o,t,_f(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};Wx(o,e.style,e),s.style={...o,...s.style}}return s}function n3(e=!1){return(n,r,s,{latestValues:o},a)=>{const u=(Of(n)?t3:K5)(r,o,a,n),d=E5(r,typeof n=="string",e),h=n!==O.Fragment?{...d,...u,ref:s}:{},{children:m}=r,p=O.useMemo(()=>Ct(m)?m.get():m,[m]);return O.createElement(n,{...h,children:p})}}function Gx(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function If(e,t,n,r){if(typeof t=="function"){const[s,o]=Gx(r);t=t(n!==void 0?n:e.custom,s,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[s,o]=Gx(r);t=t(n!==void 0?n:e.custom,s,o)}return t}const Df=e=>Array.isArray(e),r3=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),s3=e=>Df(e)?e[e.length-1]||0:e;function Ba(e){const t=Ct(e)?e.get():e;return r3(t)?t.toValue():t}function i3({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,s,o){const a={latestValues:o3(r,s,o,e),renderState:t()};return n&&(a.onMount=c=>n({props:r,current:c,...a}),a.onUpdate=c=>n(c)),a}const Yx=e=>(t,n)=>{const r=O.useContext(La),s=O.useContext(Ia),o=()=>i3(e,t,r,s);return n?o():gf(o)};function o3(e,t,n,r){const s={},o=r(e,{});for(const p in o)s[p]=Ba(o[p]);let{initial:a,animate:c}=e;const u=Fa(e),d=Ix(e);t&&d&&!u&&e.inherit!==!1&&(a===void 0&&(a=t.initial),c===void 0&&(c=t.animate));let h=n?n.initial===!1:!1;h=h||a===!1;const m=h?c:a;if(m&&typeof m!="boolean"&&!Ra(m)){const p=Array.isArray(m)?m:[m];for(let x=0;x<p.length;x++){const S=If(e,p[x]);if(S){const{transitionEnd:b,transition:T,...v}=S;for(const A in v){let C=v[A];if(Array.isArray(C)){const I=h?C.length-1:0;C=C[I]}C!==null&&(s[A]=C)}for(const A in b)s[A]=b[A]}}}return s}function Nf(e,t,n){var r;const{style:s}=e,o={};for(const a in s)(Ct(s[a])||t.style&&Ct(t.style[a])||Rx(a,e)||((r=n==null?void 0:n.getValue(a))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(o[a]=s[a]);return o}const a3={useVisualState:Yx({scrapeMotionValuesFromProps:Nf,createRenderState:Mf})};function Hx(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}function qx(e,{style:t,vars:n},r,s){Object.assign(e.style,t,s&&s.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const Kx=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 Xx(e,t,n,r){qx(e,t,void 0,r);for(const s in t.attrs)e.setAttribute(Kx.has(s)?s:Tf(s),t.attrs[s])}function Zx(e,t,n){const r=Nf(e,t,n);for(const s in e)if(Ct(e[s])||Ct(t[s])){const o=ni.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;r[o]=e[s]}return r}const Jx=["x","y","width","height","cx","cy","r"],l3={useVisualState:Yx({scrapeMotionValuesFromProps:Zx,createRenderState:zx,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:s})=>{if(!n)return;let o=!!e.drag;if(!o){for(const c in s)if(ls.has(c)){o=!0;break}}if(!o)return;let a=!t;if(t)for(let c=0;c<Jx.length;c++){const u=Jx[c];e[u]!==t[u]&&(a=!0)}a&&He.read(()=>{Hx(n,r),He.render(()=>{$f(r,s,_f(n.tagName),e.transformTemplate),Xx(n,r)})})}})};function c3(e,t){return function(r,{forwardMotionProps:s}={forwardMotionProps:!1}){const a={...Of(r)?l3:a3,preloadedFeatures:e,useRender:n3(s),createVisualElement:t,Component:r};return D5(a)}}function go(e,t,n){const r=e.getProps();return If(r,t,n!==void 0?n:r.custom,e)}function kf(e,t){return e?e[t]||e.default||e:void 0}const Qx=new Set(["width","height","top","left","right","bottom",...ni]);function jf(e,t){e.indexOf(t)===-1&&e.push(t)}function Lf(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Rf{constructor(){this.subscriptions=[]}add(t){return jf(this.subscriptions,t),()=>Lf(this.subscriptions,t)}notify(t,n,r){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](t,n,r);else for(let o=0;o<s;o++){const a=this.subscriptions[o];a&&a(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function e1(e,t){return t?e*(1e3/t):0}let Wa;function u3(){Wa=void 0}const Dn={now:()=>(Wa===void 0&&Dn.set(xt.isProcessing||v5.useManualTiming?xt.timestamp:performance.now()),Wa),set:e=>{Wa=e,queueMicrotask(u3)}},t1=30,f3=e=>!isNaN(parseFloat(e));class d3{constructor(t,n={}){this.version="12.6.1",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,s=!0)=>{const o=Dn.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),s&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Dn.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=f3(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&ja(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Rf);const r=this.events[t].add(n);return t==="change"?()=>{r(),He.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Dn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>t1)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,t1);return e1(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),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 yo(e,t){return new d3(e,t)}function h3(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,yo(n))}function m3(e,t){const n=go(e,t);let{transitionEnd:r={},transition:s={},...o}=n||{};o={...o,...r};for(const a in o){const c=s3(o[a]);h3(e,a,c)}}function p3(e){return!!(Ct(e)&&e.add)}function Ff(e,t){const n=e.getValue("willChange");if(p3(n))return n.add(t)}function n1(e){return e.props[Nx]}function Vf(e){let t;return()=>(t===void 0&&(t=e()),t)}const g3=Vf(()=>window.ScrollTimeline!==void 0);class y3{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(s=>{if(g3()&&s.attachTimeline)return s.attachTimeline(t);if(typeof n=="function")return n(s)});return()=>{r.forEach((s,o)=>{s&&s(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class x3 extends y3{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}const Nn=e=>e*1e3,Zn=e=>e/1e3;function Bf(e){return typeof e=="function"}function r1(e,t){e.timeline=t,e.onfinish=null}const Wf=e=>Array.isArray(e)&&typeof e[0]=="number",v3={linearEasing:void 0};function b3(e,t){const n=Vf(e);return()=>{var r;return(r=v3[t])!==null&&r!==void 0?r:n()}}const Ua=b3(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),si=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},s1=(e,t,n=10)=>{let r="";const s=Math.max(Math.round(t/n),2);for(let o=0;o<s;o++)r+=e(si(0,s-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function i1(e){return!!(typeof e=="function"&&Ua()||!e||typeof e=="string"&&(e in Uf||Ua())||Wf(e)||Array.isArray(e)&&e.every(i1))}const xo=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Uf={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:xo([0,.65,.55,1]),circOut:xo([.55,0,1,.45]),backIn:xo([.31,.01,.66,-.59]),backOut:xo([.33,1.53,.69,.99])};function o1(e,t){if(e)return typeof e=="function"&&Ua()?s1(e,t):Wf(e)?xo(e):Array.isArray(e)?e.map(n=>o1(n,t)||Uf.easeOut):Uf[e]}const a1=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,w3=1e-7,S3=12;function T3(e,t,n,r,s){let o,a,c=0;do a=t+(n-t)/2,o=a1(a,r,s)-e,o>0?n=a:t=a;while(Math.abs(o)>w3&&++c<S3);return a}function vo(e,t,n,r){if(e===t&&n===r)return kt;const s=o=>T3(o,0,1,e,n);return o=>o===0||o===1?o:a1(s(o),t,r)}const l1=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,c1=e=>t=>1-e(1-t),u1=vo(.33,1.53,.69,.99),zf=c1(u1),f1=l1(zf),d1=e=>(e*=2)<1?.5*zf(e):.5*(2-Math.pow(2,-10*(e-1))),Gf=e=>1-Math.sin(Math.acos(e)),h1=c1(Gf),m1=l1(Gf),p1=e=>/^0[^.\s]+$/u.test(e);function C3(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||p1(e):!0}const bo=e=>Math.round(e*1e5)/1e5,Yf=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function E3(e){return e==null}const P3=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Hf=(e,t)=>n=>!!(typeof n=="string"&&P3.test(n)&&n.startsWith(e)||t&&!E3(n)&&Object.prototype.hasOwnProperty.call(n,t)),g1=(e,t,n)=>r=>{if(typeof r!="string")return r;const[s,o,a,c]=r.match(Yf);return{[e]:parseFloat(s),[t]:parseFloat(o),[n]:parseFloat(a),alpha:c!==void 0?parseFloat(c):1}},A3=e=>Xn(0,255,e),qf={...ri,transform:e=>Math.round(A3(e))},cs={test:Hf("rgb","red"),parse:g1("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+qf.transform(e)+", "+qf.transform(t)+", "+qf.transform(n)+", "+bo(mo.transform(r))+")"};function M3(e){let t="",n="",r="",s="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),s=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),s=e.substring(4,5),t+=t,n+=n,r+=r,s+=s),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:s?parseInt(s,16)/255:1}}const Kf={test:Hf("#"),parse:M3,transform:cs.transform},ii={test:Hf("hsl","hue"),parse:g1("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+In.transform(bo(t))+", "+In.transform(bo(n))+", "+bo(mo.transform(r))+")"},Et={test:e=>cs.test(e)||Kf.test(e)||ii.test(e),parse:e=>cs.test(e)?cs.parse(e):ii.test(e)?ii.parse(e):Kf.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?cs.transform(e):ii.transform(e)},O3=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function $3(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Yf))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(O3))===null||n===void 0?void 0:n.length)||0)>0}const y1="number",x1="color",_3="var",I3="var(",v1="${}",D3=/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 wo(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},s=[];let o=0;const c=t.replace(D3,u=>(Et.test(u)?(r.color.push(o),s.push(x1),n.push(Et.parse(u))):u.startsWith(I3)?(r.var.push(o),s.push(_3),n.push(u)):(r.number.push(o),s.push(y1),n.push(parseFloat(u))),++o,v1)).split(v1);return{values:n,split:c,indexes:r,types:s}}function b1(e){return wo(e).values}function w1(e){const{split:t,types:n}=wo(e),r=t.length;return s=>{let o="";for(let a=0;a<r;a++)if(o+=t[a],s[a]!==void 0){const c=n[a];c===y1?o+=bo(s[a]):c===x1?o+=Et.transform(s[a]):o+=s[a]}return o}}const N3=e=>typeof e=="number"?0:e;function k3(e){const t=b1(e);return w1(e)(t.map(N3))}const Dr={test:$3,parse:b1,createTransformer:w1,getAnimatableNone:k3},j3=new Set(["brightness","contrast","saturate","opacity"]);function L3(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Yf)||[];if(!r)return e;const s=n.replace(r,"");let o=j3.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+s+")"}const R3=/\b([a-z-]*)\(.*?\)/gu,Xf={...Dr,getAnimatableNone:e=>{const t=e.match(R3);return t?t.map(L3).join(" "):e}},F3={...Pf,color:Et,backgroundColor:Et,outlineColor:Et,fill:Et,stroke:Et,borderColor:Et,borderTopColor:Et,borderRightColor:Et,borderBottomColor:Et,borderLeftColor:Et,filter:Xf,WebkitFilter:Xf},S1=e=>F3[e];function T1(e,t){let n=S1(e);return n!==Xf&&(n=Dr),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const V3=new Set(["auto","none","0"]);function B3(e,t,n){let r=0,s;for(;r<e.length&&!s;){const o=e[r];typeof o=="string"&&!V3.has(o)&&wo(o).values.length&&(s=e[r]),r++}if(s&&n)for(const o of t)e[o]=T1(n,s)}const us=e=>e*180/Math.PI,Zf=e=>{const t=us(Math.atan2(e[1],e[0]));return Jf(t)},W3={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Zf,rotateZ:Zf,skewX:e=>us(Math.atan(e[1])),skewY:e=>us(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Jf=e=>(e=e%360,e<0&&(e+=360),e),C1=Zf,E1=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),P1=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),U3={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:E1,scaleY:P1,scale:e=>(E1(e)+P1(e))/2,rotateX:e=>Jf(us(Math.atan2(e[6],e[5]))),rotateY:e=>Jf(us(Math.atan2(-e[2],e[0]))),rotateZ:C1,rotate:C1,skewX:e=>us(Math.atan(e[4])),skewY:e=>us(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function A1(e){return e.includes("scale")?1:0}function Qf(e,t){if(!e||e==="none")return A1(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,s;if(n)r=U3,s=n;else{const c=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=W3,s=c}if(!s)return A1(t);const o=r[t],a=s[1].split(",").map(G3);return typeof o=="function"?o(a):a[o]}const z3=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Qf(n,t)};function G3(e){return parseFloat(e.trim())}const M1=e=>e===ri||e===Se,Y3=new Set(["x","y","z"]),H3=ni.filter(e=>!Y3.has(e));function q3(e){const t=[];return H3.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const oi={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:(e,{transform:t})=>Qf(t,"x"),y:(e,{transform:t})=>Qf(t,"y")};oi.translateX=oi.x,oi.translateY=oi.y;const fs=new Set;let ed=!1,td=!1;function O1(){if(td){const e=Array.from(fs).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const s=q3(r);s.length&&(n.set(r,s),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const s=n.get(r);s&&s.forEach(([o,a])=>{var c;(c=r.getValue(o))===null||c===void 0||c.set(a)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}td=!1,ed=!1,fs.forEach(e=>e.complete()),fs.clear()}function $1(){fs.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(td=!0)})}function K3(){$1(),O1()}class nd{constructor(t,n,r,s,o,a=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=s,this.element=o,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(fs.add(this),ed||(ed=!0,He.read($1),He.resolveKeyframes(O1))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:s}=this;for(let o=0;o<t.length;o++)if(t[o]===null)if(o===0){const a=s==null?void 0:s.get(),c=t[t.length-1];if(a!==void 0)t[0]=a;else if(r&&n){const u=r.readValue(n,c);u!=null&&(t[0]=u)}t[0]===void 0&&(t[0]=c),s&&a===void 0&&s.set(t[0])}else t[o]=t[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),fs.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,fs.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const _1=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),X3=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Z3(e){const t=X3.exec(e);if(!t)return[,];const[,n,r,s]=t;return[`--${n??r}`,s]}const J3=4;function I1(e,t,n=1){$r(n<=J3,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,s]=Z3(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const a=o.trim();return _1(a)?parseFloat(a):a}return Ef(s)?I1(s,t,n+1):s}const D1=e=>t=>t.test(e),N1=[ri,Se,In,Ir,B5,V5,{test:e=>e==="auto",parse:e=>e}],k1=e=>N1.find(D1(e));class j1 extends nd{constructor(t,n,r,s,o){super(t,n,r,s,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let u=0;u<t.length;u++){let d=t[u];if(typeof d=="string"&&(d=d.trim(),Ef(d))){const h=I1(d,n.current);h!==void 0&&(t[u]=h),u===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!Qx.has(r)||t.length!==2)return;const[s,o]=t,a=k1(s),c=k1(o);if(a!==c)if(M1(a)&&M1(c))for(let u=0;u<t.length;u++){const d=t[u];typeof d=="string"&&(t[u]=parseFloat(d))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let s=0;s<t.length;s++)C3(t[s])&&r.push(s);r.length&&B3(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=oi[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const s=n[n.length-1];s!==void 0&&t.getValue(r,s).jump(s,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:s}=this;if(!n||!n.current)return;const o=n.getValue(r);o&&o.jump(this.measuredOrigin,!1);const a=s.length-1,c=s[a];s[a]=oi[r](n.measureViewportBox(),window.getComputedStyle(n.current)),c!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=c),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([u,d])=>{n.getValue(u).set(d)}),this.resolveNoneKeyframes()}}const L1=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Dr.test(e)||e==="0")&&!e.startsWith("url("));function Q3(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function e_(e,t,n,r){const s=e[0];if(s===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],a=L1(s,t),c=L1(o,t);return Qs(a===c,`You are trying to animate ${t} from "${s}" to "${o}". ${s} is not an animatable value - to enable this animation set ${s} to a value animatable to ${o} via the \`style\` property.`),!a||!c?!1:Q3(e)||(n==="spring"||Bf(n))&&r}const t_=e=>e!==null;function za(e,{repeat:t,repeatType:n="loop"},r){const s=e.filter(t_),o=t&&n!=="loop"&&t%2===1?0:s.length-1;return!o||r===void 0?s[o]:r}const n_=40;class R1{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:s=0,repeatDelay:o=0,repeatType:a="loop",...c}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Dn.now(),this.options={autoplay:t,delay:n,type:r,repeat:s,repeatDelay:o,repeatType:a,...c},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>n_?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&K3(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Dn.now(),this.hasAttemptedResolve=!0;const{name:r,type:s,velocity:o,delay:a,onComplete:c,onUpdate:u,isGenerator:d}=this.options;if(!d&&!e_(t,r,s,o))if(a)this.options.duration=0;else{u&&u(za(t,this.options,n)),c&&c(),this.resolveFinishedPromise();return}const h=this.initPlayback(t,n);h!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...h},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear")}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const rd=2e4;function F1(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<rd;)t+=n,r=e.next(t);return t>=rd?1/0:t}const tt=(e,t,n)=>e+(t-e)*n;function sd(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function r_({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let s=0,o=0,a=0;if(!t)s=o=a=n;else{const c=n<.5?n*(1+t):n+t-n*t,u=2*n-c;s=sd(u,c,e+1/3),o=sd(u,c,e),a=sd(u,c,e-1/3)}return{red:Math.round(s*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:r}}function Ga(e,t){return n=>n>0?t:e}const id=(e,t,n)=>{const r=e*e,s=n*(t*t-r)+r;return s<0?0:Math.sqrt(s)},s_=[Kf,cs,ii],i_=e=>s_.find(t=>t.test(e));function V1(e){const t=i_(e);if(Qs(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===ii&&(n=r_(n)),n}const B1=(e,t)=>{const n=V1(e),r=V1(t);if(!n||!r)return Ga(e,t);const s={...n};return o=>(s.red=id(n.red,r.red,o),s.green=id(n.green,r.green,o),s.blue=id(n.blue,r.blue,o),s.alpha=tt(n.alpha,r.alpha,o),cs.transform(s))},o_=(e,t)=>n=>t(e(n)),So=(...e)=>e.reduce(o_),od=new Set(["none","hidden"]);function a_(e,t){return od.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function l_(e,t){return n=>tt(e,t,n)}function ad(e){return typeof e=="number"?l_:typeof e=="string"?Ef(e)?Ga:Et.test(e)?B1:f_:Array.isArray(e)?W1:typeof e=="object"?Et.test(e)?B1:c_:Ga}function W1(e,t){const n=[...e],r=n.length,s=e.map((o,a)=>ad(o)(o,t[a]));return o=>{for(let a=0;a<r;a++)n[a]=s[a](o);return n}}function c_(e,t){const n={...e,...t},r={};for(const s in n)e[s]!==void 0&&t[s]!==void 0&&(r[s]=ad(e[s])(e[s],t[s]));return s=>{for(const o in r)n[o]=r[o](s);return n}}function u_(e,t){var n;const r=[],s={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const a=t.types[o],c=e.indexes[a][s[a]],u=(n=e.values[c])!==null&&n!==void 0?n:0;r[o]=u,s[a]++}return r}const f_=(e,t)=>{const n=Dr.createTransformer(t),r=wo(e),s=wo(t);return r.indexes.var.length===s.indexes.var.length&&r.indexes.color.length===s.indexes.color.length&&r.indexes.number.length>=s.indexes.number.length?od.has(e)&&!s.values.length||od.has(t)&&!r.values.length?a_(e,t):So(W1(u_(r,s),s.values),n):(Qs(!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.`),Ga(e,t))};function U1(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?tt(e,t,n):ad(e)(e,t)}const d_=5;function z1(e,t,n){const r=Math.max(t-d_,0);return e1(n-e(r),t-r)}const nt={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},G1=.001;function h_({duration:e=nt.duration,bounce:t=nt.bounce,velocity:n=nt.velocity,mass:r=nt.mass}){let s,o;Qs(e<=Nn(nt.maxDuration),"Spring duration must be 10 seconds or less");let a=1-t;a=Xn(nt.minDamping,nt.maxDamping,a),e=Xn(nt.minDuration,nt.maxDuration,Zn(e)),a<1?(s=d=>{const h=d*a,m=h*e,p=h-n,x=ld(d,a),S=Math.exp(-m);return G1-p/x*S},o=d=>{const m=d*a*e,p=m*n+n,x=Math.pow(a,2)*Math.pow(d,2)*e,S=Math.exp(-m),b=ld(Math.pow(d,2),a);return(-s(d)+G1>0?-1:1)*((p-x)*S)/b}):(s=d=>{const h=Math.exp(-d*e),m=(d-n)*e+1;return-.001+h*m},o=d=>{const h=Math.exp(-d*e),m=(n-d)*(e*e);return h*m});const c=5/e,u=p_(s,o,c);if(e=Nn(e),isNaN(u))return{stiffness:nt.stiffness,damping:nt.damping,duration:e};{const d=Math.pow(u,2)*r;return{stiffness:d,damping:a*2*Math.sqrt(r*d),duration:e}}}const m_=12;function p_(e,t,n){let r=n;for(let s=1;s<m_;s++)r=r-e(r)/t(r);return r}function ld(e,t){return e*Math.sqrt(1-t*t)}const g_=["duration","bounce"],y_=["stiffness","damping","mass"];function Y1(e,t){return t.some(n=>e[n]!==void 0)}function x_(e){let t={velocity:nt.velocity,stiffness:nt.stiffness,damping:nt.damping,mass:nt.mass,isResolvedFromDuration:!1,...e};if(!Y1(e,y_)&&Y1(e,g_))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),s=r*r,o=2*Xn(.05,1,1-(e.bounce||0))*Math.sqrt(s);t={...t,mass:nt.mass,stiffness:s,damping:o}}else{const n=h_(e);t={...t,...n,mass:nt.mass},t.isResolvedFromDuration=!0}return t}function H1(e=nt.visualDuration,t=nt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:s}=n;const o=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],c={done:!1,value:o},{stiffness:u,damping:d,mass:h,duration:m,velocity:p,isResolvedFromDuration:x}=x_({...n,velocity:-Zn(n.velocity||0)}),S=p||0,b=d/(2*Math.sqrt(u*h)),T=a-o,v=Zn(Math.sqrt(u/h)),A=Math.abs(T)<5;r||(r=A?nt.restSpeed.granular:nt.restSpeed.default),s||(s=A?nt.restDelta.granular:nt.restDelta.default);let C;if(b<1){const E=ld(v,b);C=N=>{const R=Math.exp(-b*v*N);return a-R*((S+b*v*T)/E*Math.sin(E*N)+T*Math.cos(E*N))}}else if(b===1)C=E=>a-Math.exp(-v*E)*(T+(S+v*T)*E);else{const E=v*Math.sqrt(b*b-1);C=N=>{const R=Math.exp(-b*v*N),F=Math.min(E*N,300);return a-R*((S+b*v*T)*Math.sinh(F)+E*T*Math.cosh(F))/E}}const I={calculatedDuration:x&&m||null,next:E=>{const N=C(E);if(x)c.done=E>=m;else{let R=0;b<1&&(R=E===0?Nn(S):z1(C,E,N));const F=Math.abs(R)<=r,G=Math.abs(a-N)<=s;c.done=F&&G}return c.value=c.done?a:N,c},toString:()=>{const E=Math.min(F1(I),rd),N=s1(R=>I.next(E*R).value,E,30);return E+"ms "+N}};return I}function q1({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:s=10,bounceStiffness:o=500,modifyTarget:a,min:c,max:u,restDelta:d=.5,restSpeed:h}){const m=e[0],p={done:!1,value:m},x=F=>c!==void 0&&F<c||u!==void 0&&F>u,S=F=>c===void 0?u:u===void 0||Math.abs(c-F)<Math.abs(u-F)?c:u;let b=n*t;const T=m+b,v=a===void 0?T:a(T);v!==T&&(b=v-m);const A=F=>-b*Math.exp(-F/r),C=F=>v+A(F),I=F=>{const G=A(F),re=C(F);p.done=Math.abs(G)<=d,p.value=p.done?v:re};let E,N;const R=F=>{x(p.value)&&(E=F,N=H1({keyframes:[p.value,S(p.value)],velocity:z1(C,F,p.value),damping:s,stiffness:o,restDelta:d,restSpeed:h}))};return R(0),{calculatedDuration:null,next:F=>{let G=!1;return!N&&E===void 0&&(G=!0,I(F),R(F)),E!==void 0&&F>=E?N.next(F-E):(!G&&I(F),p)}}}const v_=vo(.42,0,1,1),b_=vo(0,0,.58,1),K1=vo(.42,0,.58,1),w_=e=>Array.isArray(e)&&typeof e[0]!="number",X1={linear:kt,easeIn:v_,easeInOut:K1,easeOut:b_,circIn:Gf,circInOut:m1,circOut:h1,backIn:zf,backInOut:f1,backOut:u1,anticipate:d1},Z1=e=>{if(Wf(e)){$r(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,s]=e;return vo(t,n,r,s)}else if(typeof e=="string")return $r(X1[e]!==void 0,`Invalid easing type '${e}'`),X1[e];return e};function S_(e,t,n){const r=[],s=n||U1,o=e.length-1;for(let a=0;a<o;a++){let c=s(e[a],e[a+1]);if(t){const u=Array.isArray(t)?t[a]||kt:t;c=So(u,c)}r.push(c)}return r}function T_(e,t,{clamp:n=!0,ease:r,mixer:s}={}){const o=e.length;if($r(o===t.length,"Both input and output ranges must be the same length"),o===1)return()=>t[0];if(o===2&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const c=S_(t,r,s),u=c.length,d=h=>{if(a&&h<e[0])return t[0];let m=0;if(u>1)for(;m<e.length-2&&!(h<e[m+1]);m++);const p=si(e[m],e[m+1],h);return c[m](p)};return n?h=>d(Xn(e[0],e[o-1],h)):d}function C_(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const s=si(0,t,r);e.push(tt(n,1,s))}}function E_(e){const t=[0];return C_(t,e.length-1),t}function P_(e,t){return e.map(n=>n*t)}function A_(e,t){return e.map(()=>t||K1).splice(0,e.length-1)}function To({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const s=w_(r)?r.map(Z1):Z1(r),o={done:!1,value:t[0]},a=P_(n&&n.length===t.length?n:E_(t),e),c=T_(a,t,{ease:Array.isArray(s)?s:A_(t,s)});return{calculatedDuration:e,next:u=>(o.value=c(u),o.done=u>=e,o)}}const M_=e=>{const t=({timestamp:n})=>e(n);return{start:()=>He.update(t,!0),stop:()=>_r(t),now:()=>xt.isProcessing?xt.timestamp:Dn.now()}},O_={decay:q1,inertia:q1,tween:To,keyframes:To,spring:H1},$_=e=>e/100;class cd extends R1{constructor(t){super(t),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,this.state==="idle")return;this.teardown();const{onStop:u}=this.options;u&&u()};const{name:n,motionValue:r,element:s,keyframes:o}=this.options,a=(s==null?void 0:s.KeyframeResolver)||nd,c=(u,d)=>this.onKeyframesResolved(u,d);this.resolver=new a(o,c,n,r,s),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:s=0,repeatType:o,velocity:a=0}=this.options,c=Bf(n)?n:O_[n]||To;let u,d;process.env.NODE_ENV!=="production"&&c!==To&&$r(t.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),c!==To&&typeof t[0]!="number"&&(u=So($_,U1(t[0],t[1])),t=[0,100]);const h=c({...this.options,keyframes:t});o==="mirror"&&(d=c({...this.options,keyframes:[...t].reverse(),velocity:-a})),h.calculatedDuration===null&&(h.calculatedDuration=F1(h));const{calculatedDuration:m}=h,p=m+s,x=p*(r+1)-s;return{generator:h,mirroredGenerator:d,mapPercentToKeyframes:u,calculatedDuration:m,resolvedDuration:p,totalDuration:x}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:F}=this.options;return{done:!0,value:F[F.length-1]}}const{finalKeyframe:s,generator:o,mirroredGenerator:a,mapPercentToKeyframes:c,keyframes:u,calculatedDuration:d,totalDuration:h,resolvedDuration:m}=r;if(this.startTime===null)return o.next(0);const{delay:p,repeat:x,repeatType:S,repeatDelay:b,onUpdate:T}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-h/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const v=this.currentTime-p*(this.speed>=0?1:-1),A=this.speed>=0?v<0:v>h;this.currentTime=Math.max(v,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=h);let C=this.currentTime,I=o;if(x){const F=Math.min(this.currentTime,h)/m;let G=Math.floor(F),re=F%1;!re&&F>=1&&(re=1),re===1&&G--,G=Math.min(G,x+1),!!(G%2)&&(S==="reverse"?(re=1-re,b&&(re-=b/m)):S==="mirror"&&(I=a)),C=Xn(0,1,re)*m}const E=A?{done:!1,value:u[0]}:I.next(C);c&&(E.value=c(E.value));let{done:N}=E;!A&&d!==null&&(N=this.speed>=0?this.currentTime>=h:this.currentTime<=0);const R=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&N);return R&&s!==void 0&&(E.value=za(u,this.options,s)),T&&T(E.value),R&&this.finish(),E}get duration(){const{resolved:t}=this;return t?Zn(t.calculatedDuration):0}get time(){return Zn(this.currentTime)}set time(t){t=Nn(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Zn(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=M_,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),n&&n();const s=this.driver.now();this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=s):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&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(t){return this.startTime=0,this.tick(t,!0)}}const __=new Set(["opacity","clipPath","filter","transform"]);function I_(e,t,n,{delay:r=0,duration:s=300,repeat:o=0,repeatType:a="loop",ease:c="easeInOut",times:u}={}){const d={[t]:n};u&&(d.offset=u);const h=o1(c,s);return Array.isArray(h)&&(d.easing=h),e.animate(d,{delay:r,duration:s,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:o+1,direction:a==="reverse"?"alternate":"normal"})}const D_=Vf(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Ya=10,N_=2e4;function k_(e){return Bf(e.type)||e.type==="spring"||!i1(e.ease)}function j_(e,t){const n=new cd({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const s=[];let o=0;for(;!r.done&&o<N_;)r=n.sample(o),s.push(r.value),o+=Ya;return{times:void 0,keyframes:s,duration:o-Ya,ease:"linear"}}const J1={anticipate:d1,backInOut:f1,circInOut:m1};function L_(e){return e in J1}class Q1 extends R1{constructor(t){super(t);const{name:n,motionValue:r,element:s,keyframes:o}=this.options;this.resolver=new j1(o,(a,c)=>this.onKeyframesResolved(a,c),n,r,s),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:s,ease:o,type:a,motionValue:c,name:u,startTime:d}=this.options;if(!c.owner||!c.owner.current)return!1;if(typeof o=="string"&&Ua()&&L_(o)&&(o=J1[o]),k_(this.options)){const{onComplete:m,onUpdate:p,motionValue:x,element:S,...b}=this.options,T=j_(t,b);t=T.keyframes,t.length===1&&(t[1]=t[0]),r=T.duration,s=T.times,o=T.ease,a="keyframes"}const h=I_(c.owner.current,u,t,{...this.options,duration:r,times:s,ease:o});return h.startTime=d??this.calcStartTime(),this.pendingTimeline?(r1(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{const{onComplete:m}=this.options;c.set(za(t,this.options,n)),m&&m(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:r,times:s,type:a,ease:o,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Zn(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Zn(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Nn(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return kt;const{animation:r}=n;r1(r,t)}return kt}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:s,type:o,ease:a,times:c}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:d,onUpdate:h,onComplete:m,element:p,...x}=this.options,S=new cd({...x,keyframes:r,duration:s,type:o,ease:a,times:c,isGenerator:!0}),b=Nn(this.time);d.setWithVelocity(S.sample(b-Ya).value,S.sample(b).value,Ya)}const{onStop:u}=this.options;u&&u(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:s,repeatType:o,damping:a,type:c}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:u,transformTemplate:d}=n.owner.getProps();return D_()&&r&&__.has(r)&&(r!=="transform"||!d)&&!u&&!s&&o!=="mirror"&&a!==0&&c!=="inertia"}}const R_={type:"spring",stiffness:500,damping:25,restSpeed:10},F_=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),V_={type:"keyframes",duration:.8},B_={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},W_=(e,{keyframes:t})=>t.length>2?V_:ls.has(e)?e.startsWith("scale")?F_(t[1]):R_:B_;function U_({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:s,repeat:o,repeatType:a,repeatDelay:c,from:u,elapsed:d,...h}){return!!Object.keys(h).length}const ud=(e,t,n,r={},s,o)=>a=>{const c=kf(r,e)||{},u=c.delay||r.delay||0;let{elapsed:d=0}=r;d=d-Nn(u);let h={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...c,delay:-d,onUpdate:p=>{t.set(p),c.onUpdate&&c.onUpdate(p)},onComplete:()=>{a(),c.onComplete&&c.onComplete()},name:e,motionValue:t,element:o?void 0:s};U_(c)||(h={...h,...W_(e,h)}),h.duration&&(h.duration=Nn(h.duration)),h.repeatDelay&&(h.repeatDelay=Nn(h.repeatDelay)),h.from!==void 0&&(h.keyframes[0]=h.from);let m=!1;if((h.type===!1||h.duration===0&&!h.repeatDelay)&&(h.duration=0,h.delay===0&&(m=!0)),h.allowFlatten=!c.type&&!c.ease,m&&!o&&t.get()!==void 0){const p=za(h.keyframes,c);if(p!==void 0)return He.update(()=>{h.onUpdate(p),h.onComplete()}),new x3([])}return!o&&Q1.supports(h)?new Q1(h):new cd(h)};function z_({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function ev(e,t,{delay:n=0,transitionOverride:r,type:s}={}){var o;let{transition:a=e.getDefaultTransition(),transitionEnd:c,...u}=t;r&&(a=r);const d=[],h=s&&e.animationState&&e.animationState.getState()[s];for(const m in u){const p=e.getValue(m,(o=e.latestValues[m])!==null&&o!==void 0?o:null),x=u[m];if(x===void 0||h&&z_(h,m))continue;const S={delay:n,...kf(a||{},m)};let b=!1;if(window.MotionHandoffAnimation){const v=n1(e);if(v){const A=window.MotionHandoffAnimation(v,m,He);A!==null&&(S.startTime=A,b=!0)}}Ff(e,m),p.start(ud(m,p,x,e.shouldReduceMotion&&Qx.has(m)?{type:!1}:S,e,b));const T=p.animation;T&&d.push(T)}return c&&Promise.all(d).then(()=>{He.update(()=>{c&&m3(e,c)})}),d}function fd(e,t,n={}){var r;const s=go(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(o=n.transitionOverride);const a=s?()=>Promise.all(ev(e,s,n)):()=>Promise.resolve(),c=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:h=0,staggerChildren:m,staggerDirection:p}=o;return G_(e,t,h+d,m,p,n)}:()=>Promise.resolve(),{when:u}=o;if(u){const[d,h]=u==="beforeChildren"?[a,c]:[c,a];return d().then(()=>h())}else return Promise.all([a(),c(n.delay)])}function G_(e,t,n=0,r=0,s=1,o){const a=[],c=(e.variantChildren.size-1)*r,u=s===1?(d=0)=>d*r:(d=0)=>c-d*r;return Array.from(e.variantChildren).sort(Y_).forEach((d,h)=>{d.notify("AnimationStart",t),a.push(fd(d,t,{...o,delay:n+u(h)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(a)}function Y_(e,t){return e.sortNodePosition(t)}function H_(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const s=t.map(o=>fd(e,o,n));r=Promise.all(s)}else if(typeof t=="string")r=fd(e,t,n);else{const s=typeof t=="function"?go(e,t,n.custom):t;r=Promise.all(ev(e,s,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function tv(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}const q_=wf.length;function nv(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?nv(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<q_;n++){const r=wf[n],s=e.props[r];(fo(s)||s===!1)&&(t[r]=s)}return t}const K_=[...bf].reverse(),X_=bf.length;function Z_(e){return t=>Promise.all(t.map(({animation:n,options:r})=>H_(e,n,r)))}function J_(e){let t=Z_(e),n=rv(),r=!0;const s=u=>(d,h)=>{var m;const p=go(e,h,u==="exit"?(m=e.presenceContext)===null||m===void 0?void 0:m.custom:void 0);if(p){const{transition:x,transitionEnd:S,...b}=p;d={...d,...b,...S}}return d};function o(u){t=u(e)}function a(u){const{props:d}=e,h=nv(e.parent)||{},m=[],p=new Set;let x={},S=1/0;for(let T=0;T<X_;T++){const v=K_[T],A=n[v],C=d[v]!==void 0?d[v]:h[v],I=fo(C),E=v===u?A.isActive:null;E===!1&&(S=T);let N=C===h[v]&&C!==d[v]&&I;if(N&&r&&e.manuallyAnimateOnMount&&(N=!1),A.protectedKeys={...x},!A.isActive&&E===null||!C&&!A.prevProp||Ra(C)||typeof C=="boolean")continue;const R=Q_(A.prevProp,C);let F=R||v===u&&A.isActive&&!N&&I||T>S&&I,G=!1;const re=Array.isArray(C)?C:[C];let ee=re.reduce(s(v),{});E===!1&&(ee={});const{prevResolvedValues:le={}}=A,oe={...le,...ee},ue=U=>{F=!0,p.has(U)&&(G=!0,p.delete(U)),A.needsAnimating[U]=!0;const W=e.getValue(U);W&&(W.liveStyle=!1)};for(const U in oe){const W=ee[U],K=le[U];if(x.hasOwnProperty(U))continue;let $=!1;Df(W)&&Df(K)?$=!tv(W,K):$=W!==K,$?W!=null?ue(U):p.add(U):W!==void 0&&p.has(U)?ue(U):A.protectedKeys[U]=!0}A.prevProp=C,A.prevResolvedValues=ee,A.isActive&&(x={...x,...ee}),r&&e.blockInitialAnimation&&(F=!1),F&&(!(N&&R)||G)&&m.push(...re.map(U=>({animation:U,options:{type:v}})))}if(p.size){const T={};if(typeof d.initial!="boolean"){const v=go(e,Array.isArray(d.initial)?d.initial[0]:d.initial);v&&v.transition&&(T.transition=v.transition)}p.forEach(v=>{const A=e.getBaseTarget(v),C=e.getValue(v);C&&(C.liveStyle=!0),T[v]=A??null}),m.push({animation:T})}let b=!!m.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(b=!1),r=!1,b?t(m):Promise.resolve()}function c(u,d){var h;if(n[u].isActive===d)return Promise.resolve();(h=e.variantChildren)===null||h===void 0||h.forEach(p=>{var x;return(x=p.animationState)===null||x===void 0?void 0:x.setActive(u,d)}),n[u].isActive=d;const m=a(u);for(const p in n)n[p].protectedKeys={};return m}return{animateChanges:a,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=rv(),r=!0}}}function Q_(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!tv(t,e):!1}function ds(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function rv(){return{animate:ds(!0),whileInView:ds(),whileHover:ds(),whileTap:ds(),whileDrag:ds(),whileFocus:ds(),exit:ds()}}class Nr{constructor(t){this.isMounted=!1,this.node=t}update(){}}class eI extends Nr{constructor(t){super(t),t.animationState||(t.animationState=J_(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Ra(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let tI=0;class nI extends Nr{constructor(){super(...arguments),this.id=tI++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const s=this.node.animationState.setActive("exit",!t);n&&!t&&s.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const rI={animation:{Feature:eI},exit:{Feature:nI}},gn={x:!1,y:!1};function sv(){return gn.x||gn.y}function sI(e){return e==="x"||e==="y"?gn[e]?null:(gn[e]=!0,()=>{gn[e]=!1}):gn.x||gn.y?null:(gn.x=gn.y=!0,()=>{gn.x=gn.y=!1})}function Co(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const dd=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Eo(e){return{point:{x:e.pageX,y:e.pageY}}}const iI=e=>t=>dd(t)&&e(t,Eo(t));function Po(e,t,n,r){return Co(e,t,iI(n),r)}function iv({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function oI({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function aI(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}}const ov=1e-4,lI=1-ov,cI=1+ov,av=.01,uI=0-av,fI=0+av;function $t(e){return e.max-e.min}function dI(e,t,n){return Math.abs(e-t)<=n}function lv(e,t,n,r=.5){e.origin=r,e.originPoint=tt(t.min,t.max,e.origin),e.scale=$t(n)/$t(t),e.translate=tt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=lI&&e.scale<=cI||isNaN(e.scale))&&(e.scale=1),(e.translate>=uI&&e.translate<=fI||isNaN(e.translate))&&(e.translate=0)}function Ao(e,t,n,r){lv(e.x,t.x,n.x,r?r.originX:void 0),lv(e.y,t.y,n.y,r?r.originY:void 0)}function cv(e,t,n){e.min=n.min+t.min,e.max=e.min+$t(t)}function hI(e,t,n){cv(e.x,t.x,n.x),cv(e.y,t.y,n.y)}function uv(e,t,n){e.min=t.min-n.min,e.max=e.min+$t(t)}function Mo(e,t,n){uv(e.x,t.x,n.x),uv(e.y,t.y,n.y)}const fv=()=>({translate:0,scale:1,origin:0,originPoint:0}),ai=()=>({x:fv(),y:fv()}),dv=()=>({min:0,max:0}),lt=()=>({x:dv(),y:dv()});function rn(e){return[e("x"),e("y")]}function hd(e){return e===void 0||e===1}function md({scale:e,scaleX:t,scaleY:n}){return!hd(e)||!hd(t)||!hd(n)}function hs(e){return md(e)||hv(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function hv(e){return mv(e.x)||mv(e.y)}function mv(e){return e&&e!=="0%"}function Ha(e,t,n){const r=e-n,s=t*r;return n+s}function pv(e,t,n,r,s){return s!==void 0&&(e=Ha(e,s,r)),Ha(e,n,r)+t}function pd(e,t=0,n=1,r,s){e.min=pv(e.min,t,n,r,s),e.max=pv(e.max,t,n,r,s)}function gv(e,{x:t,y:n}){pd(e.x,t.translate,t.scale,t.originPoint),pd(e.y,n.translate,n.scale,n.originPoint)}const yv=.999999999999,xv=1.0000000000001;function mI(e,t,n,r=!1){const s=n.length;if(!s)return;t.x=t.y=1;let o,a;for(let c=0;c<s;c++){o=n[c],a=o.projectionDelta;const{visualElement:u}=o.options;u&&u.props.style&&u.props.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&ci(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,gv(e,a)),r&&hs(o.latestValues)&&ci(e,o.latestValues))}t.x<xv&&t.x>yv&&(t.x=1),t.y<xv&&t.y>yv&&(t.y=1)}function li(e,t){e.min=e.min+t,e.max=e.max+t}function vv(e,t,n,r,s=.5){const o=tt(e.min,e.max,s);pd(e,t,n,o,r)}function ci(e,t){vv(e.x,t.x,t.scaleX,t.scale,t.originX),vv(e.y,t.y,t.scaleY,t.scale,t.originY)}function bv(e,t){return iv(aI(e.getBoundingClientRect(),t))}function pI(e,t,n){const r=bv(e,n),{scroll:s}=t;return s&&(li(r.x,s.offset.x),li(r.y,s.offset.y)),r}const wv=({current:e})=>e?e.ownerDocument.defaultView:null,Sv=(e,t)=>Math.abs(e-t);function gI(e,t){const n=Sv(e.x,t.x),r=Sv(e.y,t.y);return Math.sqrt(n**2+r**2)}class Tv{constructor(t,n,{transformPagePoint:r,contextWindow:s,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const m=yd(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,x=gI(m.offset,{x:0,y:0})>=3;if(!p&&!x)return;const{point:S}=m,{timestamp:b}=xt;this.history.push({...S,timestamp:b});const{onStart:T,onMove:v}=this.handlers;p||(T&&T(this.lastMoveEvent,m),this.startEvent=this.lastMoveEvent),v&&v(this.lastMoveEvent,m)},this.handlePointerMove=(m,p)=>{this.lastMoveEvent=m,this.lastMoveEventInfo=gd(p,this.transformPagePoint),He.update(this.updatePoint,!0)},this.handlePointerUp=(m,p)=>{this.end();const{onEnd:x,onSessionEnd:S,resumeAnimation:b}=this.handlers;if(this.dragSnapToOrigin&&b&&b(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const T=yd(m.type==="pointercancel"?this.lastMoveEventInfo:gd(p,this.transformPagePoint),this.history);this.startEvent&&x&&x(m,T),S&&S(m,T)},!dd(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=s||window;const a=Eo(t),c=gd(a,this.transformPagePoint),{point:u}=c,{timestamp:d}=xt;this.history=[{...u,timestamp:d}];const{onSessionStart:h}=n;h&&h(t,yd(c,this.history)),this.removeListeners=So(Po(this.contextWindow,"pointermove",this.handlePointerMove),Po(this.contextWindow,"pointerup",this.handlePointerUp),Po(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),_r(this.updatePoint)}}function gd(e,t){return t?{point:t(e.point)}:e}function Cv(e,t){return{x:e.x-t.x,y:e.y-t.y}}function yd({point:e},t){return{point:e,delta:Cv(e,Ev(t)),offset:Cv(e,yI(t)),velocity:xI(t,.1)}}function yI(e){return e[0]}function Ev(e){return e[e.length-1]}function xI(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const s=Ev(e);for(;n>=0&&(r=e[n],!(s.timestamp-r.timestamp>Nn(t)));)n--;if(!r)return{x:0,y:0};const o=Zn(s.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const a={x:(s.x-r.x)/o,y:(s.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function vI(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?tt(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?tt(n,e,r.max):Math.min(e,n)),e}function Pv(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function bI(e,{top:t,left:n,bottom:r,right:s}){return{x:Pv(e.x,n,s),y:Pv(e.y,t,r)}}function Av(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function wI(e,t){return{x:Av(e.x,t.x),y:Av(e.y,t.y)}}function SI(e,t){let n=.5;const r=$t(e),s=$t(t);return s>r?n=si(t.min,t.max-r,e.min):r>s&&(n=si(e.min,e.max-s,t.min)),Xn(0,1,n)}function TI(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const xd=.35;function CI(e=xd){return e===!1?e=0:e===!0&&(e=xd),{x:Mv(e,"left","right"),y:Mv(e,"top","bottom")}}function Mv(e,t,n){return{min:Ov(e,t),max:Ov(e,n)}}function Ov(e,t){return typeof e=="number"?e:e[t]||0}const EI=new WeakMap;class PI{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=lt(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const s=h=>{const{dragSnapToOrigin:m}=this.getProps();m?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Eo(h).point)},o=(h,m)=>{const{drag:p,dragPropagation:x,onDragStart:S}=this.getProps();if(p&&!x&&(this.openDragLock&&this.openDragLock(),this.openDragLock=sI(p),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),rn(T=>{let v=this.getAxisMotionValue(T).get()||0;if(In.test(v)){const{projection:A}=this.visualElement;if(A&&A.layout){const C=A.layout.layoutBox[T];C&&(v=$t(C)*(parseFloat(v)/100))}}this.originPoint[T]=v}),S&&He.postRender(()=>S(h,m)),Ff(this.visualElement,"transform");const{animationState:b}=this.visualElement;b&&b.setActive("whileDrag",!0)},a=(h,m)=>{const{dragPropagation:p,dragDirectionLock:x,onDirectionLock:S,onDrag:b}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:T}=m;if(x&&this.currentDirection===null){this.currentDirection=AI(T),this.currentDirection!==null&&S&&S(this.currentDirection);return}this.updateAxis("x",m.point,T),this.updateAxis("y",m.point,T),this.visualElement.render(),b&&b(h,m)},c=(h,m)=>this.stop(h,m),u=()=>rn(h=>{var m;return this.getAnimationState(h)==="paused"&&((m=this.getAxisMotionValue(h).animation)===null||m===void 0?void 0:m.play())}),{dragSnapToOrigin:d}=this.getProps();this.panSession=new Tv(t,{onSessionStart:s,onStart:o,onMove:a,onSessionEnd:c,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,contextWindow:wv(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:s}=n;this.startAnimation(s);const{onDragEnd:o}=this.getProps();o&&He.postRender(()=>o(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:s}=this.getProps();if(!r||!qa(t,s,this.currentDirection))return;const o=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=vI(a,this.constraints[t],this.elastic[t])),o.set(a)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,o=this.constraints;n&&ti(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&s?this.constraints=bI(s.layoutBox,n):this.constraints=!1,this.elastic=CI(r),o!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&rn(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=TI(s.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!ti(t))return!1;const r=t.current;$r(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:s}=this.visualElement;if(!s||!s.layout)return!1;const o=pI(r,s.root,this.visualElement.getTransformPagePoint());let a=wI(s.layout.layoutBox,o);if(n){const c=n(oI(a));this.hasMutatedConstraints=!!c,c&&(a=iv(c))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:s,dragTransition:o,dragSnapToOrigin:a,onDragTransitionEnd:c}=this.getProps(),u=this.constraints||{},d=rn(h=>{if(!qa(h,n,this.currentDirection))return;let m=u&&u[h]||{};a&&(m={min:0,max:0});const p=s?200:1e6,x=s?40:1e7,S={type:"inertia",velocity:r?t[h]:0,bounceStiffness:p,bounceDamping:x,timeConstant:750,restDelta:1,restSpeed:10,...o,...m};return this.startAxisValueAnimation(h,S)});return Promise.all(d).then(c)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Ff(this.visualElement,t),r.start(ud(t,r,0,n,this.visualElement,!1))}stopAnimation(){rn(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){rn(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),s=r[n];return s||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){rn(n=>{const{drag:r}=this.getProps();if(!qa(n,r,this.currentDirection))return;const{projection:s}=this.visualElement,o=this.getAxisMotionValue(n);if(s&&s.layout){const{min:a,max:c}=s.layout.layoutBox[n];o.set(t[n]-tt(a,c,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!ti(n)||!r||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};rn(a=>{const c=this.getAxisMotionValue(a);if(c&&this.constraints!==!1){const u=c.get();s[a]=SI({min:u,max:u},this.constraints[a])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),rn(a=>{if(!qa(a,t,null))return;const c=this.getAxisMotionValue(a),{min:u,max:d}=this.constraints[a];c.set(tt(u,d,s[a]))})}addListeners(){if(!this.visualElement.current)return;EI.set(this.visualElement,this);const t=this.visualElement.current,n=Po(t,"pointerdown",u=>{const{drag:d,dragListener:h=!0}=this.getProps();d&&h&&this.start(u)}),r=()=>{const{dragConstraints:u}=this.getProps();ti(u)&&u.current&&(this.constraints=this.resolveRefConstraints())},{projection:s}=this.visualElement,o=s.addEventListener("measure",r);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),He.read(r);const a=Co(window,"resize",()=>this.scalePositionWithinConstraints()),c=s.addEventListener("didUpdate",({delta:u,hasLayoutChanged:d})=>{this.isDragging&&d&&(rn(h=>{const m=this.getAxisMotionValue(h);m&&(this.originPoint[h]+=u[h].translate,m.set(m.get()+u[h].translate))}),this.visualElement.render())});return()=>{a(),n(),o(),c&&c()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:s=!1,dragConstraints:o=!1,dragElastic:a=xd,dragMomentum:c=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:s,dragConstraints:o,dragElastic:a,dragMomentum:c}}}function qa(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function AI(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class MI extends Nr{constructor(t){super(t),this.removeGroupControls=kt,this.removeListeners=kt,this.controls=new PI(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||kt}unmount(){this.removeGroupControls(),this.removeListeners()}}const $v=e=>(t,n)=>{e&&He.postRender(()=>e(t,n))};class OI extends Nr{constructor(){super(...arguments),this.removePointerDownListener=kt}onPointerDown(t){this.session=new Tv(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:wv(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:s}=this.node.getProps();return{onSessionStart:$v(t),onStart:$v(n),onMove:r,onEnd:(o,a)=>{delete this.session,s&&He.postRender(()=>s(o,a))}}}mount(){this.removePointerDownListener=Po(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Ka={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function _v(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Oo={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Se.test(e))e=parseFloat(e);else return e;const n=_v(e,t.target.x),r=_v(e,t.target.y);return`${n}% ${r}%`}},$I={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,s=Dr.parse(e);if(s.length>5)return r;const o=Dr.createTransformer(e),a=typeof s[0]!="number"?1:0,c=n.x.scale*t.x,u=n.y.scale*t.y;s[0+a]/=c,s[1+a]/=u;const d=tt(c,u,.5);return typeof s[2+a]=="number"&&(s[2+a]/=d),typeof s[3+a]=="number"&&(s[3+a]/=d),o(s)}};class _I extends O.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:s}=this.props,{projection:o}=t;F5(II),o&&(n.group&&n.group.add(o),r&&r.register&&s&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Ka.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:s,isPresent:o}=this.props,a=r.projection;return a&&(a.isPresent=o,s||t.layoutDependency!==n||n===void 0||t.isPresent!==o?a.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?a.promote():a.relegate()||He.postRender(()=>{const c=a.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Sf.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:s}=t;s&&(s.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(s),r&&r.deregister&&r.deregister(s))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Iv(e){const[t,n]=Cx(),r=O.useContext(pf);return g.jsx(_I,{...e,layoutGroup:r,switchLayoutGroup:O.useContext(kx),isPresent:t,safeToRemove:n})}const II={borderRadius:{...Oo,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Oo,borderTopRightRadius:Oo,borderBottomLeftRadius:Oo,borderBottomRightRadius:Oo,boxShadow:$I};function DI(e,t,n){const r=Ct(e)?e:yo(e);return r.start(ud("",r,t,n)),r.animation}function NI(e){return e instanceof SVGElement&&e.tagName!=="svg"}const kI=(e,t)=>e.depth-t.depth;class jI{constructor(){this.children=[],this.isDirty=!1}add(t){jf(this.children,t),this.isDirty=!0}remove(t){Lf(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(kI),this.isDirty=!1,this.children.forEach(t)}}function LI(e,t){const n=Dn.now(),r=({timestamp:s})=>{const o=s-n;o>=t&&(_r(r),e(o-t))};return He.read(r,!0),()=>_r(r)}const Dv=["TopLeft","TopRight","BottomLeft","BottomRight"],RI=Dv.length,Nv=e=>typeof e=="string"?parseFloat(e):e,kv=e=>typeof e=="number"||Se.test(e);function FI(e,t,n,r,s,o){s?(e.opacity=tt(0,n.opacity!==void 0?n.opacity:1,VI(r)),e.opacityExit=tt(t.opacity!==void 0?t.opacity:1,0,BI(r))):o&&(e.opacity=tt(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let a=0;a<RI;a++){const c=`border${Dv[a]}Radius`;let u=jv(t,c),d=jv(n,c);if(u===void 0&&d===void 0)continue;u||(u=0),d||(d=0),u===0||d===0||kv(u)===kv(d)?(e[c]=Math.max(tt(Nv(u),Nv(d),r),0),(In.test(d)||In.test(u))&&(e[c]+="%")):e[c]=d}(t.rotate||n.rotate)&&(e.rotate=tt(t.rotate||0,n.rotate||0,r))}function jv(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const VI=Lv(0,.5,h1),BI=Lv(.5,.95,kt);function Lv(e,t,n){return r=>r<e?0:r>t?1:n(si(e,t,r))}function Rv(e,t){e.min=t.min,e.max=t.max}function sn(e,t){Rv(e.x,t.x),Rv(e.y,t.y)}function Fv(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Vv(e,t,n,r,s){return e-=t,e=Ha(e,1/n,r),s!==void 0&&(e=Ha(e,1/s,r)),e}function WI(e,t=0,n=1,r=.5,s,o=e,a=e){if(In.test(t)&&(t=parseFloat(t),t=tt(a.min,a.max,t/100)-a.min),typeof t!="number")return;let c=tt(o.min,o.max,r);e===o&&(c-=t),e.min=Vv(e.min,t,n,c,s),e.max=Vv(e.max,t,n,c,s)}function Bv(e,t,[n,r,s],o,a){WI(e,t[n],t[r],t[s],t.scale,o,a)}const UI=["x","scaleX","originX"],zI=["y","scaleY","originY"];function Wv(e,t,n,r){Bv(e.x,t,UI,n?n.x:void 0,r?r.x:void 0),Bv(e.y,t,zI,n?n.y:void 0,r?r.y:void 0)}function Uv(e){return e.translate===0&&e.scale===1}function zv(e){return Uv(e.x)&&Uv(e.y)}function Gv(e,t){return e.min===t.min&&e.max===t.max}function GI(e,t){return Gv(e.x,t.x)&&Gv(e.y,t.y)}function Yv(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Hv(e,t){return Yv(e.x,t.x)&&Yv(e.y,t.y)}function qv(e){return $t(e.x)/$t(e.y)}function Kv(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class YI{constructor(){this.members=[]}add(t){jf(this.members,t),t.scheduleRender()}remove(t){if(Lf(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(s=>t===s);if(n===0)return!1;let r;for(let s=n;s>=0;s--){const o=this.members[s];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:s}=t.options;s===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function HI(e,t,n){let r="";const s=e.x.translate/t.x,o=e.y.translate/t.y,a=(n==null?void 0:n.z)||0;if((s||o||a)&&(r=`translate3d(${s}px, ${o}px, ${a}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:d,rotate:h,rotateX:m,rotateY:p,skewX:x,skewY:S}=n;d&&(r=`perspective(${d}px) ${r}`),h&&(r+=`rotate(${h}deg) `),m&&(r+=`rotateX(${m}deg) `),p&&(r+=`rotateY(${p}deg) `),x&&(r+=`skewX(${x}deg) `),S&&(r+=`skewY(${S}deg) `)}const c=e.x.scale*t.x,u=e.y.scale*t.y;return(c!==1||u!==1)&&(r+=`scale(${c}, ${u})`),r||"none"}const vd=["","X","Y","Z"],qI={visibility:"hidden"},Xv=1e3;let KI=0;function bd(e,t,n,r){const{latestValues:s}=t;s[e]&&(n[e]=s[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Zv(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=n1(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:s,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",He,!(s||o))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Zv(r)}function Jv({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:s}){return class{constructor(a={},c=t==null?void 0:t()){this.id=KI++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(JI),this.nodes.forEach(r6),this.nodes.forEach(s6),this.nodes.forEach(QI)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0;for(let u=0;u<this.path.length;u++)this.path[u].shouldResetTransform=!0;this.root===this&&(this.nodes=new jI)}addEventListener(a,c){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new Rf),this.eventHandlers.get(a).add(c)}notifyListeners(a,...c){const u=this.eventHandlers.get(a);u&&u.notify(...c)}hasListeners(a){return this.eventHandlers.has(a)}mount(a,c=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=NI(a),this.instance=a;const{layoutId:u,layout:d,visualElement:h}=this.options;if(h&&!h.current&&h.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),c&&(d||u)&&(this.isLayoutDirty=!0),e){let m;const p=()=>this.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,m&&m(),m=LI(p,250),Ka.hasAnimatedSinceResize&&(Ka.hasAnimatedSinceResize=!1,this.nodes.forEach(eb))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&h&&(u||d)&&this.addEventListener("didUpdate",({delta:m,hasLayoutChanged:p,hasRelativeLayoutChanged:x,layout:S})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const b=this.options.transition||h.getDefaultTransition()||c6,{onLayoutAnimationStart:T,onLayoutAnimationComplete:v}=h.getProps(),A=!this.targetLayout||!Hv(this.targetLayout,S),C=!p&&x;if(this.options.layoutRoot||this.resumeFrom||C||p&&(A||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(m,C);const I={...kf(b,"layout"),onPlay:T,onComplete:v};(h.shouldReduceMotion||this.options.layoutRoot)&&(I.delay=0,I.type=!1),this.startAnimation(I)}else p||eb(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=S})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,_r(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(i6),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Zv(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let h=0;h<this.path.length;h++){const m=this.path[h];m.shouldResetTransform=!0,m.updateScroll("snapshot"),m.options.layoutRoot&&m.willUpdate(!1)}const{layoutId:c,layout:u}=this.options;if(c===void 0&&!u)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Qv);return}this.isUpdating||this.nodes.forEach(t6),this.isUpdating=!1,this.nodes.forEach(n6),this.nodes.forEach(XI),this.nodes.forEach(ZI),this.clearAllSnapshots();const c=Dn.now();xt.delta=Xn(0,1e3/60,c-xt.timestamp),xt.timestamp=c,xt.isProcessing=!0,vf.update.process(xt),vf.preRender.process(xt),vf.render.process(xt),xt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Sf.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(e6),this.sharedNodes.forEach(o6)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,He.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){He.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!$t(this.snapshot.measuredBox.x)&&!$t(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let u=0;u<this.path.length;u++)this.path[u].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=lt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:c}=this.options;c&&c.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let c=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(c=!1),c){const u=r(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:u,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:u}}}resetTransform(){if(!s)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,c=this.projectionDelta&&!zv(this.projectionDelta),u=this.getTransformTemplate(),d=u?u(this.latestValues,""):void 0,h=d!==this.prevTransformTemplateValue;a&&(c||hs(this.latestValues)||h)&&(s(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const c=this.measurePageBox();let u=this.removeElementScroll(c);return a&&(u=this.removeTransform(u)),u6(u),{animationId:this.root.animationId,measuredBox:c,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){var a;const{visualElement:c}=this.options;if(!c)return lt();const u=c.measureViewportBox();if(!(((a=this.scroll)===null||a===void 0?void 0:a.wasRoot)||this.path.some(f6))){const{scroll:h}=this.root;h&&(li(u.x,h.offset.x),li(u.y,h.offset.y))}return u}removeElementScroll(a){var c;const u=lt();if(sn(u,a),!((c=this.scroll)===null||c===void 0)&&c.wasRoot)return u;for(let d=0;d<this.path.length;d++){const h=this.path[d],{scroll:m,options:p}=h;h!==this.root&&m&&p.layoutScroll&&(m.wasRoot&&sn(u,a),li(u.x,m.offset.x),li(u.y,m.offset.y))}return u}applyTransform(a,c=!1){const u=lt();sn(u,a);for(let d=0;d<this.path.length;d++){const h=this.path[d];!c&&h.options.layoutScroll&&h.scroll&&h!==h.root&&ci(u,{x:-h.scroll.offset.x,y:-h.scroll.offset.y}),hs(h.latestValues)&&ci(u,h.latestValues)}return hs(this.latestValues)&&ci(u,this.latestValues),u}removeTransform(a){const c=lt();sn(c,a);for(let u=0;u<this.path.length;u++){const d=this.path[u];if(!d.instance||!hs(d.latestValues))continue;md(d.latestValues)&&d.updateSnapshot();const h=lt(),m=d.measurePageBox();sn(h,m),Wv(c,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,h)}return hs(this.latestValues)&&Wv(c,this.latestValues),c}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==xt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var c;const u=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=u.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=u.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=u.isSharedProjectionDirty);const d=!!this.resumingFrom||this!==u;if(!(a||d&&this.isSharedProjectionDirty||this.isProjectionDirty||!((c=this.parent)===null||c===void 0)&&c.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:m,layoutId:p}=this.options;if(!(!this.layout||!(m||p))){if(this.resolvedRelativeTargetAt=xt.timestamp,!this.targetDelta&&!this.relativeTarget){const x=this.getClosestProjectingParent();x&&x.layout&&this.animationProgress!==1?(this.relativeParent=x,this.forceRelativeParentToResolveTarget(),this.relativeTarget=lt(),this.relativeTargetOrigin=lt(),Mo(this.relativeTargetOrigin,this.layout.layoutBox,x.layout.layoutBox),sn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=lt(),this.targetWithTransforms=lt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),hI(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):sn(this.target,this.layout.layoutBox),gv(this.target,this.targetDelta)):sn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const x=this.getClosestProjectingParent();x&&!!x.resumingFrom==!!this.resumingFrom&&!x.options.layoutScroll&&x.target&&this.animationProgress!==1?(this.relativeParent=x,this.forceRelativeParentToResolveTarget(),this.relativeTarget=lt(),this.relativeTargetOrigin=lt(),Mo(this.relativeTargetOrigin,this.target,x.target),sn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||md(this.parent.latestValues)||hv(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var a;const c=this.getLead(),u=!!this.resumingFrom||this!==c;let d=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(d=!1),u&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(d=!1),this.resolvedRelativeTargetAt===xt.timestamp&&(d=!1),d)return;const{layout:h,layoutId:m}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(h||m))return;sn(this.layoutCorrected,this.layout.layoutBox);const p=this.treeScale.x,x=this.treeScale.y;mI(this.layoutCorrected,this.treeScale,this.path,u),c.layout&&!c.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(c.target=c.layout.layoutBox,c.targetWithTransforms=lt());const{target:S}=c;if(!S){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Fv(this.prevProjectionDelta.x,this.projectionDelta.x),Fv(this.prevProjectionDelta.y,this.projectionDelta.y)),Ao(this.projectionDelta,this.layoutCorrected,S,this.latestValues),(this.treeScale.x!==p||this.treeScale.y!==x||!Kv(this.projectionDelta.x,this.prevProjectionDelta.x)||!Kv(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",S))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){var c;if((c=this.options.visualElement)===null||c===void 0||c.scheduleRender(),a){const u=this.getStack();u&&u.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ai(),this.projectionDelta=ai(),this.projectionDeltaWithTransform=ai()}setAnimationOrigin(a,c=!1){const u=this.snapshot,d=u?u.latestValues:{},h={...this.latestValues},m=ai();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!c;const p=lt(),x=u?u.source:void 0,S=this.layout?this.layout.source:void 0,b=x!==S,T=this.getStack(),v=!T||T.members.length<=1,A=!!(b&&!v&&this.options.crossfade===!0&&!this.path.some(l6));this.animationProgress=0;let C;this.mixTargetDelta=I=>{const E=I/1e3;tb(m.x,a.x,E),tb(m.y,a.y,E),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Mo(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),a6(this.relativeTarget,this.relativeTargetOrigin,p,E),C&&GI(this.relativeTarget,C)&&(this.isProjectionDirty=!1),C||(C=lt()),sn(C,this.relativeTarget)),b&&(this.animationValues=h,FI(h,d,this.latestValues,E,A,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=E},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(_r(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=He.update(()=>{Ka.hasAnimatedSinceResize=!0,this.currentAnimation=DI(0,Xv,{...a,onUpdate:c=>{this.mixTargetDelta(c),a.onUpdate&&a.onUpdate(c)},onStop:()=>{},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Xv),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:c,target:u,layout:d,latestValues:h}=a;if(!(!c||!u||!d)){if(this!==a&&this.layout&&d&&ob(this.options.animationType,this.layout.layoutBox,d.layoutBox)){u=this.target||lt();const m=$t(this.layout.layoutBox.x);u.x.min=a.target.x.min,u.x.max=u.x.min+m;const p=$t(this.layout.layoutBox.y);u.y.min=a.target.y.min,u.y.max=u.y.min+p}sn(c,u),ci(c,h),Ao(this.projectionDeltaWithTransform,this.layoutCorrected,c,h)}}registerSharedNode(a,c){this.sharedNodes.has(a)||this.sharedNodes.set(a,new YI),this.sharedNodes.get(a).add(c);const d=c.options.initialPromotionConfig;c.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(c):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:c}=this.options;return c?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:c}=this.options;return c?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:c,preserveFollowOpacity:u}={}){const d=this.getStack();d&&d.promote(this,u),a&&(this.projectionDelta=void 0,this.needsReset=!0),c&&this.setOptions({transition:c})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let c=!1;const{latestValues:u}=a;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(c=!0),!c)return;const d={};u.z&&bd("z",a,d,this.animationValues);for(let h=0;h<vd.length;h++)bd(`rotate${vd[h]}`,a,d,this.animationValues),bd(`skew${vd[h]}`,a,d,this.animationValues);a.render();for(const h in d)a.setStaticValue(h,d[h]),this.animationValues&&(this.animationValues[h]=d[h]);a.scheduleRender()}getProjectionStyles(a){var c,u;if(!this.instance||this.isSVG)return;if(!this.isVisible)return qI;const d={visibility:""},h=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,d.opacity="",d.pointerEvents=Ba(a==null?void 0:a.pointerEvents)||"",d.transform=h?h(this.latestValues,""):"none",d;const m=this.getLead();if(!this.projectionDelta||!this.layout||!m.target){const b={};return this.options.layoutId&&(b.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,b.pointerEvents=Ba(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!hs(this.latestValues)&&(b.transform=h?h({},""):"none",this.hasProjected=!1),b}const p=m.animationValues||m.latestValues;this.applyTransformsToTarget(),d.transform=HI(this.projectionDeltaWithTransform,this.treeScale,p),h&&(d.transform=h(p,d.transform));const{x,y:S}=this.projectionDelta;d.transformOrigin=`${x.origin*100}% ${S.origin*100}% 0`,m.animationValues?d.opacity=m===this?(u=(c=p.opacity)!==null&&c!==void 0?c:this.latestValues.opacity)!==null&&u!==void 0?u:1:this.preserveOpacity?this.latestValues.opacity:p.opacityExit:d.opacity=m===this?p.opacity!==void 0?p.opacity:"":p.opacityExit!==void 0?p.opacityExit:0;for(const b in ho){if(p[b]===void 0)continue;const{correct:T,applyTo:v,isCSSVariable:A}=ho[b],C=d.transform==="none"?p[b]:T(p[b],m);if(v){const I=v.length;for(let E=0;E<I;E++)d[v[E]]=C}else A?this.options.visualElement.renderState.vars[b]=C:d[b]=C}return this.options.layoutId&&(d.pointerEvents=m===this?Ba(a==null?void 0:a.pointerEvents)||"":"none"),d}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var c;return(c=a.currentAnimation)===null||c===void 0?void 0:c.stop()}),this.root.nodes.forEach(Qv),this.root.sharedNodes.clear()}}}function XI(e){e.updateLayout()}function ZI(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:s}=e.layout,{animationType:o}=e.options,a=n.source!==e.layout.source;o==="size"?rn(m=>{const p=a?n.measuredBox[m]:n.layoutBox[m],x=$t(p);p.min=r[m].min,p.max=p.min+x}):ob(o,n.layoutBox,r)&&rn(m=>{const p=a?n.measuredBox[m]:n.layoutBox[m],x=$t(r[m]);p.max=p.min+x,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[m].max=e.relativeTarget[m].min+x)});const c=ai();Ao(c,r,n.layoutBox);const u=ai();a?Ao(u,e.applyTransform(s,!0),n.measuredBox):Ao(u,r,n.layoutBox);const d=!zv(c);let h=!1;if(!e.resumeFrom){const m=e.getClosestProjectingParent();if(m&&!m.resumeFrom){const{snapshot:p,layout:x}=m;if(p&&x){const S=lt();Mo(S,n.layoutBox,p.layoutBox);const b=lt();Mo(b,r,x.layoutBox),Hv(S,b)||(h=!0),m.options.layoutRoot&&(e.relativeTarget=b,e.relativeTargetOrigin=S,e.relativeParent=m)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:u,layoutDelta:c,hasLayoutChanged:d,hasRelativeLayoutChanged:h})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function JI(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function QI(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function e6(e){e.clearSnapshot()}function Qv(e){e.clearMeasurements()}function t6(e){e.isLayoutDirty=!1}function n6(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function eb(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function r6(e){e.resolveTargetDelta()}function s6(e){e.calcProjection()}function i6(e){e.resetSkewAndRotation()}function o6(e){e.removeLeadSnapshot()}function tb(e,t,n){e.translate=tt(t.translate,0,n),e.scale=tt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function nb(e,t,n,r){e.min=tt(t.min,n.min,r),e.max=tt(t.max,n.max,r)}function a6(e,t,n,r){nb(e.x,t.x,n.x,r),nb(e.y,t.y,n.y,r)}function l6(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const c6={duration:.45,ease:[.4,0,.1,1]},rb=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),sb=rb("applewebkit/")&&!rb("chrome/")?Math.round:kt;function ib(e){e.min=sb(e.min),e.max=sb(e.max)}function u6(e){ib(e.x),ib(e.y)}function ob(e,t,n){return e==="position"||e==="preserve-aspect"&&!dI(qv(t),qv(n),.2)}function f6(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const d6=Jv({attachResizeListener:(e,t)=>Co(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),wd={current:void 0},ab=Jv({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!wd.current){const e=new d6({});e.mount(window),e.setOptions({layoutScroll:!0}),wd.current=e}return wd.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),h6={pan:{Feature:OI},drag:{Feature:MI,ProjectionNode:ab,MeasureLayout:Iv}};function m6(e,t,n){var r;if(e instanceof EventTarget)return[e];if(typeof e=="string"){let s=document;const o=(r=void 0)!==null&&r!==void 0?r:s.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}function lb(e,t){const n=m6(e),r=new AbortController,s={passive:!0,...t,signal:r.signal};return[n,s,()=>r.abort()]}function cb(e){return!(e.pointerType==="touch"||sv())}function p6(e,t,n={}){const[r,s,o]=lb(e,n),a=c=>{if(!cb(c))return;const{target:u}=c,d=t(u,c);if(typeof d!="function"||!u)return;const h=m=>{cb(m)&&(d(m),u.removeEventListener("pointerleave",h))};u.addEventListener("pointerleave",h,s)};return r.forEach(c=>{c.addEventListener("pointerenter",a,s)}),o}function ub(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const s="onHover"+n,o=r[s];o&&He.postRender(()=>o(t,Eo(t)))}class g6 extends Nr{mount(){const{current:t}=this.node;t&&(this.unmount=p6(t,(n,r)=>(ub(this.node,r,"Start"),s=>ub(this.node,s,"End"))))}unmount(){}}class y6 extends Nr{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!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=So(Co(this.node.current,"focus",()=>this.onFocus()),Co(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const fb=(e,t)=>t?e===t?!0:fb(e,t.parentElement):!1,x6=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function v6(e){return x6.has(e.tagName)||e.tabIndex!==-1}const $o=new WeakSet;function db(e){return t=>{t.key==="Enter"&&e(t)}}function Sd(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const b6=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=db(()=>{if($o.has(n))return;Sd(n,"down");const s=db(()=>{Sd(n,"up")}),o=()=>Sd(n,"cancel");n.addEventListener("keyup",s,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function hb(e){return dd(e)&&!sv()}function w6(e,t,n={}){const[r,s,o]=lb(e,n),a=c=>{const u=c.currentTarget;if(!hb(c)||$o.has(u))return;$o.add(u);const d=t(u,c),h=(x,S)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",p),!(!hb(x)||!$o.has(u))&&($o.delete(u),typeof d=="function"&&d(x,{success:S}))},m=x=>{h(x,u===window||u===document||n.useGlobalTarget||fb(u,x.target))},p=x=>{h(x,!1)};window.addEventListener("pointerup",m,s),window.addEventListener("pointercancel",p,s)};return r.forEach(c=>{(n.useGlobalTarget?window:c).addEventListener("pointerdown",a,s),c instanceof HTMLElement&&(c.addEventListener("focus",d=>b6(d,s)),!v6(c)&&c.tabIndex===null&&(c.tabIndex=0))}),o}function mb(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const s="onTap"+(n==="End"?"":n),o=r[s];o&&He.postRender(()=>o(t,Eo(t)))}class S6 extends Nr{mount(){const{current:t}=this.node;t&&(this.unmount=w6(t,(n,r)=>(mb(this.node,r,"Start"),(s,{success:o})=>mb(this.node,s,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Td=new WeakMap,Cd=new WeakMap,T6=e=>{const t=Td.get(e.target);t&&t(e)},C6=e=>{e.forEach(T6)};function E6({root:e,...t}){const n=e||document;Cd.has(n)||Cd.set(n,{});const r=Cd.get(n),s=JSON.stringify(t);return r[s]||(r[s]=new IntersectionObserver(C6,{root:e,...t})),r[s]}function P6(e,t,n){const r=E6(t);return Td.set(e,n),r.observe(e),()=>{Td.delete(e),r.unobserve(e)}}const A6={some:0,all:1};class M6 extends Nr{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:s="some",once:o}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof s=="number"?s:A6[s]},c=u=>{const{isIntersecting:d}=u;if(this.isInView===d||(this.isInView=d,o&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:h,onViewportLeave:m}=this.node.getProps(),p=d?h:m;p&&p(u)};return P6(this.node.current,a,c)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(O6(t,n))&&this.startObserver()}unmount(){}}function O6({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const $6={inView:{Feature:M6},tap:{Feature:S6},focus:{Feature:y6},hover:{Feature:g6}},_6={layout:{ProjectionNode:ab,MeasureLayout:Iv}},Ed={current:null},pb={current:!1};function I6(){if(pb.current=!0,!!yf)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Ed.current=e.matches;e.addListener(t),t()}else Ed.current=!1}const D6=[...N1,Et,Dr],N6=e=>D6.find(D1(e)),k6=new WeakMap;function j6(e,t,n){for(const r in t){const s=t[r],o=n[r];if(Ct(s))e.addValue(r,s),process.env.NODE_ENV==="development"&&ja(s.version==="12.6.2",`Attempting to mix Motion versions ${s.version} with 12.6.2 may not work as expected.`);else if(Ct(o))e.addValue(r,yo(s,{owner:e}));else if(o!==s)if(e.hasValue(r)){const a=e.getValue(r);a.liveStyle===!0?a.jump(s):a.hasAnimated||a.set(s)}else{const a=e.getStaticValue(r);e.addValue(r,yo(a!==void 0?a:s,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const gb=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class L6{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:s,blockInitialAnimation:o,visualState:a},c={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=nd,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 x=Dn.now();this.renderScheduledAt<x&&(this.renderScheduledAt=x,He.render(this.render,!1,!0))};const{latestValues:u,renderState:d,onUpdate:h}=a;this.onUpdate=h,this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=s,this.options=c,this.blockInitialAnimation=!!o,this.isControllingVariants=Fa(n),this.isVariantNode=Ix(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:m,...p}=this.scrapeMotionValuesFromProps(n,{},this);for(const x in p){const S=p[x];u[x]!==void 0&&Ct(S)&&S.set(u[x],!1)}}mount(t){this.current=t,k6.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),pb.current||I6(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Ed.current,process.env.NODE_ENV!=="production"&&ja(this.shouldReduceMotion!==!0,"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(){this.projection&&this.projection.unmount(),_r(this.notifyUpdate),_r(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=ls.has(t);r&&this.onBindTransform&&this.onBindTransform();const s=n.on("change",c=>{this.latestValues[t]=c,this.props.onUpdate&&He.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{s(),o(),a&&a(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in ei){const n=ei[t];if(!n)continue;const{isEnabled:r,Feature:s}=n;if(!this.features[t]&&s&&r(this.props)&&(this.features[t]=new s(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):lt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<gb.length;r++){const s=gb[r];this.propEventSubscriptions[s]&&(this.propEventSubscriptions[s](),delete this.propEventSubscriptions[s]);const o="on"+s,a=t[o];a&&(this.propEventSubscriptions[s]=this.on(s,a))}this.prevMotionValues=j6(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]: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(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=yo(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let s=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return s!=null&&(typeof s=="string"&&(_1(s)||p1(s))?s=parseFloat(s):!N6(s)&&Dr.test(n)&&(s=T1(t,n)),this.setBaseTarget(t,Ct(s)?s.get():s)),Ct(s)?s.get():s}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let s;if(typeof r=="string"||typeof r=="object"){const a=If(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);a&&(s=a[t])}if(r&&s!==void 0)return s;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!Ct(o)?o:this.initialValues[t]!==void 0&&s===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Rf),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class yb extends L6{constructor(){super(...arguments),this.KeyframeResolver=j1}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Ct(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function R6(e){return window.getComputedStyle(e)}class F6 extends yb{constructor(){super(...arguments),this.type="html",this.renderInstance=qx}readValueFromInstance(t,n){if(ls.has(n))return z3(t,n);{const r=R6(t),s=(Cf(n)?r.getPropertyValue(n):r[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:n}){return bv(t,n)}build(t,n,r){Af(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Nf(t,n,r)}}class V6 extends yb{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=lt,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&Hx(this.current,this.renderState)}}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(ls.has(n)){const r=S1(n);return r&&r.default||0}return n=Kx.has(n)?n:Tf(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Zx(t,n,r)}onBindTransform(){this.current&&!this.renderState.dimensions&&He.postRender(this.updateDimensions)}build(t,n,r){$f(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,s){Xx(t,n,r,s)}mount(t){this.isSVGTag=_f(t.tagName),super.mount(t)}}const B6=(e,t)=>Of(e)?new V6(t):new F6(t,{allowProjection:e!==O.Fragment}),W6=c3({...rI,...$6,...h6,..._6},B6),st=P5(W6),Pd={defaultColorScheme:"aqua",t:e=>e},xb=O.createContext(Pd),Ve=()=>O.useContext(xb),U6={date:(e,t)=>new Date(t.created_at??"").toDateString()===e.toDateString(),search:(e,t)=>JSON.stringify(t).toLowerCase().includes(e.toLowerCase())};function z6(e,t){const[n,r]=O.useState([]),s=O.useCallback(({key:h,value:m,label:p,type:x,icon:S,options:b})=>{if(n.find(A=>A.key===h)){console.warn(`El filtro con key "${String(h)}" ya existe, salteando la actualización...`);return}let v;typeof t=="string"?v=U6[t]:v=t[h]||t[h],r(A=>[...A,{key:h,value:m,label:p,type:x,icon:S,options:b,fn:v}])},[t,n]),o=O.useCallback(({key:h,value:m})=>{r(p=>p.map(x=>x.key===h?{...x,value:m}:x))},[]),a=O.useCallback(({key:h})=>{r(m=>m.filter(p=>p.key!==h))},[]),c=O.useCallback(()=>{r([])},[]),u=O.useMemo(()=>n.reduce((h,m)=>h.filter(p=>m.fn(m.value,p)),e),[e,n]),d=O.useMemo(()=>({addFilter:s,updateFilter:o,removeFilter:a,clearFilters:c,activeFilters:n.map(h=>({key:h.key,value:h.value,label:h.label,type:h.type,icon:h.icon,options:h.options}))}),[s,o,a,c,n]);return{data:u,filterControl:d}}const vb=({title:e,description:t,open:n,onClose:r,onConfirm:s,onCancel:o,showCloseButton:a=!0})=>{const{t:c}=Ve(),u={hidden:{opacity:0},visible:{opacity:1}},d={hidden:{opacity:0,scale:.8,y:-20},visible:{opacity:1,scale:1,y:0,transition:{type:"spring",stiffness:300,damping:25}},exit:{opacity:0,scale:.8,y:20,transition:{duration:.2}}},h=()=>{s==null||s(),r()},m=()=>{o==null||o(),r()};return g.jsx(Kn,{children:n&&g.jsx(g.Fragment,{children:g.jsx(st.div,{className:"fixed inset-0 bg-black/50 z-9999 flex items-center justify-center",initial:"hidden",animate:"visible",exit:"hidden",variants:u,onClick:r,children:g.jsx(st.div,{className:"w-full max-w-4xl mx-16 z-50",variants:d,initial:"hidden",animate:"visible",exit:"exit",onClick:p=>p.stopPropagation(),children:g.jsxs(yi,{className:"flex flex-col gap-16 p-32",children:[g.jsxs("div",{className:"flex justify-between items-center gap-16",children:[g.jsx("h3",{className:"text-black font-700 text-3xl",children:e}),a&&g.jsx(Pe,{icon:mf,className:"cursor-pointer text-2xl text-gray-500 transition-all duration-300 hover:text-gray-700",onClick:r})]}),g.jsx("p",{className:"text-gray-500 text-xl font-600",children:t}),g.jsxs("div",{className:"flex justify-end w-full gap-16",children:[o&&g.jsx(xs,{onClick:m,variant:"transparent",className:"px-24 py-10! text-lg!",children:c("cancel")}),s&&g.jsx(xs,{onClick:h,className:"px-24 py-16 text-lg!",children:c("confirm")})]})]})})})})})};/*!
|
|
663
|
+
`),()=>{document.head.removeChild(x)}},[t]),g.jsx(p3,{isPresent:t,childRef:s,sizeRef:o,children:me.cloneElement(e,{ref:s})})}const y3=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:s,presenceAffectsLayout:o,mode:a,anchorX:c})=>{const u=gf(x3),d=O.useId(),h=O.useCallback(p=>{u.set(p,!0);for(const x of u.values())if(!x)return;r&&r()},[u,r]),m=O.useMemo(()=>({id:d,initial:t,isPresent:n,custom:s,onExitComplete:h,register:p=>(u.set(p,!1),()=>u.delete(p))}),o?[Math.random(),h]:[n,h]);return O.useMemo(()=>{u.forEach((p,x)=>u.set(x,!1))},[n]),me.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),a==="popLayout"&&(e=g.jsx(g3,{isPresent:n,anchorX:c,children:e})),g.jsx(Ia.Provider,{value:m,children:e})};function x3(){return new Map}function Cx(e=!0){const t=O.useContext(Ia);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:s}=t,o=O.useId();O.useEffect(()=>{if(e)return s(o)},[e]);const a=O.useCallback(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,a]:[!0]}const Da=e=>e.key||"";function Ex(e){const t=[];return O.Children.forEach(e,n=>{O.isValidElement(n)&&t.push(n)}),t}const Kn=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:s=!0,mode:o="sync",propagate:a=!1,anchorX:c="left"})=>{const[u,d]=Cx(a),h=O.useMemo(()=>Ex(e),[e]),m=a&&!u?[]:h.map(Da),p=O.useRef(!0),x=O.useRef(h),S=gf(()=>new Map),[b,T]=O.useState(h),[v,A]=O.useState(h);Tx(()=>{p.current=!1,x.current=h;for(let E=0;E<v.length;E++){const N=Da(v[E]);m.includes(N)?S.delete(N):S.get(N)!==!0&&S.set(N,!1)}},[v,m.length,m.join("-")]);const C=[];if(h!==b){let E=[...h];for(let N=0;N<v.length;N++){const R=v[N],F=Da(R);m.includes(F)||(E.splice(N,0,R),C.push(R))}return o==="wait"&&C.length&&(E=C),A(Ex(E)),T(h),null}process.env.NODE_ENV!=="production"&&o==="wait"&&v.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:I}=O.useContext(pf);return g.jsx(g.Fragment,{children:v.map(E=>{const N=Da(E),R=a&&!u?!1:h===v||m.includes(N),F=()=>{if(S.has(N))S.set(N,!0);else return;let G=!0;S.forEach(re=>{re||(G=!1)}),G&&(I==null||I(),A(x.current),a&&(d==null||d()),r&&r())};return g.jsx(y3,{isPresent:R,initial:!p.current||n?void 0:!1,custom:t,presenceAffectsLayout:s,mode:o,onExitComplete:R?void 0:F,anchorX:c,children:E},N)})})},kt=e=>e;let Qs=kt,$r=kt;process.env.NODE_ENV!=="production"&&(Qs=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},$r=(e,t)=>{if(!e)throw new Error(t)});const v3={useManualTiming:!1},Na=["read","resolveKeyframes","update","preRender","render","postRender"],Px={value:null};function b3(e,t){let n=new Set,r=new Set,s=!1,o=!1;const a=new WeakSet;let c={delta:0,timestamp:0,isProcessing:!1},u=0;function d(m){a.has(m)&&(h.schedule(m),e()),u++,m(c)}const h={schedule:(m,p=!1,x=!1)=>{const b=x&&s?n:r;return p&&a.add(m),b.has(m)||b.add(m),m},cancel:m=>{r.delete(m),a.delete(m)},process:m=>{if(c=m,s){o=!0;return}s=!0,[n,r]=[r,n],n.forEach(d),t&&Px.value&&Px.value.frameloop[t].push(u),u=0,n.clear(),s=!1,o&&(o=!1,h.process(m))}};return h}const w3=40;function Ax(e,t){let n=!1,r=!0;const s={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,a=Na.reduce((v,A)=>(v[A]=b3(o,t?A:void 0),v),{}),{read:c,resolveKeyframes:u,update:d,preRender:h,render:m,postRender:p}=a,x=()=>{const v=performance.now();n=!1,s.delta=r?1e3/60:Math.max(Math.min(v-s.timestamp,w3),1),s.timestamp=v,s.isProcessing=!0,c.process(s),u.process(s),d.process(s),h.process(s),m.process(s),p.process(s),s.isProcessing=!1,n&&t&&(r=!1,e(x))},S=()=>{n=!0,r=!0,s.isProcessing||e(x)};return{schedule:Na.reduce((v,A)=>{const C=a[A];return v[A]=(I,E=!1,N=!1)=>(n||S(),C.schedule(I,E,N)),v},{}),cancel:v=>{for(let A=0;A<Na.length;A++)a[Na[A]].cancel(v)},state:s,steps:a}}const{schedule:He,cancel:_r,state:xt,steps:vf}=Ax(typeof requestAnimationFrame<"u"?requestAnimationFrame:kt,!0),Mx=O.createContext({strict:!1}),Ox={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"]},ei={};for(const e in Ox)ei[e]={isEnabled:t=>Ox[e].some(n=>!!t[n])};function S3(e){for(const t in e)ei[t]={...ei[t],...e[t]}}const T3=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 ka(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||T3.has(e)}let $x=e=>!ka(e);function C3(e){e&&($x=t=>t.startsWith("on")?!ka(t):e(t))}try{C3(require("@emotion/is-prop-valid").default)}catch{}function E3(e,t,n){const r={};for(const s in e)s==="values"&&typeof e.values=="object"||($x(s)||n===!0&&ka(s)||!t&&!ka(s)||e.draggable&&s.startsWith("onDrag"))&&(r[s]=e[s]);return r}const _x=new Set;function ja(e,t,n){e||_x.has(t)||(console.warn(t),_x.add(t))}function P3(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&ja(!1,"motion() is deprecated. Use motion.create() instead."),e(...r));return new Proxy(n,{get:(r,s)=>s==="create"?e:(t.has(s)||t.set(s,e(s)),t.get(s))})}const La=O.createContext({});function Ra(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function fo(e){return typeof e=="string"||Array.isArray(e)}const bf=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],wf=["initial",...bf];function Fa(e){return Ra(e.animate)||wf.some(t=>fo(e[t]))}function Ix(e){return!!(Fa(e)||e.variants)}function A3(e,t){if(Fa(e)){const{initial:n,animate:r}=e;return{initial:n===!1||fo(n)?n:void 0,animate:fo(r)?r:void 0}}return e.inherit!==!1?t:{}}function M3(e){const{initial:t,animate:n}=A3(e,O.useContext(La));return O.useMemo(()=>({initial:t,animate:n}),[Dx(t),Dx(n)])}function Dx(e){return Array.isArray(e)?e.join(" "):e}const O3=Symbol.for("motionComponentSymbol");function ti(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function $3(e,t,n){return O.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):ti(n)&&(n.current=r))},[t])}const{schedule:Sf}=Ax(queueMicrotask,!1),Tf=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Nx="data-"+Tf("framerAppearId"),kx=O.createContext({});function _3(e,t,n,r,s){var o,a;const{visualElement:c}=O.useContext(La),u=O.useContext(Mx),d=O.useContext(Ia),h=O.useContext(xf).reducedMotion,m=O.useRef(null);r=r||u.renderer,!m.current&&r&&(m.current=r(e,{visualState:t,parent:c,props:n,presenceContext:d,blockInitialAnimation:d?d.initial===!1:!1,reducedMotionConfig:h}));const p=m.current,x=O.useContext(kx);p&&!p.projection&&s&&(p.type==="html"||p.type==="svg")&&I3(m.current,n,s,x);const S=O.useRef(!1);O.useInsertionEffect(()=>{p&&S.current&&p.update(n,d)});const b=n[Nx],T=O.useRef(!!b&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,b))&&((a=window.MotionHasOptimisedAnimation)===null||a===void 0?void 0:a.call(window,b)));return Tx(()=>{p&&(S.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),Sf.render(p.render),T.current&&p.animationState&&p.animationState.animateChanges())}),O.useEffect(()=>{p&&(!T.current&&p.animationState&&p.animationState.animateChanges(),T.current&&(queueMicrotask(()=>{var v;(v=window.MotionHandoffMarkAsComplete)===null||v===void 0||v.call(window,b)}),T.current=!1))}),p}function I3(e,t,n,r){const{layoutId:s,layout:o,drag:a,dragConstraints:c,layoutScroll:u,layoutRoot:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:jx(e.parent)),e.projection.setOptions({layoutId:s,layout:o,alwaysMeasureLayout:!!a||c&&ti(c),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:u,layoutRoot:d})}function jx(e){if(e)return e.options.allowProjection!==!1?e.projection:jx(e.parent)}function D3({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:s}){var o,a;e&&S3(e);function c(d,h){let m;const p={...O.useContext(xf),...d,layoutId:N3(d)},{isStatic:x}=p,S=M3(d),b=r(d,x);if(!x&&yf){k3(p,e);const T=j3(p);m=T.MeasureLayout,S.visualElement=_3(s,b,p,t,T.ProjectionNode)}return g.jsxs(La.Provider,{value:S,children:[m&&S.visualElement?g.jsx(m,{visualElement:S.visualElement,...p}):null,n(s,d,$3(b,S.visualElement,h),b,x,S.visualElement)]})}c.displayName=`motion.${typeof s=="string"?s:`create(${(a=(o=s.displayName)!==null&&o!==void 0?o:s.name)!==null&&a!==void 0?a:""})`}`;const u=O.forwardRef(c);return u[O3]=s,u}function N3({layoutId:e}){const t=O.useContext(pf).id;return t&&e!==void 0?t+"-"+e:e}function k3(e,t){const n=O.useContext(Mx).strict;if(process.env.NODE_ENV!=="production"&&t&&n){const r="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?Qs(!1,r):$r(!1,r)}}function j3(e){const{drag:t,layout:n}=ei;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const Lx=e=>t=>typeof t=="string"&&t.startsWith(e),Cf=Lx("--"),L3=Lx("var(--"),Ef=e=>L3(e)?R3.test(e.split("/*")[0].trim()):!1,R3=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,ho={};function F3(e){for(const t in e)ho[t]=e[t],Cf(t)&&(ho[t].isCSSVariable=!0)}const ni=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ls=new Set(ni);function Rx(e,{layout:t,layoutId:n}){return ls.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!ho[e]||e==="opacity")}const Ct=e=>!!(e&&e.getVelocity),Fx=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Xn=(e,t,n)=>n>t?t:n<e?e:n,ri={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},mo={...ri,transform:e=>Xn(0,1,e)},Va={...ri,default:1},po=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Ir=po("deg"),In=po("%"),Se=po("px"),V3=po("vh"),B3=po("vw"),Vx={...In,parse:e=>In.parse(e)/100,transform:e=>In.transform(e*100)},W3={borderWidth:Se,borderTopWidth:Se,borderRightWidth:Se,borderBottomWidth:Se,borderLeftWidth:Se,borderRadius:Se,radius:Se,borderTopLeftRadius:Se,borderTopRightRadius:Se,borderBottomRightRadius:Se,borderBottomLeftRadius:Se,width:Se,maxWidth:Se,height:Se,maxHeight:Se,top:Se,right:Se,bottom:Se,left:Se,padding:Se,paddingTop:Se,paddingRight:Se,paddingBottom:Se,paddingLeft:Se,margin:Se,marginTop:Se,marginRight:Se,marginBottom:Se,marginLeft:Se,backgroundPositionX:Se,backgroundPositionY:Se},U3={rotate:Ir,rotateX:Ir,rotateY:Ir,rotateZ:Ir,scale:Va,scaleX:Va,scaleY:Va,scaleZ:Va,skew:Ir,skewX:Ir,skewY:Ir,distance:Se,translateX:Se,translateY:Se,translateZ:Se,x:Se,y:Se,z:Se,perspective:Se,transformPerspective:Se,opacity:mo,originX:Vx,originY:Vx,originZ:Se},Bx={...ri,transform:Math.round},Pf={...W3,...U3,zIndex:Bx,size:Se,fillOpacity:mo,strokeOpacity:mo,numOctaves:Bx},z3={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},G3=ni.length;function Y3(e,t,n){let r="",s=!0;for(let o=0;o<G3;o++){const a=ni[o],c=e[a];if(c===void 0)continue;let u=!0;if(typeof c=="number"?u=c===(a.startsWith("scale")?1:0):u=parseFloat(c)===0,!u||n){const d=Fx(c,Pf[a]);if(!u){s=!1;const h=z3[a]||a;r+=`${h}(${d}) `}n&&(t[a]=d)}}return r=r.trim(),n?r=n(t,s?"":r):s&&(r="none"),r}function Af(e,t,n){const{style:r,vars:s,transformOrigin:o}=e;let a=!1,c=!1;for(const u in t){const d=t[u];if(ls.has(u)){a=!0;continue}else if(Cf(u)){s[u]=d;continue}else{const h=Fx(d,Pf[u]);u.startsWith("origin")?(c=!0,o[u]=h):r[u]=h}}if(t.transform||(a||n?r.transform=Y3(t,e.transform,n):r.transform&&(r.transform="none")),c){const{originX:u="50%",originY:d="50%",originZ:h=0}=o;r.transformOrigin=`${u} ${d} ${h}`}}const Mf=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Wx(e,t,n){for(const r in t)!Ct(t[r])&&!Rx(r,n)&&(e[r]=t[r])}function H3({transformTemplate:e},t){return O.useMemo(()=>{const n=Mf();return Af(n,t,e),Object.assign({},n.vars,n.style)},[t])}function q3(e,t){const n=e.style||{},r={};return Wx(r,n,e),Object.assign(r,H3(e,t)),r}function K3(e,t){const n={},r=q3(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const X3=["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 Of(e){return typeof e!="string"||e.includes("-")?!1:!!(X3.indexOf(e)>-1||/[A-Z]/u.test(e))}const Z3={offset:"stroke-dashoffset",array:"stroke-dasharray"},J3={offset:"strokeDashoffset",array:"strokeDasharray"};function Q3(e,t,n=1,r=0,s=!0){e.pathLength=1;const o=s?Z3:J3;e[o.offset]=Se.transform(-r);const a=Se.transform(t),c=Se.transform(n);e[o.array]=`${a} ${c}`}function Ux(e,t,n){return typeof e=="string"?e:Se.transform(t+n*e)}function e5(e,t,n){const r=Ux(t,e.x,e.width),s=Ux(n,e.y,e.height);return`${r} ${s}`}function $f(e,{attrX:t,attrY:n,attrScale:r,originX:s,originY:o,pathLength:a,pathSpacing:c=1,pathOffset:u=0,...d},h,m){if(Af(e,d,m),h){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:p,style:x,dimensions:S}=e;p.transform&&(S&&(x.transform=p.transform),delete p.transform),S&&(s!==void 0||o!==void 0||x.transform)&&(x.transformOrigin=e5(S,s!==void 0?s:.5,o!==void 0?o:.5)),t!==void 0&&(p.x=t),n!==void 0&&(p.y=n),r!==void 0&&(p.scale=r),a!==void 0&&Q3(p,a,c,u,!1)}const zx=()=>({...Mf(),attrs:{}}),_f=e=>typeof e=="string"&&e.toLowerCase()==="svg";function t5(e,t,n,r){const s=O.useMemo(()=>{const o=zx();return $f(o,t,_f(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};Wx(o,e.style,e),s.style={...o,...s.style}}return s}function n5(e=!1){return(n,r,s,{latestValues:o},a)=>{const u=(Of(n)?t5:K3)(r,o,a,n),d=E3(r,typeof n=="string",e),h=n!==O.Fragment?{...d,...u,ref:s}:{},{children:m}=r,p=O.useMemo(()=>Ct(m)?m.get():m,[m]);return O.createElement(n,{...h,children:p})}}function Gx(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function If(e,t,n,r){if(typeof t=="function"){const[s,o]=Gx(r);t=t(n!==void 0?n:e.custom,s,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[s,o]=Gx(r);t=t(n!==void 0?n:e.custom,s,o)}return t}const Df=e=>Array.isArray(e),r5=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),s5=e=>Df(e)?e[e.length-1]||0:e;function Ba(e){const t=Ct(e)?e.get():e;return r5(t)?t.toValue():t}function i5({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,s,o){const a={latestValues:o5(r,s,o,e),renderState:t()};return n&&(a.onMount=c=>n({props:r,current:c,...a}),a.onUpdate=c=>n(c)),a}const Yx=e=>(t,n)=>{const r=O.useContext(La),s=O.useContext(Ia),o=()=>i5(e,t,r,s);return n?o():gf(o)};function o5(e,t,n,r){const s={},o=r(e,{});for(const p in o)s[p]=Ba(o[p]);let{initial:a,animate:c}=e;const u=Fa(e),d=Ix(e);t&&d&&!u&&e.inherit!==!1&&(a===void 0&&(a=t.initial),c===void 0&&(c=t.animate));let h=n?n.initial===!1:!1;h=h||a===!1;const m=h?c:a;if(m&&typeof m!="boolean"&&!Ra(m)){const p=Array.isArray(m)?m:[m];for(let x=0;x<p.length;x++){const S=If(e,p[x]);if(S){const{transitionEnd:b,transition:T,...v}=S;for(const A in v){let C=v[A];if(Array.isArray(C)){const I=h?C.length-1:0;C=C[I]}C!==null&&(s[A]=C)}for(const A in b)s[A]=b[A]}}}return s}function Nf(e,t,n){var r;const{style:s}=e,o={};for(const a in s)(Ct(s[a])||t.style&&Ct(t.style[a])||Rx(a,e)||((r=n==null?void 0:n.getValue(a))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(o[a]=s[a]);return o}const a5={useVisualState:Yx({scrapeMotionValuesFromProps:Nf,createRenderState:Mf})};function Hx(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}function qx(e,{style:t,vars:n},r,s){Object.assign(e.style,t,s&&s.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const Kx=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 Xx(e,t,n,r){qx(e,t,void 0,r);for(const s in t.attrs)e.setAttribute(Kx.has(s)?s:Tf(s),t.attrs[s])}function Zx(e,t,n){const r=Nf(e,t,n);for(const s in e)if(Ct(e[s])||Ct(t[s])){const o=ni.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;r[o]=e[s]}return r}const Jx=["x","y","width","height","cx","cy","r"],l5={useVisualState:Yx({scrapeMotionValuesFromProps:Zx,createRenderState:zx,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:s})=>{if(!n)return;let o=!!e.drag;if(!o){for(const c in s)if(ls.has(c)){o=!0;break}}if(!o)return;let a=!t;if(t)for(let c=0;c<Jx.length;c++){const u=Jx[c];e[u]!==t[u]&&(a=!0)}a&&He.read(()=>{Hx(n,r),He.render(()=>{$f(r,s,_f(n.tagName),e.transformTemplate),Xx(n,r)})})}})};function c5(e,t){return function(r,{forwardMotionProps:s}={forwardMotionProps:!1}){const a={...Of(r)?l5:a5,preloadedFeatures:e,useRender:n5(s),createVisualElement:t,Component:r};return D3(a)}}function go(e,t,n){const r=e.getProps();return If(r,t,n!==void 0?n:r.custom,e)}function kf(e,t){return e?e[t]||e.default||e:void 0}const Qx=new Set(["width","height","top","left","right","bottom",...ni]);function jf(e,t){e.indexOf(t)===-1&&e.push(t)}function Lf(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Rf{constructor(){this.subscriptions=[]}add(t){return jf(this.subscriptions,t),()=>Lf(this.subscriptions,t)}notify(t,n,r){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](t,n,r);else for(let o=0;o<s;o++){const a=this.subscriptions[o];a&&a(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function e1(e,t){return t?e*(1e3/t):0}let Wa;function u5(){Wa=void 0}const Dn={now:()=>(Wa===void 0&&Dn.set(xt.isProcessing||v3.useManualTiming?xt.timestamp:performance.now()),Wa),set:e=>{Wa=e,queueMicrotask(u5)}},t1=30,f5=e=>!isNaN(parseFloat(e));class d5{constructor(t,n={}){this.version="12.6.1",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,s=!0)=>{const o=Dn.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),s&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Dn.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=f5(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&ja(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Rf);const r=this.events[t].add(n);return t==="change"?()=>{r(),He.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Dn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>t1)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,t1);return e1(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),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 yo(e,t){return new d5(e,t)}function h5(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,yo(n))}function m5(e,t){const n=go(e,t);let{transitionEnd:r={},transition:s={},...o}=n||{};o={...o,...r};for(const a in o){const c=s5(o[a]);h5(e,a,c)}}function p5(e){return!!(Ct(e)&&e.add)}function Ff(e,t){const n=e.getValue("willChange");if(p5(n))return n.add(t)}function n1(e){return e.props[Nx]}function Vf(e){let t;return()=>(t===void 0&&(t=e()),t)}const g5=Vf(()=>window.ScrollTimeline!==void 0);class y5{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(s=>{if(g5()&&s.attachTimeline)return s.attachTimeline(t);if(typeof n=="function")return n(s)});return()=>{r.forEach((s,o)=>{s&&s(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class x5 extends y5{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}const Nn=e=>e*1e3,Zn=e=>e/1e3;function Bf(e){return typeof e=="function"}function r1(e,t){e.timeline=t,e.onfinish=null}const Wf=e=>Array.isArray(e)&&typeof e[0]=="number",v5={linearEasing:void 0};function b5(e,t){const n=Vf(e);return()=>{var r;return(r=v5[t])!==null&&r!==void 0?r:n()}}const Ua=b5(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),si=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},s1=(e,t,n=10)=>{let r="";const s=Math.max(Math.round(t/n),2);for(let o=0;o<s;o++)r+=e(si(0,s-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function i1(e){return!!(typeof e=="function"&&Ua()||!e||typeof e=="string"&&(e in Uf||Ua())||Wf(e)||Array.isArray(e)&&e.every(i1))}const xo=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Uf={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:xo([0,.65,.55,1]),circOut:xo([.55,0,1,.45]),backIn:xo([.31,.01,.66,-.59]),backOut:xo([.33,1.53,.69,.99])};function o1(e,t){if(e)return typeof e=="function"&&Ua()?s1(e,t):Wf(e)?xo(e):Array.isArray(e)?e.map(n=>o1(n,t)||Uf.easeOut):Uf[e]}const a1=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,w5=1e-7,S5=12;function T5(e,t,n,r,s){let o,a,c=0;do a=t+(n-t)/2,o=a1(a,r,s)-e,o>0?n=a:t=a;while(Math.abs(o)>w5&&++c<S5);return a}function vo(e,t,n,r){if(e===t&&n===r)return kt;const s=o=>T5(o,0,1,e,n);return o=>o===0||o===1?o:a1(s(o),t,r)}const l1=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,c1=e=>t=>1-e(1-t),u1=vo(.33,1.53,.69,.99),zf=c1(u1),f1=l1(zf),d1=e=>(e*=2)<1?.5*zf(e):.5*(2-Math.pow(2,-10*(e-1))),Gf=e=>1-Math.sin(Math.acos(e)),h1=c1(Gf),m1=l1(Gf),p1=e=>/^0[^.\s]+$/u.test(e);function C5(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||p1(e):!0}const bo=e=>Math.round(e*1e5)/1e5,Yf=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function E5(e){return e==null}const P5=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Hf=(e,t)=>n=>!!(typeof n=="string"&&P5.test(n)&&n.startsWith(e)||t&&!E5(n)&&Object.prototype.hasOwnProperty.call(n,t)),g1=(e,t,n)=>r=>{if(typeof r!="string")return r;const[s,o,a,c]=r.match(Yf);return{[e]:parseFloat(s),[t]:parseFloat(o),[n]:parseFloat(a),alpha:c!==void 0?parseFloat(c):1}},A5=e=>Xn(0,255,e),qf={...ri,transform:e=>Math.round(A5(e))},cs={test:Hf("rgb","red"),parse:g1("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+qf.transform(e)+", "+qf.transform(t)+", "+qf.transform(n)+", "+bo(mo.transform(r))+")"};function M5(e){let t="",n="",r="",s="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),s=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),s=e.substring(4,5),t+=t,n+=n,r+=r,s+=s),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:s?parseInt(s,16)/255:1}}const Kf={test:Hf("#"),parse:M5,transform:cs.transform},ii={test:Hf("hsl","hue"),parse:g1("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+In.transform(bo(t))+", "+In.transform(bo(n))+", "+bo(mo.transform(r))+")"},Et={test:e=>cs.test(e)||Kf.test(e)||ii.test(e),parse:e=>cs.test(e)?cs.parse(e):ii.test(e)?ii.parse(e):Kf.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?cs.transform(e):ii.transform(e)},O5=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function $5(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Yf))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(O5))===null||n===void 0?void 0:n.length)||0)>0}const y1="number",x1="color",_5="var",I5="var(",v1="${}",D5=/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 wo(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},s=[];let o=0;const c=t.replace(D5,u=>(Et.test(u)?(r.color.push(o),s.push(x1),n.push(Et.parse(u))):u.startsWith(I5)?(r.var.push(o),s.push(_5),n.push(u)):(r.number.push(o),s.push(y1),n.push(parseFloat(u))),++o,v1)).split(v1);return{values:n,split:c,indexes:r,types:s}}function b1(e){return wo(e).values}function w1(e){const{split:t,types:n}=wo(e),r=t.length;return s=>{let o="";for(let a=0;a<r;a++)if(o+=t[a],s[a]!==void 0){const c=n[a];c===y1?o+=bo(s[a]):c===x1?o+=Et.transform(s[a]):o+=s[a]}return o}}const N5=e=>typeof e=="number"?0:e;function k5(e){const t=b1(e);return w1(e)(t.map(N5))}const Dr={test:$5,parse:b1,createTransformer:w1,getAnimatableNone:k5},j5=new Set(["brightness","contrast","saturate","opacity"]);function L5(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Yf)||[];if(!r)return e;const s=n.replace(r,"");let o=j5.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+s+")"}const R5=/\b([a-z-]*)\(.*?\)/gu,Xf={...Dr,getAnimatableNone:e=>{const t=e.match(R5);return t?t.map(L5).join(" "):e}},F5={...Pf,color:Et,backgroundColor:Et,outlineColor:Et,fill:Et,stroke:Et,borderColor:Et,borderTopColor:Et,borderRightColor:Et,borderBottomColor:Et,borderLeftColor:Et,filter:Xf,WebkitFilter:Xf},S1=e=>F5[e];function T1(e,t){let n=S1(e);return n!==Xf&&(n=Dr),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const V5=new Set(["auto","none","0"]);function B5(e,t,n){let r=0,s;for(;r<e.length&&!s;){const o=e[r];typeof o=="string"&&!V5.has(o)&&wo(o).values.length&&(s=e[r]),r++}if(s&&n)for(const o of t)e[o]=T1(n,s)}const us=e=>e*180/Math.PI,Zf=e=>{const t=us(Math.atan2(e[1],e[0]));return Jf(t)},W5={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Zf,rotateZ:Zf,skewX:e=>us(Math.atan(e[1])),skewY:e=>us(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Jf=e=>(e=e%360,e<0&&(e+=360),e),C1=Zf,E1=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),P1=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),U5={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:E1,scaleY:P1,scale:e=>(E1(e)+P1(e))/2,rotateX:e=>Jf(us(Math.atan2(e[6],e[5]))),rotateY:e=>Jf(us(Math.atan2(-e[2],e[0]))),rotateZ:C1,rotate:C1,skewX:e=>us(Math.atan(e[4])),skewY:e=>us(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function A1(e){return e.includes("scale")?1:0}function Qf(e,t){if(!e||e==="none")return A1(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,s;if(n)r=U5,s=n;else{const c=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=W5,s=c}if(!s)return A1(t);const o=r[t],a=s[1].split(",").map(G5);return typeof o=="function"?o(a):a[o]}const z5=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Qf(n,t)};function G5(e){return parseFloat(e.trim())}const M1=e=>e===ri||e===Se,Y5=new Set(["x","y","z"]),H5=ni.filter(e=>!Y5.has(e));function q5(e){const t=[];return H5.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const oi={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:(e,{transform:t})=>Qf(t,"x"),y:(e,{transform:t})=>Qf(t,"y")};oi.translateX=oi.x,oi.translateY=oi.y;const fs=new Set;let ed=!1,td=!1;function O1(){if(td){const e=Array.from(fs).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const s=q5(r);s.length&&(n.set(r,s),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const s=n.get(r);s&&s.forEach(([o,a])=>{var c;(c=r.getValue(o))===null||c===void 0||c.set(a)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}td=!1,ed=!1,fs.forEach(e=>e.complete()),fs.clear()}function $1(){fs.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(td=!0)})}function K5(){$1(),O1()}class nd{constructor(t,n,r,s,o,a=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=s,this.element=o,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(fs.add(this),ed||(ed=!0,He.read($1),He.resolveKeyframes(O1))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:s}=this;for(let o=0;o<t.length;o++)if(t[o]===null)if(o===0){const a=s==null?void 0:s.get(),c=t[t.length-1];if(a!==void 0)t[0]=a;else if(r&&n){const u=r.readValue(n,c);u!=null&&(t[0]=u)}t[0]===void 0&&(t[0]=c),s&&a===void 0&&s.set(t[0])}else t[o]=t[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),fs.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,fs.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const _1=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),X5=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Z5(e){const t=X5.exec(e);if(!t)return[,];const[,n,r,s]=t;return[`--${n??r}`,s]}const J5=4;function I1(e,t,n=1){$r(n<=J5,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,s]=Z5(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const a=o.trim();return _1(a)?parseFloat(a):a}return Ef(s)?I1(s,t,n+1):s}const D1=e=>t=>t.test(e),N1=[ri,Se,In,Ir,B3,V3,{test:e=>e==="auto",parse:e=>e}],k1=e=>N1.find(D1(e));class j1 extends nd{constructor(t,n,r,s,o){super(t,n,r,s,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let u=0;u<t.length;u++){let d=t[u];if(typeof d=="string"&&(d=d.trim(),Ef(d))){const h=I1(d,n.current);h!==void 0&&(t[u]=h),u===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!Qx.has(r)||t.length!==2)return;const[s,o]=t,a=k1(s),c=k1(o);if(a!==c)if(M1(a)&&M1(c))for(let u=0;u<t.length;u++){const d=t[u];typeof d=="string"&&(t[u]=parseFloat(d))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let s=0;s<t.length;s++)C5(t[s])&&r.push(s);r.length&&B5(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=oi[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const s=n[n.length-1];s!==void 0&&t.getValue(r,s).jump(s,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:s}=this;if(!n||!n.current)return;const o=n.getValue(r);o&&o.jump(this.measuredOrigin,!1);const a=s.length-1,c=s[a];s[a]=oi[r](n.measureViewportBox(),window.getComputedStyle(n.current)),c!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=c),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([u,d])=>{n.getValue(u).set(d)}),this.resolveNoneKeyframes()}}const L1=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Dr.test(e)||e==="0")&&!e.startsWith("url("));function Q5(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function e_(e,t,n,r){const s=e[0];if(s===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],a=L1(s,t),c=L1(o,t);return Qs(a===c,`You are trying to animate ${t} from "${s}" to "${o}". ${s} is not an animatable value - to enable this animation set ${s} to a value animatable to ${o} via the \`style\` property.`),!a||!c?!1:Q5(e)||(n==="spring"||Bf(n))&&r}const t_=e=>e!==null;function za(e,{repeat:t,repeatType:n="loop"},r){const s=e.filter(t_),o=t&&n!=="loop"&&t%2===1?0:s.length-1;return!o||r===void 0?s[o]:r}const n_=40;class R1{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:s=0,repeatDelay:o=0,repeatType:a="loop",...c}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Dn.now(),this.options={autoplay:t,delay:n,type:r,repeat:s,repeatDelay:o,repeatType:a,...c},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>n_?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&K5(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Dn.now(),this.hasAttemptedResolve=!0;const{name:r,type:s,velocity:o,delay:a,onComplete:c,onUpdate:u,isGenerator:d}=this.options;if(!d&&!e_(t,r,s,o))if(a)this.options.duration=0;else{u&&u(za(t,this.options,n)),c&&c(),this.resolveFinishedPromise();return}const h=this.initPlayback(t,n);h!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...h},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear")}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const rd=2e4;function F1(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<rd;)t+=n,r=e.next(t);return t>=rd?1/0:t}const tt=(e,t,n)=>e+(t-e)*n;function sd(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function r_({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let s=0,o=0,a=0;if(!t)s=o=a=n;else{const c=n<.5?n*(1+t):n+t-n*t,u=2*n-c;s=sd(u,c,e+1/3),o=sd(u,c,e),a=sd(u,c,e-1/3)}return{red:Math.round(s*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:r}}function Ga(e,t){return n=>n>0?t:e}const id=(e,t,n)=>{const r=e*e,s=n*(t*t-r)+r;return s<0?0:Math.sqrt(s)},s_=[Kf,cs,ii],i_=e=>s_.find(t=>t.test(e));function V1(e){const t=i_(e);if(Qs(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===ii&&(n=r_(n)),n}const B1=(e,t)=>{const n=V1(e),r=V1(t);if(!n||!r)return Ga(e,t);const s={...n};return o=>(s.red=id(n.red,r.red,o),s.green=id(n.green,r.green,o),s.blue=id(n.blue,r.blue,o),s.alpha=tt(n.alpha,r.alpha,o),cs.transform(s))},o_=(e,t)=>n=>t(e(n)),So=(...e)=>e.reduce(o_),od=new Set(["none","hidden"]);function a_(e,t){return od.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function l_(e,t){return n=>tt(e,t,n)}function ad(e){return typeof e=="number"?l_:typeof e=="string"?Ef(e)?Ga:Et.test(e)?B1:f_:Array.isArray(e)?W1:typeof e=="object"?Et.test(e)?B1:c_:Ga}function W1(e,t){const n=[...e],r=n.length,s=e.map((o,a)=>ad(o)(o,t[a]));return o=>{for(let a=0;a<r;a++)n[a]=s[a](o);return n}}function c_(e,t){const n={...e,...t},r={};for(const s in n)e[s]!==void 0&&t[s]!==void 0&&(r[s]=ad(e[s])(e[s],t[s]));return s=>{for(const o in r)n[o]=r[o](s);return n}}function u_(e,t){var n;const r=[],s={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const a=t.types[o],c=e.indexes[a][s[a]],u=(n=e.values[c])!==null&&n!==void 0?n:0;r[o]=u,s[a]++}return r}const f_=(e,t)=>{const n=Dr.createTransformer(t),r=wo(e),s=wo(t);return r.indexes.var.length===s.indexes.var.length&&r.indexes.color.length===s.indexes.color.length&&r.indexes.number.length>=s.indexes.number.length?od.has(e)&&!s.values.length||od.has(t)&&!r.values.length?a_(e,t):So(W1(u_(r,s),s.values),n):(Qs(!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.`),Ga(e,t))};function U1(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?tt(e,t,n):ad(e)(e,t)}const d_=5;function z1(e,t,n){const r=Math.max(t-d_,0);return e1(n-e(r),t-r)}const nt={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},G1=.001;function h_({duration:e=nt.duration,bounce:t=nt.bounce,velocity:n=nt.velocity,mass:r=nt.mass}){let s,o;Qs(e<=Nn(nt.maxDuration),"Spring duration must be 10 seconds or less");let a=1-t;a=Xn(nt.minDamping,nt.maxDamping,a),e=Xn(nt.minDuration,nt.maxDuration,Zn(e)),a<1?(s=d=>{const h=d*a,m=h*e,p=h-n,x=ld(d,a),S=Math.exp(-m);return G1-p/x*S},o=d=>{const m=d*a*e,p=m*n+n,x=Math.pow(a,2)*Math.pow(d,2)*e,S=Math.exp(-m),b=ld(Math.pow(d,2),a);return(-s(d)+G1>0?-1:1)*((p-x)*S)/b}):(s=d=>{const h=Math.exp(-d*e),m=(d-n)*e+1;return-.001+h*m},o=d=>{const h=Math.exp(-d*e),m=(n-d)*(e*e);return h*m});const c=5/e,u=p_(s,o,c);if(e=Nn(e),isNaN(u))return{stiffness:nt.stiffness,damping:nt.damping,duration:e};{const d=Math.pow(u,2)*r;return{stiffness:d,damping:a*2*Math.sqrt(r*d),duration:e}}}const m_=12;function p_(e,t,n){let r=n;for(let s=1;s<m_;s++)r=r-e(r)/t(r);return r}function ld(e,t){return e*Math.sqrt(1-t*t)}const g_=["duration","bounce"],y_=["stiffness","damping","mass"];function Y1(e,t){return t.some(n=>e[n]!==void 0)}function x_(e){let t={velocity:nt.velocity,stiffness:nt.stiffness,damping:nt.damping,mass:nt.mass,isResolvedFromDuration:!1,...e};if(!Y1(e,y_)&&Y1(e,g_))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),s=r*r,o=2*Xn(.05,1,1-(e.bounce||0))*Math.sqrt(s);t={...t,mass:nt.mass,stiffness:s,damping:o}}else{const n=h_(e);t={...t,...n,mass:nt.mass},t.isResolvedFromDuration=!0}return t}function H1(e=nt.visualDuration,t=nt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:s}=n;const o=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],c={done:!1,value:o},{stiffness:u,damping:d,mass:h,duration:m,velocity:p,isResolvedFromDuration:x}=x_({...n,velocity:-Zn(n.velocity||0)}),S=p||0,b=d/(2*Math.sqrt(u*h)),T=a-o,v=Zn(Math.sqrt(u/h)),A=Math.abs(T)<5;r||(r=A?nt.restSpeed.granular:nt.restSpeed.default),s||(s=A?nt.restDelta.granular:nt.restDelta.default);let C;if(b<1){const E=ld(v,b);C=N=>{const R=Math.exp(-b*v*N);return a-R*((S+b*v*T)/E*Math.sin(E*N)+T*Math.cos(E*N))}}else if(b===1)C=E=>a-Math.exp(-v*E)*(T+(S+v*T)*E);else{const E=v*Math.sqrt(b*b-1);C=N=>{const R=Math.exp(-b*v*N),F=Math.min(E*N,300);return a-R*((S+b*v*T)*Math.sinh(F)+E*T*Math.cosh(F))/E}}const I={calculatedDuration:x&&m||null,next:E=>{const N=C(E);if(x)c.done=E>=m;else{let R=0;b<1&&(R=E===0?Nn(S):z1(C,E,N));const F=Math.abs(R)<=r,G=Math.abs(a-N)<=s;c.done=F&&G}return c.value=c.done?a:N,c},toString:()=>{const E=Math.min(F1(I),rd),N=s1(R=>I.next(E*R).value,E,30);return E+"ms "+N}};return I}function q1({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:s=10,bounceStiffness:o=500,modifyTarget:a,min:c,max:u,restDelta:d=.5,restSpeed:h}){const m=e[0],p={done:!1,value:m},x=F=>c!==void 0&&F<c||u!==void 0&&F>u,S=F=>c===void 0?u:u===void 0||Math.abs(c-F)<Math.abs(u-F)?c:u;let b=n*t;const T=m+b,v=a===void 0?T:a(T);v!==T&&(b=v-m);const A=F=>-b*Math.exp(-F/r),C=F=>v+A(F),I=F=>{const G=A(F),re=C(F);p.done=Math.abs(G)<=d,p.value=p.done?v:re};let E,N;const R=F=>{x(p.value)&&(E=F,N=H1({keyframes:[p.value,S(p.value)],velocity:z1(C,F,p.value),damping:s,stiffness:o,restDelta:d,restSpeed:h}))};return R(0),{calculatedDuration:null,next:F=>{let G=!1;return!N&&E===void 0&&(G=!0,I(F),R(F)),E!==void 0&&F>=E?N.next(F-E):(!G&&I(F),p)}}}const v_=vo(.42,0,1,1),b_=vo(0,0,.58,1),K1=vo(.42,0,.58,1),w_=e=>Array.isArray(e)&&typeof e[0]!="number",X1={linear:kt,easeIn:v_,easeInOut:K1,easeOut:b_,circIn:Gf,circInOut:m1,circOut:h1,backIn:zf,backInOut:f1,backOut:u1,anticipate:d1},Z1=e=>{if(Wf(e)){$r(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,s]=e;return vo(t,n,r,s)}else if(typeof e=="string")return $r(X1[e]!==void 0,`Invalid easing type '${e}'`),X1[e];return e};function S_(e,t,n){const r=[],s=n||U1,o=e.length-1;for(let a=0;a<o;a++){let c=s(e[a],e[a+1]);if(t){const u=Array.isArray(t)?t[a]||kt:t;c=So(u,c)}r.push(c)}return r}function T_(e,t,{clamp:n=!0,ease:r,mixer:s}={}){const o=e.length;if($r(o===t.length,"Both input and output ranges must be the same length"),o===1)return()=>t[0];if(o===2&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const c=S_(t,r,s),u=c.length,d=h=>{if(a&&h<e[0])return t[0];let m=0;if(u>1)for(;m<e.length-2&&!(h<e[m+1]);m++);const p=si(e[m],e[m+1],h);return c[m](p)};return n?h=>d(Xn(e[0],e[o-1],h)):d}function C_(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const s=si(0,t,r);e.push(tt(n,1,s))}}function E_(e){const t=[0];return C_(t,e.length-1),t}function P_(e,t){return e.map(n=>n*t)}function A_(e,t){return e.map(()=>t||K1).splice(0,e.length-1)}function To({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const s=w_(r)?r.map(Z1):Z1(r),o={done:!1,value:t[0]},a=P_(n&&n.length===t.length?n:E_(t),e),c=T_(a,t,{ease:Array.isArray(s)?s:A_(t,s)});return{calculatedDuration:e,next:u=>(o.value=c(u),o.done=u>=e,o)}}const M_=e=>{const t=({timestamp:n})=>e(n);return{start:()=>He.update(t,!0),stop:()=>_r(t),now:()=>xt.isProcessing?xt.timestamp:Dn.now()}},O_={decay:q1,inertia:q1,tween:To,keyframes:To,spring:H1},$_=e=>e/100;class cd extends R1{constructor(t){super(t),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,this.state==="idle")return;this.teardown();const{onStop:u}=this.options;u&&u()};const{name:n,motionValue:r,element:s,keyframes:o}=this.options,a=(s==null?void 0:s.KeyframeResolver)||nd,c=(u,d)=>this.onKeyframesResolved(u,d);this.resolver=new a(o,c,n,r,s),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:s=0,repeatType:o,velocity:a=0}=this.options,c=Bf(n)?n:O_[n]||To;let u,d;process.env.NODE_ENV!=="production"&&c!==To&&$r(t.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),c!==To&&typeof t[0]!="number"&&(u=So($_,U1(t[0],t[1])),t=[0,100]);const h=c({...this.options,keyframes:t});o==="mirror"&&(d=c({...this.options,keyframes:[...t].reverse(),velocity:-a})),h.calculatedDuration===null&&(h.calculatedDuration=F1(h));const{calculatedDuration:m}=h,p=m+s,x=p*(r+1)-s;return{generator:h,mirroredGenerator:d,mapPercentToKeyframes:u,calculatedDuration:m,resolvedDuration:p,totalDuration:x}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:F}=this.options;return{done:!0,value:F[F.length-1]}}const{finalKeyframe:s,generator:o,mirroredGenerator:a,mapPercentToKeyframes:c,keyframes:u,calculatedDuration:d,totalDuration:h,resolvedDuration:m}=r;if(this.startTime===null)return o.next(0);const{delay:p,repeat:x,repeatType:S,repeatDelay:b,onUpdate:T}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-h/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const v=this.currentTime-p*(this.speed>=0?1:-1),A=this.speed>=0?v<0:v>h;this.currentTime=Math.max(v,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=h);let C=this.currentTime,I=o;if(x){const F=Math.min(this.currentTime,h)/m;let G=Math.floor(F),re=F%1;!re&&F>=1&&(re=1),re===1&&G--,G=Math.min(G,x+1),!!(G%2)&&(S==="reverse"?(re=1-re,b&&(re-=b/m)):S==="mirror"&&(I=a)),C=Xn(0,1,re)*m}const E=A?{done:!1,value:u[0]}:I.next(C);c&&(E.value=c(E.value));let{done:N}=E;!A&&d!==null&&(N=this.speed>=0?this.currentTime>=h:this.currentTime<=0);const R=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&N);return R&&s!==void 0&&(E.value=za(u,this.options,s)),T&&T(E.value),R&&this.finish(),E}get duration(){const{resolved:t}=this;return t?Zn(t.calculatedDuration):0}get time(){return Zn(this.currentTime)}set time(t){t=Nn(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Zn(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=M_,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),n&&n();const s=this.driver.now();this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=s):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&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(t){return this.startTime=0,this.tick(t,!0)}}const __=new Set(["opacity","clipPath","filter","transform"]);function I_(e,t,n,{delay:r=0,duration:s=300,repeat:o=0,repeatType:a="loop",ease:c="easeInOut",times:u}={}){const d={[t]:n};u&&(d.offset=u);const h=o1(c,s);return Array.isArray(h)&&(d.easing=h),e.animate(d,{delay:r,duration:s,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:o+1,direction:a==="reverse"?"alternate":"normal"})}const D_=Vf(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Ya=10,N_=2e4;function k_(e){return Bf(e.type)||e.type==="spring"||!i1(e.ease)}function j_(e,t){const n=new cd({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const s=[];let o=0;for(;!r.done&&o<N_;)r=n.sample(o),s.push(r.value),o+=Ya;return{times:void 0,keyframes:s,duration:o-Ya,ease:"linear"}}const J1={anticipate:d1,backInOut:f1,circInOut:m1};function L_(e){return e in J1}class Q1 extends R1{constructor(t){super(t);const{name:n,motionValue:r,element:s,keyframes:o}=this.options;this.resolver=new j1(o,(a,c)=>this.onKeyframesResolved(a,c),n,r,s),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:s,ease:o,type:a,motionValue:c,name:u,startTime:d}=this.options;if(!c.owner||!c.owner.current)return!1;if(typeof o=="string"&&Ua()&&L_(o)&&(o=J1[o]),k_(this.options)){const{onComplete:m,onUpdate:p,motionValue:x,element:S,...b}=this.options,T=j_(t,b);t=T.keyframes,t.length===1&&(t[1]=t[0]),r=T.duration,s=T.times,o=T.ease,a="keyframes"}const h=I_(c.owner.current,u,t,{...this.options,duration:r,times:s,ease:o});return h.startTime=d??this.calcStartTime(),this.pendingTimeline?(r1(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{const{onComplete:m}=this.options;c.set(za(t,this.options,n)),m&&m(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:r,times:s,type:a,ease:o,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Zn(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Zn(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Nn(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return kt;const{animation:r}=n;r1(r,t)}return kt}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:s,type:o,ease:a,times:c}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:d,onUpdate:h,onComplete:m,element:p,...x}=this.options,S=new cd({...x,keyframes:r,duration:s,type:o,ease:a,times:c,isGenerator:!0}),b=Nn(this.time);d.setWithVelocity(S.sample(b-Ya).value,S.sample(b).value,Ya)}const{onStop:u}=this.options;u&&u(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:s,repeatType:o,damping:a,type:c}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:u,transformTemplate:d}=n.owner.getProps();return D_()&&r&&__.has(r)&&(r!=="transform"||!d)&&!u&&!s&&o!=="mirror"&&a!==0&&c!=="inertia"}}const R_={type:"spring",stiffness:500,damping:25,restSpeed:10},F_=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),V_={type:"keyframes",duration:.8},B_={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},W_=(e,{keyframes:t})=>t.length>2?V_:ls.has(e)?e.startsWith("scale")?F_(t[1]):R_:B_;function U_({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:s,repeat:o,repeatType:a,repeatDelay:c,from:u,elapsed:d,...h}){return!!Object.keys(h).length}const ud=(e,t,n,r={},s,o)=>a=>{const c=kf(r,e)||{},u=c.delay||r.delay||0;let{elapsed:d=0}=r;d=d-Nn(u);let h={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...c,delay:-d,onUpdate:p=>{t.set(p),c.onUpdate&&c.onUpdate(p)},onComplete:()=>{a(),c.onComplete&&c.onComplete()},name:e,motionValue:t,element:o?void 0:s};U_(c)||(h={...h,...W_(e,h)}),h.duration&&(h.duration=Nn(h.duration)),h.repeatDelay&&(h.repeatDelay=Nn(h.repeatDelay)),h.from!==void 0&&(h.keyframes[0]=h.from);let m=!1;if((h.type===!1||h.duration===0&&!h.repeatDelay)&&(h.duration=0,h.delay===0&&(m=!0)),h.allowFlatten=!c.type&&!c.ease,m&&!o&&t.get()!==void 0){const p=za(h.keyframes,c);if(p!==void 0)return He.update(()=>{h.onUpdate(p),h.onComplete()}),new x5([])}return!o&&Q1.supports(h)?new Q1(h):new cd(h)};function z_({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function ev(e,t,{delay:n=0,transitionOverride:r,type:s}={}){var o;let{transition:a=e.getDefaultTransition(),transitionEnd:c,...u}=t;r&&(a=r);const d=[],h=s&&e.animationState&&e.animationState.getState()[s];for(const m in u){const p=e.getValue(m,(o=e.latestValues[m])!==null&&o!==void 0?o:null),x=u[m];if(x===void 0||h&&z_(h,m))continue;const S={delay:n,...kf(a||{},m)};let b=!1;if(window.MotionHandoffAnimation){const v=n1(e);if(v){const A=window.MotionHandoffAnimation(v,m,He);A!==null&&(S.startTime=A,b=!0)}}Ff(e,m),p.start(ud(m,p,x,e.shouldReduceMotion&&Qx.has(m)?{type:!1}:S,e,b));const T=p.animation;T&&d.push(T)}return c&&Promise.all(d).then(()=>{He.update(()=>{c&&m5(e,c)})}),d}function fd(e,t,n={}){var r;const s=go(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(o=n.transitionOverride);const a=s?()=>Promise.all(ev(e,s,n)):()=>Promise.resolve(),c=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:h=0,staggerChildren:m,staggerDirection:p}=o;return G_(e,t,h+d,m,p,n)}:()=>Promise.resolve(),{when:u}=o;if(u){const[d,h]=u==="beforeChildren"?[a,c]:[c,a];return d().then(()=>h())}else return Promise.all([a(),c(n.delay)])}function G_(e,t,n=0,r=0,s=1,o){const a=[],c=(e.variantChildren.size-1)*r,u=s===1?(d=0)=>d*r:(d=0)=>c-d*r;return Array.from(e.variantChildren).sort(Y_).forEach((d,h)=>{d.notify("AnimationStart",t),a.push(fd(d,t,{...o,delay:n+u(h)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(a)}function Y_(e,t){return e.sortNodePosition(t)}function H_(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const s=t.map(o=>fd(e,o,n));r=Promise.all(s)}else if(typeof t=="string")r=fd(e,t,n);else{const s=typeof t=="function"?go(e,t,n.custom):t;r=Promise.all(ev(e,s,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function tv(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}const q_=wf.length;function nv(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?nv(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<q_;n++){const r=wf[n],s=e.props[r];(fo(s)||s===!1)&&(t[r]=s)}return t}const K_=[...bf].reverse(),X_=bf.length;function Z_(e){return t=>Promise.all(t.map(({animation:n,options:r})=>H_(e,n,r)))}function J_(e){let t=Z_(e),n=rv(),r=!0;const s=u=>(d,h)=>{var m;const p=go(e,h,u==="exit"?(m=e.presenceContext)===null||m===void 0?void 0:m.custom:void 0);if(p){const{transition:x,transitionEnd:S,...b}=p;d={...d,...b,...S}}return d};function o(u){t=u(e)}function a(u){const{props:d}=e,h=nv(e.parent)||{},m=[],p=new Set;let x={},S=1/0;for(let T=0;T<X_;T++){const v=K_[T],A=n[v],C=d[v]!==void 0?d[v]:h[v],I=fo(C),E=v===u?A.isActive:null;E===!1&&(S=T);let N=C===h[v]&&C!==d[v]&&I;if(N&&r&&e.manuallyAnimateOnMount&&(N=!1),A.protectedKeys={...x},!A.isActive&&E===null||!C&&!A.prevProp||Ra(C)||typeof C=="boolean")continue;const R=Q_(A.prevProp,C);let F=R||v===u&&A.isActive&&!N&&I||T>S&&I,G=!1;const re=Array.isArray(C)?C:[C];let ee=re.reduce(s(v),{});E===!1&&(ee={});const{prevResolvedValues:le={}}=A,oe={...le,...ee},ue=U=>{F=!0,p.has(U)&&(G=!0,p.delete(U)),A.needsAnimating[U]=!0;const W=e.getValue(U);W&&(W.liveStyle=!1)};for(const U in oe){const W=ee[U],K=le[U];if(x.hasOwnProperty(U))continue;let $=!1;Df(W)&&Df(K)?$=!tv(W,K):$=W!==K,$?W!=null?ue(U):p.add(U):W!==void 0&&p.has(U)?ue(U):A.protectedKeys[U]=!0}A.prevProp=C,A.prevResolvedValues=ee,A.isActive&&(x={...x,...ee}),r&&e.blockInitialAnimation&&(F=!1),F&&(!(N&&R)||G)&&m.push(...re.map(U=>({animation:U,options:{type:v}})))}if(p.size){const T={};if(typeof d.initial!="boolean"){const v=go(e,Array.isArray(d.initial)?d.initial[0]:d.initial);v&&v.transition&&(T.transition=v.transition)}p.forEach(v=>{const A=e.getBaseTarget(v),C=e.getValue(v);C&&(C.liveStyle=!0),T[v]=A??null}),m.push({animation:T})}let b=!!m.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(b=!1),r=!1,b?t(m):Promise.resolve()}function c(u,d){var h;if(n[u].isActive===d)return Promise.resolve();(h=e.variantChildren)===null||h===void 0||h.forEach(p=>{var x;return(x=p.animationState)===null||x===void 0?void 0:x.setActive(u,d)}),n[u].isActive=d;const m=a(u);for(const p in n)n[p].protectedKeys={};return m}return{animateChanges:a,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=rv(),r=!0}}}function Q_(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!tv(t,e):!1}function ds(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function rv(){return{animate:ds(!0),whileInView:ds(),whileHover:ds(),whileTap:ds(),whileDrag:ds(),whileFocus:ds(),exit:ds()}}class Nr{constructor(t){this.isMounted=!1,this.node=t}update(){}}class eI extends Nr{constructor(t){super(t),t.animationState||(t.animationState=J_(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Ra(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let tI=0;class nI extends Nr{constructor(){super(...arguments),this.id=tI++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const s=this.node.animationState.setActive("exit",!t);n&&!t&&s.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const rI={animation:{Feature:eI},exit:{Feature:nI}},gn={x:!1,y:!1};function sv(){return gn.x||gn.y}function sI(e){return e==="x"||e==="y"?gn[e]?null:(gn[e]=!0,()=>{gn[e]=!1}):gn.x||gn.y?null:(gn.x=gn.y=!0,()=>{gn.x=gn.y=!1})}function Co(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const dd=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Eo(e){return{point:{x:e.pageX,y:e.pageY}}}const iI=e=>t=>dd(t)&&e(t,Eo(t));function Po(e,t,n,r){return Co(e,t,iI(n),r)}function iv({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function oI({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function aI(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}}const ov=1e-4,lI=1-ov,cI=1+ov,av=.01,uI=0-av,fI=0+av;function $t(e){return e.max-e.min}function dI(e,t,n){return Math.abs(e-t)<=n}function lv(e,t,n,r=.5){e.origin=r,e.originPoint=tt(t.min,t.max,e.origin),e.scale=$t(n)/$t(t),e.translate=tt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=lI&&e.scale<=cI||isNaN(e.scale))&&(e.scale=1),(e.translate>=uI&&e.translate<=fI||isNaN(e.translate))&&(e.translate=0)}function Ao(e,t,n,r){lv(e.x,t.x,n.x,r?r.originX:void 0),lv(e.y,t.y,n.y,r?r.originY:void 0)}function cv(e,t,n){e.min=n.min+t.min,e.max=e.min+$t(t)}function hI(e,t,n){cv(e.x,t.x,n.x),cv(e.y,t.y,n.y)}function uv(e,t,n){e.min=t.min-n.min,e.max=e.min+$t(t)}function Mo(e,t,n){uv(e.x,t.x,n.x),uv(e.y,t.y,n.y)}const fv=()=>({translate:0,scale:1,origin:0,originPoint:0}),ai=()=>({x:fv(),y:fv()}),dv=()=>({min:0,max:0}),lt=()=>({x:dv(),y:dv()});function rn(e){return[e("x"),e("y")]}function hd(e){return e===void 0||e===1}function md({scale:e,scaleX:t,scaleY:n}){return!hd(e)||!hd(t)||!hd(n)}function hs(e){return md(e)||hv(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function hv(e){return mv(e.x)||mv(e.y)}function mv(e){return e&&e!=="0%"}function Ha(e,t,n){const r=e-n,s=t*r;return n+s}function pv(e,t,n,r,s){return s!==void 0&&(e=Ha(e,s,r)),Ha(e,n,r)+t}function pd(e,t=0,n=1,r,s){e.min=pv(e.min,t,n,r,s),e.max=pv(e.max,t,n,r,s)}function gv(e,{x:t,y:n}){pd(e.x,t.translate,t.scale,t.originPoint),pd(e.y,n.translate,n.scale,n.originPoint)}const yv=.999999999999,xv=1.0000000000001;function mI(e,t,n,r=!1){const s=n.length;if(!s)return;t.x=t.y=1;let o,a;for(let c=0;c<s;c++){o=n[c],a=o.projectionDelta;const{visualElement:u}=o.options;u&&u.props.style&&u.props.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&ci(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,gv(e,a)),r&&hs(o.latestValues)&&ci(e,o.latestValues))}t.x<xv&&t.x>yv&&(t.x=1),t.y<xv&&t.y>yv&&(t.y=1)}function li(e,t){e.min=e.min+t,e.max=e.max+t}function vv(e,t,n,r,s=.5){const o=tt(e.min,e.max,s);pd(e,t,n,o,r)}function ci(e,t){vv(e.x,t.x,t.scaleX,t.scale,t.originX),vv(e.y,t.y,t.scaleY,t.scale,t.originY)}function bv(e,t){return iv(aI(e.getBoundingClientRect(),t))}function pI(e,t,n){const r=bv(e,n),{scroll:s}=t;return s&&(li(r.x,s.offset.x),li(r.y,s.offset.y)),r}const wv=({current:e})=>e?e.ownerDocument.defaultView:null,Sv=(e,t)=>Math.abs(e-t);function gI(e,t){const n=Sv(e.x,t.x),r=Sv(e.y,t.y);return Math.sqrt(n**2+r**2)}class Tv{constructor(t,n,{transformPagePoint:r,contextWindow:s,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const m=yd(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,x=gI(m.offset,{x:0,y:0})>=3;if(!p&&!x)return;const{point:S}=m,{timestamp:b}=xt;this.history.push({...S,timestamp:b});const{onStart:T,onMove:v}=this.handlers;p||(T&&T(this.lastMoveEvent,m),this.startEvent=this.lastMoveEvent),v&&v(this.lastMoveEvent,m)},this.handlePointerMove=(m,p)=>{this.lastMoveEvent=m,this.lastMoveEventInfo=gd(p,this.transformPagePoint),He.update(this.updatePoint,!0)},this.handlePointerUp=(m,p)=>{this.end();const{onEnd:x,onSessionEnd:S,resumeAnimation:b}=this.handlers;if(this.dragSnapToOrigin&&b&&b(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const T=yd(m.type==="pointercancel"?this.lastMoveEventInfo:gd(p,this.transformPagePoint),this.history);this.startEvent&&x&&x(m,T),S&&S(m,T)},!dd(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=s||window;const a=Eo(t),c=gd(a,this.transformPagePoint),{point:u}=c,{timestamp:d}=xt;this.history=[{...u,timestamp:d}];const{onSessionStart:h}=n;h&&h(t,yd(c,this.history)),this.removeListeners=So(Po(this.contextWindow,"pointermove",this.handlePointerMove),Po(this.contextWindow,"pointerup",this.handlePointerUp),Po(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),_r(this.updatePoint)}}function gd(e,t){return t?{point:t(e.point)}:e}function Cv(e,t){return{x:e.x-t.x,y:e.y-t.y}}function yd({point:e},t){return{point:e,delta:Cv(e,Ev(t)),offset:Cv(e,yI(t)),velocity:xI(t,.1)}}function yI(e){return e[0]}function Ev(e){return e[e.length-1]}function xI(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const s=Ev(e);for(;n>=0&&(r=e[n],!(s.timestamp-r.timestamp>Nn(t)));)n--;if(!r)return{x:0,y:0};const o=Zn(s.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const a={x:(s.x-r.x)/o,y:(s.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function vI(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?tt(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?tt(n,e,r.max):Math.min(e,n)),e}function Pv(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function bI(e,{top:t,left:n,bottom:r,right:s}){return{x:Pv(e.x,n,s),y:Pv(e.y,t,r)}}function Av(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function wI(e,t){return{x:Av(e.x,t.x),y:Av(e.y,t.y)}}function SI(e,t){let n=.5;const r=$t(e),s=$t(t);return s>r?n=si(t.min,t.max-r,e.min):r>s&&(n=si(e.min,e.max-s,t.min)),Xn(0,1,n)}function TI(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const xd=.35;function CI(e=xd){return e===!1?e=0:e===!0&&(e=xd),{x:Mv(e,"left","right"),y:Mv(e,"top","bottom")}}function Mv(e,t,n){return{min:Ov(e,t),max:Ov(e,n)}}function Ov(e,t){return typeof e=="number"?e:e[t]||0}const EI=new WeakMap;class PI{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=lt(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const s=h=>{const{dragSnapToOrigin:m}=this.getProps();m?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Eo(h).point)},o=(h,m)=>{const{drag:p,dragPropagation:x,onDragStart:S}=this.getProps();if(p&&!x&&(this.openDragLock&&this.openDragLock(),this.openDragLock=sI(p),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),rn(T=>{let v=this.getAxisMotionValue(T).get()||0;if(In.test(v)){const{projection:A}=this.visualElement;if(A&&A.layout){const C=A.layout.layoutBox[T];C&&(v=$t(C)*(parseFloat(v)/100))}}this.originPoint[T]=v}),S&&He.postRender(()=>S(h,m)),Ff(this.visualElement,"transform");const{animationState:b}=this.visualElement;b&&b.setActive("whileDrag",!0)},a=(h,m)=>{const{dragPropagation:p,dragDirectionLock:x,onDirectionLock:S,onDrag:b}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:T}=m;if(x&&this.currentDirection===null){this.currentDirection=AI(T),this.currentDirection!==null&&S&&S(this.currentDirection);return}this.updateAxis("x",m.point,T),this.updateAxis("y",m.point,T),this.visualElement.render(),b&&b(h,m)},c=(h,m)=>this.stop(h,m),u=()=>rn(h=>{var m;return this.getAnimationState(h)==="paused"&&((m=this.getAxisMotionValue(h).animation)===null||m===void 0?void 0:m.play())}),{dragSnapToOrigin:d}=this.getProps();this.panSession=new Tv(t,{onSessionStart:s,onStart:o,onMove:a,onSessionEnd:c,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,contextWindow:wv(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:s}=n;this.startAnimation(s);const{onDragEnd:o}=this.getProps();o&&He.postRender(()=>o(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:s}=this.getProps();if(!r||!qa(t,s,this.currentDirection))return;const o=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=vI(a,this.constraints[t],this.elastic[t])),o.set(a)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,o=this.constraints;n&&ti(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&s?this.constraints=bI(s.layoutBox,n):this.constraints=!1,this.elastic=CI(r),o!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&rn(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=TI(s.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!ti(t))return!1;const r=t.current;$r(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:s}=this.visualElement;if(!s||!s.layout)return!1;const o=pI(r,s.root,this.visualElement.getTransformPagePoint());let a=wI(s.layout.layoutBox,o);if(n){const c=n(oI(a));this.hasMutatedConstraints=!!c,c&&(a=iv(c))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:s,dragTransition:o,dragSnapToOrigin:a,onDragTransitionEnd:c}=this.getProps(),u=this.constraints||{},d=rn(h=>{if(!qa(h,n,this.currentDirection))return;let m=u&&u[h]||{};a&&(m={min:0,max:0});const p=s?200:1e6,x=s?40:1e7,S={type:"inertia",velocity:r?t[h]:0,bounceStiffness:p,bounceDamping:x,timeConstant:750,restDelta:1,restSpeed:10,...o,...m};return this.startAxisValueAnimation(h,S)});return Promise.all(d).then(c)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Ff(this.visualElement,t),r.start(ud(t,r,0,n,this.visualElement,!1))}stopAnimation(){rn(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){rn(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),s=r[n];return s||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){rn(n=>{const{drag:r}=this.getProps();if(!qa(n,r,this.currentDirection))return;const{projection:s}=this.visualElement,o=this.getAxisMotionValue(n);if(s&&s.layout){const{min:a,max:c}=s.layout.layoutBox[n];o.set(t[n]-tt(a,c,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!ti(n)||!r||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};rn(a=>{const c=this.getAxisMotionValue(a);if(c&&this.constraints!==!1){const u=c.get();s[a]=SI({min:u,max:u},this.constraints[a])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),rn(a=>{if(!qa(a,t,null))return;const c=this.getAxisMotionValue(a),{min:u,max:d}=this.constraints[a];c.set(tt(u,d,s[a]))})}addListeners(){if(!this.visualElement.current)return;EI.set(this.visualElement,this);const t=this.visualElement.current,n=Po(t,"pointerdown",u=>{const{drag:d,dragListener:h=!0}=this.getProps();d&&h&&this.start(u)}),r=()=>{const{dragConstraints:u}=this.getProps();ti(u)&&u.current&&(this.constraints=this.resolveRefConstraints())},{projection:s}=this.visualElement,o=s.addEventListener("measure",r);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),He.read(r);const a=Co(window,"resize",()=>this.scalePositionWithinConstraints()),c=s.addEventListener("didUpdate",({delta:u,hasLayoutChanged:d})=>{this.isDragging&&d&&(rn(h=>{const m=this.getAxisMotionValue(h);m&&(this.originPoint[h]+=u[h].translate,m.set(m.get()+u[h].translate))}),this.visualElement.render())});return()=>{a(),n(),o(),c&&c()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:s=!1,dragConstraints:o=!1,dragElastic:a=xd,dragMomentum:c=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:s,dragConstraints:o,dragElastic:a,dragMomentum:c}}}function qa(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function AI(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class MI extends Nr{constructor(t){super(t),this.removeGroupControls=kt,this.removeListeners=kt,this.controls=new PI(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||kt}unmount(){this.removeGroupControls(),this.removeListeners()}}const $v=e=>(t,n)=>{e&&He.postRender(()=>e(t,n))};class OI extends Nr{constructor(){super(...arguments),this.removePointerDownListener=kt}onPointerDown(t){this.session=new Tv(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:wv(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:s}=this.node.getProps();return{onSessionStart:$v(t),onStart:$v(n),onMove:r,onEnd:(o,a)=>{delete this.session,s&&He.postRender(()=>s(o,a))}}}mount(){this.removePointerDownListener=Po(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Ka={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function _v(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Oo={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Se.test(e))e=parseFloat(e);else return e;const n=_v(e,t.target.x),r=_v(e,t.target.y);return`${n}% ${r}%`}},$I={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,s=Dr.parse(e);if(s.length>5)return r;const o=Dr.createTransformer(e),a=typeof s[0]!="number"?1:0,c=n.x.scale*t.x,u=n.y.scale*t.y;s[0+a]/=c,s[1+a]/=u;const d=tt(c,u,.5);return typeof s[2+a]=="number"&&(s[2+a]/=d),typeof s[3+a]=="number"&&(s[3+a]/=d),o(s)}};class _I extends O.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:s}=this.props,{projection:o}=t;F3(II),o&&(n.group&&n.group.add(o),r&&r.register&&s&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Ka.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:s,isPresent:o}=this.props,a=r.projection;return a&&(a.isPresent=o,s||t.layoutDependency!==n||n===void 0||t.isPresent!==o?a.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?a.promote():a.relegate()||He.postRender(()=>{const c=a.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Sf.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:s}=t;s&&(s.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(s),r&&r.deregister&&r.deregister(s))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Iv(e){const[t,n]=Cx(),r=O.useContext(pf);return g.jsx(_I,{...e,layoutGroup:r,switchLayoutGroup:O.useContext(kx),isPresent:t,safeToRemove:n})}const II={borderRadius:{...Oo,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Oo,borderTopRightRadius:Oo,borderBottomLeftRadius:Oo,borderBottomRightRadius:Oo,boxShadow:$I};function DI(e,t,n){const r=Ct(e)?e:yo(e);return r.start(ud("",r,t,n)),r.animation}function NI(e){return e instanceof SVGElement&&e.tagName!=="svg"}const kI=(e,t)=>e.depth-t.depth;class jI{constructor(){this.children=[],this.isDirty=!1}add(t){jf(this.children,t),this.isDirty=!0}remove(t){Lf(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(kI),this.isDirty=!1,this.children.forEach(t)}}function LI(e,t){const n=Dn.now(),r=({timestamp:s})=>{const o=s-n;o>=t&&(_r(r),e(o-t))};return He.read(r,!0),()=>_r(r)}const Dv=["TopLeft","TopRight","BottomLeft","BottomRight"],RI=Dv.length,Nv=e=>typeof e=="string"?parseFloat(e):e,kv=e=>typeof e=="number"||Se.test(e);function FI(e,t,n,r,s,o){s?(e.opacity=tt(0,n.opacity!==void 0?n.opacity:1,VI(r)),e.opacityExit=tt(t.opacity!==void 0?t.opacity:1,0,BI(r))):o&&(e.opacity=tt(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let a=0;a<RI;a++){const c=`border${Dv[a]}Radius`;let u=jv(t,c),d=jv(n,c);if(u===void 0&&d===void 0)continue;u||(u=0),d||(d=0),u===0||d===0||kv(u)===kv(d)?(e[c]=Math.max(tt(Nv(u),Nv(d),r),0),(In.test(d)||In.test(u))&&(e[c]+="%")):e[c]=d}(t.rotate||n.rotate)&&(e.rotate=tt(t.rotate||0,n.rotate||0,r))}function jv(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const VI=Lv(0,.5,h1),BI=Lv(.5,.95,kt);function Lv(e,t,n){return r=>r<e?0:r>t?1:n(si(e,t,r))}function Rv(e,t){e.min=t.min,e.max=t.max}function sn(e,t){Rv(e.x,t.x),Rv(e.y,t.y)}function Fv(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Vv(e,t,n,r,s){return e-=t,e=Ha(e,1/n,r),s!==void 0&&(e=Ha(e,1/s,r)),e}function WI(e,t=0,n=1,r=.5,s,o=e,a=e){if(In.test(t)&&(t=parseFloat(t),t=tt(a.min,a.max,t/100)-a.min),typeof t!="number")return;let c=tt(o.min,o.max,r);e===o&&(c-=t),e.min=Vv(e.min,t,n,c,s),e.max=Vv(e.max,t,n,c,s)}function Bv(e,t,[n,r,s],o,a){WI(e,t[n],t[r],t[s],t.scale,o,a)}const UI=["x","scaleX","originX"],zI=["y","scaleY","originY"];function Wv(e,t,n,r){Bv(e.x,t,UI,n?n.x:void 0,r?r.x:void 0),Bv(e.y,t,zI,n?n.y:void 0,r?r.y:void 0)}function Uv(e){return e.translate===0&&e.scale===1}function zv(e){return Uv(e.x)&&Uv(e.y)}function Gv(e,t){return e.min===t.min&&e.max===t.max}function GI(e,t){return Gv(e.x,t.x)&&Gv(e.y,t.y)}function Yv(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Hv(e,t){return Yv(e.x,t.x)&&Yv(e.y,t.y)}function qv(e){return $t(e.x)/$t(e.y)}function Kv(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class YI{constructor(){this.members=[]}add(t){jf(this.members,t),t.scheduleRender()}remove(t){if(Lf(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(s=>t===s);if(n===0)return!1;let r;for(let s=n;s>=0;s--){const o=this.members[s];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:s}=t.options;s===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function HI(e,t,n){let r="";const s=e.x.translate/t.x,o=e.y.translate/t.y,a=(n==null?void 0:n.z)||0;if((s||o||a)&&(r=`translate3d(${s}px, ${o}px, ${a}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:d,rotate:h,rotateX:m,rotateY:p,skewX:x,skewY:S}=n;d&&(r=`perspective(${d}px) ${r}`),h&&(r+=`rotate(${h}deg) `),m&&(r+=`rotateX(${m}deg) `),p&&(r+=`rotateY(${p}deg) `),x&&(r+=`skewX(${x}deg) `),S&&(r+=`skewY(${S}deg) `)}const c=e.x.scale*t.x,u=e.y.scale*t.y;return(c!==1||u!==1)&&(r+=`scale(${c}, ${u})`),r||"none"}const vd=["","X","Y","Z"],qI={visibility:"hidden"},Xv=1e3;let KI=0;function bd(e,t,n,r){const{latestValues:s}=t;s[e]&&(n[e]=s[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Zv(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=n1(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:s,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",He,!(s||o))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Zv(r)}function Jv({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:s}){return class{constructor(a={},c=t==null?void 0:t()){this.id=KI++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(JI),this.nodes.forEach(r6),this.nodes.forEach(s6),this.nodes.forEach(QI)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0;for(let u=0;u<this.path.length;u++)this.path[u].shouldResetTransform=!0;this.root===this&&(this.nodes=new jI)}addEventListener(a,c){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new Rf),this.eventHandlers.get(a).add(c)}notifyListeners(a,...c){const u=this.eventHandlers.get(a);u&&u.notify(...c)}hasListeners(a){return this.eventHandlers.has(a)}mount(a,c=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=NI(a),this.instance=a;const{layoutId:u,layout:d,visualElement:h}=this.options;if(h&&!h.current&&h.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),c&&(d||u)&&(this.isLayoutDirty=!0),e){let m;const p=()=>this.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,m&&m(),m=LI(p,250),Ka.hasAnimatedSinceResize&&(Ka.hasAnimatedSinceResize=!1,this.nodes.forEach(eb))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&h&&(u||d)&&this.addEventListener("didUpdate",({delta:m,hasLayoutChanged:p,hasRelativeLayoutChanged:x,layout:S})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const b=this.options.transition||h.getDefaultTransition()||c6,{onLayoutAnimationStart:T,onLayoutAnimationComplete:v}=h.getProps(),A=!this.targetLayout||!Hv(this.targetLayout,S),C=!p&&x;if(this.options.layoutRoot||this.resumeFrom||C||p&&(A||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(m,C);const I={...kf(b,"layout"),onPlay:T,onComplete:v};(h.shouldReduceMotion||this.options.layoutRoot)&&(I.delay=0,I.type=!1),this.startAnimation(I)}else p||eb(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=S})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,_r(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(i6),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Zv(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let h=0;h<this.path.length;h++){const m=this.path[h];m.shouldResetTransform=!0,m.updateScroll("snapshot"),m.options.layoutRoot&&m.willUpdate(!1)}const{layoutId:c,layout:u}=this.options;if(c===void 0&&!u)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Qv);return}this.isUpdating||this.nodes.forEach(t6),this.isUpdating=!1,this.nodes.forEach(n6),this.nodes.forEach(XI),this.nodes.forEach(ZI),this.clearAllSnapshots();const c=Dn.now();xt.delta=Xn(0,1e3/60,c-xt.timestamp),xt.timestamp=c,xt.isProcessing=!0,vf.update.process(xt),vf.preRender.process(xt),vf.render.process(xt),xt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Sf.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(e6),this.sharedNodes.forEach(o6)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,He.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){He.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!$t(this.snapshot.measuredBox.x)&&!$t(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let u=0;u<this.path.length;u++)this.path[u].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=lt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:c}=this.options;c&&c.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let c=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(c=!1),c){const u=r(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:u,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:u}}}resetTransform(){if(!s)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,c=this.projectionDelta&&!zv(this.projectionDelta),u=this.getTransformTemplate(),d=u?u(this.latestValues,""):void 0,h=d!==this.prevTransformTemplateValue;a&&(c||hs(this.latestValues)||h)&&(s(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const c=this.measurePageBox();let u=this.removeElementScroll(c);return a&&(u=this.removeTransform(u)),u6(u),{animationId:this.root.animationId,measuredBox:c,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){var a;const{visualElement:c}=this.options;if(!c)return lt();const u=c.measureViewportBox();if(!(((a=this.scroll)===null||a===void 0?void 0:a.wasRoot)||this.path.some(f6))){const{scroll:h}=this.root;h&&(li(u.x,h.offset.x),li(u.y,h.offset.y))}return u}removeElementScroll(a){var c;const u=lt();if(sn(u,a),!((c=this.scroll)===null||c===void 0)&&c.wasRoot)return u;for(let d=0;d<this.path.length;d++){const h=this.path[d],{scroll:m,options:p}=h;h!==this.root&&m&&p.layoutScroll&&(m.wasRoot&&sn(u,a),li(u.x,m.offset.x),li(u.y,m.offset.y))}return u}applyTransform(a,c=!1){const u=lt();sn(u,a);for(let d=0;d<this.path.length;d++){const h=this.path[d];!c&&h.options.layoutScroll&&h.scroll&&h!==h.root&&ci(u,{x:-h.scroll.offset.x,y:-h.scroll.offset.y}),hs(h.latestValues)&&ci(u,h.latestValues)}return hs(this.latestValues)&&ci(u,this.latestValues),u}removeTransform(a){const c=lt();sn(c,a);for(let u=0;u<this.path.length;u++){const d=this.path[u];if(!d.instance||!hs(d.latestValues))continue;md(d.latestValues)&&d.updateSnapshot();const h=lt(),m=d.measurePageBox();sn(h,m),Wv(c,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,h)}return hs(this.latestValues)&&Wv(c,this.latestValues),c}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==xt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var c;const u=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=u.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=u.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=u.isSharedProjectionDirty);const d=!!this.resumingFrom||this!==u;if(!(a||d&&this.isSharedProjectionDirty||this.isProjectionDirty||!((c=this.parent)===null||c===void 0)&&c.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:m,layoutId:p}=this.options;if(!(!this.layout||!(m||p))){if(this.resolvedRelativeTargetAt=xt.timestamp,!this.targetDelta&&!this.relativeTarget){const x=this.getClosestProjectingParent();x&&x.layout&&this.animationProgress!==1?(this.relativeParent=x,this.forceRelativeParentToResolveTarget(),this.relativeTarget=lt(),this.relativeTargetOrigin=lt(),Mo(this.relativeTargetOrigin,this.layout.layoutBox,x.layout.layoutBox),sn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=lt(),this.targetWithTransforms=lt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),hI(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):sn(this.target,this.layout.layoutBox),gv(this.target,this.targetDelta)):sn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const x=this.getClosestProjectingParent();x&&!!x.resumingFrom==!!this.resumingFrom&&!x.options.layoutScroll&&x.target&&this.animationProgress!==1?(this.relativeParent=x,this.forceRelativeParentToResolveTarget(),this.relativeTarget=lt(),this.relativeTargetOrigin=lt(),Mo(this.relativeTargetOrigin,this.target,x.target),sn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||md(this.parent.latestValues)||hv(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var a;const c=this.getLead(),u=!!this.resumingFrom||this!==c;let d=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(d=!1),u&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(d=!1),this.resolvedRelativeTargetAt===xt.timestamp&&(d=!1),d)return;const{layout:h,layoutId:m}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(h||m))return;sn(this.layoutCorrected,this.layout.layoutBox);const p=this.treeScale.x,x=this.treeScale.y;mI(this.layoutCorrected,this.treeScale,this.path,u),c.layout&&!c.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(c.target=c.layout.layoutBox,c.targetWithTransforms=lt());const{target:S}=c;if(!S){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Fv(this.prevProjectionDelta.x,this.projectionDelta.x),Fv(this.prevProjectionDelta.y,this.projectionDelta.y)),Ao(this.projectionDelta,this.layoutCorrected,S,this.latestValues),(this.treeScale.x!==p||this.treeScale.y!==x||!Kv(this.projectionDelta.x,this.prevProjectionDelta.x)||!Kv(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",S))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){var c;if((c=this.options.visualElement)===null||c===void 0||c.scheduleRender(),a){const u=this.getStack();u&&u.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ai(),this.projectionDelta=ai(),this.projectionDeltaWithTransform=ai()}setAnimationOrigin(a,c=!1){const u=this.snapshot,d=u?u.latestValues:{},h={...this.latestValues},m=ai();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!c;const p=lt(),x=u?u.source:void 0,S=this.layout?this.layout.source:void 0,b=x!==S,T=this.getStack(),v=!T||T.members.length<=1,A=!!(b&&!v&&this.options.crossfade===!0&&!this.path.some(l6));this.animationProgress=0;let C;this.mixTargetDelta=I=>{const E=I/1e3;tb(m.x,a.x,E),tb(m.y,a.y,E),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Mo(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),a6(this.relativeTarget,this.relativeTargetOrigin,p,E),C&&GI(this.relativeTarget,C)&&(this.isProjectionDirty=!1),C||(C=lt()),sn(C,this.relativeTarget)),b&&(this.animationValues=h,FI(h,d,this.latestValues,E,A,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=E},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(_r(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=He.update(()=>{Ka.hasAnimatedSinceResize=!0,this.currentAnimation=DI(0,Xv,{...a,onUpdate:c=>{this.mixTargetDelta(c),a.onUpdate&&a.onUpdate(c)},onStop:()=>{},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Xv),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:c,target:u,layout:d,latestValues:h}=a;if(!(!c||!u||!d)){if(this!==a&&this.layout&&d&&ob(this.options.animationType,this.layout.layoutBox,d.layoutBox)){u=this.target||lt();const m=$t(this.layout.layoutBox.x);u.x.min=a.target.x.min,u.x.max=u.x.min+m;const p=$t(this.layout.layoutBox.y);u.y.min=a.target.y.min,u.y.max=u.y.min+p}sn(c,u),ci(c,h),Ao(this.projectionDeltaWithTransform,this.layoutCorrected,c,h)}}registerSharedNode(a,c){this.sharedNodes.has(a)||this.sharedNodes.set(a,new YI),this.sharedNodes.get(a).add(c);const d=c.options.initialPromotionConfig;c.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(c):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:c}=this.options;return c?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:c}=this.options;return c?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:c,preserveFollowOpacity:u}={}){const d=this.getStack();d&&d.promote(this,u),a&&(this.projectionDelta=void 0,this.needsReset=!0),c&&this.setOptions({transition:c})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let c=!1;const{latestValues:u}=a;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(c=!0),!c)return;const d={};u.z&&bd("z",a,d,this.animationValues);for(let h=0;h<vd.length;h++)bd(`rotate${vd[h]}`,a,d,this.animationValues),bd(`skew${vd[h]}`,a,d,this.animationValues);a.render();for(const h in d)a.setStaticValue(h,d[h]),this.animationValues&&(this.animationValues[h]=d[h]);a.scheduleRender()}getProjectionStyles(a){var c,u;if(!this.instance||this.isSVG)return;if(!this.isVisible)return qI;const d={visibility:""},h=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,d.opacity="",d.pointerEvents=Ba(a==null?void 0:a.pointerEvents)||"",d.transform=h?h(this.latestValues,""):"none",d;const m=this.getLead();if(!this.projectionDelta||!this.layout||!m.target){const b={};return this.options.layoutId&&(b.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,b.pointerEvents=Ba(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!hs(this.latestValues)&&(b.transform=h?h({},""):"none",this.hasProjected=!1),b}const p=m.animationValues||m.latestValues;this.applyTransformsToTarget(),d.transform=HI(this.projectionDeltaWithTransform,this.treeScale,p),h&&(d.transform=h(p,d.transform));const{x,y:S}=this.projectionDelta;d.transformOrigin=`${x.origin*100}% ${S.origin*100}% 0`,m.animationValues?d.opacity=m===this?(u=(c=p.opacity)!==null&&c!==void 0?c:this.latestValues.opacity)!==null&&u!==void 0?u:1:this.preserveOpacity?this.latestValues.opacity:p.opacityExit:d.opacity=m===this?p.opacity!==void 0?p.opacity:"":p.opacityExit!==void 0?p.opacityExit:0;for(const b in ho){if(p[b]===void 0)continue;const{correct:T,applyTo:v,isCSSVariable:A}=ho[b],C=d.transform==="none"?p[b]:T(p[b],m);if(v){const I=v.length;for(let E=0;E<I;E++)d[v[E]]=C}else A?this.options.visualElement.renderState.vars[b]=C:d[b]=C}return this.options.layoutId&&(d.pointerEvents=m===this?Ba(a==null?void 0:a.pointerEvents)||"":"none"),d}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var c;return(c=a.currentAnimation)===null||c===void 0?void 0:c.stop()}),this.root.nodes.forEach(Qv),this.root.sharedNodes.clear()}}}function XI(e){e.updateLayout()}function ZI(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:s}=e.layout,{animationType:o}=e.options,a=n.source!==e.layout.source;o==="size"?rn(m=>{const p=a?n.measuredBox[m]:n.layoutBox[m],x=$t(p);p.min=r[m].min,p.max=p.min+x}):ob(o,n.layoutBox,r)&&rn(m=>{const p=a?n.measuredBox[m]:n.layoutBox[m],x=$t(r[m]);p.max=p.min+x,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[m].max=e.relativeTarget[m].min+x)});const c=ai();Ao(c,r,n.layoutBox);const u=ai();a?Ao(u,e.applyTransform(s,!0),n.measuredBox):Ao(u,r,n.layoutBox);const d=!zv(c);let h=!1;if(!e.resumeFrom){const m=e.getClosestProjectingParent();if(m&&!m.resumeFrom){const{snapshot:p,layout:x}=m;if(p&&x){const S=lt();Mo(S,n.layoutBox,p.layoutBox);const b=lt();Mo(b,r,x.layoutBox),Hv(S,b)||(h=!0),m.options.layoutRoot&&(e.relativeTarget=b,e.relativeTargetOrigin=S,e.relativeParent=m)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:u,layoutDelta:c,hasLayoutChanged:d,hasRelativeLayoutChanged:h})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function JI(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function QI(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function e6(e){e.clearSnapshot()}function Qv(e){e.clearMeasurements()}function t6(e){e.isLayoutDirty=!1}function n6(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function eb(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function r6(e){e.resolveTargetDelta()}function s6(e){e.calcProjection()}function i6(e){e.resetSkewAndRotation()}function o6(e){e.removeLeadSnapshot()}function tb(e,t,n){e.translate=tt(t.translate,0,n),e.scale=tt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function nb(e,t,n,r){e.min=tt(t.min,n.min,r),e.max=tt(t.max,n.max,r)}function a6(e,t,n,r){nb(e.x,t.x,n.x,r),nb(e.y,t.y,n.y,r)}function l6(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const c6={duration:.45,ease:[.4,0,.1,1]},rb=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),sb=rb("applewebkit/")&&!rb("chrome/")?Math.round:kt;function ib(e){e.min=sb(e.min),e.max=sb(e.max)}function u6(e){ib(e.x),ib(e.y)}function ob(e,t,n){return e==="position"||e==="preserve-aspect"&&!dI(qv(t),qv(n),.2)}function f6(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const d6=Jv({attachResizeListener:(e,t)=>Co(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),wd={current:void 0},ab=Jv({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!wd.current){const e=new d6({});e.mount(window),e.setOptions({layoutScroll:!0}),wd.current=e}return wd.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),h6={pan:{Feature:OI},drag:{Feature:MI,ProjectionNode:ab,MeasureLayout:Iv}};function m6(e,t,n){var r;if(e instanceof EventTarget)return[e];if(typeof e=="string"){let s=document;const o=(r=void 0)!==null&&r!==void 0?r:s.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}function lb(e,t){const n=m6(e),r=new AbortController,s={passive:!0,...t,signal:r.signal};return[n,s,()=>r.abort()]}function cb(e){return!(e.pointerType==="touch"||sv())}function p6(e,t,n={}){const[r,s,o]=lb(e,n),a=c=>{if(!cb(c))return;const{target:u}=c,d=t(u,c);if(typeof d!="function"||!u)return;const h=m=>{cb(m)&&(d(m),u.removeEventListener("pointerleave",h))};u.addEventListener("pointerleave",h,s)};return r.forEach(c=>{c.addEventListener("pointerenter",a,s)}),o}function ub(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const s="onHover"+n,o=r[s];o&&He.postRender(()=>o(t,Eo(t)))}class g6 extends Nr{mount(){const{current:t}=this.node;t&&(this.unmount=p6(t,(n,r)=>(ub(this.node,r,"Start"),s=>ub(this.node,s,"End"))))}unmount(){}}class y6 extends Nr{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!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=So(Co(this.node.current,"focus",()=>this.onFocus()),Co(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const fb=(e,t)=>t?e===t?!0:fb(e,t.parentElement):!1,x6=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function v6(e){return x6.has(e.tagName)||e.tabIndex!==-1}const $o=new WeakSet;function db(e){return t=>{t.key==="Enter"&&e(t)}}function Sd(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const b6=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=db(()=>{if($o.has(n))return;Sd(n,"down");const s=db(()=>{Sd(n,"up")}),o=()=>Sd(n,"cancel");n.addEventListener("keyup",s,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function hb(e){return dd(e)&&!sv()}function w6(e,t,n={}){const[r,s,o]=lb(e,n),a=c=>{const u=c.currentTarget;if(!hb(c)||$o.has(u))return;$o.add(u);const d=t(u,c),h=(x,S)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",p),!(!hb(x)||!$o.has(u))&&($o.delete(u),typeof d=="function"&&d(x,{success:S}))},m=x=>{h(x,u===window||u===document||n.useGlobalTarget||fb(u,x.target))},p=x=>{h(x,!1)};window.addEventListener("pointerup",m,s),window.addEventListener("pointercancel",p,s)};return r.forEach(c=>{(n.useGlobalTarget?window:c).addEventListener("pointerdown",a,s),c instanceof HTMLElement&&(c.addEventListener("focus",d=>b6(d,s)),!v6(c)&&c.tabIndex===null&&(c.tabIndex=0))}),o}function mb(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const s="onTap"+(n==="End"?"":n),o=r[s];o&&He.postRender(()=>o(t,Eo(t)))}class S6 extends Nr{mount(){const{current:t}=this.node;t&&(this.unmount=w6(t,(n,r)=>(mb(this.node,r,"Start"),(s,{success:o})=>mb(this.node,s,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Td=new WeakMap,Cd=new WeakMap,T6=e=>{const t=Td.get(e.target);t&&t(e)},C6=e=>{e.forEach(T6)};function E6({root:e,...t}){const n=e||document;Cd.has(n)||Cd.set(n,{});const r=Cd.get(n),s=JSON.stringify(t);return r[s]||(r[s]=new IntersectionObserver(C6,{root:e,...t})),r[s]}function P6(e,t,n){const r=E6(t);return Td.set(e,n),r.observe(e),()=>{Td.delete(e),r.unobserve(e)}}const A6={some:0,all:1};class M6 extends Nr{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:s="some",once:o}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof s=="number"?s:A6[s]},c=u=>{const{isIntersecting:d}=u;if(this.isInView===d||(this.isInView=d,o&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:h,onViewportLeave:m}=this.node.getProps(),p=d?h:m;p&&p(u)};return P6(this.node.current,a,c)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(O6(t,n))&&this.startObserver()}unmount(){}}function O6({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const $6={inView:{Feature:M6},tap:{Feature:S6},focus:{Feature:y6},hover:{Feature:g6}},_6={layout:{ProjectionNode:ab,MeasureLayout:Iv}},Ed={current:null},pb={current:!1};function I6(){if(pb.current=!0,!!yf)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Ed.current=e.matches;e.addListener(t),t()}else Ed.current=!1}const D6=[...N1,Et,Dr],N6=e=>D6.find(D1(e)),k6=new WeakMap;function j6(e,t,n){for(const r in t){const s=t[r],o=n[r];if(Ct(s))e.addValue(r,s),process.env.NODE_ENV==="development"&&ja(s.version==="12.6.2",`Attempting to mix Motion versions ${s.version} with 12.6.2 may not work as expected.`);else if(Ct(o))e.addValue(r,yo(s,{owner:e}));else if(o!==s)if(e.hasValue(r)){const a=e.getValue(r);a.liveStyle===!0?a.jump(s):a.hasAnimated||a.set(s)}else{const a=e.getStaticValue(r);e.addValue(r,yo(a!==void 0?a:s,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const gb=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class L6{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:s,blockInitialAnimation:o,visualState:a},c={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=nd,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 x=Dn.now();this.renderScheduledAt<x&&(this.renderScheduledAt=x,He.render(this.render,!1,!0))};const{latestValues:u,renderState:d,onUpdate:h}=a;this.onUpdate=h,this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=s,this.options=c,this.blockInitialAnimation=!!o,this.isControllingVariants=Fa(n),this.isVariantNode=Ix(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:m,...p}=this.scrapeMotionValuesFromProps(n,{},this);for(const x in p){const S=p[x];u[x]!==void 0&&Ct(S)&&S.set(u[x],!1)}}mount(t){this.current=t,k6.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),pb.current||I6(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Ed.current,process.env.NODE_ENV!=="production"&&ja(this.shouldReduceMotion!==!0,"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(){this.projection&&this.projection.unmount(),_r(this.notifyUpdate),_r(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=ls.has(t);r&&this.onBindTransform&&this.onBindTransform();const s=n.on("change",c=>{this.latestValues[t]=c,this.props.onUpdate&&He.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{s(),o(),a&&a(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in ei){const n=ei[t];if(!n)continue;const{isEnabled:r,Feature:s}=n;if(!this.features[t]&&s&&r(this.props)&&(this.features[t]=new s(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):lt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<gb.length;r++){const s=gb[r];this.propEventSubscriptions[s]&&(this.propEventSubscriptions[s](),delete this.propEventSubscriptions[s]);const o="on"+s,a=t[o];a&&(this.propEventSubscriptions[s]=this.on(s,a))}this.prevMotionValues=j6(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]: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(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=yo(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let s=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return s!=null&&(typeof s=="string"&&(_1(s)||p1(s))?s=parseFloat(s):!N6(s)&&Dr.test(n)&&(s=T1(t,n)),this.setBaseTarget(t,Ct(s)?s.get():s)),Ct(s)?s.get():s}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let s;if(typeof r=="string"||typeof r=="object"){const a=If(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);a&&(s=a[t])}if(r&&s!==void 0)return s;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!Ct(o)?o:this.initialValues[t]!==void 0&&s===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Rf),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class yb extends L6{constructor(){super(...arguments),this.KeyframeResolver=j1}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Ct(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function R6(e){return window.getComputedStyle(e)}class F6 extends yb{constructor(){super(...arguments),this.type="html",this.renderInstance=qx}readValueFromInstance(t,n){if(ls.has(n))return z5(t,n);{const r=R6(t),s=(Cf(n)?r.getPropertyValue(n):r[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:n}){return bv(t,n)}build(t,n,r){Af(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Nf(t,n,r)}}class V6 extends yb{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=lt,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&Hx(this.current,this.renderState)}}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(ls.has(n)){const r=S1(n);return r&&r.default||0}return n=Kx.has(n)?n:Tf(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Zx(t,n,r)}onBindTransform(){this.current&&!this.renderState.dimensions&&He.postRender(this.updateDimensions)}build(t,n,r){$f(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,s){Xx(t,n,r,s)}mount(t){this.isSVGTag=_f(t.tagName),super.mount(t)}}const B6=(e,t)=>Of(e)?new V6(t):new F6(t,{allowProjection:e!==O.Fragment}),W6=c5({...rI,...$6,...h6,..._6},B6),st=P3(W6),Pd={defaultColorScheme:"aqua",t:e=>e},xb=O.createContext(Pd),Ve=()=>O.useContext(xb),U6={date:(e,t)=>new Date(t.created_at??"").toDateString()===e.toDateString(),search:(e,t)=>JSON.stringify(t).toLowerCase().includes(e.toLowerCase())};function z6(e,t){const[n,r]=O.useState([]),s=O.useCallback(({key:h,value:m,label:p,type:x,icon:S,options:b})=>{if(n.find(A=>A.key===h)){console.warn(`El filtro con key "${String(h)}" ya existe, salteando la actualización...`);return}let v;typeof t=="string"?v=U6[t]:v=t[h]||t[h],r(A=>[...A,{key:h,value:m,label:p,type:x,icon:S,options:b,fn:v}])},[t,n]),o=O.useCallback(({key:h,value:m})=>{r(p=>p.map(x=>x.key===h?{...x,value:m}:x))},[]),a=O.useCallback(({key:h})=>{r(m=>m.filter(p=>p.key!==h))},[]),c=O.useCallback(()=>{r([])},[]),u=O.useMemo(()=>n.reduce((h,m)=>h.filter(p=>m.fn(m.value,p)),e),[e,n]),d=O.useMemo(()=>({addFilter:s,updateFilter:o,removeFilter:a,clearFilters:c,activeFilters:n.map(h=>({key:h.key,value:h.value,label:h.label,type:h.type,icon:h.icon,options:h.options}))}),[s,o,a,c,n]);return{data:u,filterControl:d}}const vb=({title:e,description:t,open:n,onClose:r,onConfirm:s,onCancel:o,showCloseButton:a=!0})=>{const{t:c}=Ve(),u={hidden:{opacity:0},visible:{opacity:1}},d={hidden:{opacity:0,scale:.8,y:-20},visible:{opacity:1,scale:1,y:0,transition:{type:"spring",stiffness:300,damping:25}},exit:{opacity:0,scale:.8,y:20,transition:{duration:.2}}},h=()=>{s==null||s(),r()},m=()=>{o==null||o(),r()};return g.jsx(Kn,{children:n&&g.jsx(g.Fragment,{children:g.jsx(st.div,{className:"fixed inset-0 bg-black/50 z-9999 flex items-center justify-center",initial:"hidden",animate:"visible",exit:"hidden",variants:u,onClick:r,children:g.jsx(st.div,{className:"w-full max-w-4xl mx-16 z-50",variants:d,initial:"hidden",animate:"visible",exit:"exit",onClick:p=>p.stopPropagation(),children:g.jsxs(yi,{className:"flex flex-col gap-16 p-32",children:[g.jsxs("div",{className:"flex justify-between items-center gap-16",children:[g.jsx("h3",{className:"text-black font-700 text-3xl",children:e}),a&&g.jsx(Pe,{icon:mf,className:"cursor-pointer text-2xl text-gray-500 transition-all duration-300 hover:text-gray-700",onClick:r})]}),g.jsx("p",{className:"text-gray-500 text-xl font-600",children:t}),g.jsxs("div",{className:"flex justify-end w-full gap-16",children:[o&&g.jsx(xs,{onClick:m,variant:"transparent",className:"px-24 py-10! text-lg!",children:c("cancel")}),s&&g.jsx(xs,{onClick:h,className:"px-24 py-16 text-lg!",children:c("confirm")})]})]})})})})})};/*!
|
|
664
664
|
* Font Awesome Pro 6.7.2 by @fontawesome - https://fontawesome.com
|
|
665
665
|
* License - https://fontawesome.com/license (Commercial License)
|
|
666
666
|
* Copyright 2024 Fonticons, Inc.
|
|
@@ -680,7 +680,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
680
680
|
`,children:[m&&m,g.jsx("input",{...x,id:r,name:r,disabled:c,required:d,placeholder:o,value:n,onChange:v=>{t(v.target.value)},className:`group bg-transparent w-full h-full font-600 placeholder:font-600 select-text ${T.text} disabled:text-gray-300 disabled:placeholder:text-gray-300 placeholder:text-gray-400 disabled:cursor-not-allowed overflow-visible outline-none ${u&&"pointer-events-none !select-none !caret-transparent"}`}),p&&p]}),s&&g.jsx("h4",{className:`font-500 text-red-500 leading-none ${T.error}`,children:S(s,{x:S(r)})})]})},Xb=e=>_n(e,"dd/MM/yyyy"),Zb=e=>{const[t,n,r]=e.split("/");if((t==null?void 0:t.length)===2&&(n==null?void 0:n.length)===2&&(r==null?void 0:r.length)===4){const s=new Date(Number(r),Number(n)-1,Number(t));return isNaN(s.getTime())?null:s}return null},iN=({control:e,name:t,showTimeSelector:n=!1,label:r,translateKey:s="",placeholder:o,futureDates:a=!1,pastDates:c=!0,size:u,required:d=!1})=>{const{field:{value:h,onChange:m,onBlur:p},fieldState:{error:x}}=Un.useController({name:t,control:e}),{t:S}=Ve(),b=S(t),T=S(s),[v,A]=O.useState(!1),[C,I]=O.useState("");O.useEffect(()=>{h instanceof Date&&!isNaN(h.getTime())?I(Xb(h)):I("")},[h]);const E=Zb(C),N=F=>{const G=F.replace(/\D/g,"").slice(0,8),re=[];G.length>0&&re.push(G.slice(0,2)),G.length>2&&re.push(G.slice(2,4)),G.length>4&&re.push(G.slice(4,8));const ee=re.join("/");if(I(ee),A(!1),ee.length===10){const le=Zb(ee);m(le)}},R=()=>{m(null),I("")};return g.jsx(ys,{open:v,strategy:"fixed",padding:0,offset:0,onClose:()=>A(!1),className:"p-0!",component:g.jsx(Ud,{date:E||new Date,onDateChange:F=>{I(Xb(F)),m(F),A(!1)},showTimeSelector:n,futureDates:a,pastDates:c}),children:g.jsx(al,{size:u,onBlur:p,name:T||b,label:r,required:d,value:C,onFocus:F=>{F.preventDefault(),A(!0)},disabledInput:!0,onChange:F=>N(F),placeholder:o,error:x==null?void 0:x.message,rightSide:!!E&&g.jsx(Pe,{icon:tx,className:"text-gray-500 cursor-pointer",onClick:R})})})},Jb=({title:e,description:t,open:n,onClose:r,onConfirm:s,onCancel:o,icon:a=bb,showCloseButton:c=!0})=>{const u={hidden:{opacity:0},visible:{opacity:1}},d={hidden:{opacity:0,scale:.8,y:-20},visible:{opacity:1,scale:1,y:0,transition:{type:"spring",stiffness:300,damping:25}},exit:{opacity:0,scale:.8,y:20,transition:{duration:.2}}},h=()=>{s==null||s(),r()},m=()=>{o==null||o(),r()},{t:p}=Ve();return g.jsx(Kn,{children:n&&g.jsx(g.Fragment,{children:g.jsx(st.div,{className:"fixed inset-0 bg-black/50 z-9999 flex items-center justify-center",initial:"hidden",animate:"visible",exit:"hidden",variants:u,onClick:r,children:g.jsx(st.div,{className:"w-full max-w-sm mx-16 z-50",variants:d,initial:"hidden",animate:"visible",exit:"exit",onClick:x=>x.stopPropagation(),children:g.jsxs(yi,{className:"flex flex-col gap-20 p-32",children:[g.jsxs("div",{className:"flex flex-col",children:[g.jsx("div",{className:"flex justify-end",children:c&&g.jsx(Pe,{icon:mf,className:"cursor-pointer text-2xl text-gray-500 transition-all duration-300 hover:text-gray-700",onClick:r})}),g.jsx("div",{className:"flex justify-center",children:g.jsx("div",{className:"bg-blue-100 rounded-full w-76 h-76 flex justify-center items-center",children:g.jsx(Pe,{icon:a,className:"w-32 h-36 min-h-36 min-w-36 text-blue-500",onClick:r})})})]}),g.jsxs("div",{className:"flex flex-col gap-20 items-center justify-center",children:[g.jsxs("div",{className:"text-center w-full",children:[g.jsx("h3",{className:"text-black font-700 text-3xl w-full",children:e}),g.jsx("p",{className:"text-gray-500 text-xl font-600 w-full",children:t})]}),g.jsxs("div",{className:"flex justify-center w-full gap-16",children:[!!o&&g.jsx(xs,{size:"lg",onClick:m,variant:"transparent",children:p("cancel")}),!!s&&g.jsx(xs,{size:"lg",onClick:h,children:p("confirm")})]})]})]})})})})})},Qb={duration:.3,ease:[.32,.72,0,1]},oN={initial:{opacity:0,height:0,y:-8},animate:{opacity:1,height:"auto",y:0},exit:{opacity:0,height:0,y:-8}},aN=({isOpen:e})=>g.jsx(st.div,{animate:{rotate:e?180:0},transition:{duration:.5,ease:[.16,1,.3,1]},children:g.jsx(Pe,{icon:H6,className:"text-gray-500 w-12 h-12 max-w-12 max-h-12"})}),lN=({label:e,children:t,subtitle:n,open:r,onClick:s,className:o="",labelClassName:a=""})=>{const{t:c}=Ve(),[u,d]=O.useState(!1),h=r!==void 0?r:u,m=s||(()=>d(!u));return g.jsxs(st.div,{className:"relative w-full bg-white border border-blue-100 rounded-2xl overflow-hidden",children:[g.jsxs("button",{onClick:m,className:`py-24 px-32 text-black font-semibold border-b
|
|
681
681
|
${h?"border-blue-100 bg-gray-50/50":"border-transparent"}
|
|
682
682
|
transition-all duration-200 ease-in-out focus:outline-none hover:bg-gray-50/50
|
|
683
|
-
flex items-center gap-2 group w-full justify-between`,children:[g.jsx("span",{className:`text-left text-lg md:text-xl font-700 ${a}`,children:c(e)}),g.jsxs("div",{className:"flex gap-10 items-center",children:[g.jsx("span",{className:"text-gray-500 font-normal text-base md:text-lg",children:n}),g.jsx(aN,{isOpen:h})]})]}),g.jsx(Kn,{mode:"wait",children:h&&g.jsx(st.div,{...oN,transition:{height:{duration:Qb.duration,ease:Qb.ease},opacity:{duration:.15,ease:"easeOut"}},className:`w-full bg-white overflow-hidden ${o}`,children:t})})]})},Ht={LOADING:"loading",COMPLETE:"complete",ERROR:"error"},cN=({file:e,onDelete:t,onRetry:n,uploadDuration:r=4e3})=>{const{t:s}=Ve(),o=()=>e.error?Ht.ERROR:e.loading?Ht.LOADING:Ht.COMPLETE,[a,c]=O.useState(o()),[u,d]=O.useState(0),[h,m]=O.useState(10);O.useEffect(()=>{const b=o();c(b);let T;if(b===Ht.LOADING&&u<100){const C=100/(r/100);T=setInterval(()=>{d(I=>{const E=Math.min(I+C,99),N=Math.max(0,Math.round((100-E)/10));return m(N),E})},100)}else b===Ht.COMPLETE&&u<100&&d(100);return()=>{T&&clearInterval(T)}},[e.loading,e.error,r,o,u]);const p=()=>{switch(a){case Ht.LOADING:return`${Math.round(u)}% (${h} ${s("seconds_left")})`;case Ht.COMPLETE:return s("file_uploaded");case Ht.ERROR:return s("upload_error");default:return""}},x=()=>{switch(a){case Ht.COMPLETE:return"text-green-500 font-600";case Ht.ERROR:return"text-red-500 font-600";default:return"text-gray-300 font-400"}},S=()=>{if(!(e!=null&&e.file_size))return s("unknown");const b=e.file_size/1024;return b<1024?`${b.toFixed(1)} KB`:`${(b/1024).toFixed(1)} MB`};return g.jsxs("div",{className:"border border-gray-100 bg-white rounded-lg p-16 shadow-sm w-full",children:[g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsxs("div",{className:"flex items-center gap-4",children:[g.jsx(Pe,{icon:
|
|
683
|
+
flex items-center gap-2 group w-full justify-between`,children:[g.jsx("span",{className:`text-left text-lg md:text-xl font-700 ${a}`,children:c(e)}),g.jsxs("div",{className:"flex gap-10 items-center",children:[g.jsx("span",{className:"text-gray-500 font-normal text-base md:text-lg",children:n}),g.jsx(aN,{isOpen:h})]})]}),g.jsx(Kn,{mode:"wait",children:h&&g.jsx(st.div,{...oN,transition:{height:{duration:Qb.duration,ease:Qb.ease},opacity:{duration:.15,ease:"easeOut"}},className:`w-full bg-white overflow-hidden ${o}`,children:t})})]})},Ht={LOADING:"loading",COMPLETE:"complete",ERROR:"error"},cN=({file:e,onDelete:t,onRetry:n,uploadDuration:r=4e3})=>{const{t:s}=Ve(),o=()=>e.error?Ht.ERROR:e.loading?Ht.LOADING:Ht.COMPLETE,[a,c]=O.useState(o()),[u,d]=O.useState(0),[h,m]=O.useState(10);O.useEffect(()=>{const b=o();c(b);let T;if(b===Ht.LOADING&&u<100){const C=100/(r/100);T=setInterval(()=>{d(I=>{const E=Math.min(I+C,99),N=Math.max(0,Math.round((100-E)/10));return m(N),E})},100)}else b===Ht.COMPLETE&&u<100&&d(100);return()=>{T&&clearInterval(T)}},[e.loading,e.error,r,o,u]);const p=()=>{switch(a){case Ht.LOADING:return`${Math.round(u)}% (${h} ${s("seconds_left")})`;case Ht.COMPLETE:return s("file_uploaded");case Ht.ERROR:return s("upload_error");default:return""}},x=()=>{switch(a){case Ht.COMPLETE:return"text-green-500 font-600";case Ht.ERROR:return"text-red-500 font-600";default:return"text-gray-300 font-400"}},S=()=>{if(!(e!=null&&e.file_size))return s("unknown");const b=e.file_size/1024;return b<1024?`${b.toFixed(1)} KB`:`${(b/1024).toFixed(1)} MB`};return g.jsxs("div",{className:"border border-gray-100 bg-white rounded-lg p-16 shadow-sm w-full",children:[g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsxs("div",{className:"flex items-center gap-4",children:[g.jsx(Pe,{icon:h3,className:"w-12 h-12 min-w-12 min-h-12 text-gray-400"}),g.jsx("span",{className:"text-gray-500 text-sm",children:e.user_file_name})]}),a===Ht.COMPLETE&&g.jsx("button",{onClick:t,className:"text-gray-400 transition-all duration-200 hover:text-gray-600 focus:outline-none",children:g.jsx(Pe,{icon:d3})}),a===Ht.ERROR&&g.jsx("button",{onClick:n,className:"text-gray-400 transition-all duration-200 hover:text-gray-600 focus:outline-none",children:g.jsx(Pe,{icon:u3})})]}),g.jsx("div",{className:"flex items-center mt-2",children:e!=null&&e.analyzing?g.jsxs("div",{className:"flex items-center gap-6",children:[g.jsx(st.div,{className:"h-14 w-14 rounded-full border-2 border-t-blue-500 border-r-blue-300 border-b-blue-200 border-l-blue-400",animate:{rotate:360},transition:{duration:1,repeat:1/0,ease:"linear"}}),g.jsxs("span",{className:"text-sm text-gray-500",children:[s("analyzing_file_with_ai"),"..."]})]}):g.jsxs("div",{className:"text-sm",children:[g.jsxs("span",{className:"text-gray-500",children:[S()," |"]})," ",g.jsx("span",{className:x(),children:p()})]})}),a===Ht.LOADING&&g.jsx("div",{className:"mt-2 bg-gray-200 rounded-full h-2",children:g.jsx("div",{className:"h-2 rounded-full transition-all duration-100 ease-linear bg-blue-500",style:{width:`${u}%`}})})]})},e2=({index:e,label:t,active:n,completed:r})=>g.jsxs("div",{className:"flex items-center gap-8",children:[g.jsx("div",{className:`
|
|
684
684
|
size-24 rounded-full border-[1px] flex items-center justify-center text-center font-600 text-label transition-colors ease-in-out duration-200
|
|
685
685
|
${n&&"border-blue-500! text-blue-500!"}
|
|
686
686
|
${r?"text-blue-500 bg-blue-50 border-none!":"border-gray-300 text-gray-300"}
|
|
@@ -692,7 +692,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
692
692
|
${n||r?"text-blue-500":"text-gray-300"}
|
|
693
693
|
${n&&"font-600"}
|
|
694
694
|
${r&&"font-500"}
|
|
695
|
-
`,children:t})]}),uN=({currentStep:e,steps:t})=>g.jsx("div",{className:"flex flex-col gap-16",children:t.map((n,r)=>g.jsx(e2,{label:n,index:r+1,active:r+1===e,completed:r+1<e},r))}),fN=({label:e,value:t})=>g.jsxs("div",{className:"col-span-2 flex flex-col gap-6",children:[g.jsx("h4",{className:"text-body-m font-600",children:e}),g.jsx("div",{className:"text-body-s text-gray-600",children:typeof t=="string"||O.isValidElement(t)?t:null})]}),t2=({title:e,children:t,className:n=""})=>g.jsxs("div",{className:`w-full flex flex-col gap-16 ${n}`,children:[g.jsx("h4",{className:"text-body-m font-600",children:e}),g.jsx("div",{className:"w-full grid grid-cols-4 gap-8 bg-white p-16 rounded-2xl border-1 border-blue-100",children:t})]});t2.Entry=fN;const yi=({children:e,className:t,element:n="div"})=>{const r=n;return g.jsx(r,{className:`bg-white p-24 border border-blue-100 rounded-2xl ${t||""}`,children:e})},dN=({isOpen:e,onClose:t})=>{const n={hidden:{opacity:0},visible:{opacity:1}},r={hidden:{opacity:0,scale:.8,y:-20},visible:{opacity:1,scale:1,y:0,transition:{type:"spring",stiffness:300,damping:25}},exit:{opacity:0,scale:.8,y:20,transition:{duration:.2}}};return g.jsx(Kn,{children:e&&g.jsx(g.Fragment,{children:g.jsx(st.div,{className:"fixed inset-0 bg-black bg-opacity-50 z-50 flex items-center justify-center",initial:"hidden",animate:"visible",exit:"hidden",variants:n,onClick:t,children:g.jsx(st.div,{className:"w-full max-w-4xl mx-16 z-50",variants:r,initial:"hidden",animate:"visible",exit:"exit",onClick:s=>s.stopPropagation(),children:g.jsx(yi,{className:"flex flex-col gap-16 md:gap-24 !p-0",children:g.jsx(g.Fragment,{})})})})})})},hN={focusIconColor:"text-white",completedIconColor:"text-blue-500",pendingIconColor:"text-blue-500",labelColor:"text-blue-500",focusBgColor:"#4570EB",completedBgColor:"#CAD6F9",pendingBgColor:"#ECF1FD",lineActiveColor:"bg-blue-200",lineGradientFrom:"from-blue-500",lineGradientTo:"to-blue-200"},mN={focusIconColor:"text-white",completedIconColor:"text-aqua-500",pendingIconColor:"text-aqua-500",labelColor:"text-aqua-500",focusBgColor:"#1DA696",completedBgColor:"#C7F9F5",pendingBgColor:"#C7F9F5",lineActiveColor:"bg-aqua-200",lineGradientFrom:"from-aqua-500",lineGradientTo:"to-aqua-200"},ll=e=>{switch(e){case"aqua":return mN;case"blue":default:return hN}},pN=e=>{const{t}=Ve(),{labelColor:n}=ll(e.color);return g.jsxs("div",{className:"flex items-center gap-8 h-fit min-w-0",children:[g.jsx("div",{className:"flex-shrink-0",children:g.jsx(oh,{...e})}),e.label&&g.jsx("span",{className:`text-body-s transition-all duration-300 font-semibold truncate ${n}`,children:t(e.label)})]})},gN=e=>{const{t}=Ve(),{labelColor:n}=ll(e.color);return g.jsxs("div",{className:"flex flex-col items-center gap-8 h-fit min-w-fit",children:[g.jsx(oh,{...e}),e.label&&g.jsx("span",{className:`text-body-s transition-all duration-300 text-center font-semibold whitespace-nowrap ${n}`,children:t(e.label)})]})},yN=({steps:e,direction:t="horizontal",color:n})=>{const{defaultColorScheme:r}=Ve(),s=n||r,o=ll(s),[a,c]=O.useState([]),[u,d]=O.useState(null),[h,m]=O.useState(!1),p=e.findIndex(T=>!T.completed),x=T=>p===T;O.useEffect(()=>{const T=e.map((v,A)=>x(A)?"focus":v.completed?"done":"pending");if(!h)c(T),m(!0),d(null);else{const v=T.findIndex((A,C)=>A!==a[C]);d(v!==-1?v:null),c(T)}},[e,p]);const S=()=>g.jsx("div",{className:"flex flex-col h-full w-full",children:e.map((T,v)=>{const A=x(v)?"focus":T.completed?"done":"pending",C=h&&u===v;return g.jsxs("div",{className:`flex flex-col ${v<e.length-1?"flex-1":"flex-initial"}`,children:[g.jsx("div",{className:"flex items-center gap-4 z-10",children:g.jsx(pN,{index:v,status:A,shouldAnimate:C,label:T.label,color:s})}),v<e.length-1&&g.jsx("div",{className:"flex h-full w-[35px] justify-center my-4",children:g.jsx("div",{className:`w-[1.5px] h-full transition-all duration-500 ${A==="done"?o.lineActiveColor:A==="focus"?`bg-gradient-to-b ${o.lineGradientFrom} ${o.lineGradientTo}`:""}`,style:{backgroundColor:A==="pending"?o.pendingBgColor:void 0}})})]},v)})}),b=()=>g.jsx("div",{className:"w-full flex items-start",children:e.map((T,v)=>{const A=x(v)?"focus":T.completed?"done":"pending",C=h&&u===v;return g.jsxs("div",{className:`flex items-start ${v<e.length-1?"flex-1":"flex-initial"}`,children:[g.jsx("div",{className:"flex flex-col items-center z-10",children:g.jsx(gN,{index:v,status:A,shouldAnimate:C,label:T.label,color:s})}),v<e.length-1&&g.jsx("div",{className:`flex-1 h-[1.5px] mt-[16px] mx-4 transition-all duration-500 ${A==="done"?o.lineActiveColor:A==="focus"?`bg-gradient-to-r ${o.lineGradientFrom} ${o.lineGradientTo}`:""}`,style:{backgroundColor:A==="pending"?o.pendingBgColor:void 0}})]},v)})});return t==="horizontal"?g.jsx(b,{}):g.jsx(S,{})},xN=({variant:e="underline",color:t="blue",tabs:n,activeTab:r,onTabChange:s,className:o="",direction:a="row",showLabel:c=!0,labelClassName:u=""})=>{const d=O.useRef([]),[h,m]=O.useState({left:0,width:0}),p=O.useRef(null),{defaultColorScheme:x}=Ve(),S=t||x,b=()=>{const T=n.findIndex(v=>v.id===r);if(T>=0&&d.current[T]){const v=d.current[T];if(v&&p.current){const A=p.current.getBoundingClientRect(),C=v.getBoundingClientRect();m({left:C.left-A.left,width:C.width})}}};return O.useEffect(()=>{b()},[r,n]),O.useEffect(()=>{const T=()=>{b()};return window.addEventListener("resize",T),()=>{window.removeEventListener("resize",T)}},[r,n]),g.jsxs("div",{ref:p,className:`flex items-center relative ${o}`,children:[n.map((T,v)=>g.jsx(uf.div,{ref:A=>{d.current[v]=A},className:"w-full",children:g.jsx(O2,{href:T.href,label:c?T.label:"",labelClassName:u,icon:T.icon,direction:a,isSelected:r===T.id,onClick:()=>s(T.id),variant:e})},T.id)),g.jsx(uf.div,{className:`absolute bottom-0 h-2 bg-${S}-500`,initial:!1,animate:{left:h.left,width:h.width},transition:{type:"spring",stiffness:300,damping:30}})]})},zd=e=>_n(e,"dd/MM/yyyy"),vN=e=>{const[t,n,r]=e.split("/");if((t==null?void 0:t.length)===2&&(n==null?void 0:n.length)===2&&(r==null?void 0:r.length)===4){const s=new Date(Number(r),Number(n)-1,Number(t));return isNaN(s.getTime())?null:s}return null};function Gd({currentDate:e,onDateChange:t,label:n,placeholder:r="dd/mm/yyyy",error:s,translatedKey:o,showTimeSelector:a=!1,futureDates:c=!1,pastDates:u=!0,minDate:d,maxDate:h,customDisplay:m,size:p}){const[x,S]=O.useState(!1),[b,T]=O.useState(e?zd(e):"");O.useEffect(()=>{T(e?zd(e):"")},[e]);const v=C=>{const I=C.replace(/\D/g,"").slice(0,8),E=[];I.length>0&&E.push(I.slice(0,2)),I.length>2&&E.push(I.slice(2,4)),I.length>4&&E.push(I.slice(4,8));const N=E.join("/");if(T(N),S(!1),N.length===10){const R=vN(N);R&&t(R)}},A=()=>{t(null),T("")};return g.jsx(ys,{open:x,strategy:"fixed",padding:0,offset:0,onClose:()=>S(!1),className:"p-0!",component:g.jsx(Ud,{date:e||new Date,onDateChange:C=>{t(C),T(zd(C)),S(!1)},showTimeSelector:a,futureDates:c,pastDates:u,minDate:d,maxDate:h}),children:m?g.jsx("div",{onClick:C=>{C.preventDefault(),S(!0)},children:m}):g.jsx(al,{size:p,name:o,label:n,value:b,onClick:C=>{C.preventDefault(),S(!0)},onChange:C=>v(C),placeholder:r,error:s,rightSide:e&&g.jsx(Pe,{icon:tx,className:"text-gray-500 cursor-pointer",onClick:A})})})}function n2(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(n=n2(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Ln(){for(var e,t,n=0,r="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=n2(e))&&(r&&(r+=" "),r+=t);return r}const r2={filled:"bg-blue-500 text-white hover:bg-blue-600 hover:text-white active:bg-blue-700 active:text-white",transparent:"bg-blue-100 text-blue-500 hover:bg-blue-200 hover:text-blue-600 active:bg-blue-300/80 active:text-blue-700",outline:"bg-transparent border-1 border-blue-500 text-blue-500 hover:text-blue-600 hover:border-blue-600 active:text-blue-700 active:border-blue-700",invisible:"text-blue-500 hover:text-blue-600 active:text-blue-700"},s2={filled:"bg-aqua-500 text-white hover:bg-aqua-600 hover:text-white active:bg-aqua-700 active:text-white",transparent:"bg-aqua-100 text-aqua-500 hover:bg-aqua-200/50 hover:text-aqua-600 active:bg-aqua-200/70 active:text-aqua-700",outline:"bg-transparent border-1 border-aqua-500 text-aqua-500 hover:text-aqua-600 hover:border-aqua-600 active:text-aqua-700 active:border-aqua-700",invisible:"text-aqua-500 hover:text-aqua-600 active:text-aqua-700"},i2={filled:"bg-red-500 text-white hover:bg-red-600 hover:text-white active:bg-red-700 active:text-white",transparent:"bg-red-500/20 text-error hover:bg-red-500/30 hover:text-red-600 active:text-red-700 active:bg-red-700/40",outline:"bg-transparent border-1 border-red-500 text-error hover:text-red-600 hover:border-red-600 active:text-red-700 active:border-red-700",invisible:"text-red-500 hover:text-red-600 active:text-red-700"},o2={filled:"bg-gray-500 text-white hover:bg-gray-600 hover:text-white active:bg-gray-700 active:text-white",transparent:"bg-gray-100 text-gray-500 hover:bg-gray-200 hover:text-gray-600 active:text-gray-700 active:bg-gray-300",outline:"bg-transparent border-1 border-gray-500 text-gray-500 hover:text-gray-600 hover:border-gray-600 active:text-gray-700 active:border-gray-700",invisible:"text-gray-500 hover:text-gray-600 active:text-gray-700"},bN="transition-colors ease-in-out duration-200 flex items-center justify-center rounded-full w-fit font-600 text-body-s disabled:bg-gray-100 disabled:cursor-not-allowed disabled:text-gray-300",wN={lg:"gap-12 px-24 py-8 text-lg",base:"gap-8 px-20 py-7",md:"gap-8 px-16 py-6",sm:"gap-4 px-12 py-5",xs:"gap-4 px-6 py-3"},SN=(e="filled",t="blue",n="base")=>{const r=Ln(bN,wN[n]),s={blue:r2[e],aqua:s2[e],red:i2[e],gray:o2[e]}[t];return Ln(r,s)},TN="transition-colors ease-in-out duration-200 flex items-center justify-center rounded-full w-fit font-600 leading-normal disabled:bg-gray-100 disabled:cursor-not-allowed disabled:text-gray-300",CN={lg:"min-h-[46px] max-h-[46px] min-w-[46px] max-w-[46px]",base:"min-h-[40px] max-h-[40px] min-w-[40px] max-w-[40px]",md:"min-h-[28px] max-h-[28px] min-w-[28px] max-w-[28px]",sm:"min-h-[20px] max-h-[20px] min-w-[16px] max-w-[16px]",xs:"min-h-[12px] max-h-[12px] min-w-[12px] max-w-[12px]"},EN={none:"",blue:"shadow-blue-sh hover:shadow-blue-sh active:shadow-blue-sh"},PN=(e="filled",t="blue",n="base",r="none")=>{const s=Ln(TN,CN[n],EN[r]),o={blue:r2[e],aqua:s2[e],red:i2[e],gray:o2[e]}[t];return Ln(s,o)},AN={lg:"min-h-[20px] max-h-[20px]",base:"min-h-[15px] max-h-[15px]",md:"min-h-[15px] max-h-[15px]",sm:"min-h-[15px] max-h-[15px]",xs:"min-h-[15px] max-h-[15px]"},Do=(e="base")=>AN[e],xs=({icon:e,rightIcon:t,color:n,variant:r="filled",size:s="base",children:o,className:a,...c})=>{const{defaultColorScheme:u}=Ve(),d=n||u;return g.jsxs("button",{type:"button",className:SN(r,d,s)+" "+a,...c,children:[e&&g.jsx(Pe,{icon:e,className:Do(s)}),o,t&&g.jsx(Pe,{icon:t,className:Do(s)})]})},MN=({name:e,error:t,value:n="",onChange:r,onOptionClick:s,onKeyDown:o,onSelect:a,onButtonClick:c,options:u,placeholder:d,label:h,disabled:m=!1,className:p="",buttonContent:x="Enviar",showOptionsOnClick:S=!0,showChevron:b=!1,showButton:T=!1,setValueOnOptionSelect:v=!0,leftSide:A,rightSide:C})=>{const{t:I}=Ve(),[E,N]=O.useState(!1),R=O.useRef(null),{x:F,y:G,strategy:re,refs:ee,context:le}=or({open:E,onOpenChange:N,middleware:[tr(8),rr(),nr({padding:8}),Rr({apply({availableHeight:B,elements:X}){Object.assign(X.floating.style,{maxHeight:`${Math.min(B-10,300)}px`})},padding:8})],placement:"bottom-start",whileElementsMounted:er}),oe=sr(le,{enabled:b}),ue=ir(le),{getReferenceProps:ce,getFloatingProps:fe}=ar([oe,ue]),{isMounted:U,styles:W}=lr(le,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),K=(()=>{const B=Array.isArray(u)?u:[];if(!n||!n.trim())return B;const X=n.toLowerCase();return B.filter(ae=>ae.label.toLowerCase().includes(X))})(),$=B=>{v&&(r==null||r(B.label)),N(!1),s==null||s(B),a==null||a(B.value)},k=B=>{r==null||r(B)},J=B=>{B.stopPropagation(),b&&!m&&(N(!E),!E&&R.current&&setTimeout(()=>{var X;return(X=R.current)==null?void 0:X.focus()},100))},Z={...b?ce():{},onKeyDown:void 0,onClick:void 0};return g.jsxs("div",{className:`flex flex-col gap-8 select-none ${m&&"cursor-not-allowed"} ${p}`,children:[g.jsx("h6",{className:`text-gray-600 font-600 group ${t&&"!text-red-500"} text-label ${m&&"text-gray-300"}`,children:h}),g.jsxs("div",{className:"flex gap-24",children:[g.jsxs("div",{ref:ee.setReference,className:`
|
|
695
|
+
`,children:t})]}),uN=({currentStep:e,steps:t})=>g.jsx("div",{className:"flex flex-col gap-16",children:t.map((n,r)=>g.jsx(e2,{label:n,index:r+1,active:r+1===e,completed:r+1<e},r))}),fN=({label:e,value:t})=>g.jsxs("div",{className:"col-span-2 flex flex-col gap-6",children:[g.jsx("h4",{className:"text-body-m font-600",children:e}),g.jsx("div",{className:"text-body-s text-gray-600",children:typeof t=="string"||O.isValidElement(t)?t:null})]}),t2=({title:e,children:t,className:n=""})=>g.jsxs("div",{className:`w-full flex flex-col gap-16 ${n}`,children:[g.jsx("h4",{className:"text-body-m font-600",children:e}),g.jsx("div",{className:"w-full grid grid-cols-4 gap-8 bg-white p-16 rounded-2xl border-1 border-blue-100",children:t})]});t2.Entry=fN;const yi=({children:e,className:t,element:n="div"})=>{const r=n;return g.jsx(r,{className:`bg-white p-24 border border-blue-100 rounded-2xl ${t||""}`,children:e})},dN=({isOpen:e,onClose:t})=>{const n={hidden:{opacity:0},visible:{opacity:1}},r={hidden:{opacity:0,scale:.8,y:-20},visible:{opacity:1,scale:1,y:0,transition:{type:"spring",stiffness:300,damping:25}},exit:{opacity:0,scale:.8,y:20,transition:{duration:.2}}};return g.jsx(Kn,{children:e&&g.jsx(g.Fragment,{children:g.jsx(st.div,{className:"fixed inset-0 bg-black bg-opacity-50 z-50 flex items-center justify-center",initial:"hidden",animate:"visible",exit:"hidden",variants:n,onClick:t,children:g.jsx(st.div,{className:"w-full max-w-4xl mx-16 z-50",variants:r,initial:"hidden",animate:"visible",exit:"exit",onClick:s=>s.stopPropagation(),children:g.jsx(yi,{className:"flex flex-col gap-16 md:gap-24 !p-0",children:g.jsx(g.Fragment,{})})})})})})},hN={focusIconColor:"text-white",completedIconColor:"text-blue-500",pendingIconColor:"text-blue-500",labelColor:"text-blue-500",focusBgColor:"#4570EB",completedBgColor:"#CAD6F9",pendingBgColor:"#ECF1FD",lineActiveColor:"bg-blue-200",lineGradientFrom:"from-blue-500",lineGradientTo:"to-blue-200"},mN={focusIconColor:"text-white",completedIconColor:"text-aqua-500",pendingIconColor:"text-aqua-500",labelColor:"text-aqua-500",focusBgColor:"#1DA696",completedBgColor:"#C7F9F5",pendingBgColor:"#C7F9F5",lineActiveColor:"bg-aqua-200",lineGradientFrom:"from-aqua-500",lineGradientTo:"to-aqua-200"},ll=e=>{switch(e){case"aqua":return mN;case"blue":default:return hN}},pN=e=>{const{t}=Ve(),{labelColor:n}=ll(e.color);return g.jsxs("div",{className:"flex items-center gap-8 h-fit min-w-0",children:[g.jsx("div",{className:"flex-shrink-0",children:g.jsx(oh,{...e})}),e.label&&g.jsx("span",{className:`text-body-s transition-all duration-300 font-semibold truncate ${n}`,children:t(e.label)})]})},gN=e=>{const{t}=Ve(),{labelColor:n}=ll(e.color);return g.jsxs("div",{className:"relative flex flex-col items-center",children:[g.jsx(oh,{...e}),e.label&&g.jsx("span",{className:`absolute top-full left-1/2 -translate-x-1/2 mt-8 text-body-s transition-all duration-300 text-center font-semibold whitespace-nowrap ${n}`,children:t(e.label)})]})},yN=({steps:e,direction:t="horizontal",color:n})=>{const{defaultColorScheme:r}=Ve(),s=n||r,o=ll(s),[a,c]=O.useState([]),[u,d]=O.useState(null),[h,m]=O.useState(!1),p=e.findIndex(T=>!T.completed),x=T=>p===T;O.useEffect(()=>{const T=e.map((v,A)=>x(A)?"focus":v.completed?"done":"pending");if(!h)c(T),m(!0),d(null);else{const v=T.findIndex((A,C)=>A!==a[C]);d(v!==-1?v:null),c(T)}},[e,p]);const S=()=>g.jsx("div",{className:"flex flex-col h-full w-full",children:e.map((T,v)=>{const A=x(v)?"focus":T.completed?"done":"pending",C=h&&u===v;return g.jsxs("div",{className:`flex flex-col ${v<e.length-1?"flex-1":"flex-initial"}`,children:[g.jsx("div",{className:"flex items-center gap-4 z-10",children:g.jsx(pN,{index:v,status:A,shouldAnimate:C,label:T.label,color:s})}),v<e.length-1&&g.jsx("div",{className:"flex h-full w-[35px] justify-center my-4",children:g.jsx("div",{className:`w-[1.5px] h-full transition-all duration-500 ${A==="done"?o.lineActiveColor:A==="focus"?`bg-gradient-to-b ${o.lineGradientFrom} ${o.lineGradientTo}`:""}`,style:{backgroundColor:A==="pending"?o.pendingBgColor:void 0}})})]},v)})}),b=()=>g.jsx("div",{className:"w-full flex items-start pb-32",children:e.map((T,v)=>{const A=x(v)?"focus":T.completed?"done":"pending",C=h&&u===v;return g.jsxs("div",{className:`flex items-start ${v<e.length-1?"flex-1":"flex-initial"}`,children:[g.jsx("div",{className:"flex flex-col items-center z-10",children:g.jsx(gN,{index:v,status:A,shouldAnimate:C,label:T.label,color:s})}),v<e.length-1&&g.jsx("div",{className:`flex-1 h-[1.5px] mt-[16px] mx-4 transition-all duration-500 ${A==="done"?o.lineActiveColor:A==="focus"?`bg-gradient-to-r ${o.lineGradientFrom} ${o.lineGradientTo}`:""}`,style:{backgroundColor:A==="pending"?o.pendingBgColor:void 0}})]},v)})});return t==="horizontal"?g.jsx(b,{}):g.jsx(S,{})},xN=({variant:e="underline",color:t="blue",tabs:n,activeTab:r,onTabChange:s,className:o="",direction:a="row",showLabel:c=!0,labelClassName:u=""})=>{const d=O.useRef([]),[h,m]=O.useState({left:0,width:0}),p=O.useRef(null),{defaultColorScheme:x}=Ve(),S=t||x,b=()=>{const T=n.findIndex(v=>v.id===r);if(T>=0&&d.current[T]){const v=d.current[T];if(v&&p.current){const A=p.current.getBoundingClientRect(),C=v.getBoundingClientRect();m({left:C.left-A.left,width:C.width})}}};return O.useEffect(()=>{b()},[r,n]),O.useEffect(()=>{const T=()=>{b()};return window.addEventListener("resize",T),()=>{window.removeEventListener("resize",T)}},[r,n]),g.jsxs("div",{ref:p,className:`flex items-center relative ${o}`,children:[n.map((T,v)=>g.jsx(uf.div,{ref:A=>{d.current[v]=A},className:"w-full",children:g.jsx(O2,{href:T.href,label:c?T.label:"",labelClassName:u,icon:T.icon,direction:a,isSelected:r===T.id,onClick:()=>s(T.id),variant:e})},T.id)),g.jsx(uf.div,{className:`absolute bottom-0 h-2 bg-${S}-500`,initial:!1,animate:{left:h.left,width:h.width},transition:{type:"spring",stiffness:300,damping:30}})]})},zd=e=>_n(e,"dd/MM/yyyy"),vN=e=>{const[t,n,r]=e.split("/");if((t==null?void 0:t.length)===2&&(n==null?void 0:n.length)===2&&(r==null?void 0:r.length)===4){const s=new Date(Number(r),Number(n)-1,Number(t));return isNaN(s.getTime())?null:s}return null};function Gd({currentDate:e,onDateChange:t,label:n,placeholder:r="dd/mm/yyyy",error:s,translatedKey:o,showTimeSelector:a=!1,futureDates:c=!1,pastDates:u=!0,minDate:d,maxDate:h,customDisplay:m,size:p}){const[x,S]=O.useState(!1),[b,T]=O.useState(e?zd(e):"");O.useEffect(()=>{T(e?zd(e):"")},[e]);const v=C=>{const I=C.replace(/\D/g,"").slice(0,8),E=[];I.length>0&&E.push(I.slice(0,2)),I.length>2&&E.push(I.slice(2,4)),I.length>4&&E.push(I.slice(4,8));const N=E.join("/");if(T(N),S(!1),N.length===10){const R=vN(N);R&&t(R)}},A=()=>{t(null),T("")};return g.jsx(ys,{open:x,strategy:"fixed",padding:0,offset:0,onClose:()=>S(!1),className:"p-0!",component:g.jsx(Ud,{date:e||new Date,onDateChange:C=>{t(C),T(zd(C)),S(!1)},showTimeSelector:a,futureDates:c,pastDates:u,minDate:d,maxDate:h}),children:m?g.jsx("div",{onClick:C=>{C.preventDefault(),S(!0)},children:m}):g.jsx(al,{size:p,name:o,label:n,value:b,onClick:C=>{C.preventDefault(),S(!0)},onChange:C=>v(C),placeholder:r,error:s,rightSide:e&&g.jsx(Pe,{icon:tx,className:"text-gray-500 cursor-pointer",onClick:A})})})}function n2(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(n=n2(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Ln(){for(var e,t,n=0,r="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=n2(e))&&(r&&(r+=" "),r+=t);return r}const r2={filled:"bg-blue-500 text-white hover:bg-blue-600 hover:text-white active:bg-blue-700 active:text-white",transparent:"bg-blue-100 text-blue-500 hover:bg-blue-200 hover:text-blue-600 active:bg-blue-300/80 active:text-blue-700",outline:"bg-transparent border-1 border-blue-500 text-blue-500 hover:text-blue-600 hover:border-blue-600 active:text-blue-700 active:border-blue-700",invisible:"text-blue-500 hover:text-blue-600 active:text-blue-700"},s2={filled:"bg-aqua-500 text-white hover:bg-aqua-600 hover:text-white active:bg-aqua-700 active:text-white",transparent:"bg-aqua-100 text-aqua-500 hover:bg-aqua-200/50 hover:text-aqua-600 active:bg-aqua-200/70 active:text-aqua-700",outline:"bg-transparent border-1 border-aqua-500 text-aqua-500 hover:text-aqua-600 hover:border-aqua-600 active:text-aqua-700 active:border-aqua-700",invisible:"text-aqua-500 hover:text-aqua-600 active:text-aqua-700"},i2={filled:"bg-red-500 text-white hover:bg-red-600 hover:text-white active:bg-red-700 active:text-white",transparent:"bg-red-500/20 text-error hover:bg-red-500/30 hover:text-red-600 active:text-red-700 active:bg-red-700/40",outline:"bg-transparent border-1 border-red-500 text-error hover:text-red-600 hover:border-red-600 active:text-red-700 active:border-red-700",invisible:"text-red-500 hover:text-red-600 active:text-red-700"},o2={filled:"bg-gray-500 text-white hover:bg-gray-600 hover:text-white active:bg-gray-700 active:text-white",transparent:"bg-gray-100 text-gray-500 hover:bg-gray-200 hover:text-gray-600 active:text-gray-700 active:bg-gray-300",outline:"bg-transparent border-1 border-gray-500 text-gray-500 hover:text-gray-600 hover:border-gray-600 active:text-gray-700 active:border-gray-700",invisible:"text-gray-500 hover:text-gray-600 active:text-gray-700"},bN="transition-colors ease-in-out duration-200 flex items-center justify-center rounded-full w-fit font-600 text-body-s disabled:bg-gray-100 disabled:cursor-not-allowed disabled:text-gray-300",wN={lg:"gap-12 px-24 py-8 text-lg",base:"gap-8 px-20 py-7",md:"gap-8 px-16 py-6",sm:"gap-4 px-12 py-5",xs:"gap-4 px-6 py-3"},SN=(e="filled",t="blue",n="base")=>{const r=Ln(bN,wN[n]),s={blue:r2[e],aqua:s2[e],red:i2[e],gray:o2[e]}[t];return Ln(r,s)},TN="transition-colors ease-in-out duration-200 flex items-center justify-center rounded-full w-fit font-600 leading-normal disabled:bg-gray-100 disabled:cursor-not-allowed disabled:text-gray-300",CN={lg:"min-h-[46px] max-h-[46px] min-w-[46px] max-w-[46px]",base:"min-h-[40px] max-h-[40px] min-w-[40px] max-w-[40px]",md:"min-h-[28px] max-h-[28px] min-w-[28px] max-w-[28px]",sm:"min-h-[20px] max-h-[20px] min-w-[16px] max-w-[16px]",xs:"min-h-[12px] max-h-[12px] min-w-[12px] max-w-[12px]"},EN={none:"",blue:"shadow-blue-sh hover:shadow-blue-sh active:shadow-blue-sh"},PN=(e="filled",t="blue",n="base",r="none")=>{const s=Ln(TN,CN[n],EN[r]),o={blue:r2[e],aqua:s2[e],red:i2[e],gray:o2[e]}[t];return Ln(s,o)},AN={lg:"min-h-[20px] max-h-[20px]",base:"min-h-[15px] max-h-[15px]",md:"min-h-[15px] max-h-[15px]",sm:"min-h-[15px] max-h-[15px]",xs:"min-h-[15px] max-h-[15px]"},Do=(e="base")=>AN[e],xs=({icon:e,rightIcon:t,color:n,variant:r="filled",size:s="base",children:o,className:a,...c})=>{const{defaultColorScheme:u}=Ve(),d=n||u;return g.jsxs("button",{type:"button",className:SN(r,d,s)+" "+a,...c,children:[e&&g.jsx(Pe,{icon:e,className:Do(s)}),o,t&&g.jsx(Pe,{icon:t,className:Do(s)})]})},MN=({name:e,error:t,value:n="",onChange:r,onOptionClick:s,onKeyDown:o,onSelect:a,onButtonClick:c,options:u,placeholder:d,label:h,disabled:m=!1,className:p="",buttonContent:x="Enviar",showOptionsOnClick:S=!0,showChevron:b=!1,showButton:T=!1,setValueOnOptionSelect:v=!0,leftSide:A,rightSide:C})=>{const{t:I}=Ve(),[E,N]=O.useState(!1),R=O.useRef(null),{x:F,y:G,strategy:re,refs:ee,context:le}=or({open:E,onOpenChange:N,middleware:[tr(8),rr(),nr({padding:8}),Rr({apply({availableHeight:B,elements:X}){Object.assign(X.floating.style,{maxHeight:`${Math.min(B-10,300)}px`})},padding:8})],placement:"bottom-start",whileElementsMounted:er}),oe=sr(le,{enabled:b}),ue=ir(le),{getReferenceProps:ce,getFloatingProps:fe}=ar([oe,ue]),{isMounted:U,styles:W}=lr(le,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),K=(()=>{const B=Array.isArray(u)?u:[];if(!n||!n.trim())return B;const X=n.toLowerCase();return B.filter(ae=>ae.label.toLowerCase().includes(X))})(),$=B=>{v&&(r==null||r(B.label)),N(!1),s==null||s(B),a==null||a(B.value)},k=B=>{r==null||r(B)},J=B=>{B.stopPropagation(),b&&!m&&(N(!E),!E&&R.current&&setTimeout(()=>{var X;return(X=R.current)==null?void 0:X.focus()},100))},Z={...b?ce():{},onKeyDown:void 0,onClick:void 0};return g.jsxs("div",{className:`flex flex-col gap-8 select-none ${m&&"cursor-not-allowed"} ${p}`,children:[g.jsx("h6",{className:`text-gray-600 font-600 group ${t&&"!text-red-500"} text-label ${m&&"text-gray-300"}`,children:h}),g.jsxs("div",{className:"flex gap-24",children:[g.jsxs("div",{ref:ee.setReference,className:`
|
|
696
696
|
flex items-center justify-between gap-8 p-16
|
|
697
697
|
|
|
698
698
|
${t&&"!border-red-500"}
|
|
@@ -708,7 +708,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
708
708
|
focus-within:border-blue-500 transition-colors duration-200 ease-in-out
|
|
709
709
|
${m&&"hover:!cursor-pointer"}
|
|
710
710
|
group-disabled:bg-gray-500
|
|
711
|
-
`,...Z,children:[A&&A,g.jsx("input",{ref:R,id:e,name:e,disabled:m,placeholder:d,value:n,onClick:()=>{S&&!E&&!m&&N(!0)},onChange:B=>k(B.target.value),onKeyDown:B=>{o&&o(B),B.key==="Enter"&&(B.preventDefault(),K.length>0&&$(K[0])),B.key==="Escape"&&N(!1)},className:`group bg-transparent w-full h-full font-600 placeholder:font-600 text-body-m disabled:text-gray-300 disabled:placeholder:text-gray-300 placeholder:text-gray-400 disabled:cursor-not-allowed overflow-visible outline-none ${m&&"pointer-events-none !select-none !caret-transparent"}`}),C&&!b?C:b&&g.jsx(Pe,{icon:NE,className:`text-xl text-gray-500 cursor-pointer ${E&&"rotate-180"} transition-transform duration-150 ease-in-out`,onClick:J})]}),T&&g.jsx(xs,{variant:"filled",size:"lg",onClick:c,className:"h-[55px]!",children:x})]}),t&&g.jsx("h4",{className:"font-500 text-label text-red-500 leading-none",children:I(t,{x:I(e)})}),U&&g.jsx("div",{ref:ee.setFloating,style:{position:re,top:G??0,left:F??0,...W,width:ee.reference.current instanceof Element?ee.reference.current.clientWidth:void 0,zIndex:50},className:"bg-white border border-blue-400 rounded-3xl shadow-lg overflow-hidden",...fe(),children:g.jsx("div",{className:"max-h-[250px] overflow-y-auto",children:K.length>0?g.jsx("ul",{className:"py-4",children:K.map((B,X)=>g.jsx("li",{className:`flex items-center px-16 py-10 transition-all duration-200 hover:bg-blue-50 cursor-pointer ${n===B.label?"bg-blue-100/30 text-blue-500 font-medium":""}`,onClick:ae=>{ae.stopPropagation(),$(B)},children:g.jsx("span",{children:I(B.label)})},`${B.label}-${X}`))}):n&&(n==null?void 0:n.length)>0?g.jsxs("div",{className:"px-16 py-16 text-center text-gray-500",children:[g.jsx("svg",{className:"mx-auto h-24 w-24 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9.172 16.172a4 4 0 015.656 0M9 10h.01M15 10h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})}),g.jsxs("p",{className:"mt-8 text-body-s",children:['No se encontraron resultados para "',n,'"']})]}):null})})]})},Yd=({label:e,onClick:t,onRemove:n,readOnly:r})=>g.jsxs("div",{className:"flex justify-between items-center gap-10 bg-[#DEE6F7] rounded-[4px] p-8 text-14",onClick:t,children:[g.jsx("span",{className:"text-blue-500 font-semibold text-nowrap text-ellipsis overflow-hidden",children:e}),!r&&n&&g.jsx("button",{onClick:s=>{n(),s.stopPropagation()},className:"flex items-center text-blue-300 hover:text-red-500",children:g.jsx(Pe,{icon:s0})})]}),ON=({values:e,onPillRemove:t})=>{const[n,r]=O.useState(!1),s=e.slice(0,3),o=e.slice(3);return g.jsxs("div",{className:"flex justify-between items-start gap-20",children:[g.jsxs("div",{className:"grid grid-cols-3 gap-4",children:[s.map(a=>g.jsx(Yd,{label:a.label,onRemove:()=>t(a.value)},a.value)),g.jsx(Kn,{children:n&&o.map(a=>g.jsx(st.div,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.8},transition:{duration:.2},children:g.jsx(Yd,{label:a.label,onRemove:()=>t(a.value)})},a.value))})]}),o.length>0&&g.jsx("button",{type:"button",onClick:()=>r(!n),className:"flex items-center gap-8 w-fit text-blue-500 font-semibold text-14 transition hover:text-blue-700 text-nowrap shrink-0",children:n?g.jsxs(g.Fragment,{children:[g.jsx("p",{children:"Ocultar"})," ",g.jsx(Pe,{icon:
|
|
711
|
+
`,...Z,children:[A&&A,g.jsx("input",{ref:R,id:e,name:e,disabled:m,placeholder:d,value:n,onClick:()=>{S&&!E&&!m&&N(!0)},onChange:B=>k(B.target.value),onKeyDown:B=>{o&&o(B),B.key==="Enter"&&(B.preventDefault(),K.length>0&&$(K[0])),B.key==="Escape"&&N(!1)},className:`group bg-transparent w-full h-full font-600 placeholder:font-600 text-body-m disabled:text-gray-300 disabled:placeholder:text-gray-300 placeholder:text-gray-400 disabled:cursor-not-allowed overflow-visible outline-none ${m&&"pointer-events-none !select-none !caret-transparent"}`}),C&&!b?C:b&&g.jsx(Pe,{icon:NE,className:`text-xl text-gray-500 cursor-pointer ${E&&"rotate-180"} transition-transform duration-150 ease-in-out`,onClick:J})]}),T&&g.jsx(xs,{variant:"filled",size:"lg",onClick:c,className:"h-[55px]!",children:x})]}),t&&g.jsx("h4",{className:"font-500 text-label text-red-500 leading-none",children:I(t,{x:I(e)})}),U&&g.jsx("div",{ref:ee.setFloating,style:{position:re,top:G??0,left:F??0,...W,width:ee.reference.current instanceof Element?ee.reference.current.clientWidth:void 0,zIndex:50},className:"bg-white border border-blue-400 rounded-3xl shadow-lg overflow-hidden",...fe(),children:g.jsx("div",{className:"max-h-[250px] overflow-y-auto",children:K.length>0?g.jsx("ul",{className:"py-4",children:K.map((B,X)=>g.jsx("li",{className:`flex items-center px-16 py-10 transition-all duration-200 hover:bg-blue-50 cursor-pointer ${n===B.label?"bg-blue-100/30 text-blue-500 font-medium":""}`,onClick:ae=>{ae.stopPropagation(),$(B)},children:g.jsx("span",{children:I(B.label)})},`${B.label}-${X}`))}):n&&(n==null?void 0:n.length)>0?g.jsxs("div",{className:"px-16 py-16 text-center text-gray-500",children:[g.jsx("svg",{className:"mx-auto h-24 w-24 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9.172 16.172a4 4 0 015.656 0M9 10h.01M15 10h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})}),g.jsxs("p",{className:"mt-8 text-body-s",children:['No se encontraron resultados para "',n,'"']})]}):null})})]})},Yd=({label:e,onClick:t,onRemove:n,readOnly:r})=>g.jsxs("div",{className:"flex justify-between items-center gap-10 bg-[#DEE6F7] rounded-[4px] p-8 text-14",onClick:t,children:[g.jsx("span",{className:"text-blue-500 font-semibold text-nowrap text-ellipsis overflow-hidden",children:e}),!r&&n&&g.jsx("button",{onClick:s=>{n(),s.stopPropagation()},className:"flex items-center text-blue-300 hover:text-red-500",children:g.jsx(Pe,{icon:s0})})]}),ON=({values:e,onPillRemove:t})=>{const[n,r]=O.useState(!1),s=e.slice(0,3),o=e.slice(3);return g.jsxs("div",{className:"flex justify-between items-start gap-20",children:[g.jsxs("div",{className:"grid grid-cols-3 gap-4",children:[s.map(a=>g.jsx(Yd,{label:a.label,onRemove:()=>t(a.value)},a.value)),g.jsx(Kn,{children:n&&o.map(a=>g.jsx(st.div,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.8},transition:{duration:.2},children:g.jsx(Yd,{label:a.label,onRemove:()=>t(a.value)})},a.value))})]}),o.length>0&&g.jsx("button",{type:"button",onClick:()=>r(!n),className:"flex items-center gap-8 w-fit text-blue-500 font-semibold text-14 transition hover:text-blue-700 text-nowrap shrink-0",children:n?g.jsxs(g.Fragment,{children:[g.jsx("p",{children:"Ocultar"})," ",g.jsx(Pe,{icon:c3})]}):g.jsxs(g.Fragment,{children:[g.jsxs("p",{children:["Ver ",o.length," más"]})," ",g.jsx(Pe,{icon:m3})]})})]})},$N=({open:e,onClose:t,children:n,side:r="right",className:s="",backdropClassName:o="",width:a="650px",zIndex:c=9999,usePortal:u=!0})=>{O.useEffect(()=>{const p=x=>{x.key==="Escape"&&e&&t()};return e&&(document.addEventListener("keydown",p),document.body.style.overflow="hidden"),()=>{document.removeEventListener("keydown",p),document.body.style.overflow="unset"}},[e,t]);const d={initial:{x:r==="right"?"100%":"-100%"},animate:{x:0,transition:{type:"spring",stiffness:300,damping:30,opacity:{duration:.2}}},exit:{x:r==="right"?"100%":"-100%",transition:{type:"spring",stiffness:300,damping:30,opacity:{duration:.15}}}},h={initial:{opacity:0},animate:{opacity:1,transition:{duration:.2}},exit:{opacity:0,transition:{duration:.15}}},m=g.jsx(Kn,{children:e&&g.jsxs("div",{className:"fixed inset-0 flex",style:{zIndex:c},children:[g.jsx(st.div,{variants:h,initial:"initial",animate:"animate",exit:"exit",className:`absolute inset-0 bg-black/50 backdrop-blur-[0.60px] ${o}`,onClick:p=>{p.preventDefault(),p.stopPropagation(),t()}}),g.jsx("div",{className:`relative flex w-full pointer-events-none ${r==="left"?"justify-start":"justify-end"}`,children:g.jsx(st.div,{variants:d,initial:"initial",animate:"animate",exit:"exit",className:`
|
|
712
712
|
relative bg-white shadow-2xl h-full overflow-hidden flex flex-col pointer-events-auto
|
|
713
713
|
${s}
|
|
714
714
|
`,style:{width:typeof a=="number"?`${a}px`:a},onClick:p=>{p.preventDefault(),p.stopPropagation()},children:n})})]})});return u&&typeof document<"u"&&document.body?Em.createPortal(m,document.body):m},_N=({filters:e})=>{const[t,n]=O.useState(!1),r=()=>n(!1),s=()=>n(!0);return g.jsx(ys,{open:t,onClose:r,placement:"bottom-start",className:"w-[326px] shadow-md! px-0! text-base! py-12!",component:g.jsxs("div",{className:"relative flex flex-col gap-[10px]",children:[g.jsx("h4",{className:"px-24 text-lg font-semibold text-blue-900",children:"Filtros"}),g.jsx("div",{className:"flex flex-col",children:e.map((o,a)=>g.jsxs("div",{className:"group flex gap-[8px] items-center px-[24px] py-[8px] hover:bg-blue-100 cursor-pointer transition ease-in-out",onClick:o.onClick,children:[g.jsx(Pe,{icon:o.icon,className:"text-[14px] text-gray-600 group-hover:text-blue-500"}),g.jsx("p",{className:"text-[12px] text-gray-500 font-semibold group-hover:text-gray-800",children:o.label})]},a))})]}),children:g.jsx(Pe,{icon:RE,onClick:s,className:"transition text-[16px] ease-in-out duration-150 hover:text-gray-600 cursor-pointer"})})},IN=({label:e,options:t,selectedValues:n,onUpdate:r,placeholder:s="Seleccionar opciones",allowSearch:o=!0,className:a="",disabled:c=!1,size:u="md"})=>{var fe;const[d,h]=O.useState(!1),[m,p]=O.useState(""),x=O.useRef(null),S=O.useRef(null),T={sm:{container:"px-16 py-8",text:"text-sm",label:"text-sm",icon:"w-12 h-12",checkboxSize:16,gap:"gap-8",searchText:"text-sm",searchIcon:"size-12"},md:{container:"p-16",text:"text-14",label:"text-14",icon:"w-16 h-16",checkboxSize:20,gap:"gap-8",searchText:"text-14",searchIcon:"size-16"}}[u],{x:v,y:A,strategy:C,refs:I,context:E}=or({open:d&&!c,onOpenChange:U=>!c&&h(U),middleware:[tr(8),rr(),nr({padding:8}),Rr({apply({availableHeight:U,elements:W}){Object.assign(W.floating.style,{maxHeight:`${Math.min(U-10,500)}px`})},padding:8}),gs({element:S})],placement:"bottom-start",whileElementsMounted:er}),N=sr(E,{enabled:!c}),R=ir(E),{getReferenceProps:F,getFloatingProps:G}=ar([N,R]),{isMounted:re,styles:ee}=lr(E,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),le=O.useCallback((U,W)=>{if(c)return;let K;W?K=n.includes(U)?n:[...n,U]:K=n.filter($=>$!==U),r(K)},[n,r,c]),oe=t.filter(U=>U.label.toLowerCase().includes(m.toLowerCase())),ue=()=>{if(n.length===0)return s;const U=t.filter(W=>n.includes(W.value)).map(W=>W.label);return U.length===1?U[0]:`${U.length} seleccionados`},ce=F({onClick:()=>!c&&h(!d)});return g.jsxs("div",{className:`flex flex-col select-none ${T.gap} ${c?"cursor-not-allowed":""} ${a}`,children:[e&&g.jsx("h6",{className:`text-gray-600 font-600 leading-none ${T.label} ${c?"text-gray-300":""}`,children:e}),g.jsxs("div",{ref:I.setReference,className:`
|
|
@@ -752,7 +752,7 @@ attempted value: ${a}
|
|
|
752
752
|
group-focus-within:border-blue-500 transition-colors duration-200 ease-in-out
|
|
753
753
|
|
|
754
754
|
group-disabled:bg-gray-500
|
|
755
|
-
`,children:[c&&c,g.jsx("input",{id:n,type:x?"text":"password",autoComplete:"off","aria-autocomplete":"none",name:n,disabled:o,placeholder:r,value:u,onChange:A=>d(A.target.value),onBlur:m,ref:h,className:`group bg-transparent w-full h-full font-600 placeholder:font-600 select-text ${v.text} disabled:text-gray-300 disabled:placeholder:text-gray-300 placeholder:text-gray-400 disabled:cursor-not-allowed overflow-visible outline-none`}),g.jsx(Pe,{icon:x?f5:l5,className:"min-h-16 max-h-16 text-gray-400 hover:text-gray-500 transition-colors duration-150 cursor-pointer ease-in-out",onClick:()=>S(!x)})]}),(p==null?void 0:p.message)&&g.jsx("h4",{className:`font-500 text-red-500 leading-none ${v.error}`,children:b(p.message,{x:b(n)})})]})},jk=({name:e,control:t,label:n="phone_number",placeholder:r="enter_phone_number",language:s="en",className:o="",translateKey:a,countries:c=A2})=>{var Ts,vl,Wr,bl;const{t:u}=Ve(),{field:d,fieldState:h}=Un.useController({name:e,control:t,rules:{validate:{}}}),m=((Ts=d.value)==null?void 0:Ts.split(" "))||[],p=m[0]||null,x=m[1]||"",S=c.find(ve=>p===ve.phone),[b,T]=O.useState(!1),[v,A]=O.useState(""),[C,I]=O.useState(S||null),[E,N]=O.useState(x),[R,F]=O.useState(!1),G=O.useRef(null),re=O.useRef(null),ee=O.useRef(null),le=O.useRef(null),{x:oe,y:ue,strategy:ce,refs:fe,context:U,placement:W,middlewareData:K}=or({open:b,onOpenChange:T,middleware:[tr(8),rr(),nr({padding:8}),Rr({apply({availableHeight:ve,elements:Ze}){Object.assign(Ze.floating.style,{maxHeight:`${Math.min(ve-10,300)}px`})},padding:8}),gs({element:re})],placement:"bottom-start",whileElementsMounted:er}),$=sr(U),k=ir(U),{getReferenceProps:J,getFloatingProps:H}=ar([$,k]),{isMounted:Z,styles:B}=lr(U,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),ae=(Array.isArray(c)?c:[]).filter(ve=>{if(!v.trim())return!0;const Ze=s==="es"&&ve.labelES?ve.labelES.toLowerCase():ve.label.toLowerCase(),Pt=ve.code?ve.code.toLowerCase():"",xn=ve.phone?ve.phone.toLowerCase():"";return Ze.includes(v.toLowerCase())||Pt.includes(v.toLowerCase())||xn.includes(v.toLowerCase())}),se=ve=>{I(ve),T(!1),A("");const Ze=`${ve.phone} ${E}`;d.onChange(Ze),setTimeout(()=>{var Pt;(Pt=ee.current)==null||Pt.focus()},100)},he=ve=>{const Ze=ve.target.value;if(N(Ze),C){const Pt=`${C.phone} ${Ze}`;d.onChange(Pt)}},Ee=()=>{T(!b),!b&&G.current&&setTimeout(()=>{var ve;(ve=G.current)==null||ve.focus()},100)},Be=()=>{setTimeout(()=>{b||d.onBlur()},200)},ie=()=>{F(!0)},ge=()=>{F(!1)};O.useEffect(()=>{if(d.value){const ve=d.value.split(" "),Ze=ve[0]||"",Pt=ve[1]||"",xn=c.find(ur=>ur.phone===Ze);xn&&I(xn),N(Pt)}},[d.value,c]),O.useEffect(()=>{const ve=Ze=>{le.current&&!le.current.contains(Ze.target)&&d.onBlur()};return document.addEventListener("mousedown",ve),()=>{document.removeEventListener("mousedown",ve)}},[d]);const De=ve=>{var Ze;return ve?ve.codeISO2?ve.codeISO2.toLowerCase():((Ze=ve.code)==null?void 0:Ze.toLowerCase())||"":""},ft=(vl=K.arrow)==null?void 0:vl.x,Ss=(Wr=K.arrow)==null?void 0:Wr.y,dt={top:"bottom",right:"left",bottom:"top",left:"right"}[W.split("-")[0]],yl=J({onClick:Ee,onBlur:Be}),xl=()=>h.error?"border-red-500":R||b?"border-blue-400":"border-blue-100",Br=u(n),qt=u(r),yn=(bl=h.error)==null?void 0:bl.message;return g.jsxs("div",{className:`w-full relative flex flex-col gap-8 ${o}`,children:[Br&&g.jsx("label",{className:`text-gray-600 font-600 group ${yn&&"!text-red-500"} text-label`,children:Br}),g.jsxs("div",{ref:le,className:"flex items-center w-full",onMouseEnter:ie,onMouseLeave:ge,children:[g.jsxs("div",{ref:fe.setReference,className:`flex items-center justify-between text-lg max-w-120 font-600 bg-light rounded-l-full p-16 cursor-pointer border border-r-0 transition-all duration-200 ${yn?"border-red-500":xl()}`,style:{minWidth:"140px"},...yl,tabIndex:0,children:[C!=null&&C.code?g.jsxs("div",{className:"flex items-center truncate",children:[De(C)&&g.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${De(C)}.png`,srcSet:`https://flagcdn.com/w40/${De(C)}.png 2x`,alt:C.label,onError:ve=>{ve.currentTarget.style.display="none"}}),g.jsxs("span",{children:["+",C.phone]})]}):g.jsx("span",{className:"text-gray-400 font-600 text-body-m truncate",children:u("select_country")}),g.jsx(Pe,{icon:n0,className:"w-14 h-14 min-w-14 min-h-14"})]}),g.jsx("input",{ref:ee,type:"tel",className:`placeholder:text-gray-400 flex-grow bg-light rounded-r-full font-600 text-body-m p-16 border transition-all duration-200 ${yn?"border-red-500":xl()}`,placeholder:qt,value:E,onChange:he,onBlur:Be})]}),yn&&g.jsx("p",{className:"mt-1 text-sm text-red-600",children:u(yn,{x:u(a||"")||e})}),Z&&g.jsxs("div",{ref:fe.setFloating,style:{position:ce,top:ue??0,left:oe??0,...B},className:"z-10 w-fit bg-white border border-blue-400 rounded-3xl shadow-lg overflow-auto max-w-120",...H(),children:[g.jsx("div",{ref:re,className:"absolute w-4 h-4 bg-white rotate-45 border-blue-400",style:{left:ft!=null?`${ft}px`:"",top:Ss!=null?`${Ss}px`:"",right:"",bottom:"",[dt]:"-2px",borderRight:dt==="left"?"1px solid":"none",borderBottom:dt==="top"?"1px solid":"none",borderLeft:dt==="right"?"1px solid":"none",borderTop:dt==="bottom"?"1px solid":"none"}}),g.jsx("div",{className:"sticky top-0 bg-white p-2 z-20 w-fit",children:g.jsx("input",{ref:G,type:"text",className:"w-fit p-16",placeholder:u("search")+"...",value:v,onChange:ve=>A(ve.target.value),onClick:ve=>ve.stopPropagation(),onBlur:ve=>{ve.stopPropagation()},autoFocus:!0})}),g.jsx("div",{children:ae.length>0?g.jsx("ul",{className:"flex flex-col",children:ae.map((ve,Ze)=>{var xn;const Pt=ve.codeISO2?ve.codeISO2.toLowerCase():((xn=ve.code)==null?void 0:xn.toLowerCase())||"";return g.jsxs("li",{className:"flex items-center justify-between gap-10 px-16 py-8 transition-all duration-200 hover:bg-blue-100/50 cursor-pointer",onClick:ur=>{ur.stopPropagation(),se(ve)},children:[Pt&&g.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${Pt}.png`,srcSet:`https://flagcdn.com/w40/${Pt}.png 2x`,alt:ve.label,onError:ur=>{ur.currentTarget.style.display="none"}}),g.jsxs("span",{className:"text-gray-500",children:["+",ve.phone]})]},`${ve.code}-${Ze}`)})}):g.jsx("div",{className:"px-16 py-8 text-gray-500 text-body-s",children:u("no_countries_found")})})]})]})},Lk={bgColor:"bg-blue-100",fillColor:"bg-blue-500"},Rk={bgColor:"bg-aqua-100",fillColor:"bg-aqua-500"},Fk=e=>{switch(e){case"aqua":return Rk;case"blue":default:return Lk}},Vk=({progress:e,showPercentage:t=!1,color:n,className:r="",...s})=>{const{defaultColorScheme:o}=Ve(),a=n||o,{bgColor:c,fillColor:u}=Fk(a),d=Math.min(Math.max(e,0),100);return g.jsxs("div",{className:`flex items-center gap-12 ${r}`,...s,children:[g.jsx("div",{className:`w-full h-8 ${c} rounded-full`,children:g.jsx("div",{className:`h-full ${u} rounded-full transition-all duration-300 ease-in-out`,style:{width:`${d}%`}})}),t&&g.jsxs("span",{className:"text-sm text-gray-400 font-500",children:[d,"%"]})]})},Bk=()=>{const[e,t]=O.useState(!1),n=O.useRef(null),r=()=>{t(!0),setTimeout(()=>{var o;return(o=n.current)==null?void 0:o.focus()},100)},s=()=>{t(!1)};return g.jsx("div",{className:"relative flex items-center",children:g.jsxs("div",{className:`flex items-center justify-center bg-white shadow-md rounded-full transition-all duration-300 ease-in-out ${e?"w-[200px] h-[40px]":"size-[40px]"}`,children:[g.jsx("button",{onClick:r,className:"size-[40px] flex items-center justify-center rounded-full hover:bg-gray-100 transition-all",children:g.jsx(Pe,{icon:Y6})}),g.jsx("input",{ref:n,type:"text",className:`w-full outline-none bg-transparent transition-all ${e?"w-full pr-[10px]":"w-0"}`,placeholder:"Buscar...",onBlur:s,style:{border:"none",outline:"none"}})]})})},Wk="w-fit transition-colors ease-in-out duration-200 flex items-center justify-center gap-12 px-24 py-7 text-base rounded-full font-600 bg-transparent",Uk={true:"bg-blue-100 text-blue-500 hover:bg-blue-100/80 active:bg-blue-100/50 !bg-blue-100",false:"text-gray-800 hover:bg-blue-100/40 hover:text-blue-500 active:bg-blue-100/20 active:text-blue-500"},zk={true:"bg-aqua-100 text-aqua-500 hover:bg-aqua-100/80 active:bg-aqua-100/50 !bg-aqua-100",false:"text-gray-800 hover:bg-aqua-100/40 hover:text-aqua-500 active:bg-aqua-100/20 active:text-aqua-500"},Gk=(e=!1,t="blue")=>{const n=String(e);let r;switch(t){case"aqua":r=zk[n];break;case"blue":default:r=Uk[n];break}return Ln(Wk,r)},Yk=({label:e,href:t,onClick:n,active:r=!1,disabled:s=!1,className:o,icon:a,color:c})=>{const{defaultColorScheme:u}=Ve(),d=c||u,h=p=>{if(s){p.preventDefault();return}n==null||n(p)},m=`${Gk(r,d)} ${s?"!text-gray-300 cursor-not-allowed !bg-transparent":""}`;return t?g.jsxs("a",{href:t,className:`${m} ${o||""}`,onClick:h,"aria-disabled":s,children:[a&&g.jsx(Pe,{icon:a,className:Do()}),e]}):g.jsxs("button",{className:`${m} ${o||""}`,onClick:h,disabled:s,children:[a&&g.jsx(Pe,{icon:a,className:Do()}),e]})},Hk="w-fit transition-colors group ease-in-out duration-200 flex flex-col items-center justify-center gap-12 text-base font-600",qk={true:"text-blue-500 hover:text-blue-500",false:"text-gray-800 hover:text-blue-500"},Kk={true:"text-aqua-500 hover:text-aqua-500",false:"text-gray-800 hover:text-aqua-500"},Xk="flex h-32 w-32 items-center justify-center transition-colors ease-in-out duration-200 rounded-full",Zk={true:"text-blue-500 bg-blue-100 rounded-full",false:"text-gray-800 hover:text-blue-500 active:text-blue-500 group-hover:bg-blue-100 group-hover:text-blue-500"},Jk={true:"text-aqua-500 bg-aqua-100 rounded-full",false:"text-gray-800 hover:text-aqua-500 active:text-aqua-500 group-hover:bg-aqua-100 group-hover:text-aqua-500"},M2=(e=!1,t="blue")=>{const n=String(e);let r;switch(t){case"blue":r=Zk[n];break;case"aqua":default:r=Jk[n];break}return Ln(Xk,r)},Qk=(e=!1,t="blue")=>{const n=String(e);let r;switch(t){case"aqua":r=Kk[n];break;case"blue":default:r=qk[n];break}return Ln(Hk,r)},ej=({label:e,href:t,onClick:n,active:r=!1,disabled:s=!1,className:o,icon:a,color:c})=>{const{defaultColorScheme:u}=Ve(),d=c||u,h=p=>{if(s){p.preventDefault();return}n==null||n(p)},m=`${Qk(r,d)} ${s?"!text-gray-300 cursor-not-allowed !bg-transparent":""}`;return t?g.jsxs("a",{href:t,className:`${m} ${o||""}`,onClick:h,"aria-disabled":s,children:[a&&g.jsx("div",{className:M2(r,d),children:g.jsx(Pe,{icon:a,className:"size-16 max-h-16 max-w-16"})}),e]}):g.jsxs("button",{className:`${m} ${o||""}`,onClick:h,disabled:s,children:[a&&g.jsx("div",{className:M2(r,d),children:g.jsx(Pe,{icon:a,className:"size-16 max-h-16 max-w-16"})}),e]})},tj=e=>{const{display:t,...n}=e;return t==="desktop"?g.jsx(Yk,{...n}):t==="mobile"?g.jsx(ej,{...n}):null},nj=({options:e,name:t,control:n,label:r="",placeholder:s="Type to search...",className:o="",input:a=!0,dropdownStyle:c={},innerClassName:u="",showChevron:d=!0,size:h="md",required:m=!1})=>{const{field:{value:p,onChange:x},fieldState:{error:S}}=Un.useController({name:t,control:n});return g.jsx(rj,{options:e,value:p,onChange:x,label:r,placeholder:s,error:S==null?void 0:S.message,className:o,input:a,dropdownStyle:c,innerClassName:u,showChevron:d,size:h,required:m})},rj=({options:e,value:t,onChange:n,label:r="Select an option",placeholder:s="Type to search...",error:o,input:a=!0,className:c="",dropdownStyle:u={},innerClassName:d="",showChevron:h=!0,size:m="md",required:p=!1})=>{var H;const{t:x}=Ve(),[S,b]=O.useState(!1),[T,v]=O.useState(""),[A,C]=O.useState(t||null),I=O.useRef(null),E=O.useRef(null),R={sm:{container:"px-16 py-8",text:"text-sm",label:"text-sm",error:"text-sm",gap:"gap-8",icon:"w-12 h-12"},md:{container:"p-16",text:"text-14",label:"text-14",error:"text-sm",gap:"gap-8",icon:"w-16 h-16"}}[m],{x:F,y:G,strategy:re,refs:ee,context:le}=or({open:S,onOpenChange:b,middleware:[tr(8),rr(),nr({padding:8}),Rr({apply({availableHeight:Z,elements:B}){Object.assign(B.floating.style,{maxHeight:`${Math.min(Z-10,300)}px`})},padding:8}),gs({element:E})],placement:"bottom-start",whileElementsMounted:er}),oe=sr(le),ue=ir(le),{getReferenceProps:ce,getFloatingProps:fe}=ar([oe,ue]),{isMounted:U,styles:W}=lr(le,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),K=(()=>{const Z=Array.isArray(e)?e:[];if(!T.trim())return Z;const B=T.toLowerCase();return Z.filter(X=>X.label.toLowerCase().includes(B)||X.key.toLowerCase().includes(B))})(),$=Z=>{C(Z),b(!1),v(""),n(Z)},k=()=>{b(!S),!S&&I.current&&setTimeout(()=>{var Z;return(Z=I.current)==null?void 0:Z.focus()},100)};O.useEffect(()=>{C(t)},[t]);const J=ce({onClick:k});return g.jsxs("div",{className:`relative flex flex-col ${R.gap} ${c}`,children:[r&&g.jsxs("h6",{className:`text-gray-600 font-600 leading-none ${o?"!text-red-500":""} ${R.label}`,children:[r,p&&g.jsx("span",{className:"text-red-500 ml-4",children:"*"})]}),g.jsxs("div",{ref:ee.setReference,className:`${d} flex items-center justify-between bg-light rounded-full border transition-all duration-200
|
|
755
|
+
`,children:[c&&c,g.jsx("input",{id:n,type:x?"text":"password",autoComplete:"off","aria-autocomplete":"none",name:n,disabled:o,placeholder:r,value:u,onChange:A=>d(A.target.value),onBlur:m,ref:h,className:`group bg-transparent w-full h-full font-600 placeholder:font-600 select-text ${v.text} disabled:text-gray-300 disabled:placeholder:text-gray-300 placeholder:text-gray-400 disabled:cursor-not-allowed overflow-visible outline-none`}),g.jsx(Pe,{icon:x?f3:l3,className:"min-h-16 max-h-16 text-gray-400 hover:text-gray-500 transition-colors duration-150 cursor-pointer ease-in-out",onClick:()=>S(!x)})]}),(p==null?void 0:p.message)&&g.jsx("h4",{className:`font-500 text-red-500 leading-none ${v.error}`,children:b(p.message,{x:b(n)})})]})},jk=({name:e,control:t,label:n="phone_number",placeholder:r="enter_phone_number",language:s="en",className:o="",translateKey:a,countries:c=A2})=>{var Ts,vl,Wr,bl;const{t:u}=Ve(),{field:d,fieldState:h}=Un.useController({name:e,control:t,rules:{validate:{}}}),m=((Ts=d.value)==null?void 0:Ts.split(" "))||[],p=m[0]||null,x=m[1]||"",S=c.find(ve=>p===ve.phone),[b,T]=O.useState(!1),[v,A]=O.useState(""),[C,I]=O.useState(S||null),[E,N]=O.useState(x),[R,F]=O.useState(!1),G=O.useRef(null),re=O.useRef(null),ee=O.useRef(null),le=O.useRef(null),{x:oe,y:ue,strategy:ce,refs:fe,context:U,placement:W,middlewareData:K}=or({open:b,onOpenChange:T,middleware:[tr(8),rr(),nr({padding:8}),Rr({apply({availableHeight:ve,elements:Ze}){Object.assign(Ze.floating.style,{maxHeight:`${Math.min(ve-10,300)}px`})},padding:8}),gs({element:re})],placement:"bottom-start",whileElementsMounted:er}),$=sr(U),k=ir(U),{getReferenceProps:J,getFloatingProps:H}=ar([$,k]),{isMounted:Z,styles:B}=lr(U,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),ae=(Array.isArray(c)?c:[]).filter(ve=>{if(!v.trim())return!0;const Ze=s==="es"&&ve.labelES?ve.labelES.toLowerCase():ve.label.toLowerCase(),Pt=ve.code?ve.code.toLowerCase():"",xn=ve.phone?ve.phone.toLowerCase():"";return Ze.includes(v.toLowerCase())||Pt.includes(v.toLowerCase())||xn.includes(v.toLowerCase())}),se=ve=>{I(ve),T(!1),A("");const Ze=`${ve.phone} ${E}`;d.onChange(Ze),setTimeout(()=>{var Pt;(Pt=ee.current)==null||Pt.focus()},100)},he=ve=>{const Ze=ve.target.value;if(N(Ze),C){const Pt=`${C.phone} ${Ze}`;d.onChange(Pt)}},Ee=()=>{T(!b),!b&&G.current&&setTimeout(()=>{var ve;(ve=G.current)==null||ve.focus()},100)},Be=()=>{setTimeout(()=>{b||d.onBlur()},200)},ie=()=>{F(!0)},ge=()=>{F(!1)};O.useEffect(()=>{if(d.value){const ve=d.value.split(" "),Ze=ve[0]||"",Pt=ve[1]||"",xn=c.find(ur=>ur.phone===Ze);xn&&I(xn),N(Pt)}},[d.value,c]),O.useEffect(()=>{const ve=Ze=>{le.current&&!le.current.contains(Ze.target)&&d.onBlur()};return document.addEventListener("mousedown",ve),()=>{document.removeEventListener("mousedown",ve)}},[d]);const De=ve=>{var Ze;return ve?ve.codeISO2?ve.codeISO2.toLowerCase():((Ze=ve.code)==null?void 0:Ze.toLowerCase())||"":""},ft=(vl=K.arrow)==null?void 0:vl.x,Ss=(Wr=K.arrow)==null?void 0:Wr.y,dt={top:"bottom",right:"left",bottom:"top",left:"right"}[W.split("-")[0]],yl=J({onClick:Ee,onBlur:Be}),xl=()=>h.error?"border-red-500":R||b?"border-blue-400":"border-blue-100",Br=u(n),qt=u(r),yn=(bl=h.error)==null?void 0:bl.message;return g.jsxs("div",{className:`w-full relative flex flex-col gap-8 ${o}`,children:[Br&&g.jsx("label",{className:`text-gray-600 font-600 group ${yn&&"!text-red-500"} text-label`,children:Br}),g.jsxs("div",{ref:le,className:"flex items-center w-full",onMouseEnter:ie,onMouseLeave:ge,children:[g.jsxs("div",{ref:fe.setReference,className:`flex items-center justify-between text-lg max-w-120 font-600 bg-light rounded-l-full p-16 cursor-pointer border border-r-0 transition-all duration-200 ${yn?"border-red-500":xl()}`,style:{minWidth:"140px"},...yl,tabIndex:0,children:[C!=null&&C.code?g.jsxs("div",{className:"flex items-center truncate",children:[De(C)&&g.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${De(C)}.png`,srcSet:`https://flagcdn.com/w40/${De(C)}.png 2x`,alt:C.label,onError:ve=>{ve.currentTarget.style.display="none"}}),g.jsxs("span",{children:["+",C.phone]})]}):g.jsx("span",{className:"text-gray-400 font-600 text-body-m truncate",children:u("select_country")}),g.jsx(Pe,{icon:n0,className:"w-14 h-14 min-w-14 min-h-14"})]}),g.jsx("input",{ref:ee,type:"tel",className:`placeholder:text-gray-400 flex-grow bg-light rounded-r-full font-600 text-body-m p-16 border transition-all duration-200 ${yn?"border-red-500":xl()}`,placeholder:qt,value:E,onChange:he,onBlur:Be})]}),yn&&g.jsx("p",{className:"mt-1 text-sm text-red-600",children:u(yn,{x:u(a||"")||e})}),Z&&g.jsxs("div",{ref:fe.setFloating,style:{position:ce,top:ue??0,left:oe??0,...B},className:"z-10 w-fit bg-white border border-blue-400 rounded-3xl shadow-lg overflow-auto max-w-120",...H(),children:[g.jsx("div",{ref:re,className:"absolute w-4 h-4 bg-white rotate-45 border-blue-400",style:{left:ft!=null?`${ft}px`:"",top:Ss!=null?`${Ss}px`:"",right:"",bottom:"",[dt]:"-2px",borderRight:dt==="left"?"1px solid":"none",borderBottom:dt==="top"?"1px solid":"none",borderLeft:dt==="right"?"1px solid":"none",borderTop:dt==="bottom"?"1px solid":"none"}}),g.jsx("div",{className:"sticky top-0 bg-white p-2 z-20 w-fit",children:g.jsx("input",{ref:G,type:"text",className:"w-fit p-16",placeholder:u("search")+"...",value:v,onChange:ve=>A(ve.target.value),onClick:ve=>ve.stopPropagation(),onBlur:ve=>{ve.stopPropagation()},autoFocus:!0})}),g.jsx("div",{children:ae.length>0?g.jsx("ul",{className:"flex flex-col",children:ae.map((ve,Ze)=>{var xn;const Pt=ve.codeISO2?ve.codeISO2.toLowerCase():((xn=ve.code)==null?void 0:xn.toLowerCase())||"";return g.jsxs("li",{className:"flex items-center justify-between gap-10 px-16 py-8 transition-all duration-200 hover:bg-blue-100/50 cursor-pointer",onClick:ur=>{ur.stopPropagation(),se(ve)},children:[Pt&&g.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${Pt}.png`,srcSet:`https://flagcdn.com/w40/${Pt}.png 2x`,alt:ve.label,onError:ur=>{ur.currentTarget.style.display="none"}}),g.jsxs("span",{className:"text-gray-500",children:["+",ve.phone]})]},`${ve.code}-${Ze}`)})}):g.jsx("div",{className:"px-16 py-8 text-gray-500 text-body-s",children:u("no_countries_found")})})]})]})},Lk={bgColor:"bg-blue-100",fillColor:"bg-blue-500"},Rk={bgColor:"bg-aqua-100",fillColor:"bg-aqua-500"},Fk=e=>{switch(e){case"aqua":return Rk;case"blue":default:return Lk}},Vk=({progress:e,showPercentage:t=!1,color:n,className:r="",...s})=>{const{defaultColorScheme:o}=Ve(),a=n||o,{bgColor:c,fillColor:u}=Fk(a),d=Math.min(Math.max(e,0),100);return g.jsxs("div",{className:`flex items-center gap-12 ${r}`,...s,children:[g.jsx("div",{className:`w-full h-8 ${c} rounded-full`,children:g.jsx("div",{className:`h-full ${u} rounded-full transition-all duration-300 ease-in-out`,style:{width:`${d}%`}})}),t&&g.jsxs("span",{className:"text-sm text-gray-400 font-500",children:[d,"%"]})]})},Bk=()=>{const[e,t]=O.useState(!1),n=O.useRef(null),r=()=>{t(!0),setTimeout(()=>{var o;return(o=n.current)==null?void 0:o.focus()},100)},s=()=>{t(!1)};return g.jsx("div",{className:"relative flex items-center",children:g.jsxs("div",{className:`flex items-center justify-center bg-white shadow-md rounded-full transition-all duration-300 ease-in-out ${e?"w-[200px] h-[40px]":"size-[40px]"}`,children:[g.jsx("button",{onClick:r,className:"size-[40px] flex items-center justify-center rounded-full hover:bg-gray-100 transition-all",children:g.jsx(Pe,{icon:Y6})}),g.jsx("input",{ref:n,type:"text",className:`w-full outline-none bg-transparent transition-all ${e?"w-full pr-[10px]":"w-0"}`,placeholder:"Buscar...",onBlur:s,style:{border:"none",outline:"none"}})]})})},Wk="w-fit transition-colors ease-in-out duration-200 flex items-center justify-center gap-12 px-24 py-7 text-base rounded-full font-600 bg-transparent",Uk={true:"bg-blue-100 text-blue-500 hover:bg-blue-100/80 active:bg-blue-100/50 !bg-blue-100",false:"text-gray-800 hover:bg-blue-100/40 hover:text-blue-500 active:bg-blue-100/20 active:text-blue-500"},zk={true:"bg-aqua-100 text-aqua-500 hover:bg-aqua-100/80 active:bg-aqua-100/50 !bg-aqua-100",false:"text-gray-800 hover:bg-aqua-100/40 hover:text-aqua-500 active:bg-aqua-100/20 active:text-aqua-500"},Gk=(e=!1,t="blue")=>{const n=String(e);let r;switch(t){case"aqua":r=zk[n];break;case"blue":default:r=Uk[n];break}return Ln(Wk,r)},Yk=({label:e,href:t,onClick:n,active:r=!1,disabled:s=!1,className:o,icon:a,color:c})=>{const{defaultColorScheme:u}=Ve(),d=c||u,h=p=>{if(s){p.preventDefault();return}n==null||n(p)},m=`${Gk(r,d)} ${s?"!text-gray-300 cursor-not-allowed !bg-transparent":""}`;return t?g.jsxs("a",{href:t,className:`${m} ${o||""}`,onClick:h,"aria-disabled":s,children:[a&&g.jsx(Pe,{icon:a,className:Do()}),e]}):g.jsxs("button",{className:`${m} ${o||""}`,onClick:h,disabled:s,children:[a&&g.jsx(Pe,{icon:a,className:Do()}),e]})},Hk="w-fit transition-colors group ease-in-out duration-200 flex flex-col items-center justify-center gap-12 text-base font-600",qk={true:"text-blue-500 hover:text-blue-500",false:"text-gray-800 hover:text-blue-500"},Kk={true:"text-aqua-500 hover:text-aqua-500",false:"text-gray-800 hover:text-aqua-500"},Xk="flex h-32 w-32 items-center justify-center transition-colors ease-in-out duration-200 rounded-full",Zk={true:"text-blue-500 bg-blue-100 rounded-full",false:"text-gray-800 hover:text-blue-500 active:text-blue-500 group-hover:bg-blue-100 group-hover:text-blue-500"},Jk={true:"text-aqua-500 bg-aqua-100 rounded-full",false:"text-gray-800 hover:text-aqua-500 active:text-aqua-500 group-hover:bg-aqua-100 group-hover:text-aqua-500"},M2=(e=!1,t="blue")=>{const n=String(e);let r;switch(t){case"blue":r=Zk[n];break;case"aqua":default:r=Jk[n];break}return Ln(Xk,r)},Qk=(e=!1,t="blue")=>{const n=String(e);let r;switch(t){case"aqua":r=Kk[n];break;case"blue":default:r=qk[n];break}return Ln(Hk,r)},ej=({label:e,href:t,onClick:n,active:r=!1,disabled:s=!1,className:o,icon:a,color:c})=>{const{defaultColorScheme:u}=Ve(),d=c||u,h=p=>{if(s){p.preventDefault();return}n==null||n(p)},m=`${Qk(r,d)} ${s?"!text-gray-300 cursor-not-allowed !bg-transparent":""}`;return t?g.jsxs("a",{href:t,className:`${m} ${o||""}`,onClick:h,"aria-disabled":s,children:[a&&g.jsx("div",{className:M2(r,d),children:g.jsx(Pe,{icon:a,className:"size-16 max-h-16 max-w-16"})}),e]}):g.jsxs("button",{className:`${m} ${o||""}`,onClick:h,disabled:s,children:[a&&g.jsx("div",{className:M2(r,d),children:g.jsx(Pe,{icon:a,className:"size-16 max-h-16 max-w-16"})}),e]})},tj=e=>{const{display:t,...n}=e;return t==="desktop"?g.jsx(Yk,{...n}):t==="mobile"?g.jsx(ej,{...n}):null},nj=({options:e,name:t,control:n,label:r="",placeholder:s="Type to search...",className:o="",input:a=!0,dropdownStyle:c={},innerClassName:u="",showChevron:d=!0,size:h="md",required:m=!1})=>{const{field:{value:p,onChange:x},fieldState:{error:S}}=Un.useController({name:t,control:n});return g.jsx(rj,{options:e,value:p,onChange:x,label:r,placeholder:s,error:S==null?void 0:S.message,className:o,input:a,dropdownStyle:c,innerClassName:u,showChevron:d,size:h,required:m})},rj=({options:e,value:t,onChange:n,label:r="Select an option",placeholder:s="Type to search...",error:o,input:a=!0,className:c="",dropdownStyle:u={},innerClassName:d="",showChevron:h=!0,size:m="md",required:p=!1})=>{var H;const{t:x}=Ve(),[S,b]=O.useState(!1),[T,v]=O.useState(""),[A,C]=O.useState(t||null),I=O.useRef(null),E=O.useRef(null),R={sm:{container:"px-16 py-8",text:"text-sm",label:"text-sm",error:"text-sm",gap:"gap-8",icon:"w-12 h-12"},md:{container:"p-16",text:"text-14",label:"text-14",error:"text-sm",gap:"gap-8",icon:"w-16 h-16"}}[m],{x:F,y:G,strategy:re,refs:ee,context:le}=or({open:S,onOpenChange:b,middleware:[tr(8),rr(),nr({padding:8}),Rr({apply({availableHeight:Z,elements:B}){Object.assign(B.floating.style,{maxHeight:`${Math.min(Z-10,300)}px`})},padding:8}),gs({element:E})],placement:"bottom-start",whileElementsMounted:er}),oe=sr(le),ue=ir(le),{getReferenceProps:ce,getFloatingProps:fe}=ar([oe,ue]),{isMounted:U,styles:W}=lr(le,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),K=(()=>{const Z=Array.isArray(e)?e:[];if(!T.trim())return Z;const B=T.toLowerCase();return Z.filter(X=>X.label.toLowerCase().includes(B)||X.key.toLowerCase().includes(B))})(),$=Z=>{C(Z),b(!1),v(""),n(Z)},k=()=>{b(!S),!S&&I.current&&setTimeout(()=>{var Z;return(Z=I.current)==null?void 0:Z.focus()},100)};O.useEffect(()=>{C(t)},[t]);const J=ce({onClick:k});return g.jsxs("div",{className:`relative flex flex-col ${R.gap} ${c}`,children:[r&&g.jsxs("h6",{className:`text-gray-600 font-600 leading-none ${o?"!text-red-500":""} ${R.label}`,children:[r,p&&g.jsx("span",{className:"text-red-500 ml-4",children:"*"})]}),g.jsxs("div",{ref:ee.setReference,className:`${d} flex items-center justify-between bg-light rounded-full border transition-all duration-200
|
|
756
756
|
${R.container} cursor-pointer hover:border-blue-400
|
|
757
757
|
${o?"border-red-500 hover:border-red-600":""}
|
|
758
758
|
${S?"border-blue-400":"border-blue-100"}`,...J,children:[g.jsx("div",{className:"flex items-center w-full overflow-hidden",children:g.jsx("span",{className:`flex-grow font-600 truncate ${R.text} ${A?"":"text-gray-400"}`,children:x(A?A.label:s)})}),h&&g.jsx("svg",{className:`${R.icon} transition-transform ${S?"rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M19 9l-7 7-7-7"})})]}),o&&g.jsx("p",{className:`font-500 text-red-500 leading-none ${R.error}`,children:o}),U&&g.jsxs("div",{ref:ee.setFloating,style:{position:re,top:G??0,left:F??0,...W,width:(H=ee.reference.current)==null?void 0:H.clientWidth,zIndex:50,...u},className:"bg-white border border-blue-400 rounded-3xl shadow-lg overflow-hidden",...fe(),children:[a&&g.jsx("div",{className:"sticky top-0 bg-white p-8 border-b border-gray-100 z-20",children:g.jsxs("div",{className:"relative",children:[g.jsx("div",{className:"absolute inset-y-0 left-0 pl-12 flex items-center pointer-events-none",children:g.jsx("svg",{className:"h-16 w-16 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})})}),g.jsx("input",{ref:I,type:"text",className:"w-full py-8 pl-40 pr-12 rounded-full focus:outline-none text-body-s",placeholder:x("search_options"),value:T,onChange:Z=>v(Z.target.value),onClick:Z=>Z.stopPropagation(),autoFocus:!0})]})}),g.jsx("div",{className:"max-h-[250px] overflow-y-auto",children:K.length>0?g.jsx("ul",{className:"py-4",children:K.map((Z,B)=>g.jsx("li",{className:`flex items-center px-16 py-10 transition-all duration-200 hover:bg-blue-50 cursor-pointer
|
|
@@ -813,4 +813,4 @@ attempted value: ${a}
|
|
|
813
813
|
inline-block h-20 w-20 transform rounded-full bg-white
|
|
814
814
|
transition-transform duration-200 ease-in-out drop-shadow-xl
|
|
815
815
|
${e?"translate-x-24":"translate-x-3"}
|
|
816
|
-
`})]})},Tj=({filter:e,filterControl:t,translations:n={}})=>{var h,m,p,x,S,b,T,v,A,C;const[r,s]=O.useState(!0),{updateFilter:o,removeFilter:a}=t,c=!!(e!=null&&e.value),u=(I,E)=>n[I]||E,d=(I,E=[])=>{const N=E.find(R=>R.value===I);return N?N.label:String(I)};return g.jsx(ys,{open:r,onClose:()=>s(!1),placement:"bottom",className:"min-w-[400px]",component:g.jsxs("div",{children:[g.jsx("p",{children:u(e.key,e.label)}),e.type==="date"?g.jsxs("div",{className:"flex flex-col gap-2",children:[g.jsx("div",{className:"scale-[0.8] origin-left -mr-[10%] w-[125%]! relative z-99",children:g.jsx(Gd,{currentDate:(h=e.value)!=null&&h.startDate?new Date(e.value.startDate):null,maxDate:(m=e.value)!=null&&m.endDate?new Date(e.value.endDate):void 0,futureDates:!0,onDateChange:I=>o({key:e.key,value:{...e.value||{},startDate:(I==null?void 0:I.toISOString())||""},label:e.label,type:e.type}),label:"Fecha de inicio",translatedKey:"start_date"})}),g.jsx("div",{className:"scale-[0.8] origin-left -mr-[10%] w-[125%]! ",children:g.jsx(Gd,{currentDate:(p=e.value)!=null&&p.endDate?new Date(e.value.endDate):null,minDate:(x=e.value)!=null&&x.startDate?new Date(e.value.startDate):void 0,onDateChange:I=>o({key:e.key,value:{...e.value||{},endDate:(I==null?void 0:I.toISOString())||""},label:e.label,type:e.type}),label:"Fecha de fin",futureDates:!0,translatedKey:"end_date"})})]}):e.type==="select"?g.jsx(_2,{className:"scale-[0.8] origin-left -mr-[10%] w-[125%]! p-0! m-0!",value:e.value||"",options:e.options||[],label:"",allowSearch:!0,onChange:I=>o({key:e.key,value:I,label:e.label,type:e.type}),placeholder:u(e.key,e.label)}):g.jsx(al,{size:"sm",name:e.key,value:e.value,onChange:I=>o({key:e.key,value:I,label:e.label,type:e.type}),placeholder:u(e.key,e.label)})]}),children:g.jsxs("div",{className:`flex gap-[8px] items-center px-[12px] py-[8px] bg-blue-100 max-w-[400px] ${c&&"border-1! border-blue-500!"} cursor-pointer transition ease-in-out rounded-full border border-transparent hover:border-blue-500`,onClick:()=>s(!0),children:[g.jsxs("div",{className:"flex justify-between items-center gap-[6px] min-w-0",children:[g.jsx(Pe,{icon:e.icon||jE,className:"text-[14px] text-blue-500"}),g.jsx("p",{className:"flex-1 min-w-0 text-[12px] font-semibold text-gray-800 truncate overflow-hidden whitespace-nowrap",title:e.type==="date"?`${((S=e.value)==null?void 0:S.startDate)||"..."} - ${((b=e.value)==null?void 0:b.endDate)||"..."}`:String(e.value||u(e.key,e.label)),children:e.value&&(e.type==="date"?(T=e.value)!=null&&T.startDate||(v=e.value)!=null&&v.endDate:e.value)?g.jsxs(g.Fragment,{children:[u(e.key,e.label),":"," ",g.jsx("span",{className:"text-gray-600 truncate overflow-hidden whitespace-nowrap",children:e.type==="date"?`${(A=e.value)!=null&&A.startDate?new Date(e.value.startDate).toLocaleDateString():"..."} - ${(C=e.value)!=null&&C.endDate?new Date(e.value.endDate).toLocaleDateString():"..."}`:e.type==="select"?d(e.value,e.options):String(e.value)})]}):u(e.key,e.label)})]}),g.jsx("div",{className:"flex justify-center items-center",onClick:()=>a({key:e.key}),children:g.jsx(Pe,{icon:s0,className:"text-[10px] text-gray-400"})})]})})},I2=({children:e,onClickAway:t,enabled:n=!0,mouseEvent:r="onClick",touchEvent:s="onTouchEnd"})=>{const o=O.useRef(null);return O.useEffect(()=>{if(!n)return;const a=m=>{o.current&&(o.current.contains(m.target)||t())},c=m=>{switch(m){case"onClick":return"click";case"onMouseDown":return"mousedown";case"onMouseUp":return"mouseup";default:return"click"}},u=m=>{switch(m){case"onTouchStart":return"touchstart";case"onTouchEnd":return"touchend";default:return"touchend"}},d=c(r),h=u(s);return document.addEventListener(d,a,!0),document.addEventListener(h,a,!0),()=>{document.removeEventListener(d,a,!0),document.removeEventListener(h,a,!0)}},[n,t,r,s]),g.jsx("div",{ref:o,style:{display:"contents"},children:e})},oh=({status:e,shouldAnimate:t,color:n,index:r,sizeClass:s})=>{const o=e==="done",a=e==="focus",{focusIconColor:c,completedIconColor:u,pendingIconColor:d,focusBgColor:h,completedBgColor:m,pendingBgColor:p}=ll(n),x=o?u:a?c:d,S=o?m:a?h:p;return g.jsx(st.div,{animate:{backgroundColor:S},transition:{duration:t?.3:0,ease:"easeOut"},className:`size-[35px] rounded-full flex items-center justify-center font-bold text-sm ${s} ${x}`,children:g.jsx(Kn,{mode:"wait",children:o?g.jsx(st.div,{initial:t?{opacity:0,scale:.5}:{opacity:1},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.5},className:"flex items-center justify-center",children:g.jsx(Pe,{icon:xO})},"check"):g.jsx(st.div,{initial:t?{opacity:0}:{opacity:1},animate:{opacity:1},className:"leading-none flex items-center justify-center",children:r+1},"number")})})},Cj="Alejo",Ej=({theme:e={},children:t})=>{const n={...Pd,...e};return g.jsx(xb.Provider,{value:n,children:t})};te.ActionButton=IE,te.AlertModal=vb,te.AsyncToast=ex,te.AutocompleteInput=MN,te.Avatar=c2,te.BoxContainer=yi,te.Button=xs,te.CalendarSelector=Ud,te.CenterModal=f2,te.Checkbox=Kd,te.Chip=WN,te.CircleProgress=wj,te.ClickAwayListener=I2,te.CountryDropdown=Tk,te.CountryInput=wk,te.CountryLabel=Sk,te.DateInput=iN,te.DialogModal=Jb,te.Divider=u2,te.Dropdown=lN,te.EmptyState=NN,te.FileUpload=cN,te.FilterPill=Tj,te.FiltersMenu=_N,te.FloatingMenu=ys,te.IconButton=sh,te.ImageProfileInput=Pk,te.IndexedStep=e2,te.IndexedStepper=uN,te.InfoCard=Mk,te.InformationContainer=t2,te.InformationDisclaimer=Ik,te.LoadingProgress=ih,te.LoadingSpinner=Nk,te.ModalContainer=jN,te.MultiSelectDropdown=IN,te.Organism=Cj,te.PasswordInput=kk,te.PhoneInput=jk,te.Pill=Yd,te.PillsContainer=ON,te.ProgressBar=Vk,te.SearchBar=Bk,te.SearchModal=dN,te.SectionButton=tj,te.SelectInput=nj,te.SideModal=$N,te.SidebarButton=aj,te.SingleSelectDropdown=DN,te.StepIndicator=oh,te.Stepper=yN,te.Switch=Sj,te.Tab=O2,te.Tabs=xN,te.TextArea=pj,te.TextButton=$2,te.TextInput=gj,te.TextStaticInput=yj,te.ThemeProvider=Ej,te.ThresholdCircleProgress=vj,te.ThresholdProgressBar=bj,te.Toast=ff,te.Tooltip=kN,te.UncontrolledDateInput=Gd,te.UncontrolledSelector=_2,te.UncontrolledTextInput=al,te.UploadContainer=xj,te.capitalizeFirstLetter=vx,te.closeModal=FN,te.defaultTheme=Pd,te.formatLocalizedDate=
|
|
816
|
+
`})]})},Tj=({filter:e,filterControl:t,translations:n={}})=>{var h,m,p,x,S,b,T,v,A,C;const[r,s]=O.useState(!0),{updateFilter:o,removeFilter:a}=t,c=!!(e!=null&&e.value),u=(I,E)=>n[I]||E,d=(I,E=[])=>{const N=E.find(R=>R.value===I);return N?N.label:String(I)};return g.jsx(ys,{open:r,onClose:()=>s(!1),placement:"bottom",className:"min-w-[400px]",component:g.jsxs("div",{children:[g.jsx("p",{children:u(e.key,e.label)}),e.type==="date"?g.jsxs("div",{className:"flex flex-col gap-2",children:[g.jsx("div",{className:"scale-[0.8] origin-left -mr-[10%] w-[125%]! relative z-99",children:g.jsx(Gd,{currentDate:(h=e.value)!=null&&h.startDate?new Date(e.value.startDate):null,maxDate:(m=e.value)!=null&&m.endDate?new Date(e.value.endDate):void 0,futureDates:!0,onDateChange:I=>o({key:e.key,value:{...e.value||{},startDate:(I==null?void 0:I.toISOString())||""},label:e.label,type:e.type}),label:"Fecha de inicio",translatedKey:"start_date"})}),g.jsx("div",{className:"scale-[0.8] origin-left -mr-[10%] w-[125%]! ",children:g.jsx(Gd,{currentDate:(p=e.value)!=null&&p.endDate?new Date(e.value.endDate):null,minDate:(x=e.value)!=null&&x.startDate?new Date(e.value.startDate):void 0,onDateChange:I=>o({key:e.key,value:{...e.value||{},endDate:(I==null?void 0:I.toISOString())||""},label:e.label,type:e.type}),label:"Fecha de fin",futureDates:!0,translatedKey:"end_date"})})]}):e.type==="select"?g.jsx(_2,{className:"scale-[0.8] origin-left -mr-[10%] w-[125%]! p-0! m-0!",value:e.value||"",options:e.options||[],label:"",allowSearch:!0,onChange:I=>o({key:e.key,value:I,label:e.label,type:e.type}),placeholder:u(e.key,e.label)}):g.jsx(al,{size:"sm",name:e.key,value:e.value,onChange:I=>o({key:e.key,value:I,label:e.label,type:e.type}),placeholder:u(e.key,e.label)})]}),children:g.jsxs("div",{className:`flex gap-[8px] items-center px-[12px] py-[8px] bg-blue-100 max-w-[400px] ${c&&"border-1! border-blue-500!"} cursor-pointer transition ease-in-out rounded-full border border-transparent hover:border-blue-500`,onClick:()=>s(!0),children:[g.jsxs("div",{className:"flex justify-between items-center gap-[6px] min-w-0",children:[g.jsx(Pe,{icon:e.icon||jE,className:"text-[14px] text-blue-500"}),g.jsx("p",{className:"flex-1 min-w-0 text-[12px] font-semibold text-gray-800 truncate overflow-hidden whitespace-nowrap",title:e.type==="date"?`${((S=e.value)==null?void 0:S.startDate)||"..."} - ${((b=e.value)==null?void 0:b.endDate)||"..."}`:String(e.value||u(e.key,e.label)),children:e.value&&(e.type==="date"?(T=e.value)!=null&&T.startDate||(v=e.value)!=null&&v.endDate:e.value)?g.jsxs(g.Fragment,{children:[u(e.key,e.label),":"," ",g.jsx("span",{className:"text-gray-600 truncate overflow-hidden whitespace-nowrap",children:e.type==="date"?`${(A=e.value)!=null&&A.startDate?new Date(e.value.startDate).toLocaleDateString():"..."} - ${(C=e.value)!=null&&C.endDate?new Date(e.value.endDate).toLocaleDateString():"..."}`:e.type==="select"?d(e.value,e.options):String(e.value)})]}):u(e.key,e.label)})]}),g.jsx("div",{className:"flex justify-center items-center",onClick:()=>a({key:e.key}),children:g.jsx(Pe,{icon:s0,className:"text-[10px] text-gray-400"})})]})})},I2=({children:e,onClickAway:t,enabled:n=!0,mouseEvent:r="onClick",touchEvent:s="onTouchEnd"})=>{const o=O.useRef(null);return O.useEffect(()=>{if(!n)return;const a=m=>{o.current&&(o.current.contains(m.target)||t())},c=m=>{switch(m){case"onClick":return"click";case"onMouseDown":return"mousedown";case"onMouseUp":return"mouseup";default:return"click"}},u=m=>{switch(m){case"onTouchStart":return"touchstart";case"onTouchEnd":return"touchend";default:return"touchend"}},d=c(r),h=u(s);return document.addEventListener(d,a,!0),document.addEventListener(h,a,!0),()=>{document.removeEventListener(d,a,!0),document.removeEventListener(h,a,!0)}},[n,t,r,s]),g.jsx("div",{ref:o,style:{display:"contents"},children:e})},oh=({status:e,shouldAnimate:t,color:n,index:r,sizeClass:s})=>{const o=e==="done",a=e==="focus",{focusIconColor:c,completedIconColor:u,pendingIconColor:d,focusBgColor:h,completedBgColor:m,pendingBgColor:p}=ll(n),x=o?u:a?c:d,S=o?m:a?h:p;return g.jsx(st.div,{animate:{backgroundColor:S},transition:{duration:t?.3:0,ease:"easeOut"},className:`size-[35px] rounded-full flex items-center justify-center font-bold text-sm ${s} ${x}`,children:g.jsx(Kn,{mode:"wait",children:o?g.jsx(st.div,{initial:t?{opacity:0,scale:.5}:{opacity:1},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.5},className:"flex items-center justify-center",children:g.jsx(Pe,{icon:xO})},"check"):g.jsx(st.div,{initial:t?{opacity:0}:{opacity:1},animate:{opacity:1},className:"leading-none flex items-center justify-center",children:r+1},"number")})})},Cj="Alejo",Ej=({theme:e={},children:t})=>{const n={...Pd,...e};return g.jsx(xb.Provider,{value:n,children:t})};te.ActionButton=IE,te.AlertModal=vb,te.AsyncToast=ex,te.AutocompleteInput=MN,te.Avatar=c2,te.BoxContainer=yi,te.Button=xs,te.CalendarSelector=Ud,te.CenterModal=f2,te.Checkbox=Kd,te.Chip=WN,te.CircleProgress=wj,te.ClickAwayListener=I2,te.CountryDropdown=Tk,te.CountryInput=wk,te.CountryLabel=Sk,te.DateInput=iN,te.DialogModal=Jb,te.Divider=u2,te.Dropdown=lN,te.EmptyState=NN,te.FileUpload=cN,te.FilterPill=Tj,te.FiltersMenu=_N,te.FloatingMenu=ys,te.IconButton=sh,te.ImageProfileInput=Pk,te.IndexedStep=e2,te.IndexedStepper=uN,te.InfoCard=Mk,te.InformationContainer=t2,te.InformationDisclaimer=Ik,te.LoadingProgress=ih,te.LoadingSpinner=Nk,te.ModalContainer=jN,te.MultiSelectDropdown=IN,te.Organism=Cj,te.PasswordInput=kk,te.PhoneInput=jk,te.Pill=Yd,te.PillsContainer=ON,te.ProgressBar=Vk,te.SearchBar=Bk,te.SearchModal=dN,te.SectionButton=tj,te.SelectInput=nj,te.SideModal=$N,te.SidebarButton=aj,te.SingleSelectDropdown=DN,te.StepIndicator=oh,te.Stepper=yN,te.Switch=Sj,te.Tab=O2,te.Tabs=xN,te.TextArea=pj,te.TextButton=$2,te.TextInput=gj,te.TextStaticInput=yj,te.ThemeProvider=Ej,te.ThresholdCircleProgress=vj,te.ThresholdProgressBar=bj,te.Toast=ff,te.Tooltip=kN,te.UncontrolledDateInput=Gd,te.UncontrolledSelector=_2,te.UncontrolledTextInput=al,te.UploadContainer=xj,te.capitalizeFirstLetter=vx,te.closeModal=FN,te.defaultTheme=Pd,te.formatLocalizedDate=s3,te.getImageUrl=wx,te.openCustomModal=RN,te.openModal=LN,te.renderTabContent=VN,te.showToastAsync=qd,te.showToastLoading=l2,te.stringToColor=df,te.toBase64=i3,te.toast=BN,te.translateBytes=bx,te.useFilterToggler=z6,te.useTheme=Ve,te.yupImageProfileValidator=Ak,Object.defineProperty(te,Symbol.toStringTag,{value:"Module"})});
|