1mpacto-react-ui 0.0.80 → 0.0.82
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/assets/style.css +1 -1
- package/dist/index.cjs +29 -29
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +13 -13
- package/dist/index.mjs.map +1 -1
- package/dist/src/utils/common.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
"use strict";var O3=Object.defineProperty;var N3=(e,t,n)=>t in e?O3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ie=(e,t,n)=>N3(e,typeof t!="symbol"?t+"":t,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const x=require("react"),To=require("react-dom");function g0(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const j=g0(x),m0=g0(To);function Rn(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function di(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}const p0=6048e5,L3=864e5;let j3={};function Ul(){return j3}function qa(e,t){var s,l,u,c;const n=Ul(),r=(t==null?void 0:t.weekStartsOn)??((l=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:l.weekStartsOn)??n.weekStartsOn??((c=(u=n.locale)==null?void 0:u.options)==null?void 0:c.weekStartsOn)??0,i=Rn(e),a=i.getDay(),o=(a<r?7:0)+a-r;return i.setDate(i.getDate()-o),i.setHours(0,0,0,0),i}function el(e){return qa(e,{weekStartsOn:1})}function b0(e){const t=Rn(e),n=t.getFullYear(),r=di(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const i=el(r),a=di(e,0);a.setFullYear(n,0,4),a.setHours(0,0,0,0);const o=el(a);return t.getTime()>=i.getTime()?n+1:t.getTime()>=o.getTime()?n:n-1}function Ih(e){const t=Rn(e);return t.setHours(0,0,0,0),t}function _h(e){const t=Rn(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 H3(e,t){const n=Ih(e),r=Ih(t),i=+n-_h(n),a=+r-_h(r);return Math.round((i-a)/L3)}function W3(e){const t=b0(e),n=di(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),el(n)}function z3(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function G3(e){if(!z3(e)&&typeof e!="number")return!1;const t=Rn(e);return!isNaN(Number(t))}function Z3(e){const t=Rn(e),n=di(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}const X3={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"}},Y3=(e,t,n)=>{let r;const i=X3[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function lr(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const U3={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},J3={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},K3={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Q3={date:lr({formats:U3,defaultWidth:"full"}),time:lr({formats:J3,defaultWidth:"full"}),dateTime:lr({formats:K3,defaultWidth:"full"})},q3={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},eC=(e,t,n,r)=>q3[e];function Tt(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let i;if(r==="formatting"&&e.formattingValues){const o=e.defaultFormattingWidth||e.defaultWidth,s=n!=null&&n.width?String(n.width):o;i=e.formattingValues[s]||e.formattingValues[o]}else{const o=e.defaultWidth,s=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[s]||e.values[o]}const a=e.argumentCallback?e.argumentCallback(t):t;return i[a]}}const tC={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},nC={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},rC={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"]},iC={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"]},aC={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"}},oC={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"}},sC=(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"},lC={ordinalNumber:sC,era:Tt({values:tC,defaultWidth:"wide"}),quarter:Tt({values:nC,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Tt({values:rC,defaultWidth:"wide"}),day:Tt({values:iC,defaultWidth:"wide"}),dayPeriod:Tt({values:aC,defaultWidth:"wide",formattingValues:oC,defaultFormattingWidth:"wide"})};function Mt(e){return(t,n={})=>{const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;const o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?cC(s,d=>d.test(o)):uC(s,d=>d.test(o));let u;u=e.valueCallback?e.valueCallback(l):l,u=n.valueCallback?n.valueCallback(u):u;const c=t.slice(o.length);return{value:u,rest:c}}}function uC(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function cC(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function kd(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const i=r[0],a=t.match(e.parsePattern);if(!a)return null;let o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;const s=t.slice(i.length);return{value:o,rest:s}}}const dC=/^(\d+)(th|st|nd|rd)?/i,fC=/\d+/i,hC={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},gC={any:[/^b/i,/^(a|c)/i]},mC={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},pC={any:[/1/i,/2/i,/3/i,/4/i]},bC={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},vC={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]},yC={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},xC={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]},CC={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},wC={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}},DC={ordinalNumber:kd({matchPattern:dC,parsePattern:fC,valueCallback:e=>parseInt(e,10)}),era:Mt({matchPatterns:hC,defaultMatchWidth:"wide",parsePatterns:gC,defaultParseWidth:"any"}),quarter:Mt({matchPatterns:mC,defaultMatchWidth:"wide",parsePatterns:pC,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Mt({matchPatterns:bC,defaultMatchWidth:"wide",parsePatterns:vC,defaultParseWidth:"any"}),day:Mt({matchPatterns:yC,defaultMatchWidth:"wide",parsePatterns:xC,defaultParseWidth:"any"}),dayPeriod:Mt({matchPatterns:CC,defaultMatchWidth:"any",parsePatterns:wC,defaultParseWidth:"any"})},Bd={code:"en-US",formatDistance:Y3,formatLong:Q3,formatRelative:eC,localize:lC,match:DC,options:{weekStartsOn:0,firstWeekContainsDate:1}};function SC(e){const t=Rn(e);return H3(t,Z3(t))+1}function EC(e){const t=Rn(e),n=+el(t)-+W3(t);return Math.round(n/p0)+1}function v0(e,t){var c,d,h,f;const n=Rn(e),r=n.getFullYear(),i=Ul(),a=(t==null?void 0:t.firstWeekContainsDate)??((d=(c=t==null?void 0:t.locale)==null?void 0:c.options)==null?void 0:d.firstWeekContainsDate)??i.firstWeekContainsDate??((f=(h=i.locale)==null?void 0:h.options)==null?void 0:f.firstWeekContainsDate)??1,o=di(e,0);o.setFullYear(r+1,0,a),o.setHours(0,0,0,0);const s=qa(o,t),l=di(e,0);l.setFullYear(r,0,a),l.setHours(0,0,0,0);const u=qa(l,t);return n.getTime()>=s.getTime()?r+1:n.getTime()>=u.getTime()?r:r-1}function IC(e,t){var s,l,u,c;const n=Ul(),r=(t==null?void 0:t.firstWeekContainsDate)??((l=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:l.firstWeekContainsDate)??n.firstWeekContainsDate??((c=(u=n.locale)==null?void 0:u.options)==null?void 0:c.firstWeekContainsDate)??1,i=v0(e,t),a=di(e,0);return a.setFullYear(i,0,r),a.setHours(0,0,0,0),qa(a,t)}function _C(e,t){const n=Rn(e),r=+qa(n,t)-+IC(n,t);return Math.round(r/p0)+1}function je(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const mr={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return je(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):je(n+1,2)},d(e,t){return je(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 je(e.getHours()%12||12,t.length)},H(e,t){return je(e.getHours(),t.length)},m(e,t){return je(e.getMinutes(),t.length)},s(e,t){return je(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return je(i,t.length)}},Ai={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},$h={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(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return mr.y(e,t)},Y:function(e,t,n,r){const i=v0(e,r),a=i>0?i:1-i;if(t==="YY"){const o=a%100;return je(o,2)}return t==="Yo"?n.ordinalNumber(a,{unit:"year"}):je(a,t.length)},R:function(e,t){const n=b0(e);return je(n,t.length)},u:function(e,t){const n=e.getFullYear();return je(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 je(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 je(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 mr.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 je(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 i=_C(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):je(i,t.length)},I:function(e,t,n){const r=EC(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):je(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):mr.d(e,t)},D:function(e,t,n){const r=SC(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):je(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 i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return je(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return je(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),i=r===0?7:r;switch(t){case"i":return String(i);case"ii":return je(i,t.length);case"io":return n.ordinalNumber(i,{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 i=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let i;switch(r===12?i=Ai.noon:r===0?i=Ai.midnight:i=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let i;switch(r>=17?i=Ai.evening:r>=12?i=Ai.afternoon:r>=4?i=Ai.morning:i=Ai.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{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 mr.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):mr.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):je(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):je(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):mr.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):mr.s(e,t)},S:function(e,t){return mr.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return Ah(r);case"XXXX":case"XX":return Ur(r);case"XXXXX":case"XXX":default:return Ur(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return Ah(r);case"xxxx":case"xx":return Ur(r);case"xxxxx":case"xxx":default:return Ur(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Rh(r,":");case"OOOO":default:return"GMT"+Ur(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Rh(r,":");case"zzzz":default:return"GMT"+Ur(r,":")}},t:function(e,t,n){const r=Math.trunc(e.getTime()/1e3);return je(r,t.length)},T:function(e,t,n){const r=e.getTime();return je(r,t.length)}};function Rh(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),a=r%60;return a===0?n+String(i):n+String(i)+t+je(a,2)}function Ah(e,t){return e%60===0?(e>0?"-":"+")+je(Math.abs(e)/60,2):Ur(e,t)}function Ur(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=je(Math.trunc(r/60),2),a=je(r%60,2);return n+i+t+a}const Fh=(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"})}},y0=(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"})}},$C=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return Fh(e,t);let a;switch(r){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;case"PPPP":default:a=t.dateTime({width:"full"});break}return a.replace("{{date}}",Fh(r,t)).replace("{{time}}",y0(i,t))},RC={p:y0,P:$C},AC=/^D+$/,FC=/^Y+$/,PC=["D","DD","YY","YYYY"];function TC(e){return AC.test(e)}function MC(e){return FC.test(e)}function kC(e,t,n){const r=BC(e,t,n);if(console.warn(r),PC.includes(e))throw new RangeError(r)}function BC(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 VC=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,OC=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,NC=/^'([^]*?)'?$/,LC=/''/g,jC=/[a-zA-Z]/;function Ic(e,t,n){var c,d,h,f,g,m,p,b;const r=Ul(),i=(n==null?void 0:n.locale)??r.locale??Bd,a=(n==null?void 0:n.firstWeekContainsDate)??((d=(c=n==null?void 0:n.locale)==null?void 0:c.options)==null?void 0:d.firstWeekContainsDate)??r.firstWeekContainsDate??((f=(h=r.locale)==null?void 0:h.options)==null?void 0:f.firstWeekContainsDate)??1,o=(n==null?void 0:n.weekStartsOn)??((m=(g=n==null?void 0:n.locale)==null?void 0:g.options)==null?void 0:m.weekStartsOn)??r.weekStartsOn??((b=(p=r.locale)==null?void 0:p.options)==null?void 0:b.weekStartsOn)??0,s=Rn(e);if(!G3(s))throw new RangeError("Invalid time value");let l=t.match(OC).map(v=>{const y=v[0];if(y==="p"||y==="P"){const w=RC[y];return w(v,i.formatLong)}return v}).join("").match(VC).map(v=>{if(v==="''")return{isToken:!1,value:"'"};const y=v[0];if(y==="'")return{isToken:!1,value:HC(v)};if($h[y])return{isToken:!0,value:v};if(y.match(jC))throw new RangeError("Format string contains an unescaped latin alphabet character `"+y+"`");return{isToken:!1,value:v}});i.localize.preprocessor&&(l=i.localize.preprocessor(s,l));const u={firstWeekContainsDate:a,weekStartsOn:o,locale:i};return l.map(v=>{if(!v.isToken)return v.value;const y=v.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&MC(y)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&TC(y))&&kC(y,t,String(e));const w=$h[y[0]];return w(s,y,i.localize,u)}).join("")}function HC(e){const t=e.match(NC);return t?t[1].replace(LC,"'"):e}const WC={lessThanXSeconds:{one:"kurang dari 1 detik",other:"kurang dari {{count}} detik"},xSeconds:{one:"1 detik",other:"{{count}} detik"},halfAMinute:"setengah menit",lessThanXMinutes:{one:"kurang dari 1 menit",other:"kurang dari {{count}} menit"},xMinutes:{one:"1 menit",other:"{{count}} menit"},aboutXHours:{one:"sekitar 1 jam",other:"sekitar {{count}} jam"},xHours:{one:"1 jam",other:"{{count}} jam"},xDays:{one:"1 hari",other:"{{count}} hari"},aboutXWeeks:{one:"sekitar 1 minggu",other:"sekitar {{count}} minggu"},xWeeks:{one:"1 minggu",other:"{{count}} minggu"},aboutXMonths:{one:"sekitar 1 bulan",other:"sekitar {{count}} bulan"},xMonths:{one:"1 bulan",other:"{{count}} bulan"},aboutXYears:{one:"sekitar 1 tahun",other:"sekitar {{count}} tahun"},xYears:{one:"1 tahun",other:"{{count}} tahun"},overXYears:{one:"lebih dari 1 tahun",other:"lebih dari {{count}} tahun"},almostXYears:{one:"hampir 1 tahun",other:"hampir {{count}} tahun"}},zC=(e,t,n)=>{let r;const i=WC[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"dalam waktu "+r:r+" yang lalu":r},GC={full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"d/M/yyyy"},ZC={full:"HH.mm.ss",long:"HH.mm.ss",medium:"HH.mm",short:"HH.mm"},XC={full:"{{date}} 'pukul' {{time}}",long:"{{date}} 'pukul' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},YC={date:lr({formats:GC,defaultWidth:"full"}),time:lr({formats:ZC,defaultWidth:"full"}),dateTime:lr({formats:XC,defaultWidth:"full"})},UC={lastWeek:"eeee 'lalu pukul' p",yesterday:"'Kemarin pukul' p",today:"'Hari ini pukul' p",tomorrow:"'Besok pukul' p",nextWeek:"eeee 'pukul' p",other:"P"},JC=(e,t,n,r)=>UC[e],KC={narrow:["SM","M"],abbreviated:["SM","M"],wide:["Sebelum Masehi","Masehi"]},QC={narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["Kuartal ke-1","Kuartal ke-2","Kuartal ke-3","Kuartal ke-4"]},qC={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","Mei","Jun","Jul","Agt","Sep","Okt","Nov","Des"],wide:["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember"]},e2={narrow:["M","S","S","R","K","J","S"],short:["Min","Sen","Sel","Rab","Kam","Jum","Sab"],abbreviated:["Min","Sen","Sel","Rab","Kam","Jum","Sab"],wide:["Minggu","Senin","Selasa","Rabu","Kamis","Jumat","Sabtu"]},t2={narrow:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"},abbreviated:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"},wide:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"}},n2={narrow:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"},abbreviated:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"},wide:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"}},r2=(e,t)=>"ke-"+Number(e),i2={ordinalNumber:r2,era:Tt({values:KC,defaultWidth:"wide"}),quarter:Tt({values:QC,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Tt({values:qC,defaultWidth:"wide"}),day:Tt({values:e2,defaultWidth:"wide"}),dayPeriod:Tt({values:t2,defaultWidth:"wide",formattingValues:n2,defaultFormattingWidth:"wide"})},a2=/^ke-(\d+)?/i,o2=/\d+/i,s2={narrow:/^(sm|m)/i,abbreviated:/^(s\.?\s?m\.?|s\.?\s?e\.?\s?u\.?|m\.?|e\.?\s?u\.?)/i,wide:/^(sebelum masehi|sebelum era umum|masehi|era umum)/i},l2={any:[/^s/i,/^(m|e)/i]},u2={narrow:/^[1234]/i,abbreviated:/^K-?\s[1234]/i,wide:/^Kuartal ke-?\s?[1234]/i},c2={any:[/1/i,/2/i,/3/i,/4/i]},d2={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|mei|jun|jul|agt|sep|okt|nov|des)/i,wide:/^(januari|februari|maret|april|mei|juni|juli|agustus|september|oktober|november|desember)/i},f2={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,/^ma/i,/^ap/i,/^me/i,/^jun/i,/^jul/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},h2={narrow:/^[srkjm]/i,short:/^(min|sen|sel|rab|kam|jum|sab)/i,abbreviated:/^(min|sen|sel|rab|kam|jum|sab)/i,wide:/^(minggu|senin|selasa|rabu|kamis|jumat|sabtu)/i},g2={narrow:[/^m/i,/^s/i,/^s/i,/^r/i,/^k/i,/^j/i,/^s/i],any:[/^m/i,/^sen/i,/^sel/i,/^r/i,/^k/i,/^j/i,/^sa/i]},m2={narrow:/^(a|p|tengah m|tengah h|(di(\swaktu)?) (pagi|siang|sore|malam))/i,any:/^([ap]\.?\s?m\.?|tengah malam|tengah hari|(di(\swaktu)?) (pagi|siang|sore|malam))/i},p2={any:{am:/^a/i,pm:/^pm/i,midnight:/^tengah m/i,noon:/^tengah h/i,morning:/pagi/i,afternoon:/siang/i,evening:/sore/i,night:/malam/i}},b2={ordinalNumber:kd({matchPattern:a2,parsePattern:o2,valueCallback:e=>parseInt(e,10)}),era:Mt({matchPatterns:s2,defaultMatchWidth:"wide",parsePatterns:l2,defaultParseWidth:"any"}),quarter:Mt({matchPatterns:u2,defaultMatchWidth:"wide",parsePatterns:c2,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Mt({matchPatterns:d2,defaultMatchWidth:"wide",parsePatterns:f2,defaultParseWidth:"any"}),day:Mt({matchPatterns:h2,defaultMatchWidth:"wide",parsePatterns:g2,defaultParseWidth:"any"}),dayPeriod:Mt({matchPatterns:m2,defaultMatchWidth:"any",parsePatterns:p2,defaultParseWidth:"any"})},x0={code:"id",formatDistance:zC,formatLong:YC,formatRelative:JC,localize:i2,match:b2,options:{weekStartsOn:1,firstWeekContainsDate:1}},v2={lessThanXSeconds:{one:"minder dan een seconde",other:"minder dan {{count}} seconden"},xSeconds:{one:"1 seconde",other:"{{count}} seconden"},halfAMinute:"een halve minuut",lessThanXMinutes:{one:"minder dan een minuut",other:"minder dan {{count}} minuten"},xMinutes:{one:"een minuut",other:"{{count}} minuten"},aboutXHours:{one:"ongeveer 1 uur",other:"ongeveer {{count}} uur"},xHours:{one:"1 uur",other:"{{count}} uur"},xDays:{one:"1 dag",other:"{{count}} dagen"},aboutXWeeks:{one:"ongeveer 1 week",other:"ongeveer {{count}} weken"},xWeeks:{one:"1 week",other:"{{count}} weken"},aboutXMonths:{one:"ongeveer 1 maand",other:"ongeveer {{count}} maanden"},xMonths:{one:"1 maand",other:"{{count}} maanden"},aboutXYears:{one:"ongeveer 1 jaar",other:"ongeveer {{count}} jaar"},xYears:{one:"1 jaar",other:"{{count}} jaar"},overXYears:{one:"meer dan 1 jaar",other:"meer dan {{count}} jaar"},almostXYears:{one:"bijna 1 jaar",other:"bijna {{count}} jaar"}},y2=(e,t,n)=>{let r;const i=v2[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"over "+r:r+" geleden":r},x2={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd-MM-y"},C2={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},w2={full:"{{date}} 'om' {{time}}",long:"{{date}} 'om' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},D2={date:lr({formats:x2,defaultWidth:"full"}),time:lr({formats:C2,defaultWidth:"full"}),dateTime:lr({formats:w2,defaultWidth:"full"})},S2={lastWeek:"'afgelopen' eeee 'om' p",yesterday:"'gisteren om' p",today:"'vandaag om' p",tomorrow:"'morgen om' p",nextWeek:"eeee 'om' p",other:"P"},E2=(e,t,n,r)=>S2[e],I2={narrow:["v.C.","n.C."],abbreviated:["v.Chr.","n.Chr."],wide:["voor Christus","na Christus"]},_2={narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["1e kwartaal","2e kwartaal","3e kwartaal","4e kwartaal"]},$2={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mrt.","apr.","mei","jun.","jul.","aug.","sep.","okt.","nov.","dec."],wide:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"]},R2={narrow:["Z","M","D","W","D","V","Z"],short:["zo","ma","di","wo","do","vr","za"],abbreviated:["zon","maa","din","woe","don","vri","zat"],wide:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"]},A2={narrow:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"},abbreviated:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"},wide:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"}},F2=(e,t)=>Number(e)+"e",P2={ordinalNumber:F2,era:Tt({values:I2,defaultWidth:"wide"}),quarter:Tt({values:_2,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Tt({values:$2,defaultWidth:"wide"}),day:Tt({values:R2,defaultWidth:"wide"}),dayPeriod:Tt({values:A2,defaultWidth:"wide"})},T2=/^(\d+)e?/i,M2=/\d+/i,k2={narrow:/^([vn]\.? ?C\.?)/,abbreviated:/^([vn]\. ?Chr\.?)/,wide:/^((voor|na) Christus)/},B2={any:[/^v/,/^n/]},V2={narrow:/^[1234]/i,abbreviated:/^K[1234]/i,wide:/^[1234]e kwartaal/i},O2={any:[/1/i,/2/i,/3/i,/4/i]},N2={narrow:/^[jfmasond]/i,abbreviated:/^(jan.|feb.|mrt.|apr.|mei|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i,wide:/^(januari|februari|maart|april|mei|juni|juli|augustus|september|oktober|november|december)/i},L2={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:[/^jan/i,/^feb/i,/^m(r|a)/i,/^apr/i,/^mei/i,/^jun/i,/^jul/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i]},j2={narrow:/^[zmdwv]/i,short:/^(zo|ma|di|wo|do|vr|za)/i,abbreviated:/^(zon|maa|din|woe|don|vri|zat)/i,wide:/^(zondag|maandag|dinsdag|woensdag|donderdag|vrijdag|zaterdag)/i},H2={narrow:[/^z/i,/^m/i,/^d/i,/^w/i,/^d/i,/^v/i,/^z/i],any:[/^zo/i,/^ma/i,/^di/i,/^wo/i,/^do/i,/^vr/i,/^za/i]},W2={any:/^(am|pm|middernacht|het middaguur|'s (ochtends|middags|avonds|nachts))/i},z2={any:{am:/^am/i,pm:/^pm/i,midnight:/^middernacht/i,noon:/^het middaguur/i,morning:/ochtend/i,afternoon:/middag/i,evening:/avond/i,night:/nacht/i}},G2={ordinalNumber:kd({matchPattern:T2,parsePattern:M2,valueCallback:e=>parseInt(e,10)}),era:Mt({matchPatterns:k2,defaultMatchWidth:"wide",parsePatterns:B2,defaultParseWidth:"any"}),quarter:Mt({matchPatterns:V2,defaultMatchWidth:"wide",parsePatterns:O2,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Mt({matchPatterns:N2,defaultMatchWidth:"wide",parsePatterns:L2,defaultParseWidth:"any"}),day:Mt({matchPatterns:j2,defaultMatchWidth:"wide",parsePatterns:H2,defaultParseWidth:"any"}),dayPeriod:Mt({matchPatterns:W2,defaultMatchWidth:"any",parsePatterns:z2,defaultParseWidth:"any"})},C0={code:"nl",formatDistance:y2,formatLong:D2,formatRelative:E2,localize:P2,match:G2,options:{weekStartsOn:1,firstWeekContainsDate:4}};function br(e,t="currency",n={minimumFractionDigits:0,locale:"id-ID",currency:"IDR",withSpace:!1}){const{minimumFractionDigits:r,locale:i,currency:a,withSpace:o}=n,s=new Intl.NumberFormat(i,{style:t,currency:a,minimumFractionDigits:r}).format(S0(e,r>0?r:2));return o?s:s.replace(/\s/g,"")}const w0=(e,t,n,r)=>{const i={id:x0,enUS:Bd,nl:C0};let a=n??"-";return e&&!isNaN(new Date(e).getTime())&&(a=Ic(e,t??"dd/MM/yyyy",{locale:i[r??"id"]})),a},Z2=(e,t,n,r,i,a)=>{const o={id:x0,enUS:Bd,nl:C0};if(e&&!isNaN(new Date(e).getTime())){const s=Ic(e,n??"dd/MM/yyyy",{locale:o[a??"id"]});if(t&&!isNaN(new Date(t).getTime())){const l=Ic(t,n??"dd/MM/yyyy",{locale:o[a??"id"]});return s===l?s:`${s}${r??"-"}${l}`}return s}return i??"-"},D0=(e,t)=>e.reduce((n,r)=>{const i=String(r[t]);return n[i]||(n[i]=[]),n[i].push(r),n},{}),X2=({value:e,keyDate:t="date",keyFormat:n="formatDate",format:r="dd/MM/yyyy"})=>{const i=e.map(a=>({...a,[n]:w0(a[t],r)}));return D0(i,n)},S0=(e,t=2)=>{let n=parseFloat(tl(e)?e:0);return n=(+(Math.round(n+"e"+t)+"e-"+t)).toFixed(t),n=Number(n),n},Y2=(e,t=["search"])=>(Object.keys(e).forEach(n=>{["",null,void 0,[],{}].includes(e[n])?delete e[n]:t!=null&&t.includes(n)&&(e[n]=encodeURIComponent(e==null?void 0:e[n]))}),e),U2=(e,t)=>{var h,f;const n=/^-?\d+[0-9.,]*$/,r=/([.])(?=.*\1)/,i=/([,])(?=.*\1)/,a=((h=e.split(",")[0])==null?void 0:h.trim())||"",o=((f=e.split(",")[1])==null?void 0:f.trim())||"",s=!r.test(a)&&(a==="-"||n.test(a)||!a),l=!r.test(o)&&(o==="-"||n.test(o)||!o),u=(g,m,p)=>{let b=g;const v=g.split(".")[0];return isNaN(parseFloat(v.split(".")[0]))||(parseFloat(v.split(".")[0])<=m?b=`${m}`:parseFloat(v)>=p&&(b=`${p}`)),b},c=u(a,(t==null?void 0:t.latMin)??-85,(t==null?void 0:t.latMax)??85),d=u(o,(t==null?void 0:t.longMin)??-180,(t==null?void 0:t.longMax)??180);return{latitude:c,longitude:d,latlong:`${c}${e.includes(",")?","+d:""}`,isValid:!i.test(e)&&s&&l}},J2=(e,t)=>e?Object.fromEntries(Object.entries(t).filter(([r])=>r.startsWith(e))):t,tl=e=>{if(typeof e=="number"&&Number.isFinite(e))return!0;if(typeof e=="string"&&e.trim()!==""&&!isNaN(Number(e))){const t=Number(e);return Number.isFinite(t)}return!1};function Vd(e,t){if(e===t)return!0;if(typeof e!="object"||typeof t!="object"||e===null||t===null)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const i of n)if(!r.includes(i)||!Vd(e[i],t[i]))return!1;return!0}function K2(e,t={maxTime:"hour"}){const{maxTime:n="hour"}=t,r=l=>l<10?`0${l}`:l;let i=r(0),a=r(0);const o=r(Math.floor(e%3600/60)),s=r(Math.floor(e%60));return n==="hour"?a=r(Math.floor(e/3600)):n==="day"&&(i=r(Math.floor(e/(3600*24))),a=r(Math.floor(e%(3600*24)/3600))),{day:i,hour:a,minute:o,second:s}}/*! js-cookie v3.0.5 | MIT */function Qo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var Q2={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function _c(e,t){function n(i,a,o){if(!(typeof document>"u")){o=Qo({},t,o),typeof o.expires=="number"&&(o.expires=new Date(Date.now()+o.expires*864e5)),o.expires&&(o.expires=o.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var s="";for(var l in o)o[l]&&(s+="; "+l,o[l]!==!0&&(s+="="+o[l].split(";")[0]));return document.cookie=i+"="+e.write(a,i)+s}}function r(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var a=document.cookie?document.cookie.split("; "):[],o={},s=0;s<a.length;s++){var l=a[s].split("="),u=l.slice(1).join("=");try{var c=decodeURIComponent(l[0]);if(o[c]=e.read(u,c),i===c)break}catch{}}return i?o[i]:o}}return Object.create({set:n,get:r,remove:function(i,a){n(i,"",Qo({},a,{expires:-1}))},withAttributes:function(i){return _c(this.converter,Qo({},this.attributes,i))},withConverter:function(i){return _c(Qo({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var An=_c(Q2,{path:"/"});const q2={setItem(e,t,n={},r=3e3){const a={...{path:"/"},...n};parseInt(An.get(`${e}_count`)??"0",10)&&this.removeItem(e,n);const s=Math.ceil(t.length/r);for(let l=0;l<s;l++){const u=t.slice(l*r,(l+1)*r);An.set(`${e}_${l}`,u,a)}An.set(`${e}_count`,s.toString(),a)},getItem(e){const t=parseInt(An.get(`${e}_count`)??"0",10);if(!t)return null;let n="";for(let r=0;r<t;r++){const i=An.get(`${e}_${r}`);if(!i)return null;n+=i}return n},removeItem(e,t={}){const n=parseInt(An.get(`${e}_count`)??"0",10),r={path:"/",...t};if(!isNaN(n)){for(let i=0;i<n;i++)An.remove(`${e}_${i}`,r);An.remove(`${e}_count`,r)}},clear(e={}){const t={path:"/",...e},n=An.get();Object.keys(n).forEach(r=>An.remove(r,t))}};var $c={exports:{}},va={};/**
|
1
|
+
"use strict";var O3=Object.defineProperty;var N3=(e,t,n)=>t in e?O3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ie=(e,t,n)=>N3(e,typeof t!="symbol"?t+"":t,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const x=require("react"),To=require("react-dom");function g0(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const j=g0(x),m0=g0(To);function Rn(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function di(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}const p0=6048e5,L3=864e5;let j3={};function Ul(){return j3}function qa(e,t){var s,l,u,c;const n=Ul(),r=(t==null?void 0:t.weekStartsOn)??((l=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:l.weekStartsOn)??n.weekStartsOn??((c=(u=n.locale)==null?void 0:u.options)==null?void 0:c.weekStartsOn)??0,i=Rn(e),a=i.getDay(),o=(a<r?7:0)+a-r;return i.setDate(i.getDate()-o),i.setHours(0,0,0,0),i}function el(e){return qa(e,{weekStartsOn:1})}function b0(e){const t=Rn(e),n=t.getFullYear(),r=di(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const i=el(r),a=di(e,0);a.setFullYear(n,0,4),a.setHours(0,0,0,0);const o=el(a);return t.getTime()>=i.getTime()?n+1:t.getTime()>=o.getTime()?n:n-1}function Ih(e){const t=Rn(e);return t.setHours(0,0,0,0),t}function _h(e){const t=Rn(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 H3(e,t){const n=Ih(e),r=Ih(t),i=+n-_h(n),a=+r-_h(r);return Math.round((i-a)/L3)}function W3(e){const t=b0(e),n=di(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),el(n)}function z3(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function G3(e){if(!z3(e)&&typeof e!="number")return!1;const t=Rn(e);return!isNaN(Number(t))}function Z3(e){const t=Rn(e),n=di(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}const X3={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"}},Y3=(e,t,n)=>{let r;const i=X3[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function lr(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const U3={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},J3={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},K3={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Q3={date:lr({formats:U3,defaultWidth:"full"}),time:lr({formats:J3,defaultWidth:"full"}),dateTime:lr({formats:K3,defaultWidth:"full"})},q3={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},eC=(e,t,n,r)=>q3[e];function Tt(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let i;if(r==="formatting"&&e.formattingValues){const o=e.defaultFormattingWidth||e.defaultWidth,s=n!=null&&n.width?String(n.width):o;i=e.formattingValues[s]||e.formattingValues[o]}else{const o=e.defaultWidth,s=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[s]||e.values[o]}const a=e.argumentCallback?e.argumentCallback(t):t;return i[a]}}const tC={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},nC={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},rC={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"]},iC={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"]},aC={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"}},oC={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"}},sC=(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"},lC={ordinalNumber:sC,era:Tt({values:tC,defaultWidth:"wide"}),quarter:Tt({values:nC,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Tt({values:rC,defaultWidth:"wide"}),day:Tt({values:iC,defaultWidth:"wide"}),dayPeriod:Tt({values:aC,defaultWidth:"wide",formattingValues:oC,defaultFormattingWidth:"wide"})};function kt(e){return(t,n={})=>{const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;const o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?cC(s,d=>d.test(o)):uC(s,d=>d.test(o));let u;u=e.valueCallback?e.valueCallback(l):l,u=n.valueCallback?n.valueCallback(u):u;const c=t.slice(o.length);return{value:u,rest:c}}}function uC(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function cC(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function Md(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const i=r[0],a=t.match(e.parsePattern);if(!a)return null;let o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;const s=t.slice(i.length);return{value:o,rest:s}}}const dC=/^(\d+)(th|st|nd|rd)?/i,fC=/\d+/i,hC={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},gC={any:[/^b/i,/^(a|c)/i]},mC={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},pC={any:[/1/i,/2/i,/3/i,/4/i]},bC={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},vC={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]},yC={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},xC={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]},CC={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},wC={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}},DC={ordinalNumber:Md({matchPattern:dC,parsePattern:fC,valueCallback:e=>parseInt(e,10)}),era:kt({matchPatterns:hC,defaultMatchWidth:"wide",parsePatterns:gC,defaultParseWidth:"any"}),quarter:kt({matchPatterns:mC,defaultMatchWidth:"wide",parsePatterns:pC,defaultParseWidth:"any",valueCallback:e=>e+1}),month:kt({matchPatterns:bC,defaultMatchWidth:"wide",parsePatterns:vC,defaultParseWidth:"any"}),day:kt({matchPatterns:yC,defaultMatchWidth:"wide",parsePatterns:xC,defaultParseWidth:"any"}),dayPeriod:kt({matchPatterns:CC,defaultMatchWidth:"any",parsePatterns:wC,defaultParseWidth:"any"})},Bd={code:"en-US",formatDistance:Y3,formatLong:Q3,formatRelative:eC,localize:lC,match:DC,options:{weekStartsOn:0,firstWeekContainsDate:1}};function SC(e){const t=Rn(e);return H3(t,Z3(t))+1}function EC(e){const t=Rn(e),n=+el(t)-+W3(t);return Math.round(n/p0)+1}function v0(e,t){var c,d,h,f;const n=Rn(e),r=n.getFullYear(),i=Ul(),a=(t==null?void 0:t.firstWeekContainsDate)??((d=(c=t==null?void 0:t.locale)==null?void 0:c.options)==null?void 0:d.firstWeekContainsDate)??i.firstWeekContainsDate??((f=(h=i.locale)==null?void 0:h.options)==null?void 0:f.firstWeekContainsDate)??1,o=di(e,0);o.setFullYear(r+1,0,a),o.setHours(0,0,0,0);const s=qa(o,t),l=di(e,0);l.setFullYear(r,0,a),l.setHours(0,0,0,0);const u=qa(l,t);return n.getTime()>=s.getTime()?r+1:n.getTime()>=u.getTime()?r:r-1}function IC(e,t){var s,l,u,c;const n=Ul(),r=(t==null?void 0:t.firstWeekContainsDate)??((l=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:l.firstWeekContainsDate)??n.firstWeekContainsDate??((c=(u=n.locale)==null?void 0:u.options)==null?void 0:c.firstWeekContainsDate)??1,i=v0(e,t),a=di(e,0);return a.setFullYear(i,0,r),a.setHours(0,0,0,0),qa(a,t)}function _C(e,t){const n=Rn(e),r=+qa(n,t)-+IC(n,t);return Math.round(r/p0)+1}function je(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const mr={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return je(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):je(n+1,2)},d(e,t){return je(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 je(e.getHours()%12||12,t.length)},H(e,t){return je(e.getHours(),t.length)},m(e,t){return je(e.getMinutes(),t.length)},s(e,t){return je(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return je(i,t.length)}},Ai={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},$h={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(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return mr.y(e,t)},Y:function(e,t,n,r){const i=v0(e,r),a=i>0?i:1-i;if(t==="YY"){const o=a%100;return je(o,2)}return t==="Yo"?n.ordinalNumber(a,{unit:"year"}):je(a,t.length)},R:function(e,t){const n=b0(e);return je(n,t.length)},u:function(e,t){const n=e.getFullYear();return je(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 je(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 je(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 mr.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 je(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 i=_C(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):je(i,t.length)},I:function(e,t,n){const r=EC(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):je(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):mr.d(e,t)},D:function(e,t,n){const r=SC(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):je(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 i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return je(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return je(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),i=r===0?7:r;switch(t){case"i":return String(i);case"ii":return je(i,t.length);case"io":return n.ordinalNumber(i,{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 i=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let i;switch(r===12?i=Ai.noon:r===0?i=Ai.midnight:i=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let i;switch(r>=17?i=Ai.evening:r>=12?i=Ai.afternoon:r>=4?i=Ai.morning:i=Ai.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{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 mr.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):mr.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):je(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):je(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):mr.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):mr.s(e,t)},S:function(e,t){return mr.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return Ah(r);case"XXXX":case"XX":return Ur(r);case"XXXXX":case"XXX":default:return Ur(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return Ah(r);case"xxxx":case"xx":return Ur(r);case"xxxxx":case"xxx":default:return Ur(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Rh(r,":");case"OOOO":default:return"GMT"+Ur(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Rh(r,":");case"zzzz":default:return"GMT"+Ur(r,":")}},t:function(e,t,n){const r=Math.trunc(e.getTime()/1e3);return je(r,t.length)},T:function(e,t,n){const r=e.getTime();return je(r,t.length)}};function Rh(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),a=r%60;return a===0?n+String(i):n+String(i)+t+je(a,2)}function Ah(e,t){return e%60===0?(e>0?"-":"+")+je(Math.abs(e)/60,2):Ur(e,t)}function Ur(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=je(Math.trunc(r/60),2),a=je(r%60,2);return n+i+t+a}const Fh=(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"})}},y0=(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"})}},$C=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return Fh(e,t);let a;switch(r){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;case"PPPP":default:a=t.dateTime({width:"full"});break}return a.replace("{{date}}",Fh(r,t)).replace("{{time}}",y0(i,t))},RC={p:y0,P:$C},AC=/^D+$/,FC=/^Y+$/,PC=["D","DD","YY","YYYY"];function TC(e){return AC.test(e)}function kC(e){return FC.test(e)}function MC(e,t,n){const r=BC(e,t,n);if(console.warn(r),PC.includes(e))throw new RangeError(r)}function BC(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 VC=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,OC=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,NC=/^'([^]*?)'?$/,LC=/''/g,jC=/[a-zA-Z]/;function Ic(e,t,n){var c,d,h,f,g,m,p,b;const r=Ul(),i=(n==null?void 0:n.locale)??r.locale??Bd,a=(n==null?void 0:n.firstWeekContainsDate)??((d=(c=n==null?void 0:n.locale)==null?void 0:c.options)==null?void 0:d.firstWeekContainsDate)??r.firstWeekContainsDate??((f=(h=r.locale)==null?void 0:h.options)==null?void 0:f.firstWeekContainsDate)??1,o=(n==null?void 0:n.weekStartsOn)??((m=(g=n==null?void 0:n.locale)==null?void 0:g.options)==null?void 0:m.weekStartsOn)??r.weekStartsOn??((b=(p=r.locale)==null?void 0:p.options)==null?void 0:b.weekStartsOn)??0,s=Rn(e);if(!G3(s))throw new RangeError("Invalid time value");let l=t.match(OC).map(v=>{const y=v[0];if(y==="p"||y==="P"){const w=RC[y];return w(v,i.formatLong)}return v}).join("").match(VC).map(v=>{if(v==="''")return{isToken:!1,value:"'"};const y=v[0];if(y==="'")return{isToken:!1,value:HC(v)};if($h[y])return{isToken:!0,value:v};if(y.match(jC))throw new RangeError("Format string contains an unescaped latin alphabet character `"+y+"`");return{isToken:!1,value:v}});i.localize.preprocessor&&(l=i.localize.preprocessor(s,l));const u={firstWeekContainsDate:a,weekStartsOn:o,locale:i};return l.map(v=>{if(!v.isToken)return v.value;const y=v.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&kC(y)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&TC(y))&&MC(y,t,String(e));const w=$h[y[0]];return w(s,y,i.localize,u)}).join("")}function HC(e){const t=e.match(NC);return t?t[1].replace(LC,"'"):e}const WC={lessThanXSeconds:{one:"kurang dari 1 detik",other:"kurang dari {{count}} detik"},xSeconds:{one:"1 detik",other:"{{count}} detik"},halfAMinute:"setengah menit",lessThanXMinutes:{one:"kurang dari 1 menit",other:"kurang dari {{count}} menit"},xMinutes:{one:"1 menit",other:"{{count}} menit"},aboutXHours:{one:"sekitar 1 jam",other:"sekitar {{count}} jam"},xHours:{one:"1 jam",other:"{{count}} jam"},xDays:{one:"1 hari",other:"{{count}} hari"},aboutXWeeks:{one:"sekitar 1 minggu",other:"sekitar {{count}} minggu"},xWeeks:{one:"1 minggu",other:"{{count}} minggu"},aboutXMonths:{one:"sekitar 1 bulan",other:"sekitar {{count}} bulan"},xMonths:{one:"1 bulan",other:"{{count}} bulan"},aboutXYears:{one:"sekitar 1 tahun",other:"sekitar {{count}} tahun"},xYears:{one:"1 tahun",other:"{{count}} tahun"},overXYears:{one:"lebih dari 1 tahun",other:"lebih dari {{count}} tahun"},almostXYears:{one:"hampir 1 tahun",other:"hampir {{count}} tahun"}},zC=(e,t,n)=>{let r;const i=WC[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"dalam waktu "+r:r+" yang lalu":r},GC={full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"d/M/yyyy"},ZC={full:"HH.mm.ss",long:"HH.mm.ss",medium:"HH.mm",short:"HH.mm"},XC={full:"{{date}} 'pukul' {{time}}",long:"{{date}} 'pukul' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},YC={date:lr({formats:GC,defaultWidth:"full"}),time:lr({formats:ZC,defaultWidth:"full"}),dateTime:lr({formats:XC,defaultWidth:"full"})},UC={lastWeek:"eeee 'lalu pukul' p",yesterday:"'Kemarin pukul' p",today:"'Hari ini pukul' p",tomorrow:"'Besok pukul' p",nextWeek:"eeee 'pukul' p",other:"P"},JC=(e,t,n,r)=>UC[e],KC={narrow:["SM","M"],abbreviated:["SM","M"],wide:["Sebelum Masehi","Masehi"]},QC={narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["Kuartal ke-1","Kuartal ke-2","Kuartal ke-3","Kuartal ke-4"]},qC={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","Mei","Jun","Jul","Agt","Sep","Okt","Nov","Des"],wide:["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember"]},e2={narrow:["M","S","S","R","K","J","S"],short:["Min","Sen","Sel","Rab","Kam","Jum","Sab"],abbreviated:["Min","Sen","Sel","Rab","Kam","Jum","Sab"],wide:["Minggu","Senin","Selasa","Rabu","Kamis","Jumat","Sabtu"]},t2={narrow:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"},abbreviated:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"},wide:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"}},n2={narrow:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"},abbreviated:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"},wide:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"}},r2=(e,t)=>"ke-"+Number(e),i2={ordinalNumber:r2,era:Tt({values:KC,defaultWidth:"wide"}),quarter:Tt({values:QC,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Tt({values:qC,defaultWidth:"wide"}),day:Tt({values:e2,defaultWidth:"wide"}),dayPeriod:Tt({values:t2,defaultWidth:"wide",formattingValues:n2,defaultFormattingWidth:"wide"})},a2=/^ke-(\d+)?/i,o2=/\d+/i,s2={narrow:/^(sm|m)/i,abbreviated:/^(s\.?\s?m\.?|s\.?\s?e\.?\s?u\.?|m\.?|e\.?\s?u\.?)/i,wide:/^(sebelum masehi|sebelum era umum|masehi|era umum)/i},l2={any:[/^s/i,/^(m|e)/i]},u2={narrow:/^[1234]/i,abbreviated:/^K-?\s[1234]/i,wide:/^Kuartal ke-?\s?[1234]/i},c2={any:[/1/i,/2/i,/3/i,/4/i]},d2={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|mei|jun|jul|agt|sep|okt|nov|des)/i,wide:/^(januari|februari|maret|april|mei|juni|juli|agustus|september|oktober|november|desember)/i},f2={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,/^ma/i,/^ap/i,/^me/i,/^jun/i,/^jul/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},h2={narrow:/^[srkjm]/i,short:/^(min|sen|sel|rab|kam|jum|sab)/i,abbreviated:/^(min|sen|sel|rab|kam|jum|sab)/i,wide:/^(minggu|senin|selasa|rabu|kamis|jumat|sabtu)/i},g2={narrow:[/^m/i,/^s/i,/^s/i,/^r/i,/^k/i,/^j/i,/^s/i],any:[/^m/i,/^sen/i,/^sel/i,/^r/i,/^k/i,/^j/i,/^sa/i]},m2={narrow:/^(a|p|tengah m|tengah h|(di(\swaktu)?) (pagi|siang|sore|malam))/i,any:/^([ap]\.?\s?m\.?|tengah malam|tengah hari|(di(\swaktu)?) (pagi|siang|sore|malam))/i},p2={any:{am:/^a/i,pm:/^pm/i,midnight:/^tengah m/i,noon:/^tengah h/i,morning:/pagi/i,afternoon:/siang/i,evening:/sore/i,night:/malam/i}},b2={ordinalNumber:Md({matchPattern:a2,parsePattern:o2,valueCallback:e=>parseInt(e,10)}),era:kt({matchPatterns:s2,defaultMatchWidth:"wide",parsePatterns:l2,defaultParseWidth:"any"}),quarter:kt({matchPatterns:u2,defaultMatchWidth:"wide",parsePatterns:c2,defaultParseWidth:"any",valueCallback:e=>e+1}),month:kt({matchPatterns:d2,defaultMatchWidth:"wide",parsePatterns:f2,defaultParseWidth:"any"}),day:kt({matchPatterns:h2,defaultMatchWidth:"wide",parsePatterns:g2,defaultParseWidth:"any"}),dayPeriod:kt({matchPatterns:m2,defaultMatchWidth:"any",parsePatterns:p2,defaultParseWidth:"any"})},x0={code:"id",formatDistance:zC,formatLong:YC,formatRelative:JC,localize:i2,match:b2,options:{weekStartsOn:1,firstWeekContainsDate:1}},v2={lessThanXSeconds:{one:"minder dan een seconde",other:"minder dan {{count}} seconden"},xSeconds:{one:"1 seconde",other:"{{count}} seconden"},halfAMinute:"een halve minuut",lessThanXMinutes:{one:"minder dan een minuut",other:"minder dan {{count}} minuten"},xMinutes:{one:"een minuut",other:"{{count}} minuten"},aboutXHours:{one:"ongeveer 1 uur",other:"ongeveer {{count}} uur"},xHours:{one:"1 uur",other:"{{count}} uur"},xDays:{one:"1 dag",other:"{{count}} dagen"},aboutXWeeks:{one:"ongeveer 1 week",other:"ongeveer {{count}} weken"},xWeeks:{one:"1 week",other:"{{count}} weken"},aboutXMonths:{one:"ongeveer 1 maand",other:"ongeveer {{count}} maanden"},xMonths:{one:"1 maand",other:"{{count}} maanden"},aboutXYears:{one:"ongeveer 1 jaar",other:"ongeveer {{count}} jaar"},xYears:{one:"1 jaar",other:"{{count}} jaar"},overXYears:{one:"meer dan 1 jaar",other:"meer dan {{count}} jaar"},almostXYears:{one:"bijna 1 jaar",other:"bijna {{count}} jaar"}},y2=(e,t,n)=>{let r;const i=v2[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"over "+r:r+" geleden":r},x2={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd-MM-y"},C2={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},w2={full:"{{date}} 'om' {{time}}",long:"{{date}} 'om' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},D2={date:lr({formats:x2,defaultWidth:"full"}),time:lr({formats:C2,defaultWidth:"full"}),dateTime:lr({formats:w2,defaultWidth:"full"})},S2={lastWeek:"'afgelopen' eeee 'om' p",yesterday:"'gisteren om' p",today:"'vandaag om' p",tomorrow:"'morgen om' p",nextWeek:"eeee 'om' p",other:"P"},E2=(e,t,n,r)=>S2[e],I2={narrow:["v.C.","n.C."],abbreviated:["v.Chr.","n.Chr."],wide:["voor Christus","na Christus"]},_2={narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["1e kwartaal","2e kwartaal","3e kwartaal","4e kwartaal"]},$2={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mrt.","apr.","mei","jun.","jul.","aug.","sep.","okt.","nov.","dec."],wide:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"]},R2={narrow:["Z","M","D","W","D","V","Z"],short:["zo","ma","di","wo","do","vr","za"],abbreviated:["zon","maa","din","woe","don","vri","zat"],wide:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"]},A2={narrow:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"},abbreviated:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"},wide:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"}},F2=(e,t)=>Number(e)+"e",P2={ordinalNumber:F2,era:Tt({values:I2,defaultWidth:"wide"}),quarter:Tt({values:_2,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Tt({values:$2,defaultWidth:"wide"}),day:Tt({values:R2,defaultWidth:"wide"}),dayPeriod:Tt({values:A2,defaultWidth:"wide"})},T2=/^(\d+)e?/i,k2=/\d+/i,M2={narrow:/^([vn]\.? ?C\.?)/,abbreviated:/^([vn]\. ?Chr\.?)/,wide:/^((voor|na) Christus)/},B2={any:[/^v/,/^n/]},V2={narrow:/^[1234]/i,abbreviated:/^K[1234]/i,wide:/^[1234]e kwartaal/i},O2={any:[/1/i,/2/i,/3/i,/4/i]},N2={narrow:/^[jfmasond]/i,abbreviated:/^(jan.|feb.|mrt.|apr.|mei|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i,wide:/^(januari|februari|maart|april|mei|juni|juli|augustus|september|oktober|november|december)/i},L2={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:[/^jan/i,/^feb/i,/^m(r|a)/i,/^apr/i,/^mei/i,/^jun/i,/^jul/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i]},j2={narrow:/^[zmdwv]/i,short:/^(zo|ma|di|wo|do|vr|za)/i,abbreviated:/^(zon|maa|din|woe|don|vri|zat)/i,wide:/^(zondag|maandag|dinsdag|woensdag|donderdag|vrijdag|zaterdag)/i},H2={narrow:[/^z/i,/^m/i,/^d/i,/^w/i,/^d/i,/^v/i,/^z/i],any:[/^zo/i,/^ma/i,/^di/i,/^wo/i,/^do/i,/^vr/i,/^za/i]},W2={any:/^(am|pm|middernacht|het middaguur|'s (ochtends|middags|avonds|nachts))/i},z2={any:{am:/^am/i,pm:/^pm/i,midnight:/^middernacht/i,noon:/^het middaguur/i,morning:/ochtend/i,afternoon:/middag/i,evening:/avond/i,night:/nacht/i}},G2={ordinalNumber:Md({matchPattern:T2,parsePattern:k2,valueCallback:e=>parseInt(e,10)}),era:kt({matchPatterns:M2,defaultMatchWidth:"wide",parsePatterns:B2,defaultParseWidth:"any"}),quarter:kt({matchPatterns:V2,defaultMatchWidth:"wide",parsePatterns:O2,defaultParseWidth:"any",valueCallback:e=>e+1}),month:kt({matchPatterns:N2,defaultMatchWidth:"wide",parsePatterns:L2,defaultParseWidth:"any"}),day:kt({matchPatterns:j2,defaultMatchWidth:"wide",parsePatterns:H2,defaultParseWidth:"any"}),dayPeriod:kt({matchPatterns:W2,defaultMatchWidth:"any",parsePatterns:z2,defaultParseWidth:"any"})},C0={code:"nl",formatDistance:y2,formatLong:D2,formatRelative:E2,localize:P2,match:G2,options:{weekStartsOn:1,firstWeekContainsDate:4}};function br(e,t="currency",n={minimumFractionDigits:0,locale:"id-ID",currency:"IDR",withSpace:!1}){const{minimumFractionDigits:r,locale:i,currency:a,withSpace:o}=n,s=new Intl.NumberFormat(i,{style:t,currency:a,minimumFractionDigits:r}).format(S0(e,r>0?r:2));return o?s:s.replace(/\s/g,"")}const w0=(e,t,n,r)=>{const i={id:x0,enUS:Bd,nl:C0};let a=n??"-";return e&&!isNaN(new Date(e).getTime())&&(a=Ic(e,t??"dd/MM/yyyy",{locale:i[r??"id"]})),a},Z2=(e,t,n,r,i,a)=>{const o={id:x0,enUS:Bd,nl:C0};if(e&&!isNaN(new Date(e).getTime())){const s=Ic(e,n??"dd/MM/yyyy",{locale:o[a??"id"]});if(t&&!isNaN(new Date(t).getTime())){const l=Ic(t,n??"dd/MM/yyyy",{locale:o[a??"id"]});return s===l?s:`${s}${r??"-"}${l}`}return s}return i??"-"},D0=(e,t)=>e.reduce((n,r)=>{const i=String(r[t]);return n[i]||(n[i]=[]),n[i].push(r),n},{}),X2=({value:e,keyDate:t="date",keyFormat:n="formatDate",format:r="dd/MM/yyyy"})=>{const i=e.map(a=>({...a,[n]:w0(a[t],r)}));return D0(i,n)},S0=(e,t=2)=>{let n=parseFloat(tl(e)?e:0);return n=(+(Math.round(n+"e"+t)+"e-"+t)).toFixed(t),n=Number(n),n},Y2=e=>(Object.keys(e).forEach(t=>{["",null,void 0,[],{}].includes(e[t])&&delete e[t]}),e),U2=(e,t)=>{var h,f;const n=/^-?\d+[0-9.,]*$/,r=/([.])(?=.*\1)/,i=/([,])(?=.*\1)/,a=((h=e.split(",")[0])==null?void 0:h.trim())||"",o=((f=e.split(",")[1])==null?void 0:f.trim())||"",s=!r.test(a)&&(a==="-"||n.test(a)||!a),l=!r.test(o)&&(o==="-"||n.test(o)||!o),u=(g,m,p)=>{let b=g;const v=g.split(".")[0];return isNaN(parseFloat(v.split(".")[0]))||(parseFloat(v.split(".")[0])<=m?b=`${m}`:parseFloat(v)>=p&&(b=`${p}`)),b},c=u(a,(t==null?void 0:t.latMin)??-85,(t==null?void 0:t.latMax)??85),d=u(o,(t==null?void 0:t.longMin)??-180,(t==null?void 0:t.longMax)??180);return{latitude:c,longitude:d,latlong:`${c}${e.includes(",")?","+d:""}`,isValid:!i.test(e)&&s&&l}},J2=(e,t)=>e?Object.fromEntries(Object.entries(t).filter(([r])=>r.startsWith(e))):t,tl=e=>{if(typeof e=="number"&&Number.isFinite(e))return!0;if(typeof e=="string"&&e.trim()!==""&&!isNaN(Number(e))){const t=Number(e);return Number.isFinite(t)}return!1};function Vd(e,t){if(e===t)return!0;if(typeof e!="object"||typeof t!="object"||e===null||t===null)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const i of n)if(!r.includes(i)||!Vd(e[i],t[i]))return!1;return!0}function K2(e,t={maxTime:"hour"}){const{maxTime:n="hour"}=t,r=l=>l<10?`0${l}`:l;let i=r(0),a=r(0);const o=r(Math.floor(e%3600/60)),s=r(Math.floor(e%60));return n==="hour"?a=r(Math.floor(e/3600)):n==="day"&&(i=r(Math.floor(e/(3600*24))),a=r(Math.floor(e%(3600*24)/3600))),{day:i,hour:a,minute:o,second:s}}/*! js-cookie v3.0.5 | MIT */function Qo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var Q2={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function _c(e,t){function n(i,a,o){if(!(typeof document>"u")){o=Qo({},t,o),typeof o.expires=="number"&&(o.expires=new Date(Date.now()+o.expires*864e5)),o.expires&&(o.expires=o.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var s="";for(var l in o)o[l]&&(s+="; "+l,o[l]!==!0&&(s+="="+o[l].split(";")[0]));return document.cookie=i+"="+e.write(a,i)+s}}function r(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var a=document.cookie?document.cookie.split("; "):[],o={},s=0;s<a.length;s++){var l=a[s].split("="),u=l.slice(1).join("=");try{var c=decodeURIComponent(l[0]);if(o[c]=e.read(u,c),i===c)break}catch{}}return i?o[i]:o}}return Object.create({set:n,get:r,remove:function(i,a){n(i,"",Qo({},a,{expires:-1}))},withAttributes:function(i){return _c(this.converter,Qo({},this.attributes,i))},withConverter:function(i){return _c(Qo({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var An=_c(Q2,{path:"/"});const q2={setItem(e,t,n={},r=3e3){const a={...{path:"/"},...n};parseInt(An.get(`${e}_count`)??"0",10)&&this.removeItem(e,n);const s=Math.ceil(t.length/r);for(let l=0;l<s;l++){const u=t.slice(l*r,(l+1)*r);An.set(`${e}_${l}`,u,a)}An.set(`${e}_count`,s.toString(),a)},getItem(e){const t=parseInt(An.get(`${e}_count`)??"0",10);if(!t)return null;let n="";for(let r=0;r<t;r++){const i=An.get(`${e}_${r}`);if(!i)return null;n+=i}return n},removeItem(e,t={}){const n=parseInt(An.get(`${e}_count`)??"0",10),r={path:"/",...t};if(!isNaN(n)){for(let i=0;i<n;i++)An.remove(`${e}_${i}`,r);An.remove(`${e}_count`,r)}},clear(e={}){const t={path:"/",...e},n=An.get();Object.keys(n).forEach(r=>An.remove(r,t))}};var $c={exports:{}},va={};/**
|
2
2
|
* @license React
|
3
3
|
* react-jsx-runtime.production.min.js
|
4
4
|
*
|
@@ -14,20 +14,20 @@
|
|
14
14
|
*
|
15
15
|
* This source code is licensed under the MIT license found in the
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
17
|
-
*/var Th;function tw(){return Th||(Th=1,process.env.NODE_ENV!=="production"&&function(){var e=x,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),f=Symbol.for("react.offscreen"),g=Symbol.iterator,m="@@iterator";function p(
|
18
|
-
`+G+
|
17
|
+
*/var Th;function tw(){return Th||(Th=1,process.env.NODE_ENV!=="production"&&function(){var e=x,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),f=Symbol.for("react.offscreen"),g=Symbol.iterator,m="@@iterator";function p(M){if(M===null||typeof M!="object")return null;var X=g&&M[g]||M[m];return typeof X=="function"?X:null}var b=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function v(M){{for(var X=arguments.length,Q=new Array(X>1?X-1:0),me=1;me<X;me++)Q[me-1]=arguments[me];y("error",M,Q)}}function y(M,X,Q){{var me=b.ReactDebugCurrentFrame,Me=me.getStackAddendum();Me!==""&&(X+="%s",Q=Q.concat([Me]));var ze=Q.map(function(Ee){return String(Ee)});ze.unshift("Warning: "+X),Function.prototype.apply.call(console[M],console,ze)}}var w=!1,C=!1,E=!1,I=!1,D=!1,_;_=Symbol.for("react.module.reference");function F(M){return!!(typeof M=="string"||typeof M=="function"||M===r||M===a||D||M===i||M===u||M===c||I||M===f||w||C||E||typeof M=="object"&&M!==null&&(M.$$typeof===h||M.$$typeof===d||M.$$typeof===o||M.$$typeof===s||M.$$typeof===l||M.$$typeof===_||M.getModuleId!==void 0))}function $(M,X,Q){var me=M.displayName;if(me)return me;var Me=X.displayName||X.name||"";return Me!==""?Q+"("+Me+")":Q}function P(M){return M.displayName||"Context"}function k(M){if(M==null)return null;if(typeof M.tag=="number"&&v("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof M=="function")return M.displayName||M.name||null;if(typeof M=="string")return M;switch(M){case r:return"Fragment";case n:return"Portal";case a:return"Profiler";case i:return"StrictMode";case u:return"Suspense";case c:return"SuspenseList"}if(typeof M=="object")switch(M.$$typeof){case s:var X=M;return P(X)+".Consumer";case o:var Q=M;return P(Q._context)+".Provider";case l:return $(M,M.render,"ForwardRef");case d:var me=M.displayName||null;return me!==null?me:k(M.type)||"Memo";case h:{var Me=M,ze=Me._payload,Ee=Me._init;try{return k(Ee(ze))}catch{return null}}}return null}var A=Object.assign,B=0,T,R,O,H,L,Z,V;function W(){}W.__reactDisabledLog=!0;function q(){{if(B===0){T=console.log,R=console.info,O=console.warn,H=console.error,L=console.group,Z=console.groupCollapsed,V=console.groupEnd;var M={configurable:!0,enumerable:!0,value:W,writable:!0};Object.defineProperties(console,{info:M,log:M,warn:M,error:M,group:M,groupCollapsed:M,groupEnd:M})}B++}}function Y(){{if(B--,B===0){var M={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:A({},M,{value:T}),info:A({},M,{value:R}),warn:A({},M,{value:O}),error:A({},M,{value:H}),group:A({},M,{value:L}),groupCollapsed:A({},M,{value:Z}),groupEnd:A({},M,{value:V})})}B<0&&v("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var N=b.ReactCurrentDispatcher,G;function J(M,X,Q){{if(G===void 0)try{throw Error()}catch(Me){var me=Me.stack.trim().match(/\n( *(at )?)/);G=me&&me[1]||""}return`
|
18
|
+
`+G+M}}var re=!1,fe;{var le=typeof WeakMap=="function"?WeakMap:Map;fe=new le}function z(M,X){if(!M||re)return"";{var Q=fe.get(M);if(Q!==void 0)return Q}var me;re=!0;var Me=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ze;ze=N.current,N.current=null,q();try{if(X){var Ee=function(){throw Error()};if(Object.defineProperty(Ee.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Ee,[])}catch(Lt){me=Lt}Reflect.construct(M,[],Ee)}else{try{Ee.call()}catch(Lt){me=Lt}M.call(Ee.prototype)}}else{try{throw Error()}catch(Lt){me=Lt}M()}}catch(Lt){if(Lt&&me&&typeof Lt.stack=="string"){for(var we=Lt.stack.split(`
|
19
19
|
`),Pt=me.stack.split(`
|
20
20
|
`),ct=we.length-1,ft=Pt.length-1;ct>=1&&ft>=0&&we[ct]!==Pt[ft];)ft--;for(;ct>=1&&ft>=0;ct--,ft--)if(we[ct]!==Pt[ft]){if(ct!==1||ft!==1)do if(ct--,ft--,ft<0||we[ct]!==Pt[ft]){var un=`
|
21
|
-
`+we[ct].replace(" at new "," at ");return
|
21
|
+
`+we[ct].replace(" at new "," at ");return M.displayName&&un.includes("<anonymous>")&&(un=un.replace("<anonymous>",M.displayName)),typeof M=="function"&&fe.set(M,un),un}while(ct>=1&&ft>=0);break}}}finally{re=!1,N.current=ze,Y(),Error.prepareStackTrace=Me}var Ri=M?M.displayName||M.name:"",jr=Ri?J(Ri):"";return typeof M=="function"&&fe.set(M,jr),jr}function Ae(M,X,Q){return z(M,!1)}function ke(M){var X=M.prototype;return!!(X&&X.isReactComponent)}function Xe(M,X,Q){if(M==null)return"";if(typeof M=="function")return z(M,ke(M));if(typeof M=="string")return J(M);switch(M){case u:return J("Suspense");case c:return J("SuspenseList")}if(typeof M=="object")switch(M.$$typeof){case l:return Ae(M.render);case d:return Xe(M.type,X,Q);case h:{var me=M,Me=me._payload,ze=me._init;try{return Xe(ze(Me),X,Q)}catch{}}}return""}var qe=Object.prototype.hasOwnProperty,ee={},ne=b.ReactDebugCurrentFrame;function he(M){if(M){var X=M._owner,Q=Xe(M.type,M._source,X?X.type:null);ne.setExtraStackFrame(Q)}else ne.setExtraStackFrame(null)}function Oe(M,X,Q,me,Me){{var ze=Function.call.bind(qe);for(var Ee in M)if(ze(M,Ee)){var we=void 0;try{if(typeof M[Ee]!="function"){var Pt=Error((me||"React class")+": "+Q+" type `"+Ee+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof M[Ee]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Pt.name="Invariant Violation",Pt}we=M[Ee](X,Ee,me,Q,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(ct){we=ct}we&&!(we instanceof Error)&&(he(Me),v("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",me||"React class",Q,Ee,typeof we),he(null)),we instanceof Error&&!(we.message in ee)&&(ee[we.message]=!0,he(Me),v("Failed %s type: %s",Q,we.message),he(null))}}}var ut=Array.isArray;function Se(M){return ut(M)}function xe(M){{var X=typeof Symbol=="function"&&Symbol.toStringTag,Q=X&&M[Symbol.toStringTag]||M.constructor.name||"Object";return Q}}function Vt(M){try{return Ot(M),!1}catch{return!0}}function Ot(M){return""+M}function Nt(M){if(Vt(M))return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",xe(M)),Ot(M)}var ln=b.ReactCurrentOwner,vh={key:!0,ref:!0,__self:!0,__source:!0},Ko,_i,ba;ba={};function C3(M){if(qe.call(M,"ref")){var X=Object.getOwnPropertyDescriptor(M,"ref").get;if(X&&X.isReactWarning)return!1}return M.ref!==void 0}function w3(M){if(qe.call(M,"key")){var X=Object.getOwnPropertyDescriptor(M,"key").get;if(X&&X.isReactWarning)return!1}return M.key!==void 0}function D3(M,X){if(typeof M.ref=="string"&&ln.current&&X&&ln.current.stateNode!==X){var Q=k(ln.current.type);ba[Q]||(v('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',k(ln.current.type),M.ref),ba[Q]=!0)}}function S3(M,X){{var Q=function(){Ko||(Ko=!0,v("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",X))};Q.isReactWarning=!0,Object.defineProperty(M,"key",{get:Q,configurable:!0})}}function E3(M,X){{var Q=function(){_i||(_i=!0,v("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",X))};Q.isReactWarning=!0,Object.defineProperty(M,"ref",{get:Q,configurable:!0})}}var I3=function(M,X,Q,me,Me,ze,Ee){var we={$$typeof:t,type:M,key:X,ref:Q,props:Ee,_owner:ze};return we._store={},Object.defineProperty(we._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(we,"_self",{configurable:!1,enumerable:!1,writable:!1,value:me}),Object.defineProperty(we,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Me}),Object.freeze&&(Object.freeze(we.props),Object.freeze(we)),we};function _3(M,X,Q,me,Me){{var ze,Ee={},we=null,Pt=null;Q!==void 0&&(Nt(Q),we=""+Q),w3(X)&&(Nt(X.key),we=""+X.key),C3(X)&&(Pt=X.ref,D3(X,Me));for(ze in X)qe.call(X,ze)&&!vh.hasOwnProperty(ze)&&(Ee[ze]=X[ze]);if(M&&M.defaultProps){var ct=M.defaultProps;for(ze in ct)Ee[ze]===void 0&&(Ee[ze]=ct[ze])}if(we||Pt){var ft=typeof M=="function"?M.displayName||M.name||"Unknown":M;we&&S3(Ee,ft),Pt&&E3(Ee,ft)}return I3(M,we,Pt,Me,me,ln.current,Ee)}}var Eu=b.ReactCurrentOwner,yh=b.ReactDebugCurrentFrame;function $i(M){if(M){var X=M._owner,Q=Xe(M.type,M._source,X?X.type:null);yh.setExtraStackFrame(Q)}else yh.setExtraStackFrame(null)}var Iu;Iu=!1;function _u(M){return typeof M=="object"&&M!==null&&M.$$typeof===t}function xh(){{if(Eu.current){var M=k(Eu.current.type);if(M)return`
|
22
22
|
|
23
|
-
Check the render method of \``+
|
23
|
+
Check the render method of \``+M+"`."}return""}}function $3(M){return""}var Ch={};function R3(M){{var X=xh();if(!X){var Q=typeof M=="string"?M:M.displayName||M.name;Q&&(X=`
|
24
24
|
|
25
|
-
Check the top-level render call using <`+Q+">.")}return X}}function wh(
|
25
|
+
Check the top-level render call using <`+Q+">.")}return X}}function wh(M,X){{if(!M._store||M._store.validated||M.key!=null)return;M._store.validated=!0;var Q=R3(X);if(Ch[Q])return;Ch[Q]=!0;var me="";M&&M._owner&&M._owner!==Eu.current&&(me=" It was passed a child from "+k(M._owner.type)+"."),$i(M),v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',Q,me),$i(null)}}function Dh(M,X){{if(typeof M!="object")return;if(Se(M))for(var Q=0;Q<M.length;Q++){var me=M[Q];_u(me)&&wh(me,X)}else if(_u(M))M._store&&(M._store.validated=!0);else if(M){var Me=p(M);if(typeof Me=="function"&&Me!==M.entries)for(var ze=Me.call(M),Ee;!(Ee=ze.next()).done;)_u(Ee.value)&&wh(Ee.value,X)}}}function A3(M){{var X=M.type;if(X==null||typeof X=="string")return;var Q;if(typeof X=="function")Q=X.propTypes;else if(typeof X=="object"&&(X.$$typeof===l||X.$$typeof===d))Q=X.propTypes;else return;if(Q){var me=k(X);Oe(Q,M.props,"prop",me,M)}else if(X.PropTypes!==void 0&&!Iu){Iu=!0;var Me=k(X);v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Me||"Unknown")}typeof X.getDefaultProps=="function"&&!X.getDefaultProps.isReactClassApproved&&v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function F3(M){{for(var X=Object.keys(M.props),Q=0;Q<X.length;Q++){var me=X[Q];if(me!=="children"&&me!=="key"){$i(M),v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",me),$i(null);break}}M.ref!==null&&($i(M),v("Invalid attribute `ref` supplied to `React.Fragment`."),$i(null))}}var Sh={};function Eh(M,X,Q,me,Me,ze){{var Ee=F(M);if(!Ee){var we="";(M===void 0||typeof M=="object"&&M!==null&&Object.keys(M).length===0)&&(we+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Pt=$3();Pt?we+=Pt:we+=xh();var ct;M===null?ct="null":Se(M)?ct="array":M!==void 0&&M.$$typeof===t?(ct="<"+(k(M.type)||"Unknown")+" />",we=" Did you accidentally export a JSX literal instead of a component?"):ct=typeof M,v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",ct,we)}var ft=_3(M,X,Q,Me,ze);if(ft==null)return ft;if(Ee){var un=X.children;if(un!==void 0)if(me)if(Se(un)){for(var Ri=0;Ri<un.length;Ri++)Dh(un[Ri],M);Object.freeze&&Object.freeze(un)}else v("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Dh(un,M)}if(qe.call(X,"key")){var jr=k(M),Lt=Object.keys(X).filter(function(V3){return V3!=="key"}),$u=Lt.length>0?"{key: someKey, "+Lt.join(": ..., ")+": ...}":"{key: someKey}";if(!Sh[jr+$u]){var B3=Lt.length>0?"{"+Lt.join(": ..., ")+": ...}":"{}";v(`A props object containing a "key" prop is being spread into JSX:
|
26
26
|
let props = %s;
|
27
27
|
<%s {...props} />
|
28
28
|
React keys must be passed directly to JSX without using spread:
|
29
29
|
let props = %s;
|
30
|
-
<%s key={someKey} {...props} />`,$u,jr,B3,jr),Sh[jr+$u]=!0}}return k===r?F3(ft):A3(ft),ft}}function P3(k,X,Q){return Eh(k,X,Q,!0)}function T3(k,X,Q){return Eh(k,X,Q,!1)}var M3=T3,k3=P3;ya.Fragment=r,ya.jsx=M3,ya.jsxs=k3}()),ya}process.env.NODE_ENV==="production"?$c.exports=ew():$c.exports=tw();var S=$c.exports;function E0(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=E0(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function rr(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=E0(e))&&(r&&(r+=" "),r+=t);return r}const eo=e=>typeof e=="number"&&!isNaN(e),si=e=>typeof e=="string",qt=e=>typeof e=="function",Vs=e=>si(e)||qt(e)?e:null,Rc=e=>x.isValidElement(e)||si(e)||qt(e)||eo(e);function nw(e,t,n){n===void 0&&(n=300);const{scrollHeight:r,style:i}=e;requestAnimationFrame(()=>{i.minHeight="initial",i.height=r+"px",i.transition=`all ${n}ms`,requestAnimationFrame(()=>{i.height="0",i.padding="0",i.margin="0",setTimeout(t,n)})})}function Jl(e){let{enter:t,exit:n,appendPosition:r=!1,collapse:i=!0,collapseDuration:a=300}=e;return function(o){let{children:s,position:l,preventExitTransition:u,done:c,nodeRef:d,isIn:h,playToast:f}=o;const g=r?`${t}--${l}`:t,m=r?`${n}--${l}`:n,p=x.useRef(0);return x.useLayoutEffect(()=>{const b=d.current,v=g.split(" "),y=w=>{w.target===d.current&&(f(),b.removeEventListener("animationend",y),b.removeEventListener("animationcancel",y),p.current===0&&w.type!=="animationcancel"&&b.classList.remove(...v))};b.classList.add(...v),b.addEventListener("animationend",y),b.addEventListener("animationcancel",y)},[]),x.useEffect(()=>{const b=d.current,v=()=>{b.removeEventListener("animationend",v),i?nw(b,c,a):c()};h||(u?v():(p.current=1,b.className+=` ${m}`,b.addEventListener("animationend",v)))},[h]),x.createElement(x.Fragment,null,s)}}function Mh(e,t){return e!=null?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}const kt=new Map;let to=[];const Ac=new Set,rw=e=>Ac.forEach(t=>t(e)),I0=()=>kt.size>0;function _0(e,t){var n;if(t)return!((n=kt.get(t))==null||!n.isToastActive(e));let r=!1;return kt.forEach(i=>{i.isToastActive(e)&&(r=!0)}),r}function $0(e,t){Rc(e)&&(I0()||to.push({content:e,options:t}),kt.forEach(n=>{n.buildToast(e,t)}))}function kh(e,t){kt.forEach(n=>{t!=null&&t!=null&&t.containerId?(t==null?void 0:t.containerId)===n.id&&n.toggle(e,t==null?void 0:t.id):n.toggle(e,t==null?void 0:t.id)})}function iw(e){const{subscribe:t,getSnapshot:n,setProps:r}=x.useRef(function(a){const o=a.containerId||1;return{subscribe(s){const l=function(c,d,h){let f=1,g=0,m=[],p=[],b=[],v=d;const y=new Map,w=new Set,C=()=>{b=Array.from(y.values()),w.forEach(D=>D())},E=D=>{p=D==null?[]:p.filter(_=>_!==D),C()},I=D=>{const{toastId:_,onOpen:F,updateId:$,children:P}=D.props,M=$==null;D.staleId&&y.delete(D.staleId),y.set(_,D),p=[...p,D.props.toastId].filter(A=>A!==D.staleId),C(),h(Mh(D,M?"added":"updated")),M&&qt(F)&&F(x.isValidElement(P)&&P.props)};return{id:c,props:v,observe:D=>(w.add(D),()=>w.delete(D)),toggle:(D,_)=>{y.forEach(F=>{_!=null&&_!==F.props.toastId||qt(F.toggle)&&F.toggle(D)})},removeToast:E,toasts:y,clearQueue:()=>{g-=m.length,m=[]},buildToast:(D,_)=>{if((V=>{let{containerId:W,toastId:q,updateId:Y}=V;const N=W?W!==c:c!==1,G=y.has(q)&&Y==null;return N||G})(_))return;const{toastId:F,updateId:$,data:P,staleId:M,delay:A}=_,B=()=>{E(F)},T=$==null;T&&g++;const R={...v,style:v.toastStyle,key:f++,...Object.fromEntries(Object.entries(_).filter(V=>{let[W,q]=V;return q!=null})),toastId:F,updateId:$,data:P,closeToast:B,isIn:!1,className:Vs(_.className||v.toastClassName),bodyClassName:Vs(_.bodyClassName||v.bodyClassName),progressClassName:Vs(_.progressClassName||v.progressClassName),autoClose:!_.isLoading&&(O=_.autoClose,H=v.autoClose,O===!1||eo(O)&&O>0?O:H),deleteToast(){const V=y.get(F),{onClose:W,children:q}=V.props;qt(W)&&W(x.isValidElement(q)&&q.props),h(Mh(V,"removed")),y.delete(F),g--,g<0&&(g=0),m.length>0?I(m.shift()):C()}};var O,H;R.closeButton=v.closeButton,_.closeButton===!1||Rc(_.closeButton)?R.closeButton=_.closeButton:_.closeButton===!0&&(R.closeButton=!Rc(v.closeButton)||v.closeButton);let L=D;x.isValidElement(D)&&!si(D.type)?L=x.cloneElement(D,{closeToast:B,toastProps:R,data:P}):qt(D)&&(L=D({closeToast:B,toastProps:R,data:P}));const Z={content:L,props:R,staleId:M};v.limit&&v.limit>0&&g>v.limit&&T?m.push(Z):eo(A)?setTimeout(()=>{I(Z)},A):I(Z)},setProps(D){v=D},setToggle:(D,_)=>{y.get(D).toggle=_},isToastActive:D=>p.some(_=>_===D),getSnapshot:()=>v.newestOnTop?b.reverse():b}}(o,a,rw);kt.set(o,l);const u=l.observe(s);return to.forEach(c=>$0(c.content,c.options)),to=[],()=>{u(),kt.delete(o)}},setProps(s){var l;(l=kt.get(o))==null||l.setProps(s)},getSnapshot(){var s;return(s=kt.get(o))==null?void 0:s.getSnapshot()}}}(e)).current;r(e);const i=x.useSyncExternalStore(t,n,n);return{getToastToRender:function(a){if(!i)return[];const o=new Map;return i.forEach(s=>{const{position:l}=s.props;o.has(l)||o.set(l,[]),o.get(l).push(s)}),Array.from(o,s=>a(s[0],s[1]))},isToastActive:_0,count:i==null?void 0:i.length}}function aw(e){const[t,n]=x.useState(!1),[r,i]=x.useState(!1),a=x.useRef(null),o=x.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:s,pauseOnHover:l,closeToast:u,onClick:c,closeOnClick:d}=e;var h,f;function g(){n(!0)}function m(){n(!1)}function p(y){const w=a.current;o.canDrag&&w&&(o.didMove=!0,t&&m(),o.delta=e.draggableDirection==="x"?y.clientX-o.start:y.clientY-o.start,o.start!==y.clientX&&(o.canCloseOnClick=!1),w.style.transform=`translate3d(${e.draggableDirection==="x"?`${o.delta}px, var(--y)`:`0, calc(${o.delta}px + var(--y))`},0)`,w.style.opacity=""+(1-Math.abs(o.delta/o.removalDistance)))}function b(){document.removeEventListener("pointermove",p),document.removeEventListener("pointerup",b);const y=a.current;if(o.canDrag&&o.didMove&&y){if(o.canDrag=!1,Math.abs(o.delta)>o.removalDistance)return i(!0),e.closeToast(),void e.collapseAll();y.style.transition="transform 0.2s, opacity 0.2s",y.style.removeProperty("transform"),y.style.removeProperty("opacity")}}(f=kt.get((h={id:e.toastId,containerId:e.containerId,fn:n}).containerId||1))==null||f.setToggle(h.id,h.fn),x.useEffect(()=>{if(e.pauseOnFocusLoss)return document.hasFocus()||m(),window.addEventListener("focus",g),window.addEventListener("blur",m),()=>{window.removeEventListener("focus",g),window.removeEventListener("blur",m)}},[e.pauseOnFocusLoss]);const v={onPointerDown:function(y){if(e.draggable===!0||e.draggable===y.pointerType){o.didMove=!1,document.addEventListener("pointermove",p),document.addEventListener("pointerup",b);const w=a.current;o.canCloseOnClick=!0,o.canDrag=!0,w.style.transition="none",e.draggableDirection==="x"?(o.start=y.clientX,o.removalDistance=w.offsetWidth*(e.draggablePercent/100)):(o.start=y.clientY,o.removalDistance=w.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(y){const{top:w,bottom:C,left:E,right:I}=a.current.getBoundingClientRect();y.nativeEvent.type!=="touchend"&&e.pauseOnHover&&y.clientX>=E&&y.clientX<=I&&y.clientY>=w&&y.clientY<=C?m():g()}};return s&&l&&(v.onMouseEnter=m,e.stacked||(v.onMouseLeave=g)),d&&(v.onClick=y=>{c&&c(y),o.canCloseOnClick&&u()}),{playToast:g,pauseToast:m,isRunning:t,preventExitTransition:r,toastRef:a,eventHandlers:v}}function ow(e){let{delay:t,isRunning:n,closeToast:r,type:i="default",hide:a,className:o,style:s,controlledProgress:l,progress:u,rtl:c,isIn:d,theme:h}=e;const f=a||l&&u===0,g={...s,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused"};l&&(g.transform=`scaleX(${u})`);const m=rr("Toastify__progress-bar",l?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${h}`,`Toastify__progress-bar--${i}`,{"Toastify__progress-bar--rtl":c}),p=qt(o)?o({rtl:c,type:i,defaultClassName:m}):rr(m,o),b={[l&&u>=1?"onTransitionEnd":"onAnimationEnd"]:l&&u<1?null:()=>{d&&r()}};return x.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":f},x.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${h} Toastify__progress-bar--${i}`}),x.createElement("div",{role:"progressbar","aria-hidden":f?"true":"false","aria-label":"notification timer",className:p,style:g,...b}))}let sw=1;const R0=()=>""+sw++;function lw(e){return e&&(si(e.toastId)||eo(e.toastId))?e.toastId:R0()}function ja(e,t){return $0(e,t),t.toastId}function nl(e,t){return{...t,type:t&&t.type||e,toastId:lw(t)}}function qo(e){return(t,n)=>ja(t,nl(e,n))}function Ne(e,t){return ja(e,nl("default",t))}Ne.loading=(e,t)=>ja(e,nl("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),Ne.promise=function(e,t,n){let r,{pending:i,error:a,success:o}=t;i&&(r=si(i)?Ne.loading(i,n):Ne.loading(i.render,{...n,...i}));const s={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},l=(c,d,h)=>{if(d==null)return void Ne.dismiss(r);const f={type:c,...s,...n,data:h},g=si(d)?{render:d}:d;return r?Ne.update(r,{...f,...g}):Ne(g.render,{...f,...g}),h},u=qt(e)?e():e;return u.then(c=>l("success",o,c)).catch(c=>l("error",a,c)),u},Ne.success=qo("success"),Ne.info=qo("info"),Ne.error=qo("error"),Ne.warning=qo("warning"),Ne.warn=Ne.warning,Ne.dark=(e,t)=>ja(e,nl("default",{theme:"dark",...t})),Ne.dismiss=function(e){(function(t){var n;if(I0()){if(t==null||si(n=t)||eo(n))kt.forEach(r=>{r.removeToast(t)});else if(t&&("containerId"in t||"id"in t)){const r=kt.get(t.containerId);r?r.removeToast(t.id):kt.forEach(i=>{i.removeToast(t.id)})}}else to=to.filter(r=>t!=null&&r.options.toastId!==t)})(e)},Ne.clearWaitingQueue=function(e){e===void 0&&(e={}),kt.forEach(t=>{!t.props.limit||e.containerId&&t.id!==e.containerId||t.clearQueue()})},Ne.isActive=_0,Ne.update=function(e,t){t===void 0&&(t={});const n=((r,i)=>{var a;let{containerId:o}=i;return(a=kt.get(o||1))==null?void 0:a.toasts.get(r)})(e,t);if(n){const{props:r,content:i}=n,a={delay:100,...r,...t,toastId:t.toastId||e,updateId:R0()};a.toastId!==e&&(a.staleId=e);const o=a.render||i;delete a.render,ja(o,a)}},Ne.done=e=>{Ne.update(e,{progress:1})},Ne.onChange=function(e){return Ac.add(e),()=>{Ac.delete(e)}},Ne.play=e=>kh(!0,e),Ne.pause=e=>kh(!1,e);const uw=typeof window<"u"?x.useLayoutEffect:x.useEffect,es=e=>{let{theme:t,type:n,isLoading:r,...i}=e;return x.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...i})},Ru={info:function(e){return x.createElement(es,{...e},x.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return x.createElement(es,{...e},x.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return x.createElement(es,{...e},x.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return x.createElement(es,{...e},x.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return x.createElement("div",{className:"Toastify__spinner"})}},cw=e=>{const{isRunning:t,preventExitTransition:n,toastRef:r,eventHandlers:i,playToast:a}=aw(e),{closeButton:o,children:s,autoClose:l,onClick:u,type:c,hideProgressBar:d,closeToast:h,transition:f,position:g,className:m,style:p,bodyClassName:b,bodyStyle:v,progressClassName:y,progressStyle:w,updateId:C,role:E,progress:I,rtl:D,toastId:_,deleteToast:F,isIn:$,isLoading:P,closeOnClick:M,theme:A}=e,B=rr("Toastify__toast",`Toastify__toast-theme--${A}`,`Toastify__toast--${c}`,{"Toastify__toast--rtl":D},{"Toastify__toast--close-on-click":M}),T=qt(m)?m({rtl:D,position:g,type:c,defaultClassName:B}):rr(B,m),R=function(Z){let{theme:V,type:W,isLoading:q,icon:Y}=Z,N=null;const G={theme:V,type:W};return Y===!1||(qt(Y)?N=Y({...G,isLoading:q}):x.isValidElement(Y)?N=x.cloneElement(Y,G):q?N=Ru.spinner():(J=>J in Ru)(W)&&(N=Ru[W](G))),N}(e),O=!!I||!l,H={closeToast:h,type:c,theme:A};let L=null;return o===!1||(L=qt(o)?o(H):x.isValidElement(o)?x.cloneElement(o,H):function(Z){let{closeToast:V,theme:W,ariaLabel:q="close"}=Z;return x.createElement("button",{className:`Toastify__close-button Toastify__close-button--${W}`,type:"button",onClick:Y=>{Y.stopPropagation(),V(Y)},"aria-label":q},x.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},x.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(H)),x.createElement(f,{isIn:$,done:F,position:g,preventExitTransition:n,nodeRef:r,playToast:a},x.createElement("div",{id:_,onClick:u,"data-in":$,className:T,...i,style:p,ref:r},x.createElement("div",{...$&&{role:E},className:qt(b)?b({type:c}):rr("Toastify__toast-body",b),style:v},R!=null&&x.createElement("div",{className:rr("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!P})},R),x.createElement("div",null,s)),L,x.createElement(ow,{...C&&!O?{key:`pb-${C}`}:{},rtl:D,theme:A,delay:l,isRunning:t,isIn:$,closeToast:h,hide:d,type:c,style:w,className:y,controlledProgress:O,progress:I||0})))},Kl=function(e,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},dw=Jl(Kl("bounce",!0));Jl(Kl("slide",!0));Jl(Kl("zoom"));Jl(Kl("flip"));const fw={position:"top-right",transition:dw,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function hw(e){let t={...fw,...e};const n=e.stacked,[r,i]=x.useState(!0),a=x.useRef(null),{getToastToRender:o,isToastActive:s,count:l}=iw(t),{className:u,style:c,rtl:d,containerId:h}=t;function f(m){const p=rr("Toastify__toast-container",`Toastify__toast-container--${m}`,{"Toastify__toast-container--rtl":d});return qt(u)?u({position:m,rtl:d,defaultClassName:p}):rr(p,Vs(u))}function g(){n&&(i(!0),Ne.play())}return uw(()=>{if(n){var m;const p=a.current.querySelectorAll('[data-in="true"]'),b=12,v=(m=t.position)==null?void 0:m.includes("top");let y=0,w=0;Array.from(p).reverse().forEach((C,E)=>{const I=C;I.classList.add("Toastify__toast--stacked"),E>0&&(I.dataset.collapsed=`${r}`),I.dataset.pos||(I.dataset.pos=v?"top":"bot");const D=y*(r?.2:1)+(r?0:b*E);I.style.setProperty("--y",`${v?D:-1*D}px`),I.style.setProperty("--g",`${b}`),I.style.setProperty("--s",""+(1-(r?w:0))),y+=I.offsetHeight,w+=.025})}},[r,l,n]),x.createElement("div",{ref:a,className:"Toastify",id:h,onMouseEnter:()=>{n&&(i(!1),Ne.pause())},onMouseLeave:g},o((m,p)=>{const b=p.length?{...c}:{...c,pointerEvents:"none"};return x.createElement("div",{className:f(m),style:b,key:`container-${m}`},p.map(v=>{let{content:y,props:w}=v;return x.createElement(cw,{...w,stacked:n,collapseAll:g,isIn:s(w.toastId,w.containerId),style:w.style,key:`toast-${w.key}`},y)}))}))}const Yt={"alert-base":"_alert-base_l9fm8_1","alert-info-filled":"_alert-info-filled_l9fm8_1","alert-warning-filled":"_alert-warning-filled_l9fm8_1","alert-error-filled":"_alert-error-filled_l9fm8_1","alert-success-filled":"_alert-success-filled_l9fm8_1","alert-info-outlined":"_alert-info-outlined_l9fm8_1","alert-warning-outlined":"_alert-warning-outlined_l9fm8_1","alert-error-outlined":"_alert-error-outlined_l9fm8_1","alert-success-outlined":"_alert-success-outlined_l9fm8_1","alert-body":"_alert-body_l9fm8_62","text-header":"_text-header_l9fm8_68"},gw=(e,t,n)=>{const r=(n==null?void 0:n.kind)??"payhere",i={position:"top-center",autoClose:2e3,hideProgressBar:!0,closeOnClick:!0,pauseOnHover:!0,draggable:!0,bodyClassName:Yt["alert-body"]},a={icon:{laba:{success:S.jsx(pw,{}),warning:S.jsx(Cw,{}),error:S.jsx(yw,{}),info:S.jsx(vw,{})},payhere:{success:S.jsx(mw,{}),warning:S.jsx(xw,{}),error:S.jsx(bw,{}),info:S.jsx(ww,{})}},variant:{laba:{success:Yt["alert-success-filled"],error:Yt["alert-error-filled"],warning:Yt["alert-warning-filled"],info:Yt["alert-info-filled"]},payhere:{success:Yt["alert-success-outlined"],error:Yt["alert-error-outlined"],warning:Yt["alert-warning-outlined"],info:Yt["alert-info-outlined"]}}};return t==="error"?Ne.error(S.jsxs("div",{children:[["laba"].includes(r)&&S.jsx("p",{className:Yt["text-header"],children:"Error"}),e]}),{icon:a.icon[r].error,className:a.variant[r].error,...i,...n}):t==="info"?Ne.info(S.jsxs("div",{children:[["laba"].includes(r)&&S.jsx("p",{className:Yt["text-header"],children:"Info"}),e]}),{icon:a.icon[r].info,className:a.variant[r].info,...i,...n}):t==="warning"?Ne.warning(S.jsxs("div",{children:[["laba"].includes(r)&&S.jsx("p",{className:Yt["text-header"],children:"Warning"}),e]}),{icon:a.icon[r].warning,className:a.variant[r].warning,...i,...n}):Ne(S.jsxs("div",{children:[["laba"].includes(r)&&S.jsx("p",{className:Yt["text-header"],children:"Success"}),e]}),{icon:a.icon[r].success,className:a.variant[r].success,...i,...n})},mw=()=>S.jsx("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"1ru-h-5 1ru-w-5",children:S.jsx("g",{id:"check-circle",children:S.jsx("path",{id:"Vector",fillRule:"evenodd",clipRule:"evenodd",d:"M10 18.5C12.1217 18.5 14.1566 17.6571 15.6569 16.1569C17.1571 14.6566 18 12.6217 18 10.5C18 8.37827 17.1571 6.34344 15.6569 4.84315C14.1566 3.34285 12.1217 2.5 10 2.5C7.87827 2.5 5.84344 3.34285 4.34315 4.84315C2.84285 6.34344 2 8.37827 2 10.5C2 12.6217 2.84285 14.6566 4.34315 16.1569C5.84344 17.6571 7.87827 18.5 10 18.5ZM13.707 9.207C13.8892 9.0184 13.99 8.7658 13.9877 8.5036C13.9854 8.2414 13.8802 7.99059 13.6948 7.80518C13.5094 7.61977 13.2586 7.5146 12.9964 7.51233C12.7342 7.51005 12.4816 7.61084 12.293 7.793L9 11.086L7.707 9.793C7.5184 9.61084 7.2658 9.51005 7.0036 9.51233C6.7414 9.5146 6.49059 9.61977 6.30518 9.80518C6.11977 9.99059 6.0146 10.2414 6.01233 10.5036C6.01005 10.7658 6.11084 11.0184 6.293 11.207L8.293 13.207C8.48053 13.3945 8.73484 13.4998 9 13.4998C9.26516 13.4998 9.51947 13.3945 9.707 13.207L13.707 9.207Z",fill:"#388E3C"})})}),pw=()=>S.jsx("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"1ru-h-6 1ru-w-6",children:S.jsxs("g",{id:"circle",children:[S.jsx("path",{id:"Vector",d:"M12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21Z",stroke:"#038C67",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),S.jsx("path",{id:"Vector_2",d:"M9 12L11 14L15 10",stroke:"#038C67",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}),bw=()=>S.jsx("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"1ru-h-5 1ru-w-5",children:S.jsx("g",{id:"exclamation-circle",children:S.jsx("path",{id:"Vector",fillRule:"evenodd",clipRule:"evenodd",d:"M18 10.5C18 12.6217 17.1571 14.6566 15.6569 16.1569C14.1566 17.6571 12.1217 18.5 10 18.5C7.87827 18.5 5.84344 17.6571 4.34315 16.1569C2.84285 14.6566 2 12.6217 2 10.5C2 8.37827 2.84285 6.34344 4.34315 4.84315C5.84344 3.34285 7.87827 2.5 10 2.5C12.1217 2.5 14.1566 3.34285 15.6569 4.84315C17.1571 6.34344 18 8.37827 18 10.5ZM11 14.5C11 14.7652 10.8946 15.0196 10.7071 15.2071C10.5196 15.3946 10.2652 15.5 10 15.5C9.73478 15.5 9.48043 15.3946 9.29289 15.2071C9.10536 15.0196 9 14.7652 9 14.5C9 14.2348 9.10536 13.9804 9.29289 13.7929C9.48043 13.6054 9.73478 13.5 10 13.5C10.2652 13.5 10.5196 13.6054 10.7071 13.7929C10.8946 13.9804 11 14.2348 11 14.5ZM10 5.5C9.73478 5.5 9.48043 5.60536 9.29289 5.79289C9.10536 5.98043 9 6.23478 9 6.5V10.5C9 10.7652 9.10536 11.0196 9.29289 11.2071C9.48043 11.3946 9.73478 11.5 10 11.5C10.2652 11.5 10.5196 11.3946 10.7071 11.2071C10.8946 11.0196 11 10.7652 11 10.5V6.5C11 6.23478 10.8946 5.98043 10.7071 5.79289C10.5196 5.60536 10.2652 5.5 10 5.5Z",fill:"#F44336"})})}),vw=()=>S.jsx("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"1ru-h-6 1ru-w-6",children:S.jsxs("g",{id:"alert",children:[S.jsx("path",{id:"Vector",d:"M12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21Z",stroke:"#006DFF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),S.jsx("path",{id:"Vector_2",d:"M12 8V12",stroke:"#006DFF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),S.jsx("path",{id:"Vector_3",d:"M12 16H12.01",stroke:"#006DFF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}),yw=()=>S.jsx("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"1ru-h-6 1ru-w-6",children:S.jsxs("g",{id:"alert",children:[S.jsx("path",{id:"Vector",d:"M12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21Z",stroke:"#ED0019",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),S.jsx("path",{id:"Vector_2",d:"M12 8V12",stroke:"#ED0019",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),S.jsx("path",{id:"Vector_3",d:"M12 16H12.01",stroke:"#ED0019",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}),xw=()=>S.jsx("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"1ru-h-5 1ru-w-5",children:S.jsx("g",{id:"exclamation",children:S.jsx("path",{id:"Vector",fillRule:"evenodd",clipRule:"evenodd",d:"M8.25697 3.59898C9.02197 2.23898 10.979 2.23898 11.743 3.59898L17.323 13.519C18.073 14.853 17.11 16.499 15.581 16.499H4.41997C2.88997 16.499 1.92697 14.853 2.67697 13.519L8.25697 3.59898ZM11 13.5C11 13.7652 10.8946 14.0196 10.7071 14.2071C10.5195 14.3946 10.2652 14.5 9.99997 14.5C9.73475 14.5 9.4804 14.3946 9.29286 14.2071C9.10533 14.0196 8.99997 13.7652 8.99997 13.5C8.99997 13.2348 9.10533 12.9804 9.29286 12.7929C9.4804 12.6053 9.73475 12.5 9.99997 12.5C10.2652 12.5 10.5195 12.6053 10.7071 12.7929C10.8946 12.9804 11 13.2348 11 13.5ZM9.99997 5.49998C9.73475 5.49998 9.4804 5.60534 9.29286 5.79287C9.10533 5.98041 8.99997 6.23476 8.99997 6.49998V9.49998C8.99997 9.7652 9.10533 10.0195 9.29286 10.2071C9.4804 10.3946 9.73475 10.5 9.99997 10.5C10.2652 10.5 10.5195 10.3946 10.7071 10.2071C10.8946 10.0195 11 9.7652 11 9.49998V6.49998C11 6.23476 10.8946 5.98041 10.7071 5.79287C10.5195 5.60534 10.2652 5.49998 9.99997 5.49998Z",fill:"#F9A825"})})}),Cw=()=>S.jsx("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"1ru-h-6 1ru-w-6",children:S.jsxs("g",{id:"alert",children:[S.jsx("path",{id:"Vector",d:"M12 15V15.01M12 9V11V9Z",stroke:"#FF7200",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),S.jsx("path",{id:"Vector_2",d:"M5 19H19C19.3263 18.9977 19.6471 18.9156 19.9344 18.7609C20.2217 18.6061 20.4667 18.3835 20.6482 18.1123C20.8297 17.841 20.942 17.5296 20.9754 17.205C21.0089 16.8804 20.9624 16.5525 20.84 16.25L13.74 4.00002C13.567 3.68741 13.3135 3.42685 13.0058 3.2454C12.698 3.06396 12.3473 2.96826 11.99 2.96826C11.6327 2.96826 11.282 3.06396 10.9742 3.2454C10.6665 3.42685 10.413 3.68741 10.24 4.00002L3.14 16.25C3.01994 16.5456 2.97233 16.8656 3.00115 17.1833C3.02997 17.501 3.13437 17.8073 3.30565 18.0764C3.47693 18.3456 3.71011 18.5698 3.98573 18.7305C4.26134 18.8912 4.57139 18.9836 4.89 19",stroke:"#FF7200",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}),ww=()=>S.jsx("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"1ru-h-5 1ru-w-5",children:S.jsx("g",{id:"information-circle",children:S.jsx("path",{id:"Vector",fillRule:"evenodd",clipRule:"evenodd",d:"M18 10.5C18 12.6217 17.1571 14.6566 15.6569 16.1569C14.1566 17.6571 12.1217 18.5 10 18.5C7.87827 18.5 5.84344 17.6571 4.34315 16.1569C2.84285 14.6566 2 12.6217 2 10.5C2 8.37827 2.84285 6.34344 4.34315 4.84315C5.84344 3.34285 7.87827 2.5 10 2.5C12.1217 2.5 14.1566 3.34285 15.6569 4.84315C17.1571 6.34344 18 8.37827 18 10.5ZM11 6.5C11 6.76522 10.8946 7.01957 10.7071 7.20711C10.5196 7.39464 10.2652 7.5 10 7.5C9.73478 7.5 9.48043 7.39464 9.29289 7.20711C9.10536 7.01957 9 6.76522 9 6.5C9 6.23478 9.10536 5.98043 9.29289 5.79289C9.48043 5.60536 9.73478 5.5 10 5.5C10.2652 5.5 10.5196 5.60536 10.7071 5.79289C10.8946 5.98043 11 6.23478 11 6.5ZM9 9.5C8.73478 9.5 8.48043 9.60536 8.29289 9.79289C8.10536 9.98043 8 10.2348 8 10.5C8 10.7652 8.10536 11.0196 8.29289 11.2071C8.48043 11.3946 8.73478 11.5 9 11.5V14.5C9 14.7652 9.10536 15.0196 9.29289 15.2071C9.48043 15.3946 9.73478 15.5 10 15.5H11C11.2652 15.5 11.5196 15.3946 11.7071 15.2071C11.8946 15.0196 12 14.7652 12 14.5C12 14.2348 11.8946 13.9804 11.7071 13.7929C11.5196 13.6054 11.2652 13.5 11 13.5V10.5C11 10.2348 10.8946 9.98043 10.7071 9.79289C10.5196 9.60536 10.2652 9.5 10 9.5H9Z",fill:"#0288D1"})})}),Dw={black:"#212121",white:"#FFFFFF","primary-50":"#E3F2FD","primary-100":"#BBDEFB","primary-200":"#90CAF9","primary-300":"#64B5F6","primary-400":"#42A5F5","primary-500":"#2196F3","primary-600":"#1E88E5","primary-700":"#1976D2","primary-800":"#1565C0","primary-900":"#0D47A1","blue-gray-50":"#ECEFF1","blue-gray-100":"#CFD8DC","blue-gray-200":"#B0BEC5","blue-gray-300":"#90A4AE","blue-gray-400":"#78909C","blue-gray-500":"#607D8B","blue-gray-600":"#546E7A","blue-gray-700":"#455A64","blue-gray-800":"#37474F","blue-gray-900":"#263238","gray-50":"#FAFAFA","gray-100":"#F5F5F5","gray-200":"#EEEEEE","gray-300":"#E0E0E0","gray-400":"#BDBDBD","gray-500":"#9E9E9E","gray-600":"#757575","gray-700":"#616161","gray-800":"#424242","gray-900":"#212121","brown-50":"#EFEBE9","brown-100":"#D7CCC8","brown-200":"#BCAAA4","brown-300":"#A1887F","brown-400":"#8D6E63","brown-500":"#795548","brown-600":"#6D4C41","brown-700":"#5D4037","brown-800":"#4E342E","brown-900":"#3E2723","deep-orange-50":"#FBE9E7","deep-orange-100":"#FFCCBC","deep-orange-200":"#FFAB91","deep-orange-300":"#FF8A65","deep-orange-400":"#FF7043","deep-orange-500":"#FF5722","deep-orange-600":"#F4511E","deep-orange-700":"#E64A19","deep-orange-800":"#D84315","deep-orange-900":"#BF360C","orange-50":"#FFF3E0","orange-100":"#FFE0B2","orange-200":"#FFCC80","orange-300":"#FFB74D","orange-400":"#FFA726","orange-500":"#FF9800","orange-600":"#FB8C00","orange-700":"#F57C00","orange-800":"#EF6C00","orange-900":"#E65100","amber-50":"#FFF8E1","amber-100":"#FFECB3","amber-200":"#FFE082","amber-300":"#FFD54F","amber-400":"#FFCA28","amber-500":"#FFC107","amber-600":"#FFB300","amber-700":"#FFA000","amber-800":"#FF8F00","amber-900":"#FF6F00","yellow-50":"#FFFDE7","yellow-100":"#FFF9C4","yellow-200":"#FFF59D","yellow-300":"#FFF176","yellow-400":"#FFEE58","yellow-500":"#FFEB3B","yellow-600":"#FDD835","yellow-700":"#FBC02D","yellow-800":"#F9A825","yellow-900":"#F57F17","lime-50":"#F9FBE7","lime-100":"#F0F4C3","lime-200":"#E6EE9C","lime-300":"#DCE775","lime-400":"#D4E157","lime-500":"#CDDC39","lime-600":"#C0CA33","lime-700":"#AFB42B","lime-800":"#9E9D24","lime-900":"#827717","light-green-50":"#F1F8E9","light-green-100":"#DCEDC8","light-green-200":"#C5E1A5","light-green-300":"#AED581","light-green-400":"#9CCC65","light-green-500":"#8BC34A","light-green-600":"#7CB342","light-green-700":"#689F38","light-green-800":"#558B2F","light-green-900":"#33691E","green-50":"#E8F5E9","green-100":"#C8E6C9","green-200":"#A5D6A7","green-300":"#81C784","green-400":"#66BB6A","green-500":"#4CAF50","green-600":"#43A047","green-700":"#388E3C","green-800":"#2E7D32","green-900":"#1B5E20","teal-50":"#E0F2F1","teal-100":"#B2DFDB","teal-200":"#80CBC4","teal-300":"#4DB6AC","teal-400":"#26A69A","teal-500":"#009688","teal-600":"#00897B","teal-700":"#00796B","teal-800":"#00695C","teal-900":"#004D40","cyan-50":"#E0F7FA","cyan-100":"#B2EBF2","cyan-200":"#80DEEA","cyan-300":"#4DD0E1","cyan-400":"#26C6DA","cyan-500":"#00BCD4","cyan-600":"#00ACC1","cyan-700":"#0097A7","cyan-800":"#00838F","cyan-900":"#006064","light-blue-50":"#E1F5FE","light-blue-100":"#B3E5FC","light-blue-200":"#81D4FA","light-blue-300":"#4FC3F7","light-blue-400":"#29B6F6","light-blue-500":"#03A9F4","light-blue-600":"#039BE5","light-blue-700":"#0288D1","light-blue-800":"#0277BD","light-blue-900":"#01579B","blue-50":"#E3F2FD","blue-100":"#BBDEFB","blue-200":"#90CAF9","blue-300":"#64B5F6","blue-400":"#42A5F5","blue-500":"#2196F3","blue-600":"#1E88E5","blue-700":"#1976D2","blue-800":"#1565C0","blue-900":"#0D47A1","indigo-50":"#E8EAF6","indigo-100":"#C5CAE9","indigo-200":"#9FA8DA","indigo-300":"#7986CB","indigo-400":"#5C6BC0","indigo-500":"#3F51B5","indigo-600":"#3949AB","indigo-700":"#303F9F","indigo-800":"#283593","indigo-900":"#1A237E","deep-purple-50":"#EDE7F6","deep-purple-100":"#D1C4E9","deep-purple-200":"#B39DDB","deep-purple-300":"#9575CD","deep-purple-400":"#7E57C2","deep-purple-500":"#673AB7","deep-purple-600":"#5E35B1","deep-purple-700":"#512DA8","deep-purple-800":"#4527A0","deep-purple-900":"#311B92","purple-50":"#F3E5F5","purple-100":"#E1BEE7","purple-200":"#CE93D8","purple-300":"#BA68C8","purple-400":"#AB47BC","purple-500":"#9C27B0","purple-600":"#8E24AA","purple-700":"#7B1FA2","purple-800":"#6A1B9A","purple-900":"#4A148C","pink-50":"#FCE4EC","pink-100":"#F8BBD0","pink-200":"#F48FB1","pink-300":"#F06292","pink-400":"#EC407A","pink-500":"#E91E63","pink-600":"#D81B60","pink-700":"#C2185B","pink-800":"#AD1457","pink-900":"#880E4F","red-50":"#FFEBEE","red-100":"#FFCDD2","red-200":"#EF9A9A","red-300":"#E57373","red-400":"#EF5350","red-500":"#F44336","red-600":"#E53935","red-700":"#D32F2F","red-800":"#C62828","red-900":"#B71C1C","payhere-brand-base":"#102A4D","payhere-brand-10":"#CFD4DB","payhere-brand-20":"#AFB8C4","payhere-brand-30":"#8794A6","payhere-brand-40":"#607188","payhere-brand-50":"#384E6B","payhere-brand-60":"#0D2340","laba-black":"#212529","laba-white":"#FFFFFF","laba-blue-10":"#0163C8","laba-blue-08":"#006DFF","laba-blue-06":"#2899FF","laba-blue-05":"#73A4D6","laba-blue-02":"#DBECFF","laba-blue-01":"#F0F7FF","laba-green-10":"#038C67","laba-green-08":"#04BA27","laba-green-06":"#78D798","laba-green-05":"#ABF3CC","laba-green-02":"#CAEEE5","laba-green-01":"#DFF6F6","laba-grey-10":"#898989","laba-grey-08":"#AEAEAE","laba-grey-06":"#D6D6D6","laba-grey-05":"#EEEEEE","laba-grey-02":"#F2F2F2","laba-grey-01":"#FDFDFD","laba-orange-10":"#C05000","laba-orange-08":"#FF7200","laba-orange-06":"#FF9300","laba-orange-05":"#FFBD78","laba-orange-02":"#FFDDBB","laba-orange-01":"#FFF5EB","laba-red-10":"#9E101F","laba-red-08":"#ED0019","laba-red-06":"#FB004E","laba-red-05":"#FF5378","laba-red-02":"#FFAEBF","laba-red-01":"#FFEBEF"},A0={"payhere-h1":["60px",{lineHeight:"72px",fontWeight:700}],"payhere-h2":["48px",{lineHeight:"58px",fontWeight:700}],"payhere-h3":["40px",{lineHeight:"48px",fontWeight:700}],"payhere-h4":["30px",{lineHeight:"38px",fontWeight:700}],"payhere-h5":["28px",{lineHeight:"40px",fontWeight:600}],"payhere-h6":["24px",{lineHeight:"30px",fontWeight:600}],"payhere-body-lr":["18px",{lineHeight:"26px",fontWeight:400}],"payhere-body-lm":["18px",{lineHeight:"26px",fontWeight:500}],"payhere-body-ls":["18px",{lineHeight:"26px",fontWeight:600}],"payhere-body-lb":["18px",{lineHeight:"26px",fontWeight:700}],"payhere-body-mr":["16px",{lineHeight:"24px",fontWeight:400}],"payhere-body-mm":["16px",{lineHeight:"24px",fontWeight:500}],"payhere-body-ms":["16px",{lineHeight:"24px",fontWeight:600}],"payhere-body-mb":["16px",{lineHeight:"24px",fontWeight:700}],"payhere-label-r":["15px",{lineHeight:"26px",fontWeight:400}],"payhere-label-m":["15px",{lineHeight:"26px",fontWeight:500}],"payhere-body-sr":["14px",{lineHeight:"22px",fontWeight:400}],"payhere-body-sm":["14px",{lineHeight:"22px",fontWeight:500}],"payhere-body-esr":["12px",{lineHeight:"20px",fontWeight:400}],"payhere-body-esm":["12px",{lineHeight:"20px",fontWeight:500}]},F0={"laba-h1":["24px",{lineHeight:"30px",fontWeight:700}],"laba-h2":["18px",{lineHeight:"26px",fontWeight:700}],"laba-base-rb":["16px",{lineHeight:"24px",fontWeight:700}],"laba-base-rs":["16px",{lineHeight:"24px",fontWeight:600}],"laba-base-rr":["16px",{lineHeight:"24px",fontWeight:400}],"laba-base-sb":["14px",{lineHeight:"20px",fontWeight:700}],"laba-base-ss":["14px",{lineHeight:"20px",fontWeight:600}],"laba-base-sr":["14px",{lineHeight:"20px",fontWeight:400}],"laba-subtitle-rb":["12px",{lineHeight:"16px",fontWeight:700}],"laba-subtitle-rs":["12px",{lineHeight:"16px",fontWeight:600}],"laba-subtitle-rr":["12px",{lineHeight:"16px",fontWeight:400}],"laba-subtitle-sb":["10px",{lineHeight:"12px",fontWeight:700}],"laba-subtitle-ss":["10px",{lineHeight:"12px",fontWeight:600}],"laba-subtitle-sr":["10px",{lineHeight:"12px",fontWeight:400}]},Sw={...A0,...F0},Ew={sm:"576px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},Iw=()=>S.jsx("div",{className:"1ru-w-full 1ru-bg-red-900",children:"index"}),_w="_loading_1r2sa_10",_e={"button-base":"_button-base_1r2sa_6","button-xs":"_button-xs_1r2sa_6","button-s":"_button-s_1r2sa_6","button-m":"_button-m_1r2sa_6","button-l":"_button-l_1r2sa_6","button-extra-small":"_button-extra-small_1r2sa_6","button-small":"_button-small_1r2sa_6","button-reguler":"_button-reguler_1r2sa_6","button-large":"_button-large_1r2sa_6",loading:_w,"button-disabled-laba-grey-06":"_button-disabled-laba-grey-06_1r2sa_18","nude-laba-red-08":"_nude-laba-red-08_1r2sa_18","nude-laba-red-10":"_nude-laba-red-10_1r2sa_18","nude-gray-500":"_nude-gray-500_1r2sa_18","nude-green-700":"_nude-green-700_1r2sa_18","nude-red-700":"_nude-red-700_1r2sa_18","nude-laba-blue-10":"_nude-laba-blue-10_1r2sa_18","ghost-blue-gray-100-bg_white":"_ghost-blue-gray-100-bg_white_1r2sa_18","ghost-laba-blue-01":"_ghost-laba-blue-01_1r2sa_18","ghost-green-700":"_ghost-green-700_1r2sa_18","ghost-red-700":"_ghost-red-700_1r2sa_18","ghost-laba-blue-10":"_ghost-laba-blue-10_1r2sa_18","primary-green-700":"_primary-green-700_1r2sa_18","primary-red-700-dsb_laba-grey-06":"_primary-red-700-dsb_laba-grey-06_1r2sa_18","primary-laba-blue-10":"_primary-laba-blue-10_1r2sa_18","button-disabled-gray-100":"_button-disabled-gray-100_1r2sa_18","tertiary-gray-500":"_tertiary-gray-500_1r2sa_18","tertiary-red-600":"_tertiary-red-600_1r2sa_18","tertiary-red-300":"_tertiary-red-300_1r2sa_18","tertiary-blue-700":"_tertiary-blue-700_1r2sa_18","secondary-green-600":"_secondary-green-600_1r2sa_18","secondary-red-600":"_secondary-red-600_1r2sa_18","secondary-blue-700":"_secondary-blue-700_1r2sa_18","primary-red-700":"_primary-red-700_1r2sa_18","primary-blue-700":"_primary-blue-700_1r2sa_18","icon-loading":"_icon-loading_1r2sa_96","spin-loading":"_spin-loading_1r2sa_1"},$w=({className:e=""})=>S.jsx("svg",{className:`${_e["icon-loading"]} ${e??""}`,xmlns:"http://www.w3.org/2000/svg",width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",children:S.jsx("path",{d:`M21.6311 6.63315C22.3017 6.23898 22.5321 5.36957 22.0621 4.7497C20.7187 2.9779 18.9029 1.6063 \r
|
30
|
+
<%s key={someKey} {...props} />`,$u,jr,B3,jr),Sh[jr+$u]=!0}}return M===r?F3(ft):A3(ft),ft}}function P3(M,X,Q){return Eh(M,X,Q,!0)}function T3(M,X,Q){return Eh(M,X,Q,!1)}var k3=T3,M3=P3;ya.Fragment=r,ya.jsx=k3,ya.jsxs=M3}()),ya}process.env.NODE_ENV==="production"?$c.exports=ew():$c.exports=tw();var S=$c.exports;function E0(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=E0(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function rr(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=E0(e))&&(r&&(r+=" "),r+=t);return r}const eo=e=>typeof e=="number"&&!isNaN(e),si=e=>typeof e=="string",qt=e=>typeof e=="function",Vs=e=>si(e)||qt(e)?e:null,Rc=e=>x.isValidElement(e)||si(e)||qt(e)||eo(e);function nw(e,t,n){n===void 0&&(n=300);const{scrollHeight:r,style:i}=e;requestAnimationFrame(()=>{i.minHeight="initial",i.height=r+"px",i.transition=`all ${n}ms`,requestAnimationFrame(()=>{i.height="0",i.padding="0",i.margin="0",setTimeout(t,n)})})}function Jl(e){let{enter:t,exit:n,appendPosition:r=!1,collapse:i=!0,collapseDuration:a=300}=e;return function(o){let{children:s,position:l,preventExitTransition:u,done:c,nodeRef:d,isIn:h,playToast:f}=o;const g=r?`${t}--${l}`:t,m=r?`${n}--${l}`:n,p=x.useRef(0);return x.useLayoutEffect(()=>{const b=d.current,v=g.split(" "),y=w=>{w.target===d.current&&(f(),b.removeEventListener("animationend",y),b.removeEventListener("animationcancel",y),p.current===0&&w.type!=="animationcancel"&&b.classList.remove(...v))};b.classList.add(...v),b.addEventListener("animationend",y),b.addEventListener("animationcancel",y)},[]),x.useEffect(()=>{const b=d.current,v=()=>{b.removeEventListener("animationend",v),i?nw(b,c,a):c()};h||(u?v():(p.current=1,b.className+=` ${m}`,b.addEventListener("animationend",v)))},[h]),x.createElement(x.Fragment,null,s)}}function kh(e,t){return e!=null?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}const Mt=new Map;let to=[];const Ac=new Set,rw=e=>Ac.forEach(t=>t(e)),I0=()=>Mt.size>0;function _0(e,t){var n;if(t)return!((n=Mt.get(t))==null||!n.isToastActive(e));let r=!1;return Mt.forEach(i=>{i.isToastActive(e)&&(r=!0)}),r}function $0(e,t){Rc(e)&&(I0()||to.push({content:e,options:t}),Mt.forEach(n=>{n.buildToast(e,t)}))}function Mh(e,t){Mt.forEach(n=>{t!=null&&t!=null&&t.containerId?(t==null?void 0:t.containerId)===n.id&&n.toggle(e,t==null?void 0:t.id):n.toggle(e,t==null?void 0:t.id)})}function iw(e){const{subscribe:t,getSnapshot:n,setProps:r}=x.useRef(function(a){const o=a.containerId||1;return{subscribe(s){const l=function(c,d,h){let f=1,g=0,m=[],p=[],b=[],v=d;const y=new Map,w=new Set,C=()=>{b=Array.from(y.values()),w.forEach(D=>D())},E=D=>{p=D==null?[]:p.filter(_=>_!==D),C()},I=D=>{const{toastId:_,onOpen:F,updateId:$,children:P}=D.props,k=$==null;D.staleId&&y.delete(D.staleId),y.set(_,D),p=[...p,D.props.toastId].filter(A=>A!==D.staleId),C(),h(kh(D,k?"added":"updated")),k&&qt(F)&&F(x.isValidElement(P)&&P.props)};return{id:c,props:v,observe:D=>(w.add(D),()=>w.delete(D)),toggle:(D,_)=>{y.forEach(F=>{_!=null&&_!==F.props.toastId||qt(F.toggle)&&F.toggle(D)})},removeToast:E,toasts:y,clearQueue:()=>{g-=m.length,m=[]},buildToast:(D,_)=>{if((V=>{let{containerId:W,toastId:q,updateId:Y}=V;const N=W?W!==c:c!==1,G=y.has(q)&&Y==null;return N||G})(_))return;const{toastId:F,updateId:$,data:P,staleId:k,delay:A}=_,B=()=>{E(F)},T=$==null;T&&g++;const R={...v,style:v.toastStyle,key:f++,...Object.fromEntries(Object.entries(_).filter(V=>{let[W,q]=V;return q!=null})),toastId:F,updateId:$,data:P,closeToast:B,isIn:!1,className:Vs(_.className||v.toastClassName),bodyClassName:Vs(_.bodyClassName||v.bodyClassName),progressClassName:Vs(_.progressClassName||v.progressClassName),autoClose:!_.isLoading&&(O=_.autoClose,H=v.autoClose,O===!1||eo(O)&&O>0?O:H),deleteToast(){const V=y.get(F),{onClose:W,children:q}=V.props;qt(W)&&W(x.isValidElement(q)&&q.props),h(kh(V,"removed")),y.delete(F),g--,g<0&&(g=0),m.length>0?I(m.shift()):C()}};var O,H;R.closeButton=v.closeButton,_.closeButton===!1||Rc(_.closeButton)?R.closeButton=_.closeButton:_.closeButton===!0&&(R.closeButton=!Rc(v.closeButton)||v.closeButton);let L=D;x.isValidElement(D)&&!si(D.type)?L=x.cloneElement(D,{closeToast:B,toastProps:R,data:P}):qt(D)&&(L=D({closeToast:B,toastProps:R,data:P}));const Z={content:L,props:R,staleId:k};v.limit&&v.limit>0&&g>v.limit&&T?m.push(Z):eo(A)?setTimeout(()=>{I(Z)},A):I(Z)},setProps(D){v=D},setToggle:(D,_)=>{y.get(D).toggle=_},isToastActive:D=>p.some(_=>_===D),getSnapshot:()=>v.newestOnTop?b.reverse():b}}(o,a,rw);Mt.set(o,l);const u=l.observe(s);return to.forEach(c=>$0(c.content,c.options)),to=[],()=>{u(),Mt.delete(o)}},setProps(s){var l;(l=Mt.get(o))==null||l.setProps(s)},getSnapshot(){var s;return(s=Mt.get(o))==null?void 0:s.getSnapshot()}}}(e)).current;r(e);const i=x.useSyncExternalStore(t,n,n);return{getToastToRender:function(a){if(!i)return[];const o=new Map;return i.forEach(s=>{const{position:l}=s.props;o.has(l)||o.set(l,[]),o.get(l).push(s)}),Array.from(o,s=>a(s[0],s[1]))},isToastActive:_0,count:i==null?void 0:i.length}}function aw(e){const[t,n]=x.useState(!1),[r,i]=x.useState(!1),a=x.useRef(null),o=x.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:s,pauseOnHover:l,closeToast:u,onClick:c,closeOnClick:d}=e;var h,f;function g(){n(!0)}function m(){n(!1)}function p(y){const w=a.current;o.canDrag&&w&&(o.didMove=!0,t&&m(),o.delta=e.draggableDirection==="x"?y.clientX-o.start:y.clientY-o.start,o.start!==y.clientX&&(o.canCloseOnClick=!1),w.style.transform=`translate3d(${e.draggableDirection==="x"?`${o.delta}px, var(--y)`:`0, calc(${o.delta}px + var(--y))`},0)`,w.style.opacity=""+(1-Math.abs(o.delta/o.removalDistance)))}function b(){document.removeEventListener("pointermove",p),document.removeEventListener("pointerup",b);const y=a.current;if(o.canDrag&&o.didMove&&y){if(o.canDrag=!1,Math.abs(o.delta)>o.removalDistance)return i(!0),e.closeToast(),void e.collapseAll();y.style.transition="transform 0.2s, opacity 0.2s",y.style.removeProperty("transform"),y.style.removeProperty("opacity")}}(f=Mt.get((h={id:e.toastId,containerId:e.containerId,fn:n}).containerId||1))==null||f.setToggle(h.id,h.fn),x.useEffect(()=>{if(e.pauseOnFocusLoss)return document.hasFocus()||m(),window.addEventListener("focus",g),window.addEventListener("blur",m),()=>{window.removeEventListener("focus",g),window.removeEventListener("blur",m)}},[e.pauseOnFocusLoss]);const v={onPointerDown:function(y){if(e.draggable===!0||e.draggable===y.pointerType){o.didMove=!1,document.addEventListener("pointermove",p),document.addEventListener("pointerup",b);const w=a.current;o.canCloseOnClick=!0,o.canDrag=!0,w.style.transition="none",e.draggableDirection==="x"?(o.start=y.clientX,o.removalDistance=w.offsetWidth*(e.draggablePercent/100)):(o.start=y.clientY,o.removalDistance=w.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(y){const{top:w,bottom:C,left:E,right:I}=a.current.getBoundingClientRect();y.nativeEvent.type!=="touchend"&&e.pauseOnHover&&y.clientX>=E&&y.clientX<=I&&y.clientY>=w&&y.clientY<=C?m():g()}};return s&&l&&(v.onMouseEnter=m,e.stacked||(v.onMouseLeave=g)),d&&(v.onClick=y=>{c&&c(y),o.canCloseOnClick&&u()}),{playToast:g,pauseToast:m,isRunning:t,preventExitTransition:r,toastRef:a,eventHandlers:v}}function ow(e){let{delay:t,isRunning:n,closeToast:r,type:i="default",hide:a,className:o,style:s,controlledProgress:l,progress:u,rtl:c,isIn:d,theme:h}=e;const f=a||l&&u===0,g={...s,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused"};l&&(g.transform=`scaleX(${u})`);const m=rr("Toastify__progress-bar",l?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${h}`,`Toastify__progress-bar--${i}`,{"Toastify__progress-bar--rtl":c}),p=qt(o)?o({rtl:c,type:i,defaultClassName:m}):rr(m,o),b={[l&&u>=1?"onTransitionEnd":"onAnimationEnd"]:l&&u<1?null:()=>{d&&r()}};return x.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":f},x.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${h} Toastify__progress-bar--${i}`}),x.createElement("div",{role:"progressbar","aria-hidden":f?"true":"false","aria-label":"notification timer",className:p,style:g,...b}))}let sw=1;const R0=()=>""+sw++;function lw(e){return e&&(si(e.toastId)||eo(e.toastId))?e.toastId:R0()}function ja(e,t){return $0(e,t),t.toastId}function nl(e,t){return{...t,type:t&&t.type||e,toastId:lw(t)}}function qo(e){return(t,n)=>ja(t,nl(e,n))}function Ne(e,t){return ja(e,nl("default",t))}Ne.loading=(e,t)=>ja(e,nl("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),Ne.promise=function(e,t,n){let r,{pending:i,error:a,success:o}=t;i&&(r=si(i)?Ne.loading(i,n):Ne.loading(i.render,{...n,...i}));const s={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},l=(c,d,h)=>{if(d==null)return void Ne.dismiss(r);const f={type:c,...s,...n,data:h},g=si(d)?{render:d}:d;return r?Ne.update(r,{...f,...g}):Ne(g.render,{...f,...g}),h},u=qt(e)?e():e;return u.then(c=>l("success",o,c)).catch(c=>l("error",a,c)),u},Ne.success=qo("success"),Ne.info=qo("info"),Ne.error=qo("error"),Ne.warning=qo("warning"),Ne.warn=Ne.warning,Ne.dark=(e,t)=>ja(e,nl("default",{theme:"dark",...t})),Ne.dismiss=function(e){(function(t){var n;if(I0()){if(t==null||si(n=t)||eo(n))Mt.forEach(r=>{r.removeToast(t)});else if(t&&("containerId"in t||"id"in t)){const r=Mt.get(t.containerId);r?r.removeToast(t.id):Mt.forEach(i=>{i.removeToast(t.id)})}}else to=to.filter(r=>t!=null&&r.options.toastId!==t)})(e)},Ne.clearWaitingQueue=function(e){e===void 0&&(e={}),Mt.forEach(t=>{!t.props.limit||e.containerId&&t.id!==e.containerId||t.clearQueue()})},Ne.isActive=_0,Ne.update=function(e,t){t===void 0&&(t={});const n=((r,i)=>{var a;let{containerId:o}=i;return(a=Mt.get(o||1))==null?void 0:a.toasts.get(r)})(e,t);if(n){const{props:r,content:i}=n,a={delay:100,...r,...t,toastId:t.toastId||e,updateId:R0()};a.toastId!==e&&(a.staleId=e);const o=a.render||i;delete a.render,ja(o,a)}},Ne.done=e=>{Ne.update(e,{progress:1})},Ne.onChange=function(e){return Ac.add(e),()=>{Ac.delete(e)}},Ne.play=e=>Mh(!0,e),Ne.pause=e=>Mh(!1,e);const uw=typeof window<"u"?x.useLayoutEffect:x.useEffect,es=e=>{let{theme:t,type:n,isLoading:r,...i}=e;return x.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...i})},Ru={info:function(e){return x.createElement(es,{...e},x.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return x.createElement(es,{...e},x.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return x.createElement(es,{...e},x.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return x.createElement(es,{...e},x.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return x.createElement("div",{className:"Toastify__spinner"})}},cw=e=>{const{isRunning:t,preventExitTransition:n,toastRef:r,eventHandlers:i,playToast:a}=aw(e),{closeButton:o,children:s,autoClose:l,onClick:u,type:c,hideProgressBar:d,closeToast:h,transition:f,position:g,className:m,style:p,bodyClassName:b,bodyStyle:v,progressClassName:y,progressStyle:w,updateId:C,role:E,progress:I,rtl:D,toastId:_,deleteToast:F,isIn:$,isLoading:P,closeOnClick:k,theme:A}=e,B=rr("Toastify__toast",`Toastify__toast-theme--${A}`,`Toastify__toast--${c}`,{"Toastify__toast--rtl":D},{"Toastify__toast--close-on-click":k}),T=qt(m)?m({rtl:D,position:g,type:c,defaultClassName:B}):rr(B,m),R=function(Z){let{theme:V,type:W,isLoading:q,icon:Y}=Z,N=null;const G={theme:V,type:W};return Y===!1||(qt(Y)?N=Y({...G,isLoading:q}):x.isValidElement(Y)?N=x.cloneElement(Y,G):q?N=Ru.spinner():(J=>J in Ru)(W)&&(N=Ru[W](G))),N}(e),O=!!I||!l,H={closeToast:h,type:c,theme:A};let L=null;return o===!1||(L=qt(o)?o(H):x.isValidElement(o)?x.cloneElement(o,H):function(Z){let{closeToast:V,theme:W,ariaLabel:q="close"}=Z;return x.createElement("button",{className:`Toastify__close-button Toastify__close-button--${W}`,type:"button",onClick:Y=>{Y.stopPropagation(),V(Y)},"aria-label":q},x.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},x.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(H)),x.createElement(f,{isIn:$,done:F,position:g,preventExitTransition:n,nodeRef:r,playToast:a},x.createElement("div",{id:_,onClick:u,"data-in":$,className:T,...i,style:p,ref:r},x.createElement("div",{...$&&{role:E},className:qt(b)?b({type:c}):rr("Toastify__toast-body",b),style:v},R!=null&&x.createElement("div",{className:rr("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!P})},R),x.createElement("div",null,s)),L,x.createElement(ow,{...C&&!O?{key:`pb-${C}`}:{},rtl:D,theme:A,delay:l,isRunning:t,isIn:$,closeToast:h,hide:d,type:c,style:w,className:y,controlledProgress:O,progress:I||0})))},Kl=function(e,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},dw=Jl(Kl("bounce",!0));Jl(Kl("slide",!0));Jl(Kl("zoom"));Jl(Kl("flip"));const fw={position:"top-right",transition:dw,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function hw(e){let t={...fw,...e};const n=e.stacked,[r,i]=x.useState(!0),a=x.useRef(null),{getToastToRender:o,isToastActive:s,count:l}=iw(t),{className:u,style:c,rtl:d,containerId:h}=t;function f(m){const p=rr("Toastify__toast-container",`Toastify__toast-container--${m}`,{"Toastify__toast-container--rtl":d});return qt(u)?u({position:m,rtl:d,defaultClassName:p}):rr(p,Vs(u))}function g(){n&&(i(!0),Ne.play())}return uw(()=>{if(n){var m;const p=a.current.querySelectorAll('[data-in="true"]'),b=12,v=(m=t.position)==null?void 0:m.includes("top");let y=0,w=0;Array.from(p).reverse().forEach((C,E)=>{const I=C;I.classList.add("Toastify__toast--stacked"),E>0&&(I.dataset.collapsed=`${r}`),I.dataset.pos||(I.dataset.pos=v?"top":"bot");const D=y*(r?.2:1)+(r?0:b*E);I.style.setProperty("--y",`${v?D:-1*D}px`),I.style.setProperty("--g",`${b}`),I.style.setProperty("--s",""+(1-(r?w:0))),y+=I.offsetHeight,w+=.025})}},[r,l,n]),x.createElement("div",{ref:a,className:"Toastify",id:h,onMouseEnter:()=>{n&&(i(!1),Ne.pause())},onMouseLeave:g},o((m,p)=>{const b=p.length?{...c}:{...c,pointerEvents:"none"};return x.createElement("div",{className:f(m),style:b,key:`container-${m}`},p.map(v=>{let{content:y,props:w}=v;return x.createElement(cw,{...w,stacked:n,collapseAll:g,isIn:s(w.toastId,w.containerId),style:w.style,key:`toast-${w.key}`},y)}))}))}const Yt={"alert-base":"_alert-base_l9fm8_1","alert-info-filled":"_alert-info-filled_l9fm8_1","alert-warning-filled":"_alert-warning-filled_l9fm8_1","alert-error-filled":"_alert-error-filled_l9fm8_1","alert-success-filled":"_alert-success-filled_l9fm8_1","alert-info-outlined":"_alert-info-outlined_l9fm8_1","alert-warning-outlined":"_alert-warning-outlined_l9fm8_1","alert-error-outlined":"_alert-error-outlined_l9fm8_1","alert-success-outlined":"_alert-success-outlined_l9fm8_1","alert-body":"_alert-body_l9fm8_62","text-header":"_text-header_l9fm8_68"},gw=(e,t,n)=>{const r=(n==null?void 0:n.kind)??"payhere",i={position:"top-center",autoClose:2e3,hideProgressBar:!0,closeOnClick:!0,pauseOnHover:!0,draggable:!0,bodyClassName:Yt["alert-body"]},a={icon:{laba:{success:S.jsx(pw,{}),warning:S.jsx(Cw,{}),error:S.jsx(yw,{}),info:S.jsx(vw,{})},payhere:{success:S.jsx(mw,{}),warning:S.jsx(xw,{}),error:S.jsx(bw,{}),info:S.jsx(ww,{})}},variant:{laba:{success:Yt["alert-success-filled"],error:Yt["alert-error-filled"],warning:Yt["alert-warning-filled"],info:Yt["alert-info-filled"]},payhere:{success:Yt["alert-success-outlined"],error:Yt["alert-error-outlined"],warning:Yt["alert-warning-outlined"],info:Yt["alert-info-outlined"]}}};return t==="error"?Ne.error(S.jsxs("div",{children:[["laba"].includes(r)&&S.jsx("p",{className:Yt["text-header"],children:"Error"}),e]}),{icon:a.icon[r].error,className:a.variant[r].error,...i,...n}):t==="info"?Ne.info(S.jsxs("div",{children:[["laba"].includes(r)&&S.jsx("p",{className:Yt["text-header"],children:"Info"}),e]}),{icon:a.icon[r].info,className:a.variant[r].info,...i,...n}):t==="warning"?Ne.warning(S.jsxs("div",{children:[["laba"].includes(r)&&S.jsx("p",{className:Yt["text-header"],children:"Warning"}),e]}),{icon:a.icon[r].warning,className:a.variant[r].warning,...i,...n}):Ne(S.jsxs("div",{children:[["laba"].includes(r)&&S.jsx("p",{className:Yt["text-header"],children:"Success"}),e]}),{icon:a.icon[r].success,className:a.variant[r].success,...i,...n})},mw=()=>S.jsx("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"1ru-h-5 1ru-w-5",children:S.jsx("g",{id:"check-circle",children:S.jsx("path",{id:"Vector",fillRule:"evenodd",clipRule:"evenodd",d:"M10 18.5C12.1217 18.5 14.1566 17.6571 15.6569 16.1569C17.1571 14.6566 18 12.6217 18 10.5C18 8.37827 17.1571 6.34344 15.6569 4.84315C14.1566 3.34285 12.1217 2.5 10 2.5C7.87827 2.5 5.84344 3.34285 4.34315 4.84315C2.84285 6.34344 2 8.37827 2 10.5C2 12.6217 2.84285 14.6566 4.34315 16.1569C5.84344 17.6571 7.87827 18.5 10 18.5ZM13.707 9.207C13.8892 9.0184 13.99 8.7658 13.9877 8.5036C13.9854 8.2414 13.8802 7.99059 13.6948 7.80518C13.5094 7.61977 13.2586 7.5146 12.9964 7.51233C12.7342 7.51005 12.4816 7.61084 12.293 7.793L9 11.086L7.707 9.793C7.5184 9.61084 7.2658 9.51005 7.0036 9.51233C6.7414 9.5146 6.49059 9.61977 6.30518 9.80518C6.11977 9.99059 6.0146 10.2414 6.01233 10.5036C6.01005 10.7658 6.11084 11.0184 6.293 11.207L8.293 13.207C8.48053 13.3945 8.73484 13.4998 9 13.4998C9.26516 13.4998 9.51947 13.3945 9.707 13.207L13.707 9.207Z",fill:"#388E3C"})})}),pw=()=>S.jsx("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"1ru-h-6 1ru-w-6",children:S.jsxs("g",{id:"circle",children:[S.jsx("path",{id:"Vector",d:"M12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21Z",stroke:"#038C67",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),S.jsx("path",{id:"Vector_2",d:"M9 12L11 14L15 10",stroke:"#038C67",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}),bw=()=>S.jsx("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"1ru-h-5 1ru-w-5",children:S.jsx("g",{id:"exclamation-circle",children:S.jsx("path",{id:"Vector",fillRule:"evenodd",clipRule:"evenodd",d:"M18 10.5C18 12.6217 17.1571 14.6566 15.6569 16.1569C14.1566 17.6571 12.1217 18.5 10 18.5C7.87827 18.5 5.84344 17.6571 4.34315 16.1569C2.84285 14.6566 2 12.6217 2 10.5C2 8.37827 2.84285 6.34344 4.34315 4.84315C5.84344 3.34285 7.87827 2.5 10 2.5C12.1217 2.5 14.1566 3.34285 15.6569 4.84315C17.1571 6.34344 18 8.37827 18 10.5ZM11 14.5C11 14.7652 10.8946 15.0196 10.7071 15.2071C10.5196 15.3946 10.2652 15.5 10 15.5C9.73478 15.5 9.48043 15.3946 9.29289 15.2071C9.10536 15.0196 9 14.7652 9 14.5C9 14.2348 9.10536 13.9804 9.29289 13.7929C9.48043 13.6054 9.73478 13.5 10 13.5C10.2652 13.5 10.5196 13.6054 10.7071 13.7929C10.8946 13.9804 11 14.2348 11 14.5ZM10 5.5C9.73478 5.5 9.48043 5.60536 9.29289 5.79289C9.10536 5.98043 9 6.23478 9 6.5V10.5C9 10.7652 9.10536 11.0196 9.29289 11.2071C9.48043 11.3946 9.73478 11.5 10 11.5C10.2652 11.5 10.5196 11.3946 10.7071 11.2071C10.8946 11.0196 11 10.7652 11 10.5V6.5C11 6.23478 10.8946 5.98043 10.7071 5.79289C10.5196 5.60536 10.2652 5.5 10 5.5Z",fill:"#F44336"})})}),vw=()=>S.jsx("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"1ru-h-6 1ru-w-6",children:S.jsxs("g",{id:"alert",children:[S.jsx("path",{id:"Vector",d:"M12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21Z",stroke:"#006DFF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),S.jsx("path",{id:"Vector_2",d:"M12 8V12",stroke:"#006DFF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),S.jsx("path",{id:"Vector_3",d:"M12 16H12.01",stroke:"#006DFF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}),yw=()=>S.jsx("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"1ru-h-6 1ru-w-6",children:S.jsxs("g",{id:"alert",children:[S.jsx("path",{id:"Vector",d:"M12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21Z",stroke:"#ED0019",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),S.jsx("path",{id:"Vector_2",d:"M12 8V12",stroke:"#ED0019",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),S.jsx("path",{id:"Vector_3",d:"M12 16H12.01",stroke:"#ED0019",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}),xw=()=>S.jsx("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"1ru-h-5 1ru-w-5",children:S.jsx("g",{id:"exclamation",children:S.jsx("path",{id:"Vector",fillRule:"evenodd",clipRule:"evenodd",d:"M8.25697 3.59898C9.02197 2.23898 10.979 2.23898 11.743 3.59898L17.323 13.519C18.073 14.853 17.11 16.499 15.581 16.499H4.41997C2.88997 16.499 1.92697 14.853 2.67697 13.519L8.25697 3.59898ZM11 13.5C11 13.7652 10.8946 14.0196 10.7071 14.2071C10.5195 14.3946 10.2652 14.5 9.99997 14.5C9.73475 14.5 9.4804 14.3946 9.29286 14.2071C9.10533 14.0196 8.99997 13.7652 8.99997 13.5C8.99997 13.2348 9.10533 12.9804 9.29286 12.7929C9.4804 12.6053 9.73475 12.5 9.99997 12.5C10.2652 12.5 10.5195 12.6053 10.7071 12.7929C10.8946 12.9804 11 13.2348 11 13.5ZM9.99997 5.49998C9.73475 5.49998 9.4804 5.60534 9.29286 5.79287C9.10533 5.98041 8.99997 6.23476 8.99997 6.49998V9.49998C8.99997 9.7652 9.10533 10.0195 9.29286 10.2071C9.4804 10.3946 9.73475 10.5 9.99997 10.5C10.2652 10.5 10.5195 10.3946 10.7071 10.2071C10.8946 10.0195 11 9.7652 11 9.49998V6.49998C11 6.23476 10.8946 5.98041 10.7071 5.79287C10.5195 5.60534 10.2652 5.49998 9.99997 5.49998Z",fill:"#F9A825"})})}),Cw=()=>S.jsx("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"1ru-h-6 1ru-w-6",children:S.jsxs("g",{id:"alert",children:[S.jsx("path",{id:"Vector",d:"M12 15V15.01M12 9V11V9Z",stroke:"#FF7200",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),S.jsx("path",{id:"Vector_2",d:"M5 19H19C19.3263 18.9977 19.6471 18.9156 19.9344 18.7609C20.2217 18.6061 20.4667 18.3835 20.6482 18.1123C20.8297 17.841 20.942 17.5296 20.9754 17.205C21.0089 16.8804 20.9624 16.5525 20.84 16.25L13.74 4.00002C13.567 3.68741 13.3135 3.42685 13.0058 3.2454C12.698 3.06396 12.3473 2.96826 11.99 2.96826C11.6327 2.96826 11.282 3.06396 10.9742 3.2454C10.6665 3.42685 10.413 3.68741 10.24 4.00002L3.14 16.25C3.01994 16.5456 2.97233 16.8656 3.00115 17.1833C3.02997 17.501 3.13437 17.8073 3.30565 18.0764C3.47693 18.3456 3.71011 18.5698 3.98573 18.7305C4.26134 18.8912 4.57139 18.9836 4.89 19",stroke:"#FF7200",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}),ww=()=>S.jsx("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"1ru-h-5 1ru-w-5",children:S.jsx("g",{id:"information-circle",children:S.jsx("path",{id:"Vector",fillRule:"evenodd",clipRule:"evenodd",d:"M18 10.5C18 12.6217 17.1571 14.6566 15.6569 16.1569C14.1566 17.6571 12.1217 18.5 10 18.5C7.87827 18.5 5.84344 17.6571 4.34315 16.1569C2.84285 14.6566 2 12.6217 2 10.5C2 8.37827 2.84285 6.34344 4.34315 4.84315C5.84344 3.34285 7.87827 2.5 10 2.5C12.1217 2.5 14.1566 3.34285 15.6569 4.84315C17.1571 6.34344 18 8.37827 18 10.5ZM11 6.5C11 6.76522 10.8946 7.01957 10.7071 7.20711C10.5196 7.39464 10.2652 7.5 10 7.5C9.73478 7.5 9.48043 7.39464 9.29289 7.20711C9.10536 7.01957 9 6.76522 9 6.5C9 6.23478 9.10536 5.98043 9.29289 5.79289C9.48043 5.60536 9.73478 5.5 10 5.5C10.2652 5.5 10.5196 5.60536 10.7071 5.79289C10.8946 5.98043 11 6.23478 11 6.5ZM9 9.5C8.73478 9.5 8.48043 9.60536 8.29289 9.79289C8.10536 9.98043 8 10.2348 8 10.5C8 10.7652 8.10536 11.0196 8.29289 11.2071C8.48043 11.3946 8.73478 11.5 9 11.5V14.5C9 14.7652 9.10536 15.0196 9.29289 15.2071C9.48043 15.3946 9.73478 15.5 10 15.5H11C11.2652 15.5 11.5196 15.3946 11.7071 15.2071C11.8946 15.0196 12 14.7652 12 14.5C12 14.2348 11.8946 13.9804 11.7071 13.7929C11.5196 13.6054 11.2652 13.5 11 13.5V10.5C11 10.2348 10.8946 9.98043 10.7071 9.79289C10.5196 9.60536 10.2652 9.5 10 9.5H9Z",fill:"#0288D1"})})}),Dw={black:"#212121",white:"#FFFFFF","primary-50":"#E3F2FD","primary-100":"#BBDEFB","primary-200":"#90CAF9","primary-300":"#64B5F6","primary-400":"#42A5F5","primary-500":"#2196F3","primary-600":"#1E88E5","primary-700":"#1976D2","primary-800":"#1565C0","primary-900":"#0D47A1","blue-gray-50":"#ECEFF1","blue-gray-100":"#CFD8DC","blue-gray-200":"#B0BEC5","blue-gray-300":"#90A4AE","blue-gray-400":"#78909C","blue-gray-500":"#607D8B","blue-gray-600":"#546E7A","blue-gray-700":"#455A64","blue-gray-800":"#37474F","blue-gray-900":"#263238","gray-50":"#FAFAFA","gray-100":"#F5F5F5","gray-200":"#EEEEEE","gray-300":"#E0E0E0","gray-400":"#BDBDBD","gray-500":"#9E9E9E","gray-600":"#757575","gray-700":"#616161","gray-800":"#424242","gray-900":"#212121","brown-50":"#EFEBE9","brown-100":"#D7CCC8","brown-200":"#BCAAA4","brown-300":"#A1887F","brown-400":"#8D6E63","brown-500":"#795548","brown-600":"#6D4C41","brown-700":"#5D4037","brown-800":"#4E342E","brown-900":"#3E2723","deep-orange-50":"#FBE9E7","deep-orange-100":"#FFCCBC","deep-orange-200":"#FFAB91","deep-orange-300":"#FF8A65","deep-orange-400":"#FF7043","deep-orange-500":"#FF5722","deep-orange-600":"#F4511E","deep-orange-700":"#E64A19","deep-orange-800":"#D84315","deep-orange-900":"#BF360C","orange-50":"#FFF3E0","orange-100":"#FFE0B2","orange-200":"#FFCC80","orange-300":"#FFB74D","orange-400":"#FFA726","orange-500":"#FF9800","orange-600":"#FB8C00","orange-700":"#F57C00","orange-800":"#EF6C00","orange-900":"#E65100","amber-50":"#FFF8E1","amber-100":"#FFECB3","amber-200":"#FFE082","amber-300":"#FFD54F","amber-400":"#FFCA28","amber-500":"#FFC107","amber-600":"#FFB300","amber-700":"#FFA000","amber-800":"#FF8F00","amber-900":"#FF6F00","yellow-50":"#FFFDE7","yellow-100":"#FFF9C4","yellow-200":"#FFF59D","yellow-300":"#FFF176","yellow-400":"#FFEE58","yellow-500":"#FFEB3B","yellow-600":"#FDD835","yellow-700":"#FBC02D","yellow-800":"#F9A825","yellow-900":"#F57F17","lime-50":"#F9FBE7","lime-100":"#F0F4C3","lime-200":"#E6EE9C","lime-300":"#DCE775","lime-400":"#D4E157","lime-500":"#CDDC39","lime-600":"#C0CA33","lime-700":"#AFB42B","lime-800":"#9E9D24","lime-900":"#827717","light-green-50":"#F1F8E9","light-green-100":"#DCEDC8","light-green-200":"#C5E1A5","light-green-300":"#AED581","light-green-400":"#9CCC65","light-green-500":"#8BC34A","light-green-600":"#7CB342","light-green-700":"#689F38","light-green-800":"#558B2F","light-green-900":"#33691E","green-50":"#E8F5E9","green-100":"#C8E6C9","green-200":"#A5D6A7","green-300":"#81C784","green-400":"#66BB6A","green-500":"#4CAF50","green-600":"#43A047","green-700":"#388E3C","green-800":"#2E7D32","green-900":"#1B5E20","teal-50":"#E0F2F1","teal-100":"#B2DFDB","teal-200":"#80CBC4","teal-300":"#4DB6AC","teal-400":"#26A69A","teal-500":"#009688","teal-600":"#00897B","teal-700":"#00796B","teal-800":"#00695C","teal-900":"#004D40","cyan-50":"#E0F7FA","cyan-100":"#B2EBF2","cyan-200":"#80DEEA","cyan-300":"#4DD0E1","cyan-400":"#26C6DA","cyan-500":"#00BCD4","cyan-600":"#00ACC1","cyan-700":"#0097A7","cyan-800":"#00838F","cyan-900":"#006064","light-blue-50":"#E1F5FE","light-blue-100":"#B3E5FC","light-blue-200":"#81D4FA","light-blue-300":"#4FC3F7","light-blue-400":"#29B6F6","light-blue-500":"#03A9F4","light-blue-600":"#039BE5","light-blue-700":"#0288D1","light-blue-800":"#0277BD","light-blue-900":"#01579B","blue-50":"#E3F2FD","blue-100":"#BBDEFB","blue-200":"#90CAF9","blue-300":"#64B5F6","blue-400":"#42A5F5","blue-500":"#2196F3","blue-600":"#1E88E5","blue-700":"#1976D2","blue-800":"#1565C0","blue-900":"#0D47A1","indigo-50":"#E8EAF6","indigo-100":"#C5CAE9","indigo-200":"#9FA8DA","indigo-300":"#7986CB","indigo-400":"#5C6BC0","indigo-500":"#3F51B5","indigo-600":"#3949AB","indigo-700":"#303F9F","indigo-800":"#283593","indigo-900":"#1A237E","deep-purple-50":"#EDE7F6","deep-purple-100":"#D1C4E9","deep-purple-200":"#B39DDB","deep-purple-300":"#9575CD","deep-purple-400":"#7E57C2","deep-purple-500":"#673AB7","deep-purple-600":"#5E35B1","deep-purple-700":"#512DA8","deep-purple-800":"#4527A0","deep-purple-900":"#311B92","purple-50":"#F3E5F5","purple-100":"#E1BEE7","purple-200":"#CE93D8","purple-300":"#BA68C8","purple-400":"#AB47BC","purple-500":"#9C27B0","purple-600":"#8E24AA","purple-700":"#7B1FA2","purple-800":"#6A1B9A","purple-900":"#4A148C","pink-50":"#FCE4EC","pink-100":"#F8BBD0","pink-200":"#F48FB1","pink-300":"#F06292","pink-400":"#EC407A","pink-500":"#E91E63","pink-600":"#D81B60","pink-700":"#C2185B","pink-800":"#AD1457","pink-900":"#880E4F","red-50":"#FFEBEE","red-100":"#FFCDD2","red-200":"#EF9A9A","red-300":"#E57373","red-400":"#EF5350","red-500":"#F44336","red-600":"#E53935","red-700":"#D32F2F","red-800":"#C62828","red-900":"#B71C1C","payhere-brand-base":"#102A4D","payhere-brand-10":"#CFD4DB","payhere-brand-20":"#AFB8C4","payhere-brand-30":"#8794A6","payhere-brand-40":"#607188","payhere-brand-50":"#384E6B","payhere-brand-60":"#0D2340","laba-black":"#212529","laba-white":"#FFFFFF","laba-blue-10":"#0163C8","laba-blue-08":"#006DFF","laba-blue-06":"#2899FF","laba-blue-05":"#73A4D6","laba-blue-02":"#DBECFF","laba-blue-01":"#F0F7FF","laba-green-10":"#038C67","laba-green-08":"#04BA27","laba-green-06":"#78D798","laba-green-05":"#ABF3CC","laba-green-02":"#CAEEE5","laba-green-01":"#DFF6F6","laba-grey-10":"#898989","laba-grey-08":"#AEAEAE","laba-grey-06":"#D6D6D6","laba-grey-05":"#EEEEEE","laba-grey-02":"#F2F2F2","laba-grey-01":"#FDFDFD","laba-orange-10":"#C05000","laba-orange-08":"#FF7200","laba-orange-06":"#FF9300","laba-orange-05":"#FFBD78","laba-orange-02":"#FFDDBB","laba-orange-01":"#FFF5EB","laba-red-10":"#9E101F","laba-red-08":"#ED0019","laba-red-06":"#FB004E","laba-red-05":"#FF5378","laba-red-02":"#FFAEBF","laba-red-01":"#FFEBEF"},A0={"payhere-h1":["60px",{lineHeight:"72px",fontWeight:700}],"payhere-h2":["48px",{lineHeight:"58px",fontWeight:700}],"payhere-h3":["40px",{lineHeight:"48px",fontWeight:700}],"payhere-h4":["30px",{lineHeight:"38px",fontWeight:700}],"payhere-h5":["28px",{lineHeight:"40px",fontWeight:600}],"payhere-h6":["24px",{lineHeight:"30px",fontWeight:600}],"payhere-body-lr":["18px",{lineHeight:"26px",fontWeight:400}],"payhere-body-lm":["18px",{lineHeight:"26px",fontWeight:500}],"payhere-body-ls":["18px",{lineHeight:"26px",fontWeight:600}],"payhere-body-lb":["18px",{lineHeight:"26px",fontWeight:700}],"payhere-body-mr":["16px",{lineHeight:"24px",fontWeight:400}],"payhere-body-mm":["16px",{lineHeight:"24px",fontWeight:500}],"payhere-body-ms":["16px",{lineHeight:"24px",fontWeight:600}],"payhere-body-mb":["16px",{lineHeight:"24px",fontWeight:700}],"payhere-label-r":["15px",{lineHeight:"26px",fontWeight:400}],"payhere-label-m":["15px",{lineHeight:"26px",fontWeight:500}],"payhere-body-sr":["14px",{lineHeight:"22px",fontWeight:400}],"payhere-body-sm":["14px",{lineHeight:"22px",fontWeight:500}],"payhere-body-esr":["12px",{lineHeight:"20px",fontWeight:400}],"payhere-body-esm":["12px",{lineHeight:"20px",fontWeight:500}]},F0={"laba-h1":["24px",{lineHeight:"30px",fontWeight:700}],"laba-h2":["18px",{lineHeight:"26px",fontWeight:700}],"laba-base-rb":["16px",{lineHeight:"24px",fontWeight:700}],"laba-base-rs":["16px",{lineHeight:"24px",fontWeight:600}],"laba-base-rr":["16px",{lineHeight:"24px",fontWeight:400}],"laba-base-sb":["14px",{lineHeight:"20px",fontWeight:700}],"laba-base-ss":["14px",{lineHeight:"20px",fontWeight:600}],"laba-base-sr":["14px",{lineHeight:"20px",fontWeight:400}],"laba-subtitle-rb":["12px",{lineHeight:"16px",fontWeight:700}],"laba-subtitle-rs":["12px",{lineHeight:"16px",fontWeight:600}],"laba-subtitle-rr":["12px",{lineHeight:"16px",fontWeight:400}],"laba-subtitle-sb":["10px",{lineHeight:"12px",fontWeight:700}],"laba-subtitle-ss":["10px",{lineHeight:"12px",fontWeight:600}],"laba-subtitle-sr":["10px",{lineHeight:"12px",fontWeight:400}]},Sw={...A0,...F0},Ew={sm:"576px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},Iw=()=>S.jsx("div",{className:"1ru-w-full 1ru-bg-red-900",children:"index"}),_w="_loading_1r2sa_10",_e={"button-base":"_button-base_1r2sa_6","button-xs":"_button-xs_1r2sa_6","button-s":"_button-s_1r2sa_6","button-m":"_button-m_1r2sa_6","button-l":"_button-l_1r2sa_6","button-extra-small":"_button-extra-small_1r2sa_6","button-small":"_button-small_1r2sa_6","button-reguler":"_button-reguler_1r2sa_6","button-large":"_button-large_1r2sa_6",loading:_w,"button-disabled-laba-grey-06":"_button-disabled-laba-grey-06_1r2sa_18","nude-laba-red-08":"_nude-laba-red-08_1r2sa_18","nude-laba-red-10":"_nude-laba-red-10_1r2sa_18","nude-gray-500":"_nude-gray-500_1r2sa_18","nude-green-700":"_nude-green-700_1r2sa_18","nude-red-700":"_nude-red-700_1r2sa_18","nude-laba-blue-10":"_nude-laba-blue-10_1r2sa_18","ghost-blue-gray-100-bg_white":"_ghost-blue-gray-100-bg_white_1r2sa_18","ghost-laba-blue-01":"_ghost-laba-blue-01_1r2sa_18","ghost-green-700":"_ghost-green-700_1r2sa_18","ghost-red-700":"_ghost-red-700_1r2sa_18","ghost-laba-blue-10":"_ghost-laba-blue-10_1r2sa_18","primary-green-700":"_primary-green-700_1r2sa_18","primary-red-700-dsb_laba-grey-06":"_primary-red-700-dsb_laba-grey-06_1r2sa_18","primary-laba-blue-10":"_primary-laba-blue-10_1r2sa_18","button-disabled-gray-100":"_button-disabled-gray-100_1r2sa_18","tertiary-gray-500":"_tertiary-gray-500_1r2sa_18","tertiary-red-600":"_tertiary-red-600_1r2sa_18","tertiary-red-300":"_tertiary-red-300_1r2sa_18","tertiary-blue-700":"_tertiary-blue-700_1r2sa_18","secondary-green-600":"_secondary-green-600_1r2sa_18","secondary-red-600":"_secondary-red-600_1r2sa_18","secondary-blue-700":"_secondary-blue-700_1r2sa_18","primary-red-700":"_primary-red-700_1r2sa_18","primary-blue-700":"_primary-blue-700_1r2sa_18","icon-loading":"_icon-loading_1r2sa_96","spin-loading":"_spin-loading_1r2sa_1"},$w=({className:e=""})=>S.jsx("svg",{className:`${_e["icon-loading"]} ${e??""}`,xmlns:"http://www.w3.org/2000/svg",width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",children:S.jsx("path",{d:`M21.6311 6.63315C22.3017 6.23898 22.5321 5.36957 22.0621 4.7497C20.7187 2.9779 18.9029 1.6063 \r
|
31
31
|
16.8106 0.800956C14.2782 -0.173807 11.4901 -0.261467 8.90143 0.552281C6.31275 1.36603 4.07629 \r
|
32
32
|
3.03314 2.55704 5.28155C1.0378 7.52995 0.325454 10.2269 0.536268 12.9323C0.747083 15.6376 1.86861 \r
|
33
33
|
18.1917 3.71782 20.1776C5.56702 22.1635 8.03473 23.4641 10.7182 23.867C13.4017 24.2699 16.1425 23.7514 \r
|
@@ -38,10 +38,10 @@ React keys must be passed directly to JSX without using spread:
|
|
38
38
|
8.57931 4.89118 6.85872C6.05378 5.13813 7.76522 3.86239 9.7462 3.23967C11.7272 2.61695 13.8607 \r
|
39
39
|
2.68403 15.7987 3.42996C17.296 4.0063 18.6083 4.96159 19.6129 6.19191C20.1049 \r
|
40
40
|
6.79445 20.9604 7.02733 21.6311 6.63315Z`,fill:"currentColor"})}),Hn=x.forwardRef((e,t)=>{const{size:n="reguler",variants:r="primary-laba-blue-10",startIcon:i=()=>S.jsx(S.Fragment,{}),endIcon:a=()=>S.jsx(S.Fragment,{}),children:o,className:s,classNameIconLoading:l,loading:u,onClick:c,type:d="button",disabled:h,...f}=e,g={size:{large:_e["button-large"],reguler:_e["button-reguler"],small:_e["button-small"],"extra-small":_e["button-extra-small"],l:_e["button-l"],m:_e["button-m"],s:_e["button-s"],xs:_e["button-xs"]},loadingSize:{large:"1ru-size-6",reguler:"1ru-size-5",small:"1ru-size-5","extra-small":"1ru-size-5",l:"1ru-size-6",m:"1ru-size-5",s:"1ru-size-5",xs:"1ru-size-5"},variants:{"primary-laba-blue-10":_e["primary-laba-blue-10"],"primary-red-700-dsb_laba-grey-06":_e["primary-red-700-dsb_laba-grey-06"],"primary-green-700":_e["primary-green-700"],"ghost-laba-blue-10":_e["ghost-laba-blue-10"],"ghost-red-700":_e["ghost-red-700"],"ghost-green-700":_e["ghost-green-700"],"nude-laba-blue-10":_e["nude-laba-blue-10"],"nude-red-700":_e["nude-red-700"],"nude-green-700":_e["nude-green-700"],"nude-gray-500":_e["nude-gray-500"],"primary-blue-700":_e["primary-blue-700"],"secondary-blue-700":_e["secondary-blue-700"],"tertiary-blue-700":_e["tertiary-blue-700"],"ghost-blue-gray-100-bg_white":_e["ghost-blue-gray-100-bg_white"],"secondary-red-600":_e["secondary-red-600"],"tertiary-red-300":_e["tertiary-red-300"],"tertiary-gray-500":_e["tertiary-gray-500"],"tertiary-red-600":_e["tertiary-red-600"],"secondary-green-600":_e["secondary-green-600"],"nude-laba-red-10":_e["nude-laba-red-10"],"primary-red-700":_e["primary-red-700"],"nude-laba-red-08":_e["nude-laba-red-08"],"ghost-laba-blue-01":_e["ghost-laba-blue-01"]}};return S.jsxs("button",{onClick:u?void 0:c,ref:t,className:`${g.size[n]} ${g.variants[r]}
|
41
|
-
${u?_e.loading:""} ${s??""}`,type:d,disabled:h??u,...f,children:[!u&&S.jsxs(S.Fragment,{children:[typeof i=="function"&&i(),x.isValidElement(i)&&i]}),u&&S.jsx($w,{className:`${g.loadingSize[n]} ${l}`}),o,!u&&S.jsxs(S.Fragment,{children:[typeof a=="function"&&a(),x.isValidElement(a)&&a]})]})});Hn.displayName="Button";function
|
41
|
+
${u?_e.loading:""} ${s??""}`,type:d,disabled:h??u,...f,children:[!u&&S.jsxs(S.Fragment,{children:[typeof i=="function"&&i(),x.isValidElement(i)&&i]}),u&&S.jsx($w,{className:`${g.loadingSize[n]} ${l}`}),o,!u&&S.jsxs(S.Fragment,{children:[typeof a=="function"&&a(),x.isValidElement(a)&&a]})]})});Hn.displayName="Button";function Mr(e){return P0(e)?(e.nodeName||"").toLowerCase():"#document"}function tn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function hr(e){var t;return(t=(P0(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function P0(e){return e instanceof Node||e instanceof tn(e).Node}function rt(e){return e instanceof Element||e instanceof tn(e).Element}function vt(e){return e instanceof HTMLElement||e instanceof tn(e).HTMLElement}function Fc(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof tn(e).ShadowRoot}function ko(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=bn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function Rw(e){return["table","td","th"].includes(Mr(e))}function Ql(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Od(e){const t=Nd(),n=bn(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function Aw(e){let t=dr(e);for(;vt(t)&&!Rr(t);){if(Ql(t))return null;if(Od(t))return t;t=dr(t)}return null}function Nd(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Rr(e){return["html","body","#document"].includes(Mr(e))}function bn(e){return tn(e).getComputedStyle(e)}function ql(e){return rt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function dr(e){if(Mr(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Fc(e)&&e.host||hr(e);return Fc(t)?t.host:t}function T0(e){const t=dr(e);return Rr(t)?e.ownerDocument?e.ownerDocument.body:e.body:vt(t)&&ko(t)?t:T0(t)}function _r(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=T0(e),a=i===((r=e.ownerDocument)==null?void 0:r.body),o=tn(i);return a?t.concat(o,o.visualViewport||[],ko(i)?i:[],o.frameElement&&n?_r(o.frameElement):[]):t.concat(i,_r(i,[],n))}function Jr(e){let t=e.activeElement;for(;((n=t)==null||(n=n.shadowRoot)==null?void 0:n.activeElement)!=null;){var n;t=t.shadowRoot.activeElement}return t}function Jt(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&Fc(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function Fw(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function k0(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:n,version:r}=t;return n+"/"+r}).join(" "):navigator.userAgent}function Pw(e){return e.mozInputSource===0&&e.isTrusted?!0:Pc()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function Tw(e){return Mw()?!1:!Pc()&&e.width===0&&e.height===0||Pc()&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType==="touch"}function kw(){return/apple/i.test(navigator.vendor)}function Pc(){const e=/android/i;return e.test(Fw())||e.test(k0())}function Mw(){return k0().includes("jsdom/")}function Bh(e,t){return["mouse","pen"].includes(e)}function Bw(e){return"nativeEvent"in e}function Vw(e){return e.matches("html,body")}function yn(e){return(e==null?void 0:e.ownerDocument)||document}function Au(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return n.target!=null&&t.contains(n.target)}function ei(e){return"composedPath"in e?e.composedPath()[0]:e.target}const Ow="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function M0(e){return vt(e)&&e.matches(Ow)}function Fu(e){e.preventDefault(),e.stopPropagation()}function Nw(e){return e?e.getAttribute("role")==="combobox"&&M0(e):!1}const Lw=["top","right","bottom","left"],Vh=["start","end"],Oh=Lw.reduce((e,t)=>e.concat(t,t+"-"+Vh[0],t+"-"+Vh[1]),[]),rl=Math.min,li=Math.max,il=Math.round,ts=Math.floor,Ar=e=>({x:e,y:e}),jw={left:"right",right:"left",bottom:"top",top:"bottom"},Hw={start:"end",end:"start"};function Nh(e,t,n){return li(e,rl(t,n))}function Mo(e,t){return typeof e=="function"?e(t):e}function fr(e){return e.split("-")[0]}function ur(e){return e.split("-")[1]}function B0(e){return e==="x"?"y":"x"}function V0(e){return e==="y"?"height":"width"}function ra(e){return["top","bottom"].includes(fr(e))?"y":"x"}function O0(e){return B0(ra(e))}function N0(e,t,n){n===void 0&&(n=!1);const r=ur(e),i=O0(e),a=V0(i);let o=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(o=ol(o)),[o,ol(o)]}function Ww(e){const t=ol(e);return[al(e),t,al(t)]}function al(e){return e.replace(/start|end/g,t=>Hw[t])}function zw(e,t,n){const r=["left","right"],i=["right","left"],a=["top","bottom"],o=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?a:o;default:return[]}}function Gw(e,t,n,r){const i=ur(e);let a=zw(fr(e),n==="start",r);return i&&(a=a.map(o=>o+"-"+i),t&&(a=a.concat(a.map(al)))),a}function ol(e){return e.replace(/left|right|bottom|top/g,t=>jw[t])}function Zw(e){return{top:0,right:0,bottom:0,left:0,...e}}function Xw(e){return typeof e!="number"?Zw(e):{top:e,right:e,bottom:e,left:e}}function sl(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}/*!
|
42
42
|
* tabbable 6.2.0
|
43
43
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
44
|
-
*/var Yw=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],ll=Yw.join(","),L0=typeof Element>"u",ia=L0?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,ul=!L0&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e==null?void 0:e.ownerDocument},cl=function e(t,n){var r;n===void 0&&(n=!0);var i=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"inert"),a=i===""||i==="true",o=a||n&&t&&e(t.parentNode);return o},Uw=function(t){var n,r=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"contenteditable");return r===""||r==="true"},Jw=function(t,n,r){if(cl(t))return[];var i=Array.prototype.slice.apply(t.querySelectorAll(ll));return n&&ia.call(t,ll)&&i.unshift(t),i=i.filter(r),i},Kw=function e(t,n,r){for(var i=[],a=Array.from(t);a.length;){var o=a.shift();if(!cl(o,!1))if(o.tagName==="SLOT"){var s=o.assignedElements(),l=s.length?s:o.children,u=e(l,!0,r);r.flatten?i.push.apply(i,u):i.push({scopeParent:o,candidates:u})}else{var c=ia.call(o,ll);c&&r.filter(o)&&(n||!t.includes(o))&&i.push(o);var d=o.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(o),h=!cl(d,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(o));if(d&&h){var f=e(d===!0?o.children:d.children,!0,r);r.flatten?i.push.apply(i,f):i.push({scopeParent:o,candidates:f})}else a.unshift.apply(a,o.children)}}return i},j0=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},H0=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||Uw(t))&&!j0(t)?0:t.tabIndex},Qw=function(t,n){var r=H0(t);return r<0&&n&&!j0(t)?0:r},qw=function(t,n){return t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex},W0=function(t){return t.tagName==="INPUT"},eD=function(t){return W0(t)&&t.type==="hidden"},tD=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(r){return r.tagName==="SUMMARY"});return n},nD=function(t,n){for(var r=0;r<t.length;r++)if(t[r].checked&&t[r].form===n)return t[r]},rD=function(t){if(!t.name)return!0;var n=t.form||ul(t),r=function(s){return n.querySelectorAll('input[type="radio"][name="'+s+'"]')},i;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")i=r(window.CSS.escape(t.name));else try{i=r(t.name)}catch(o){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",o.message),!1}var a=nD(i,t.form);return!a||a===t},iD=function(t){return W0(t)&&t.type==="radio"},aD=function(t){return iD(t)&&!rD(t)},oD=function(t){var n,r=t&&ul(t),i=(n=r)===null||n===void 0?void 0:n.host,a=!1;if(r&&r!==t){var o,s,l;for(a=!!((o=i)!==null&&o!==void 0&&(s=o.ownerDocument)!==null&&s!==void 0&&s.contains(i)||t!=null&&(l=t.ownerDocument)!==null&&l!==void 0&&l.contains(t));!a&&i;){var u,c,d;r=ul(i),i=(u=r)===null||u===void 0?void 0:u.host,a=!!((c=i)!==null&&c!==void 0&&(d=c.ownerDocument)!==null&&d!==void 0&&d.contains(i))}}return a},Lh=function(t){var n=t.getBoundingClientRect(),r=n.width,i=n.height;return r===0&&i===0},sD=function(t,n){var r=n.displayCheck,i=n.getShadowRoot;if(getComputedStyle(t).visibility==="hidden")return!0;var a=ia.call(t,"details>summary:first-of-type"),o=a?t.parentElement:t;if(ia.call(o,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="legacy-full"){if(typeof i=="function"){for(var s=t;t;){var l=t.parentElement,u=ul(t);if(l&&!l.shadowRoot&&i(l)===!0)return Lh(t);t.assignedSlot?t=t.assignedSlot:!l&&u!==t.ownerDocument?t=u.host:t=l}t=s}if(oD(t))return!t.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return Lh(t);return!1},lD=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var n=t.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var r=0;r<n.children.length;r++){var i=n.children.item(r);if(i.tagName==="LEGEND")return ia.call(n,"fieldset[disabled] *")?!0:!i.contains(t)}return!0}n=n.parentElement}return!1},uD=function(t,n){return!(n.disabled||cl(n)||eD(n)||sD(n,t)||tD(n)||lD(n))},Tc=function(t,n){return!(aD(n)||H0(n)<0||!uD(t,n))},cD=function(t){var n=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},dD=function e(t){var n=[],r=[];return t.forEach(function(i,a){var o=!!i.scopeParent,s=o?i.scopeParent:i,l=Qw(s,o),u=o?e(i.candidates):s;l===0?o?n.push.apply(n,u):n.push(s):r.push({documentOrder:a,tabIndex:l,item:i,isScope:o,content:u})}),r.sort(qw).reduce(function(i,a){return a.isScope?i.push.apply(i,a.content):i.push(a.content),i},[]).concat(n)},eu=function(t,n){n=n||{};var r;return n.getShadowRoot?r=Kw([t],n.includeContainer,{filter:Tc.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:cD}):r=Jw(t,n.includeContainer,Tc.bind(null,n)),dD(r)},fD=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return ia.call(t,ll)===!1?!1:Tc(n,t)};function jh(e,t,n){let{reference:r,floating:i}=e;const a=ra(t),o=O0(t),s=V0(o),l=fr(t),u=a==="y",c=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,h=r[s]/2-i[s]/2;let f;switch(l){case"top":f={x:c,y:r.y-i.height};break;case"bottom":f={x:c,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:d};break;case"left":f={x:r.x-i.width,y:d};break;default:f={x:r.x,y:r.y}}switch(ur(t)){case"start":f[o]-=h*(n&&u?-1:1);break;case"end":f[o]+=h*(n&&u?-1:1);break}return f}const hD=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:a=[],platform:o}=n,s=a.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(t));let u=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:d}=jh(u,r,l),h=r,f={},g=0;for(let m=0;m<s.length;m++){const{name:p,fn:b}=s[m],{x:v,y,data:w,reset:C}=await b({x:c,y:d,initialPlacement:r,placement:h,strategy:i,middlewareData:f,rects:u,platform:o,elements:{reference:e,floating:t}});c=v??c,d=y??d,f={...f,[p]:{...f[p],...w}},C&&g<=50&&(g++,typeof C=="object"&&(C.placement&&(h=C.placement),C.rects&&(u=C.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):C.rects),{x:c,y:d}=jh(u,h,l)),m=-1)}return{x:c,y:d,placement:h,strategy:i,middlewareData:f}};async function Ld(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:a,rects:o,elements:s,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:h=!1,padding:f=0}=ko(t,e),g=Xw(f),p=s[h?d==="floating"?"reference":"floating":d],b=sl(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(p)))==null||n?p:p.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:u,rootBoundary:c,strategy:l})),v=d==="floating"?{x:r,y:i,width:o.floating.width,height:o.floating.height}:o.reference,y=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),w=await(a.isElement==null?void 0:a.isElement(y))?await(a.getScale==null?void 0:a.getScale(y))||{x:1,y:1}:{x:1,y:1},C=sl(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:y,strategy:l}):v);return{top:(b.top-C.top+g.top)/w.y,bottom:(C.bottom-b.bottom+g.bottom)/w.y,left:(b.left-C.left+g.left)/w.x,right:(C.right-b.right+g.right)/w.x}}function gD(e,t,n){return(e?[...n.filter(i=>ur(i)===e),...n.filter(i=>ur(i)!==e)]:n.filter(i=>fr(i)===i)).filter(i=>e?ur(i)===e||(t?al(i)!==i:!1):!0)}const mD=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,r,i;const{rects:a,middlewareData:o,placement:s,platform:l,elements:u}=t,{crossAxis:c=!1,alignment:d,allowedPlacements:h=Oh,autoAlignment:f=!0,...g}=ko(e,t),m=d!==void 0||h===Oh?gD(d||null,f,h):h,p=await Ld(t,g),b=((n=o.autoPlacement)==null?void 0:n.index)||0,v=m[b];if(v==null)return{};const y=N0(v,a,await(l.isRTL==null?void 0:l.isRTL(u.floating)));if(s!==v)return{reset:{placement:m[0]}};const w=[p[fr(v)],p[y[0]],p[y[1]]],C=[...((r=o.autoPlacement)==null?void 0:r.overflows)||[],{placement:v,overflows:w}],E=m[b+1];if(E)return{data:{index:b+1,overflows:C},reset:{placement:E}};const I=C.map(F=>{const $=ur(F.placement);return[F.placement,$&&c?F.overflows.slice(0,2).reduce((P,M)=>P+M,0):F.overflows[0],F.overflows]}).sort((F,$)=>F[1]-$[1]),_=((i=I.filter(F=>F[2].slice(0,ur(F[0])?2:3).every($=>$<=0))[0])==null?void 0:i[0])||I[0][0];return _!==s?{data:{index:b+1,overflows:C},reset:{placement:_}}:{}}}},pD=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:a,rects:o,initialPlacement:s,platform:l,elements:u}=t,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:m=!0,...p}=ko(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const b=fr(i),v=ra(s),y=fr(s)===s,w=await(l.isRTL==null?void 0:l.isRTL(u.floating)),C=h||(y||!m?[ol(s)]:Ww(s)),E=g!=="none";!h&&E&&C.push(...Gw(s,m,g,w));const I=[s,...C],D=await Ld(t,p),_=[];let F=((r=a.flip)==null?void 0:r.overflows)||[];if(c&&_.push(D[b]),d){const A=N0(i,o,w);_.push(D[A[0]],D[A[1]])}if(F=[...F,{placement:i,overflows:_}],!_.every(A=>A<=0)){var $,P;const A=((($=a.flip)==null?void 0:$.index)||0)+1,B=I[A];if(B)return{data:{index:A,overflows:F},reset:{placement:B}};let T=(P=F.filter(R=>R.overflows[0]<=0).sort((R,O)=>R.overflows[1]-O.overflows[1])[0])==null?void 0:P.placement;if(!T)switch(f){case"bestFit":{var M;const R=(M=F.filter(O=>{if(E){const H=ra(O.placement);return H===v||H==="y"}return!0}).map(O=>[O.placement,O.overflows.filter(H=>H>0).reduce((H,L)=>H+L,0)]).sort((O,H)=>O[1]-H[1])[0])==null?void 0:M[0];R&&(T=R);break}case"initialPlacement":T=s;break}if(i!==T)return{reset:{placement:T}}}return{}}}};async function bD(e,t){const{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=fr(n),s=ur(n),l=ra(n)==="y",u=["left","top"].includes(o)?-1:1,c=a&&l?-1:1,d=ko(t,e);let{mainAxis:h,crossAxis:f,alignmentAxis:g}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&typeof g=="number"&&(f=s==="end"?g*-1:g),l?{x:f*c,y:h*u}:{x:h*u,y:f*c}}const vD=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:a,placement:o,middlewareData:s}=t,l=await bD(t,e);return o===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:a+l.y,data:{...l,placement:o}}}}},yD=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:a=!0,crossAxis:o=!1,limiter:s={fn:p=>{let{x:b,y:v}=p;return{x:b,y:v}}},...l}=ko(e,t),u={x:n,y:r},c=await Ld(t,l),d=ra(fr(i)),h=B0(d);let f=u[h],g=u[d];if(a){const p=h==="y"?"top":"left",b=h==="y"?"bottom":"right",v=f+c[p],y=f-c[b];f=Nh(v,f,y)}if(o){const p=d==="y"?"top":"left",b=d==="y"?"bottom":"right",v=g+c[p],y=g-c[b];g=Nh(v,g,y)}const m=s.fn({...t,[h]:f,[d]:g});return{...m,data:{x:m.x-n,y:m.y-r}}}}};function z0(e){const t=bn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=vt(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=il(n)!==a||il(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function jd(e){return rt(e)?e:e.contextElement}function Xi(e){const t=jd(e);if(!vt(t))return Ar(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:a}=z0(t);let o=(a?il(n.width):n.width)/r,s=(a?il(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const xD=Ar(0);function G0(e){const t=tn(e);return!Nd()||!t.visualViewport?xD:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function CD(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==tn(e)?!1:t}function fi(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),a=jd(e);let o=Ar(1);t&&(r?rt(r)&&(o=Xi(r)):o=Xi(e));const s=CD(a,n,r)?G0(a):Ar(0);let l=(i.left+s.x)/o.x,u=(i.top+s.y)/o.y,c=i.width/o.x,d=i.height/o.y;if(a){const h=tn(a),f=r&&rt(r)?tn(r):r;let g=h,m=g.frameElement;for(;m&&r&&f!==g;){const p=Xi(m),b=m.getBoundingClientRect(),v=bn(m),y=b.left+(m.clientLeft+parseFloat(v.paddingLeft))*p.x,w=b.top+(m.clientTop+parseFloat(v.paddingTop))*p.y;l*=p.x,u*=p.y,c*=p.x,d*=p.y,l+=y,u+=w,g=tn(m),m=g.frameElement}}return sl({width:c,height:d,x:l,y:u})}function wD(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const a=i==="fixed",o=hr(r),s=t?Ql(t.floating):!1;if(r===o||s&&a)return n;let l={scrollLeft:0,scrollTop:0},u=Ar(1);const c=Ar(0),d=vt(r);if((d||!d&&!a)&&((kr(r)!=="body"||Mo(o))&&(l=ql(r)),vt(r))){const h=fi(r);u=Xi(r),c.x=h.x+r.clientLeft,c.y=h.y+r.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+c.x,y:n.y*u.y-l.scrollTop*u.y+c.y}}function DD(e){return Array.from(e.getClientRects())}function Z0(e){return fi(hr(e)).left+ql(e).scrollLeft}function SD(e){const t=hr(e),n=ql(e),r=e.ownerDocument.body,i=li(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=li(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+Z0(e);const s=-n.scrollTop;return bn(r).direction==="rtl"&&(o+=li(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}function ED(e,t){const n=tn(e),r=hr(e),i=n.visualViewport;let a=r.clientWidth,o=r.clientHeight,s=0,l=0;if(i){a=i.width,o=i.height;const u=Nd();(!u||u&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:a,height:o,x:s,y:l}}function ID(e,t){const n=fi(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=vt(e)?Xi(e):Ar(1),o=e.clientWidth*a.x,s=e.clientHeight*a.y,l=i*a.x,u=r*a.y;return{width:o,height:s,x:l,y:u}}function Hh(e,t,n){let r;if(t==="viewport")r=ED(e,n);else if(t==="document")r=SD(hr(e));else if(rt(t))r=ID(t,n);else{const i=G0(e);r={...t,x:t.x-i.x,y:t.y-i.y}}return sl(r)}function X0(e,t){const n=dr(e);return n===t||!rt(n)||Rr(n)?!1:bn(n).position==="fixed"||X0(n,t)}function _D(e,t){const n=t.get(e);if(n)return n;let r=_r(e,[],!1).filter(s=>rt(s)&&kr(s)!=="body"),i=null;const a=bn(e).position==="fixed";let o=a?dr(e):e;for(;rt(o)&&!Rr(o);){const s=bn(o),l=Od(o);!l&&s.position==="fixed"&&(i=null),(a?!l&&!i:!l&&s.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||Mo(o)&&!l&&X0(e,o))?r=r.filter(c=>c!==o):i=s,o=dr(o)}return t.set(e,r),r}function $D(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const o=[...n==="clippingAncestors"?Ql(t)?[]:_D(t,this._c):[].concat(n),r],s=o[0],l=o.reduce((u,c)=>{const d=Hh(t,c,i);return u.top=li(d.top,u.top),u.right=rl(d.right,u.right),u.bottom=rl(d.bottom,u.bottom),u.left=li(d.left,u.left),u},Hh(t,s,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function RD(e){const{width:t,height:n}=z0(e);return{width:t,height:n}}function AD(e,t,n){const r=vt(t),i=hr(t),a=n==="fixed",o=fi(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const l=Ar(0);if(r||!r&&!a)if((kr(t)!=="body"||Mo(i))&&(s=ql(t)),r){const d=fi(t,!0,a,t);l.x=d.x+t.clientLeft,l.y=d.y+t.clientTop}else i&&(l.x=Z0(i));const u=o.left+s.scrollLeft-l.x,c=o.top+s.scrollTop-l.y;return{x:u,y:c,width:o.width,height:o.height}}function Pu(e){return bn(e).position==="static"}function Wh(e,t){return!vt(e)||bn(e).position==="fixed"?null:t?t(e):e.offsetParent}function Y0(e,t){const n=tn(e);if(Ql(e))return n;if(!vt(e)){let i=dr(e);for(;i&&!Rr(i);){if(rt(i)&&!Pu(i))return i;i=dr(i)}return n}let r=Wh(e,t);for(;r&&Rw(r)&&Pu(r);)r=Wh(r,t);return r&&Rr(r)&&Pu(r)&&!Od(r)?n:r||Aw(e)||n}const FD=async function(e){const t=this.getOffsetParent||Y0,n=this.getDimensions,r=await n(e.floating);return{reference:AD(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function PD(e){return bn(e).direction==="rtl"}const TD={convertOffsetParentRelativeRectToViewportRelativeRect:wD,getDocumentElement:hr,getClippingRect:$D,getOffsetParent:Y0,getElementRects:FD,getClientRects:DD,getDimensions:RD,getScale:Xi,isElement:rt,isRTL:PD};function MD(e,t){let n=null,r;const i=hr(e);function a(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function o(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),a();const{left:u,top:c,width:d,height:h}=e.getBoundingClientRect();if(s||t(),!d||!h)return;const f=ts(c),g=ts(i.clientWidth-(u+d)),m=ts(i.clientHeight-(c+h)),p=ts(u),v={rootMargin:-f+"px "+-g+"px "+-m+"px "+-p+"px",threshold:li(0,rl(1,l))||1};let y=!0;function w(C){const E=C[0].intersectionRatio;if(E!==l){if(!y)return o();E?o(!1,E):r=setTimeout(()=>{o(!1,1e-7)},1e3)}y=!1}try{n=new IntersectionObserver(w,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(w,v)}n.observe(e)}return o(!0),a}function U0(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=jd(e),c=i||a?[...u?_r(u):[],..._r(t)]:[];c.forEach(b=>{i&&b.addEventListener("scroll",n,{passive:!0}),a&&b.addEventListener("resize",n)});const d=u&&s?MD(u,n):null;let h=-1,f=null;o&&(f=new ResizeObserver(b=>{let[v]=b;v&&v.target===u&&f&&(f.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var y;(y=f)==null||y.observe(t)})),n()}),u&&!l&&f.observe(u),f.observe(t));let g,m=l?fi(e):null;l&&p();function p(){const b=fi(e);m&&(b.x!==m.x||b.y!==m.y||b.width!==m.width||b.height!==m.height)&&n(),m=b,g=requestAnimationFrame(p)}return n(),()=>{var b;c.forEach(v=>{i&&v.removeEventListener("scroll",n),a&&v.removeEventListener("resize",n)}),d==null||d(),(b=f)==null||b.disconnect(),f=null,l&&cancelAnimationFrame(g)}}const kD=vD,BD=mD,VD=yD,OD=pD,ND=(e,t,n)=>{const r=new Map,i={platform:TD,...n},a={...i.platform,_c:r};return hD(e,t,{...i,platform:a})};var Os=typeof document<"u"?x.useLayoutEffect:x.useEffect;function dl(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!dl(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const a=i[r];if(!(a==="_owner"&&e.$$typeof)&&!dl(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function J0(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function zh(e,t){const n=J0(e);return Math.round(t*n)/n}function Gh(e){const t=j.useRef(e);return Os(()=>{t.current=e}),t}function LD(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:l,open:u}=e,[c,d]=j.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,f]=j.useState(r);dl(h,r)||f(r);const[g,m]=j.useState(null),[p,b]=j.useState(null),v=j.useCallback(R=>{R!==E.current&&(E.current=R,m(R))},[]),y=j.useCallback(R=>{R!==I.current&&(I.current=R,b(R))},[]),w=a||g,C=o||p,E=j.useRef(null),I=j.useRef(null),D=j.useRef(c),_=l!=null,F=Gh(l),$=Gh(i),P=j.useCallback(()=>{if(!E.current||!I.current)return;const R={placement:t,strategy:n,middleware:h};$.current&&(R.platform=$.current),ND(E.current,I.current,R).then(O=>{const H={...O,isPositioned:!0};M.current&&!dl(D.current,H)&&(D.current=H,m0.flushSync(()=>{d(H)}))})},[h,t,n,$]);Os(()=>{u===!1&&D.current.isPositioned&&(D.current.isPositioned=!1,d(R=>({...R,isPositioned:!1})))},[u]);const M=j.useRef(!1);Os(()=>(M.current=!0,()=>{M.current=!1}),[]),Os(()=>{if(w&&(E.current=w),C&&(I.current=C),w&&C){if(F.current)return F.current(w,C,P);P()}},[w,C,P,F,_]);const A=j.useMemo(()=>({reference:E,floating:I,setReference:v,setFloating:y}),[v,y]),B=j.useMemo(()=>({reference:w,floating:C}),[w,C]),T=j.useMemo(()=>{const R={position:n,left:0,top:0};if(!B.floating)return R;const O=zh(B.floating,c.x),H=zh(B.floating,c.y);return s?{...R,transform:"translate("+O+"px, "+H+"px)",...J0(B.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:O,top:H}},[n,s,B.floating,c.x,c.y]);return j.useMemo(()=>({...c,update:P,refs:A,elements:B,floatingStyles:T}),[c,P,A,B,T])}const jD=(e,t)=>({...kD(e),options:[e,t]}),HD=(e,t)=>({...VD(e),options:[e,t]}),WD=(e,t)=>({...OD(e),options:[e,t]}),zD=(e,t)=>({...BD(e),options:[e,t]}),K0={...j},GD=K0.useInsertionEffect,ZD=GD||(e=>e());function xr(e){const t=j.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return ZD(()=>{t.current=e}),j.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.current==null?void 0:t.current(...r)},[])}let Zh=0;function Hr(e,t){t===void 0&&(t={});const{preventScroll:n=!1,cancelPrevious:r=!0,sync:i=!1}=t;r&&cancelAnimationFrame(Zh);const a=()=>e==null?void 0:e.focus({preventScroll:n});i?a():Zh=requestAnimationFrame(a)}var zt=typeof document<"u"?x.useLayoutEffect:x.useEffect;function fl(){return fl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fl.apply(this,arguments)}let Xh=!1,XD=0;const Yh=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+XD++;function YD(){const[e,t]=j.useState(()=>Xh?Yh():void 0);return zt(()=>{e==null&&t(Yh())},[]),j.useEffect(()=>{Xh=!0},[]),e}const UD=K0.useId,Hd=UD||YD;let Mc;process.env.NODE_ENV!=="production"&&(Mc=new Set);function JD(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const i="Floating UI: "+n.join(" ");if(!((e=Mc)!=null&&e.has(i))){var a;(a=Mc)==null||a.add(i),console.error(i)}}function KD(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(i=>i(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,((r=e.get(t))==null?void 0:r.filter(i=>i!==n))||[])}}}const QD=j.createContext(null),qD=j.createContext(null),Q0=()=>{var e;return((e=j.useContext(QD))==null?void 0:e.id)||null},Wd=()=>j.useContext(qD);function no(e){return"data-floating-ui-"+e}function ri(e){const t=x.useRef(e);return zt(()=>{t.current=e}),t}function e5(e,t){var n;let r=[],i=(n=e.find(a=>a.id===t))==null?void 0:n.parentId;for(;i;){const a=e.find(o=>o.id===i);i=a==null?void 0:a.parentId,a&&(r=r.concat(a))}return r}function Ha(e,t){let n=e.filter(i=>{var a;return i.parentId===t&&((a=i.context)==null?void 0:a.open)}),r=n;for(;r.length;)r=e.filter(i=>{var a;return(a=r)==null?void 0:a.some(o=>{var s;return i.parentId===o.id&&((s=i.context)==null?void 0:s.open)})}),n=n.concat(r);return n}let Fi=new WeakMap,ns=new WeakSet,rs={},Tu=0;const t5=()=>typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype,q0=e=>e&&(e.host||q0(e.parentNode)),n5=(e,t)=>t.map(n=>{if(e.contains(n))return n;const r=q0(n);return e.contains(r)?r:null}).filter(n=>n!=null);function r5(e,t,n,r){const i="data-floating-ui-inert",a=r?"inert":n?"aria-hidden":null,o=n5(t,e),s=new Set,l=new Set(o),u=[];rs[i]||(rs[i]=new WeakMap);const c=rs[i];o.forEach(d),h(t),s.clear();function d(f){!f||s.has(f)||(s.add(f),f.parentNode&&d(f.parentNode))}function h(f){!f||l.has(f)||[].forEach.call(f.children,g=>{if(kr(g)!=="script")if(s.has(g))h(g);else{const m=a?g.getAttribute(a):null,p=m!==null&&m!=="false",b=(Fi.get(g)||0)+1,v=(c.get(g)||0)+1;Fi.set(g,b),c.set(g,v),u.push(g),b===1&&p&&ns.add(g),v===1&&g.setAttribute(i,""),!p&&a&&g.setAttribute(a,"true")}})}return Tu++,()=>{u.forEach(f=>{const g=(Fi.get(f)||0)-1,m=(c.get(f)||0)-1;Fi.set(f,g),c.set(f,m),g||(!ns.has(f)&&a&&f.removeAttribute(a),ns.delete(f)),m||f.removeAttribute(i)}),Tu--,Tu||(Fi=new WeakMap,Fi=new WeakMap,ns=new WeakSet,rs={})}}function Uh(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=yn(e[0]).body;return r5(e.concat(Array.from(r.querySelectorAll("[aria-live]"))),r,t,n)}const ro=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function eb(e,t){const n=eu(e,ro());t==="prev"&&n.reverse();const r=n.indexOf(Jr(yn(e)));return n.slice(r+1)[0]}function tb(){return eb(document.body,"next")}function nb(){return eb(document.body,"prev")}function Wa(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!Jt(n,r)}function i5(e){eu(e,ro()).forEach(n=>{n.dataset.tabindex=n.getAttribute("tabindex")||"",n.setAttribute("tabindex","-1")})}function a5(e){e.querySelectorAll("[data-tabindex]").forEach(n=>{const r=n.dataset.tabindex;delete n.dataset.tabindex,r?n.setAttribute("tabindex",r):n.removeAttribute("tabindex")})}const zd={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};let o5;function Jh(e){e.key==="Tab"&&(e.target,clearTimeout(o5))}const hl=j.forwardRef(function(t,n){const[r,i]=j.useState();zt(()=>(Mw()&&i("button"),document.addEventListener("keydown",Jh),()=>{document.removeEventListener("keydown",Jh)}),[]);const a={ref:n,tabIndex:0,role:r,"aria-hidden":r?void 0:!0,[no("focus-guard")]:"",style:zd};return j.createElement("span",fl({},t,a))}),rb=j.createContext(null),Kh=no("portal");function s5(e){e===void 0&&(e={});const{id:t,root:n}=e,r=Hd(),i=ib(),[a,o]=j.useState(null),s=j.useRef(null);return zt(()=>()=>{a==null||a.remove(),queueMicrotask(()=>{s.current=null})},[a]),zt(()=>{if(!r||s.current)return;const l=t?document.getElementById(t):null;if(!l)return;const u=document.createElement("div");u.id=r,u.setAttribute(Kh,""),l.appendChild(u),s.current=u,o(u)},[t,r]),zt(()=>{if(!r||s.current)return;let l=n||(i==null?void 0:i.portalNode);l&&!rt(l)&&(l=l.current),l=l||document.body;let u=null;t&&(u=document.createElement("div"),u.id=t,l.appendChild(u));const c=document.createElement("div");c.id=r,c.setAttribute(Kh,""),l=u||l,l.appendChild(c),s.current=c,o(c)},[t,n,r,i]),a}function l5(e){const{children:t,id:n,root:r=null,preserveTabOrder:i=!0}=e,a=s5({id:n,root:r}),[o,s]=j.useState(null),l=j.useRef(null),u=j.useRef(null),c=j.useRef(null),d=j.useRef(null),h=!!o&&!o.modal&&o.open&&i&&!!(r||a);return j.useEffect(()=>{if(!a||!i||o!=null&&o.modal)return;function f(g){a&&Wa(g)&&(g.type==="focusin"?a5:i5)(a)}return a.addEventListener("focusin",f,!0),a.addEventListener("focusout",f,!0),()=>{a.removeEventListener("focusin",f,!0),a.removeEventListener("focusout",f,!0)}},[a,i,o==null?void 0:o.modal]),j.createElement(rb.Provider,{value:j.useMemo(()=>({preserveTabOrder:i,beforeOutsideRef:l,afterOutsideRef:u,beforeInsideRef:c,afterInsideRef:d,portalNode:a,setFocusManagerState:s}),[i,a])},h&&a&&j.createElement(hl,{"data-type":"outside",ref:l,onFocus:f=>{if(Wa(f,a)){var g;(g=c.current)==null||g.focus()}else{const m=nb()||(o==null?void 0:o.refs.domReference.current);m==null||m.focus()}}}),h&&a&&j.createElement("span",{"aria-owns":a.id,style:zd}),a&&m0.createPortal(t,a),h&&a&&j.createElement(hl,{"data-type":"outside",ref:u,onFocus:f=>{if(Wa(f,a)){var g;(g=d.current)==null||g.focus()}else{const m=tb()||(o==null?void 0:o.refs.domReference.current);m==null||m.focus(),o!=null&&o.closeOnFocusOut&&(o==null||o.onOpenChange(!1,f.nativeEvent))}}}))}const ib=()=>j.useContext(rb),Qh=20;let Kr=[];function Mu(e){Kr=Kr.filter(n=>n.isConnected);let t=e;if(!(!t||kr(t)==="body")){if(!fD(t,ro())){const n=eu(t,ro())[0];n&&(t=n)}Kr.push(t),Kr.length>Qh&&(Kr=Kr.slice(-Qh))}}function qh(){return Kr.slice().reverse().find(e=>e.isConnected)}const u5=j.forwardRef(function(t,n){return j.createElement("button",fl({},t,{type:"button",ref:n,tabIndex:-1,style:zd}))});function c5(e){const{context:t,children:n,disabled:r=!1,order:i=["content"],guards:a=!0,initialFocus:o=0,returnFocus:s=!0,restoreFocus:l=!1,modal:u=!0,visuallyHiddenDismiss:c=!1,closeOnFocusOut:d=!0}=e,{open:h,refs:f,nodeId:g,onOpenChange:m,events:p,dataRef:b,floatingId:v,elements:{domReference:y,floating:w}}=t,C=typeof o=="number"&&o<0,E=Nw(y)&&C,I=t5()?a:!0,D=ri(i),_=ri(o),F=ri(s),$=Wd(),P=ib(),M=j.useRef(null),A=j.useRef(null),B=j.useRef(!1),T=j.useRef(!1),R=j.useRef(-1),O=P!=null,H=w==null?void 0:w.firstElementChild,L=(H==null?void 0:H.id)===v?H:w,Z=xr(function(Y){return Y===void 0&&(Y=L),Y?eu(Y,ro()):[]}),V=xr(Y=>{const N=Z(Y);return D.current.map(G=>y&&G==="reference"?y:L&&G==="floating"?L:N).filter(Boolean).flat()});j.useEffect(()=>{if(r||!u)return;function Y(G){if(G.key==="Tab"){Jt(L,Jr(yn(L)))&&Z().length===0&&!E&&Fu(G);const J=V(),re=ei(G);D.current[0]==="reference"&&re===y&&(Fu(G),G.shiftKey?Hr(J[J.length-1]):Hr(J[1])),D.current[1]==="floating"&&re===L&&G.shiftKey&&(Fu(G),Hr(J[0]))}}const N=yn(L);return N.addEventListener("keydown",Y),()=>{N.removeEventListener("keydown",Y)}},[r,y,L,u,D,E,Z,V]),j.useEffect(()=>{if(r||!w)return;function Y(N){const G=ei(N),re=Z().indexOf(G);re!==-1&&(R.current=re)}return w.addEventListener("focusin",Y),()=>{w.removeEventListener("focusin",Y)}},[r,w,Z]),j.useEffect(()=>{if(r||!d)return;function Y(){T.current=!0,setTimeout(()=>{T.current=!1})}function N(G){const J=G.relatedTarget;queueMicrotask(()=>{const re=!(Jt(y,J)||Jt(w,J)||Jt(J,w)||Jt(P==null?void 0:P.portalNode,J)||J!=null&&J.hasAttribute(no("focus-guard"))||$&&(Ha($.nodesRef.current,g).find(fe=>{var le,z;return Jt((le=fe.context)==null?void 0:le.elements.floating,J)||Jt((z=fe.context)==null?void 0:z.elements.domReference,J)})||e5($.nodesRef.current,g).find(fe=>{var le,z;return((le=fe.context)==null?void 0:le.elements.floating)===J||((z=fe.context)==null?void 0:z.elements.domReference)===J})));if(l&&re&&Jr(yn(L))===yn(L).body){vt(L)&&(L==null||L.focus());const fe=R.current,le=Z(),z=le[fe]||le[le.length-1]||L;vt(z)&&z.focus()}(E||!u)&&J&&re&&!T.current&&J!==qh()&&(B.current=!0,m(!1,G))})}if(w&&vt(y))return y.addEventListener("focusout",N),y.addEventListener("pointerdown",Y),w.addEventListener("focusout",N),()=>{y.removeEventListener("focusout",N),y.removeEventListener("pointerdown",Y),w.removeEventListener("focusout",N)}},[r,y,w,L,u,g,$,P,m,d,l,Z,E]),j.useEffect(()=>{var Y;if(r)return;const N=Array.from((P==null||(Y=P.portalNode)==null?void 0:Y.querySelectorAll("["+no("portal")+"]"))||[]);if(w){const G=[w,...N,M.current,A.current,D.current.includes("reference")||E?y:null].filter(re=>re!=null),J=u||E?Uh(G,I,!I):Uh(G);return()=>{J()}}},[r,y,w,u,D,P,E,I]),zt(()=>{if(r||!vt(L))return;const Y=yn(L),N=Jr(Y);queueMicrotask(()=>{const G=V(L),J=_.current,re=(typeof J=="number"?G[J]:J.current)||L,fe=Jt(L,N);!C&&!fe&&h&&Hr(re,{preventScroll:re===L})})},[r,h,L,C,V,_]),zt(()=>{if(r||!L)return;let Y=!1;const N=yn(L),G=Jr(N);let re=b.current.openEvent;Mu(G);function fe(le){let{open:z,reason:Ae,event:Me,nested:Xe}=le;z&&(re=Me),Ae==="escape-key"&&f.domReference.current&&Mu(f.domReference.current),Ae==="hover"&&Me.type==="mouseleave"&&(B.current=!0),Ae==="outside-press"&&(Xe?(B.current=!1,Y=!0):B.current=!(Pw(Me)||Tw(Me)))}return p.on("openchange",fe),()=>{p.off("openchange",fe);const le=Jr(N),z=Jt(w,le)||$&&Ha($.nodesRef.current,g).some(Xe=>{var qe;return Jt((qe=Xe.context)==null?void 0:qe.elements.floating,le)});(z||re&&["click","mousedown"].includes(re.type))&&f.domReference.current&&Mu(f.domReference.current);const Me=qh();F.current&&!B.current&&vt(Me)&&(!(Me!==le&&le!==N.body)||z)&&Hr(Me,{cancelPrevious:!1,preventScroll:Y})}},[r,w,L,F,b,f,p,$,g]),zt(()=>{if(!r&&P)return P.setFocusManagerState({modal:u,closeOnFocusOut:d,open:h,onOpenChange:m,refs:f}),()=>{P.setFocusManagerState(null)}},[r,P,u,h,m,f,d]),zt(()=>{if(r||!L||typeof MutationObserver!="function"||C)return;const Y=()=>{const G=L.getAttribute("tabindex"),J=Z(),re=Jr(yn(w)),fe=J.indexOf(re);fe!==-1&&(R.current=fe),D.current.includes("floating")||re!==f.domReference.current&&J.length===0?G!=="0"&&L.setAttribute("tabindex","0"):G!=="-1"&&L.setAttribute("tabindex","-1")};Y();const N=new MutationObserver(Y);return N.observe(L,{childList:!0,subtree:!0,attributes:!0}),()=>{N.disconnect()}},[r,w,L,f,D,Z,C]);function W(Y){return r||!c||!u?null:j.createElement(u5,{ref:Y==="start"?M:A,onClick:N=>m(!1,N.nativeEvent)},typeof c=="string"?c:"Dismiss")}const q=!r&&I&&(u?!E:!0)&&(O||u);return j.createElement(j.Fragment,null,q&&j.createElement(hl,{"data-type":"inside",ref:P==null?void 0:P.beforeInsideRef,onFocus:Y=>{if(u){const G=V();Hr(i[0]==="reference"?G[0]:G[G.length-1])}else if(P!=null&&P.preserveTabOrder&&P.portalNode)if(B.current=!1,Wa(Y,P.portalNode)){const G=tb()||y;G==null||G.focus()}else{var N;(N=P.beforeOutsideRef.current)==null||N.focus()}}}),!E&&W("start"),n,W("end"),q&&j.createElement(hl,{"data-type":"inside",ref:P==null?void 0:P.afterInsideRef,onFocus:Y=>{if(u)Hr(V()[0]);else if(P!=null&&P.preserveTabOrder&&P.portalNode)if(d&&(B.current=!0),Wa(Y,P.portalNode)){const G=nb()||y;G==null||G.focus()}else{var N;(N=P.afterOutsideRef.current)==null||N.focus()}}}))}function eg(e){return vt(e.target)&&e.target.tagName==="BUTTON"}function tg(e){return k0(e)}function d5(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:i,elements:{domReference:a}}=e,{enabled:o=!0,event:s="click",toggle:l=!0,ignoreMouse:u=!1,keyboardHandlers:c=!0}=t,d=j.useRef(),h=j.useRef(!1),f=j.useMemo(()=>({onPointerDown(g){d.current=g.pointerType},onMouseDown(g){const m=d.current;g.button===0&&s!=="click"&&(Bh(m)&&u||(n&&l&&(!i.current.openEvent||i.current.openEvent.type==="mousedown")?r(!1,g.nativeEvent,"click"):(g.preventDefault(),r(!0,g.nativeEvent,"click"))))},onClick(g){const m=d.current;if(s==="mousedown"&&d.current){d.current=void 0;return}Bh(m)&&u||(n&&l&&(!i.current.openEvent||i.current.openEvent.type==="click")?r(!1,g.nativeEvent,"click"):r(!0,g.nativeEvent,"click"))},onKeyDown(g){d.current=void 0,!(g.defaultPrevented||!c||eg(g))&&(g.key===" "&&!tg(a)&&(g.preventDefault(),h.current=!0),g.key==="Enter"&&r(!(n&&l),g.nativeEvent,"click"))},onKeyUp(g){g.defaultPrevented||!c||eg(g)||tg(a)||g.key===" "&&h.current&&(h.current=!1,r(!(n&&l),g.nativeEvent,"click"))}}),[i,a,s,u,c,r,n,l]);return j.useMemo(()=>o?{reference:f}:{},[o,f])}const f5={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},h5={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},ng=e=>{var t,n;return{escapeKey:typeof e=="boolean"?e:(t=e==null?void 0:e.escapeKey)!=null?t:!1,outsidePress:typeof e=="boolean"?e:(n=e==null?void 0:e.outsidePress)!=null?n:!0}};function g5(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,elements:i,dataRef:a}=e,{enabled:o=!0,escapeKey:s=!0,outsidePress:l=!0,outsidePressEvent:u="pointerdown",referencePress:c=!1,referencePressEvent:d="pointerdown",ancestorScroll:h=!1,bubbles:f,capture:g}=t,m=Wd(),p=xr(typeof l=="function"?l:()=>!1),b=typeof l=="function"?p:l,v=j.useRef(!1),y=j.useRef(!1),{escapeKey:w,outsidePress:C}=ng(f),{escapeKey:E,outsidePress:I}=ng(g),D=xr(A=>{var B;if(!n||!o||!s||A.key!=="Escape")return;const T=(B=a.current.floatingContext)==null?void 0:B.nodeId,R=m?Ha(m.nodesRef.current,T):[];if(!w&&(A.stopPropagation(),R.length>0)){let O=!0;if(R.forEach(H=>{var L;if((L=H.context)!=null&&L.open&&!H.context.dataRef.current.__escapeKeyBubbles){O=!1;return}}),!O)return}r(!1,Bw(A)?A.nativeEvent:A,"escape-key")}),_=xr(A=>{var B;const T=()=>{var R;D(A),(R=ei(A))==null||R.removeEventListener("keydown",T)};(B=ei(A))==null||B.addEventListener("keydown",T)}),F=xr(A=>{var B;const T=v.current;v.current=!1;const R=y.current;if(y.current=!1,u==="click"&&R||T||typeof b=="function"&&!b(A))return;const O=ei(A),H="["+no("inert")+"]",L=yn(i.floating).querySelectorAll(H);let Z=rt(O)?O:null;for(;Z&&!Rr(Z);){const Y=dr(Z);if(Rr(Y)||!rt(Y))break;Z=Y}if(L.length&&rt(O)&&!Vw(O)&&!Jt(O,i.floating)&&Array.from(L).every(Y=>!Jt(Z,Y)))return;if(vt(O)&&M){const Y=O.clientWidth>0&&O.scrollWidth>O.clientWidth,N=O.clientHeight>0&&O.scrollHeight>O.clientHeight;let G=N&&A.offsetX>O.clientWidth;if(N&&bn(O).direction==="rtl"&&(G=A.offsetX<=O.offsetWidth-O.clientWidth),G||Y&&A.offsetY>O.clientHeight)return}const V=(B=a.current.floatingContext)==null?void 0:B.nodeId,W=m&&Ha(m.nodesRef.current,V).some(Y=>{var N;return Au(A,(N=Y.context)==null?void 0:N.elements.floating)});if(Au(A,i.floating)||Au(A,i.domReference)||W)return;const q=m?Ha(m.nodesRef.current,V):[];if(q.length>0){let Y=!0;if(q.forEach(N=>{var G;if((G=N.context)!=null&&G.open&&!N.context.dataRef.current.__outsidePressBubbles){Y=!1;return}}),!Y)return}r(!1,A,"outside-press")}),$=xr(A=>{var B;const T=()=>{var R;F(A),(R=ei(A))==null||R.removeEventListener(u,T)};(B=ei(A))==null||B.addEventListener(u,T)});j.useEffect(()=>{if(!n||!o)return;a.current.__escapeKeyBubbles=w,a.current.__outsidePressBubbles=C;function A(R){r(!1,R,"ancestor-scroll")}const B=yn(i.floating);s&&B.addEventListener("keydown",E?_:D,E),b&&B.addEventListener(u,I?$:F,I);let T=[];return h&&(rt(i.domReference)&&(T=_r(i.domReference)),rt(i.floating)&&(T=T.concat(_r(i.floating))),!rt(i.reference)&&i.reference&&i.reference.contextElement&&(T=T.concat(_r(i.reference.contextElement)))),T=T.filter(R=>{var O;return R!==((O=B.defaultView)==null?void 0:O.visualViewport)}),T.forEach(R=>{R.addEventListener("scroll",A,{passive:!0})}),()=>{s&&B.removeEventListener("keydown",E?_:D,E),b&&B.removeEventListener(u,I?$:F,I),T.forEach(R=>{R.removeEventListener("scroll",A)})}},[a,i,s,b,u,n,r,h,o,w,C,D,E,_,F,I,$]),j.useEffect(()=>{v.current=!1},[b,u]);const P=j.useMemo(()=>({onKeyDown:D,[f5[d]]:A=>{c&&r(!1,A.nativeEvent,"reference-press")}}),[D,r,c,d]),M=j.useMemo(()=>({onKeyDown:D,onMouseDown(){y.current=!0},onMouseUp(){y.current=!0},[h5[u]]:()=>{v.current=!0}}),[D,u]);return j.useMemo(()=>o?{reference:P,floating:M}:{},[o,P,M])}function m5(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=Hd(),a=j.useRef({}),[o]=j.useState(()=>KD()),s=Q0()!=null;if(process.env.NODE_ENV!=="production"){const f=r.reference;f&&!rt(f)&&JD("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[l,u]=j.useState(r.reference),c=xr((f,g,m)=>{a.current.openEvent=f?g:void 0,o.emit("openchange",{open:f,event:g,reason:m,nested:s}),n==null||n(f,g,m)}),d=j.useMemo(()=>({setPositionReference:u}),[]),h=j.useMemo(()=>({reference:l||r.reference||null,floating:r.floating||null,domReference:r.reference}),[l,r.reference,r.floating]);return j.useMemo(()=>({dataRef:a,open:t,onOpenChange:c,elements:h,events:o,floatingId:i,refs:d}),[t,c,h,o,i,d])}function p5(e){e===void 0&&(e={});const{nodeId:t}=e,n=m5({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[a,o]=j.useState(null),[s,l]=j.useState(null),c=(i==null?void 0:i.reference)||a,d=j.useRef(null),h=Wd();zt(()=>{c&&(d.current=c)},[c]);const f=LD({...e,elements:{...i,...s&&{reference:s}}}),g=j.useCallback(y=>{const w=rt(y)?{getBoundingClientRect:()=>y.getBoundingClientRect(),contextElement:y}:y;l(w),f.refs.setReference(w)},[f.refs]),m=j.useCallback(y=>{(rt(y)||y===null)&&(d.current=y,o(y)),(rt(f.refs.reference.current)||f.refs.reference.current===null||y!==null&&!rt(y))&&f.refs.setReference(y)},[f.refs]),p=j.useMemo(()=>({...f.refs,setReference:m,setPositionReference:g,domReference:d}),[f.refs,m,g]),b=j.useMemo(()=>({...f.elements,domReference:c}),[f.elements,c]),v=j.useMemo(()=>({...f,...r,refs:p,elements:b,nodeId:t}),[f,p,b,t,r]);return zt(()=>{r.dataRef.current.floatingContext=v;const y=h==null?void 0:h.nodesRef.current.find(w=>w.id===t);y&&(y.context=v)}),j.useMemo(()=>({...f,context:v,refs:p,elements:b}),[f,p,b,v])}const rg="active",ig="selected";function ku(e,t,n){const r=new Map,i=n==="item";let a=e;if(i&&e){const{[rg]:o,[ig]:s,...l}=e;a=l}return{...n==="floating"&&{tabIndex:-1},...a,...t.map(o=>{const s=o?o[n]:null;return typeof s=="function"?e?s(e):null:s}).concat(e).reduce((o,s)=>(s&&Object.entries(s).forEach(l=>{let[u,c]=l;if(!(i&&[rg,ig].includes(u)))if(u.indexOf("on")===0){if(r.has(u)||r.set(u,[]),typeof c=="function"){var d;(d=r.get(u))==null||d.push(c),o[u]=function(){for(var h,f=arguments.length,g=new Array(f),m=0;m<f;m++)g[m]=arguments[m];return(h=r.get(u))==null?void 0:h.map(p=>p(...g)).find(p=>p!==void 0)}}}else o[u]=c}),o),{})}}function b5(e){e===void 0&&(e=[]);const t=e.map(s=>s==null?void 0:s.reference),n=e.map(s=>s==null?void 0:s.floating),r=e.map(s=>s==null?void 0:s.item),i=j.useCallback(s=>ku(s,e,"reference"),t),a=j.useCallback(s=>ku(s,e,"floating"),n),o=j.useCallback(s=>ku(s,e,"item"),r);return j.useMemo(()=>({getReferenceProps:i,getFloatingProps:a,getItemProps:o}),[i,a,o])}const v5=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function y5(e,t){var n;t===void 0&&(t={});const{open:r,floatingId:i}=e,{enabled:a=!0,role:o="dialog"}=t,s=(n=v5.get(o))!=null?n:o,l=Hd(),c=Q0()!=null,d=j.useMemo(()=>s==="tooltip"||o==="label"?{["aria-"+(o==="label"?"labelledby":"describedby")]:r?i:void 0}:{"aria-expanded":r?"true":"false","aria-haspopup":s==="alertdialog"?"dialog":s,"aria-controls":r?i:void 0,...s==="listbox"&&{role:"combobox"},...s==="menu"&&{id:l},...s==="menu"&&c&&{role:"menuitem"},...o==="select"&&{"aria-autocomplete":"none"},...o==="combobox"&&{"aria-autocomplete":"list"}},[s,i,c,r,l,o]),h=j.useMemo(()=>{const g={id:i,...s&&{role:s}};return s==="tooltip"||o==="label"?g:{...g,...s==="menu"&&{"aria-labelledby":l}}},[s,i,l,o]),f=j.useCallback(g=>{let{active:m,selected:p}=g;const b={role:"option",...m&&{id:i+"-option"}};switch(o){case"select":return{...b,"aria-selected":m&&p};case"combobox":return{...b,...m&&{"aria-selected":!0}}}return{}},[i,o]);return j.useMemo(()=>a?{reference:d,floating:h,item:f}:{},[a,d,h,f])}const ag=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(t,n)=>(n?"-":"")+t.toLowerCase());function Pi(e,t){return typeof e=="function"?e(t):e}function x5(e,t){const[n,r]=j.useState(e);return e&&!n&&r(!0),j.useEffect(()=>{if(!e&&n){const i=setTimeout(()=>r(!1),t);return()=>clearTimeout(i)}},[e,n,t]),n}function C5(e,t){t===void 0&&(t={});const{open:n,elements:{floating:r}}=e,{duration:i=250}=t,o=(typeof i=="number"?i:i.close)||0,[s,l]=j.useState("unmounted"),u=x5(n,o);return!u&&s==="close"&&l("unmounted"),zt(()=>{if(r){if(n){l("initial");const c=requestAnimationFrame(()=>{l("open")});return()=>{cancelAnimationFrame(c)}}l("close")}},[n,r]),{isMounted:u,status:s}}function w5(e,t){t===void 0&&(t={});const{initial:n={opacity:0},open:r,close:i,common:a,duration:o=250}=t,s=e.placement,l=s.split("-")[0],u=j.useMemo(()=>({side:l,placement:s}),[l,s]),c=typeof o=="number",d=(c?o:o.open)||0,h=(c?o:o.close)||0,[f,g]=j.useState(()=>({...Pi(a,u),...Pi(n,u)})),{isMounted:m,status:p}=C5(e,{duration:o}),b=ri(n),v=ri(r),y=ri(i),w=ri(a);return zt(()=>{const C=Pi(b.current,u),E=Pi(y.current,u),I=Pi(w.current,u),D=Pi(v.current,u)||Object.keys(C).reduce((_,F)=>(_[F]="",_),{});if(p==="initial"&&g(_=>({transitionProperty:_.transitionProperty,...I,...C})),p==="open"&&g({transitionProperty:Object.keys(D).map(ag).join(","),transitionDuration:d+"ms",...I,...D}),p==="close"){const _=E||C;g({transitionProperty:Object.keys(_).map(ag).join(","),transitionDuration:h+"ms",...I,..._})}},[h,y,b,v,w,d,p,u]),{isMounted:m,styles:f}}const D5="_popover_7cinv_1",S5={popover:D5},Ci=x.forwardRef((e,t)=>{const{children:n,className:r,offset:i=10,isShow:a,anchorEl:o,useAutoPlacement:s=!1,flipOptions:l,autoPlacementOptions:u,zIndex:c=10,width:d,styleInnerPopover:h={},floatingOptions:f={},...g}=e,[m,p]=x.useState(!1),{refs:b,floatingStyles:v,context:y}=p5({open:m,onOpenChange:p,middleware:[jD(i),s?zD(u):WD(l),HD()],whileElementsMounted:U0,...f}),w=d5(y),C=g5(y),E=y5(y),{getReferenceProps:I,getFloatingProps:D}=b5([w,C,E]),{styles:_,isMounted:F}=w5(y),$=M=>{b.setReference(M.currentTarget),p(A=>!A)};x.useEffect(()=>{a&&o?$({currentTarget:o}):a||p(!1)},[a,o]),x.useImperativeHandle(t,()=>({show:m,setShow:p,handlerShow:$,getReferenceProps:I}),[m]);const P=()=>{let M={...v,..._,...h,zIndex:c};return d&&(M={...M,width:d}),M};return S.jsx(S.Fragment,{children:F&&m&&S.jsx(l5,{children:S.jsx(c5,{context:y,modal:!1,children:S.jsx("div",{ref:b.setFloating,style:P(),...D(),className:`${S5.popover} ${r??""}`,...g,children:n})})})})});Ci.displayName="Popover";const E5="_container_1rs5e_1",I5="_input_1rs5e_7",_5="_label_1rs5e_33",$5="_error_1rs5e_40",Fn={container:E5,"container-input":"_container-input_1rs5e_4",input:I5,label:_5,error:$5,"isset-icon":"_isset-icon_1rs5e_51","end-icon":"_end-icon_1rs5e_58","label-error":"_label-error_1rs5e_61"},ab=x.forwardRef((e,t)=>{var p;const{isRequired:n,classNameContainer:r,classNameLabelError:i,className:a,name:o,id:s,label:l,type:u="text",endIcon:c,error:d,sizeInput:h="reguler",...f}=e,g={size:{reguler:Fn.input,small:Fn.input},variant:{}},m=()=>typeof c=="function"||x.isValidElement(c);return S.jsxs("div",{className:`${Fn.container} ${r??""}`,children:[S.jsxs("div",{className:Fn["container-input"],children:[S.jsx("input",{id:s??o,className:`${(p=g.size)==null?void 0:p[h]} ${d?Fn.error:""}
|
44
|
+
*/var Yw=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],ll=Yw.join(","),L0=typeof Element>"u",ia=L0?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,ul=!L0&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e==null?void 0:e.ownerDocument},cl=function e(t,n){var r;n===void 0&&(n=!0);var i=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"inert"),a=i===""||i==="true",o=a||n&&t&&e(t.parentNode);return o},Uw=function(t){var n,r=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"contenteditable");return r===""||r==="true"},Jw=function(t,n,r){if(cl(t))return[];var i=Array.prototype.slice.apply(t.querySelectorAll(ll));return n&&ia.call(t,ll)&&i.unshift(t),i=i.filter(r),i},Kw=function e(t,n,r){for(var i=[],a=Array.from(t);a.length;){var o=a.shift();if(!cl(o,!1))if(o.tagName==="SLOT"){var s=o.assignedElements(),l=s.length?s:o.children,u=e(l,!0,r);r.flatten?i.push.apply(i,u):i.push({scopeParent:o,candidates:u})}else{var c=ia.call(o,ll);c&&r.filter(o)&&(n||!t.includes(o))&&i.push(o);var d=o.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(o),h=!cl(d,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(o));if(d&&h){var f=e(d===!0?o.children:d.children,!0,r);r.flatten?i.push.apply(i,f):i.push({scopeParent:o,candidates:f})}else a.unshift.apply(a,o.children)}}return i},j0=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},H0=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||Uw(t))&&!j0(t)?0:t.tabIndex},Qw=function(t,n){var r=H0(t);return r<0&&n&&!j0(t)?0:r},qw=function(t,n){return t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex},W0=function(t){return t.tagName==="INPUT"},eD=function(t){return W0(t)&&t.type==="hidden"},tD=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(r){return r.tagName==="SUMMARY"});return n},nD=function(t,n){for(var r=0;r<t.length;r++)if(t[r].checked&&t[r].form===n)return t[r]},rD=function(t){if(!t.name)return!0;var n=t.form||ul(t),r=function(s){return n.querySelectorAll('input[type="radio"][name="'+s+'"]')},i;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")i=r(window.CSS.escape(t.name));else try{i=r(t.name)}catch(o){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",o.message),!1}var a=nD(i,t.form);return!a||a===t},iD=function(t){return W0(t)&&t.type==="radio"},aD=function(t){return iD(t)&&!rD(t)},oD=function(t){var n,r=t&&ul(t),i=(n=r)===null||n===void 0?void 0:n.host,a=!1;if(r&&r!==t){var o,s,l;for(a=!!((o=i)!==null&&o!==void 0&&(s=o.ownerDocument)!==null&&s!==void 0&&s.contains(i)||t!=null&&(l=t.ownerDocument)!==null&&l!==void 0&&l.contains(t));!a&&i;){var u,c,d;r=ul(i),i=(u=r)===null||u===void 0?void 0:u.host,a=!!((c=i)!==null&&c!==void 0&&(d=c.ownerDocument)!==null&&d!==void 0&&d.contains(i))}}return a},Lh=function(t){var n=t.getBoundingClientRect(),r=n.width,i=n.height;return r===0&&i===0},sD=function(t,n){var r=n.displayCheck,i=n.getShadowRoot;if(getComputedStyle(t).visibility==="hidden")return!0;var a=ia.call(t,"details>summary:first-of-type"),o=a?t.parentElement:t;if(ia.call(o,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="legacy-full"){if(typeof i=="function"){for(var s=t;t;){var l=t.parentElement,u=ul(t);if(l&&!l.shadowRoot&&i(l)===!0)return Lh(t);t.assignedSlot?t=t.assignedSlot:!l&&u!==t.ownerDocument?t=u.host:t=l}t=s}if(oD(t))return!t.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return Lh(t);return!1},lD=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var n=t.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var r=0;r<n.children.length;r++){var i=n.children.item(r);if(i.tagName==="LEGEND")return ia.call(n,"fieldset[disabled] *")?!0:!i.contains(t)}return!0}n=n.parentElement}return!1},uD=function(t,n){return!(n.disabled||cl(n)||eD(n)||sD(n,t)||tD(n)||lD(n))},Tc=function(t,n){return!(aD(n)||H0(n)<0||!uD(t,n))},cD=function(t){var n=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},dD=function e(t){var n=[],r=[];return t.forEach(function(i,a){var o=!!i.scopeParent,s=o?i.scopeParent:i,l=Qw(s,o),u=o?e(i.candidates):s;l===0?o?n.push.apply(n,u):n.push(s):r.push({documentOrder:a,tabIndex:l,item:i,isScope:o,content:u})}),r.sort(qw).reduce(function(i,a){return a.isScope?i.push.apply(i,a.content):i.push(a.content),i},[]).concat(n)},eu=function(t,n){n=n||{};var r;return n.getShadowRoot?r=Kw([t],n.includeContainer,{filter:Tc.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:cD}):r=Jw(t,n.includeContainer,Tc.bind(null,n)),dD(r)},fD=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return ia.call(t,ll)===!1?!1:Tc(n,t)};function jh(e,t,n){let{reference:r,floating:i}=e;const a=ra(t),o=O0(t),s=V0(o),l=fr(t),u=a==="y",c=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,h=r[s]/2-i[s]/2;let f;switch(l){case"top":f={x:c,y:r.y-i.height};break;case"bottom":f={x:c,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:d};break;case"left":f={x:r.x-i.width,y:d};break;default:f={x:r.x,y:r.y}}switch(ur(t)){case"start":f[o]-=h*(n&&u?-1:1);break;case"end":f[o]+=h*(n&&u?-1:1);break}return f}const hD=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:a=[],platform:o}=n,s=a.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(t));let u=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:d}=jh(u,r,l),h=r,f={},g=0;for(let m=0;m<s.length;m++){const{name:p,fn:b}=s[m],{x:v,y,data:w,reset:C}=await b({x:c,y:d,initialPlacement:r,placement:h,strategy:i,middlewareData:f,rects:u,platform:o,elements:{reference:e,floating:t}});c=v??c,d=y??d,f={...f,[p]:{...f[p],...w}},C&&g<=50&&(g++,typeof C=="object"&&(C.placement&&(h=C.placement),C.rects&&(u=C.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):C.rects),{x:c,y:d}=jh(u,h,l)),m=-1)}return{x:c,y:d,placement:h,strategy:i,middlewareData:f}};async function Ld(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:a,rects:o,elements:s,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:h=!1,padding:f=0}=Mo(t,e),g=Xw(f),p=s[h?d==="floating"?"reference":"floating":d],b=sl(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(p)))==null||n?p:p.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:u,rootBoundary:c,strategy:l})),v=d==="floating"?{x:r,y:i,width:o.floating.width,height:o.floating.height}:o.reference,y=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),w=await(a.isElement==null?void 0:a.isElement(y))?await(a.getScale==null?void 0:a.getScale(y))||{x:1,y:1}:{x:1,y:1},C=sl(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:y,strategy:l}):v);return{top:(b.top-C.top+g.top)/w.y,bottom:(C.bottom-b.bottom+g.bottom)/w.y,left:(b.left-C.left+g.left)/w.x,right:(C.right-b.right+g.right)/w.x}}function gD(e,t,n){return(e?[...n.filter(i=>ur(i)===e),...n.filter(i=>ur(i)!==e)]:n.filter(i=>fr(i)===i)).filter(i=>e?ur(i)===e||(t?al(i)!==i:!1):!0)}const mD=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,r,i;const{rects:a,middlewareData:o,placement:s,platform:l,elements:u}=t,{crossAxis:c=!1,alignment:d,allowedPlacements:h=Oh,autoAlignment:f=!0,...g}=Mo(e,t),m=d!==void 0||h===Oh?gD(d||null,f,h):h,p=await Ld(t,g),b=((n=o.autoPlacement)==null?void 0:n.index)||0,v=m[b];if(v==null)return{};const y=N0(v,a,await(l.isRTL==null?void 0:l.isRTL(u.floating)));if(s!==v)return{reset:{placement:m[0]}};const w=[p[fr(v)],p[y[0]],p[y[1]]],C=[...((r=o.autoPlacement)==null?void 0:r.overflows)||[],{placement:v,overflows:w}],E=m[b+1];if(E)return{data:{index:b+1,overflows:C},reset:{placement:E}};const I=C.map(F=>{const $=ur(F.placement);return[F.placement,$&&c?F.overflows.slice(0,2).reduce((P,k)=>P+k,0):F.overflows[0],F.overflows]}).sort((F,$)=>F[1]-$[1]),_=((i=I.filter(F=>F[2].slice(0,ur(F[0])?2:3).every($=>$<=0))[0])==null?void 0:i[0])||I[0][0];return _!==s?{data:{index:b+1,overflows:C},reset:{placement:_}}:{}}}},pD=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:a,rects:o,initialPlacement:s,platform:l,elements:u}=t,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:m=!0,...p}=Mo(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const b=fr(i),v=ra(s),y=fr(s)===s,w=await(l.isRTL==null?void 0:l.isRTL(u.floating)),C=h||(y||!m?[ol(s)]:Ww(s)),E=g!=="none";!h&&E&&C.push(...Gw(s,m,g,w));const I=[s,...C],D=await Ld(t,p),_=[];let F=((r=a.flip)==null?void 0:r.overflows)||[];if(c&&_.push(D[b]),d){const A=N0(i,o,w);_.push(D[A[0]],D[A[1]])}if(F=[...F,{placement:i,overflows:_}],!_.every(A=>A<=0)){var $,P;const A=((($=a.flip)==null?void 0:$.index)||0)+1,B=I[A];if(B)return{data:{index:A,overflows:F},reset:{placement:B}};let T=(P=F.filter(R=>R.overflows[0]<=0).sort((R,O)=>R.overflows[1]-O.overflows[1])[0])==null?void 0:P.placement;if(!T)switch(f){case"bestFit":{var k;const R=(k=F.filter(O=>{if(E){const H=ra(O.placement);return H===v||H==="y"}return!0}).map(O=>[O.placement,O.overflows.filter(H=>H>0).reduce((H,L)=>H+L,0)]).sort((O,H)=>O[1]-H[1])[0])==null?void 0:k[0];R&&(T=R);break}case"initialPlacement":T=s;break}if(i!==T)return{reset:{placement:T}}}return{}}}};async function bD(e,t){const{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=fr(n),s=ur(n),l=ra(n)==="y",u=["left","top"].includes(o)?-1:1,c=a&&l?-1:1,d=Mo(t,e);let{mainAxis:h,crossAxis:f,alignmentAxis:g}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&typeof g=="number"&&(f=s==="end"?g*-1:g),l?{x:f*c,y:h*u}:{x:h*u,y:f*c}}const vD=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:a,placement:o,middlewareData:s}=t,l=await bD(t,e);return o===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:a+l.y,data:{...l,placement:o}}}}},yD=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:a=!0,crossAxis:o=!1,limiter:s={fn:p=>{let{x:b,y:v}=p;return{x:b,y:v}}},...l}=Mo(e,t),u={x:n,y:r},c=await Ld(t,l),d=ra(fr(i)),h=B0(d);let f=u[h],g=u[d];if(a){const p=h==="y"?"top":"left",b=h==="y"?"bottom":"right",v=f+c[p],y=f-c[b];f=Nh(v,f,y)}if(o){const p=d==="y"?"top":"left",b=d==="y"?"bottom":"right",v=g+c[p],y=g-c[b];g=Nh(v,g,y)}const m=s.fn({...t,[h]:f,[d]:g});return{...m,data:{x:m.x-n,y:m.y-r}}}}};function z0(e){const t=bn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=vt(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=il(n)!==a||il(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function jd(e){return rt(e)?e:e.contextElement}function Xi(e){const t=jd(e);if(!vt(t))return Ar(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:a}=z0(t);let o=(a?il(n.width):n.width)/r,s=(a?il(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const xD=Ar(0);function G0(e){const t=tn(e);return!Nd()||!t.visualViewport?xD:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function CD(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==tn(e)?!1:t}function fi(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),a=jd(e);let o=Ar(1);t&&(r?rt(r)&&(o=Xi(r)):o=Xi(e));const s=CD(a,n,r)?G0(a):Ar(0);let l=(i.left+s.x)/o.x,u=(i.top+s.y)/o.y,c=i.width/o.x,d=i.height/o.y;if(a){const h=tn(a),f=r&&rt(r)?tn(r):r;let g=h,m=g.frameElement;for(;m&&r&&f!==g;){const p=Xi(m),b=m.getBoundingClientRect(),v=bn(m),y=b.left+(m.clientLeft+parseFloat(v.paddingLeft))*p.x,w=b.top+(m.clientTop+parseFloat(v.paddingTop))*p.y;l*=p.x,u*=p.y,c*=p.x,d*=p.y,l+=y,u+=w,g=tn(m),m=g.frameElement}}return sl({width:c,height:d,x:l,y:u})}function wD(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const a=i==="fixed",o=hr(r),s=t?Ql(t.floating):!1;if(r===o||s&&a)return n;let l={scrollLeft:0,scrollTop:0},u=Ar(1);const c=Ar(0),d=vt(r);if((d||!d&&!a)&&((Mr(r)!=="body"||ko(o))&&(l=ql(r)),vt(r))){const h=fi(r);u=Xi(r),c.x=h.x+r.clientLeft,c.y=h.y+r.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+c.x,y:n.y*u.y-l.scrollTop*u.y+c.y}}function DD(e){return Array.from(e.getClientRects())}function Z0(e){return fi(hr(e)).left+ql(e).scrollLeft}function SD(e){const t=hr(e),n=ql(e),r=e.ownerDocument.body,i=li(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=li(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+Z0(e);const s=-n.scrollTop;return bn(r).direction==="rtl"&&(o+=li(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}function ED(e,t){const n=tn(e),r=hr(e),i=n.visualViewport;let a=r.clientWidth,o=r.clientHeight,s=0,l=0;if(i){a=i.width,o=i.height;const u=Nd();(!u||u&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:a,height:o,x:s,y:l}}function ID(e,t){const n=fi(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=vt(e)?Xi(e):Ar(1),o=e.clientWidth*a.x,s=e.clientHeight*a.y,l=i*a.x,u=r*a.y;return{width:o,height:s,x:l,y:u}}function Hh(e,t,n){let r;if(t==="viewport")r=ED(e,n);else if(t==="document")r=SD(hr(e));else if(rt(t))r=ID(t,n);else{const i=G0(e);r={...t,x:t.x-i.x,y:t.y-i.y}}return sl(r)}function X0(e,t){const n=dr(e);return n===t||!rt(n)||Rr(n)?!1:bn(n).position==="fixed"||X0(n,t)}function _D(e,t){const n=t.get(e);if(n)return n;let r=_r(e,[],!1).filter(s=>rt(s)&&Mr(s)!=="body"),i=null;const a=bn(e).position==="fixed";let o=a?dr(e):e;for(;rt(o)&&!Rr(o);){const s=bn(o),l=Od(o);!l&&s.position==="fixed"&&(i=null),(a?!l&&!i:!l&&s.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||ko(o)&&!l&&X0(e,o))?r=r.filter(c=>c!==o):i=s,o=dr(o)}return t.set(e,r),r}function $D(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const o=[...n==="clippingAncestors"?Ql(t)?[]:_D(t,this._c):[].concat(n),r],s=o[0],l=o.reduce((u,c)=>{const d=Hh(t,c,i);return u.top=li(d.top,u.top),u.right=rl(d.right,u.right),u.bottom=rl(d.bottom,u.bottom),u.left=li(d.left,u.left),u},Hh(t,s,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function RD(e){const{width:t,height:n}=z0(e);return{width:t,height:n}}function AD(e,t,n){const r=vt(t),i=hr(t),a=n==="fixed",o=fi(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const l=Ar(0);if(r||!r&&!a)if((Mr(t)!=="body"||ko(i))&&(s=ql(t)),r){const d=fi(t,!0,a,t);l.x=d.x+t.clientLeft,l.y=d.y+t.clientTop}else i&&(l.x=Z0(i));const u=o.left+s.scrollLeft-l.x,c=o.top+s.scrollTop-l.y;return{x:u,y:c,width:o.width,height:o.height}}function Pu(e){return bn(e).position==="static"}function Wh(e,t){return!vt(e)||bn(e).position==="fixed"?null:t?t(e):e.offsetParent}function Y0(e,t){const n=tn(e);if(Ql(e))return n;if(!vt(e)){let i=dr(e);for(;i&&!Rr(i);){if(rt(i)&&!Pu(i))return i;i=dr(i)}return n}let r=Wh(e,t);for(;r&&Rw(r)&&Pu(r);)r=Wh(r,t);return r&&Rr(r)&&Pu(r)&&!Od(r)?n:r||Aw(e)||n}const FD=async function(e){const t=this.getOffsetParent||Y0,n=this.getDimensions,r=await n(e.floating);return{reference:AD(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function PD(e){return bn(e).direction==="rtl"}const TD={convertOffsetParentRelativeRectToViewportRelativeRect:wD,getDocumentElement:hr,getClippingRect:$D,getOffsetParent:Y0,getElementRects:FD,getClientRects:DD,getDimensions:RD,getScale:Xi,isElement:rt,isRTL:PD};function kD(e,t){let n=null,r;const i=hr(e);function a(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function o(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),a();const{left:u,top:c,width:d,height:h}=e.getBoundingClientRect();if(s||t(),!d||!h)return;const f=ts(c),g=ts(i.clientWidth-(u+d)),m=ts(i.clientHeight-(c+h)),p=ts(u),v={rootMargin:-f+"px "+-g+"px "+-m+"px "+-p+"px",threshold:li(0,rl(1,l))||1};let y=!0;function w(C){const E=C[0].intersectionRatio;if(E!==l){if(!y)return o();E?o(!1,E):r=setTimeout(()=>{o(!1,1e-7)},1e3)}y=!1}try{n=new IntersectionObserver(w,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(w,v)}n.observe(e)}return o(!0),a}function U0(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=jd(e),c=i||a?[...u?_r(u):[],..._r(t)]:[];c.forEach(b=>{i&&b.addEventListener("scroll",n,{passive:!0}),a&&b.addEventListener("resize",n)});const d=u&&s?kD(u,n):null;let h=-1,f=null;o&&(f=new ResizeObserver(b=>{let[v]=b;v&&v.target===u&&f&&(f.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var y;(y=f)==null||y.observe(t)})),n()}),u&&!l&&f.observe(u),f.observe(t));let g,m=l?fi(e):null;l&&p();function p(){const b=fi(e);m&&(b.x!==m.x||b.y!==m.y||b.width!==m.width||b.height!==m.height)&&n(),m=b,g=requestAnimationFrame(p)}return n(),()=>{var b;c.forEach(v=>{i&&v.removeEventListener("scroll",n),a&&v.removeEventListener("resize",n)}),d==null||d(),(b=f)==null||b.disconnect(),f=null,l&&cancelAnimationFrame(g)}}const MD=vD,BD=mD,VD=yD,OD=pD,ND=(e,t,n)=>{const r=new Map,i={platform:TD,...n},a={...i.platform,_c:r};return hD(e,t,{...i,platform:a})};var Os=typeof document<"u"?x.useLayoutEffect:x.useEffect;function dl(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!dl(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const a=i[r];if(!(a==="_owner"&&e.$$typeof)&&!dl(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function J0(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function zh(e,t){const n=J0(e);return Math.round(t*n)/n}function Gh(e){const t=j.useRef(e);return Os(()=>{t.current=e}),t}function LD(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:l,open:u}=e,[c,d]=j.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,f]=j.useState(r);dl(h,r)||f(r);const[g,m]=j.useState(null),[p,b]=j.useState(null),v=j.useCallback(R=>{R!==E.current&&(E.current=R,m(R))},[]),y=j.useCallback(R=>{R!==I.current&&(I.current=R,b(R))},[]),w=a||g,C=o||p,E=j.useRef(null),I=j.useRef(null),D=j.useRef(c),_=l!=null,F=Gh(l),$=Gh(i),P=j.useCallback(()=>{if(!E.current||!I.current)return;const R={placement:t,strategy:n,middleware:h};$.current&&(R.platform=$.current),ND(E.current,I.current,R).then(O=>{const H={...O,isPositioned:!0};k.current&&!dl(D.current,H)&&(D.current=H,m0.flushSync(()=>{d(H)}))})},[h,t,n,$]);Os(()=>{u===!1&&D.current.isPositioned&&(D.current.isPositioned=!1,d(R=>({...R,isPositioned:!1})))},[u]);const k=j.useRef(!1);Os(()=>(k.current=!0,()=>{k.current=!1}),[]),Os(()=>{if(w&&(E.current=w),C&&(I.current=C),w&&C){if(F.current)return F.current(w,C,P);P()}},[w,C,P,F,_]);const A=j.useMemo(()=>({reference:E,floating:I,setReference:v,setFloating:y}),[v,y]),B=j.useMemo(()=>({reference:w,floating:C}),[w,C]),T=j.useMemo(()=>{const R={position:n,left:0,top:0};if(!B.floating)return R;const O=zh(B.floating,c.x),H=zh(B.floating,c.y);return s?{...R,transform:"translate("+O+"px, "+H+"px)",...J0(B.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:O,top:H}},[n,s,B.floating,c.x,c.y]);return j.useMemo(()=>({...c,update:P,refs:A,elements:B,floatingStyles:T}),[c,P,A,B,T])}const jD=(e,t)=>({...MD(e),options:[e,t]}),HD=(e,t)=>({...VD(e),options:[e,t]}),WD=(e,t)=>({...OD(e),options:[e,t]}),zD=(e,t)=>({...BD(e),options:[e,t]}),K0={...j},GD=K0.useInsertionEffect,ZD=GD||(e=>e());function xr(e){const t=j.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return ZD(()=>{t.current=e}),j.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.current==null?void 0:t.current(...r)},[])}let Zh=0;function Hr(e,t){t===void 0&&(t={});const{preventScroll:n=!1,cancelPrevious:r=!0,sync:i=!1}=t;r&&cancelAnimationFrame(Zh);const a=()=>e==null?void 0:e.focus({preventScroll:n});i?a():Zh=requestAnimationFrame(a)}var zt=typeof document<"u"?x.useLayoutEffect:x.useEffect;function fl(){return fl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fl.apply(this,arguments)}let Xh=!1,XD=0;const Yh=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+XD++;function YD(){const[e,t]=j.useState(()=>Xh?Yh():void 0);return zt(()=>{e==null&&t(Yh())},[]),j.useEffect(()=>{Xh=!0},[]),e}const UD=K0.useId,Hd=UD||YD;let kc;process.env.NODE_ENV!=="production"&&(kc=new Set);function JD(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const i="Floating UI: "+n.join(" ");if(!((e=kc)!=null&&e.has(i))){var a;(a=kc)==null||a.add(i),console.error(i)}}function KD(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(i=>i(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,((r=e.get(t))==null?void 0:r.filter(i=>i!==n))||[])}}}const QD=j.createContext(null),qD=j.createContext(null),Q0=()=>{var e;return((e=j.useContext(QD))==null?void 0:e.id)||null},Wd=()=>j.useContext(qD);function no(e){return"data-floating-ui-"+e}function ri(e){const t=x.useRef(e);return zt(()=>{t.current=e}),t}function e5(e,t){var n;let r=[],i=(n=e.find(a=>a.id===t))==null?void 0:n.parentId;for(;i;){const a=e.find(o=>o.id===i);i=a==null?void 0:a.parentId,a&&(r=r.concat(a))}return r}function Ha(e,t){let n=e.filter(i=>{var a;return i.parentId===t&&((a=i.context)==null?void 0:a.open)}),r=n;for(;r.length;)r=e.filter(i=>{var a;return(a=r)==null?void 0:a.some(o=>{var s;return i.parentId===o.id&&((s=i.context)==null?void 0:s.open)})}),n=n.concat(r);return n}let Fi=new WeakMap,ns=new WeakSet,rs={},Tu=0;const t5=()=>typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype,q0=e=>e&&(e.host||q0(e.parentNode)),n5=(e,t)=>t.map(n=>{if(e.contains(n))return n;const r=q0(n);return e.contains(r)?r:null}).filter(n=>n!=null);function r5(e,t,n,r){const i="data-floating-ui-inert",a=r?"inert":n?"aria-hidden":null,o=n5(t,e),s=new Set,l=new Set(o),u=[];rs[i]||(rs[i]=new WeakMap);const c=rs[i];o.forEach(d),h(t),s.clear();function d(f){!f||s.has(f)||(s.add(f),f.parentNode&&d(f.parentNode))}function h(f){!f||l.has(f)||[].forEach.call(f.children,g=>{if(Mr(g)!=="script")if(s.has(g))h(g);else{const m=a?g.getAttribute(a):null,p=m!==null&&m!=="false",b=(Fi.get(g)||0)+1,v=(c.get(g)||0)+1;Fi.set(g,b),c.set(g,v),u.push(g),b===1&&p&&ns.add(g),v===1&&g.setAttribute(i,""),!p&&a&&g.setAttribute(a,"true")}})}return Tu++,()=>{u.forEach(f=>{const g=(Fi.get(f)||0)-1,m=(c.get(f)||0)-1;Fi.set(f,g),c.set(f,m),g||(!ns.has(f)&&a&&f.removeAttribute(a),ns.delete(f)),m||f.removeAttribute(i)}),Tu--,Tu||(Fi=new WeakMap,Fi=new WeakMap,ns=new WeakSet,rs={})}}function Uh(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=yn(e[0]).body;return r5(e.concat(Array.from(r.querySelectorAll("[aria-live]"))),r,t,n)}const ro=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function eb(e,t){const n=eu(e,ro());t==="prev"&&n.reverse();const r=n.indexOf(Jr(yn(e)));return n.slice(r+1)[0]}function tb(){return eb(document.body,"next")}function nb(){return eb(document.body,"prev")}function Wa(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!Jt(n,r)}function i5(e){eu(e,ro()).forEach(n=>{n.dataset.tabindex=n.getAttribute("tabindex")||"",n.setAttribute("tabindex","-1")})}function a5(e){e.querySelectorAll("[data-tabindex]").forEach(n=>{const r=n.dataset.tabindex;delete n.dataset.tabindex,r?n.setAttribute("tabindex",r):n.removeAttribute("tabindex")})}const zd={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};let o5;function Jh(e){e.key==="Tab"&&(e.target,clearTimeout(o5))}const hl=j.forwardRef(function(t,n){const[r,i]=j.useState();zt(()=>(kw()&&i("button"),document.addEventListener("keydown",Jh),()=>{document.removeEventListener("keydown",Jh)}),[]);const a={ref:n,tabIndex:0,role:r,"aria-hidden":r?void 0:!0,[no("focus-guard")]:"",style:zd};return j.createElement("span",fl({},t,a))}),rb=j.createContext(null),Kh=no("portal");function s5(e){e===void 0&&(e={});const{id:t,root:n}=e,r=Hd(),i=ib(),[a,o]=j.useState(null),s=j.useRef(null);return zt(()=>()=>{a==null||a.remove(),queueMicrotask(()=>{s.current=null})},[a]),zt(()=>{if(!r||s.current)return;const l=t?document.getElementById(t):null;if(!l)return;const u=document.createElement("div");u.id=r,u.setAttribute(Kh,""),l.appendChild(u),s.current=u,o(u)},[t,r]),zt(()=>{if(!r||s.current)return;let l=n||(i==null?void 0:i.portalNode);l&&!rt(l)&&(l=l.current),l=l||document.body;let u=null;t&&(u=document.createElement("div"),u.id=t,l.appendChild(u));const c=document.createElement("div");c.id=r,c.setAttribute(Kh,""),l=u||l,l.appendChild(c),s.current=c,o(c)},[t,n,r,i]),a}function l5(e){const{children:t,id:n,root:r=null,preserveTabOrder:i=!0}=e,a=s5({id:n,root:r}),[o,s]=j.useState(null),l=j.useRef(null),u=j.useRef(null),c=j.useRef(null),d=j.useRef(null),h=!!o&&!o.modal&&o.open&&i&&!!(r||a);return j.useEffect(()=>{if(!a||!i||o!=null&&o.modal)return;function f(g){a&&Wa(g)&&(g.type==="focusin"?a5:i5)(a)}return a.addEventListener("focusin",f,!0),a.addEventListener("focusout",f,!0),()=>{a.removeEventListener("focusin",f,!0),a.removeEventListener("focusout",f,!0)}},[a,i,o==null?void 0:o.modal]),j.createElement(rb.Provider,{value:j.useMemo(()=>({preserveTabOrder:i,beforeOutsideRef:l,afterOutsideRef:u,beforeInsideRef:c,afterInsideRef:d,portalNode:a,setFocusManagerState:s}),[i,a])},h&&a&&j.createElement(hl,{"data-type":"outside",ref:l,onFocus:f=>{if(Wa(f,a)){var g;(g=c.current)==null||g.focus()}else{const m=nb()||(o==null?void 0:o.refs.domReference.current);m==null||m.focus()}}}),h&&a&&j.createElement("span",{"aria-owns":a.id,style:zd}),a&&m0.createPortal(t,a),h&&a&&j.createElement(hl,{"data-type":"outside",ref:u,onFocus:f=>{if(Wa(f,a)){var g;(g=d.current)==null||g.focus()}else{const m=tb()||(o==null?void 0:o.refs.domReference.current);m==null||m.focus(),o!=null&&o.closeOnFocusOut&&(o==null||o.onOpenChange(!1,f.nativeEvent))}}}))}const ib=()=>j.useContext(rb),Qh=20;let Kr=[];function ku(e){Kr=Kr.filter(n=>n.isConnected);let t=e;if(!(!t||Mr(t)==="body")){if(!fD(t,ro())){const n=eu(t,ro())[0];n&&(t=n)}Kr.push(t),Kr.length>Qh&&(Kr=Kr.slice(-Qh))}}function qh(){return Kr.slice().reverse().find(e=>e.isConnected)}const u5=j.forwardRef(function(t,n){return j.createElement("button",fl({},t,{type:"button",ref:n,tabIndex:-1,style:zd}))});function c5(e){const{context:t,children:n,disabled:r=!1,order:i=["content"],guards:a=!0,initialFocus:o=0,returnFocus:s=!0,restoreFocus:l=!1,modal:u=!0,visuallyHiddenDismiss:c=!1,closeOnFocusOut:d=!0}=e,{open:h,refs:f,nodeId:g,onOpenChange:m,events:p,dataRef:b,floatingId:v,elements:{domReference:y,floating:w}}=t,C=typeof o=="number"&&o<0,E=Nw(y)&&C,I=t5()?a:!0,D=ri(i),_=ri(o),F=ri(s),$=Wd(),P=ib(),k=j.useRef(null),A=j.useRef(null),B=j.useRef(!1),T=j.useRef(!1),R=j.useRef(-1),O=P!=null,H=w==null?void 0:w.firstElementChild,L=(H==null?void 0:H.id)===v?H:w,Z=xr(function(Y){return Y===void 0&&(Y=L),Y?eu(Y,ro()):[]}),V=xr(Y=>{const N=Z(Y);return D.current.map(G=>y&&G==="reference"?y:L&&G==="floating"?L:N).filter(Boolean).flat()});j.useEffect(()=>{if(r||!u)return;function Y(G){if(G.key==="Tab"){Jt(L,Jr(yn(L)))&&Z().length===0&&!E&&Fu(G);const J=V(),re=ei(G);D.current[0]==="reference"&&re===y&&(Fu(G),G.shiftKey?Hr(J[J.length-1]):Hr(J[1])),D.current[1]==="floating"&&re===L&&G.shiftKey&&(Fu(G),Hr(J[0]))}}const N=yn(L);return N.addEventListener("keydown",Y),()=>{N.removeEventListener("keydown",Y)}},[r,y,L,u,D,E,Z,V]),j.useEffect(()=>{if(r||!w)return;function Y(N){const G=ei(N),re=Z().indexOf(G);re!==-1&&(R.current=re)}return w.addEventListener("focusin",Y),()=>{w.removeEventListener("focusin",Y)}},[r,w,Z]),j.useEffect(()=>{if(r||!d)return;function Y(){T.current=!0,setTimeout(()=>{T.current=!1})}function N(G){const J=G.relatedTarget;queueMicrotask(()=>{const re=!(Jt(y,J)||Jt(w,J)||Jt(J,w)||Jt(P==null?void 0:P.portalNode,J)||J!=null&&J.hasAttribute(no("focus-guard"))||$&&(Ha($.nodesRef.current,g).find(fe=>{var le,z;return Jt((le=fe.context)==null?void 0:le.elements.floating,J)||Jt((z=fe.context)==null?void 0:z.elements.domReference,J)})||e5($.nodesRef.current,g).find(fe=>{var le,z;return((le=fe.context)==null?void 0:le.elements.floating)===J||((z=fe.context)==null?void 0:z.elements.domReference)===J})));if(l&&re&&Jr(yn(L))===yn(L).body){vt(L)&&(L==null||L.focus());const fe=R.current,le=Z(),z=le[fe]||le[le.length-1]||L;vt(z)&&z.focus()}(E||!u)&&J&&re&&!T.current&&J!==qh()&&(B.current=!0,m(!1,G))})}if(w&&vt(y))return y.addEventListener("focusout",N),y.addEventListener("pointerdown",Y),w.addEventListener("focusout",N),()=>{y.removeEventListener("focusout",N),y.removeEventListener("pointerdown",Y),w.removeEventListener("focusout",N)}},[r,y,w,L,u,g,$,P,m,d,l,Z,E]),j.useEffect(()=>{var Y;if(r)return;const N=Array.from((P==null||(Y=P.portalNode)==null?void 0:Y.querySelectorAll("["+no("portal")+"]"))||[]);if(w){const G=[w,...N,k.current,A.current,D.current.includes("reference")||E?y:null].filter(re=>re!=null),J=u||E?Uh(G,I,!I):Uh(G);return()=>{J()}}},[r,y,w,u,D,P,E,I]),zt(()=>{if(r||!vt(L))return;const Y=yn(L),N=Jr(Y);queueMicrotask(()=>{const G=V(L),J=_.current,re=(typeof J=="number"?G[J]:J.current)||L,fe=Jt(L,N);!C&&!fe&&h&&Hr(re,{preventScroll:re===L})})},[r,h,L,C,V,_]),zt(()=>{if(r||!L)return;let Y=!1;const N=yn(L),G=Jr(N);let re=b.current.openEvent;ku(G);function fe(le){let{open:z,reason:Ae,event:ke,nested:Xe}=le;z&&(re=ke),Ae==="escape-key"&&f.domReference.current&&ku(f.domReference.current),Ae==="hover"&&ke.type==="mouseleave"&&(B.current=!0),Ae==="outside-press"&&(Xe?(B.current=!1,Y=!0):B.current=!(Pw(ke)||Tw(ke)))}return p.on("openchange",fe),()=>{p.off("openchange",fe);const le=Jr(N),z=Jt(w,le)||$&&Ha($.nodesRef.current,g).some(Xe=>{var qe;return Jt((qe=Xe.context)==null?void 0:qe.elements.floating,le)});(z||re&&["click","mousedown"].includes(re.type))&&f.domReference.current&&ku(f.domReference.current);const ke=qh();F.current&&!B.current&&vt(ke)&&(!(ke!==le&&le!==N.body)||z)&&Hr(ke,{cancelPrevious:!1,preventScroll:Y})}},[r,w,L,F,b,f,p,$,g]),zt(()=>{if(!r&&P)return P.setFocusManagerState({modal:u,closeOnFocusOut:d,open:h,onOpenChange:m,refs:f}),()=>{P.setFocusManagerState(null)}},[r,P,u,h,m,f,d]),zt(()=>{if(r||!L||typeof MutationObserver!="function"||C)return;const Y=()=>{const G=L.getAttribute("tabindex"),J=Z(),re=Jr(yn(w)),fe=J.indexOf(re);fe!==-1&&(R.current=fe),D.current.includes("floating")||re!==f.domReference.current&&J.length===0?G!=="0"&&L.setAttribute("tabindex","0"):G!=="-1"&&L.setAttribute("tabindex","-1")};Y();const N=new MutationObserver(Y);return N.observe(L,{childList:!0,subtree:!0,attributes:!0}),()=>{N.disconnect()}},[r,w,L,f,D,Z,C]);function W(Y){return r||!c||!u?null:j.createElement(u5,{ref:Y==="start"?k:A,onClick:N=>m(!1,N.nativeEvent)},typeof c=="string"?c:"Dismiss")}const q=!r&&I&&(u?!E:!0)&&(O||u);return j.createElement(j.Fragment,null,q&&j.createElement(hl,{"data-type":"inside",ref:P==null?void 0:P.beforeInsideRef,onFocus:Y=>{if(u){const G=V();Hr(i[0]==="reference"?G[0]:G[G.length-1])}else if(P!=null&&P.preserveTabOrder&&P.portalNode)if(B.current=!1,Wa(Y,P.portalNode)){const G=tb()||y;G==null||G.focus()}else{var N;(N=P.beforeOutsideRef.current)==null||N.focus()}}}),!E&&W("start"),n,W("end"),q&&j.createElement(hl,{"data-type":"inside",ref:P==null?void 0:P.afterInsideRef,onFocus:Y=>{if(u)Hr(V()[0]);else if(P!=null&&P.preserveTabOrder&&P.portalNode)if(d&&(B.current=!0),Wa(Y,P.portalNode)){const G=nb()||y;G==null||G.focus()}else{var N;(N=P.afterOutsideRef.current)==null||N.focus()}}}))}function eg(e){return vt(e.target)&&e.target.tagName==="BUTTON"}function tg(e){return M0(e)}function d5(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:i,elements:{domReference:a}}=e,{enabled:o=!0,event:s="click",toggle:l=!0,ignoreMouse:u=!1,keyboardHandlers:c=!0}=t,d=j.useRef(),h=j.useRef(!1),f=j.useMemo(()=>({onPointerDown(g){d.current=g.pointerType},onMouseDown(g){const m=d.current;g.button===0&&s!=="click"&&(Bh(m)&&u||(n&&l&&(!i.current.openEvent||i.current.openEvent.type==="mousedown")?r(!1,g.nativeEvent,"click"):(g.preventDefault(),r(!0,g.nativeEvent,"click"))))},onClick(g){const m=d.current;if(s==="mousedown"&&d.current){d.current=void 0;return}Bh(m)&&u||(n&&l&&(!i.current.openEvent||i.current.openEvent.type==="click")?r(!1,g.nativeEvent,"click"):r(!0,g.nativeEvent,"click"))},onKeyDown(g){d.current=void 0,!(g.defaultPrevented||!c||eg(g))&&(g.key===" "&&!tg(a)&&(g.preventDefault(),h.current=!0),g.key==="Enter"&&r(!(n&&l),g.nativeEvent,"click"))},onKeyUp(g){g.defaultPrevented||!c||eg(g)||tg(a)||g.key===" "&&h.current&&(h.current=!1,r(!(n&&l),g.nativeEvent,"click"))}}),[i,a,s,u,c,r,n,l]);return j.useMemo(()=>o?{reference:f}:{},[o,f])}const f5={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},h5={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},ng=e=>{var t,n;return{escapeKey:typeof e=="boolean"?e:(t=e==null?void 0:e.escapeKey)!=null?t:!1,outsidePress:typeof e=="boolean"?e:(n=e==null?void 0:e.outsidePress)!=null?n:!0}};function g5(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,elements:i,dataRef:a}=e,{enabled:o=!0,escapeKey:s=!0,outsidePress:l=!0,outsidePressEvent:u="pointerdown",referencePress:c=!1,referencePressEvent:d="pointerdown",ancestorScroll:h=!1,bubbles:f,capture:g}=t,m=Wd(),p=xr(typeof l=="function"?l:()=>!1),b=typeof l=="function"?p:l,v=j.useRef(!1),y=j.useRef(!1),{escapeKey:w,outsidePress:C}=ng(f),{escapeKey:E,outsidePress:I}=ng(g),D=xr(A=>{var B;if(!n||!o||!s||A.key!=="Escape")return;const T=(B=a.current.floatingContext)==null?void 0:B.nodeId,R=m?Ha(m.nodesRef.current,T):[];if(!w&&(A.stopPropagation(),R.length>0)){let O=!0;if(R.forEach(H=>{var L;if((L=H.context)!=null&&L.open&&!H.context.dataRef.current.__escapeKeyBubbles){O=!1;return}}),!O)return}r(!1,Bw(A)?A.nativeEvent:A,"escape-key")}),_=xr(A=>{var B;const T=()=>{var R;D(A),(R=ei(A))==null||R.removeEventListener("keydown",T)};(B=ei(A))==null||B.addEventListener("keydown",T)}),F=xr(A=>{var B;const T=v.current;v.current=!1;const R=y.current;if(y.current=!1,u==="click"&&R||T||typeof b=="function"&&!b(A))return;const O=ei(A),H="["+no("inert")+"]",L=yn(i.floating).querySelectorAll(H);let Z=rt(O)?O:null;for(;Z&&!Rr(Z);){const Y=dr(Z);if(Rr(Y)||!rt(Y))break;Z=Y}if(L.length&&rt(O)&&!Vw(O)&&!Jt(O,i.floating)&&Array.from(L).every(Y=>!Jt(Z,Y)))return;if(vt(O)&&k){const Y=O.clientWidth>0&&O.scrollWidth>O.clientWidth,N=O.clientHeight>0&&O.scrollHeight>O.clientHeight;let G=N&&A.offsetX>O.clientWidth;if(N&&bn(O).direction==="rtl"&&(G=A.offsetX<=O.offsetWidth-O.clientWidth),G||Y&&A.offsetY>O.clientHeight)return}const V=(B=a.current.floatingContext)==null?void 0:B.nodeId,W=m&&Ha(m.nodesRef.current,V).some(Y=>{var N;return Au(A,(N=Y.context)==null?void 0:N.elements.floating)});if(Au(A,i.floating)||Au(A,i.domReference)||W)return;const q=m?Ha(m.nodesRef.current,V):[];if(q.length>0){let Y=!0;if(q.forEach(N=>{var G;if((G=N.context)!=null&&G.open&&!N.context.dataRef.current.__outsidePressBubbles){Y=!1;return}}),!Y)return}r(!1,A,"outside-press")}),$=xr(A=>{var B;const T=()=>{var R;F(A),(R=ei(A))==null||R.removeEventListener(u,T)};(B=ei(A))==null||B.addEventListener(u,T)});j.useEffect(()=>{if(!n||!o)return;a.current.__escapeKeyBubbles=w,a.current.__outsidePressBubbles=C;function A(R){r(!1,R,"ancestor-scroll")}const B=yn(i.floating);s&&B.addEventListener("keydown",E?_:D,E),b&&B.addEventListener(u,I?$:F,I);let T=[];return h&&(rt(i.domReference)&&(T=_r(i.domReference)),rt(i.floating)&&(T=T.concat(_r(i.floating))),!rt(i.reference)&&i.reference&&i.reference.contextElement&&(T=T.concat(_r(i.reference.contextElement)))),T=T.filter(R=>{var O;return R!==((O=B.defaultView)==null?void 0:O.visualViewport)}),T.forEach(R=>{R.addEventListener("scroll",A,{passive:!0})}),()=>{s&&B.removeEventListener("keydown",E?_:D,E),b&&B.removeEventListener(u,I?$:F,I),T.forEach(R=>{R.removeEventListener("scroll",A)})}},[a,i,s,b,u,n,r,h,o,w,C,D,E,_,F,I,$]),j.useEffect(()=>{v.current=!1},[b,u]);const P=j.useMemo(()=>({onKeyDown:D,[f5[d]]:A=>{c&&r(!1,A.nativeEvent,"reference-press")}}),[D,r,c,d]),k=j.useMemo(()=>({onKeyDown:D,onMouseDown(){y.current=!0},onMouseUp(){y.current=!0},[h5[u]]:()=>{v.current=!0}}),[D,u]);return j.useMemo(()=>o?{reference:P,floating:k}:{},[o,P,k])}function m5(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=Hd(),a=j.useRef({}),[o]=j.useState(()=>KD()),s=Q0()!=null;if(process.env.NODE_ENV!=="production"){const f=r.reference;f&&!rt(f)&&JD("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[l,u]=j.useState(r.reference),c=xr((f,g,m)=>{a.current.openEvent=f?g:void 0,o.emit("openchange",{open:f,event:g,reason:m,nested:s}),n==null||n(f,g,m)}),d=j.useMemo(()=>({setPositionReference:u}),[]),h=j.useMemo(()=>({reference:l||r.reference||null,floating:r.floating||null,domReference:r.reference}),[l,r.reference,r.floating]);return j.useMemo(()=>({dataRef:a,open:t,onOpenChange:c,elements:h,events:o,floatingId:i,refs:d}),[t,c,h,o,i,d])}function p5(e){e===void 0&&(e={});const{nodeId:t}=e,n=m5({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[a,o]=j.useState(null),[s,l]=j.useState(null),c=(i==null?void 0:i.reference)||a,d=j.useRef(null),h=Wd();zt(()=>{c&&(d.current=c)},[c]);const f=LD({...e,elements:{...i,...s&&{reference:s}}}),g=j.useCallback(y=>{const w=rt(y)?{getBoundingClientRect:()=>y.getBoundingClientRect(),contextElement:y}:y;l(w),f.refs.setReference(w)},[f.refs]),m=j.useCallback(y=>{(rt(y)||y===null)&&(d.current=y,o(y)),(rt(f.refs.reference.current)||f.refs.reference.current===null||y!==null&&!rt(y))&&f.refs.setReference(y)},[f.refs]),p=j.useMemo(()=>({...f.refs,setReference:m,setPositionReference:g,domReference:d}),[f.refs,m,g]),b=j.useMemo(()=>({...f.elements,domReference:c}),[f.elements,c]),v=j.useMemo(()=>({...f,...r,refs:p,elements:b,nodeId:t}),[f,p,b,t,r]);return zt(()=>{r.dataRef.current.floatingContext=v;const y=h==null?void 0:h.nodesRef.current.find(w=>w.id===t);y&&(y.context=v)}),j.useMemo(()=>({...f,context:v,refs:p,elements:b}),[f,p,b,v])}const rg="active",ig="selected";function Mu(e,t,n){const r=new Map,i=n==="item";let a=e;if(i&&e){const{[rg]:o,[ig]:s,...l}=e;a=l}return{...n==="floating"&&{tabIndex:-1},...a,...t.map(o=>{const s=o?o[n]:null;return typeof s=="function"?e?s(e):null:s}).concat(e).reduce((o,s)=>(s&&Object.entries(s).forEach(l=>{let[u,c]=l;if(!(i&&[rg,ig].includes(u)))if(u.indexOf("on")===0){if(r.has(u)||r.set(u,[]),typeof c=="function"){var d;(d=r.get(u))==null||d.push(c),o[u]=function(){for(var h,f=arguments.length,g=new Array(f),m=0;m<f;m++)g[m]=arguments[m];return(h=r.get(u))==null?void 0:h.map(p=>p(...g)).find(p=>p!==void 0)}}}else o[u]=c}),o),{})}}function b5(e){e===void 0&&(e=[]);const t=e.map(s=>s==null?void 0:s.reference),n=e.map(s=>s==null?void 0:s.floating),r=e.map(s=>s==null?void 0:s.item),i=j.useCallback(s=>Mu(s,e,"reference"),t),a=j.useCallback(s=>Mu(s,e,"floating"),n),o=j.useCallback(s=>Mu(s,e,"item"),r);return j.useMemo(()=>({getReferenceProps:i,getFloatingProps:a,getItemProps:o}),[i,a,o])}const v5=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function y5(e,t){var n;t===void 0&&(t={});const{open:r,floatingId:i}=e,{enabled:a=!0,role:o="dialog"}=t,s=(n=v5.get(o))!=null?n:o,l=Hd(),c=Q0()!=null,d=j.useMemo(()=>s==="tooltip"||o==="label"?{["aria-"+(o==="label"?"labelledby":"describedby")]:r?i:void 0}:{"aria-expanded":r?"true":"false","aria-haspopup":s==="alertdialog"?"dialog":s,"aria-controls":r?i:void 0,...s==="listbox"&&{role:"combobox"},...s==="menu"&&{id:l},...s==="menu"&&c&&{role:"menuitem"},...o==="select"&&{"aria-autocomplete":"none"},...o==="combobox"&&{"aria-autocomplete":"list"}},[s,i,c,r,l,o]),h=j.useMemo(()=>{const g={id:i,...s&&{role:s}};return s==="tooltip"||o==="label"?g:{...g,...s==="menu"&&{"aria-labelledby":l}}},[s,i,l,o]),f=j.useCallback(g=>{let{active:m,selected:p}=g;const b={role:"option",...m&&{id:i+"-option"}};switch(o){case"select":return{...b,"aria-selected":m&&p};case"combobox":return{...b,...m&&{"aria-selected":!0}}}return{}},[i,o]);return j.useMemo(()=>a?{reference:d,floating:h,item:f}:{},[a,d,h,f])}const ag=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(t,n)=>(n?"-":"")+t.toLowerCase());function Pi(e,t){return typeof e=="function"?e(t):e}function x5(e,t){const[n,r]=j.useState(e);return e&&!n&&r(!0),j.useEffect(()=>{if(!e&&n){const i=setTimeout(()=>r(!1),t);return()=>clearTimeout(i)}},[e,n,t]),n}function C5(e,t){t===void 0&&(t={});const{open:n,elements:{floating:r}}=e,{duration:i=250}=t,o=(typeof i=="number"?i:i.close)||0,[s,l]=j.useState("unmounted"),u=x5(n,o);return!u&&s==="close"&&l("unmounted"),zt(()=>{if(r){if(n){l("initial");const c=requestAnimationFrame(()=>{l("open")});return()=>{cancelAnimationFrame(c)}}l("close")}},[n,r]),{isMounted:u,status:s}}function w5(e,t){t===void 0&&(t={});const{initial:n={opacity:0},open:r,close:i,common:a,duration:o=250}=t,s=e.placement,l=s.split("-")[0],u=j.useMemo(()=>({side:l,placement:s}),[l,s]),c=typeof o=="number",d=(c?o:o.open)||0,h=(c?o:o.close)||0,[f,g]=j.useState(()=>({...Pi(a,u),...Pi(n,u)})),{isMounted:m,status:p}=C5(e,{duration:o}),b=ri(n),v=ri(r),y=ri(i),w=ri(a);return zt(()=>{const C=Pi(b.current,u),E=Pi(y.current,u),I=Pi(w.current,u),D=Pi(v.current,u)||Object.keys(C).reduce((_,F)=>(_[F]="",_),{});if(p==="initial"&&g(_=>({transitionProperty:_.transitionProperty,...I,...C})),p==="open"&&g({transitionProperty:Object.keys(D).map(ag).join(","),transitionDuration:d+"ms",...I,...D}),p==="close"){const _=E||C;g({transitionProperty:Object.keys(_).map(ag).join(","),transitionDuration:h+"ms",...I,..._})}},[h,y,b,v,w,d,p,u]),{isMounted:m,styles:f}}const D5="_popover_7cinv_1",S5={popover:D5},Ci=x.forwardRef((e,t)=>{const{children:n,className:r,offset:i=10,isShow:a,anchorEl:o,useAutoPlacement:s=!1,flipOptions:l,autoPlacementOptions:u,zIndex:c=10,width:d,styleInnerPopover:h={},floatingOptions:f={},...g}=e,[m,p]=x.useState(!1),{refs:b,floatingStyles:v,context:y}=p5({open:m,onOpenChange:p,middleware:[jD(i),s?zD(u):WD(l),HD()],whileElementsMounted:U0,...f}),w=d5(y),C=g5(y),E=y5(y),{getReferenceProps:I,getFloatingProps:D}=b5([w,C,E]),{styles:_,isMounted:F}=w5(y),$=k=>{b.setReference(k.currentTarget),p(A=>!A)};x.useEffect(()=>{a&&o?$({currentTarget:o}):a||p(!1)},[a,o]),x.useImperativeHandle(t,()=>({show:m,setShow:p,handlerShow:$,getReferenceProps:I}),[m]);const P=()=>{let k={...v,..._,...h,zIndex:c};return d&&(k={...k,width:d}),k};return S.jsx(S.Fragment,{children:F&&m&&S.jsx(l5,{children:S.jsx(c5,{context:y,modal:!1,children:S.jsx("div",{ref:b.setFloating,style:P(),...D(),className:`${S5.popover} ${r??""}`,...g,children:n})})})})});Ci.displayName="Popover";const E5="_container_1rs5e_1",I5="_input_1rs5e_7",_5="_label_1rs5e_33",$5="_error_1rs5e_40",Fn={container:E5,"container-input":"_container-input_1rs5e_4",input:I5,label:_5,error:$5,"isset-icon":"_isset-icon_1rs5e_51","end-icon":"_end-icon_1rs5e_58","label-error":"_label-error_1rs5e_61"},ab=x.forwardRef((e,t)=>{var p;const{isRequired:n,classNameContainer:r,classNameLabelError:i,className:a,name:o,id:s,label:l,type:u="text",endIcon:c,error:d,sizeInput:h="reguler",...f}=e,g={size:{reguler:Fn.input,small:Fn.input},variant:{}},m=()=>typeof c=="function"||x.isValidElement(c);return S.jsxs("div",{className:`${Fn.container} ${r??""}`,children:[S.jsxs("div",{className:Fn["container-input"],children:[S.jsx("input",{id:s??o,className:`${(p=g.size)==null?void 0:p[h]} ${d?Fn.error:""}
|
45
45
|
${m()?Fn["isset-icon"]:""} ${a??""}`,ref:t,type:u,...f}),S.jsxs("div",{className:Fn["end-icon"],children:[typeof c=="function"&&c(),x.isValidElement(c)&&c]}),S.jsxs("label",{className:Fn.label,htmlFor:s??o,children:[l," ",n&&S.jsx("span",{className:"1ru-text-laba-red-08",children:"*"})]})]}),d&&S.jsx("label",{className:`${Fn["label-error"]}
|
46
46
|
${f.disabled?Fn.disabled:""} ${i??""}`,children:d})]})});ab.displayName="InputFloatingInner";const R5="_label_oblon_4",A5="_disabled_oblon_9",F5="_input_oblon_15",P5="_error_oblon_43",jt={"container-large":"_container-large_oblon_1",label:R5,disabled:A5,"container-input":"_container-input_oblon_12",input:F5,error:P5,"isset-right-icon":"_isset-right-icon_oblon_52","isset-left-icon":"_isset-left-icon_oblon_56","start-icon":"_start-icon_oblon_60","end-icon":"_end-icon_oblon_63","label-error":"_label-error_oblon_66","container-medium":"_container-medium_oblon_75","container-small":"_container-small_oblon_149"},Gd=x.forwardRef((e,t)=>{const{isRequired:n,classNameContainer:r,className:i,classNameLabel:a,classNameLabelError:o,name:s,id:l,label:u,type:c="text",startIcon:d,endIcon:h,error:f,sizeInput:g="large",...m}=e,p={size:{large:jt["container-large"],medium:jt["container-medium"],small:jt["container-small"]},variant:{}},b=()=>typeof d=="function"||x.isValidElement(d),v=()=>typeof h=="function"||x.isValidElement(h);return S.jsxs("div",{className:`${p.size[g]} ${r??""}`,children:[u&&S.jsxs("label",{htmlFor:l??s,className:`${jt.label} ${m.disabled?jt.disabled:""} ${a??""}`,children:[u," ",n&&S.jsx("span",{className:"1ru-text-laba-red-08",children:"*"})]}),S.jsxs("div",{className:`${jt["container-input"]}`,children:[S.jsxs("div",{className:jt["start-icon"],children:[typeof d=="function"&&d(),x.isValidElement(d)&&d]}),S.jsx("input",{id:l??s,className:`${jt.input} ${f?jt.error:""}
|
47
47
|
${b()?jt["isset-left-icon"]:""}
|
@@ -56,10 +56,10 @@ React keys must be passed directly to JSX without using spread:
|
|
56
56
|
* LICENSE.md file in the root directory of this source tree.
|
57
57
|
*
|
58
58
|
* @license MIT
|
59
|
-
*/function T5(){return{accessor:(e,t)=>typeof e=="function"?{...t,accessorFn:e}:{...t,accessorKey:e},display:e=>e,group:e=>e}}function ir(e,t){return typeof e=="function"?e(t):e}function
|
59
|
+
*/function T5(){return{accessor:(e,t)=>typeof e=="function"?{...t,accessorFn:e}:{...t,accessorKey:e},display:e=>e,group:e=>e}}function ir(e,t){return typeof e=="function"?e(t):e}function k5(){}function Gt(e,t){return n=>{t.setState(r=>({...r,[e]:ir(n,r[e])}))}}function Bo(e){return e instanceof Function}function ob(e){return Array.isArray(e)&&e.every(t=>typeof t=="number")}function Zd(e,t){const n=[],r=i=>{i.forEach(a=>{n.push(a);const o=t(a);o!=null&&o.length&&r(o)})};return r(e),n}function ae(e,t,n){let r=[],i;return a=>{let o;n.key&&n.debug&&(o=Date.now());const s=e(a);if(!(s.length!==r.length||s.some((c,d)=>r[d]!==c)))return i;r=s;let u;if(n.key&&n.debug&&(u=Date.now()),i=t(...s),n==null||n.onChange==null||n.onChange(i),n.key&&n.debug&&n!=null&&n.debug()){const c=Math.round((Date.now()-o)*100)/100,d=Math.round((Date.now()-u)*100)/100,h=d/16,f=(g,m)=>{for(g=String(g);g.length<m;)g=" "+g;return g};console.info(`%c⏱ ${f(d,5)} /${f(c,5)} ms`,`
|
60
60
|
font-size: .6rem;
|
61
61
|
font-weight: bold;
|
62
|
-
color: hsl(${Math.max(0,Math.min(120-120*h,120))}deg 100% 31%);`,n==null?void 0:n.key)}return i}}function oe(e,t,n,r){return{debug:()=>{var i;return(i=e==null?void 0:e.debugAll)!=null?i:e[t]},key:process.env.NODE_ENV==="development"&&n,onChange:r}}function sb(e,t,n,r){const i=()=>{var o;return(o=a.getValue())!=null?o:e.options.renderFallbackValue},a={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(r),renderValue:i,getContext:ae(()=>[e,n,t,a],(o,s,l,u)=>({table:o,column:s,row:l,cell:u,getValue:u.getValue,renderValue:u.renderValue}),oe(e.options,"debugCells","cell.getContext"))};return e._features.forEach(o=>{o.createCell==null||o.createCell(a,n,t,e)},{}),a}function lb(e,t,n,r){var i,a;const s={...e._getDefaultColumnDef(),...t},l=s.accessorKey;let u=(i=(a=s.id)!=null?a:l?l.replace(".","_"):void 0)!=null?i:typeof s.header=="string"?s.header:void 0,c;if(s.accessorFn?c=s.accessorFn:l&&(l.includes(".")?c=h=>{let f=h;for(const m of l.split(".")){var g;f=(g=f)==null?void 0:g[m],process.env.NODE_ENV!=="production"&&f===void 0&&console.warn(`"${m}" in deeply nested key "${l}" returned undefined.`)}return f}:c=h=>h[s.accessorKey]),!u)throw process.env.NODE_ENV!=="production"?new Error(s.accessorFn?"Columns require an id when using an accessorFn":"Columns require an id when using a non-string header"):new Error;let d={id:`${String(u)}`,accessorFn:c,parent:r,depth:n,columnDef:s,columns:[],getFlatColumns:ae(()=>[!0],()=>{var h;return[d,...(h=d.columns)==null?void 0:h.flatMap(f=>f.getFlatColumns())]},oe(e.options,"debugColumns","column.getFlatColumns")),getLeafColumns:ae(()=>[e._getOrderColumnsFn()],h=>{var f;if((f=d.columns)!=null&&f.length){let g=d.columns.flatMap(m=>m.getLeafColumns());return h(g)}return[d]},oe(e.options,"debugColumns","column.getLeafColumns"))};for(const h of e._features)h.createColumn==null||h.createColumn(d,e);return d}const St="debugHeaders";function og(e,t,n){var r;let a={id:(r=n.id)!=null?r:t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const o=[],s=l=>{l.subHeaders&&l.subHeaders.length&&l.subHeaders.map(s),o.push(l)};return s(a),o},getContext:()=>({table:e,header:a,column:t})};return e._features.forEach(o=>{o.createHeader==null||o.createHeader(a,e)}),a}const ub={createTable:e=>{e.getHeaderGroups=ae(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,i)=>{var a,o;const s=(a=r==null?void 0:r.map(d=>n.find(h=>h.id===d)).filter(Boolean))!=null?a:[],l=(o=i==null?void 0:i.map(d=>n.find(h=>h.id===d)).filter(Boolean))!=null?o:[],u=n.filter(d=>!(r!=null&&r.includes(d.id))&&!(i!=null&&i.includes(d.id)));return Ra(t,[...s,...u,...l],e)},oe(e.options,St,"getHeaderGroups")),e.getCenterHeaderGroups=ae(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,i)=>(n=n.filter(a=>!(r!=null&&r.includes(a.id))&&!(i!=null&&i.includes(a.id))),Ra(t,n,e,"center")),oe(e.options,St,"getCenterHeaderGroups")),e.getLeftHeaderGroups=ae(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,n,r)=>{var i;const a=(i=r==null?void 0:r.map(o=>n.find(s=>s.id===o)).filter(Boolean))!=null?i:[];return Ra(t,a,e,"left")},oe(e.options,St,"getLeftHeaderGroups")),e.getRightHeaderGroups=ae(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,n,r)=>{var i;const a=(i=r==null?void 0:r.map(o=>n.find(s=>s.id===o)).filter(Boolean))!=null?i:[];return Ra(t,a,e,"right")},oe(e.options,St,"getRightHeaderGroups")),e.getFooterGroups=ae(()=>[e.getHeaderGroups()],t=>[...t].reverse(),oe(e.options,St,"getFooterGroups")),e.getLeftFooterGroups=ae(()=>[e.getLeftHeaderGroups()],t=>[...t].reverse(),oe(e.options,St,"getLeftFooterGroups")),e.getCenterFooterGroups=ae(()=>[e.getCenterHeaderGroups()],t=>[...t].reverse(),oe(e.options,St,"getCenterFooterGroups")),e.getRightFooterGroups=ae(()=>[e.getRightHeaderGroups()],t=>[...t].reverse(),oe(e.options,St,"getRightFooterGroups")),e.getFlatHeaders=ae(()=>[e.getHeaderGroups()],t=>t.map(n=>n.headers).flat(),oe(e.options,St,"getFlatHeaders")),e.getLeftFlatHeaders=ae(()=>[e.getLeftHeaderGroups()],t=>t.map(n=>n.headers).flat(),oe(e.options,St,"getLeftFlatHeaders")),e.getCenterFlatHeaders=ae(()=>[e.getCenterHeaderGroups()],t=>t.map(n=>n.headers).flat(),oe(e.options,St,"getCenterFlatHeaders")),e.getRightFlatHeaders=ae(()=>[e.getRightHeaderGroups()],t=>t.map(n=>n.headers).flat(),oe(e.options,St,"getRightFlatHeaders")),e.getCenterLeafHeaders=ae(()=>[e.getCenterFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),oe(e.options,St,"getCenterLeafHeaders")),e.getLeftLeafHeaders=ae(()=>[e.getLeftFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),oe(e.options,St,"getLeftLeafHeaders")),e.getRightLeafHeaders=ae(()=>[e.getRightFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),oe(e.options,St,"getRightLeafHeaders")),e.getLeafHeaders=ae(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(t,n,r)=>{var i,a,o,s,l,u;return[...(i=(a=t[0])==null?void 0:a.headers)!=null?i:[],...(o=(s=n[0])==null?void 0:s.headers)!=null?o:[],...(l=(u=r[0])==null?void 0:u.headers)!=null?l:[]].map(c=>c.getLeafHeaders()).flat()},oe(e.options,St,"getLeafHeaders"))}};function Ra(e,t,n,r){var i,a;let o=0;const s=function(h,f){f===void 0&&(f=1),o=Math.max(o,f),h.filter(g=>g.getIsVisible()).forEach(g=>{var m;(m=g.columns)!=null&&m.length&&s(g.columns,f+1)},0)};s(e);let l=[];const u=(h,f)=>{const g={depth:f,id:[r,`${f}`].filter(Boolean).join("_"),headers:[]},m=[];h.forEach(p=>{const b=[...m].reverse()[0],v=p.column.depth===g.depth;let y,w=!1;if(v&&p.column.parent?y=p.column.parent:(y=p.column,w=!0),b&&(b==null?void 0:b.column)===y)b.subHeaders.push(p);else{const C=og(n,y,{id:[r,f,y.id,p==null?void 0:p.id].filter(Boolean).join("_"),isPlaceholder:w,placeholderId:w?`${m.filter(E=>E.column===y).length}`:void 0,depth:f,index:m.length});C.subHeaders.push(p),m.push(C)}g.headers.push(p),p.headerGroup=g}),l.push(g),f>0&&u(m,f-1)},c=t.map((h,f)=>og(n,h,{depth:o,index:f}));u(c,o-1),l.reverse();const d=h=>h.filter(g=>g.column.getIsVisible()).map(g=>{let m=0,p=0,b=[0];g.subHeaders&&g.subHeaders.length?(b=[],d(g.subHeaders).forEach(y=>{let{colSpan:w,rowSpan:C}=y;m+=w,b.push(C)})):m=1;const v=Math.min(...b);return p=p+v,g.colSpan=m,g.rowSpan=p,{colSpan:m,rowSpan:p}});return d((i=(a=l[0])==null?void 0:a.headers)!=null?i:[]),l}const Vo=(e,t,n,r,i,a,o)=>{let s={id:t,index:r,original:n,depth:i,parentId:o,_valuesCache:{},_uniqueValuesCache:{},getValue:l=>{if(s._valuesCache.hasOwnProperty(l))return s._valuesCache[l];const u=e.getColumn(l);if(u!=null&&u.accessorFn)return s._valuesCache[l]=u.accessorFn(s.original,r),s._valuesCache[l]},getUniqueValues:l=>{if(s._uniqueValuesCache.hasOwnProperty(l))return s._uniqueValuesCache[l];const u=e.getColumn(l);if(u!=null&&u.accessorFn)return u.columnDef.getUniqueValues?(s._uniqueValuesCache[l]=u.columnDef.getUniqueValues(s.original,r),s._uniqueValuesCache[l]):(s._uniqueValuesCache[l]=[s.getValue(l)],s._uniqueValuesCache[l])},renderValue:l=>{var u;return(u=s.getValue(l))!=null?u:e.options.renderFallbackValue},subRows:a??[],getLeafRows:()=>Zd(s.subRows,l=>l.subRows),getParentRow:()=>s.parentId?e.getRow(s.parentId,!0):void 0,getParentRows:()=>{let l=[],u=s;for(;;){const c=u.getParentRow();if(!c)break;l.push(c),u=c}return l.reverse()},getAllCells:ae(()=>[e.getAllLeafColumns()],l=>l.map(u=>sb(e,s,u,u.id)),oe(e.options,"debugRows","getAllCells")),_getAllCellsByColumnId:ae(()=>[s.getAllCells()],l=>l.reduce((u,c)=>(u[c.column.id]=c,u),{}),oe(e.options,"debugRows","getAllCellsByColumnId"))};for(let l=0;l<e._features.length;l++){const u=e._features[l];u==null||u.createRow==null||u.createRow(s,e)}return s},cb={createColumn:(e,t)=>{e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},db=(e,t,n)=>{var r;const i=n.toLowerCase();return!!(!((r=e.getValue(t))==null||(r=r.toString())==null||(r=r.toLowerCase())==null)&&r.includes(i))};db.autoRemove=e=>Dn(e);const fb=(e,t,n)=>{var r;return!!(!((r=e.getValue(t))==null||(r=r.toString())==null)&&r.includes(n))};fb.autoRemove=e=>Dn(e);const hb=(e,t,n)=>{var r;return((r=e.getValue(t))==null||(r=r.toString())==null?void 0:r.toLowerCase())===(n==null?void 0:n.toLowerCase())};hb.autoRemove=e=>Dn(e);const gb=(e,t,n)=>{var r;return(r=e.getValue(t))==null?void 0:r.includes(n)};gb.autoRemove=e=>Dn(e)||!(e!=null&&e.length);const mb=(e,t,n)=>!n.some(r=>{var i;return!((i=e.getValue(t))!=null&&i.includes(r))});mb.autoRemove=e=>Dn(e)||!(e!=null&&e.length);const pb=(e,t,n)=>n.some(r=>{var i;return(i=e.getValue(t))==null?void 0:i.includes(r)});pb.autoRemove=e=>Dn(e)||!(e!=null&&e.length);const bb=(e,t,n)=>e.getValue(t)===n;bb.autoRemove=e=>Dn(e);const vb=(e,t,n)=>e.getValue(t)==n;vb.autoRemove=e=>Dn(e);const Xd=(e,t,n)=>{let[r,i]=n;const a=e.getValue(t);return a>=r&&a<=i};Xd.resolveFilterValue=e=>{let[t,n]=e,r=typeof t!="number"?parseFloat(t):t,i=typeof n!="number"?parseFloat(n):n,a=t===null||Number.isNaN(r)?-1/0:r,o=n===null||Number.isNaN(i)?1/0:i;if(a>o){const s=a;a=o,o=s}return[a,o]};Xd.autoRemove=e=>Dn(e)||Dn(e[0])&&Dn(e[1]);const kn={includesString:db,includesStringSensitive:fb,equalsString:hb,arrIncludes:gb,arrIncludesAll:mb,arrIncludesSome:pb,equals:bb,weakEquals:vb,inNumberRange:Xd};function Dn(e){return e==null||e===""}const yb={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:Gt("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=n==null?void 0:n.getValue(e.id);return typeof r=="string"?kn.includesString:typeof r=="number"?kn.inNumberRange:typeof r=="boolean"||r!==null&&typeof r=="object"?kn.equals:Array.isArray(r)?kn.arrIncludes:kn.weakEquals},e.getFilterFn=()=>{var n,r;return Bo(e.columnDef.filterFn)?e.columnDef.filterFn:e.columnDef.filterFn==="auto"?e.getAutoFilterFn():(n=(r=t.options.filterFns)==null?void 0:r[e.columnDef.filterFn])!=null?n:kn[e.columnDef.filterFn]},e.getCanFilter=()=>{var n,r,i;return((n=e.columnDef.enableColumnFilter)!=null?n:!0)&&((r=t.options.enableColumnFilters)!=null?r:!0)&&((i=t.options.enableFilters)!=null?i:!0)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return(n=t.getState().columnFilters)==null||(n=n.find(r=>r.id===e.id))==null?void 0:n.value},e.getFilterIndex=()=>{var n,r;return(n=(r=t.getState().columnFilters)==null?void 0:r.findIndex(i=>i.id===e.id))!=null?n:-1},e.setFilterValue=n=>{t.setColumnFilters(r=>{const i=e.getFilterFn(),a=r==null?void 0:r.find(c=>c.id===e.id),o=ir(n,a?a.value:void 0);if(kc(i,o,e)){var s;return(s=r==null?void 0:r.filter(c=>c.id!==e.id))!=null?s:[]}const l={id:e.id,value:o};if(a){var u;return(u=r==null?void 0:r.map(c=>c.id===e.id?l:c))!=null?u:[]}return r!=null&&r.length?[...r,l]:[l]})}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{const n=e.getAllLeafColumns(),r=i=>{var a;return(a=ir(t,i))==null?void 0:a.filter(o=>{const s=n.find(l=>l.id===o.id);if(s){const l=s.getFilterFn();if(kc(l,o.value,s))return!1}return!0})};e.options.onColumnFiltersChange==null||e.options.onColumnFiltersChange(r)},e.resetColumnFilters=t=>{var n,r;e.setColumnFilters(t?[]:(n=(r=e.initialState)==null?void 0:r.columnFilters)!=null?n:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel())}};function kc(e,t,n){return(e&&e.autoRemove?e.autoRemove(t,n):!1)||typeof t>"u"||typeof t=="string"&&!t}const k5=(e,t,n)=>n.reduce((r,i)=>{const a=i.getValue(e);return r+(typeof a=="number"?a:0)},0),B5=(e,t,n)=>{let r;return n.forEach(i=>{const a=i.getValue(e);a!=null&&(r>a||r===void 0&&a>=a)&&(r=a)}),r},V5=(e,t,n)=>{let r;return n.forEach(i=>{const a=i.getValue(e);a!=null&&(r<a||r===void 0&&a>=a)&&(r=a)}),r},O5=(e,t,n)=>{let r,i;return n.forEach(a=>{const o=a.getValue(e);o!=null&&(r===void 0?o>=o&&(r=i=o):(r>o&&(r=o),i<o&&(i=o)))}),[r,i]},N5=(e,t)=>{let n=0,r=0;if(t.forEach(i=>{let a=i.getValue(e);a!=null&&(a=+a)>=a&&(++n,r+=a)}),n)return r/n},L5=(e,t)=>{if(!t.length)return;const n=t.map(a=>a.getValue(e));if(!ob(n))return;if(n.length===1)return n[0];const r=Math.floor(n.length/2),i=n.sort((a,o)=>a-o);return n.length%2!==0?i[r]:(i[r-1]+i[r])/2},j5=(e,t)=>Array.from(new Set(t.map(n=>n.getValue(e))).values()),H5=(e,t)=>new Set(t.map(n=>n.getValue(e))).size,W5=(e,t)=>t.length,Ns={sum:k5,min:B5,max:V5,extent:O5,mean:N5,median:L5,unique:j5,uniqueCount:H5,count:W5},xb={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return(t=(n=e.getValue())==null||n.toString==null?void 0:n.toString())!=null?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:Gt("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping(n=>n!=null&&n.includes(e.id)?n.filter(r=>r!==e.id):[...n??[],e.id])},e.getCanGroup=()=>{var n,r;return((n=e.columnDef.enableGrouping)!=null?n:!0)&&((r=t.options.enableGrouping)!=null?r:!0)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var n;return(n=t.getState().grouping)==null?void 0:n.includes(e.id)},e.getGroupedIndex=()=>{var n;return(n=t.getState().grouping)==null?void 0:n.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const n=e.getCanGroup();return()=>{n&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=n==null?void 0:n.getValue(e.id);if(typeof r=="number")return Ns.sum;if(Object.prototype.toString.call(r)==="[object Date]")return Ns.extent},e.getAggregationFn=()=>{var n,r;if(!e)throw new Error;return Bo(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:e.columnDef.aggregationFn==="auto"?e.getAutoAggregationFn():(n=(r=t.options.aggregationFns)==null?void 0:r[e.columnDef.aggregationFn])!=null?n:Ns[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>e.options.onGroupingChange==null?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var n,r;e.setGrouping(t?[]:(n=(r=e.initialState)==null?void 0:r.grouping)!=null?n:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];const r=t.getColumn(n);return r!=null&&r.columnDef.getGroupingValue?(e._groupingValuesCache[n]=r.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,r)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var i;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!((i=n.subRows)!=null&&i.length)}}};function Cb(e,t,n){if(!(t!=null&&t.length)||!n)return e;const r=e.filter(a=>!t.includes(a.id));return n==="remove"?r:[...t.map(a=>e.find(o=>o.id===a)).filter(Boolean),...r]}const wb={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:Gt("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=ae(n=>[Yi(t,n)],n=>n.findIndex(r=>r.id===e.id),oe(t.options,"debugColumns","getIndex")),e.getIsFirstColumn=n=>{var r;return((r=Yi(t,n)[0])==null?void 0:r.id)===e.id},e.getIsLastColumn=n=>{var r;const i=Yi(t,n);return((r=i[i.length-1])==null?void 0:r.id)===e.id}},createTable:e=>{e.setColumnOrder=t=>e.options.onColumnOrderChange==null?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var n;e.setColumnOrder(t?[]:(n=e.initialState.columnOrder)!=null?n:[])},e._getOrderColumnsFn=ae(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(t,n,r)=>i=>{let a=[];if(!(t!=null&&t.length))a=i;else{const o=[...t],s=[...i];for(;s.length&&o.length;){const l=o.shift(),u=s.findIndex(c=>c.id===l);u>-1&&a.push(s.splice(u,1)[0])}a=[...a,...s]}return Cb(a,n,r)},oe(e.options,"debugTable","_getOrderColumnsFn"))}},Bu=()=>({left:[],right:[]}),Db={getInitialState:e=>({columnPinning:Bu(),...e}),getDefaultOptions:e=>({onColumnPinningChange:Gt("columnPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{const r=e.getLeafColumns().map(i=>i.id).filter(Boolean);t.setColumnPinning(i=>{var a,o;if(n==="right"){var s,l;return{left:((s=i==null?void 0:i.left)!=null?s:[]).filter(d=>!(r!=null&&r.includes(d))),right:[...((l=i==null?void 0:i.right)!=null?l:[]).filter(d=>!(r!=null&&r.includes(d))),...r]}}if(n==="left"){var u,c;return{left:[...((u=i==null?void 0:i.left)!=null?u:[]).filter(d=>!(r!=null&&r.includes(d))),...r],right:((c=i==null?void 0:i.right)!=null?c:[]).filter(d=>!(r!=null&&r.includes(d)))}}return{left:((a=i==null?void 0:i.left)!=null?a:[]).filter(d=>!(r!=null&&r.includes(d))),right:((o=i==null?void 0:i.right)!=null?o:[]).filter(d=>!(r!=null&&r.includes(d)))}})},e.getCanPin=()=>e.getLeafColumns().some(r=>{var i,a,o;return((i=r.columnDef.enablePinning)!=null?i:!0)&&((a=(o=t.options.enableColumnPinning)!=null?o:t.options.enablePinning)!=null?a:!0)}),e.getIsPinned=()=>{const n=e.getLeafColumns().map(s=>s.id),{left:r,right:i}=t.getState().columnPinning,a=n.some(s=>r==null?void 0:r.includes(s)),o=n.some(s=>i==null?void 0:i.includes(s));return a?"left":o?"right":!1},e.getPinnedIndex=()=>{var n,r;const i=e.getIsPinned();return i?(n=(r=t.getState().columnPinning)==null||(r=r[i])==null?void 0:r.indexOf(e.id))!=null?n:-1:0}},createRow:(e,t)=>{e.getCenterVisibleCells=ae(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(n,r,i)=>{const a=[...r??[],...i??[]];return n.filter(o=>!a.includes(o.column.id))},oe(t.options,"debugRows","getCenterVisibleCells")),e.getLeftVisibleCells=ae(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left],(n,r)=>(r??[]).map(a=>n.find(o=>o.column.id===a)).filter(Boolean).map(a=>({...a,position:"left"})),oe(t.options,"debugRows","getLeftVisibleCells")),e.getRightVisibleCells=ae(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(n,r)=>(r??[]).map(a=>n.find(o=>o.column.id===a)).filter(Boolean).map(a=>({...a,position:"right"})),oe(t.options,"debugRows","getRightVisibleCells"))},createTable:e=>{e.setColumnPinning=t=>e.options.onColumnPinningChange==null?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var n,r;return e.setColumnPinning(t?Bu():(n=(r=e.initialState)==null?void 0:r.columnPinning)!=null?n:Bu())},e.getIsSomeColumnsPinned=t=>{var n;const r=e.getState().columnPinning;if(!t){var i,a;return!!((i=r.left)!=null&&i.length||(a=r.right)!=null&&a.length)}return!!((n=r[t])!=null&&n.length)},e.getLeftLeafColumns=ae(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(t,n)=>(n??[]).map(r=>t.find(i=>i.id===r)).filter(Boolean),oe(e.options,"debugColumns","getLeftLeafColumns")),e.getRightLeafColumns=ae(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(t,n)=>(n??[]).map(r=>t.find(i=>i.id===r)).filter(Boolean),oe(e.options,"debugColumns","getRightLeafColumns")),e.getCenterLeafColumns=ae(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r)=>{const i=[...n??[],...r??[]];return t.filter(a=>!i.includes(a.id))},oe(e.options,"debugColumns","getCenterLeafColumns"))}},Aa={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},Vu=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),Sb={getDefaultColumnDef:()=>Aa,getInitialState:e=>({columnSizing:{},columnSizingInfo:Vu(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:Gt("columnSizing",e),onColumnSizingInfoChange:Gt("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,r,i;const a=t.getState().columnSizing[e.id];return Math.min(Math.max((n=e.columnDef.minSize)!=null?n:Aa.minSize,(r=a??e.columnDef.size)!=null?r:Aa.size),(i=e.columnDef.maxSize)!=null?i:Aa.maxSize)},e.getStart=ae(n=>[n,Yi(t,n),t.getState().columnSizing],(n,r)=>r.slice(0,e.getIndex(n)).reduce((i,a)=>i+a.getSize(),0),oe(t.options,"debugColumns","getStart")),e.getAfter=ae(n=>[n,Yi(t,n),t.getState().columnSizing],(n,r)=>r.slice(e.getIndex(n)+1).reduce((i,a)=>i+a.getSize(),0),oe(t.options,"debugColumns","getAfter")),e.resetSize=()=>{t.setColumnSizing(n=>{let{[e.id]:r,...i}=n;return i})},e.getCanResize=()=>{var n,r;return((n=e.columnDef.enableResizing)!=null?n:!0)&&((r=t.options.enableColumnResizing)!=null?r:!0)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let n=0;const r=i=>{if(i.subHeaders.length)i.subHeaders.forEach(r);else{var a;n+=(a=i.column.getSize())!=null?a:0}};return r(e),n},e.getStart=()=>{if(e.index>0){const n=e.headerGroup.headers[e.index-1];return n.getStart()+n.getSize()}return 0},e.getResizeHandler=n=>{const r=t.getColumn(e.column.id),i=r==null?void 0:r.getCanResize();return a=>{if(!r||!i||(a.persist==null||a.persist(),Ou(a)&&a.touches&&a.touches.length>1))return;const o=e.getSize(),s=e?e.getLeafHeaders().map(b=>[b.column.id,b.column.getSize()]):[[r.id,r.getSize()]],l=Ou(a)?Math.round(a.touches[0].clientX):a.clientX,u={},c=(b,v)=>{typeof v=="number"&&(t.setColumnSizingInfo(y=>{var w,C;const E=t.options.columnResizeDirection==="rtl"?-1:1,I=(v-((w=y==null?void 0:y.startOffset)!=null?w:0))*E,D=Math.max(I/((C=y==null?void 0:y.startSize)!=null?C:0),-.999999);return y.columnSizingStart.forEach(_=>{let[F,$]=_;u[F]=Math.round(Math.max($+$*D,0)*100)/100}),{...y,deltaOffset:I,deltaPercentage:D}}),(t.options.columnResizeMode==="onChange"||b==="end")&&t.setColumnSizing(y=>({...y,...u})))},d=b=>c("move",b),h=b=>{c("end",b),t.setColumnSizingInfo(v=>({...v,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},f=n||typeof document<"u"?document:null,g={moveHandler:b=>d(b.clientX),upHandler:b=>{f==null||f.removeEventListener("mousemove",g.moveHandler),f==null||f.removeEventListener("mouseup",g.upHandler),h(b.clientX)}},m={moveHandler:b=>(b.cancelable&&(b.preventDefault(),b.stopPropagation()),d(b.touches[0].clientX),!1),upHandler:b=>{var v;f==null||f.removeEventListener("touchmove",m.moveHandler),f==null||f.removeEventListener("touchend",m.upHandler),b.cancelable&&(b.preventDefault(),b.stopPropagation()),h((v=b.touches[0])==null?void 0:v.clientX)}},p=Eb()?{passive:!1}:!1;Ou(a)?(f==null||f.addEventListener("touchmove",m.moveHandler,p),f==null||f.addEventListener("touchend",m.upHandler,p)):(f==null||f.addEventListener("mousemove",g.moveHandler,p),f==null||f.addEventListener("mouseup",g.upHandler,p)),t.setColumnSizingInfo(b=>({...b,startOffset:l,startSize:o,deltaOffset:0,deltaPercentage:0,columnSizingStart:s,isResizingColumn:r.id}))}}},createTable:e=>{e.setColumnSizing=t=>e.options.onColumnSizingChange==null?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>e.options.onColumnSizingInfoChange==null?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var n;e.setColumnSizing(t?{}:(n=e.initialState.columnSizing)!=null?n:{})},e.resetHeaderSizeInfo=t=>{var n;e.setColumnSizingInfo(t?Vu():(n=e.initialState.columnSizingInfo)!=null?n:Vu())},e.getTotalSize=()=>{var t,n;return(t=(n=e.getHeaderGroups()[0])==null?void 0:n.headers.reduce((r,i)=>r+i.getSize(),0))!=null?t:0},e.getLeftTotalSize=()=>{var t,n;return(t=(n=e.getLeftHeaderGroups()[0])==null?void 0:n.headers.reduce((r,i)=>r+i.getSize(),0))!=null?t:0},e.getCenterTotalSize=()=>{var t,n;return(t=(n=e.getCenterHeaderGroups()[0])==null?void 0:n.headers.reduce((r,i)=>r+i.getSize(),0))!=null?t:0},e.getRightTotalSize=()=>{var t,n;return(t=(n=e.getRightHeaderGroups()[0])==null?void 0:n.headers.reduce((r,i)=>r+i.getSize(),0))!=null?t:0}}};let is=null;function Eb(){if(typeof is=="boolean")return is;let e=!1;try{const t={get passive(){return e=!0,!1}},n=()=>{};window.addEventListener("test",n,t),window.removeEventListener("test",n)}catch{e=!1}return is=e,is}function Ou(e){return e.type==="touchstart"}const Ib={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:Gt("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility(r=>({...r,[e.id]:n??!e.getIsVisible()}))},e.getIsVisible=()=>{var n,r;const i=e.columns;return(n=i.length?i.some(a=>a.getIsVisible()):(r=t.getState().columnVisibility)==null?void 0:r[e.id])!=null?n:!0},e.getCanHide=()=>{var n,r;return((n=e.columnDef.enableHiding)!=null?n:!0)&&((r=t.options.enableHiding)!=null?r:!0)},e.getToggleVisibilityHandler=()=>n=>{e.toggleVisibility==null||e.toggleVisibility(n.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=ae(()=>[e.getAllCells(),t.getState().columnVisibility],n=>n.filter(r=>r.column.getIsVisible()),oe(t.options,"debugRows","_getAllVisibleCells")),e.getVisibleCells=ae(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(n,r,i)=>[...n,...r,...i],oe(t.options,"debugRows","getVisibleCells"))},createTable:e=>{const t=(n,r)=>ae(()=>[r(),r().filter(i=>i.getIsVisible()).map(i=>i.id).join("_")],i=>i.filter(a=>a.getIsVisible==null?void 0:a.getIsVisible()),oe(e.options,"debugColumns",n));e.getVisibleFlatColumns=t("getVisibleFlatColumns",()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=t("getVisibleLeafColumns",()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=t("getLeftVisibleLeafColumns",()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=t("getRightVisibleLeafColumns",()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=t("getCenterVisibleLeafColumns",()=>e.getCenterLeafColumns()),e.setColumnVisibility=n=>e.options.onColumnVisibilityChange==null?void 0:e.options.onColumnVisibilityChange(n),e.resetColumnVisibility=n=>{var r;e.setColumnVisibility(n?{}:(r=e.initialState.columnVisibility)!=null?r:{})},e.toggleAllColumnsVisible=n=>{var r;n=(r=n)!=null?r:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((i,a)=>({...i,[a.id]:n||!(a.getCanHide!=null&&a.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(n=>!(n.getIsVisible!=null&&n.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(n=>n.getIsVisible==null?void 0:n.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>n=>{var r;e.toggleAllColumnsVisible((r=n.target)==null?void 0:r.checked)}}};function Yi(e,t){return t?t==="center"?e.getCenterVisibleLeafColumns():t==="left"?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const _b={createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},$b={getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:Gt("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n;const r=(n=e.getCoreRowModel().flatRows[0])==null||(n=n._getAllCellsByColumnId()[t.id])==null?void 0:n.getValue();return typeof r=="string"||typeof r=="number"}}),createColumn:(e,t)=>{e.getCanGlobalFilter=()=>{var n,r,i,a;return((n=e.columnDef.enableGlobalFilter)!=null?n:!0)&&((r=t.options.enableGlobalFilter)!=null?r:!0)&&((i=t.options.enableFilters)!=null?i:!0)&&((a=t.options.getColumnCanGlobalFilter==null?void 0:t.options.getColumnCanGlobalFilter(e))!=null?a:!0)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>kn.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:r}=e.options;return Bo(r)?r:r==="auto"?e.getGlobalAutoFilterFn():(t=(n=e.options.filterFns)==null?void 0:n[r])!=null?t:kn[r]},e.setGlobalFilter=t=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},Rb={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:Gt("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{var r,i;if(!t){e._queue(()=>{t=!0});return}if((r=(i=e.options.autoResetAll)!=null?i:e.options.autoResetExpanded)!=null?r:!e.options.manualExpanding){if(n)return;n=!0,e._queue(()=>{e.resetExpanded(),n=!1})}},e.setExpanded=r=>e.options.onExpandedChange==null?void 0:e.options.onExpandedChange(r),e.toggleAllRowsExpanded=r=>{r??!e.getIsAllRowsExpanded()?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=r=>{var i,a;e.setExpanded(r?{}:(i=(a=e.initialState)==null?void 0:a.expanded)!=null?i:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(r=>r.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>r=>{r.persist==null||r.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const r=e.getState().expanded;return r===!0||Object.values(r).some(Boolean)},e.getIsAllRowsExpanded=()=>{const r=e.getState().expanded;return typeof r=="boolean"?r===!0:!(!Object.keys(r).length||e.getRowModel().flatRows.some(i=>!i.getIsExpanded()))},e.getExpandedDepth=()=>{let r=0;return(e.getState().expanded===!0?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(a=>{const o=a.split(".");r=Math.max(r,o.length)}),r},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=n=>{t.setExpanded(r=>{var i;const a=r===!0?!0:!!(r!=null&&r[e.id]);let o={};if(r===!0?Object.keys(t.getRowModel().rowsById).forEach(s=>{o[s]=!0}):o=r,n=(i=n)!=null?i:!a,!a&&n)return{...o,[e.id]:!0};if(a&&!n){const{[e.id]:s,...l}=o;return l}return r})},e.getIsExpanded=()=>{var n;const r=t.getState().expanded;return!!((n=t.options.getIsRowExpanded==null?void 0:t.options.getIsRowExpanded(e))!=null?n:r===!0||r!=null&&r[e.id])},e.getCanExpand=()=>{var n,r,i;return(n=t.options.getRowCanExpand==null?void 0:t.options.getRowCanExpand(e))!=null?n:((r=t.options.enableExpanding)!=null?r:!0)&&!!((i=e.subRows)!=null&&i.length)},e.getIsAllParentsExpanded=()=>{let n=!0,r=e;for(;n&&r.parentId;)r=t.getRow(r.parentId,!0),n=r.getIsExpanded();return n},e.getToggleExpandedHandler=()=>{const n=e.getCanExpand();return()=>{n&&e.toggleExpanded()}}}},Bc=0,Vc=10,Nu=()=>({pageIndex:Bc,pageSize:Vc}),Ab={getInitialState:e=>({...e,pagination:{...Nu(),...e==null?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:Gt("pagination",e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{var r,i;if(!t){e._queue(()=>{t=!0});return}if((r=(i=e.options.autoResetAll)!=null?i:e.options.autoResetPageIndex)!=null?r:!e.options.manualPagination){if(n)return;n=!0,e._queue(()=>{e.resetPageIndex(),n=!1})}},e.setPagination=r=>{const i=a=>ir(r,a);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(i)},e.resetPagination=r=>{var i;e.setPagination(r?Nu():(i=e.initialState.pagination)!=null?i:Nu())},e.setPageIndex=r=>{e.setPagination(i=>{let a=ir(r,i.pageIndex);const o=typeof e.options.pageCount>"u"||e.options.pageCount===-1?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return a=Math.max(0,Math.min(a,o)),{...i,pageIndex:a}})},e.resetPageIndex=r=>{var i,a;e.setPageIndex(r?Bc:(i=(a=e.initialState)==null||(a=a.pagination)==null?void 0:a.pageIndex)!=null?i:Bc)},e.resetPageSize=r=>{var i,a;e.setPageSize(r?Vc:(i=(a=e.initialState)==null||(a=a.pagination)==null?void 0:a.pageSize)!=null?i:Vc)},e.setPageSize=r=>{e.setPagination(i=>{const a=Math.max(1,ir(r,i.pageSize)),o=i.pageSize*i.pageIndex,s=Math.floor(o/a);return{...i,pageIndex:s,pageSize:a}})},e.setPageCount=r=>e.setPagination(i=>{var a;let o=ir(r,(a=e.options.pageCount)!=null?a:-1);return typeof o=="number"&&(o=Math.max(-1,o)),{...i,pageCount:o}}),e.getPageOptions=ae(()=>[e.getPageCount()],r=>{let i=[];return r&&r>0&&(i=[...new Array(r)].fill(null).map((a,o)=>o)),i},oe(e.options,"debugTable","getPageOptions")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:r}=e.getState().pagination,i=e.getPageCount();return i===-1?!0:i===0?!1:r<i-1},e.previousPage=()=>e.setPageIndex(r=>r-1),e.nextPage=()=>e.setPageIndex(r=>r+1),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var r;return(r=e.options.pageCount)!=null?r:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var r;return(r=e.options.rowCount)!=null?r:e.getPrePaginationRowModel().rows.length}}},Lu=()=>({top:[],bottom:[]}),Fb={getInitialState:e=>({rowPinning:Lu(),...e}),getDefaultOptions:e=>({onRowPinningChange:Gt("rowPinning",e)}),createRow:(e,t)=>{e.pin=(n,r,i)=>{const a=r?e.getLeafRows().map(l=>{let{id:u}=l;return u}):[],o=i?e.getParentRows().map(l=>{let{id:u}=l;return u}):[],s=new Set([...o,e.id,...a]);t.setRowPinning(l=>{var u,c;if(n==="bottom"){var d,h;return{top:((d=l==null?void 0:l.top)!=null?d:[]).filter(m=>!(s!=null&&s.has(m))),bottom:[...((h=l==null?void 0:l.bottom)!=null?h:[]).filter(m=>!(s!=null&&s.has(m))),...Array.from(s)]}}if(n==="top"){var f,g;return{top:[...((f=l==null?void 0:l.top)!=null?f:[]).filter(m=>!(s!=null&&s.has(m))),...Array.from(s)],bottom:((g=l==null?void 0:l.bottom)!=null?g:[]).filter(m=>!(s!=null&&s.has(m)))}}return{top:((u=l==null?void 0:l.top)!=null?u:[]).filter(m=>!(s!=null&&s.has(m))),bottom:((c=l==null?void 0:l.bottom)!=null?c:[]).filter(m=>!(s!=null&&s.has(m)))}})},e.getCanPin=()=>{var n;const{enableRowPinning:r,enablePinning:i}=t.options;return typeof r=="function"?r(e):(n=r??i)!=null?n:!0},e.getIsPinned=()=>{const n=[e.id],{top:r,bottom:i}=t.getState().rowPinning,a=n.some(s=>r==null?void 0:r.includes(s)),o=n.some(s=>i==null?void 0:i.includes(s));return a?"top":o?"bottom":!1},e.getPinnedIndex=()=>{var n,r;const i=e.getIsPinned();if(!i)return-1;const a=(n=i==="top"?t.getTopRows():t.getBottomRows())==null?void 0:n.map(o=>{let{id:s}=o;return s});return(r=a==null?void 0:a.indexOf(e.id))!=null?r:-1}},createTable:e=>{e.setRowPinning=t=>e.options.onRowPinningChange==null?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var n,r;return e.setRowPinning(t?Lu():(n=(r=e.initialState)==null?void 0:r.rowPinning)!=null?n:Lu())},e.getIsSomeRowsPinned=t=>{var n;const r=e.getState().rowPinning;if(!t){var i,a;return!!((i=r.top)!=null&&i.length||(a=r.bottom)!=null&&a.length)}return!!((n=r[t])!=null&&n.length)},e._getPinnedRows=(t,n,r)=>{var i;return((i=e.options.keepPinnedRows)==null||i?(n??[]).map(o=>{const s=e.getRow(o,!0);return s.getIsAllParentsExpanded()?s:null}):(n??[]).map(o=>t.find(s=>s.id===o))).filter(Boolean).map(o=>({...o,position:r}))},e.getTopRows=ae(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,n)=>e._getPinnedRows(t,n,"top"),oe(e.options,"debugRows","getTopRows")),e.getBottomRows=ae(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,n)=>e._getPinnedRows(t,n,"bottom"),oe(e.options,"debugRows","getBottomRows")),e.getCenterRows=ae(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(t,n,r)=>{const i=new Set([...n??[],...r??[]]);return t.filter(a=>!i.has(a.id))},oe(e.options,"debugRows","getCenterRows"))}},Pb={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:Gt("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>e.options.onRowSelectionChange==null?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var n;return e.setRowSelection(t?{}:(n=e.initialState.rowSelection)!=null?n:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection(n=>{t=typeof t<"u"?t:!e.getIsAllRowsSelected();const r={...n},i=e.getPreGroupedRowModel().flatRows;return t?i.forEach(a=>{a.getCanSelect()&&(r[a.id]=!0)}):i.forEach(a=>{delete r[a.id]}),r})},e.toggleAllPageRowsSelected=t=>e.setRowSelection(n=>{const r=typeof t<"u"?t:!e.getIsAllPageRowsSelected(),i={...n};return e.getRowModel().rows.forEach(a=>{Oc(i,a.id,r,!0,e)}),i}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=ae(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?Ls(e,n):{rows:[],flatRows:[],rowsById:{}},oe(e.options,"debugTable","getSelectedRowModel")),e.getFilteredSelectedRowModel=ae(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?Ls(e,n):{rows:[],flatRows:[],rowsById:{}},oe(e.options,"debugTable","getFilteredSelectedRowModel")),e.getGroupedSelectedRowModel=ae(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?Ls(e,n):{rows:[],flatRows:[],rowsById:{}},oe(e.options,"debugTable","getGroupedSelectedRowModel")),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState();let r=!!(t.length&&Object.keys(n).length);return r&&t.some(i=>i.getCanSelect()&&!n[i.id])&&(r=!1),r},e.getIsAllPageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows.filter(i=>i.getCanSelect()),{rowSelection:n}=e.getState();let r=!!t.length;return r&&t.some(i=>!n[i.id])&&(r=!1),r},e.getIsSomeRowsSelected=()=>{var t;const n=Object.keys((t=e.getState().rowSelection)!=null?t:{}).length;return n>0&&n<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows;return e.getIsAllPageRowsSelected()?!1:t.filter(n=>n.getCanSelect()).some(n=>n.getIsSelected()||n.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(n,r)=>{const i=e.getIsSelected();t.setRowSelection(a=>{var o;if(n=typeof n<"u"?n:!i,e.getCanSelect()&&i===n)return a;const s={...a};return Oc(s,e.id,n,(o=r==null?void 0:r.selectChildren)!=null?o:!0,t),s})},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return tu(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return gl(e,n)==="some"},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return gl(e,n)==="all"},e.getCanSelect=()=>{var n;return typeof t.options.enableRowSelection=="function"?t.options.enableRowSelection(e):(n=t.options.enableRowSelection)!=null?n:!0},e.getCanSelectSubRows=()=>{var n;return typeof t.options.enableSubRowSelection=="function"?t.options.enableSubRowSelection(e):(n=t.options.enableSubRowSelection)!=null?n:!0},e.getCanMultiSelect=()=>{var n;return typeof t.options.enableMultiRowSelection=="function"?t.options.enableMultiRowSelection(e):(n=t.options.enableMultiRowSelection)!=null?n:!0},e.getToggleSelectedHandler=()=>{const n=e.getCanSelect();return r=>{var i;n&&e.toggleSelected((i=r.target)==null?void 0:i.checked)}}}},Oc=(e,t,n,r,i)=>{var a;const o=i.getRow(t,!0);n?(o.getCanMultiSelect()||Object.keys(e).forEach(s=>delete e[s]),o.getCanSelect()&&(e[t]=!0)):delete e[t],r&&(a=o.subRows)!=null&&a.length&&o.getCanSelectSubRows()&&o.subRows.forEach(s=>Oc(e,s.id,n,r,i))};function Ls(e,t){const n=e.getState().rowSelection,r=[],i={},a=function(o,s){return o.map(l=>{var u;const c=tu(l,n);if(c&&(r.push(l),i[l.id]=l),(u=l.subRows)!=null&&u.length&&(l={...l,subRows:a(l.subRows)}),c)return l}).filter(Boolean)};return{rows:a(t.rows),flatRows:r,rowsById:i}}function tu(e,t){var n;return(n=t[e.id])!=null?n:!1}function gl(e,t,n){var r;if(!((r=e.subRows)!=null&&r.length))return!1;let i=!0,a=!1;return e.subRows.forEach(o=>{if(!(a&&!i)&&(o.getCanSelect()&&(tu(o,t)?a=!0:i=!1),o.subRows&&o.subRows.length)){const s=gl(o,t);s==="all"?a=!0:(s==="some"&&(a=!0),i=!1)}}),i?"all":a?"some":!1}const ml=/([0-9]+)/gm,z5=(e,t,n)=>Tb(Fr(e.getValue(n)).toLowerCase(),Fr(t.getValue(n)).toLowerCase()),G5=(e,t,n)=>Tb(Fr(e.getValue(n)),Fr(t.getValue(n))),Z5=(e,t,n)=>Yd(Fr(e.getValue(n)).toLowerCase(),Fr(t.getValue(n)).toLowerCase()),X5=(e,t,n)=>Yd(Fr(e.getValue(n)),Fr(t.getValue(n))),Y5=(e,t,n)=>{const r=e.getValue(n),i=t.getValue(n);return r>i?1:r<i?-1:0},U5=(e,t,n)=>Yd(e.getValue(n),t.getValue(n));function Yd(e,t){return e===t?0:e>t?1:-1}function Fr(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function Tb(e,t){const n=e.split(ml).filter(Boolean),r=t.split(ml).filter(Boolean);for(;n.length&&r.length;){const i=n.shift(),a=r.shift(),o=parseInt(i,10),s=parseInt(a,10),l=[o,s].sort();if(isNaN(l[0])){if(i>a)return 1;if(a>i)return-1;continue}if(isNaN(l[1]))return isNaN(o)?-1:1;if(o>s)return 1;if(s>o)return-1}return n.length-r.length}const Wi={alphanumeric:z5,alphanumericCaseSensitive:G5,text:Z5,textCaseSensitive:X5,datetime:Y5,basic:U5},Mb={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:Gt("sorting",e),isMultiSortEvent:t=>t.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{const n=t.getFilteredRowModel().flatRows.slice(10);let r=!1;for(const i of n){const a=i==null?void 0:i.getValue(e.id);if(Object.prototype.toString.call(a)==="[object Date]")return Wi.datetime;if(typeof a=="string"&&(r=!0,a.split(ml).length>1))return Wi.alphanumeric}return r?Wi.text:Wi.basic},e.getAutoSortDir=()=>{const n=t.getFilteredRowModel().flatRows[0];return typeof(n==null?void 0:n.getValue(e.id))=="string"?"asc":"desc"},e.getSortingFn=()=>{var n,r;if(!e)throw new Error;return Bo(e.columnDef.sortingFn)?e.columnDef.sortingFn:e.columnDef.sortingFn==="auto"?e.getAutoSortingFn():(n=(r=t.options.sortingFns)==null?void 0:r[e.columnDef.sortingFn])!=null?n:Wi[e.columnDef.sortingFn]},e.toggleSorting=(n,r)=>{const i=e.getNextSortingOrder(),a=typeof n<"u"&&n!==null;t.setSorting(o=>{const s=o==null?void 0:o.find(f=>f.id===e.id),l=o==null?void 0:o.findIndex(f=>f.id===e.id);let u=[],c,d=a?n:i==="desc";if(o!=null&&o.length&&e.getCanMultiSort()&&r?s?c="toggle":c="add":o!=null&&o.length&&l!==o.length-1?c="replace":s?c="toggle":c="replace",c==="toggle"&&(a||i||(c="remove")),c==="add"){var h;u=[...o,{id:e.id,desc:d}],u.splice(0,u.length-((h=t.options.maxMultiSortColCount)!=null?h:Number.MAX_SAFE_INTEGER))}else c==="toggle"?u=o.map(f=>f.id===e.id?{...f,desc:d}:f):c==="remove"?u=o.filter(f=>f.id!==e.id):u=[{id:e.id,desc:d}];return u})},e.getFirstSortDir=()=>{var n,r;return((n=(r=e.columnDef.sortDescFirst)!=null?r:t.options.sortDescFirst)!=null?n:e.getAutoSortDir()==="desc")?"desc":"asc"},e.getNextSortingOrder=n=>{var r,i;const a=e.getFirstSortDir(),o=e.getIsSorted();return o?o!==a&&((r=t.options.enableSortingRemoval)==null||r)&&(!(n&&(i=t.options.enableMultiRemove)!=null)||i)?!1:o==="desc"?"asc":"desc":a},e.getCanSort=()=>{var n,r;return((n=e.columnDef.enableSorting)!=null?n:!0)&&((r=t.options.enableSorting)!=null?r:!0)&&!!e.accessorFn},e.getCanMultiSort=()=>{var n,r;return(n=(r=e.columnDef.enableMultiSort)!=null?r:t.options.enableMultiSort)!=null?n:!!e.accessorFn},e.getIsSorted=()=>{var n;const r=(n=t.getState().sorting)==null?void 0:n.find(i=>i.id===e.id);return r?r.desc?"desc":"asc":!1},e.getSortIndex=()=>{var n,r;return(n=(r=t.getState().sorting)==null?void 0:r.findIndex(i=>i.id===e.id))!=null?n:-1},e.clearSorting=()=>{t.setSorting(n=>n!=null&&n.length?n.filter(r=>r.id!==e.id):[])},e.getToggleSortingHandler=()=>{const n=e.getCanSort();return r=>{n&&(r.persist==null||r.persist(),e.toggleSorting==null||e.toggleSorting(void 0,e.getCanMultiSort()?t.options.isMultiSortEvent==null?void 0:t.options.isMultiSortEvent(r):!1))}}},createTable:e=>{e.setSorting=t=>e.options.onSortingChange==null?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var n,r;e.setSorting(t?[]:(n=(r=e.initialState)==null?void 0:r.sorting)!=null?n:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},J5=[ub,Ib,wb,Db,cb,yb,_b,$b,Mb,xb,Rb,Ab,Fb,Pb,Sb];function kb(e){var t,n;process.env.NODE_ENV!=="production"&&(e.debugAll||e.debugTable)&&console.info("Creating Table Instance...");const r=[...J5,...(t=e._features)!=null?t:[]];let i={_features:r};const a=i._features.reduce((h,f)=>Object.assign(h,f.getDefaultOptions==null?void 0:f.getDefaultOptions(i)),{}),o=h=>i.options.mergeOptions?i.options.mergeOptions(a,h):{...a,...h};let l={...{},...(n=e.initialState)!=null?n:{}};i._features.forEach(h=>{var f;l=(f=h.getInitialState==null?void 0:h.getInitialState(l))!=null?f:l});const u=[];let c=!1;const d={_features:r,options:{...a,...e},initialState:l,_queue:h=>{u.push(h),c||(c=!0,Promise.resolve().then(()=>{for(;u.length;)u.shift()();c=!1}).catch(f=>setTimeout(()=>{throw f})))},reset:()=>{i.setState(i.initialState)},setOptions:h=>{const f=ir(h,i.options);i.options=o(f)},getState:()=>i.options.state,setState:h=>{i.options.onStateChange==null||i.options.onStateChange(h)},_getRowId:(h,f,g)=>{var m;return(m=i.options.getRowId==null?void 0:i.options.getRowId(h,f,g))!=null?m:`${g?[g.id,f].join("."):f}`},getCoreRowModel:()=>(i._getCoreRowModel||(i._getCoreRowModel=i.options.getCoreRowModel(i)),i._getCoreRowModel()),getRowModel:()=>i.getPaginationRowModel(),getRow:(h,f)=>{let g=(f?i.getPrePaginationRowModel():i.getRowModel()).rowsById[h];if(!g&&(g=i.getCoreRowModel().rowsById[h],!g))throw process.env.NODE_ENV!=="production"?new Error(`getRow could not find row with ID: ${h}`):new Error;return g},_getDefaultColumnDef:ae(()=>[i.options.defaultColumn],h=>{var f;return h=(f=h)!=null?f:{},{header:g=>{const m=g.header.column.columnDef;return m.accessorKey?m.accessorKey:m.accessorFn?m.id:null},cell:g=>{var m,p;return(m=(p=g.renderValue())==null||p.toString==null?void 0:p.toString())!=null?m:null},...i._features.reduce((g,m)=>Object.assign(g,m.getDefaultColumnDef==null?void 0:m.getDefaultColumnDef()),{}),...h}},oe(e,"debugColumns","_getDefaultColumnDef")),_getColumnDefs:()=>i.options.columns,getAllColumns:ae(()=>[i._getColumnDefs()],h=>{const f=function(g,m,p){return p===void 0&&(p=0),g.map(b=>{const v=lb(i,b,p,m),y=b;return v.columns=y.columns?f(y.columns,v,p+1):[],v})};return f(h)},oe(e,"debugColumns","getAllColumns")),getAllFlatColumns:ae(()=>[i.getAllColumns()],h=>h.flatMap(f=>f.getFlatColumns()),oe(e,"debugColumns","getAllFlatColumns")),_getAllFlatColumnsById:ae(()=>[i.getAllFlatColumns()],h=>h.reduce((f,g)=>(f[g.id]=g,f),{}),oe(e,"debugColumns","getAllFlatColumnsById")),getAllLeafColumns:ae(()=>[i.getAllColumns(),i._getOrderColumnsFn()],(h,f)=>{let g=h.flatMap(m=>m.getLeafColumns());return f(g)},oe(e,"debugColumns","getAllLeafColumns")),getColumn:h=>{const f=i._getAllFlatColumnsById()[h];return process.env.NODE_ENV!=="production"&&!f&&console.error(`[Table] Column with id '${h}' does not exist.`),f}};Object.assign(i,d);for(let h=0;h<i._features.length;h++){const f=i._features[h];f==null||f.createTable==null||f.createTable(i)}return i}function K5(){return e=>ae(()=>[e.options.data],t=>{const n={rows:[],flatRows:[],rowsById:{}},r=function(i,a,o){a===void 0&&(a=0);const s=[];for(let u=0;u<i.length;u++){const c=Vo(e,e._getRowId(i[u],u,o),i[u],u,a,void 0,o==null?void 0:o.id);if(n.flatRows.push(c),n.rowsById[c.id]=c,s.push(c),e.options.getSubRows){var l;c.originalSubRows=e.options.getSubRows(i[u],u),(l=c.originalSubRows)!=null&&l.length&&(c.subRows=r(c.originalSubRows,a+1,c))}}return s};return n.rows=r(t),n},oe(e.options,"debugTable","getRowModel",()=>e._autoResetPageIndex()))}function Q5(){return e=>ae(()=>[e.getState().expanded,e.getPreExpandedRowModel(),e.options.paginateExpandedRows],(t,n,r)=>!n.rows.length||t!==!0&&!Object.keys(t??{}).length||!r?n:Ud(n),oe(e.options,"debugTable","getExpandedRowModel"))}function Ud(e){const t=[],n=r=>{var i;t.push(r),(i=r.subRows)!=null&&i.length&&r.getIsExpanded()&&r.subRows.forEach(n)};return e.rows.forEach(n),{rows:t,flatRows:e.flatRows,rowsById:e.rowsById}}function q5(){return(e,t)=>ae(()=>{var n;return[(n=e.getColumn(t))==null?void 0:n.getFacetedRowModel()]},n=>{var r;if(!n)return;const i=(r=n.flatRows[0])==null?void 0:r.getUniqueValues(t);if(typeof i>"u")return;let a=[i,i];for(let o=0;o<n.flatRows.length;o++){const s=n.flatRows[o].getUniqueValues(t);for(let l=0;l<s.length;l++){const u=s[l];u<a[0]?a[0]=u:u>a[1]&&(a[1]=u)}}return a},oe(e.options,"debugTable","getFacetedMinMaxValues"))}function Bb(e,t,n){return n.options.filterFromLeafRows?eS(e,t,n):tS(e,t,n)}function eS(e,t,n){var r;const i=[],a={},o=(r=n.options.maxLeafRowFilterDepth)!=null?r:100,s=function(l,u){u===void 0&&(u=0);const c=[];for(let h=0;h<l.length;h++){var d;let f=l[h];const g=Vo(n,f.id,f.original,f.index,f.depth,void 0,f.parentId);if(g.columnFilters=f.columnFilters,(d=f.subRows)!=null&&d.length&&u<o){if(g.subRows=s(f.subRows,u+1),f=g,t(f)&&!g.subRows.length){c.push(f),a[f.id]=f,i.push(f);continue}if(t(f)||g.subRows.length){c.push(f),a[f.id]=f,i.push(f);continue}}else f=g,t(f)&&(c.push(f),a[f.id]=f,i.push(f))}return c};return{rows:s(e),flatRows:i,rowsById:a}}function tS(e,t,n){var r;const i=[],a={},o=(r=n.options.maxLeafRowFilterDepth)!=null?r:100,s=function(l,u){u===void 0&&(u=0);const c=[];for(let h=0;h<l.length;h++){let f=l[h];if(t(f)){var d;if((d=f.subRows)!=null&&d.length&&u<o){const m=Vo(n,f.id,f.original,f.index,f.depth,void 0,f.parentId);m.subRows=s(f.subRows,u+1),f=m}c.push(f),i.push(f),a[f.id]=f}}return c};return{rows:s(e),flatRows:i,rowsById:a}}function nS(){return(e,t)=>ae(()=>[e.getPreFilteredRowModel(),e.getState().columnFilters,e.getState().globalFilter,e.getFilteredRowModel()],(n,r,i)=>{if(!n.rows.length||!(r!=null&&r.length)&&!i)return n;const a=[...r.map(s=>s.id).filter(s=>s!==t),i?"__global__":void 0].filter(Boolean),o=s=>{for(let l=0;l<a.length;l++)if(s.columnFilters[a[l]]===!1)return!1;return!0};return Bb(n.rows,o,e)},oe(e.options,"debugTable","getFacetedRowModel"))}function rS(){return(e,t)=>ae(()=>{var n;return[(n=e.getColumn(t))==null?void 0:n.getFacetedRowModel()]},n=>{if(!n)return new Map;let r=new Map;for(let a=0;a<n.flatRows.length;a++){const o=n.flatRows[a].getUniqueValues(t);for(let s=0;s<o.length;s++){const l=o[s];if(r.has(l)){var i;r.set(l,((i=r.get(l))!=null?i:0)+1)}else r.set(l,1)}}return r},oe(e.options,"debugTable",`getFacetedUniqueValues_${t}`))}function iS(){return e=>ae(()=>[e.getPreFilteredRowModel(),e.getState().columnFilters,e.getState().globalFilter],(t,n,r)=>{if(!t.rows.length||!(n!=null&&n.length)&&!r){for(let h=0;h<t.flatRows.length;h++)t.flatRows[h].columnFilters={},t.flatRows[h].columnFiltersMeta={};return t}const i=[],a=[];(n??[]).forEach(h=>{var f;const g=e.getColumn(h.id);if(!g)return;const m=g.getFilterFn();if(!m){process.env.NODE_ENV!=="production"&&console.warn(`Could not find a valid 'column.filterFn' for column with the ID: ${g.id}.`);return}i.push({id:h.id,filterFn:m,resolvedValue:(f=m.resolveFilterValue==null?void 0:m.resolveFilterValue(h.value))!=null?f:h.value})});const o=(n??[]).map(h=>h.id),s=e.getGlobalFilterFn(),l=e.getAllLeafColumns().filter(h=>h.getCanGlobalFilter());r&&s&&l.length&&(o.push("__global__"),l.forEach(h=>{var f;a.push({id:h.id,filterFn:s,resolvedValue:(f=s.resolveFilterValue==null?void 0:s.resolveFilterValue(r))!=null?f:r})}));let u,c;for(let h=0;h<t.flatRows.length;h++){const f=t.flatRows[h];if(f.columnFilters={},i.length)for(let g=0;g<i.length;g++){u=i[g];const m=u.id;f.columnFilters[m]=u.filterFn(f,m,u.resolvedValue,p=>{f.columnFiltersMeta[m]=p})}if(a.length){for(let g=0;g<a.length;g++){c=a[g];const m=c.id;if(c.filterFn(f,m,c.resolvedValue,p=>{f.columnFiltersMeta[m]=p})){f.columnFilters.__global__=!0;break}}f.columnFilters.__global__!==!0&&(f.columnFilters.__global__=!1)}}const d=h=>{for(let f=0;f<o.length;f++)if(h.columnFilters[o[f]]===!1)return!1;return!0};return Bb(t.rows,d,e)},oe(e.options,"debugTable","getFilteredRowModel",()=>e._autoResetPageIndex()))}function aS(){return e=>ae(()=>[e.getState().grouping,e.getPreGroupedRowModel()],(t,n)=>{if(!n.rows.length||!t.length)return n;const r=t.filter(l=>e.getColumn(l)),i=[],a={},o=function(l,u,c){if(u===void 0&&(u=0),u>=r.length)return l.map(g=>(g.depth=u,i.push(g),a[g.id]=g,g.subRows&&(g.subRows=o(g.subRows,u+1,g.id)),g));const d=r[u],h=oS(l,d);return Array.from(h.entries()).map((g,m)=>{let[p,b]=g,v=`${d}:${p}`;v=c?`${c}>${v}`:v;const y=o(b,u+1,v),w=u?Zd(b,E=>E.subRows):b,C=Vo(e,v,w[0].original,m,u,void 0,c);return Object.assign(C,{groupingColumnId:d,groupingValue:p,subRows:y,leafRows:w,getValue:E=>{if(r.includes(E)){if(C._valuesCache.hasOwnProperty(E))return C._valuesCache[E];if(b[0]){var I;C._valuesCache[E]=(I=b[0].getValue(E))!=null?I:void 0}return C._valuesCache[E]}if(C._groupingValuesCache.hasOwnProperty(E))return C._groupingValuesCache[E];const D=e.getColumn(E),_=D==null?void 0:D.getAggregationFn();if(_)return C._groupingValuesCache[E]=_(E,w,b),C._groupingValuesCache[E]}}),y.forEach(E=>{i.push(E),a[E.id]=E}),C})},s=o(n.rows,0);return s.forEach(l=>{i.push(l),a[l.id]=l}),{rows:s,flatRows:i,rowsById:a}},oe(e.options,"debugTable","getGroupedRowModel",()=>{e._queue(()=>{e._autoResetExpanded(),e._autoResetPageIndex()})}))}function oS(e,t){const n=new Map;return e.reduce((r,i)=>{const a=`${i.getGroupingValue(t)}`,o=r.get(a);return o?o.push(i):r.set(a,[i]),r},n)}function sS(e){return t=>ae(()=>[t.getState().pagination,t.getPrePaginationRowModel(),t.options.paginateExpandedRows?void 0:t.getState().expanded],(n,r)=>{if(!r.rows.length)return r;const{pageSize:i,pageIndex:a}=n;let{rows:o,flatRows:s,rowsById:l}=r;const u=i*a,c=u+i;o=o.slice(u,c);let d;t.options.paginateExpandedRows?d={rows:o,flatRows:s,rowsById:l}:d=Ud({rows:o,flatRows:s,rowsById:l}),d.flatRows=[];const h=f=>{d.flatRows.push(f),f.subRows.length&&f.subRows.forEach(h)};return d.rows.forEach(h),d},oe(t.options,"debugTable","getPaginationRowModel"))}function lS(){return e=>ae(()=>[e.getState().sorting,e.getPreSortedRowModel()],(t,n)=>{if(!n.rows.length||!(t!=null&&t.length))return n;const r=e.getState().sorting,i=[],a=r.filter(l=>{var u;return(u=e.getColumn(l.id))==null?void 0:u.getCanSort()}),o={};a.forEach(l=>{const u=e.getColumn(l.id);u&&(o[l.id]={sortUndefined:u.columnDef.sortUndefined,invertSorting:u.columnDef.invertSorting,sortingFn:u.getSortingFn()})});const s=l=>{const u=l.map(c=>({...c}));return u.sort((c,d)=>{for(let f=0;f<a.length;f+=1){var h;const g=a[f],m=o[g.id],p=m.sortUndefined,b=(h=g==null?void 0:g.desc)!=null?h:!1;let v=0;if(p){const y=c.getValue(g.id),w=d.getValue(g.id),C=y===void 0,E=w===void 0;if(C||E){if(p==="first")return C?-1:1;if(p==="last")return C?1:-1;v=C&&E?0:C?p:-p}}if(v===0&&(v=m.sortingFn(c,d,g.id)),v!==0)return b&&(v*=-1),m.invertSorting&&(v*=-1),v}return c.index-d.index}),u.forEach(c=>{var d;i.push(c),(d=c.subRows)!=null&&d.length&&(c.subRows=s(c.subRows))}),u};return{rows:s(n.rows),flatRows:i,rowsById:n.rowsById}},oe(e.options,"debugTable","getSortedRowModel",()=>e._autoResetPageIndex()))}/**
|
62
|
+
color: hsl(${Math.max(0,Math.min(120-120*h,120))}deg 100% 31%);`,n==null?void 0:n.key)}return i}}function oe(e,t,n,r){return{debug:()=>{var i;return(i=e==null?void 0:e.debugAll)!=null?i:e[t]},key:process.env.NODE_ENV==="development"&&n,onChange:r}}function sb(e,t,n,r){const i=()=>{var o;return(o=a.getValue())!=null?o:e.options.renderFallbackValue},a={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(r),renderValue:i,getContext:ae(()=>[e,n,t,a],(o,s,l,u)=>({table:o,column:s,row:l,cell:u,getValue:u.getValue,renderValue:u.renderValue}),oe(e.options,"debugCells","cell.getContext"))};return e._features.forEach(o=>{o.createCell==null||o.createCell(a,n,t,e)},{}),a}function lb(e,t,n,r){var i,a;const s={...e._getDefaultColumnDef(),...t},l=s.accessorKey;let u=(i=(a=s.id)!=null?a:l?l.replace(".","_"):void 0)!=null?i:typeof s.header=="string"?s.header:void 0,c;if(s.accessorFn?c=s.accessorFn:l&&(l.includes(".")?c=h=>{let f=h;for(const m of l.split(".")){var g;f=(g=f)==null?void 0:g[m],process.env.NODE_ENV!=="production"&&f===void 0&&console.warn(`"${m}" in deeply nested key "${l}" returned undefined.`)}return f}:c=h=>h[s.accessorKey]),!u)throw process.env.NODE_ENV!=="production"?new Error(s.accessorFn?"Columns require an id when using an accessorFn":"Columns require an id when using a non-string header"):new Error;let d={id:`${String(u)}`,accessorFn:c,parent:r,depth:n,columnDef:s,columns:[],getFlatColumns:ae(()=>[!0],()=>{var h;return[d,...(h=d.columns)==null?void 0:h.flatMap(f=>f.getFlatColumns())]},oe(e.options,"debugColumns","column.getFlatColumns")),getLeafColumns:ae(()=>[e._getOrderColumnsFn()],h=>{var f;if((f=d.columns)!=null&&f.length){let g=d.columns.flatMap(m=>m.getLeafColumns());return h(g)}return[d]},oe(e.options,"debugColumns","column.getLeafColumns"))};for(const h of e._features)h.createColumn==null||h.createColumn(d,e);return d}const St="debugHeaders";function og(e,t,n){var r;let a={id:(r=n.id)!=null?r:t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const o=[],s=l=>{l.subHeaders&&l.subHeaders.length&&l.subHeaders.map(s),o.push(l)};return s(a),o},getContext:()=>({table:e,header:a,column:t})};return e._features.forEach(o=>{o.createHeader==null||o.createHeader(a,e)}),a}const ub={createTable:e=>{e.getHeaderGroups=ae(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,i)=>{var a,o;const s=(a=r==null?void 0:r.map(d=>n.find(h=>h.id===d)).filter(Boolean))!=null?a:[],l=(o=i==null?void 0:i.map(d=>n.find(h=>h.id===d)).filter(Boolean))!=null?o:[],u=n.filter(d=>!(r!=null&&r.includes(d.id))&&!(i!=null&&i.includes(d.id)));return Ra(t,[...s,...u,...l],e)},oe(e.options,St,"getHeaderGroups")),e.getCenterHeaderGroups=ae(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,i)=>(n=n.filter(a=>!(r!=null&&r.includes(a.id))&&!(i!=null&&i.includes(a.id))),Ra(t,n,e,"center")),oe(e.options,St,"getCenterHeaderGroups")),e.getLeftHeaderGroups=ae(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,n,r)=>{var i;const a=(i=r==null?void 0:r.map(o=>n.find(s=>s.id===o)).filter(Boolean))!=null?i:[];return Ra(t,a,e,"left")},oe(e.options,St,"getLeftHeaderGroups")),e.getRightHeaderGroups=ae(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,n,r)=>{var i;const a=(i=r==null?void 0:r.map(o=>n.find(s=>s.id===o)).filter(Boolean))!=null?i:[];return Ra(t,a,e,"right")},oe(e.options,St,"getRightHeaderGroups")),e.getFooterGroups=ae(()=>[e.getHeaderGroups()],t=>[...t].reverse(),oe(e.options,St,"getFooterGroups")),e.getLeftFooterGroups=ae(()=>[e.getLeftHeaderGroups()],t=>[...t].reverse(),oe(e.options,St,"getLeftFooterGroups")),e.getCenterFooterGroups=ae(()=>[e.getCenterHeaderGroups()],t=>[...t].reverse(),oe(e.options,St,"getCenterFooterGroups")),e.getRightFooterGroups=ae(()=>[e.getRightHeaderGroups()],t=>[...t].reverse(),oe(e.options,St,"getRightFooterGroups")),e.getFlatHeaders=ae(()=>[e.getHeaderGroups()],t=>t.map(n=>n.headers).flat(),oe(e.options,St,"getFlatHeaders")),e.getLeftFlatHeaders=ae(()=>[e.getLeftHeaderGroups()],t=>t.map(n=>n.headers).flat(),oe(e.options,St,"getLeftFlatHeaders")),e.getCenterFlatHeaders=ae(()=>[e.getCenterHeaderGroups()],t=>t.map(n=>n.headers).flat(),oe(e.options,St,"getCenterFlatHeaders")),e.getRightFlatHeaders=ae(()=>[e.getRightHeaderGroups()],t=>t.map(n=>n.headers).flat(),oe(e.options,St,"getRightFlatHeaders")),e.getCenterLeafHeaders=ae(()=>[e.getCenterFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),oe(e.options,St,"getCenterLeafHeaders")),e.getLeftLeafHeaders=ae(()=>[e.getLeftFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),oe(e.options,St,"getLeftLeafHeaders")),e.getRightLeafHeaders=ae(()=>[e.getRightFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),oe(e.options,St,"getRightLeafHeaders")),e.getLeafHeaders=ae(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(t,n,r)=>{var i,a,o,s,l,u;return[...(i=(a=t[0])==null?void 0:a.headers)!=null?i:[],...(o=(s=n[0])==null?void 0:s.headers)!=null?o:[],...(l=(u=r[0])==null?void 0:u.headers)!=null?l:[]].map(c=>c.getLeafHeaders()).flat()},oe(e.options,St,"getLeafHeaders"))}};function Ra(e,t,n,r){var i,a;let o=0;const s=function(h,f){f===void 0&&(f=1),o=Math.max(o,f),h.filter(g=>g.getIsVisible()).forEach(g=>{var m;(m=g.columns)!=null&&m.length&&s(g.columns,f+1)},0)};s(e);let l=[];const u=(h,f)=>{const g={depth:f,id:[r,`${f}`].filter(Boolean).join("_"),headers:[]},m=[];h.forEach(p=>{const b=[...m].reverse()[0],v=p.column.depth===g.depth;let y,w=!1;if(v&&p.column.parent?y=p.column.parent:(y=p.column,w=!0),b&&(b==null?void 0:b.column)===y)b.subHeaders.push(p);else{const C=og(n,y,{id:[r,f,y.id,p==null?void 0:p.id].filter(Boolean).join("_"),isPlaceholder:w,placeholderId:w?`${m.filter(E=>E.column===y).length}`:void 0,depth:f,index:m.length});C.subHeaders.push(p),m.push(C)}g.headers.push(p),p.headerGroup=g}),l.push(g),f>0&&u(m,f-1)},c=t.map((h,f)=>og(n,h,{depth:o,index:f}));u(c,o-1),l.reverse();const d=h=>h.filter(g=>g.column.getIsVisible()).map(g=>{let m=0,p=0,b=[0];g.subHeaders&&g.subHeaders.length?(b=[],d(g.subHeaders).forEach(y=>{let{colSpan:w,rowSpan:C}=y;m+=w,b.push(C)})):m=1;const v=Math.min(...b);return p=p+v,g.colSpan=m,g.rowSpan=p,{colSpan:m,rowSpan:p}});return d((i=(a=l[0])==null?void 0:a.headers)!=null?i:[]),l}const Vo=(e,t,n,r,i,a,o)=>{let s={id:t,index:r,original:n,depth:i,parentId:o,_valuesCache:{},_uniqueValuesCache:{},getValue:l=>{if(s._valuesCache.hasOwnProperty(l))return s._valuesCache[l];const u=e.getColumn(l);if(u!=null&&u.accessorFn)return s._valuesCache[l]=u.accessorFn(s.original,r),s._valuesCache[l]},getUniqueValues:l=>{if(s._uniqueValuesCache.hasOwnProperty(l))return s._uniqueValuesCache[l];const u=e.getColumn(l);if(u!=null&&u.accessorFn)return u.columnDef.getUniqueValues?(s._uniqueValuesCache[l]=u.columnDef.getUniqueValues(s.original,r),s._uniqueValuesCache[l]):(s._uniqueValuesCache[l]=[s.getValue(l)],s._uniqueValuesCache[l])},renderValue:l=>{var u;return(u=s.getValue(l))!=null?u:e.options.renderFallbackValue},subRows:a??[],getLeafRows:()=>Zd(s.subRows,l=>l.subRows),getParentRow:()=>s.parentId?e.getRow(s.parentId,!0):void 0,getParentRows:()=>{let l=[],u=s;for(;;){const c=u.getParentRow();if(!c)break;l.push(c),u=c}return l.reverse()},getAllCells:ae(()=>[e.getAllLeafColumns()],l=>l.map(u=>sb(e,s,u,u.id)),oe(e.options,"debugRows","getAllCells")),_getAllCellsByColumnId:ae(()=>[s.getAllCells()],l=>l.reduce((u,c)=>(u[c.column.id]=c,u),{}),oe(e.options,"debugRows","getAllCellsByColumnId"))};for(let l=0;l<e._features.length;l++){const u=e._features[l];u==null||u.createRow==null||u.createRow(s,e)}return s},cb={createColumn:(e,t)=>{e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},db=(e,t,n)=>{var r;const i=n.toLowerCase();return!!(!((r=e.getValue(t))==null||(r=r.toString())==null||(r=r.toLowerCase())==null)&&r.includes(i))};db.autoRemove=e=>Dn(e);const fb=(e,t,n)=>{var r;return!!(!((r=e.getValue(t))==null||(r=r.toString())==null)&&r.includes(n))};fb.autoRemove=e=>Dn(e);const hb=(e,t,n)=>{var r;return((r=e.getValue(t))==null||(r=r.toString())==null?void 0:r.toLowerCase())===(n==null?void 0:n.toLowerCase())};hb.autoRemove=e=>Dn(e);const gb=(e,t,n)=>{var r;return(r=e.getValue(t))==null?void 0:r.includes(n)};gb.autoRemove=e=>Dn(e)||!(e!=null&&e.length);const mb=(e,t,n)=>!n.some(r=>{var i;return!((i=e.getValue(t))!=null&&i.includes(r))});mb.autoRemove=e=>Dn(e)||!(e!=null&&e.length);const pb=(e,t,n)=>n.some(r=>{var i;return(i=e.getValue(t))==null?void 0:i.includes(r)});pb.autoRemove=e=>Dn(e)||!(e!=null&&e.length);const bb=(e,t,n)=>e.getValue(t)===n;bb.autoRemove=e=>Dn(e);const vb=(e,t,n)=>e.getValue(t)==n;vb.autoRemove=e=>Dn(e);const Xd=(e,t,n)=>{let[r,i]=n;const a=e.getValue(t);return a>=r&&a<=i};Xd.resolveFilterValue=e=>{let[t,n]=e,r=typeof t!="number"?parseFloat(t):t,i=typeof n!="number"?parseFloat(n):n,a=t===null||Number.isNaN(r)?-1/0:r,o=n===null||Number.isNaN(i)?1/0:i;if(a>o){const s=a;a=o,o=s}return[a,o]};Xd.autoRemove=e=>Dn(e)||Dn(e[0])&&Dn(e[1]);const Mn={includesString:db,includesStringSensitive:fb,equalsString:hb,arrIncludes:gb,arrIncludesAll:mb,arrIncludesSome:pb,equals:bb,weakEquals:vb,inNumberRange:Xd};function Dn(e){return e==null||e===""}const yb={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:Gt("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=n==null?void 0:n.getValue(e.id);return typeof r=="string"?Mn.includesString:typeof r=="number"?Mn.inNumberRange:typeof r=="boolean"||r!==null&&typeof r=="object"?Mn.equals:Array.isArray(r)?Mn.arrIncludes:Mn.weakEquals},e.getFilterFn=()=>{var n,r;return Bo(e.columnDef.filterFn)?e.columnDef.filterFn:e.columnDef.filterFn==="auto"?e.getAutoFilterFn():(n=(r=t.options.filterFns)==null?void 0:r[e.columnDef.filterFn])!=null?n:Mn[e.columnDef.filterFn]},e.getCanFilter=()=>{var n,r,i;return((n=e.columnDef.enableColumnFilter)!=null?n:!0)&&((r=t.options.enableColumnFilters)!=null?r:!0)&&((i=t.options.enableFilters)!=null?i:!0)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return(n=t.getState().columnFilters)==null||(n=n.find(r=>r.id===e.id))==null?void 0:n.value},e.getFilterIndex=()=>{var n,r;return(n=(r=t.getState().columnFilters)==null?void 0:r.findIndex(i=>i.id===e.id))!=null?n:-1},e.setFilterValue=n=>{t.setColumnFilters(r=>{const i=e.getFilterFn(),a=r==null?void 0:r.find(c=>c.id===e.id),o=ir(n,a?a.value:void 0);if(Mc(i,o,e)){var s;return(s=r==null?void 0:r.filter(c=>c.id!==e.id))!=null?s:[]}const l={id:e.id,value:o};if(a){var u;return(u=r==null?void 0:r.map(c=>c.id===e.id?l:c))!=null?u:[]}return r!=null&&r.length?[...r,l]:[l]})}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{const n=e.getAllLeafColumns(),r=i=>{var a;return(a=ir(t,i))==null?void 0:a.filter(o=>{const s=n.find(l=>l.id===o.id);if(s){const l=s.getFilterFn();if(Mc(l,o.value,s))return!1}return!0})};e.options.onColumnFiltersChange==null||e.options.onColumnFiltersChange(r)},e.resetColumnFilters=t=>{var n,r;e.setColumnFilters(t?[]:(n=(r=e.initialState)==null?void 0:r.columnFilters)!=null?n:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel())}};function Mc(e,t,n){return(e&&e.autoRemove?e.autoRemove(t,n):!1)||typeof t>"u"||typeof t=="string"&&!t}const M5=(e,t,n)=>n.reduce((r,i)=>{const a=i.getValue(e);return r+(typeof a=="number"?a:0)},0),B5=(e,t,n)=>{let r;return n.forEach(i=>{const a=i.getValue(e);a!=null&&(r>a||r===void 0&&a>=a)&&(r=a)}),r},V5=(e,t,n)=>{let r;return n.forEach(i=>{const a=i.getValue(e);a!=null&&(r<a||r===void 0&&a>=a)&&(r=a)}),r},O5=(e,t,n)=>{let r,i;return n.forEach(a=>{const o=a.getValue(e);o!=null&&(r===void 0?o>=o&&(r=i=o):(r>o&&(r=o),i<o&&(i=o)))}),[r,i]},N5=(e,t)=>{let n=0,r=0;if(t.forEach(i=>{let a=i.getValue(e);a!=null&&(a=+a)>=a&&(++n,r+=a)}),n)return r/n},L5=(e,t)=>{if(!t.length)return;const n=t.map(a=>a.getValue(e));if(!ob(n))return;if(n.length===1)return n[0];const r=Math.floor(n.length/2),i=n.sort((a,o)=>a-o);return n.length%2!==0?i[r]:(i[r-1]+i[r])/2},j5=(e,t)=>Array.from(new Set(t.map(n=>n.getValue(e))).values()),H5=(e,t)=>new Set(t.map(n=>n.getValue(e))).size,W5=(e,t)=>t.length,Ns={sum:M5,min:B5,max:V5,extent:O5,mean:N5,median:L5,unique:j5,uniqueCount:H5,count:W5},xb={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return(t=(n=e.getValue())==null||n.toString==null?void 0:n.toString())!=null?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:Gt("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping(n=>n!=null&&n.includes(e.id)?n.filter(r=>r!==e.id):[...n??[],e.id])},e.getCanGroup=()=>{var n,r;return((n=e.columnDef.enableGrouping)!=null?n:!0)&&((r=t.options.enableGrouping)!=null?r:!0)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var n;return(n=t.getState().grouping)==null?void 0:n.includes(e.id)},e.getGroupedIndex=()=>{var n;return(n=t.getState().grouping)==null?void 0:n.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const n=e.getCanGroup();return()=>{n&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=n==null?void 0:n.getValue(e.id);if(typeof r=="number")return Ns.sum;if(Object.prototype.toString.call(r)==="[object Date]")return Ns.extent},e.getAggregationFn=()=>{var n,r;if(!e)throw new Error;return Bo(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:e.columnDef.aggregationFn==="auto"?e.getAutoAggregationFn():(n=(r=t.options.aggregationFns)==null?void 0:r[e.columnDef.aggregationFn])!=null?n:Ns[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>e.options.onGroupingChange==null?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var n,r;e.setGrouping(t?[]:(n=(r=e.initialState)==null?void 0:r.grouping)!=null?n:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];const r=t.getColumn(n);return r!=null&&r.columnDef.getGroupingValue?(e._groupingValuesCache[n]=r.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,r)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var i;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!((i=n.subRows)!=null&&i.length)}}};function Cb(e,t,n){if(!(t!=null&&t.length)||!n)return e;const r=e.filter(a=>!t.includes(a.id));return n==="remove"?r:[...t.map(a=>e.find(o=>o.id===a)).filter(Boolean),...r]}const wb={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:Gt("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=ae(n=>[Yi(t,n)],n=>n.findIndex(r=>r.id===e.id),oe(t.options,"debugColumns","getIndex")),e.getIsFirstColumn=n=>{var r;return((r=Yi(t,n)[0])==null?void 0:r.id)===e.id},e.getIsLastColumn=n=>{var r;const i=Yi(t,n);return((r=i[i.length-1])==null?void 0:r.id)===e.id}},createTable:e=>{e.setColumnOrder=t=>e.options.onColumnOrderChange==null?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var n;e.setColumnOrder(t?[]:(n=e.initialState.columnOrder)!=null?n:[])},e._getOrderColumnsFn=ae(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(t,n,r)=>i=>{let a=[];if(!(t!=null&&t.length))a=i;else{const o=[...t],s=[...i];for(;s.length&&o.length;){const l=o.shift(),u=s.findIndex(c=>c.id===l);u>-1&&a.push(s.splice(u,1)[0])}a=[...a,...s]}return Cb(a,n,r)},oe(e.options,"debugTable","_getOrderColumnsFn"))}},Bu=()=>({left:[],right:[]}),Db={getInitialState:e=>({columnPinning:Bu(),...e}),getDefaultOptions:e=>({onColumnPinningChange:Gt("columnPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{const r=e.getLeafColumns().map(i=>i.id).filter(Boolean);t.setColumnPinning(i=>{var a,o;if(n==="right"){var s,l;return{left:((s=i==null?void 0:i.left)!=null?s:[]).filter(d=>!(r!=null&&r.includes(d))),right:[...((l=i==null?void 0:i.right)!=null?l:[]).filter(d=>!(r!=null&&r.includes(d))),...r]}}if(n==="left"){var u,c;return{left:[...((u=i==null?void 0:i.left)!=null?u:[]).filter(d=>!(r!=null&&r.includes(d))),...r],right:((c=i==null?void 0:i.right)!=null?c:[]).filter(d=>!(r!=null&&r.includes(d)))}}return{left:((a=i==null?void 0:i.left)!=null?a:[]).filter(d=>!(r!=null&&r.includes(d))),right:((o=i==null?void 0:i.right)!=null?o:[]).filter(d=>!(r!=null&&r.includes(d)))}})},e.getCanPin=()=>e.getLeafColumns().some(r=>{var i,a,o;return((i=r.columnDef.enablePinning)!=null?i:!0)&&((a=(o=t.options.enableColumnPinning)!=null?o:t.options.enablePinning)!=null?a:!0)}),e.getIsPinned=()=>{const n=e.getLeafColumns().map(s=>s.id),{left:r,right:i}=t.getState().columnPinning,a=n.some(s=>r==null?void 0:r.includes(s)),o=n.some(s=>i==null?void 0:i.includes(s));return a?"left":o?"right":!1},e.getPinnedIndex=()=>{var n,r;const i=e.getIsPinned();return i?(n=(r=t.getState().columnPinning)==null||(r=r[i])==null?void 0:r.indexOf(e.id))!=null?n:-1:0}},createRow:(e,t)=>{e.getCenterVisibleCells=ae(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(n,r,i)=>{const a=[...r??[],...i??[]];return n.filter(o=>!a.includes(o.column.id))},oe(t.options,"debugRows","getCenterVisibleCells")),e.getLeftVisibleCells=ae(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left],(n,r)=>(r??[]).map(a=>n.find(o=>o.column.id===a)).filter(Boolean).map(a=>({...a,position:"left"})),oe(t.options,"debugRows","getLeftVisibleCells")),e.getRightVisibleCells=ae(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(n,r)=>(r??[]).map(a=>n.find(o=>o.column.id===a)).filter(Boolean).map(a=>({...a,position:"right"})),oe(t.options,"debugRows","getRightVisibleCells"))},createTable:e=>{e.setColumnPinning=t=>e.options.onColumnPinningChange==null?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var n,r;return e.setColumnPinning(t?Bu():(n=(r=e.initialState)==null?void 0:r.columnPinning)!=null?n:Bu())},e.getIsSomeColumnsPinned=t=>{var n;const r=e.getState().columnPinning;if(!t){var i,a;return!!((i=r.left)!=null&&i.length||(a=r.right)!=null&&a.length)}return!!((n=r[t])!=null&&n.length)},e.getLeftLeafColumns=ae(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(t,n)=>(n??[]).map(r=>t.find(i=>i.id===r)).filter(Boolean),oe(e.options,"debugColumns","getLeftLeafColumns")),e.getRightLeafColumns=ae(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(t,n)=>(n??[]).map(r=>t.find(i=>i.id===r)).filter(Boolean),oe(e.options,"debugColumns","getRightLeafColumns")),e.getCenterLeafColumns=ae(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r)=>{const i=[...n??[],...r??[]];return t.filter(a=>!i.includes(a.id))},oe(e.options,"debugColumns","getCenterLeafColumns"))}},Aa={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},Vu=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),Sb={getDefaultColumnDef:()=>Aa,getInitialState:e=>({columnSizing:{},columnSizingInfo:Vu(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:Gt("columnSizing",e),onColumnSizingInfoChange:Gt("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,r,i;const a=t.getState().columnSizing[e.id];return Math.min(Math.max((n=e.columnDef.minSize)!=null?n:Aa.minSize,(r=a??e.columnDef.size)!=null?r:Aa.size),(i=e.columnDef.maxSize)!=null?i:Aa.maxSize)},e.getStart=ae(n=>[n,Yi(t,n),t.getState().columnSizing],(n,r)=>r.slice(0,e.getIndex(n)).reduce((i,a)=>i+a.getSize(),0),oe(t.options,"debugColumns","getStart")),e.getAfter=ae(n=>[n,Yi(t,n),t.getState().columnSizing],(n,r)=>r.slice(e.getIndex(n)+1).reduce((i,a)=>i+a.getSize(),0),oe(t.options,"debugColumns","getAfter")),e.resetSize=()=>{t.setColumnSizing(n=>{let{[e.id]:r,...i}=n;return i})},e.getCanResize=()=>{var n,r;return((n=e.columnDef.enableResizing)!=null?n:!0)&&((r=t.options.enableColumnResizing)!=null?r:!0)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let n=0;const r=i=>{if(i.subHeaders.length)i.subHeaders.forEach(r);else{var a;n+=(a=i.column.getSize())!=null?a:0}};return r(e),n},e.getStart=()=>{if(e.index>0){const n=e.headerGroup.headers[e.index-1];return n.getStart()+n.getSize()}return 0},e.getResizeHandler=n=>{const r=t.getColumn(e.column.id),i=r==null?void 0:r.getCanResize();return a=>{if(!r||!i||(a.persist==null||a.persist(),Ou(a)&&a.touches&&a.touches.length>1))return;const o=e.getSize(),s=e?e.getLeafHeaders().map(b=>[b.column.id,b.column.getSize()]):[[r.id,r.getSize()]],l=Ou(a)?Math.round(a.touches[0].clientX):a.clientX,u={},c=(b,v)=>{typeof v=="number"&&(t.setColumnSizingInfo(y=>{var w,C;const E=t.options.columnResizeDirection==="rtl"?-1:1,I=(v-((w=y==null?void 0:y.startOffset)!=null?w:0))*E,D=Math.max(I/((C=y==null?void 0:y.startSize)!=null?C:0),-.999999);return y.columnSizingStart.forEach(_=>{let[F,$]=_;u[F]=Math.round(Math.max($+$*D,0)*100)/100}),{...y,deltaOffset:I,deltaPercentage:D}}),(t.options.columnResizeMode==="onChange"||b==="end")&&t.setColumnSizing(y=>({...y,...u})))},d=b=>c("move",b),h=b=>{c("end",b),t.setColumnSizingInfo(v=>({...v,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},f=n||typeof document<"u"?document:null,g={moveHandler:b=>d(b.clientX),upHandler:b=>{f==null||f.removeEventListener("mousemove",g.moveHandler),f==null||f.removeEventListener("mouseup",g.upHandler),h(b.clientX)}},m={moveHandler:b=>(b.cancelable&&(b.preventDefault(),b.stopPropagation()),d(b.touches[0].clientX),!1),upHandler:b=>{var v;f==null||f.removeEventListener("touchmove",m.moveHandler),f==null||f.removeEventListener("touchend",m.upHandler),b.cancelable&&(b.preventDefault(),b.stopPropagation()),h((v=b.touches[0])==null?void 0:v.clientX)}},p=Eb()?{passive:!1}:!1;Ou(a)?(f==null||f.addEventListener("touchmove",m.moveHandler,p),f==null||f.addEventListener("touchend",m.upHandler,p)):(f==null||f.addEventListener("mousemove",g.moveHandler,p),f==null||f.addEventListener("mouseup",g.upHandler,p)),t.setColumnSizingInfo(b=>({...b,startOffset:l,startSize:o,deltaOffset:0,deltaPercentage:0,columnSizingStart:s,isResizingColumn:r.id}))}}},createTable:e=>{e.setColumnSizing=t=>e.options.onColumnSizingChange==null?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>e.options.onColumnSizingInfoChange==null?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var n;e.setColumnSizing(t?{}:(n=e.initialState.columnSizing)!=null?n:{})},e.resetHeaderSizeInfo=t=>{var n;e.setColumnSizingInfo(t?Vu():(n=e.initialState.columnSizingInfo)!=null?n:Vu())},e.getTotalSize=()=>{var t,n;return(t=(n=e.getHeaderGroups()[0])==null?void 0:n.headers.reduce((r,i)=>r+i.getSize(),0))!=null?t:0},e.getLeftTotalSize=()=>{var t,n;return(t=(n=e.getLeftHeaderGroups()[0])==null?void 0:n.headers.reduce((r,i)=>r+i.getSize(),0))!=null?t:0},e.getCenterTotalSize=()=>{var t,n;return(t=(n=e.getCenterHeaderGroups()[0])==null?void 0:n.headers.reduce((r,i)=>r+i.getSize(),0))!=null?t:0},e.getRightTotalSize=()=>{var t,n;return(t=(n=e.getRightHeaderGroups()[0])==null?void 0:n.headers.reduce((r,i)=>r+i.getSize(),0))!=null?t:0}}};let is=null;function Eb(){if(typeof is=="boolean")return is;let e=!1;try{const t={get passive(){return e=!0,!1}},n=()=>{};window.addEventListener("test",n,t),window.removeEventListener("test",n)}catch{e=!1}return is=e,is}function Ou(e){return e.type==="touchstart"}const Ib={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:Gt("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility(r=>({...r,[e.id]:n??!e.getIsVisible()}))},e.getIsVisible=()=>{var n,r;const i=e.columns;return(n=i.length?i.some(a=>a.getIsVisible()):(r=t.getState().columnVisibility)==null?void 0:r[e.id])!=null?n:!0},e.getCanHide=()=>{var n,r;return((n=e.columnDef.enableHiding)!=null?n:!0)&&((r=t.options.enableHiding)!=null?r:!0)},e.getToggleVisibilityHandler=()=>n=>{e.toggleVisibility==null||e.toggleVisibility(n.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=ae(()=>[e.getAllCells(),t.getState().columnVisibility],n=>n.filter(r=>r.column.getIsVisible()),oe(t.options,"debugRows","_getAllVisibleCells")),e.getVisibleCells=ae(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(n,r,i)=>[...n,...r,...i],oe(t.options,"debugRows","getVisibleCells"))},createTable:e=>{const t=(n,r)=>ae(()=>[r(),r().filter(i=>i.getIsVisible()).map(i=>i.id).join("_")],i=>i.filter(a=>a.getIsVisible==null?void 0:a.getIsVisible()),oe(e.options,"debugColumns",n));e.getVisibleFlatColumns=t("getVisibleFlatColumns",()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=t("getVisibleLeafColumns",()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=t("getLeftVisibleLeafColumns",()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=t("getRightVisibleLeafColumns",()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=t("getCenterVisibleLeafColumns",()=>e.getCenterLeafColumns()),e.setColumnVisibility=n=>e.options.onColumnVisibilityChange==null?void 0:e.options.onColumnVisibilityChange(n),e.resetColumnVisibility=n=>{var r;e.setColumnVisibility(n?{}:(r=e.initialState.columnVisibility)!=null?r:{})},e.toggleAllColumnsVisible=n=>{var r;n=(r=n)!=null?r:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((i,a)=>({...i,[a.id]:n||!(a.getCanHide!=null&&a.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(n=>!(n.getIsVisible!=null&&n.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(n=>n.getIsVisible==null?void 0:n.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>n=>{var r;e.toggleAllColumnsVisible((r=n.target)==null?void 0:r.checked)}}};function Yi(e,t){return t?t==="center"?e.getCenterVisibleLeafColumns():t==="left"?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const _b={createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},$b={getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:Gt("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n;const r=(n=e.getCoreRowModel().flatRows[0])==null||(n=n._getAllCellsByColumnId()[t.id])==null?void 0:n.getValue();return typeof r=="string"||typeof r=="number"}}),createColumn:(e,t)=>{e.getCanGlobalFilter=()=>{var n,r,i,a;return((n=e.columnDef.enableGlobalFilter)!=null?n:!0)&&((r=t.options.enableGlobalFilter)!=null?r:!0)&&((i=t.options.enableFilters)!=null?i:!0)&&((a=t.options.getColumnCanGlobalFilter==null?void 0:t.options.getColumnCanGlobalFilter(e))!=null?a:!0)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>Mn.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:r}=e.options;return Bo(r)?r:r==="auto"?e.getGlobalAutoFilterFn():(t=(n=e.options.filterFns)==null?void 0:n[r])!=null?t:Mn[r]},e.setGlobalFilter=t=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},Rb={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:Gt("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{var r,i;if(!t){e._queue(()=>{t=!0});return}if((r=(i=e.options.autoResetAll)!=null?i:e.options.autoResetExpanded)!=null?r:!e.options.manualExpanding){if(n)return;n=!0,e._queue(()=>{e.resetExpanded(),n=!1})}},e.setExpanded=r=>e.options.onExpandedChange==null?void 0:e.options.onExpandedChange(r),e.toggleAllRowsExpanded=r=>{r??!e.getIsAllRowsExpanded()?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=r=>{var i,a;e.setExpanded(r?{}:(i=(a=e.initialState)==null?void 0:a.expanded)!=null?i:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(r=>r.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>r=>{r.persist==null||r.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const r=e.getState().expanded;return r===!0||Object.values(r).some(Boolean)},e.getIsAllRowsExpanded=()=>{const r=e.getState().expanded;return typeof r=="boolean"?r===!0:!(!Object.keys(r).length||e.getRowModel().flatRows.some(i=>!i.getIsExpanded()))},e.getExpandedDepth=()=>{let r=0;return(e.getState().expanded===!0?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(a=>{const o=a.split(".");r=Math.max(r,o.length)}),r},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=n=>{t.setExpanded(r=>{var i;const a=r===!0?!0:!!(r!=null&&r[e.id]);let o={};if(r===!0?Object.keys(t.getRowModel().rowsById).forEach(s=>{o[s]=!0}):o=r,n=(i=n)!=null?i:!a,!a&&n)return{...o,[e.id]:!0};if(a&&!n){const{[e.id]:s,...l}=o;return l}return r})},e.getIsExpanded=()=>{var n;const r=t.getState().expanded;return!!((n=t.options.getIsRowExpanded==null?void 0:t.options.getIsRowExpanded(e))!=null?n:r===!0||r!=null&&r[e.id])},e.getCanExpand=()=>{var n,r,i;return(n=t.options.getRowCanExpand==null?void 0:t.options.getRowCanExpand(e))!=null?n:((r=t.options.enableExpanding)!=null?r:!0)&&!!((i=e.subRows)!=null&&i.length)},e.getIsAllParentsExpanded=()=>{let n=!0,r=e;for(;n&&r.parentId;)r=t.getRow(r.parentId,!0),n=r.getIsExpanded();return n},e.getToggleExpandedHandler=()=>{const n=e.getCanExpand();return()=>{n&&e.toggleExpanded()}}}},Bc=0,Vc=10,Nu=()=>({pageIndex:Bc,pageSize:Vc}),Ab={getInitialState:e=>({...e,pagination:{...Nu(),...e==null?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:Gt("pagination",e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{var r,i;if(!t){e._queue(()=>{t=!0});return}if((r=(i=e.options.autoResetAll)!=null?i:e.options.autoResetPageIndex)!=null?r:!e.options.manualPagination){if(n)return;n=!0,e._queue(()=>{e.resetPageIndex(),n=!1})}},e.setPagination=r=>{const i=a=>ir(r,a);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(i)},e.resetPagination=r=>{var i;e.setPagination(r?Nu():(i=e.initialState.pagination)!=null?i:Nu())},e.setPageIndex=r=>{e.setPagination(i=>{let a=ir(r,i.pageIndex);const o=typeof e.options.pageCount>"u"||e.options.pageCount===-1?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return a=Math.max(0,Math.min(a,o)),{...i,pageIndex:a}})},e.resetPageIndex=r=>{var i,a;e.setPageIndex(r?Bc:(i=(a=e.initialState)==null||(a=a.pagination)==null?void 0:a.pageIndex)!=null?i:Bc)},e.resetPageSize=r=>{var i,a;e.setPageSize(r?Vc:(i=(a=e.initialState)==null||(a=a.pagination)==null?void 0:a.pageSize)!=null?i:Vc)},e.setPageSize=r=>{e.setPagination(i=>{const a=Math.max(1,ir(r,i.pageSize)),o=i.pageSize*i.pageIndex,s=Math.floor(o/a);return{...i,pageIndex:s,pageSize:a}})},e.setPageCount=r=>e.setPagination(i=>{var a;let o=ir(r,(a=e.options.pageCount)!=null?a:-1);return typeof o=="number"&&(o=Math.max(-1,o)),{...i,pageCount:o}}),e.getPageOptions=ae(()=>[e.getPageCount()],r=>{let i=[];return r&&r>0&&(i=[...new Array(r)].fill(null).map((a,o)=>o)),i},oe(e.options,"debugTable","getPageOptions")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:r}=e.getState().pagination,i=e.getPageCount();return i===-1?!0:i===0?!1:r<i-1},e.previousPage=()=>e.setPageIndex(r=>r-1),e.nextPage=()=>e.setPageIndex(r=>r+1),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var r;return(r=e.options.pageCount)!=null?r:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var r;return(r=e.options.rowCount)!=null?r:e.getPrePaginationRowModel().rows.length}}},Lu=()=>({top:[],bottom:[]}),Fb={getInitialState:e=>({rowPinning:Lu(),...e}),getDefaultOptions:e=>({onRowPinningChange:Gt("rowPinning",e)}),createRow:(e,t)=>{e.pin=(n,r,i)=>{const a=r?e.getLeafRows().map(l=>{let{id:u}=l;return u}):[],o=i?e.getParentRows().map(l=>{let{id:u}=l;return u}):[],s=new Set([...o,e.id,...a]);t.setRowPinning(l=>{var u,c;if(n==="bottom"){var d,h;return{top:((d=l==null?void 0:l.top)!=null?d:[]).filter(m=>!(s!=null&&s.has(m))),bottom:[...((h=l==null?void 0:l.bottom)!=null?h:[]).filter(m=>!(s!=null&&s.has(m))),...Array.from(s)]}}if(n==="top"){var f,g;return{top:[...((f=l==null?void 0:l.top)!=null?f:[]).filter(m=>!(s!=null&&s.has(m))),...Array.from(s)],bottom:((g=l==null?void 0:l.bottom)!=null?g:[]).filter(m=>!(s!=null&&s.has(m)))}}return{top:((u=l==null?void 0:l.top)!=null?u:[]).filter(m=>!(s!=null&&s.has(m))),bottom:((c=l==null?void 0:l.bottom)!=null?c:[]).filter(m=>!(s!=null&&s.has(m)))}})},e.getCanPin=()=>{var n;const{enableRowPinning:r,enablePinning:i}=t.options;return typeof r=="function"?r(e):(n=r??i)!=null?n:!0},e.getIsPinned=()=>{const n=[e.id],{top:r,bottom:i}=t.getState().rowPinning,a=n.some(s=>r==null?void 0:r.includes(s)),o=n.some(s=>i==null?void 0:i.includes(s));return a?"top":o?"bottom":!1},e.getPinnedIndex=()=>{var n,r;const i=e.getIsPinned();if(!i)return-1;const a=(n=i==="top"?t.getTopRows():t.getBottomRows())==null?void 0:n.map(o=>{let{id:s}=o;return s});return(r=a==null?void 0:a.indexOf(e.id))!=null?r:-1}},createTable:e=>{e.setRowPinning=t=>e.options.onRowPinningChange==null?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var n,r;return e.setRowPinning(t?Lu():(n=(r=e.initialState)==null?void 0:r.rowPinning)!=null?n:Lu())},e.getIsSomeRowsPinned=t=>{var n;const r=e.getState().rowPinning;if(!t){var i,a;return!!((i=r.top)!=null&&i.length||(a=r.bottom)!=null&&a.length)}return!!((n=r[t])!=null&&n.length)},e._getPinnedRows=(t,n,r)=>{var i;return((i=e.options.keepPinnedRows)==null||i?(n??[]).map(o=>{const s=e.getRow(o,!0);return s.getIsAllParentsExpanded()?s:null}):(n??[]).map(o=>t.find(s=>s.id===o))).filter(Boolean).map(o=>({...o,position:r}))},e.getTopRows=ae(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,n)=>e._getPinnedRows(t,n,"top"),oe(e.options,"debugRows","getTopRows")),e.getBottomRows=ae(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,n)=>e._getPinnedRows(t,n,"bottom"),oe(e.options,"debugRows","getBottomRows")),e.getCenterRows=ae(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(t,n,r)=>{const i=new Set([...n??[],...r??[]]);return t.filter(a=>!i.has(a.id))},oe(e.options,"debugRows","getCenterRows"))}},Pb={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:Gt("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>e.options.onRowSelectionChange==null?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var n;return e.setRowSelection(t?{}:(n=e.initialState.rowSelection)!=null?n:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection(n=>{t=typeof t<"u"?t:!e.getIsAllRowsSelected();const r={...n},i=e.getPreGroupedRowModel().flatRows;return t?i.forEach(a=>{a.getCanSelect()&&(r[a.id]=!0)}):i.forEach(a=>{delete r[a.id]}),r})},e.toggleAllPageRowsSelected=t=>e.setRowSelection(n=>{const r=typeof t<"u"?t:!e.getIsAllPageRowsSelected(),i={...n};return e.getRowModel().rows.forEach(a=>{Oc(i,a.id,r,!0,e)}),i}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=ae(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?Ls(e,n):{rows:[],flatRows:[],rowsById:{}},oe(e.options,"debugTable","getSelectedRowModel")),e.getFilteredSelectedRowModel=ae(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?Ls(e,n):{rows:[],flatRows:[],rowsById:{}},oe(e.options,"debugTable","getFilteredSelectedRowModel")),e.getGroupedSelectedRowModel=ae(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?Ls(e,n):{rows:[],flatRows:[],rowsById:{}},oe(e.options,"debugTable","getGroupedSelectedRowModel")),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState();let r=!!(t.length&&Object.keys(n).length);return r&&t.some(i=>i.getCanSelect()&&!n[i.id])&&(r=!1),r},e.getIsAllPageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows.filter(i=>i.getCanSelect()),{rowSelection:n}=e.getState();let r=!!t.length;return r&&t.some(i=>!n[i.id])&&(r=!1),r},e.getIsSomeRowsSelected=()=>{var t;const n=Object.keys((t=e.getState().rowSelection)!=null?t:{}).length;return n>0&&n<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows;return e.getIsAllPageRowsSelected()?!1:t.filter(n=>n.getCanSelect()).some(n=>n.getIsSelected()||n.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(n,r)=>{const i=e.getIsSelected();t.setRowSelection(a=>{var o;if(n=typeof n<"u"?n:!i,e.getCanSelect()&&i===n)return a;const s={...a};return Oc(s,e.id,n,(o=r==null?void 0:r.selectChildren)!=null?o:!0,t),s})},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return tu(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return gl(e,n)==="some"},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return gl(e,n)==="all"},e.getCanSelect=()=>{var n;return typeof t.options.enableRowSelection=="function"?t.options.enableRowSelection(e):(n=t.options.enableRowSelection)!=null?n:!0},e.getCanSelectSubRows=()=>{var n;return typeof t.options.enableSubRowSelection=="function"?t.options.enableSubRowSelection(e):(n=t.options.enableSubRowSelection)!=null?n:!0},e.getCanMultiSelect=()=>{var n;return typeof t.options.enableMultiRowSelection=="function"?t.options.enableMultiRowSelection(e):(n=t.options.enableMultiRowSelection)!=null?n:!0},e.getToggleSelectedHandler=()=>{const n=e.getCanSelect();return r=>{var i;n&&e.toggleSelected((i=r.target)==null?void 0:i.checked)}}}},Oc=(e,t,n,r,i)=>{var a;const o=i.getRow(t,!0);n?(o.getCanMultiSelect()||Object.keys(e).forEach(s=>delete e[s]),o.getCanSelect()&&(e[t]=!0)):delete e[t],r&&(a=o.subRows)!=null&&a.length&&o.getCanSelectSubRows()&&o.subRows.forEach(s=>Oc(e,s.id,n,r,i))};function Ls(e,t){const n=e.getState().rowSelection,r=[],i={},a=function(o,s){return o.map(l=>{var u;const c=tu(l,n);if(c&&(r.push(l),i[l.id]=l),(u=l.subRows)!=null&&u.length&&(l={...l,subRows:a(l.subRows)}),c)return l}).filter(Boolean)};return{rows:a(t.rows),flatRows:r,rowsById:i}}function tu(e,t){var n;return(n=t[e.id])!=null?n:!1}function gl(e,t,n){var r;if(!((r=e.subRows)!=null&&r.length))return!1;let i=!0,a=!1;return e.subRows.forEach(o=>{if(!(a&&!i)&&(o.getCanSelect()&&(tu(o,t)?a=!0:i=!1),o.subRows&&o.subRows.length)){const s=gl(o,t);s==="all"?a=!0:(s==="some"&&(a=!0),i=!1)}}),i?"all":a?"some":!1}const ml=/([0-9]+)/gm,z5=(e,t,n)=>Tb(Fr(e.getValue(n)).toLowerCase(),Fr(t.getValue(n)).toLowerCase()),G5=(e,t,n)=>Tb(Fr(e.getValue(n)),Fr(t.getValue(n))),Z5=(e,t,n)=>Yd(Fr(e.getValue(n)).toLowerCase(),Fr(t.getValue(n)).toLowerCase()),X5=(e,t,n)=>Yd(Fr(e.getValue(n)),Fr(t.getValue(n))),Y5=(e,t,n)=>{const r=e.getValue(n),i=t.getValue(n);return r>i?1:r<i?-1:0},U5=(e,t,n)=>Yd(e.getValue(n),t.getValue(n));function Yd(e,t){return e===t?0:e>t?1:-1}function Fr(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function Tb(e,t){const n=e.split(ml).filter(Boolean),r=t.split(ml).filter(Boolean);for(;n.length&&r.length;){const i=n.shift(),a=r.shift(),o=parseInt(i,10),s=parseInt(a,10),l=[o,s].sort();if(isNaN(l[0])){if(i>a)return 1;if(a>i)return-1;continue}if(isNaN(l[1]))return isNaN(o)?-1:1;if(o>s)return 1;if(s>o)return-1}return n.length-r.length}const Wi={alphanumeric:z5,alphanumericCaseSensitive:G5,text:Z5,textCaseSensitive:X5,datetime:Y5,basic:U5},kb={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:Gt("sorting",e),isMultiSortEvent:t=>t.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{const n=t.getFilteredRowModel().flatRows.slice(10);let r=!1;for(const i of n){const a=i==null?void 0:i.getValue(e.id);if(Object.prototype.toString.call(a)==="[object Date]")return Wi.datetime;if(typeof a=="string"&&(r=!0,a.split(ml).length>1))return Wi.alphanumeric}return r?Wi.text:Wi.basic},e.getAutoSortDir=()=>{const n=t.getFilteredRowModel().flatRows[0];return typeof(n==null?void 0:n.getValue(e.id))=="string"?"asc":"desc"},e.getSortingFn=()=>{var n,r;if(!e)throw new Error;return Bo(e.columnDef.sortingFn)?e.columnDef.sortingFn:e.columnDef.sortingFn==="auto"?e.getAutoSortingFn():(n=(r=t.options.sortingFns)==null?void 0:r[e.columnDef.sortingFn])!=null?n:Wi[e.columnDef.sortingFn]},e.toggleSorting=(n,r)=>{const i=e.getNextSortingOrder(),a=typeof n<"u"&&n!==null;t.setSorting(o=>{const s=o==null?void 0:o.find(f=>f.id===e.id),l=o==null?void 0:o.findIndex(f=>f.id===e.id);let u=[],c,d=a?n:i==="desc";if(o!=null&&o.length&&e.getCanMultiSort()&&r?s?c="toggle":c="add":o!=null&&o.length&&l!==o.length-1?c="replace":s?c="toggle":c="replace",c==="toggle"&&(a||i||(c="remove")),c==="add"){var h;u=[...o,{id:e.id,desc:d}],u.splice(0,u.length-((h=t.options.maxMultiSortColCount)!=null?h:Number.MAX_SAFE_INTEGER))}else c==="toggle"?u=o.map(f=>f.id===e.id?{...f,desc:d}:f):c==="remove"?u=o.filter(f=>f.id!==e.id):u=[{id:e.id,desc:d}];return u})},e.getFirstSortDir=()=>{var n,r;return((n=(r=e.columnDef.sortDescFirst)!=null?r:t.options.sortDescFirst)!=null?n:e.getAutoSortDir()==="desc")?"desc":"asc"},e.getNextSortingOrder=n=>{var r,i;const a=e.getFirstSortDir(),o=e.getIsSorted();return o?o!==a&&((r=t.options.enableSortingRemoval)==null||r)&&(!(n&&(i=t.options.enableMultiRemove)!=null)||i)?!1:o==="desc"?"asc":"desc":a},e.getCanSort=()=>{var n,r;return((n=e.columnDef.enableSorting)!=null?n:!0)&&((r=t.options.enableSorting)!=null?r:!0)&&!!e.accessorFn},e.getCanMultiSort=()=>{var n,r;return(n=(r=e.columnDef.enableMultiSort)!=null?r:t.options.enableMultiSort)!=null?n:!!e.accessorFn},e.getIsSorted=()=>{var n;const r=(n=t.getState().sorting)==null?void 0:n.find(i=>i.id===e.id);return r?r.desc?"desc":"asc":!1},e.getSortIndex=()=>{var n,r;return(n=(r=t.getState().sorting)==null?void 0:r.findIndex(i=>i.id===e.id))!=null?n:-1},e.clearSorting=()=>{t.setSorting(n=>n!=null&&n.length?n.filter(r=>r.id!==e.id):[])},e.getToggleSortingHandler=()=>{const n=e.getCanSort();return r=>{n&&(r.persist==null||r.persist(),e.toggleSorting==null||e.toggleSorting(void 0,e.getCanMultiSort()?t.options.isMultiSortEvent==null?void 0:t.options.isMultiSortEvent(r):!1))}}},createTable:e=>{e.setSorting=t=>e.options.onSortingChange==null?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var n,r;e.setSorting(t?[]:(n=(r=e.initialState)==null?void 0:r.sorting)!=null?n:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},J5=[ub,Ib,wb,Db,cb,yb,_b,$b,kb,xb,Rb,Ab,Fb,Pb,Sb];function Mb(e){var t,n;process.env.NODE_ENV!=="production"&&(e.debugAll||e.debugTable)&&console.info("Creating Table Instance...");const r=[...J5,...(t=e._features)!=null?t:[]];let i={_features:r};const a=i._features.reduce((h,f)=>Object.assign(h,f.getDefaultOptions==null?void 0:f.getDefaultOptions(i)),{}),o=h=>i.options.mergeOptions?i.options.mergeOptions(a,h):{...a,...h};let l={...{},...(n=e.initialState)!=null?n:{}};i._features.forEach(h=>{var f;l=(f=h.getInitialState==null?void 0:h.getInitialState(l))!=null?f:l});const u=[];let c=!1;const d={_features:r,options:{...a,...e},initialState:l,_queue:h=>{u.push(h),c||(c=!0,Promise.resolve().then(()=>{for(;u.length;)u.shift()();c=!1}).catch(f=>setTimeout(()=>{throw f})))},reset:()=>{i.setState(i.initialState)},setOptions:h=>{const f=ir(h,i.options);i.options=o(f)},getState:()=>i.options.state,setState:h=>{i.options.onStateChange==null||i.options.onStateChange(h)},_getRowId:(h,f,g)=>{var m;return(m=i.options.getRowId==null?void 0:i.options.getRowId(h,f,g))!=null?m:`${g?[g.id,f].join("."):f}`},getCoreRowModel:()=>(i._getCoreRowModel||(i._getCoreRowModel=i.options.getCoreRowModel(i)),i._getCoreRowModel()),getRowModel:()=>i.getPaginationRowModel(),getRow:(h,f)=>{let g=(f?i.getPrePaginationRowModel():i.getRowModel()).rowsById[h];if(!g&&(g=i.getCoreRowModel().rowsById[h],!g))throw process.env.NODE_ENV!=="production"?new Error(`getRow could not find row with ID: ${h}`):new Error;return g},_getDefaultColumnDef:ae(()=>[i.options.defaultColumn],h=>{var f;return h=(f=h)!=null?f:{},{header:g=>{const m=g.header.column.columnDef;return m.accessorKey?m.accessorKey:m.accessorFn?m.id:null},cell:g=>{var m,p;return(m=(p=g.renderValue())==null||p.toString==null?void 0:p.toString())!=null?m:null},...i._features.reduce((g,m)=>Object.assign(g,m.getDefaultColumnDef==null?void 0:m.getDefaultColumnDef()),{}),...h}},oe(e,"debugColumns","_getDefaultColumnDef")),_getColumnDefs:()=>i.options.columns,getAllColumns:ae(()=>[i._getColumnDefs()],h=>{const f=function(g,m,p){return p===void 0&&(p=0),g.map(b=>{const v=lb(i,b,p,m),y=b;return v.columns=y.columns?f(y.columns,v,p+1):[],v})};return f(h)},oe(e,"debugColumns","getAllColumns")),getAllFlatColumns:ae(()=>[i.getAllColumns()],h=>h.flatMap(f=>f.getFlatColumns()),oe(e,"debugColumns","getAllFlatColumns")),_getAllFlatColumnsById:ae(()=>[i.getAllFlatColumns()],h=>h.reduce((f,g)=>(f[g.id]=g,f),{}),oe(e,"debugColumns","getAllFlatColumnsById")),getAllLeafColumns:ae(()=>[i.getAllColumns(),i._getOrderColumnsFn()],(h,f)=>{let g=h.flatMap(m=>m.getLeafColumns());return f(g)},oe(e,"debugColumns","getAllLeafColumns")),getColumn:h=>{const f=i._getAllFlatColumnsById()[h];return process.env.NODE_ENV!=="production"&&!f&&console.error(`[Table] Column with id '${h}' does not exist.`),f}};Object.assign(i,d);for(let h=0;h<i._features.length;h++){const f=i._features[h];f==null||f.createTable==null||f.createTable(i)}return i}function K5(){return e=>ae(()=>[e.options.data],t=>{const n={rows:[],flatRows:[],rowsById:{}},r=function(i,a,o){a===void 0&&(a=0);const s=[];for(let u=0;u<i.length;u++){const c=Vo(e,e._getRowId(i[u],u,o),i[u],u,a,void 0,o==null?void 0:o.id);if(n.flatRows.push(c),n.rowsById[c.id]=c,s.push(c),e.options.getSubRows){var l;c.originalSubRows=e.options.getSubRows(i[u],u),(l=c.originalSubRows)!=null&&l.length&&(c.subRows=r(c.originalSubRows,a+1,c))}}return s};return n.rows=r(t),n},oe(e.options,"debugTable","getRowModel",()=>e._autoResetPageIndex()))}function Q5(){return e=>ae(()=>[e.getState().expanded,e.getPreExpandedRowModel(),e.options.paginateExpandedRows],(t,n,r)=>!n.rows.length||t!==!0&&!Object.keys(t??{}).length||!r?n:Ud(n),oe(e.options,"debugTable","getExpandedRowModel"))}function Ud(e){const t=[],n=r=>{var i;t.push(r),(i=r.subRows)!=null&&i.length&&r.getIsExpanded()&&r.subRows.forEach(n)};return e.rows.forEach(n),{rows:t,flatRows:e.flatRows,rowsById:e.rowsById}}function q5(){return(e,t)=>ae(()=>{var n;return[(n=e.getColumn(t))==null?void 0:n.getFacetedRowModel()]},n=>{var r;if(!n)return;const i=(r=n.flatRows[0])==null?void 0:r.getUniqueValues(t);if(typeof i>"u")return;let a=[i,i];for(let o=0;o<n.flatRows.length;o++){const s=n.flatRows[o].getUniqueValues(t);for(let l=0;l<s.length;l++){const u=s[l];u<a[0]?a[0]=u:u>a[1]&&(a[1]=u)}}return a},oe(e.options,"debugTable","getFacetedMinMaxValues"))}function Bb(e,t,n){return n.options.filterFromLeafRows?eS(e,t,n):tS(e,t,n)}function eS(e,t,n){var r;const i=[],a={},o=(r=n.options.maxLeafRowFilterDepth)!=null?r:100,s=function(l,u){u===void 0&&(u=0);const c=[];for(let h=0;h<l.length;h++){var d;let f=l[h];const g=Vo(n,f.id,f.original,f.index,f.depth,void 0,f.parentId);if(g.columnFilters=f.columnFilters,(d=f.subRows)!=null&&d.length&&u<o){if(g.subRows=s(f.subRows,u+1),f=g,t(f)&&!g.subRows.length){c.push(f),a[f.id]=f,i.push(f);continue}if(t(f)||g.subRows.length){c.push(f),a[f.id]=f,i.push(f);continue}}else f=g,t(f)&&(c.push(f),a[f.id]=f,i.push(f))}return c};return{rows:s(e),flatRows:i,rowsById:a}}function tS(e,t,n){var r;const i=[],a={},o=(r=n.options.maxLeafRowFilterDepth)!=null?r:100,s=function(l,u){u===void 0&&(u=0);const c=[];for(let h=0;h<l.length;h++){let f=l[h];if(t(f)){var d;if((d=f.subRows)!=null&&d.length&&u<o){const m=Vo(n,f.id,f.original,f.index,f.depth,void 0,f.parentId);m.subRows=s(f.subRows,u+1),f=m}c.push(f),i.push(f),a[f.id]=f}}return c};return{rows:s(e),flatRows:i,rowsById:a}}function nS(){return(e,t)=>ae(()=>[e.getPreFilteredRowModel(),e.getState().columnFilters,e.getState().globalFilter,e.getFilteredRowModel()],(n,r,i)=>{if(!n.rows.length||!(r!=null&&r.length)&&!i)return n;const a=[...r.map(s=>s.id).filter(s=>s!==t),i?"__global__":void 0].filter(Boolean),o=s=>{for(let l=0;l<a.length;l++)if(s.columnFilters[a[l]]===!1)return!1;return!0};return Bb(n.rows,o,e)},oe(e.options,"debugTable","getFacetedRowModel"))}function rS(){return(e,t)=>ae(()=>{var n;return[(n=e.getColumn(t))==null?void 0:n.getFacetedRowModel()]},n=>{if(!n)return new Map;let r=new Map;for(let a=0;a<n.flatRows.length;a++){const o=n.flatRows[a].getUniqueValues(t);for(let s=0;s<o.length;s++){const l=o[s];if(r.has(l)){var i;r.set(l,((i=r.get(l))!=null?i:0)+1)}else r.set(l,1)}}return r},oe(e.options,"debugTable",`getFacetedUniqueValues_${t}`))}function iS(){return e=>ae(()=>[e.getPreFilteredRowModel(),e.getState().columnFilters,e.getState().globalFilter],(t,n,r)=>{if(!t.rows.length||!(n!=null&&n.length)&&!r){for(let h=0;h<t.flatRows.length;h++)t.flatRows[h].columnFilters={},t.flatRows[h].columnFiltersMeta={};return t}const i=[],a=[];(n??[]).forEach(h=>{var f;const g=e.getColumn(h.id);if(!g)return;const m=g.getFilterFn();if(!m){process.env.NODE_ENV!=="production"&&console.warn(`Could not find a valid 'column.filterFn' for column with the ID: ${g.id}.`);return}i.push({id:h.id,filterFn:m,resolvedValue:(f=m.resolveFilterValue==null?void 0:m.resolveFilterValue(h.value))!=null?f:h.value})});const o=(n??[]).map(h=>h.id),s=e.getGlobalFilterFn(),l=e.getAllLeafColumns().filter(h=>h.getCanGlobalFilter());r&&s&&l.length&&(o.push("__global__"),l.forEach(h=>{var f;a.push({id:h.id,filterFn:s,resolvedValue:(f=s.resolveFilterValue==null?void 0:s.resolveFilterValue(r))!=null?f:r})}));let u,c;for(let h=0;h<t.flatRows.length;h++){const f=t.flatRows[h];if(f.columnFilters={},i.length)for(let g=0;g<i.length;g++){u=i[g];const m=u.id;f.columnFilters[m]=u.filterFn(f,m,u.resolvedValue,p=>{f.columnFiltersMeta[m]=p})}if(a.length){for(let g=0;g<a.length;g++){c=a[g];const m=c.id;if(c.filterFn(f,m,c.resolvedValue,p=>{f.columnFiltersMeta[m]=p})){f.columnFilters.__global__=!0;break}}f.columnFilters.__global__!==!0&&(f.columnFilters.__global__=!1)}}const d=h=>{for(let f=0;f<o.length;f++)if(h.columnFilters[o[f]]===!1)return!1;return!0};return Bb(t.rows,d,e)},oe(e.options,"debugTable","getFilteredRowModel",()=>e._autoResetPageIndex()))}function aS(){return e=>ae(()=>[e.getState().grouping,e.getPreGroupedRowModel()],(t,n)=>{if(!n.rows.length||!t.length)return n;const r=t.filter(l=>e.getColumn(l)),i=[],a={},o=function(l,u,c){if(u===void 0&&(u=0),u>=r.length)return l.map(g=>(g.depth=u,i.push(g),a[g.id]=g,g.subRows&&(g.subRows=o(g.subRows,u+1,g.id)),g));const d=r[u],h=oS(l,d);return Array.from(h.entries()).map((g,m)=>{let[p,b]=g,v=`${d}:${p}`;v=c?`${c}>${v}`:v;const y=o(b,u+1,v),w=u?Zd(b,E=>E.subRows):b,C=Vo(e,v,w[0].original,m,u,void 0,c);return Object.assign(C,{groupingColumnId:d,groupingValue:p,subRows:y,leafRows:w,getValue:E=>{if(r.includes(E)){if(C._valuesCache.hasOwnProperty(E))return C._valuesCache[E];if(b[0]){var I;C._valuesCache[E]=(I=b[0].getValue(E))!=null?I:void 0}return C._valuesCache[E]}if(C._groupingValuesCache.hasOwnProperty(E))return C._groupingValuesCache[E];const D=e.getColumn(E),_=D==null?void 0:D.getAggregationFn();if(_)return C._groupingValuesCache[E]=_(E,w,b),C._groupingValuesCache[E]}}),y.forEach(E=>{i.push(E),a[E.id]=E}),C})},s=o(n.rows,0);return s.forEach(l=>{i.push(l),a[l.id]=l}),{rows:s,flatRows:i,rowsById:a}},oe(e.options,"debugTable","getGroupedRowModel",()=>{e._queue(()=>{e._autoResetExpanded(),e._autoResetPageIndex()})}))}function oS(e,t){const n=new Map;return e.reduce((r,i)=>{const a=`${i.getGroupingValue(t)}`,o=r.get(a);return o?o.push(i):r.set(a,[i]),r},n)}function sS(e){return t=>ae(()=>[t.getState().pagination,t.getPrePaginationRowModel(),t.options.paginateExpandedRows?void 0:t.getState().expanded],(n,r)=>{if(!r.rows.length)return r;const{pageSize:i,pageIndex:a}=n;let{rows:o,flatRows:s,rowsById:l}=r;const u=i*a,c=u+i;o=o.slice(u,c);let d;t.options.paginateExpandedRows?d={rows:o,flatRows:s,rowsById:l}:d=Ud({rows:o,flatRows:s,rowsById:l}),d.flatRows=[];const h=f=>{d.flatRows.push(f),f.subRows.length&&f.subRows.forEach(h)};return d.rows.forEach(h),d},oe(t.options,"debugTable","getPaginationRowModel"))}function lS(){return e=>ae(()=>[e.getState().sorting,e.getPreSortedRowModel()],(t,n)=>{if(!n.rows.length||!(t!=null&&t.length))return n;const r=e.getState().sorting,i=[],a=r.filter(l=>{var u;return(u=e.getColumn(l.id))==null?void 0:u.getCanSort()}),o={};a.forEach(l=>{const u=e.getColumn(l.id);u&&(o[l.id]={sortUndefined:u.columnDef.sortUndefined,invertSorting:u.columnDef.invertSorting,sortingFn:u.getSortingFn()})});const s=l=>{const u=l.map(c=>({...c}));return u.sort((c,d)=>{for(let f=0;f<a.length;f+=1){var h;const g=a[f],m=o[g.id],p=m.sortUndefined,b=(h=g==null?void 0:g.desc)!=null?h:!1;let v=0;if(p){const y=c.getValue(g.id),w=d.getValue(g.id),C=y===void 0,E=w===void 0;if(C||E){if(p==="first")return C?-1:1;if(p==="last")return C?1:-1;v=C&&E?0:C?p:-p}}if(v===0&&(v=m.sortingFn(c,d,g.id)),v!==0)return b&&(v*=-1),m.invertSorting&&(v*=-1),v}return c.index-d.index}),u.forEach(c=>{var d;i.push(c),(d=c.subRows)!=null&&d.length&&(c.subRows=s(c.subRows))}),u};return{rows:s(n.rows),flatRows:i,rowsById:n.rowsById}},oe(e.options,"debugTable","getSortedRowModel",()=>e._autoResetPageIndex()))}/**
|
63
63
|
* react-table
|
64
64
|
*
|
65
65
|
* Copyright (c) TanStack
|
@@ -68,15 +68,15 @@ React keys must be passed directly to JSX without using spread:
|
|
68
68
|
* LICENSE.md file in the root directory of this source tree.
|
69
69
|
*
|
70
70
|
* @license MIT
|
71
|
-
*/function io(e,t){return e?uS(e)?j.createElement(e,t):e:null}function uS(e){return cS(e)||typeof e=="function"||dS(e)}function cS(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function dS(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}function fS(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=j.useState(()=>({current:kb(t)})),[r,i]=j.useState(()=>n.current.initialState);return n.current.setOptions(a=>({...a,...e,state:{...r,...e.state},onStateChange:o=>{i(o),e.onStateChange==null||e.onStateChange(o)}})),n.current}const hS=Object.freeze(Object.defineProperty({__proto__:null,ColumnFaceting:cb,ColumnFiltering:yb,ColumnGrouping:xb,ColumnOrdering:wb,ColumnPinning:Db,ColumnSizing:Sb,ColumnVisibility:Ib,GlobalFaceting:_b,GlobalFiltering:$b,Headers:ub,RowExpanding:Rb,RowPagination:Ab,RowPinning:Fb,RowSelection:Pb,RowSorting:Mb,_getVisibleLeafColumns:Yi,aggregationFns:Ns,buildHeaderGroups:Ra,createCell:sb,createColumn:lb,createColumnHelper:T5,createRow:Vo,createTable:kb,defaultColumnSizing:Aa,expandRows:Ud,filterFns:kn,flattenBy:Zd,flexRender:io,functionalUpdate:ir,getCoreRowModel:K5,getExpandedRowModel:Q5,getFacetedMinMaxValues:q5,getFacetedRowModel:nS,getFacetedUniqueValues:rS,getFilteredRowModel:iS,getGroupedRowModel:aS,getMemoOptions:oe,getPaginationRowModel:sS,getSortedRowModel:lS,isFunction:Bo,isNumberArray:ob,isRowSelected:tu,isSubRowSelected:gl,makeStateUpdater:Gt,memo:ae,noop:M5,orderColumns:Cb,passiveEventSupported:Eb,reSplitAlphaNumeric:ml,selectRowsFn:Ls,shouldAutoRemoveFilter:kc,sortingFns:Wi,useReactTable:fS},Symbol.toStringTag,{value:"Module"})),nu=0,Br=1,ha=2,Vb=4;function ao(e,t){return n=>e(t(n))}function gS(e,t){return t(e)}function Ob(e,t){return n=>e(t,n)}function sg(e,t){return()=>e(t)}function ru(e,t){return t(e),e}function Ue(...e){return e}function mS(e){e()}function lg(e){return()=>e}function pS(...e){return()=>{e.map(mS)}}function Jd(e){return e!==void 0}function wi(){}function We(e,t){return e(Br,t)}function ve(e,t){e(nu,t)}function Kd(e){e(ha)}function Rt(e){return e(Vb)}function se(e,t){return We(e,Ob(t,nu))}function Wn(e,t){const n=e(Br,r=>{n(),t(r)});return n}function Ie(){const e=[];return(t,n)=>{switch(t){case ha:e.splice(0,e.length);return;case Br:return e.push(n),()=>{const r=e.indexOf(n);r>-1&&e.splice(r,1)};case nu:e.slice().forEach(r=>{r(n)});return;default:throw new Error(`unrecognized action ${t}`)}}}function K(e){let t=e;const n=Ie();return(r,i)=>{switch(r){case Br:i(t);break;case nu:t=i;break;case Vb:return t}return n(r,i)}}function bS(e){let t,n;const r=()=>t&&t();return function(i,a){switch(i){case Br:return a?n===a?void 0:(r(),n=a,t=We(e,a),t):(r(),wi);case ha:r(),n=null;return;default:throw new Error(`unrecognized action ${i}`)}}}function nn(e){return ru(Ie(),t=>se(e,t))}function At(e,t){return ru(K(t),n=>se(e,n))}function vS(...e){return t=>e.reduceRight(gS,t)}function U(e,...t){const n=vS(...t);return(r,i)=>{switch(r){case Br:return We(e,n(i));case ha:Kd(e);return}}}function Nb(e,t){return e===t}function Ye(e=Nb){let t;return n=>r=>{e(t,r)||(t=r,n(r))}}function pe(e){return t=>n=>{e(n)&&t(n)}}function te(e){return t=>ao(t,e)}function Bn(e){return t=>()=>t(e)}function On(e,t){return n=>r=>n(t=e(t,r))}function aa(e){return t=>n=>{e>0?e--:t(n)}}function wr(e){let t=null,n;return r=>i=>{t=i,!n&&(n=setTimeout(()=>{n=void 0,r(t)},e))}}function ug(e){let t,n;return r=>i=>{t=i,n&&clearTimeout(n),n=setTimeout(()=>{r(t)},e)}}function ye(...e){const t=new Array(e.length);let n=0,r=null;const i=Math.pow(2,e.length)-1;return e.forEach((a,o)=>{const s=Math.pow(2,o);We(a,l=>{const u=n;n=n|s,t[o]=l,u!==i&&n===i&&r&&(r(),r=null)})}),a=>o=>{const s=()=>a([o].concat(t));n===i?s():r=s}}function cg(...e){return function(t,n){switch(t){case Br:return pS(...e.map(r=>We(r,n)));case ha:return;default:throw new Error(`unrecognized action ${t}`)}}}function be(e,t=Nb){return U(e,Ye(t))}function yt(...e){const t=Ie(),n=new Array(e.length);let r=0;const i=Math.pow(2,e.length)-1;return e.forEach((a,o)=>{const s=Math.pow(2,o);We(a,l=>{n[o]=l,r=r|s,r===i&&ve(t,n)})}),function(a,o){switch(a){case Br:return r===i&&o(n),We(t,o);case ha:return Kd(t);default:throw new Error(`unrecognized action ${a}`)}}}function Te(e,t=[],{singleton:n}={singleton:!0}){return{id:yS(),constructor:e,dependencies:t,singleton:n}}const yS=()=>Symbol();function xS(e){const t=new Map,n=({id:r,constructor:i,dependencies:a,singleton:o})=>{if(o&&t.has(r))return t.get(r);const s=i(a.map(l=>n(l)));return o&&t.set(r,s),s};return n(e)}function CS(e,t){const n={},r={};let i=0;const a=e.length;for(;i<a;)r[e[i]]=1,i+=1;for(const o in t)r.hasOwnProperty(o)||(n[o]=t[o]);return n}const as=typeof document<"u"?x.useLayoutEffect:x.useEffect;function Qd(e,t,n){const r=Object.keys(t.required||{}),i=Object.keys(t.optional||{}),a=Object.keys(t.methods||{}),o=Object.keys(t.events||{}),s=x.createContext({});function l(b,v){b.propsReady&&ve(b.propsReady,!1);for(const y of r){const w=b[t.required[y]];ve(w,v[y])}for(const y of i)if(y in v){const w=b[t.optional[y]];ve(w,v[y])}b.propsReady&&ve(b.propsReady,!0)}function u(b){return a.reduce((v,y)=>(v[y]=w=>{const C=b[t.methods[y]];ve(C,w)},v),{})}function c(b){return o.reduce((v,y)=>(v[y]=bS(b[t.events[y]]),v),{})}const d=x.forwardRef((b,v)=>{const{children:y,...w}=b,[C]=x.useState(()=>ru(xS(e),I=>l(I,w))),[E]=x.useState(sg(c,C));return as(()=>{for(const I of o)I in w&&We(E[I],w[I]);return()=>{Object.values(E).map(Kd)}},[w,E,C]),as(()=>{l(C,w)}),x.useImperativeHandle(v,lg(u(C))),x.createElement(s.Provider,{value:C},n?x.createElement(n,CS([...r,...i,...o],w),y):y)}),h=b=>x.useCallback(Ob(ve,x.useContext(s)[b]),[b]),f=b=>{const y=x.useContext(s)[b],w=x.useCallback(C=>We(y,C),[y]);return x.useSyncExternalStore(w,()=>Rt(y),()=>Rt(y))},g=b=>{const y=x.useContext(s)[b],[w,C]=x.useState(sg(Rt,y));return as(()=>We(y,E=>{E!==w&&C(lg(E))}),[y,w]),w},m=x.version.startsWith("18")?f:g;return{Component:d,usePublisher:h,useEmitterValue:m,useEmitter:(b,v)=>{const w=x.useContext(s)[b];as(()=>We(w,v),[v,w])}}}const wS=typeof document<"u"?x.useLayoutEffect:x.useEffect,DS=wS;var rn=(e=>(e[e.DEBUG=0]="DEBUG",e[e.INFO=1]="INFO",e[e.WARN=2]="WARN",e[e.ERROR=3]="ERROR",e))(rn||{});const SS={0:"debug",1:"log",2:"warn",3:"error"},ES=()=>typeof globalThis>"u"?window:globalThis,Vr=Te(()=>{const e=K(3);return{log:K((n,r,i=1)=>{var a;const o=(a=ES().VIRTUOSO_LOG_LEVEL)!=null?a:Rt(e);i>=o&&console[SS[i]]("%creact-virtuoso: %c%s %o","color: #0253b3; font-weight: bold","color: initial",n,r)}),logLevel:e}},[],{singleton:!0});function qd(e,t=!0){const n=x.useRef(null);let r=i=>{};if(typeof ResizeObserver<"u"){const i=x.useMemo(()=>new ResizeObserver(a=>{requestAnimationFrame(()=>{const o=a[0].target;o.offsetParent!==null&&e(o)})}),[e]);r=a=>{a&&t?(i.observe(a),n.current=a):(n.current&&i.unobserve(n.current),n.current=null)}}return{ref:n,callbackRef:r}}function zn(e,t=!0){return qd(e,t).callbackRef}function Lb(e,t,n,r,i,a,o){const s=x.useCallback(l=>{const u=IS(l.children,t,"offsetHeight",i);let c=l.parentElement;for(;!c.dataset.virtuosoScroller;)c=c.parentElement;const d=c.lastElementChild.dataset.viewportType==="window",h=o?o.scrollTop:d?window.pageYOffset||document.documentElement.scrollTop:c.scrollTop,f=o?o.scrollHeight:d?document.documentElement.scrollHeight:c.scrollHeight,g=o?o.offsetHeight:d?window.innerHeight:c.offsetHeight;r({scrollTop:Math.max(h,0),scrollHeight:f,viewportHeight:g}),a==null||a(_S("row-gap",getComputedStyle(l).rowGap,i)),u!==null&&e(u)},[e,t,i,a,o,r]);return qd(s,n)}function IS(e,t,n,r){const i=e.length;if(i===0)return null;const a=[];for(let o=0;o<i;o++){const s=e.item(o);if(!s||s.dataset.index===void 0)continue;const l=parseInt(s.dataset.index),u=parseFloat(s.dataset.knownSize),c=t(s,n);if(c===0&&r("Zero-sized element, this should not happen",{child:s},rn.ERROR),c===u)continue;const d=a[a.length-1];a.length===0||d.size!==c||d.endIndex!==l-1?a.push({startIndex:l,endIndex:l,size:c}):a[a.length-1].endIndex++}return a}function _S(e,t,n){return t!=="normal"&&!(t!=null&&t.endsWith("px"))&&n(`${e} was not resolved to pixel value correctly`,t,rn.WARN),t==="normal"?0:parseInt(t??"0",10)}function In(e,t){return Math.round(e.getBoundingClientRect()[t])}function jb(e,t){return Math.abs(e-t)<1.01}function Hb(e,t,n,r=wi,i){const a=x.useRef(null),o=x.useRef(null),s=x.useRef(null),l=x.useCallback(d=>{const h=d.target,f=h===window||h===document,g=f?window.pageYOffset||document.documentElement.scrollTop:h.scrollTop,m=f?document.documentElement.scrollHeight:h.scrollHeight,p=f?window.innerHeight:h.offsetHeight,b=()=>{e({scrollTop:Math.max(g,0),scrollHeight:m,viewportHeight:p})};d.suppressFlushSync?b():To.flushSync(b),o.current!==null&&(g===o.current||g<=0||g===m-p)&&(o.current=null,t(!0),s.current&&(clearTimeout(s.current),s.current=null))},[e,t]);x.useEffect(()=>{const d=i||a.current;return r(i||a.current),l({target:d,suppressFlushSync:!0}),d.addEventListener("scroll",l,{passive:!0}),()=>{r(null),d.removeEventListener("scroll",l)}},[a,l,n,r,i]);function u(d){const h=a.current;if(!h||"offsetHeight"in h&&h.offsetHeight===0)return;const f=d.behavior==="smooth";let g,m,p;h===window?(m=Math.max(In(document.documentElement,"height"),document.documentElement.scrollHeight),g=window.innerHeight,p=document.documentElement.scrollTop):(m=h.scrollHeight,g=In(h,"height"),p=h.scrollTop);const b=m-g;if(d.top=Math.ceil(Math.max(Math.min(b,d.top),0)),jb(g,m)||d.top===p){e({scrollTop:p,scrollHeight:m,viewportHeight:g}),f&&t(!0);return}f?(o.current=d.top,s.current&&clearTimeout(s.current),s.current=setTimeout(()=>{s.current=null,o.current=null,t(!0)},1e3)):o.current=null,h.scrollTo(d)}function c(d){a.current.scrollBy(d)}return{scrollerRef:a,scrollByCallback:c,scrollToCallback:u}}const Bt=Te(()=>{const e=Ie(),t=Ie(),n=K(0),r=Ie(),i=K(0),a=Ie(),o=Ie(),s=K(0),l=K(0),u=K(0),c=K(0),d=Ie(),h=Ie(),f=K(!1);return se(U(e,te(({scrollTop:g})=>g)),t),se(U(e,te(({scrollHeight:g})=>g)),o),se(t,i),{scrollContainerState:e,scrollTop:t,viewportHeight:a,headerHeight:s,fixedHeaderHeight:l,fixedFooterHeight:u,footerHeight:c,scrollHeight:o,smoothScrollTargetReached:r,scrollTo:d,scrollBy:h,statefulScrollTop:i,deviation:n,scrollingInProgress:f}},[],{singleton:!0}),oo={lvl:0};function Wb(e,t,n,r=oo,i=oo){return{k:e,v:t,lvl:n,l:r,r:i}}function Ge(e){return e===oo}function Ui(){return oo}function Nc(e,t){if(Ge(e))return oo;const{k:n,l:r,r:i}=e;if(t===n){if(Ge(r))return i;if(Ge(i))return r;{const[a,o]=zb(r);return js(mt(e,{k:a,v:o,l:Gb(r)}))}}else return t<n?js(mt(e,{l:Nc(r,t)})):js(mt(e,{r:Nc(i,t)}))}function so(e,t){if(!Ge(e))return t===e.k?e.v:t<e.k?so(e.l,t):so(e.r,t)}function _n(e,t,n="k"){if(Ge(e))return[-1/0,void 0];if(Number(e[n])===t)return[e.k,e.v];if(Number(e[n])<t){const r=_n(e.r,t,n);return r[0]===-1/0?[e.k,e.v]:r}return _n(e.l,t,n)}function Qt(e,t,n){return Ge(e)?Wb(t,n,1):t===e.k?mt(e,{k:t,v:n}):t<e.k?dg(mt(e,{l:Qt(e.l,t,n)})):dg(mt(e,{r:Qt(e.r,t,n)}))}function Lc(e,t,n){if(Ge(e))return[];const{k:r,v:i,l:a,r:o}=e;let s=[];return r>t&&(s=s.concat(Lc(a,t,n))),r>=t&&r<=n&&s.push({k:r,v:i}),r<=n&&(s=s.concat(Lc(o,t,n))),s}function ii(e){return Ge(e)?[]:[...ii(e.l),{k:e.k,v:e.v},...ii(e.r)]}function zb(e){return Ge(e.r)?[e.k,e.v]:zb(e.r)}function Gb(e){return Ge(e.r)?e.l:js(mt(e,{r:Gb(e.r)}))}function mt(e,t){return Wb(t.k!==void 0?t.k:e.k,t.v!==void 0?t.v:e.v,t.lvl!==void 0?t.lvl:e.lvl,t.l!==void 0?t.l:e.l,t.r!==void 0?t.r:e.r)}function ju(e){return Ge(e)||e.lvl>e.r.lvl}function dg(e){return jc(Xb(e))}function js(e){const{l:t,r:n,lvl:r}=e;if(n.lvl>=r-1&&t.lvl>=r-1)return e;if(r>n.lvl+1){if(ju(t))return Xb(mt(e,{lvl:r-1}));if(!Ge(t)&&!Ge(t.r))return mt(t.r,{l:mt(t,{r:t.r.l}),r:mt(e,{l:t.r.r,lvl:r-1}),lvl:r});throw new Error("Unexpected empty nodes")}else{if(ju(e))return jc(mt(e,{lvl:r-1}));if(!Ge(n)&&!Ge(n.l)){const i=n.l,a=ju(i)?n.lvl-1:n.lvl;return mt(i,{l:mt(e,{r:i.l,lvl:r-1}),r:jc(mt(n,{l:i.r,lvl:a})),lvl:i.lvl+1})}else throw new Error("Unexpected empty nodes")}}function iu(e,t,n){if(Ge(e))return[];const r=_n(e,t)[0];return $S(Lc(e,r,n))}function Zb(e,t){const n=e.length;if(n===0)return[];let{index:r,value:i}=t(e[0]);const a=[];for(let o=1;o<n;o++){const{index:s,value:l}=t(e[o]);a.push({start:r,end:s-1,value:i}),r=s,i=l}return a.push({start:r,end:1/0,value:i}),a}function $S(e){return Zb(e,({k:t,v:n})=>({index:t,value:n}))}function jc(e){const{r:t,lvl:n}=e;return!Ge(t)&&!Ge(t.r)&&t.lvl===n&&t.r.lvl===n?mt(t,{l:mt(e,{r:t.l}),lvl:n+1}):e}function Xb(e){const{l:t}=e;return!Ge(t)&&t.lvl===e.lvl?mt(t,{r:mt(e,{l:t.r})}):e}function pl(e,t,n,r=0){let i=e.length-1;for(;r<=i;){const a=Math.floor((r+i)/2),o=e[a],s=n(o,t);if(s===0)return a;if(s===-1){if(i-r<2)return a-1;i=a-1}else{if(i===r)return a;r=a+1}}throw new Error(`Failed binary finding record in array - ${e.join(",")}, searched for ${t}`)}function Yb(e,t,n){return e[pl(e,t,n)]}function RS(e,t,n,r){const i=pl(e,t,r),a=pl(e,n,r,i);return e.slice(i,a+1)}const ef=Te(()=>({recalcInProgress:K(!1)}),[],{singleton:!0});function AS(e){const{size:t,startIndex:n,endIndex:r}=e;return i=>i.start===n&&(i.end===r||i.end===1/0)&&i.value===t}function fg(e,t){let n=0,r=0;for(;n<e;)n+=t[r+1]-t[r]-1,r++;return r-(n===e?0:1)}function FS(e,t){let n=Ge(e)?0:1/0;for(const r of t){const{size:i,startIndex:a,endIndex:o}=r;if(n=Math.min(n,a),Ge(e)){e=Qt(e,0,i);continue}const s=iu(e,a-1,o+1);if(s.some(AS(r)))continue;let l=!1,u=!1;for(const{start:c,end:d,value:h}of s)l?(o>=c||i===h)&&(e=Nc(e,c)):(u=h!==i,l=!0),d>o&&o>=c&&h!==i&&(e=Qt(e,o+1,h));u&&(e=Qt(e,a,i))}return[e,n]}function PS(){return{offsetTree:[],sizeTree:Ui(),groupOffsetTree:Ui(),lastIndex:0,lastOffset:0,lastSize:0,groupIndices:[]}}function tf({index:e},t){return t===e?0:t<e?-1:1}function TS({offset:e},t){return t===e?0:t<e?-1:1}function MS(e){return{index:e.index,value:e}}function kS(e,t,n,r=0){return r>0&&(t=Math.max(t,Yb(e,r,tf).offset)),Zb(RS(e,t,n,TS),MS)}function Hc(e,t,n,r){let i=e,a=0,o=0,s=0,l=0;if(t!==0){l=pl(i,t-1,tf),s=i[l].offset;const c=_n(n,t-1);a=c[0],o=c[1],i.length&&i[l].size===_n(n,t)[1]&&(l-=1),i=i.slice(0,l+1)}else i=[];for(const{start:u,value:c}of iu(n,t,1/0)){const d=u-a,h=d*o+s+d*r;i.push({offset:h,size:c,index:u}),a=u,s=h,o=c}return{offsetTree:i,lastIndex:a,lastOffset:s,lastSize:o}}function BS(e,[t,n,r,i]){t.length>0&&r("received item sizes",t,rn.DEBUG);const a=e.sizeTree;let o=a,s=0;if(n.length>0&&Ge(a)&&t.length===2){const h=t[0].size,f=t[1].size;o=n.reduce((g,m)=>Qt(Qt(g,m,h),m+1,f),o)}else[o,s]=FS(o,t);if(o===a)return e;const{offsetTree:l,lastIndex:u,lastSize:c,lastOffset:d}=Hc(e.offsetTree,s,o,i);return{sizeTree:o,offsetTree:l,lastIndex:u,lastOffset:d,lastSize:c,groupOffsetTree:n.reduce((h,f)=>Qt(h,f,lo(f,l,i)),Ui()),groupIndices:n}}function lo(e,t,n){if(t.length===0)return 0;const{offset:r,index:i,size:a}=Yb(t,e,tf),o=e-i,s=a*o+(o-1)*n+r;return s>0?s+n:s}function VS(e){return typeof e.groupIndex<"u"}function Ub(e,t,n){if(VS(e))return t.groupIndices[e.groupIndex]+1;{const r=e.index==="LAST"?n:e.index;let i=Jb(r,t);return i=Math.max(0,i,Math.min(n,i)),i}}function Jb(e,t){if(!au(t))return e;let n=0;for(;t.groupIndices[n]<=e+n;)n++;return e+n}function au(e){return!Ge(e.groupOffsetTree)}function OS(e){return ii(e).map(({k:t,v:n},r,i)=>{const a=i[r+1],o=a?a.k-1:1/0;return{startIndex:t,endIndex:o,size:n}})}const NS={offsetHeight:"height",offsetWidth:"width"},Gn=Te(([{log:e},{recalcInProgress:t}])=>{const n=Ie(),r=Ie(),i=At(r,0),a=Ie(),o=Ie(),s=K(0),l=K([]),u=K(void 0),c=K(void 0),d=K((C,E)=>In(C,NS[E])),h=K(void 0),f=K(0),g=PS(),m=At(U(n,ye(l,e,f),On(BS,g),Ye()),g),p=At(U(l,Ye(),On((C,E)=>({prev:C.current,current:E}),{prev:[],current:[]}),te(({prev:C})=>C)),[]);se(U(l,pe(C=>C.length>0),ye(m,f),te(([C,E,I])=>{const D=C.reduce((_,F,$)=>Qt(_,F,lo(F,E.offsetTree,I)||$),Ui());return{...E,groupIndices:C,groupOffsetTree:D}})),m),se(U(r,ye(m),pe(([C,{lastIndex:E}])=>C<E),te(([C,{lastIndex:E,lastSize:I}])=>[{startIndex:C,endIndex:E,size:I}])),n),se(u,c);const b=At(U(u,te(C=>C===void 0)),!0);se(U(c,pe(C=>C!==void 0&&Ge(Rt(m).sizeTree)),te(C=>[{startIndex:0,endIndex:0,size:C}])),n);const v=nn(U(n,ye(m),On(({sizes:C},[E,I])=>({changed:I!==C,sizes:I}),{changed:!1,sizes:g}),te(C=>C.changed)));We(U(s,On((C,E)=>({diff:C.prev-E,prev:E}),{diff:0,prev:0}),te(C=>C.diff)),C=>{const{groupIndices:E}=Rt(m);if(C>0)ve(t,!0),ve(a,C+fg(C,E));else if(C<0){const I=Rt(p);I.length>0&&(C-=fg(-C,I)),ve(o,C)}}),We(U(s,ye(e)),([C,E])=>{C<0&&E("`firstItemIndex` prop should not be set to less than zero. If you don't know the total count, just use a very high value",{firstItemIndex:s},rn.ERROR)});const y=nn(a);se(U(a,ye(m),te(([C,E])=>{const I=E.groupIndices.length>0,D=[],_=E.lastSize;if(I){const F=so(E.sizeTree,0);let $=0,P=0;for(;$<C;){const B=E.groupIndices[P],T=E.groupIndices.length===P+1?1/0:E.groupIndices[P+1]-B-1;D.push({startIndex:B,endIndex:B,size:F}),D.push({startIndex:B+1,endIndex:B+1+T-1,size:_}),P++,$+=T+1}const M=ii(E.sizeTree);return $!==C&&M.shift(),M.reduce((B,{k:T,v:R})=>{let O=B.ranges;return B.prevSize!==0&&(O=[...B.ranges,{startIndex:B.prevIndex,endIndex:T+C-1,size:B.prevSize}]),{ranges:O,prevIndex:T+C,prevSize:R}},{ranges:D,prevIndex:C,prevSize:0}).ranges}return ii(E.sizeTree).reduce((F,{k:$,v:P})=>({ranges:[...F.ranges,{startIndex:F.prevIndex,endIndex:$+C-1,size:F.prevSize}],prevIndex:$+C,prevSize:P}),{ranges:[],prevIndex:0,prevSize:_}).ranges})),n);const w=nn(U(o,ye(m,f),te(([C,{offsetTree:E},I])=>{const D=-C;return lo(D,E,I)})));return se(U(o,ye(m,f),te(([C,E,I])=>{if(E.groupIndices.length>0){if(Ge(E.sizeTree))return E;let _=Ui();const F=Rt(p);let $=0,P=0,M=0;for(;$<-C;){M=F[P];const B=F[P+1]-M-1;P++,$+=B+1}if(_=ii(E.sizeTree).reduce((B,{k:T,v:R})=>Qt(B,Math.max(0,T+C),R),_),$!==-C){const B=so(E.sizeTree,M);_=Qt(_,0,B);const T=_n(E.sizeTree,-C+1)[1];_=Qt(_,1,T)}return{...E,sizeTree:_,...Hc(E.offsetTree,0,_,I)}}else{const _=ii(E.sizeTree).reduce((F,{k:$,v:P})=>Qt(F,Math.max(0,$+C),P),Ui());return{...E,sizeTree:_,...Hc(E.offsetTree,0,_,I)}}})),m),{data:h,totalCount:r,sizeRanges:n,groupIndices:l,defaultItemSize:c,fixedItemSize:u,unshiftWith:a,shiftWith:o,shiftWithOffset:w,beforeUnshiftWith:y,firstItemIndex:s,gap:f,sizes:m,listRefresh:v,statefulTotalCount:i,trackItemSizes:b,itemSize:d}},Ue(Vr,ef),{singleton:!0}),LS=typeof document<"u"&&"scrollBehavior"in document.documentElement.style;function Kb(e){const t=typeof e=="number"?{index:e}:e;return t.align||(t.align="start"),(!t.behavior||!LS)&&(t.behavior="auto"),t.offset||(t.offset=0),t}const Oo=Te(([{sizes:e,totalCount:t,listRefresh:n,gap:r},{scrollingInProgress:i,viewportHeight:a,scrollTo:o,smoothScrollTargetReached:s,headerHeight:l,footerHeight:u,fixedHeaderHeight:c,fixedFooterHeight:d},{log:h}])=>{const f=Ie(),g=Ie(),m=K(0);let p=null,b=null,v=null;function y(){p&&(p(),p=null),v&&(v(),v=null),b&&(clearTimeout(b),b=null),ve(i,!1)}return se(U(f,ye(e,a,t,m,l,u,h),ye(r,c,d),te(([[w,C,E,I,D,_,F,$],P,M,A])=>{const B=Kb(w),{align:T,behavior:R,offset:O}=B,H=I-1,L=Ub(B,C,H);let Z=lo(L,C.offsetTree,P)+_;T==="end"?(Z+=M+_n(C.sizeTree,L)[1]-E+A,L===H&&(Z+=F)):T==="center"?Z+=(M+_n(C.sizeTree,L)[1]-E+A)/2:Z-=D,O&&(Z+=O);const V=W=>{y(),W?($("retrying to scroll to",{location:w},rn.DEBUG),ve(f,w)):(ve(g,!0),$("list did not change, scroll successful",{},rn.DEBUG))};if(y(),R==="smooth"){let W=!1;v=We(n,q=>{W=W||q}),p=Wn(s,()=>{V(W)})}else p=Wn(U(n,jS(150)),V);return b=setTimeout(()=>{y()},1200),ve(i,!0),$("scrolling from index to",{index:L,top:Z,behavior:R},rn.DEBUG),{top:Z,behavior:R}})),o),{scrollToIndex:f,scrollTargetReached:g,topListHeight:m}},Ue(Gn,Bt,Vr),{singleton:!0});function jS(e){return t=>{const n=setTimeout(()=>{t(!1)},e);return r=>{r&&(t(!0),clearTimeout(n))}}}const uo="up",za="down",HS="none",WS={atBottom:!1,notAtBottomBecause:"NOT_SHOWING_LAST_ITEM",state:{offsetBottom:0,scrollTop:0,viewportHeight:0,scrollHeight:0}},zS=0,No=Te(([{scrollContainerState:e,scrollTop:t,viewportHeight:n,headerHeight:r,footerHeight:i,scrollBy:a}])=>{const o=K(!1),s=K(!0),l=Ie(),u=Ie(),c=K(4),d=K(zS),h=At(U(cg(U(be(t),aa(1),Bn(!0)),U(be(t),aa(1),Bn(!1),ug(100))),Ye()),!1),f=At(U(cg(U(a,Bn(!0)),U(a,Bn(!1),ug(200))),Ye()),!1);se(U(yt(be(t),be(d)),te(([v,y])=>v<=y),Ye()),s),se(U(s,wr(50)),u);const g=nn(U(yt(e,be(n),be(r),be(i),be(c)),On((v,[{scrollTop:y,scrollHeight:w},C,E,I,D])=>{const _=y+C-w>-D,F={viewportHeight:C,scrollTop:y,scrollHeight:w};if(_){let P,M;return y>v.state.scrollTop?(P="SCROLLED_DOWN",M=v.state.scrollTop-y):(P="SIZE_DECREASED",M=v.state.scrollTop-y||v.scrollTopDelta),{atBottom:!0,state:F,atBottomBecause:P,scrollTopDelta:M}}let $;return F.scrollHeight>v.state.scrollHeight?$="SIZE_INCREASED":C<v.state.viewportHeight?$="VIEWPORT_HEIGHT_DECREASING":y<v.state.scrollTop?$="SCROLLING_UPWARDS":$="NOT_FULLY_SCROLLED_TO_LAST_ITEM_BOTTOM",{atBottom:!1,notAtBottomBecause:$,state:F}},WS),Ye((v,y)=>v&&v.atBottom===y.atBottom))),m=At(U(e,On((v,{scrollTop:y,scrollHeight:w,viewportHeight:C})=>{if(jb(v.scrollHeight,w))return{scrollTop:y,scrollHeight:w,jump:0,changed:!1};{const E=w-(y+C)<1;return v.scrollTop!==y&&E?{scrollHeight:w,scrollTop:y,jump:v.scrollTop-y,changed:!0}:{scrollHeight:w,scrollTop:y,jump:0,changed:!0}}},{scrollHeight:0,jump:0,scrollTop:0,changed:!1}),pe(v=>v.changed),te(v=>v.jump)),0);se(U(g,te(v=>v.atBottom)),o),se(U(o,wr(50)),l);const p=K(za);se(U(e,te(({scrollTop:v})=>v),Ye(),On((v,y)=>Rt(f)?{direction:v.direction,prevScrollTop:y}:{direction:y<v.prevScrollTop?uo:za,prevScrollTop:y},{direction:za,prevScrollTop:0}),te(v=>v.direction)),p),se(U(e,wr(50),Bn(HS)),p);const b=K(0);return se(U(h,pe(v=>!v),Bn(0)),b),se(U(t,wr(100),ye(h),pe(([v,y])=>!!y),On(([v,y],[w])=>[y,w],[0,0]),te(([v,y])=>y-v)),b),{isScrolling:h,isAtTop:s,isAtBottom:o,atBottomState:g,atTopStateChange:u,atBottomStateChange:l,scrollDirection:p,atBottomThreshold:c,atTopThreshold:d,scrollVelocity:b,lastJumpDueToItemResize:m}},Ue(Bt)),Or=Te(([{log:e}])=>{const t=K(!1),n=nn(U(t,pe(r=>r),Ye()));return We(t,r=>{r&&Rt(e)("props updated",{},rn.DEBUG)}),{propsReady:t,didMount:n}},Ue(Vr),{singleton:!0});function nf(e,t){e==0?t():requestAnimationFrame(()=>nf(e-1,t))}function rf(e,t){const n=t-1;return typeof e=="number"?e:e.index==="LAST"?n:e.index}const Lo=Te(([{sizes:e,listRefresh:t,defaultItemSize:n},{scrollTop:r},{scrollToIndex:i,scrollTargetReached:a},{didMount:o}])=>{const s=K(!0),l=K(0),u=K(!0);return se(U(o,ye(l),pe(([c,d])=>!!d),Bn(!1)),s),se(U(o,ye(l),pe(([c,d])=>!!d),Bn(!1)),u),We(U(yt(t,o),ye(s,e,n,u),pe(([[,c],d,{sizeTree:h},f,g])=>c&&(!Ge(h)||Jd(f))&&!d&&!g),ye(l)),([,c])=>{Wn(a,()=>{ve(u,!0)}),nf(4,()=>{Wn(r,()=>{ve(s,!0)}),ve(i,c)})}),{scrolledToInitialItem:s,initialTopMostItemIndex:l,initialItemFinalLocationReached:u}},Ue(Gn,Bt,Oo,Or),{singleton:!0});function hg(e){return e?e==="smooth"?"smooth":"auto":!1}const GS=(e,t)=>typeof e=="function"?hg(e(t)):t&&hg(e),ZS=Te(([{totalCount:e,listRefresh:t},{isAtBottom:n,atBottomState:r},{scrollToIndex:i},{scrolledToInitialItem:a},{propsReady:o,didMount:s},{log:l},{scrollingInProgress:u}])=>{const c=K(!1),d=Ie();let h=null;function f(m){ve(i,{index:"LAST",align:"end",behavior:m})}We(U(yt(U(be(e),aa(1)),s),ye(be(c),n,a,u),te(([[m,p],b,v,y,w])=>{let C=p&&y,E="auto";return C&&(E=GS(b,v||w),C=C&&!!E),{totalCount:m,shouldFollow:C,followOutputBehavior:E}}),pe(({shouldFollow:m})=>m)),({totalCount:m,followOutputBehavior:p})=>{h&&(h(),h=null),h=Wn(t,()=>{Rt(l)("following output to ",{totalCount:m},rn.DEBUG),f(p),h=null})});function g(m){const p=Wn(r,b=>{m&&!b.atBottom&&b.notAtBottomBecause==="SIZE_INCREASED"&&!h&&(Rt(l)("scrolling to bottom due to increased size",{},rn.DEBUG),f("auto"))});setTimeout(p,100)}return We(U(yt(be(c),e,o),pe(([m,,p])=>m&&p),On(({value:m},[,p])=>({refreshed:m===p,value:p}),{refreshed:!1,value:0}),pe(({refreshed:m})=>m),ye(c,e)),([,m])=>{Rt(a)&&g(m!==!1)}),We(d,()=>{g(Rt(c)!==!1)}),We(yt(be(c),r),([m,p])=>{m&&!p.atBottom&&p.notAtBottomBecause==="VIEWPORT_HEIGHT_DECREASING"&&f("auto")}),{followOutput:c,autoscrollToBottom:d}},Ue(Gn,No,Oo,Lo,Or,Vr,Bt));function XS(e){return e.reduce((t,n)=>(t.groupIndices.push(t.totalCount),t.totalCount+=n+1,t),{totalCount:0,groupIndices:[]})}const Qb=Te(([{totalCount:e,groupIndices:t,sizes:n},{scrollTop:r,headerHeight:i}])=>{const a=Ie(),o=Ie(),s=nn(U(a,te(XS)));return se(U(s,te(l=>l.totalCount)),e),se(U(s,te(l=>l.groupIndices)),t),se(U(yt(r,n,i),pe(([l,u])=>au(u)),te(([l,u,c])=>_n(u.groupOffsetTree,Math.max(l-c,0),"v")[0]),Ye(),te(l=>[l])),o),{groupCounts:a,topItemsIndexes:o}},Ue(Gn,Bt));function co(e,t){return!!(e&&e[0]===t[0]&&e[1]===t[1])}function qb(e,t){return!!(e&&e.startIndex===t.startIndex&&e.endIndex===t.endIndex)}const bl="top",vl="bottom",gg="none";function mg(e,t,n){return typeof e=="number"?n===uo&&t===bl||n===za&&t===vl?e:0:n===uo?t===bl?e.main:e.reverse:t===vl?e.main:e.reverse}function pg(e,t){return typeof e=="number"?e:e[t]||0}const af=Te(([{scrollTop:e,viewportHeight:t,deviation:n,headerHeight:r,fixedHeaderHeight:i}])=>{const a=Ie(),o=K(0),s=K(0),l=K(0),u=At(U(yt(be(e),be(t),be(r),be(a,co),be(l),be(o),be(i),be(n),be(s)),te(([c,d,h,[f,g],m,p,b,v,y])=>{const w=c-v,C=p+b,E=Math.max(h-w,0);let I=gg;const D=pg(y,bl),_=pg(y,vl);return f-=v,f+=h+b,g+=h+b,g-=v,f>c+C-D&&(I=uo),g<c-E+d+_&&(I=za),I!==gg?[Math.max(w-h-mg(m,bl,I)-D,0),w-E-b+d+mg(m,vl,I)+_]:null}),pe(c=>c!=null),Ye(co)),[0,0]);return{listBoundary:a,overscan:l,topListHeight:o,increaseViewportBy:s,visibleRange:u}},Ue(Bt),{singleton:!0});function YS(e,t,n){if(au(t)){const r=Jb(e,t);return[{index:_n(t.groupOffsetTree,r)[0],size:0,offset:0},{index:r,size:0,offset:0,data:n&&n[0]}]}return[{index:e,size:0,offset:0,data:n&&n[0]}]}const Hu={items:[],topItems:[],offsetTop:0,offsetBottom:0,top:0,bottom:0,topListHeight:0,totalCount:0,firstItemIndex:0};function bg(e,t,n){if(e.length===0)return[];if(!au(t))return e.map(u=>({...u,index:u.index+n,originalIndex:u.index}));const r=e[0].index,i=e[e.length-1].index,a=[],o=iu(t.groupOffsetTree,r,i);let s,l=0;for(const u of e){(!s||s.end<u.index)&&(s=o.shift(),l=t.groupIndices.indexOf(s.start));let c;u.index===s.start?c={type:"group",index:l}:c={index:u.index-(l+1)+n,groupIndex:l},a.push({...c,size:u.size,offset:u.offset,originalIndex:u.index,data:u.data})}return a}function Hs(e,t,n,r,i,a){const{lastSize:o,lastOffset:s,lastIndex:l}=i;let u=0,c=0;if(e.length>0){u=e[0].offset;const m=e[e.length-1];c=m.offset+m.size}const d=n-l,h=s+d*o+(d-1)*r,f=u,g=h-c;return{items:bg(e,i,a),topItems:bg(t,i,a),topListHeight:t.reduce((m,p)=>p.size+m,0),offsetTop:u,offsetBottom:g,top:f,bottom:c,totalCount:n,firstItemIndex:a}}function e1(e,t,n,r,i,a){let o=0;if(n.groupIndices.length>0)for(const c of n.groupIndices){if(c-o>=e)break;o++}const s=e+o,l=rf(t,s),u=Array.from({length:s}).map((c,d)=>({index:d+l,size:0,offset:0,data:a[d+l]}));return Hs(u,[],s,i,n,r)}const Di=Te(([{sizes:e,totalCount:t,data:n,firstItemIndex:r,gap:i},a,{visibleRange:o,listBoundary:s,topListHeight:l},{scrolledToInitialItem:u,initialTopMostItemIndex:c},{topListHeight:d},h,{didMount:f},{recalcInProgress:g}])=>{const m=K([]),p=K(0),b=Ie();se(a.topItemsIndexes,m);const v=At(U(yt(f,g,be(o,co),be(t),be(e),be(c),u,be(m),be(r),be(i),n),pe(([E,I,,D,,,,,,,_])=>{const F=_&&_.length!==D;return E&&!I&&!F}),te(([,,[E,I],D,_,F,$,P,M,A,B])=>{const T=_,{sizeTree:R,offsetTree:O}=T,H=Rt(p);if(D===0)return{...Hu,totalCount:D};if(E===0&&I===0)return H===0?{...Hu,totalCount:D}:e1(H,F,_,M,A,B||[]);if(Ge(R))return H>0?null:Hs(YS(rf(F,D),T,B),[],D,A,T,M);const L=[];if(P.length>0){const Y=P[0],N=P[P.length-1];let G=0;for(const J of iu(R,Y,N)){const re=J.value,fe=Math.max(J.start,Y),le=Math.min(J.end,N);for(let z=fe;z<=le;z++)L.push({index:z,size:re,offset:G,data:B&&B[z]}),G+=re}}if(!$)return Hs([],L,D,A,T,M);const Z=P.length>0?P[P.length-1]+1:0,V=kS(O,E,I,Z);if(V.length===0)return null;const W=D-1,q=ru([],Y=>{for(const N of V){const G=N.value;let J=G.offset,re=N.start;const fe=G.size;if(G.offset<E){re+=Math.floor((E-G.offset+A)/(fe+A));const z=re-N.start;J+=z*fe+z*A}re<Z&&(J+=(Z-re)*fe,re=Z);const le=Math.min(N.end,W);for(let z=re;z<=le&&!(J>=I);z++)Y.push({index:z,size:fe,offset:J,data:B&&B[z]}),J+=fe+A}});return Hs(q,L,D,A,T,M)}),pe(E=>E!==null),Ye()),Hu);se(U(n,pe(Jd),te(E=>E==null?void 0:E.length)),t),se(U(v,te(E=>E.topListHeight)),d),se(d,l),se(U(v,te(E=>[E.top,E.bottom])),s),se(U(v,te(E=>E.items)),b);const y=nn(U(v,pe(({items:E})=>E.length>0),ye(t,n),pe(([{items:E},I])=>E[E.length-1].originalIndex===I-1),te(([,E,I])=>[E-1,I]),Ye(co),te(([E])=>E))),w=nn(U(v,wr(200),pe(({items:E,topItems:I})=>E.length>0&&E[0].originalIndex===I.length),te(({items:E})=>E[0].index),Ye())),C=nn(U(v,pe(({items:E})=>E.length>0),te(({items:E})=>{let I=0,D=E.length-1;for(;E[I].type==="group"&&I<D;)I++;for(;E[D].type==="group"&&D>I;)D--;return{startIndex:E[I].index,endIndex:E[D].index}}),Ye(qb)));return{listState:v,topItemsIndexes:m,endReached:y,startReached:w,rangeChanged:C,itemsRendered:b,initialItemCount:p,...h}},Ue(Gn,Qb,af,Lo,Oo,No,Or,ef),{singleton:!0}),US=Te(([{sizes:e,firstItemIndex:t,data:n,gap:r},{initialTopMostItemIndex:i},{initialItemCount:a,listState:o},{didMount:s}])=>(se(U(s,ye(a),pe(([,l])=>l!==0),ye(i,e,t,r,n),te(([[,l],u,c,d,h,f=[]])=>e1(l,u,c,d,h,f))),o),{}),Ue(Gn,Lo,Di,Or),{singleton:!0}),t1=Te(([{scrollVelocity:e}])=>{const t=K(!1),n=Ie(),r=K(!1);return se(U(e,ye(r,t,n),pe(([i,a])=>!!a),te(([i,a,o,s])=>{const{exit:l,enter:u}=a;if(o){if(l(i,s))return!1}else if(u(i,s))return!0;return o}),Ye()),t),We(U(yt(t,e,n),ye(r)),([[i,a,o],s])=>i&&s&&s.change&&s.change(a,o)),{isSeeking:t,scrollSeekConfiguration:r,scrollVelocity:e,scrollSeekRangeChanged:n}},Ue(No),{singleton:!0}),JS=Te(([{topItemsIndexes:e}])=>{const t=K(0);return se(U(t,pe(n=>n>0),te(n=>Array.from({length:n}).map((r,i)=>i))),e),{topItemCount:t}},Ue(Di)),n1=Te(([{footerHeight:e,headerHeight:t,fixedHeaderHeight:n,fixedFooterHeight:r},{listState:i}])=>{const a=Ie(),o=At(U(yt(e,r,t,n,i),te(([s,l,u,c,d])=>s+l+u+c+d.offsetBottom+d.bottom)),0);return se(be(o),a),{totalListHeight:o,totalListHeightChanged:a}},Ue(Bt,Di),{singleton:!0});function r1(e){let t=!1,n;return()=>(t||(t=!0,n=e()),n)}const KS=r1(()=>/iP(ad|od|hone)/i.test(navigator.userAgent)&&/WebKit/i.test(navigator.userAgent)),QS=Te(([{scrollBy:e,scrollTop:t,deviation:n,scrollingInProgress:r},{isScrolling:i,isAtBottom:a,scrollDirection:o,lastJumpDueToItemResize:s},{listState:l},{beforeUnshiftWith:u,shiftWithOffset:c,sizes:d,gap:h},{log:f},{recalcInProgress:g}])=>{const m=nn(U(l,ye(s),On(([,b,v,y],[{items:w,totalCount:C,bottom:E,offsetBottom:I},D])=>{const _=E+I;let F=0;return v===C&&b.length>0&&w.length>0&&(w[0].originalIndex===0&&b[0].originalIndex===0||(F=_-y,F!==0&&(F+=D))),[F,w,C,_]},[0,[],0,0]),pe(([b])=>b!==0),ye(t,o,r,a,f,g),pe(([,b,v,y,,,w])=>!w&&!y&&b!==0&&v===uo),te(([[b],,,,,v])=>(v("Upward scrolling compensation",{amount:b},rn.DEBUG),b))));function p(b){b>0?(ve(e,{top:-b,behavior:"auto"}),ve(n,0)):(ve(n,0),ve(e,{top:-b,behavior:"auto"}))}return We(U(m,ye(n,i)),([b,v,y])=>{y&&KS()?ve(n,v-b):p(-b)}),We(U(yt(At(i,!1),n,g),pe(([b,v,y])=>!b&&!y&&v!==0),te(([b,v])=>v),wr(1)),p),se(U(c,te(b=>({top:-b}))),e),We(U(u,ye(d,h),te(([b,{lastSize:v,groupIndices:y,sizeTree:w},C])=>{function E(I){return I*(v+C)}if(y.length===0)return E(b);{let I=0;const D=so(w,0);let _=0,F=0;for(;_<b;){_++,I+=D;let $=y.length===F+1?1/0:y[F+1]-y[F]-1;_+$>b&&(I-=D,$=b-_+1),_+=$,I+=E($),F++}return I}})),b=>{ve(n,b),requestAnimationFrame(()=>{ve(e,{top:b}),requestAnimationFrame(()=>{ve(n,0),ve(g,!1)})})}),{deviation:n}},Ue(Bt,No,Di,Gn,Vr,ef)),qS=Te(([{didMount:e},{scrollTo:t},{listState:n}])=>{const r=K(0);return We(U(e,ye(r),pe(([,i])=>i!==0),te(([,i])=>({top:i}))),i=>{Wn(U(n,aa(1),pe(a=>a.items.length>1)),()=>{requestAnimationFrame(()=>{ve(t,i)})})}),{initialScrollTop:r}},Ue(Or,Bt,Di),{singleton:!0}),eE=Te(([{viewportHeight:e},{totalListHeight:t}])=>{const n=K(!1),r=At(U(yt(n,e,t),pe(([i])=>i),te(([,i,a])=>Math.max(0,i-a)),wr(0),Ye()),0);return{alignToBottom:n,paddingTopAddition:r}},Ue(Bt,n1),{singleton:!0}),of=Te(([{scrollTo:e,scrollContainerState:t}])=>{const n=Ie(),r=Ie(),i=Ie(),a=K(!1),o=K(void 0);return se(U(yt(n,r),te(([{viewportHeight:s,scrollTop:l,scrollHeight:u},{offsetTop:c}])=>({scrollTop:Math.max(0,l-c),scrollHeight:u,viewportHeight:s}))),t),se(U(e,ye(r),te(([s,{offsetTop:l}])=>({...s,top:s.top+l}))),i),{useWindowScroll:a,customScrollParent:o,windowScrollContainerState:n,windowViewportRect:r,windowScrollTo:i}},Ue(Bt)),tE=({itemTop:e,itemBottom:t,viewportTop:n,viewportBottom:r,locationParams:{behavior:i,align:a,...o}})=>e<n?{...o,behavior:i,align:a??"start"}:t>r?{...o,behavior:i,align:a??"end"}:null,nE=Te(([{sizes:e,totalCount:t,gap:n},{scrollTop:r,viewportHeight:i,headerHeight:a,fixedHeaderHeight:o,fixedFooterHeight:s,scrollingInProgress:l},{scrollToIndex:u}])=>{const c=Ie();return se(U(c,ye(e,i,t,a,o,s,r),ye(n),te(([[d,h,f,g,m,p,b,v],y])=>{const{done:w,behavior:C,align:E,calculateViewLocation:I=tE,...D}=d,_=Ub(d,h,g-1),F=lo(_,h.offsetTree,y)+m+p,$=F+_n(h.sizeTree,_)[1],P=v+p,M=v+f-b,A=I({itemTop:F,itemBottom:$,viewportTop:P,viewportBottom:M,locationParams:{behavior:C,align:E,...D}});return A?w&&Wn(U(l,pe(B=>B===!1),aa(Rt(l)?1:2)),w):w&&w(),A}),pe(d=>d!==null)),u),{scrollIntoView:c}},Ue(Gn,Bt,Oo,Di,Vr),{singleton:!0}),rE=Te(([{sizes:e,sizeRanges:t},{scrollTop:n},{initialTopMostItemIndex:r},{didMount:i},{useWindowScroll:a,windowScrollContainerState:o,windowViewportRect:s}])=>{const l=Ie(),u=K(void 0),c=K(null),d=K(null);return se(o,c),se(s,d),We(U(l,ye(e,n,a,c,d)),([h,f,g,m,p,b])=>{const v=OS(f.sizeTree);m&&p!==null&&b!==null&&(g=p.scrollTop-b.offsetTop),h({ranges:v,scrollTop:g})}),se(U(u,pe(Jd),te(iE)),r),se(U(i,ye(u),pe(([,h])=>h!==void 0),Ye(),te(([,h])=>h.ranges)),t),{getState:l,restoreStateFrom:u}},Ue(Gn,Bt,Lo,Or,of));function iE(e){return{offset:e.scrollTop,index:0,align:"start"}}const aE=Te(([e,t,n,r,i,a,o,s,l,u])=>({...e,...t,...n,...r,...i,...a,...o,...s,...l,...u}),Ue(af,US,Or,t1,n1,qS,eE,of,nE,Vr)),i1=Te(([{totalCount:e,sizeRanges:t,fixedItemSize:n,defaultItemSize:r,trackItemSizes:i,itemSize:a,data:o,firstItemIndex:s,groupIndices:l,statefulTotalCount:u,gap:c,sizes:d},{initialTopMostItemIndex:h,scrolledToInitialItem:f,initialItemFinalLocationReached:g},m,p,b,{listState:v,topItemsIndexes:y,...w},{scrollToIndex:C},E,{topItemCount:I},{groupCounts:D},_])=>(se(w.rangeChanged,_.scrollSeekRangeChanged),se(U(_.windowViewportRect,te(F=>F.visibleHeight)),m.viewportHeight),{totalCount:e,data:o,firstItemIndex:s,sizeRanges:t,initialTopMostItemIndex:h,scrolledToInitialItem:f,initialItemFinalLocationReached:g,topItemsIndexes:y,topItemCount:I,groupCounts:D,fixedItemHeight:n,defaultItemHeight:r,gap:c,...b,statefulTotalCount:u,listState:v,scrollToIndex:C,trackItemSizes:i,itemSize:a,groupIndices:l,...w,..._,...m,sizes:d,...p}),Ue(Gn,Lo,Bt,rE,ZS,Di,Oo,QS,JS,Qb,aE)),Wu="-webkit-sticky",vg="sticky",a1=r1(()=>{if(typeof document>"u")return vg;const e=document.createElement("div");return e.style.position=Wu,e.style.position===Wu?Wu:vg});function sf(e,t){const n=x.useRef(null),r=x.useCallback(s=>{if(s===null||!s.offsetParent)return;const l=s.getBoundingClientRect(),u=l.width;let c,d;if(t){const h=t.getBoundingClientRect(),f=l.top-h.top;c=h.height-Math.max(0,f),d=f+t.scrollTop}else c=window.innerHeight-Math.max(0,l.top),d=l.top+window.pageYOffset;n.current={offsetTop:d,visibleHeight:c,visibleWidth:u},e(n.current)},[e,t]),{callbackRef:i,ref:a}=qd(r),o=x.useCallback(()=>{r(a.current)},[r,a]);return x.useEffect(()=>{if(t){t.addEventListener("scroll",o);const s=new ResizeObserver(()=>{requestAnimationFrame(o)});return s.observe(t),()=>{t.removeEventListener("scroll",o),s.unobserve(t)}}else return window.addEventListener("scroll",o),window.addEventListener("resize",o),()=>{window.removeEventListener("scroll",o),window.removeEventListener("resize",o)}},[o,t]),i}const ou=x.createContext(void 0),o1=x.createContext(void 0);function lf(e){return e}const oE=Te(()=>{const e=K(l=>`Item ${l}`),t=K(null),n=K(l=>`Group ${l}`),r=K({}),i=K(lf),a=K("div"),o=K(wi),s=(l,u=null)=>At(U(r,te(c=>c[l]),Ye()),u);return{context:t,itemContent:e,groupContent:n,components:r,computeItemKey:i,headerFooterTag:a,scrollerRef:o,FooterComponent:s("Footer"),HeaderComponent:s("Header"),TopItemListComponent:s("TopItemList"),ListComponent:s("List","div"),ItemComponent:s("Item","div"),GroupComponent:s("Group","div"),ScrollerComponent:s("Scroller","div"),EmptyPlaceholder:s("EmptyPlaceholder"),ScrollSeekPlaceholder:s("ScrollSeekPlaceholder")}}),sE=Te(([e,t])=>({...e,...t}),Ue(i1,oE)),lE=({height:e})=>x.createElement("div",{style:{height:e}}),uE={position:a1(),zIndex:1,overflowAnchor:"none"},cE={overflowAnchor:"none"},yg=x.memo(function({showTopList:t=!1}){const n=De("listState"),r=mn("sizeRanges"),i=De("useWindowScroll"),a=De("customScrollParent"),o=mn("windowScrollContainerState"),s=mn("scrollContainerState"),l=a||i?o:s,u=De("itemContent"),c=De("context"),d=De("groupContent"),h=De("trackItemSizes"),f=De("itemSize"),g=De("log"),m=mn("gap"),{callbackRef:p}=Lb(r,f,h,t?wi:l,g,m,a),[b,v]=x.useState(0);df("deviation",A=>{b!==A&&v(A)});const y=De("EmptyPlaceholder"),w=De("ScrollSeekPlaceholder")||lE,C=De("ListComponent"),E=De("ItemComponent"),I=De("GroupComponent"),D=De("computeItemKey"),_=De("isSeeking"),F=De("groupIndices").length>0,$=De("alignToBottom"),P=De("initialItemFinalLocationReached"),M=t?{}:{boxSizing:"border-box",paddingTop:n.offsetTop,paddingBottom:n.offsetBottom,marginTop:b!==0?b:$?"auto":0,...P?{}:{visibility:"hidden"}};return!t&&n.totalCount===0&&y?x.createElement(y,it(y,c)):x.createElement(C,{...it(C,c),ref:p,style:M,"data-testid":t?"virtuoso-top-item-list":"virtuoso-item-list"},(t?n.topItems:n.items).map(A=>{const B=A.originalIndex,T=D(B+n.firstItemIndex,A.data,c);return _?x.createElement(w,{...it(w,c),key:T,index:A.index,height:A.size,type:A.type||"item",...A.type==="group"?{}:{groupIndex:A.groupIndex}}):A.type==="group"?x.createElement(I,{...it(I,c),key:T,"data-index":B,"data-known-size":A.size,"data-item-index":A.index,style:uE},d(A.index,c)):x.createElement(E,{...it(E,c),...s1(E,A.data),key:T,"data-index":B,"data-known-size":A.size,"data-item-index":A.index,"data-item-group-index":A.groupIndex,style:cE},F?u(A.index,A.groupIndex,A.data,c):u(A.index,A.data,c))}))}),dE={height:"100%",outline:"none",overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},ga=e=>({width:"100%",height:"100%",position:"absolute",top:0,...e?{display:"flex",flexDirection:"column"}:{}}),fE={width:"100%",position:a1(),top:0,zIndex:1};function it(e,t){if(typeof e!="string")return{context:t}}function s1(e,t){return{item:typeof e=="string"?void 0:t}}const hE=x.memo(function(){const t=De("HeaderComponent"),n=mn("headerHeight"),r=De("headerFooterTag"),i=zn(o=>n(In(o,"height"))),a=De("context");return t?x.createElement(r,{ref:i},x.createElement(t,it(t,a))):null}),gE=x.memo(function(){const t=De("FooterComponent"),n=mn("footerHeight"),r=De("headerFooterTag"),i=zn(o=>n(In(o,"height"))),a=De("context");return t?x.createElement(r,{ref:i},x.createElement(t,it(t,a))):null});function uf({usePublisher:e,useEmitter:t,useEmitterValue:n}){return x.memo(function({style:a,children:o,...s}){const l=e("scrollContainerState"),u=n("ScrollerComponent"),c=e("smoothScrollTargetReached"),d=n("scrollerRef"),h=n("context"),{scrollerRef:f,scrollByCallback:g,scrollToCallback:m}=Hb(l,c,u,d);return t("scrollTo",m),t("scrollBy",g),x.createElement(u,{ref:f,style:{...dE,...a},"data-testid":"virtuoso-scroller","data-virtuoso-scroller":!0,tabIndex:0,...s,...it(u,h)},o)})}function cf({usePublisher:e,useEmitter:t,useEmitterValue:n}){return x.memo(function({style:a,children:o,...s}){const l=e("windowScrollContainerState"),u=n("ScrollerComponent"),c=e("smoothScrollTargetReached"),d=n("totalListHeight"),h=n("deviation"),f=n("customScrollParent"),g=n("context"),{scrollerRef:m,scrollByCallback:p,scrollToCallback:b}=Hb(l,c,u,wi,f);return DS(()=>(m.current=f||window,()=>{m.current=null}),[m,f]),t("windowScrollTo",b),t("scrollBy",p),x.createElement(u,{style:{position:"relative",...a,...d!==0?{height:d+h}:{}},"data-virtuoso-scroller":!0,...s,...it(u,g)},o)})}const mE=({children:e})=>{const t=x.useContext(ou),n=mn("viewportHeight"),r=mn("fixedItemHeight"),i=De("alignToBottom"),a=zn(ao(n,o=>In(o,"height")));return x.useEffect(()=>{t&&(n(t.viewportHeight),r(t.itemHeight))},[t,n,r]),x.createElement("div",{style:ga(i),ref:a,"data-viewport-type":"element"},e)},pE=({children:e})=>{const t=x.useContext(ou),n=mn("windowViewportRect"),r=mn("fixedItemHeight"),i=De("customScrollParent"),a=sf(n,i),o=De("alignToBottom");return x.useEffect(()=>{t&&(r(t.itemHeight),n({offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:100}))},[t,n,r]),x.createElement("div",{ref:a,style:ga(o),"data-viewport-type":"window"},e)},bE=({children:e})=>{const t=De("TopItemListComponent")||"div",n=De("headerHeight"),r={...fE,marginTop:`${n}px`},i=De("context");return x.createElement(t,{style:r,...it(t,i)},e)},vE=x.memo(function(t){const n=De("useWindowScroll"),r=De("topItemsIndexes").length>0,i=De("customScrollParent"),a=i||n?CE:xE,o=i||n?pE:mE;return x.createElement(a,{...t},r&&x.createElement(bE,null,x.createElement(yg,{showTopList:!0})),x.createElement(o,null,x.createElement(hE,null),x.createElement(yg,null),x.createElement(gE,null)))}),{Component:yE,usePublisher:mn,useEmitterValue:De,useEmitter:df}=Qd(sE,{required:{},optional:{restoreStateFrom:"restoreStateFrom",context:"context",followOutput:"followOutput",itemContent:"itemContent",groupContent:"groupContent",overscan:"overscan",increaseViewportBy:"increaseViewportBy",totalCount:"totalCount",groupCounts:"groupCounts",topItemCount:"topItemCount",firstItemIndex:"firstItemIndex",initialTopMostItemIndex:"initialTopMostItemIndex",components:"components",atBottomThreshold:"atBottomThreshold",atTopThreshold:"atTopThreshold",computeItemKey:"computeItemKey",defaultItemHeight:"defaultItemHeight",fixedItemHeight:"fixedItemHeight",itemSize:"itemSize",scrollSeekConfiguration:"scrollSeekConfiguration",headerFooterTag:"headerFooterTag",data:"data",initialItemCount:"initialItemCount",initialScrollTop:"initialScrollTop",alignToBottom:"alignToBottom",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel"},methods:{scrollToIndex:"scrollToIndex",scrollIntoView:"scrollIntoView",scrollTo:"scrollTo",scrollBy:"scrollBy",autoscrollToBottom:"autoscrollToBottom",getState:"getState"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",totalListHeightChanged:"totalListHeightChanged",itemsRendered:"itemsRendered",groupIndices:"groupIndices"}},vE),xE=uf({usePublisher:mn,useEmitterValue:De,useEmitter:df}),CE=cf({usePublisher:mn,useEmitterValue:De,useEmitter:df}),wE=yE,xg={items:[],offsetBottom:0,offsetTop:0,top:0,bottom:0,itemHeight:0,itemWidth:0},DE={items:[{index:0}],offsetBottom:0,offsetTop:0,top:0,bottom:0,itemHeight:0,itemWidth:0},{round:Cg,ceil:wg,floor:yl,min:zu,max:Ga}=Math;function SE(e){return{...DE,items:e}}function Dg(e,t,n){return Array.from({length:t-e+1}).map((r,i)=>{const a=n===null?null:n[i+e];return{index:i+e,data:a}})}function EE(e,t){return e&&e.column===t.column&&e.row===t.row}function os(e,t){return e&&e.width===t.width&&e.height===t.height}const IE=Te(([{overscan:e,visibleRange:t,listBoundary:n},{scrollTop:r,viewportHeight:i,scrollBy:a,scrollTo:o,smoothScrollTargetReached:s,scrollContainerState:l,footerHeight:u,headerHeight:c},d,h,{propsReady:f,didMount:g},{windowViewportRect:m,useWindowScroll:p,customScrollParent:b,windowScrollContainerState:v,windowScrollTo:y},w])=>{const C=K(0),E=K(0),I=K(xg),D=K({height:0,width:0}),_=K({height:0,width:0}),F=Ie(),$=Ie(),P=K(0),M=K(null),A=K({row:0,column:0}),B=Ie(),T=Ie(),R=K(!1),O=K(0),H=K(!0),L=K(!1);We(U(g,ye(O),pe(([N,G])=>!!G)),()=>{ve(H,!1),ve(E,0)}),We(U(yt(g,H,_,D,O,L),pe(([N,G,J,re,,fe])=>N&&!G&&J.height!==0&&re.height!==0&&!fe)),([,,,,N])=>{ve(L,!0),nf(1,()=>{ve(F,N)}),Wn(U(r),()=>{ve(n,[0,0]),ve(H,!0)})}),se(U(T,pe(N=>N!=null&&N.scrollTop>0),Bn(0)),E),We(U(g,ye(T),pe(([,N])=>N!=null)),([,N])=>{N&&(ve(D,N.viewport),ve(_,N==null?void 0:N.item),ve(A,N.gap),N.scrollTop>0&&(ve(R,!0),Wn(U(r,aa(1)),G=>{ve(R,!1)}),ve(o,{top:N.scrollTop})))}),se(U(D,te(({height:N})=>N)),i),se(U(yt(be(D,os),be(_,os),be(A,(N,G)=>N&&N.column===G.column&&N.row===G.row),be(r)),te(([N,G,J,re])=>({viewport:N,item:G,gap:J,scrollTop:re}))),B),se(U(yt(be(C),t,be(A,EE),be(_,os),be(D,os),be(M),be(E),be(R),be(H),be(O)),pe(([,,,,,,,N])=>!N),te(([N,[G,J],re,fe,le,z,Ae,,Me,Xe])=>{const{row:qe,column:ee}=re,{height:ne,width:he}=fe,{width:Oe}=le;if(Ae===0&&(N===0||Oe===0))return xg;if(he===0){const _i=rf(Xe,N),ba=_i===0?Math.max(Ae-1,0):_i;return SE(Dg(_i,ba,z))}const ut=l1(Oe,he,ee);let Se,xe;Me?G===0&&J===0&&Ae>0?(Se=0,xe=Ae-1):(Se=ut*yl((G+qe)/(ne+qe)),xe=ut*wg((J+qe)/(ne+qe))-1,xe=zu(N-1,Ga(xe,ut-1)),Se=zu(xe,Ga(0,Se))):(Se=0,xe=-1);const Vt=Dg(Se,xe,z),{top:Ot,bottom:Nt}=Sg(le,re,fe,Vt),ln=wg(N/ut),Ko=ln*ne+(ln-1)*qe-Nt;return{items:Vt,offsetTop:Ot,offsetBottom:Ko,top:Ot,bottom:Nt,itemHeight:ne,itemWidth:he}})),I),se(U(M,pe(N=>N!==null),te(N=>N.length)),C),se(U(yt(D,_,I,A),pe(([N,G,{items:J}])=>J.length>0&&G.height!==0&&N.height!==0),te(([N,G,{items:J},re])=>{const{top:fe,bottom:le}=Sg(N,re,G,J);return[fe,le]}),Ye(co)),n);const Z=K(!1);se(U(r,ye(Z),te(([N,G])=>G||N!==0)),Z);const V=nn(U(be(I),pe(({items:N})=>N.length>0),ye(C,Z),pe(([{items:N},G,J])=>J&&N[N.length-1].index===G-1),te(([,N])=>N-1),Ye())),W=nn(U(be(I),pe(({items:N})=>N.length>0&&N[0].index===0),Bn(0),Ye())),q=nn(U(be(I),ye(R),pe(([{items:N},G])=>N.length>0&&!G),te(([{items:N}])=>({startIndex:N[0].index,endIndex:N[N.length-1].index})),Ye(qb),wr(0)));se(q,h.scrollSeekRangeChanged),se(U(F,ye(D,_,C,A),te(([N,G,J,re,fe])=>{const le=Kb(N),{align:z,behavior:Ae,offset:Me}=le;let Xe=le.index;Xe==="LAST"&&(Xe=re-1),Xe=Ga(0,Xe,zu(re-1,Xe));let qe=Wc(G,fe,J,Xe);return z==="end"?qe=Cg(qe-G.height+J.height):z==="center"&&(qe=Cg(qe-G.height/2+J.height/2)),Me&&(qe+=Me),{top:qe,behavior:Ae}})),o);const Y=At(U(I,te(N=>N.offsetBottom+N.bottom)),0);return se(U(m,te(N=>({width:N.visibleWidth,height:N.visibleHeight}))),D),{data:M,totalCount:C,viewportDimensions:D,itemDimensions:_,scrollTop:r,scrollHeight:$,overscan:e,scrollBy:a,scrollTo:o,scrollToIndex:F,smoothScrollTargetReached:s,windowViewportRect:m,windowScrollTo:y,useWindowScroll:p,customScrollParent:b,windowScrollContainerState:v,deviation:P,scrollContainerState:l,footerHeight:u,headerHeight:c,initialItemCount:E,gap:A,restoreStateFrom:T,...h,initialTopMostItemIndex:O,gridState:I,totalListHeight:Y,...d,startReached:W,endReached:V,rangeChanged:q,stateChanged:B,propsReady:f,stateRestoreInProgress:R,...w}},Ue(af,Bt,No,t1,Or,of,Vr));function Sg(e,t,n,r){const{height:i}=n;if(i===void 0||r.length===0)return{top:0,bottom:0};const a=Wc(e,t,n,r[0].index),o=Wc(e,t,n,r[r.length-1].index)+i;return{top:a,bottom:o}}function Wc(e,t,n,r){const i=l1(e.width,n.width,t.column),a=yl(r/i),o=a*n.height+Ga(0,a-1)*t.row;return o>0?o+t.row:o}function l1(e,t,n){return Ga(1,yl((e+n)/(yl(t)+n)))}const _E=Te(()=>{const e=K(u=>`Item ${u}`),t=K({}),n=K(null),r=K("virtuoso-grid-item"),i=K("virtuoso-grid-list"),a=K(lf),o=K("div"),s=K(wi),l=(u,c=null)=>At(U(t,te(d=>d[u]),Ye()),c);return{context:n,itemContent:e,components:t,computeItemKey:a,itemClassName:r,listClassName:i,headerFooterTag:o,scrollerRef:s,FooterComponent:l("Footer"),HeaderComponent:l("Header"),ListComponent:l("List","div"),ItemComponent:l("Item","div"),ScrollerComponent:l("Scroller","div"),ScrollSeekPlaceholder:l("ScrollSeekPlaceholder","div")}}),$E=Te(([e,t])=>({...e,...t}),Ue(IE,_E)),RE=x.memo(function(){const t=tt("gridState"),n=tt("listClassName"),r=tt("itemClassName"),i=tt("itemContent"),a=tt("computeItemKey"),o=tt("isSeeking"),s=Sn("scrollHeight"),l=tt("ItemComponent"),u=tt("ListComponent"),c=tt("ScrollSeekPlaceholder"),d=tt("context"),h=Sn("itemDimensions"),f=Sn("gap"),g=tt("log"),m=tt("stateRestoreInProgress"),p=zn(b=>{const v=b.parentElement.parentElement.scrollHeight;s(v);const y=b.firstChild;if(y){const{width:w,height:C}=y.getBoundingClientRect();h({width:w,height:C})}f({row:Eg("row-gap",getComputedStyle(b).rowGap,g),column:Eg("column-gap",getComputedStyle(b).columnGap,g)})});return m?null:x.createElement(u,{ref:p,className:n,...it(u,d),style:{paddingTop:t.offsetTop,paddingBottom:t.offsetBottom},"data-testid":"virtuoso-item-list"},t.items.map(b=>{const v=a(b.index,b.data,d);return o?x.createElement(c,{key:v,...it(c,d),index:b.index,height:t.itemHeight,width:t.itemWidth}):x.createElement(l,{...it(l,d),className:r,"data-index":b.index,key:v},i(b.index,b.data,d))}))}),AE=x.memo(function(){const t=tt("HeaderComponent"),n=Sn("headerHeight"),r=tt("headerFooterTag"),i=zn(o=>n(In(o,"height"))),a=tt("context");return t?x.createElement(r,{ref:i},x.createElement(t,it(t,a))):null}),FE=x.memo(function(){const t=tt("FooterComponent"),n=Sn("footerHeight"),r=tt("headerFooterTag"),i=zn(o=>n(In(o,"height"))),a=tt("context");return t?x.createElement(r,{ref:i},x.createElement(t,it(t,a))):null}),PE=({children:e})=>{const t=x.useContext(o1),n=Sn("itemDimensions"),r=Sn("viewportDimensions"),i=zn(a=>{r(a.getBoundingClientRect())});return x.useEffect(()=>{t&&(r({height:t.viewportHeight,width:t.viewportWidth}),n({height:t.itemHeight,width:t.itemWidth}))},[t,r,n]),x.createElement("div",{style:ga(!1),ref:i},e)},TE=({children:e})=>{const t=x.useContext(o1),n=Sn("windowViewportRect"),r=Sn("itemDimensions"),i=tt("customScrollParent"),a=sf(n,i);return x.useEffect(()=>{t&&(r({height:t.itemHeight,width:t.itemWidth}),n({offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:t.viewportWidth}))},[t,n,r]),x.createElement("div",{ref:a,style:ga(!1)},e)},ME=x.memo(function({...t}){const n=tt("useWindowScroll"),r=tt("customScrollParent"),i=r||n?BE:kE,a=r||n?TE:PE;return x.createElement(i,{...t},x.createElement(a,null,x.createElement(AE,null),x.createElement(RE,null),x.createElement(FE,null)))}),{Component:tB,usePublisher:Sn,useEmitterValue:tt,useEmitter:u1}=Qd($E,{optional:{context:"context",totalCount:"totalCount",overscan:"overscan",itemContent:"itemContent",components:"components",computeItemKey:"computeItemKey",data:"data",initialItemCount:"initialItemCount",scrollSeekConfiguration:"scrollSeekConfiguration",headerFooterTag:"headerFooterTag",listClassName:"listClassName",itemClassName:"itemClassName",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel",restoreStateFrom:"restoreStateFrom",initialTopMostItemIndex:"initialTopMostItemIndex"},methods:{scrollTo:"scrollTo",scrollBy:"scrollBy",scrollToIndex:"scrollToIndex"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",stateChanged:"stateChanged"}},ME),kE=uf({usePublisher:Sn,useEmitterValue:tt,useEmitter:u1}),BE=cf({usePublisher:Sn,useEmitterValue:tt,useEmitter:u1});function Eg(e,t,n){return t!=="normal"&&!(t!=null&&t.endsWith("px"))&&n(`${e} was not resolved to pixel value correctly`,t,rn.WARN),t==="normal"?0:parseInt(t??"0",10)}const VE=Te(()=>{const e=K(l=>x.createElement("td",null,"Item $",l)),t=K(null),n=K(null),r=K(null),i=K({}),a=K(lf),o=K(wi),s=(l,u=null)=>At(U(i,te(c=>c[l]),Ye()),u);return{context:t,itemContent:e,fixedHeaderContent:n,fixedFooterContent:r,components:i,computeItemKey:a,scrollerRef:o,TableComponent:s("Table","table"),TableHeadComponent:s("TableHead","thead"),TableFooterComponent:s("TableFoot","tfoot"),TableBodyComponent:s("TableBody","tbody"),TableRowComponent:s("TableRow","tr"),ScrollerComponent:s("Scroller","div"),EmptyPlaceholder:s("EmptyPlaceholder"),ScrollSeekPlaceholder:s("ScrollSeekPlaceholder"),FillerRow:s("FillerRow")}}),OE=Te(([e,t])=>({...e,...t}),Ue(i1,VE)),NE=({height:e})=>x.createElement("tr",null,x.createElement("td",{style:{height:e}})),LE=({height:e})=>x.createElement("tr",null,x.createElement("td",{style:{height:e,padding:0,border:0}})),jE={overflowAnchor:"none"},HE=x.memo(function(){const t=Le("listState"),n=En("sizeRanges"),r=Le("useWindowScroll"),i=Le("customScrollParent"),a=En("windowScrollContainerState"),o=En("scrollContainerState"),s=i||r?a:o,l=Le("itemContent"),u=Le("trackItemSizes"),c=Le("itemSize"),d=Le("log"),{callbackRef:h,ref:f}=Lb(n,c,u,s,d,void 0,i),[g,m]=x.useState(0);ff("deviation",T=>{g!==T&&(f.current.style.marginTop=`${T}px`,m(T))});const p=Le("EmptyPlaceholder"),b=Le("ScrollSeekPlaceholder")||NE,v=Le("FillerRow")||LE,y=Le("TableBodyComponent"),w=Le("TableRowComponent"),C=Le("computeItemKey"),E=Le("isSeeking"),I=Le("paddingTopAddition"),D=Le("firstItemIndex"),_=Le("statefulTotalCount"),F=Le("context");if(_===0&&p)return x.createElement(p,it(p,F));const $=t.offsetTop+I+g,P=t.offsetBottom,M=$>0?x.createElement(v,{height:$,key:"padding-top",context:F}):null,A=P>0?x.createElement(v,{height:P,key:"padding-bottom",context:F}):null,B=t.items.map(T=>{const R=T.originalIndex,O=C(R+D,T.data,F);return E?x.createElement(b,{...it(b,F),key:O,index:T.index,height:T.size,type:T.type||"item"}):x.createElement(w,{...it(w,F),...s1(w,T.data),key:O,"data-index":R,"data-known-size":T.size,"data-item-index":T.index,style:jE},l(T.index,T.data,F))});return x.createElement(y,{ref:h,"data-testid":"virtuoso-item-list",...it(y,F)},[M,...B,A])}),WE=({children:e})=>{const t=x.useContext(ou),n=En("viewportHeight"),r=En("fixedItemHeight"),i=zn(ao(n,a=>In(a,"height")));return x.useEffect(()=>{t&&(n(t.viewportHeight),r(t.itemHeight))},[t,n,r]),x.createElement("div",{style:ga(!1),ref:i,"data-viewport-type":"element"},e)},zE=({children:e})=>{const t=x.useContext(ou),n=En("windowViewportRect"),r=En("fixedItemHeight"),i=Le("customScrollParent"),a=sf(n,i);return x.useEffect(()=>{t&&(r(t.itemHeight),n({offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:100}))},[t,n,r]),x.createElement("div",{ref:a,style:ga(!1),"data-viewport-type":"window"},e)},GE=x.memo(function(t){const n=Le("useWindowScroll"),r=Le("customScrollParent"),i=En("fixedHeaderHeight"),a=En("fixedFooterHeight"),o=Le("fixedHeaderContent"),s=Le("fixedFooterContent"),l=Le("context"),u=zn(ao(i,v=>In(v,"height"))),c=zn(ao(a,v=>In(v,"height"))),d=r||n?YE:XE,h=r||n?zE:WE,f=Le("TableComponent"),g=Le("TableHeadComponent"),m=Le("TableFooterComponent"),p=o?x.createElement(g,{key:"TableHead",style:{zIndex:2,position:"sticky",top:0},ref:u,...it(g,l)},o()):null,b=s?x.createElement(m,{key:"TableFoot",style:{zIndex:1,position:"sticky",bottom:0},ref:c,...it(m,l)},s()):null;return x.createElement(d,{...t},x.createElement(h,null,x.createElement(f,{style:{borderSpacing:0,overflowAnchor:"none"},...it(f,l)},[p,x.createElement(HE,{key:"TableBody"}),b])))}),{Component:ZE,usePublisher:En,useEmitterValue:Le,useEmitter:ff}=Qd(OE,{required:{},optional:{restoreStateFrom:"restoreStateFrom",context:"context",followOutput:"followOutput",firstItemIndex:"firstItemIndex",itemContent:"itemContent",fixedHeaderContent:"fixedHeaderContent",fixedFooterContent:"fixedFooterContent",overscan:"overscan",increaseViewportBy:"increaseViewportBy",totalCount:"totalCount",topItemCount:"topItemCount",initialTopMostItemIndex:"initialTopMostItemIndex",components:"components",groupCounts:"groupCounts",atBottomThreshold:"atBottomThreshold",atTopThreshold:"atTopThreshold",computeItemKey:"computeItemKey",defaultItemHeight:"defaultItemHeight",fixedItemHeight:"fixedItemHeight",itemSize:"itemSize",scrollSeekConfiguration:"scrollSeekConfiguration",data:"data",initialItemCount:"initialItemCount",initialScrollTop:"initialScrollTop",alignToBottom:"alignToBottom",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel"},methods:{scrollToIndex:"scrollToIndex",scrollIntoView:"scrollIntoView",scrollTo:"scrollTo",scrollBy:"scrollBy",getState:"getState"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",totalListHeightChanged:"totalListHeightChanged",itemsRendered:"itemsRendered",groupIndices:"groupIndices"}},GE),XE=uf({usePublisher:En,useEmitterValue:Le,useEmitter:ff}),YE=cf({usePublisher:En,useEmitterValue:Le,useEmitter:ff}),UE=ZE,JE=({children:e,...t})=>S.jsx(S.Fragment,{children:e(t)}),KE=({children:e,...t})=>S.jsx(S.Fragment,{children:x.isValidElement(e)&&S.jsx(S.Fragment,{children:x.cloneElement(e,t)})}),hf=x.forwardRef((e,t)=>{const{classNameContainer:n="",computeItemKey:r=()=>"",itemSize:i=()=>0,totalCount:a=0,typeHight:o="min-max",minHeightItem:s=0,maxHeightTable:l=0,minLengthItem:u=0,fixedHeaderContent:c,itemContent:d,typeCalculateItemSize:h="manual",itemSizeNames:f=[],overscan:g=null,component:m={},idContainer:p="",triggerCalCulateContainer:b="",accumulationHeight:v=0,delayTriggerCalculateHeight:y=0,increaseViewportBy:w=()=>0,context:C={},endReached:E}=e,[I,D]=x.useState(0),_=()=>{if(o==="min-max"){const P=(a+1)*s;return{height:a>u?l:I>P?I:P}}return o==="container"?{height:I}:{}},F=P=>{var B;const M=P.getAttribute("data-index");let A=((B=P.getBoundingClientRect())==null?void 0:B.height)||0;return f==null||f.forEach(T=>{var R,O;A+=((O=(R=document.querySelector(`[${T}="${M}"]`))==null?void 0:R.getBoundingClientRect())==null?void 0:O.height)??0}),A},$=()=>{var P;if(p&&o==="container"){const M=((P=document==null?void 0:document.getElementById(p))==null?void 0:P.offsetHeight)??0;D(M-v)}};return x.useEffect(()=>{const P=setTimeout($,y);return window==null||window.addEventListener("resize",$),window==null||window.addEventListener("load",$),()=>{clearTimeout(P),window==null||window.removeEventListener("resize",$),window==null||window.removeEventListener("load",$)}},[o,b]),S.jsx("div",{className:`1ru-w-full ${n}`,children:S.jsx(UE,{context:C,ref:t,overscan:typeof g=="function"?g(o==="container"?I:l):o==="container"?I:l,totalListHeightChanged:P=>o==="min-max"?D(P):null,style:_(),totalCount:a,computeItemKey:r,itemSize:x.useCallback(P=>h==="manual"?i(P):F(P),[]),components:{TableRow:KE,...m},fixedHeaderContent:c,itemContent:(...P)=>d(JE,...P),endReached:E,increaseViewportBy:w(o==="container"?I:l)})})});hf.displayName="TableVirtualization";const QE="_sorting_dedjh_39",Qn={"container-table":"_container-table_dedjh_1","payhere-reguler":"_payhere-reguler_dedjh_1","laba-small":"_laba-small_dedjh_1","laba-reguler":"_laba-reguler_dedjh_1","table-root":"_table-root_dedjh_5","table-scroll-top":"_table-scroll-top_dedjh_9","pointer-laba":"_pointer-laba_dedjh_16","pointer-payhere":"_pointer-payhere_dedjh_20",sorting:QE,"laba-grey-02":"_laba-grey-02_dedjh_53"},Ti="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.6673%2011.3333L8.00065%2014M8.00065%2014L5.33398%2011.3333M8.00065%2014V2'%20stroke='%23CFD8DC'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e";function qE(e,t=null){const[n,r]=x.useState(!1);return x.useEffect(()=>{let i=null,a=null;const o=()=>{const s=i instanceof HTMLElement?i.getBoundingClientRect().width:window.innerWidth,l=window.matchMedia(e.replace("WIDTH",s.toString()));r(l.matches)};if(t){if(i=document.getElementById(t),!i)return;a=new ResizeObserver(o),a.observe(i)}else i=window,window.addEventListener("resize",o);return o(),()=>{a?a.disconnect():window.removeEventListener("resize",o)}},[e,t]),n}const eI=e=>{const t=h=>{const f=new Date,g=h.getTime()-f.getTime();return Math.max(Math.floor(g/1e3),0)},n=new Date(new Date(e.date).setHours(new Date(e.date).getHours()-((e==null?void 0:e.adjustTimesTime)??0))),[r,i]=x.useState(t(n)),[a,o]=x.useState(e.running??!1),[s,l]=x.useState(()=>e==null?void 0:e.callbackDone);return x.useEffect(()=>{let h;return a&&r>0?h=setInterval(()=>{i(f=>Math.max(f-1,0))},e.intervalMs):a&&r===0&&typeof s=="function"&&s(),()=>{h&&clearInterval(h)}},[a,r,e.intervalMs,s]),{count:r,startCountdown:()=>{o(!0)},stopCountdown:()=>{o(!1)},resetCountdown:h=>{i(typeof h=="number"?h:t(h??n))},setCallbackDone:h=>l(()=>h)}};function tI(e,t=0){const n=x.useRef({promise:null,resolve:null,reject:null,timeout:null});return x.useCallback((...i)=>(n.current.timeout&&clearTimeout(n.current.timeout),n.current.promise||(n.current.promise=new Promise((a,o)=>{n.current.resolve=a,n.current.reject=o})),n.current.timeout=setTimeout(()=>{e(...i).then(a=>{n.current.resolve&&n.current.resolve(a)}).catch(a=>{n.current.reject&&n.current.reject(a)}).finally(()=>{n.current.promise=null,n.current.resolve=null,n.current.reject=null,n.current.timeout=null})},t),n.current.promise),[e,t])}const c1=typeof window<"u"?x.useLayoutEffect:x.useEffect,nI=(e,t)=>{const[n,r]=x.useState({width:0,height:0}),[i,a]=x.useState({width:0,height:0,top:0,left:0,bottom:0,right:0,x:0,y:0}),o=x.useRef(null);return c1(()=>{const s=()=>{r({width:window.innerWidth,height:window.innerHeight})},l=d=>{for(const h of d){const{width:f,height:g,top:m,left:p,bottom:b,right:v,x:y,y:w}=h.contentRect;a({width:f,height:g,top:m,left:p,bottom:b,right:v,x:y,y:w})}};let u=null;t?u=document.querySelector(t):o.current&&(u=o.current);const c=new ResizeObserver(l);return u&&c.observe(u),window.addEventListener("resize",s),s(),()=>{u&&c.unobserve(u),window.removeEventListener("resize",s)}},[t,...e??[]]),{ref:o,windowSize:n,contentRect:i}};function rI(e){const[t,n]=x.useState(e),r=x.useRef(t);return x.useEffect(()=>{r.current=t},[t]),[t,n,r]}function iI(e,t){if(e!=null){if(typeof e=="function"){e(t);return}try{e.current=t}catch{throw new Error(`Cannot assign value '${JSON.stringify(t)}' to ref '${JSON.stringify(e)}'`)}}}function aI(...e){return t=>{e.forEach(n=>{iI(n,t)})}}function d1(...e){return x.useMemo(()=>aI(...e),e)}function gf(e){const t=x.useRef(e);return Vd(e,t.current)||(t.current=e),t.current}function jo(e,t){const n=t.map(gf);x.useEffect(e,n)}function oI({ref:e,handlerMain:t,eventListener:n="mousedown",useEffectDependency:r=[]}){x.useEffect(()=>{function i(a){t(e,a)}return document.addEventListener(n,i),()=>{document.removeEventListener(n,i)}},[e,t,n,...r])}const sI=(e,t)=>{var r,i;let n={};return e?n={position:"sticky",top:0,zIndex:2}:(r=t.column.columnDef.meta)!=null&&r.styleTh&&(n={...n,...(i=t.column.columnDef.meta)==null?void 0:i.styleTh(t.column.columnDef)}),n},Ut=()=>({kind:{"payhere-reguler":Qn["payhere-reguler"],"laba-reguler":Qn["laba-reguler"],"laba-small":Qn["laba-small"]},pointer:{"payhere-reguler":Qn["pointer-payhere"],"laba-reguler":Qn["pointer-laba"],"laba-small":Qn["pointer-laba"]},utility:{"table-scroll-top":""},sortingIcon:{"payhere-reguler":{asc:S.jsx("img",{src:Ti,className:"1ru-w-4 1ru-h-4"}),desc:S.jsx("img",{src:Ti,className:"1ru-w-4 1ru-h-4 1ru-rotate-180"})},"laba-reguler":{asc:S.jsx("img",{src:Ti,className:"1ru-w-4 1ru-h-4"}),desc:S.jsx("img",{src:Ti,className:"1ru-w-4 1ru-h-4 1ru-rotate-180"})},"laba-small":{asc:S.jsx("img",{src:Ti,className:"1ru-w-4 1ru-h-4"}),desc:S.jsx("img",{src:Ti,className:"1ru-w-4 1ru-h-4 1ru-rotate-180"})}},variant:{"laba-grey-02":Qn["laba-grey-02"]}}),lI=({tableInstance:e,classNameWrapperTable:t,classNameTable:n,handlerRowClick:r,privillageRowClick:i,headerId:a,tbodyTrId:o,maxHeight:s,idCalculateHeight:l,componentSortASC:u,componentSortDESC:c,classNamePointer:d,emptyPlaceholder:h})=>S.jsx("div",{id:"1ru-table",style:s?{height:s,overflow:"auto"}:{},className:t??"",children:S.jsxs("table",{className:n,children:[S.jsx("thead",{id:a,children:e.getHeaderGroups().map(f=>S.jsx("tr",{children:f.headers.map(g=>S.jsx("th",{style:sI(s,g),colSpan:g.colSpan,children:g.isPlaceholder?null:S.jsxs("div",{className:g.column.getCanSort()?Qn.sorting:"",onClick:g.column.getToggleSortingHandler(),children:[io(g.column.columnDef.header,g.getContext()),g.column.getCanSort()&&S.jsx("span",{className:"1ru-flex-shrink-0",children:g.column.getIsSorted()==="asc"||g.column.getIsSorted()==="desc"?S.jsxs(S.Fragment,{children:[g.column.getIsSorted()==="asc"&&S.jsx(S.Fragment,{children:u}),g.column.getIsSorted()==="desc"&&S.jsx(S.Fragment,{children:c})]}):S.jsx(S.Fragment,{})})]})},g.id))},f.id))}),S.jsxs("tbody",{children:[e.getRowModel().rows.length>0&&e.getRowModel().rows.map((f,g)=>S.jsx("tr",{onClick:m=>{m.stopPropagation(),i&&typeof r=="function"&&r(f.original,f)},className:i?d:"","data-calculate-height":`${l}-${g}`,id:o(f),children:f.getVisibleCells().map(m=>{var p,b,v;return S.jsx("td",{style:typeof((p=m.column.columnDef.meta)==null?void 0:p.styleTd)=="function"?m.column.columnDef.meta.styleTd(f.original,f):{},className:typeof((b=m.column.columnDef.meta)==null?void 0:b.classNameTd)=="function"?(v=m.column.columnDef.meta)==null?void 0:v.classNameTd(f.original,f):"",children:io(m.column.columnDef.cell,m.getContext())},m.id)})},f.id)),e.getRowModel().rows.length===0&&x.isValidElement(h)&&S.jsx("tr",{children:S.jsx("td",{colSpan:e.getVisibleFlatColumns().length,children:h})})]})]})}),f1=x.forwardRef((e,t)=>{const{context:n,...r}=e;return S.jsx("thead",{id:(n==null?void 0:n.headerId)??"",...r,ref:t})});f1.displayName="VirtualizationHead";const uI=({style:e,context:t,...n})=>S.jsx("table",{...n,id:"1ru-table",className:(t==null?void 0:t.classNameTable)??"",style:e}),cI=({tableInstance:e,classNameWrapperTable:t,handlerRowClick:n,privillageRowClick:r,virtualizationProps:i,headerId:a,tbodyTrId:o,classNameTable:s,componentSortASC:l,componentSortDESC:u,classNamePointer:c,emptyPlaceholder:d})=>{var g,m,p;const[h,f]=x.useState(0);return S.jsx(hf,{context:{headerId:a,classNameTable:s},typeHight:"min-max",totalCount:((g=e.getRowModel().rows)==null?void 0:g.length)||0,minLengthItem:((m=e.getRowModel().rows)==null?void 0:m.length)||0,typeCalculateItemSize:"auto",component:{TableHead:f1,Table:uI,EmptyPlaceholder:()=>S.jsx("tbody",{ref:b=>{var v;return f(((v=b==null?void 0:b.getBoundingClientRect())==null?void 0:v.height)??0)},children:S.jsx("tr",{children:S.jsx("td",{colSpan:e.getVisibleFlatColumns().length,children:x.isValidElement(d)&&d})})})},classNameContainer:t,fixedHeaderContent:()=>e.getHeaderGroups().map(b=>S.jsx("tr",{children:b.headers.map(v=>{var y,w;return S.jsx("th",{colSpan:v.colSpan,style:typeof((y=v.column.columnDef.meta)==null?void 0:y.styleTh)=="function"?(w=v.column.columnDef.meta)==null?void 0:w.styleTh(v.column.columnDef):{},children:v.isPlaceholder?null:S.jsxs("div",{className:v.column.getCanSort()?Qn.sorting:"",onClick:v.column.getToggleSortingHandler(),children:[io(v.column.columnDef.header,v.getContext()),v.column.getCanSort()&&S.jsx("span",{className:"1ru-flex-shrink-0",children:v.column.getIsSorted()==="asc"||v.column.getIsSorted()==="desc"?S.jsxs(S.Fragment,{children:[v.column.getIsSorted()==="asc"&&S.jsx(S.Fragment,{children:l}),v.column.getIsSorted()==="desc"&&S.jsx(S.Fragment,{children:u})]}):S.jsx(S.Fragment,{})})]})},v.id)})},b.id)),itemContent:(b,v)=>{var w,C;const y=(C=(w=e.getRowModel())==null?void 0:w.rows)==null?void 0:C[v];return S.jsx(b,{children:({...E})=>x.createElement("tr",{...E,onClick:I=>{I.stopPropagation(),r&&typeof n=="function"&&n(y.original,y)},className:r?c:"",key:y.id,id:o(y)},y.getVisibleCells().map(I=>{var D,_,F;return S.jsx(S.Fragment,{children:S.jsx("td",{style:typeof((D=I.column.columnDef.meta)==null?void 0:D.styleTd)=="function"?I.column.columnDef.meta.styleTd(y.original,y):{},className:typeof((_=I.column.columnDef.meta)==null?void 0:_.classNameTd)=="function"?(F=I.column.columnDef.meta)==null?void 0:F.classNameTd(y.original,y):"",children:io(I.column.columnDef.cell,I.getContext())},I.id)})}))},y.id)},...i,minHeightItem:((i==null?void 0:i.minHeightItem)??60)+((((p=e.getRowModel().rows)==null?void 0:p.length)||0)>0?0:h)})},dI=({tableInstance:e,classNameWrapperTable:t="",classNameTable:n="",collapseAll:r=!0,handlerRowClick:i,privillageRowClick:a=!1,virtualization:o=!1,virtualizationProps:s,headerId:l="",tbodyTrId:u=()=>"",maxHeight:c=0,idCalculateHeight:d=void 0,kind:h="laba-reguler",componentSortASC:f,componentSortDESC:g,scrollTop:m=!1,emptyPlaceholder:p,variant:b})=>{const v=()=>{if(![void 0,"undefined"].includes(d)){let y=0;const w=document.querySelectorAll(`[data-calculate-height^="${d}-"]`);return w==null||w.forEach(C=>{y+=C.offsetHeight}),y>c?c:y}return c};return jo(()=>{!r&&typeof e.toggleAllRowsExpanded=="function"&&e.toggleAllRowsExpanded()},[r,e==null?void 0:e.toggleAllRowsExpanded]),S.jsxs(S.Fragment,{children:[!o&&S.jsx(lI,{tbodyTrId:u,headerId:l,tableInstance:e,classNameTable:n,classNameWrapperTable:`${Ut().kind[h]} ${b?Ut().variant[b]:""}
|
71
|
+
*/function io(e,t){return e?uS(e)?j.createElement(e,t):e:null}function uS(e){return cS(e)||typeof e=="function"||dS(e)}function cS(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function dS(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}function fS(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=j.useState(()=>({current:Mb(t)})),[r,i]=j.useState(()=>n.current.initialState);return n.current.setOptions(a=>({...a,...e,state:{...r,...e.state},onStateChange:o=>{i(o),e.onStateChange==null||e.onStateChange(o)}})),n.current}const hS=Object.freeze(Object.defineProperty({__proto__:null,ColumnFaceting:cb,ColumnFiltering:yb,ColumnGrouping:xb,ColumnOrdering:wb,ColumnPinning:Db,ColumnSizing:Sb,ColumnVisibility:Ib,GlobalFaceting:_b,GlobalFiltering:$b,Headers:ub,RowExpanding:Rb,RowPagination:Ab,RowPinning:Fb,RowSelection:Pb,RowSorting:kb,_getVisibleLeafColumns:Yi,aggregationFns:Ns,buildHeaderGroups:Ra,createCell:sb,createColumn:lb,createColumnHelper:T5,createRow:Vo,createTable:Mb,defaultColumnSizing:Aa,expandRows:Ud,filterFns:Mn,flattenBy:Zd,flexRender:io,functionalUpdate:ir,getCoreRowModel:K5,getExpandedRowModel:Q5,getFacetedMinMaxValues:q5,getFacetedRowModel:nS,getFacetedUniqueValues:rS,getFilteredRowModel:iS,getGroupedRowModel:aS,getMemoOptions:oe,getPaginationRowModel:sS,getSortedRowModel:lS,isFunction:Bo,isNumberArray:ob,isRowSelected:tu,isSubRowSelected:gl,makeStateUpdater:Gt,memo:ae,noop:k5,orderColumns:Cb,passiveEventSupported:Eb,reSplitAlphaNumeric:ml,selectRowsFn:Ls,shouldAutoRemoveFilter:Mc,sortingFns:Wi,useReactTable:fS},Symbol.toStringTag,{value:"Module"})),nu=0,Br=1,ha=2,Vb=4;function ao(e,t){return n=>e(t(n))}function gS(e,t){return t(e)}function Ob(e,t){return n=>e(t,n)}function sg(e,t){return()=>e(t)}function ru(e,t){return t(e),e}function Ue(...e){return e}function mS(e){e()}function lg(e){return()=>e}function pS(...e){return()=>{e.map(mS)}}function Jd(e){return e!==void 0}function wi(){}function We(e,t){return e(Br,t)}function ve(e,t){e(nu,t)}function Kd(e){e(ha)}function Rt(e){return e(Vb)}function se(e,t){return We(e,Ob(t,nu))}function Wn(e,t){const n=e(Br,r=>{n(),t(r)});return n}function Ie(){const e=[];return(t,n)=>{switch(t){case ha:e.splice(0,e.length);return;case Br:return e.push(n),()=>{const r=e.indexOf(n);r>-1&&e.splice(r,1)};case nu:e.slice().forEach(r=>{r(n)});return;default:throw new Error(`unrecognized action ${t}`)}}}function K(e){let t=e;const n=Ie();return(r,i)=>{switch(r){case Br:i(t);break;case nu:t=i;break;case Vb:return t}return n(r,i)}}function bS(e){let t,n;const r=()=>t&&t();return function(i,a){switch(i){case Br:return a?n===a?void 0:(r(),n=a,t=We(e,a),t):(r(),wi);case ha:r(),n=null;return;default:throw new Error(`unrecognized action ${i}`)}}}function nn(e){return ru(Ie(),t=>se(e,t))}function At(e,t){return ru(K(t),n=>se(e,n))}function vS(...e){return t=>e.reduceRight(gS,t)}function U(e,...t){const n=vS(...t);return(r,i)=>{switch(r){case Br:return We(e,n(i));case ha:Kd(e);return}}}function Nb(e,t){return e===t}function Ye(e=Nb){let t;return n=>r=>{e(t,r)||(t=r,n(r))}}function pe(e){return t=>n=>{e(n)&&t(n)}}function te(e){return t=>ao(t,e)}function Bn(e){return t=>()=>t(e)}function On(e,t){return n=>r=>n(t=e(t,r))}function aa(e){return t=>n=>{e>0?e--:t(n)}}function wr(e){let t=null,n;return r=>i=>{t=i,!n&&(n=setTimeout(()=>{n=void 0,r(t)},e))}}function ug(e){let t,n;return r=>i=>{t=i,n&&clearTimeout(n),n=setTimeout(()=>{r(t)},e)}}function ye(...e){const t=new Array(e.length);let n=0,r=null;const i=Math.pow(2,e.length)-1;return e.forEach((a,o)=>{const s=Math.pow(2,o);We(a,l=>{const u=n;n=n|s,t[o]=l,u!==i&&n===i&&r&&(r(),r=null)})}),a=>o=>{const s=()=>a([o].concat(t));n===i?s():r=s}}function cg(...e){return function(t,n){switch(t){case Br:return pS(...e.map(r=>We(r,n)));case ha:return;default:throw new Error(`unrecognized action ${t}`)}}}function be(e,t=Nb){return U(e,Ye(t))}function yt(...e){const t=Ie(),n=new Array(e.length);let r=0;const i=Math.pow(2,e.length)-1;return e.forEach((a,o)=>{const s=Math.pow(2,o);We(a,l=>{n[o]=l,r=r|s,r===i&&ve(t,n)})}),function(a,o){switch(a){case Br:return r===i&&o(n),We(t,o);case ha:return Kd(t);default:throw new Error(`unrecognized action ${a}`)}}}function Te(e,t=[],{singleton:n}={singleton:!0}){return{id:yS(),constructor:e,dependencies:t,singleton:n}}const yS=()=>Symbol();function xS(e){const t=new Map,n=({id:r,constructor:i,dependencies:a,singleton:o})=>{if(o&&t.has(r))return t.get(r);const s=i(a.map(l=>n(l)));return o&&t.set(r,s),s};return n(e)}function CS(e,t){const n={},r={};let i=0;const a=e.length;for(;i<a;)r[e[i]]=1,i+=1;for(const o in t)r.hasOwnProperty(o)||(n[o]=t[o]);return n}const as=typeof document<"u"?x.useLayoutEffect:x.useEffect;function Qd(e,t,n){const r=Object.keys(t.required||{}),i=Object.keys(t.optional||{}),a=Object.keys(t.methods||{}),o=Object.keys(t.events||{}),s=x.createContext({});function l(b,v){b.propsReady&&ve(b.propsReady,!1);for(const y of r){const w=b[t.required[y]];ve(w,v[y])}for(const y of i)if(y in v){const w=b[t.optional[y]];ve(w,v[y])}b.propsReady&&ve(b.propsReady,!0)}function u(b){return a.reduce((v,y)=>(v[y]=w=>{const C=b[t.methods[y]];ve(C,w)},v),{})}function c(b){return o.reduce((v,y)=>(v[y]=bS(b[t.events[y]]),v),{})}const d=x.forwardRef((b,v)=>{const{children:y,...w}=b,[C]=x.useState(()=>ru(xS(e),I=>l(I,w))),[E]=x.useState(sg(c,C));return as(()=>{for(const I of o)I in w&&We(E[I],w[I]);return()=>{Object.values(E).map(Kd)}},[w,E,C]),as(()=>{l(C,w)}),x.useImperativeHandle(v,lg(u(C))),x.createElement(s.Provider,{value:C},n?x.createElement(n,CS([...r,...i,...o],w),y):y)}),h=b=>x.useCallback(Ob(ve,x.useContext(s)[b]),[b]),f=b=>{const y=x.useContext(s)[b],w=x.useCallback(C=>We(y,C),[y]);return x.useSyncExternalStore(w,()=>Rt(y),()=>Rt(y))},g=b=>{const y=x.useContext(s)[b],[w,C]=x.useState(sg(Rt,y));return as(()=>We(y,E=>{E!==w&&C(lg(E))}),[y,w]),w},m=x.version.startsWith("18")?f:g;return{Component:d,usePublisher:h,useEmitterValue:m,useEmitter:(b,v)=>{const w=x.useContext(s)[b];as(()=>We(w,v),[v,w])}}}const wS=typeof document<"u"?x.useLayoutEffect:x.useEffect,DS=wS;var rn=(e=>(e[e.DEBUG=0]="DEBUG",e[e.INFO=1]="INFO",e[e.WARN=2]="WARN",e[e.ERROR=3]="ERROR",e))(rn||{});const SS={0:"debug",1:"log",2:"warn",3:"error"},ES=()=>typeof globalThis>"u"?window:globalThis,Vr=Te(()=>{const e=K(3);return{log:K((n,r,i=1)=>{var a;const o=(a=ES().VIRTUOSO_LOG_LEVEL)!=null?a:Rt(e);i>=o&&console[SS[i]]("%creact-virtuoso: %c%s %o","color: #0253b3; font-weight: bold","color: initial",n,r)}),logLevel:e}},[],{singleton:!0});function qd(e,t=!0){const n=x.useRef(null);let r=i=>{};if(typeof ResizeObserver<"u"){const i=x.useMemo(()=>new ResizeObserver(a=>{requestAnimationFrame(()=>{const o=a[0].target;o.offsetParent!==null&&e(o)})}),[e]);r=a=>{a&&t?(i.observe(a),n.current=a):(n.current&&i.unobserve(n.current),n.current=null)}}return{ref:n,callbackRef:r}}function zn(e,t=!0){return qd(e,t).callbackRef}function Lb(e,t,n,r,i,a,o){const s=x.useCallback(l=>{const u=IS(l.children,t,"offsetHeight",i);let c=l.parentElement;for(;!c.dataset.virtuosoScroller;)c=c.parentElement;const d=c.lastElementChild.dataset.viewportType==="window",h=o?o.scrollTop:d?window.pageYOffset||document.documentElement.scrollTop:c.scrollTop,f=o?o.scrollHeight:d?document.documentElement.scrollHeight:c.scrollHeight,g=o?o.offsetHeight:d?window.innerHeight:c.offsetHeight;r({scrollTop:Math.max(h,0),scrollHeight:f,viewportHeight:g}),a==null||a(_S("row-gap",getComputedStyle(l).rowGap,i)),u!==null&&e(u)},[e,t,i,a,o,r]);return qd(s,n)}function IS(e,t,n,r){const i=e.length;if(i===0)return null;const a=[];for(let o=0;o<i;o++){const s=e.item(o);if(!s||s.dataset.index===void 0)continue;const l=parseInt(s.dataset.index),u=parseFloat(s.dataset.knownSize),c=t(s,n);if(c===0&&r("Zero-sized element, this should not happen",{child:s},rn.ERROR),c===u)continue;const d=a[a.length-1];a.length===0||d.size!==c||d.endIndex!==l-1?a.push({startIndex:l,endIndex:l,size:c}):a[a.length-1].endIndex++}return a}function _S(e,t,n){return t!=="normal"&&!(t!=null&&t.endsWith("px"))&&n(`${e} was not resolved to pixel value correctly`,t,rn.WARN),t==="normal"?0:parseInt(t??"0",10)}function In(e,t){return Math.round(e.getBoundingClientRect()[t])}function jb(e,t){return Math.abs(e-t)<1.01}function Hb(e,t,n,r=wi,i){const a=x.useRef(null),o=x.useRef(null),s=x.useRef(null),l=x.useCallback(d=>{const h=d.target,f=h===window||h===document,g=f?window.pageYOffset||document.documentElement.scrollTop:h.scrollTop,m=f?document.documentElement.scrollHeight:h.scrollHeight,p=f?window.innerHeight:h.offsetHeight,b=()=>{e({scrollTop:Math.max(g,0),scrollHeight:m,viewportHeight:p})};d.suppressFlushSync?b():To.flushSync(b),o.current!==null&&(g===o.current||g<=0||g===m-p)&&(o.current=null,t(!0),s.current&&(clearTimeout(s.current),s.current=null))},[e,t]);x.useEffect(()=>{const d=i||a.current;return r(i||a.current),l({target:d,suppressFlushSync:!0}),d.addEventListener("scroll",l,{passive:!0}),()=>{r(null),d.removeEventListener("scroll",l)}},[a,l,n,r,i]);function u(d){const h=a.current;if(!h||"offsetHeight"in h&&h.offsetHeight===0)return;const f=d.behavior==="smooth";let g,m,p;h===window?(m=Math.max(In(document.documentElement,"height"),document.documentElement.scrollHeight),g=window.innerHeight,p=document.documentElement.scrollTop):(m=h.scrollHeight,g=In(h,"height"),p=h.scrollTop);const b=m-g;if(d.top=Math.ceil(Math.max(Math.min(b,d.top),0)),jb(g,m)||d.top===p){e({scrollTop:p,scrollHeight:m,viewportHeight:g}),f&&t(!0);return}f?(o.current=d.top,s.current&&clearTimeout(s.current),s.current=setTimeout(()=>{s.current=null,o.current=null,t(!0)},1e3)):o.current=null,h.scrollTo(d)}function c(d){a.current.scrollBy(d)}return{scrollerRef:a,scrollByCallback:c,scrollToCallback:u}}const Bt=Te(()=>{const e=Ie(),t=Ie(),n=K(0),r=Ie(),i=K(0),a=Ie(),o=Ie(),s=K(0),l=K(0),u=K(0),c=K(0),d=Ie(),h=Ie(),f=K(!1);return se(U(e,te(({scrollTop:g})=>g)),t),se(U(e,te(({scrollHeight:g})=>g)),o),se(t,i),{scrollContainerState:e,scrollTop:t,viewportHeight:a,headerHeight:s,fixedHeaderHeight:l,fixedFooterHeight:u,footerHeight:c,scrollHeight:o,smoothScrollTargetReached:r,scrollTo:d,scrollBy:h,statefulScrollTop:i,deviation:n,scrollingInProgress:f}},[],{singleton:!0}),oo={lvl:0};function Wb(e,t,n,r=oo,i=oo){return{k:e,v:t,lvl:n,l:r,r:i}}function Ge(e){return e===oo}function Ui(){return oo}function Nc(e,t){if(Ge(e))return oo;const{k:n,l:r,r:i}=e;if(t===n){if(Ge(r))return i;if(Ge(i))return r;{const[a,o]=zb(r);return js(mt(e,{k:a,v:o,l:Gb(r)}))}}else return t<n?js(mt(e,{l:Nc(r,t)})):js(mt(e,{r:Nc(i,t)}))}function so(e,t){if(!Ge(e))return t===e.k?e.v:t<e.k?so(e.l,t):so(e.r,t)}function _n(e,t,n="k"){if(Ge(e))return[-1/0,void 0];if(Number(e[n])===t)return[e.k,e.v];if(Number(e[n])<t){const r=_n(e.r,t,n);return r[0]===-1/0?[e.k,e.v]:r}return _n(e.l,t,n)}function Qt(e,t,n){return Ge(e)?Wb(t,n,1):t===e.k?mt(e,{k:t,v:n}):t<e.k?dg(mt(e,{l:Qt(e.l,t,n)})):dg(mt(e,{r:Qt(e.r,t,n)}))}function Lc(e,t,n){if(Ge(e))return[];const{k:r,v:i,l:a,r:o}=e;let s=[];return r>t&&(s=s.concat(Lc(a,t,n))),r>=t&&r<=n&&s.push({k:r,v:i}),r<=n&&(s=s.concat(Lc(o,t,n))),s}function ii(e){return Ge(e)?[]:[...ii(e.l),{k:e.k,v:e.v},...ii(e.r)]}function zb(e){return Ge(e.r)?[e.k,e.v]:zb(e.r)}function Gb(e){return Ge(e.r)?e.l:js(mt(e,{r:Gb(e.r)}))}function mt(e,t){return Wb(t.k!==void 0?t.k:e.k,t.v!==void 0?t.v:e.v,t.lvl!==void 0?t.lvl:e.lvl,t.l!==void 0?t.l:e.l,t.r!==void 0?t.r:e.r)}function ju(e){return Ge(e)||e.lvl>e.r.lvl}function dg(e){return jc(Xb(e))}function js(e){const{l:t,r:n,lvl:r}=e;if(n.lvl>=r-1&&t.lvl>=r-1)return e;if(r>n.lvl+1){if(ju(t))return Xb(mt(e,{lvl:r-1}));if(!Ge(t)&&!Ge(t.r))return mt(t.r,{l:mt(t,{r:t.r.l}),r:mt(e,{l:t.r.r,lvl:r-1}),lvl:r});throw new Error("Unexpected empty nodes")}else{if(ju(e))return jc(mt(e,{lvl:r-1}));if(!Ge(n)&&!Ge(n.l)){const i=n.l,a=ju(i)?n.lvl-1:n.lvl;return mt(i,{l:mt(e,{r:i.l,lvl:r-1}),r:jc(mt(n,{l:i.r,lvl:a})),lvl:i.lvl+1})}else throw new Error("Unexpected empty nodes")}}function iu(e,t,n){if(Ge(e))return[];const r=_n(e,t)[0];return $S(Lc(e,r,n))}function Zb(e,t){const n=e.length;if(n===0)return[];let{index:r,value:i}=t(e[0]);const a=[];for(let o=1;o<n;o++){const{index:s,value:l}=t(e[o]);a.push({start:r,end:s-1,value:i}),r=s,i=l}return a.push({start:r,end:1/0,value:i}),a}function $S(e){return Zb(e,({k:t,v:n})=>({index:t,value:n}))}function jc(e){const{r:t,lvl:n}=e;return!Ge(t)&&!Ge(t.r)&&t.lvl===n&&t.r.lvl===n?mt(t,{l:mt(e,{r:t.l}),lvl:n+1}):e}function Xb(e){const{l:t}=e;return!Ge(t)&&t.lvl===e.lvl?mt(t,{r:mt(e,{l:t.r})}):e}function pl(e,t,n,r=0){let i=e.length-1;for(;r<=i;){const a=Math.floor((r+i)/2),o=e[a],s=n(o,t);if(s===0)return a;if(s===-1){if(i-r<2)return a-1;i=a-1}else{if(i===r)return a;r=a+1}}throw new Error(`Failed binary finding record in array - ${e.join(",")}, searched for ${t}`)}function Yb(e,t,n){return e[pl(e,t,n)]}function RS(e,t,n,r){const i=pl(e,t,r),a=pl(e,n,r,i);return e.slice(i,a+1)}const ef=Te(()=>({recalcInProgress:K(!1)}),[],{singleton:!0});function AS(e){const{size:t,startIndex:n,endIndex:r}=e;return i=>i.start===n&&(i.end===r||i.end===1/0)&&i.value===t}function fg(e,t){let n=0,r=0;for(;n<e;)n+=t[r+1]-t[r]-1,r++;return r-(n===e?0:1)}function FS(e,t){let n=Ge(e)?0:1/0;for(const r of t){const{size:i,startIndex:a,endIndex:o}=r;if(n=Math.min(n,a),Ge(e)){e=Qt(e,0,i);continue}const s=iu(e,a-1,o+1);if(s.some(AS(r)))continue;let l=!1,u=!1;for(const{start:c,end:d,value:h}of s)l?(o>=c||i===h)&&(e=Nc(e,c)):(u=h!==i,l=!0),d>o&&o>=c&&h!==i&&(e=Qt(e,o+1,h));u&&(e=Qt(e,a,i))}return[e,n]}function PS(){return{offsetTree:[],sizeTree:Ui(),groupOffsetTree:Ui(),lastIndex:0,lastOffset:0,lastSize:0,groupIndices:[]}}function tf({index:e},t){return t===e?0:t<e?-1:1}function TS({offset:e},t){return t===e?0:t<e?-1:1}function kS(e){return{index:e.index,value:e}}function MS(e,t,n,r=0){return r>0&&(t=Math.max(t,Yb(e,r,tf).offset)),Zb(RS(e,t,n,TS),kS)}function Hc(e,t,n,r){let i=e,a=0,o=0,s=0,l=0;if(t!==0){l=pl(i,t-1,tf),s=i[l].offset;const c=_n(n,t-1);a=c[0],o=c[1],i.length&&i[l].size===_n(n,t)[1]&&(l-=1),i=i.slice(0,l+1)}else i=[];for(const{start:u,value:c}of iu(n,t,1/0)){const d=u-a,h=d*o+s+d*r;i.push({offset:h,size:c,index:u}),a=u,s=h,o=c}return{offsetTree:i,lastIndex:a,lastOffset:s,lastSize:o}}function BS(e,[t,n,r,i]){t.length>0&&r("received item sizes",t,rn.DEBUG);const a=e.sizeTree;let o=a,s=0;if(n.length>0&&Ge(a)&&t.length===2){const h=t[0].size,f=t[1].size;o=n.reduce((g,m)=>Qt(Qt(g,m,h),m+1,f),o)}else[o,s]=FS(o,t);if(o===a)return e;const{offsetTree:l,lastIndex:u,lastSize:c,lastOffset:d}=Hc(e.offsetTree,s,o,i);return{sizeTree:o,offsetTree:l,lastIndex:u,lastOffset:d,lastSize:c,groupOffsetTree:n.reduce((h,f)=>Qt(h,f,lo(f,l,i)),Ui()),groupIndices:n}}function lo(e,t,n){if(t.length===0)return 0;const{offset:r,index:i,size:a}=Yb(t,e,tf),o=e-i,s=a*o+(o-1)*n+r;return s>0?s+n:s}function VS(e){return typeof e.groupIndex<"u"}function Ub(e,t,n){if(VS(e))return t.groupIndices[e.groupIndex]+1;{const r=e.index==="LAST"?n:e.index;let i=Jb(r,t);return i=Math.max(0,i,Math.min(n,i)),i}}function Jb(e,t){if(!au(t))return e;let n=0;for(;t.groupIndices[n]<=e+n;)n++;return e+n}function au(e){return!Ge(e.groupOffsetTree)}function OS(e){return ii(e).map(({k:t,v:n},r,i)=>{const a=i[r+1],o=a?a.k-1:1/0;return{startIndex:t,endIndex:o,size:n}})}const NS={offsetHeight:"height",offsetWidth:"width"},Gn=Te(([{log:e},{recalcInProgress:t}])=>{const n=Ie(),r=Ie(),i=At(r,0),a=Ie(),o=Ie(),s=K(0),l=K([]),u=K(void 0),c=K(void 0),d=K((C,E)=>In(C,NS[E])),h=K(void 0),f=K(0),g=PS(),m=At(U(n,ye(l,e,f),On(BS,g),Ye()),g),p=At(U(l,Ye(),On((C,E)=>({prev:C.current,current:E}),{prev:[],current:[]}),te(({prev:C})=>C)),[]);se(U(l,pe(C=>C.length>0),ye(m,f),te(([C,E,I])=>{const D=C.reduce((_,F,$)=>Qt(_,F,lo(F,E.offsetTree,I)||$),Ui());return{...E,groupIndices:C,groupOffsetTree:D}})),m),se(U(r,ye(m),pe(([C,{lastIndex:E}])=>C<E),te(([C,{lastIndex:E,lastSize:I}])=>[{startIndex:C,endIndex:E,size:I}])),n),se(u,c);const b=At(U(u,te(C=>C===void 0)),!0);se(U(c,pe(C=>C!==void 0&&Ge(Rt(m).sizeTree)),te(C=>[{startIndex:0,endIndex:0,size:C}])),n);const v=nn(U(n,ye(m),On(({sizes:C},[E,I])=>({changed:I!==C,sizes:I}),{changed:!1,sizes:g}),te(C=>C.changed)));We(U(s,On((C,E)=>({diff:C.prev-E,prev:E}),{diff:0,prev:0}),te(C=>C.diff)),C=>{const{groupIndices:E}=Rt(m);if(C>0)ve(t,!0),ve(a,C+fg(C,E));else if(C<0){const I=Rt(p);I.length>0&&(C-=fg(-C,I)),ve(o,C)}}),We(U(s,ye(e)),([C,E])=>{C<0&&E("`firstItemIndex` prop should not be set to less than zero. If you don't know the total count, just use a very high value",{firstItemIndex:s},rn.ERROR)});const y=nn(a);se(U(a,ye(m),te(([C,E])=>{const I=E.groupIndices.length>0,D=[],_=E.lastSize;if(I){const F=so(E.sizeTree,0);let $=0,P=0;for(;$<C;){const B=E.groupIndices[P],T=E.groupIndices.length===P+1?1/0:E.groupIndices[P+1]-B-1;D.push({startIndex:B,endIndex:B,size:F}),D.push({startIndex:B+1,endIndex:B+1+T-1,size:_}),P++,$+=T+1}const k=ii(E.sizeTree);return $!==C&&k.shift(),k.reduce((B,{k:T,v:R})=>{let O=B.ranges;return B.prevSize!==0&&(O=[...B.ranges,{startIndex:B.prevIndex,endIndex:T+C-1,size:B.prevSize}]),{ranges:O,prevIndex:T+C,prevSize:R}},{ranges:D,prevIndex:C,prevSize:0}).ranges}return ii(E.sizeTree).reduce((F,{k:$,v:P})=>({ranges:[...F.ranges,{startIndex:F.prevIndex,endIndex:$+C-1,size:F.prevSize}],prevIndex:$+C,prevSize:P}),{ranges:[],prevIndex:0,prevSize:_}).ranges})),n);const w=nn(U(o,ye(m,f),te(([C,{offsetTree:E},I])=>{const D=-C;return lo(D,E,I)})));return se(U(o,ye(m,f),te(([C,E,I])=>{if(E.groupIndices.length>0){if(Ge(E.sizeTree))return E;let _=Ui();const F=Rt(p);let $=0,P=0,k=0;for(;$<-C;){k=F[P];const B=F[P+1]-k-1;P++,$+=B+1}if(_=ii(E.sizeTree).reduce((B,{k:T,v:R})=>Qt(B,Math.max(0,T+C),R),_),$!==-C){const B=so(E.sizeTree,k);_=Qt(_,0,B);const T=_n(E.sizeTree,-C+1)[1];_=Qt(_,1,T)}return{...E,sizeTree:_,...Hc(E.offsetTree,0,_,I)}}else{const _=ii(E.sizeTree).reduce((F,{k:$,v:P})=>Qt(F,Math.max(0,$+C),P),Ui());return{...E,sizeTree:_,...Hc(E.offsetTree,0,_,I)}}})),m),{data:h,totalCount:r,sizeRanges:n,groupIndices:l,defaultItemSize:c,fixedItemSize:u,unshiftWith:a,shiftWith:o,shiftWithOffset:w,beforeUnshiftWith:y,firstItemIndex:s,gap:f,sizes:m,listRefresh:v,statefulTotalCount:i,trackItemSizes:b,itemSize:d}},Ue(Vr,ef),{singleton:!0}),LS=typeof document<"u"&&"scrollBehavior"in document.documentElement.style;function Kb(e){const t=typeof e=="number"?{index:e}:e;return t.align||(t.align="start"),(!t.behavior||!LS)&&(t.behavior="auto"),t.offset||(t.offset=0),t}const Oo=Te(([{sizes:e,totalCount:t,listRefresh:n,gap:r},{scrollingInProgress:i,viewportHeight:a,scrollTo:o,smoothScrollTargetReached:s,headerHeight:l,footerHeight:u,fixedHeaderHeight:c,fixedFooterHeight:d},{log:h}])=>{const f=Ie(),g=Ie(),m=K(0);let p=null,b=null,v=null;function y(){p&&(p(),p=null),v&&(v(),v=null),b&&(clearTimeout(b),b=null),ve(i,!1)}return se(U(f,ye(e,a,t,m,l,u,h),ye(r,c,d),te(([[w,C,E,I,D,_,F,$],P,k,A])=>{const B=Kb(w),{align:T,behavior:R,offset:O}=B,H=I-1,L=Ub(B,C,H);let Z=lo(L,C.offsetTree,P)+_;T==="end"?(Z+=k+_n(C.sizeTree,L)[1]-E+A,L===H&&(Z+=F)):T==="center"?Z+=(k+_n(C.sizeTree,L)[1]-E+A)/2:Z-=D,O&&(Z+=O);const V=W=>{y(),W?($("retrying to scroll to",{location:w},rn.DEBUG),ve(f,w)):(ve(g,!0),$("list did not change, scroll successful",{},rn.DEBUG))};if(y(),R==="smooth"){let W=!1;v=We(n,q=>{W=W||q}),p=Wn(s,()=>{V(W)})}else p=Wn(U(n,jS(150)),V);return b=setTimeout(()=>{y()},1200),ve(i,!0),$("scrolling from index to",{index:L,top:Z,behavior:R},rn.DEBUG),{top:Z,behavior:R}})),o),{scrollToIndex:f,scrollTargetReached:g,topListHeight:m}},Ue(Gn,Bt,Vr),{singleton:!0});function jS(e){return t=>{const n=setTimeout(()=>{t(!1)},e);return r=>{r&&(t(!0),clearTimeout(n))}}}const uo="up",za="down",HS="none",WS={atBottom:!1,notAtBottomBecause:"NOT_SHOWING_LAST_ITEM",state:{offsetBottom:0,scrollTop:0,viewportHeight:0,scrollHeight:0}},zS=0,No=Te(([{scrollContainerState:e,scrollTop:t,viewportHeight:n,headerHeight:r,footerHeight:i,scrollBy:a}])=>{const o=K(!1),s=K(!0),l=Ie(),u=Ie(),c=K(4),d=K(zS),h=At(U(cg(U(be(t),aa(1),Bn(!0)),U(be(t),aa(1),Bn(!1),ug(100))),Ye()),!1),f=At(U(cg(U(a,Bn(!0)),U(a,Bn(!1),ug(200))),Ye()),!1);se(U(yt(be(t),be(d)),te(([v,y])=>v<=y),Ye()),s),se(U(s,wr(50)),u);const g=nn(U(yt(e,be(n),be(r),be(i),be(c)),On((v,[{scrollTop:y,scrollHeight:w},C,E,I,D])=>{const _=y+C-w>-D,F={viewportHeight:C,scrollTop:y,scrollHeight:w};if(_){let P,k;return y>v.state.scrollTop?(P="SCROLLED_DOWN",k=v.state.scrollTop-y):(P="SIZE_DECREASED",k=v.state.scrollTop-y||v.scrollTopDelta),{atBottom:!0,state:F,atBottomBecause:P,scrollTopDelta:k}}let $;return F.scrollHeight>v.state.scrollHeight?$="SIZE_INCREASED":C<v.state.viewportHeight?$="VIEWPORT_HEIGHT_DECREASING":y<v.state.scrollTop?$="SCROLLING_UPWARDS":$="NOT_FULLY_SCROLLED_TO_LAST_ITEM_BOTTOM",{atBottom:!1,notAtBottomBecause:$,state:F}},WS),Ye((v,y)=>v&&v.atBottom===y.atBottom))),m=At(U(e,On((v,{scrollTop:y,scrollHeight:w,viewportHeight:C})=>{if(jb(v.scrollHeight,w))return{scrollTop:y,scrollHeight:w,jump:0,changed:!1};{const E=w-(y+C)<1;return v.scrollTop!==y&&E?{scrollHeight:w,scrollTop:y,jump:v.scrollTop-y,changed:!0}:{scrollHeight:w,scrollTop:y,jump:0,changed:!0}}},{scrollHeight:0,jump:0,scrollTop:0,changed:!1}),pe(v=>v.changed),te(v=>v.jump)),0);se(U(g,te(v=>v.atBottom)),o),se(U(o,wr(50)),l);const p=K(za);se(U(e,te(({scrollTop:v})=>v),Ye(),On((v,y)=>Rt(f)?{direction:v.direction,prevScrollTop:y}:{direction:y<v.prevScrollTop?uo:za,prevScrollTop:y},{direction:za,prevScrollTop:0}),te(v=>v.direction)),p),se(U(e,wr(50),Bn(HS)),p);const b=K(0);return se(U(h,pe(v=>!v),Bn(0)),b),se(U(t,wr(100),ye(h),pe(([v,y])=>!!y),On(([v,y],[w])=>[y,w],[0,0]),te(([v,y])=>y-v)),b),{isScrolling:h,isAtTop:s,isAtBottom:o,atBottomState:g,atTopStateChange:u,atBottomStateChange:l,scrollDirection:p,atBottomThreshold:c,atTopThreshold:d,scrollVelocity:b,lastJumpDueToItemResize:m}},Ue(Bt)),Or=Te(([{log:e}])=>{const t=K(!1),n=nn(U(t,pe(r=>r),Ye()));return We(t,r=>{r&&Rt(e)("props updated",{},rn.DEBUG)}),{propsReady:t,didMount:n}},Ue(Vr),{singleton:!0});function nf(e,t){e==0?t():requestAnimationFrame(()=>nf(e-1,t))}function rf(e,t){const n=t-1;return typeof e=="number"?e:e.index==="LAST"?n:e.index}const Lo=Te(([{sizes:e,listRefresh:t,defaultItemSize:n},{scrollTop:r},{scrollToIndex:i,scrollTargetReached:a},{didMount:o}])=>{const s=K(!0),l=K(0),u=K(!0);return se(U(o,ye(l),pe(([c,d])=>!!d),Bn(!1)),s),se(U(o,ye(l),pe(([c,d])=>!!d),Bn(!1)),u),We(U(yt(t,o),ye(s,e,n,u),pe(([[,c],d,{sizeTree:h},f,g])=>c&&(!Ge(h)||Jd(f))&&!d&&!g),ye(l)),([,c])=>{Wn(a,()=>{ve(u,!0)}),nf(4,()=>{Wn(r,()=>{ve(s,!0)}),ve(i,c)})}),{scrolledToInitialItem:s,initialTopMostItemIndex:l,initialItemFinalLocationReached:u}},Ue(Gn,Bt,Oo,Or),{singleton:!0});function hg(e){return e?e==="smooth"?"smooth":"auto":!1}const GS=(e,t)=>typeof e=="function"?hg(e(t)):t&&hg(e),ZS=Te(([{totalCount:e,listRefresh:t},{isAtBottom:n,atBottomState:r},{scrollToIndex:i},{scrolledToInitialItem:a},{propsReady:o,didMount:s},{log:l},{scrollingInProgress:u}])=>{const c=K(!1),d=Ie();let h=null;function f(m){ve(i,{index:"LAST",align:"end",behavior:m})}We(U(yt(U(be(e),aa(1)),s),ye(be(c),n,a,u),te(([[m,p],b,v,y,w])=>{let C=p&&y,E="auto";return C&&(E=GS(b,v||w),C=C&&!!E),{totalCount:m,shouldFollow:C,followOutputBehavior:E}}),pe(({shouldFollow:m})=>m)),({totalCount:m,followOutputBehavior:p})=>{h&&(h(),h=null),h=Wn(t,()=>{Rt(l)("following output to ",{totalCount:m},rn.DEBUG),f(p),h=null})});function g(m){const p=Wn(r,b=>{m&&!b.atBottom&&b.notAtBottomBecause==="SIZE_INCREASED"&&!h&&(Rt(l)("scrolling to bottom due to increased size",{},rn.DEBUG),f("auto"))});setTimeout(p,100)}return We(U(yt(be(c),e,o),pe(([m,,p])=>m&&p),On(({value:m},[,p])=>({refreshed:m===p,value:p}),{refreshed:!1,value:0}),pe(({refreshed:m})=>m),ye(c,e)),([,m])=>{Rt(a)&&g(m!==!1)}),We(d,()=>{g(Rt(c)!==!1)}),We(yt(be(c),r),([m,p])=>{m&&!p.atBottom&&p.notAtBottomBecause==="VIEWPORT_HEIGHT_DECREASING"&&f("auto")}),{followOutput:c,autoscrollToBottom:d}},Ue(Gn,No,Oo,Lo,Or,Vr,Bt));function XS(e){return e.reduce((t,n)=>(t.groupIndices.push(t.totalCount),t.totalCount+=n+1,t),{totalCount:0,groupIndices:[]})}const Qb=Te(([{totalCount:e,groupIndices:t,sizes:n},{scrollTop:r,headerHeight:i}])=>{const a=Ie(),o=Ie(),s=nn(U(a,te(XS)));return se(U(s,te(l=>l.totalCount)),e),se(U(s,te(l=>l.groupIndices)),t),se(U(yt(r,n,i),pe(([l,u])=>au(u)),te(([l,u,c])=>_n(u.groupOffsetTree,Math.max(l-c,0),"v")[0]),Ye(),te(l=>[l])),o),{groupCounts:a,topItemsIndexes:o}},Ue(Gn,Bt));function co(e,t){return!!(e&&e[0]===t[0]&&e[1]===t[1])}function qb(e,t){return!!(e&&e.startIndex===t.startIndex&&e.endIndex===t.endIndex)}const bl="top",vl="bottom",gg="none";function mg(e,t,n){return typeof e=="number"?n===uo&&t===bl||n===za&&t===vl?e:0:n===uo?t===bl?e.main:e.reverse:t===vl?e.main:e.reverse}function pg(e,t){return typeof e=="number"?e:e[t]||0}const af=Te(([{scrollTop:e,viewportHeight:t,deviation:n,headerHeight:r,fixedHeaderHeight:i}])=>{const a=Ie(),o=K(0),s=K(0),l=K(0),u=At(U(yt(be(e),be(t),be(r),be(a,co),be(l),be(o),be(i),be(n),be(s)),te(([c,d,h,[f,g],m,p,b,v,y])=>{const w=c-v,C=p+b,E=Math.max(h-w,0);let I=gg;const D=pg(y,bl),_=pg(y,vl);return f-=v,f+=h+b,g+=h+b,g-=v,f>c+C-D&&(I=uo),g<c-E+d+_&&(I=za),I!==gg?[Math.max(w-h-mg(m,bl,I)-D,0),w-E-b+d+mg(m,vl,I)+_]:null}),pe(c=>c!=null),Ye(co)),[0,0]);return{listBoundary:a,overscan:l,topListHeight:o,increaseViewportBy:s,visibleRange:u}},Ue(Bt),{singleton:!0});function YS(e,t,n){if(au(t)){const r=Jb(e,t);return[{index:_n(t.groupOffsetTree,r)[0],size:0,offset:0},{index:r,size:0,offset:0,data:n&&n[0]}]}return[{index:e,size:0,offset:0,data:n&&n[0]}]}const Hu={items:[],topItems:[],offsetTop:0,offsetBottom:0,top:0,bottom:0,topListHeight:0,totalCount:0,firstItemIndex:0};function bg(e,t,n){if(e.length===0)return[];if(!au(t))return e.map(u=>({...u,index:u.index+n,originalIndex:u.index}));const r=e[0].index,i=e[e.length-1].index,a=[],o=iu(t.groupOffsetTree,r,i);let s,l=0;for(const u of e){(!s||s.end<u.index)&&(s=o.shift(),l=t.groupIndices.indexOf(s.start));let c;u.index===s.start?c={type:"group",index:l}:c={index:u.index-(l+1)+n,groupIndex:l},a.push({...c,size:u.size,offset:u.offset,originalIndex:u.index,data:u.data})}return a}function Hs(e,t,n,r,i,a){const{lastSize:o,lastOffset:s,lastIndex:l}=i;let u=0,c=0;if(e.length>0){u=e[0].offset;const m=e[e.length-1];c=m.offset+m.size}const d=n-l,h=s+d*o+(d-1)*r,f=u,g=h-c;return{items:bg(e,i,a),topItems:bg(t,i,a),topListHeight:t.reduce((m,p)=>p.size+m,0),offsetTop:u,offsetBottom:g,top:f,bottom:c,totalCount:n,firstItemIndex:a}}function e1(e,t,n,r,i,a){let o=0;if(n.groupIndices.length>0)for(const c of n.groupIndices){if(c-o>=e)break;o++}const s=e+o,l=rf(t,s),u=Array.from({length:s}).map((c,d)=>({index:d+l,size:0,offset:0,data:a[d+l]}));return Hs(u,[],s,i,n,r)}const Di=Te(([{sizes:e,totalCount:t,data:n,firstItemIndex:r,gap:i},a,{visibleRange:o,listBoundary:s,topListHeight:l},{scrolledToInitialItem:u,initialTopMostItemIndex:c},{topListHeight:d},h,{didMount:f},{recalcInProgress:g}])=>{const m=K([]),p=K(0),b=Ie();se(a.topItemsIndexes,m);const v=At(U(yt(f,g,be(o,co),be(t),be(e),be(c),u,be(m),be(r),be(i),n),pe(([E,I,,D,,,,,,,_])=>{const F=_&&_.length!==D;return E&&!I&&!F}),te(([,,[E,I],D,_,F,$,P,k,A,B])=>{const T=_,{sizeTree:R,offsetTree:O}=T,H=Rt(p);if(D===0)return{...Hu,totalCount:D};if(E===0&&I===0)return H===0?{...Hu,totalCount:D}:e1(H,F,_,k,A,B||[]);if(Ge(R))return H>0?null:Hs(YS(rf(F,D),T,B),[],D,A,T,k);const L=[];if(P.length>0){const Y=P[0],N=P[P.length-1];let G=0;for(const J of iu(R,Y,N)){const re=J.value,fe=Math.max(J.start,Y),le=Math.min(J.end,N);for(let z=fe;z<=le;z++)L.push({index:z,size:re,offset:G,data:B&&B[z]}),G+=re}}if(!$)return Hs([],L,D,A,T,k);const Z=P.length>0?P[P.length-1]+1:0,V=MS(O,E,I,Z);if(V.length===0)return null;const W=D-1,q=ru([],Y=>{for(const N of V){const G=N.value;let J=G.offset,re=N.start;const fe=G.size;if(G.offset<E){re+=Math.floor((E-G.offset+A)/(fe+A));const z=re-N.start;J+=z*fe+z*A}re<Z&&(J+=(Z-re)*fe,re=Z);const le=Math.min(N.end,W);for(let z=re;z<=le&&!(J>=I);z++)Y.push({index:z,size:fe,offset:J,data:B&&B[z]}),J+=fe+A}});return Hs(q,L,D,A,T,k)}),pe(E=>E!==null),Ye()),Hu);se(U(n,pe(Jd),te(E=>E==null?void 0:E.length)),t),se(U(v,te(E=>E.topListHeight)),d),se(d,l),se(U(v,te(E=>[E.top,E.bottom])),s),se(U(v,te(E=>E.items)),b);const y=nn(U(v,pe(({items:E})=>E.length>0),ye(t,n),pe(([{items:E},I])=>E[E.length-1].originalIndex===I-1),te(([,E,I])=>[E-1,I]),Ye(co),te(([E])=>E))),w=nn(U(v,wr(200),pe(({items:E,topItems:I})=>E.length>0&&E[0].originalIndex===I.length),te(({items:E})=>E[0].index),Ye())),C=nn(U(v,pe(({items:E})=>E.length>0),te(({items:E})=>{let I=0,D=E.length-1;for(;E[I].type==="group"&&I<D;)I++;for(;E[D].type==="group"&&D>I;)D--;return{startIndex:E[I].index,endIndex:E[D].index}}),Ye(qb)));return{listState:v,topItemsIndexes:m,endReached:y,startReached:w,rangeChanged:C,itemsRendered:b,initialItemCount:p,...h}},Ue(Gn,Qb,af,Lo,Oo,No,Or,ef),{singleton:!0}),US=Te(([{sizes:e,firstItemIndex:t,data:n,gap:r},{initialTopMostItemIndex:i},{initialItemCount:a,listState:o},{didMount:s}])=>(se(U(s,ye(a),pe(([,l])=>l!==0),ye(i,e,t,r,n),te(([[,l],u,c,d,h,f=[]])=>e1(l,u,c,d,h,f))),o),{}),Ue(Gn,Lo,Di,Or),{singleton:!0}),t1=Te(([{scrollVelocity:e}])=>{const t=K(!1),n=Ie(),r=K(!1);return se(U(e,ye(r,t,n),pe(([i,a])=>!!a),te(([i,a,o,s])=>{const{exit:l,enter:u}=a;if(o){if(l(i,s))return!1}else if(u(i,s))return!0;return o}),Ye()),t),We(U(yt(t,e,n),ye(r)),([[i,a,o],s])=>i&&s&&s.change&&s.change(a,o)),{isSeeking:t,scrollSeekConfiguration:r,scrollVelocity:e,scrollSeekRangeChanged:n}},Ue(No),{singleton:!0}),JS=Te(([{topItemsIndexes:e}])=>{const t=K(0);return se(U(t,pe(n=>n>0),te(n=>Array.from({length:n}).map((r,i)=>i))),e),{topItemCount:t}},Ue(Di)),n1=Te(([{footerHeight:e,headerHeight:t,fixedHeaderHeight:n,fixedFooterHeight:r},{listState:i}])=>{const a=Ie(),o=At(U(yt(e,r,t,n,i),te(([s,l,u,c,d])=>s+l+u+c+d.offsetBottom+d.bottom)),0);return se(be(o),a),{totalListHeight:o,totalListHeightChanged:a}},Ue(Bt,Di),{singleton:!0});function r1(e){let t=!1,n;return()=>(t||(t=!0,n=e()),n)}const KS=r1(()=>/iP(ad|od|hone)/i.test(navigator.userAgent)&&/WebKit/i.test(navigator.userAgent)),QS=Te(([{scrollBy:e,scrollTop:t,deviation:n,scrollingInProgress:r},{isScrolling:i,isAtBottom:a,scrollDirection:o,lastJumpDueToItemResize:s},{listState:l},{beforeUnshiftWith:u,shiftWithOffset:c,sizes:d,gap:h},{log:f},{recalcInProgress:g}])=>{const m=nn(U(l,ye(s),On(([,b,v,y],[{items:w,totalCount:C,bottom:E,offsetBottom:I},D])=>{const _=E+I;let F=0;return v===C&&b.length>0&&w.length>0&&(w[0].originalIndex===0&&b[0].originalIndex===0||(F=_-y,F!==0&&(F+=D))),[F,w,C,_]},[0,[],0,0]),pe(([b])=>b!==0),ye(t,o,r,a,f,g),pe(([,b,v,y,,,w])=>!w&&!y&&b!==0&&v===uo),te(([[b],,,,,v])=>(v("Upward scrolling compensation",{amount:b},rn.DEBUG),b))));function p(b){b>0?(ve(e,{top:-b,behavior:"auto"}),ve(n,0)):(ve(n,0),ve(e,{top:-b,behavior:"auto"}))}return We(U(m,ye(n,i)),([b,v,y])=>{y&&KS()?ve(n,v-b):p(-b)}),We(U(yt(At(i,!1),n,g),pe(([b,v,y])=>!b&&!y&&v!==0),te(([b,v])=>v),wr(1)),p),se(U(c,te(b=>({top:-b}))),e),We(U(u,ye(d,h),te(([b,{lastSize:v,groupIndices:y,sizeTree:w},C])=>{function E(I){return I*(v+C)}if(y.length===0)return E(b);{let I=0;const D=so(w,0);let _=0,F=0;for(;_<b;){_++,I+=D;let $=y.length===F+1?1/0:y[F+1]-y[F]-1;_+$>b&&(I-=D,$=b-_+1),_+=$,I+=E($),F++}return I}})),b=>{ve(n,b),requestAnimationFrame(()=>{ve(e,{top:b}),requestAnimationFrame(()=>{ve(n,0),ve(g,!1)})})}),{deviation:n}},Ue(Bt,No,Di,Gn,Vr,ef)),qS=Te(([{didMount:e},{scrollTo:t},{listState:n}])=>{const r=K(0);return We(U(e,ye(r),pe(([,i])=>i!==0),te(([,i])=>({top:i}))),i=>{Wn(U(n,aa(1),pe(a=>a.items.length>1)),()=>{requestAnimationFrame(()=>{ve(t,i)})})}),{initialScrollTop:r}},Ue(Or,Bt,Di),{singleton:!0}),eE=Te(([{viewportHeight:e},{totalListHeight:t}])=>{const n=K(!1),r=At(U(yt(n,e,t),pe(([i])=>i),te(([,i,a])=>Math.max(0,i-a)),wr(0),Ye()),0);return{alignToBottom:n,paddingTopAddition:r}},Ue(Bt,n1),{singleton:!0}),of=Te(([{scrollTo:e,scrollContainerState:t}])=>{const n=Ie(),r=Ie(),i=Ie(),a=K(!1),o=K(void 0);return se(U(yt(n,r),te(([{viewportHeight:s,scrollTop:l,scrollHeight:u},{offsetTop:c}])=>({scrollTop:Math.max(0,l-c),scrollHeight:u,viewportHeight:s}))),t),se(U(e,ye(r),te(([s,{offsetTop:l}])=>({...s,top:s.top+l}))),i),{useWindowScroll:a,customScrollParent:o,windowScrollContainerState:n,windowViewportRect:r,windowScrollTo:i}},Ue(Bt)),tE=({itemTop:e,itemBottom:t,viewportTop:n,viewportBottom:r,locationParams:{behavior:i,align:a,...o}})=>e<n?{...o,behavior:i,align:a??"start"}:t>r?{...o,behavior:i,align:a??"end"}:null,nE=Te(([{sizes:e,totalCount:t,gap:n},{scrollTop:r,viewportHeight:i,headerHeight:a,fixedHeaderHeight:o,fixedFooterHeight:s,scrollingInProgress:l},{scrollToIndex:u}])=>{const c=Ie();return se(U(c,ye(e,i,t,a,o,s,r),ye(n),te(([[d,h,f,g,m,p,b,v],y])=>{const{done:w,behavior:C,align:E,calculateViewLocation:I=tE,...D}=d,_=Ub(d,h,g-1),F=lo(_,h.offsetTree,y)+m+p,$=F+_n(h.sizeTree,_)[1],P=v+p,k=v+f-b,A=I({itemTop:F,itemBottom:$,viewportTop:P,viewportBottom:k,locationParams:{behavior:C,align:E,...D}});return A?w&&Wn(U(l,pe(B=>B===!1),aa(Rt(l)?1:2)),w):w&&w(),A}),pe(d=>d!==null)),u),{scrollIntoView:c}},Ue(Gn,Bt,Oo,Di,Vr),{singleton:!0}),rE=Te(([{sizes:e,sizeRanges:t},{scrollTop:n},{initialTopMostItemIndex:r},{didMount:i},{useWindowScroll:a,windowScrollContainerState:o,windowViewportRect:s}])=>{const l=Ie(),u=K(void 0),c=K(null),d=K(null);return se(o,c),se(s,d),We(U(l,ye(e,n,a,c,d)),([h,f,g,m,p,b])=>{const v=OS(f.sizeTree);m&&p!==null&&b!==null&&(g=p.scrollTop-b.offsetTop),h({ranges:v,scrollTop:g})}),se(U(u,pe(Jd),te(iE)),r),se(U(i,ye(u),pe(([,h])=>h!==void 0),Ye(),te(([,h])=>h.ranges)),t),{getState:l,restoreStateFrom:u}},Ue(Gn,Bt,Lo,Or,of));function iE(e){return{offset:e.scrollTop,index:0,align:"start"}}const aE=Te(([e,t,n,r,i,a,o,s,l,u])=>({...e,...t,...n,...r,...i,...a,...o,...s,...l,...u}),Ue(af,US,Or,t1,n1,qS,eE,of,nE,Vr)),i1=Te(([{totalCount:e,sizeRanges:t,fixedItemSize:n,defaultItemSize:r,trackItemSizes:i,itemSize:a,data:o,firstItemIndex:s,groupIndices:l,statefulTotalCount:u,gap:c,sizes:d},{initialTopMostItemIndex:h,scrolledToInitialItem:f,initialItemFinalLocationReached:g},m,p,b,{listState:v,topItemsIndexes:y,...w},{scrollToIndex:C},E,{topItemCount:I},{groupCounts:D},_])=>(se(w.rangeChanged,_.scrollSeekRangeChanged),se(U(_.windowViewportRect,te(F=>F.visibleHeight)),m.viewportHeight),{totalCount:e,data:o,firstItemIndex:s,sizeRanges:t,initialTopMostItemIndex:h,scrolledToInitialItem:f,initialItemFinalLocationReached:g,topItemsIndexes:y,topItemCount:I,groupCounts:D,fixedItemHeight:n,defaultItemHeight:r,gap:c,...b,statefulTotalCount:u,listState:v,scrollToIndex:C,trackItemSizes:i,itemSize:a,groupIndices:l,...w,..._,...m,sizes:d,...p}),Ue(Gn,Lo,Bt,rE,ZS,Di,Oo,QS,JS,Qb,aE)),Wu="-webkit-sticky",vg="sticky",a1=r1(()=>{if(typeof document>"u")return vg;const e=document.createElement("div");return e.style.position=Wu,e.style.position===Wu?Wu:vg});function sf(e,t){const n=x.useRef(null),r=x.useCallback(s=>{if(s===null||!s.offsetParent)return;const l=s.getBoundingClientRect(),u=l.width;let c,d;if(t){const h=t.getBoundingClientRect(),f=l.top-h.top;c=h.height-Math.max(0,f),d=f+t.scrollTop}else c=window.innerHeight-Math.max(0,l.top),d=l.top+window.pageYOffset;n.current={offsetTop:d,visibleHeight:c,visibleWidth:u},e(n.current)},[e,t]),{callbackRef:i,ref:a}=qd(r),o=x.useCallback(()=>{r(a.current)},[r,a]);return x.useEffect(()=>{if(t){t.addEventListener("scroll",o);const s=new ResizeObserver(()=>{requestAnimationFrame(o)});return s.observe(t),()=>{t.removeEventListener("scroll",o),s.unobserve(t)}}else return window.addEventListener("scroll",o),window.addEventListener("resize",o),()=>{window.removeEventListener("scroll",o),window.removeEventListener("resize",o)}},[o,t]),i}const ou=x.createContext(void 0),o1=x.createContext(void 0);function lf(e){return e}const oE=Te(()=>{const e=K(l=>`Item ${l}`),t=K(null),n=K(l=>`Group ${l}`),r=K({}),i=K(lf),a=K("div"),o=K(wi),s=(l,u=null)=>At(U(r,te(c=>c[l]),Ye()),u);return{context:t,itemContent:e,groupContent:n,components:r,computeItemKey:i,headerFooterTag:a,scrollerRef:o,FooterComponent:s("Footer"),HeaderComponent:s("Header"),TopItemListComponent:s("TopItemList"),ListComponent:s("List","div"),ItemComponent:s("Item","div"),GroupComponent:s("Group","div"),ScrollerComponent:s("Scroller","div"),EmptyPlaceholder:s("EmptyPlaceholder"),ScrollSeekPlaceholder:s("ScrollSeekPlaceholder")}}),sE=Te(([e,t])=>({...e,...t}),Ue(i1,oE)),lE=({height:e})=>x.createElement("div",{style:{height:e}}),uE={position:a1(),zIndex:1,overflowAnchor:"none"},cE={overflowAnchor:"none"},yg=x.memo(function({showTopList:t=!1}){const n=De("listState"),r=mn("sizeRanges"),i=De("useWindowScroll"),a=De("customScrollParent"),o=mn("windowScrollContainerState"),s=mn("scrollContainerState"),l=a||i?o:s,u=De("itemContent"),c=De("context"),d=De("groupContent"),h=De("trackItemSizes"),f=De("itemSize"),g=De("log"),m=mn("gap"),{callbackRef:p}=Lb(r,f,h,t?wi:l,g,m,a),[b,v]=x.useState(0);df("deviation",A=>{b!==A&&v(A)});const y=De("EmptyPlaceholder"),w=De("ScrollSeekPlaceholder")||lE,C=De("ListComponent"),E=De("ItemComponent"),I=De("GroupComponent"),D=De("computeItemKey"),_=De("isSeeking"),F=De("groupIndices").length>0,$=De("alignToBottom"),P=De("initialItemFinalLocationReached"),k=t?{}:{boxSizing:"border-box",paddingTop:n.offsetTop,paddingBottom:n.offsetBottom,marginTop:b!==0?b:$?"auto":0,...P?{}:{visibility:"hidden"}};return!t&&n.totalCount===0&&y?x.createElement(y,it(y,c)):x.createElement(C,{...it(C,c),ref:p,style:k,"data-testid":t?"virtuoso-top-item-list":"virtuoso-item-list"},(t?n.topItems:n.items).map(A=>{const B=A.originalIndex,T=D(B+n.firstItemIndex,A.data,c);return _?x.createElement(w,{...it(w,c),key:T,index:A.index,height:A.size,type:A.type||"item",...A.type==="group"?{}:{groupIndex:A.groupIndex}}):A.type==="group"?x.createElement(I,{...it(I,c),key:T,"data-index":B,"data-known-size":A.size,"data-item-index":A.index,style:uE},d(A.index,c)):x.createElement(E,{...it(E,c),...s1(E,A.data),key:T,"data-index":B,"data-known-size":A.size,"data-item-index":A.index,"data-item-group-index":A.groupIndex,style:cE},F?u(A.index,A.groupIndex,A.data,c):u(A.index,A.data,c))}))}),dE={height:"100%",outline:"none",overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},ga=e=>({width:"100%",height:"100%",position:"absolute",top:0,...e?{display:"flex",flexDirection:"column"}:{}}),fE={width:"100%",position:a1(),top:0,zIndex:1};function it(e,t){if(typeof e!="string")return{context:t}}function s1(e,t){return{item:typeof e=="string"?void 0:t}}const hE=x.memo(function(){const t=De("HeaderComponent"),n=mn("headerHeight"),r=De("headerFooterTag"),i=zn(o=>n(In(o,"height"))),a=De("context");return t?x.createElement(r,{ref:i},x.createElement(t,it(t,a))):null}),gE=x.memo(function(){const t=De("FooterComponent"),n=mn("footerHeight"),r=De("headerFooterTag"),i=zn(o=>n(In(o,"height"))),a=De("context");return t?x.createElement(r,{ref:i},x.createElement(t,it(t,a))):null});function uf({usePublisher:e,useEmitter:t,useEmitterValue:n}){return x.memo(function({style:a,children:o,...s}){const l=e("scrollContainerState"),u=n("ScrollerComponent"),c=e("smoothScrollTargetReached"),d=n("scrollerRef"),h=n("context"),{scrollerRef:f,scrollByCallback:g,scrollToCallback:m}=Hb(l,c,u,d);return t("scrollTo",m),t("scrollBy",g),x.createElement(u,{ref:f,style:{...dE,...a},"data-testid":"virtuoso-scroller","data-virtuoso-scroller":!0,tabIndex:0,...s,...it(u,h)},o)})}function cf({usePublisher:e,useEmitter:t,useEmitterValue:n}){return x.memo(function({style:a,children:o,...s}){const l=e("windowScrollContainerState"),u=n("ScrollerComponent"),c=e("smoothScrollTargetReached"),d=n("totalListHeight"),h=n("deviation"),f=n("customScrollParent"),g=n("context"),{scrollerRef:m,scrollByCallback:p,scrollToCallback:b}=Hb(l,c,u,wi,f);return DS(()=>(m.current=f||window,()=>{m.current=null}),[m,f]),t("windowScrollTo",b),t("scrollBy",p),x.createElement(u,{style:{position:"relative",...a,...d!==0?{height:d+h}:{}},"data-virtuoso-scroller":!0,...s,...it(u,g)},o)})}const mE=({children:e})=>{const t=x.useContext(ou),n=mn("viewportHeight"),r=mn("fixedItemHeight"),i=De("alignToBottom"),a=zn(ao(n,o=>In(o,"height")));return x.useEffect(()=>{t&&(n(t.viewportHeight),r(t.itemHeight))},[t,n,r]),x.createElement("div",{style:ga(i),ref:a,"data-viewport-type":"element"},e)},pE=({children:e})=>{const t=x.useContext(ou),n=mn("windowViewportRect"),r=mn("fixedItemHeight"),i=De("customScrollParent"),a=sf(n,i),o=De("alignToBottom");return x.useEffect(()=>{t&&(r(t.itemHeight),n({offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:100}))},[t,n,r]),x.createElement("div",{ref:a,style:ga(o),"data-viewport-type":"window"},e)},bE=({children:e})=>{const t=De("TopItemListComponent")||"div",n=De("headerHeight"),r={...fE,marginTop:`${n}px`},i=De("context");return x.createElement(t,{style:r,...it(t,i)},e)},vE=x.memo(function(t){const n=De("useWindowScroll"),r=De("topItemsIndexes").length>0,i=De("customScrollParent"),a=i||n?CE:xE,o=i||n?pE:mE;return x.createElement(a,{...t},r&&x.createElement(bE,null,x.createElement(yg,{showTopList:!0})),x.createElement(o,null,x.createElement(hE,null),x.createElement(yg,null),x.createElement(gE,null)))}),{Component:yE,usePublisher:mn,useEmitterValue:De,useEmitter:df}=Qd(sE,{required:{},optional:{restoreStateFrom:"restoreStateFrom",context:"context",followOutput:"followOutput",itemContent:"itemContent",groupContent:"groupContent",overscan:"overscan",increaseViewportBy:"increaseViewportBy",totalCount:"totalCount",groupCounts:"groupCounts",topItemCount:"topItemCount",firstItemIndex:"firstItemIndex",initialTopMostItemIndex:"initialTopMostItemIndex",components:"components",atBottomThreshold:"atBottomThreshold",atTopThreshold:"atTopThreshold",computeItemKey:"computeItemKey",defaultItemHeight:"defaultItemHeight",fixedItemHeight:"fixedItemHeight",itemSize:"itemSize",scrollSeekConfiguration:"scrollSeekConfiguration",headerFooterTag:"headerFooterTag",data:"data",initialItemCount:"initialItemCount",initialScrollTop:"initialScrollTop",alignToBottom:"alignToBottom",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel"},methods:{scrollToIndex:"scrollToIndex",scrollIntoView:"scrollIntoView",scrollTo:"scrollTo",scrollBy:"scrollBy",autoscrollToBottom:"autoscrollToBottom",getState:"getState"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",totalListHeightChanged:"totalListHeightChanged",itemsRendered:"itemsRendered",groupIndices:"groupIndices"}},vE),xE=uf({usePublisher:mn,useEmitterValue:De,useEmitter:df}),CE=cf({usePublisher:mn,useEmitterValue:De,useEmitter:df}),wE=yE,xg={items:[],offsetBottom:0,offsetTop:0,top:0,bottom:0,itemHeight:0,itemWidth:0},DE={items:[{index:0}],offsetBottom:0,offsetTop:0,top:0,bottom:0,itemHeight:0,itemWidth:0},{round:Cg,ceil:wg,floor:yl,min:zu,max:Ga}=Math;function SE(e){return{...DE,items:e}}function Dg(e,t,n){return Array.from({length:t-e+1}).map((r,i)=>{const a=n===null?null:n[i+e];return{index:i+e,data:a}})}function EE(e,t){return e&&e.column===t.column&&e.row===t.row}function os(e,t){return e&&e.width===t.width&&e.height===t.height}const IE=Te(([{overscan:e,visibleRange:t,listBoundary:n},{scrollTop:r,viewportHeight:i,scrollBy:a,scrollTo:o,smoothScrollTargetReached:s,scrollContainerState:l,footerHeight:u,headerHeight:c},d,h,{propsReady:f,didMount:g},{windowViewportRect:m,useWindowScroll:p,customScrollParent:b,windowScrollContainerState:v,windowScrollTo:y},w])=>{const C=K(0),E=K(0),I=K(xg),D=K({height:0,width:0}),_=K({height:0,width:0}),F=Ie(),$=Ie(),P=K(0),k=K(null),A=K({row:0,column:0}),B=Ie(),T=Ie(),R=K(!1),O=K(0),H=K(!0),L=K(!1);We(U(g,ye(O),pe(([N,G])=>!!G)),()=>{ve(H,!1),ve(E,0)}),We(U(yt(g,H,_,D,O,L),pe(([N,G,J,re,,fe])=>N&&!G&&J.height!==0&&re.height!==0&&!fe)),([,,,,N])=>{ve(L,!0),nf(1,()=>{ve(F,N)}),Wn(U(r),()=>{ve(n,[0,0]),ve(H,!0)})}),se(U(T,pe(N=>N!=null&&N.scrollTop>0),Bn(0)),E),We(U(g,ye(T),pe(([,N])=>N!=null)),([,N])=>{N&&(ve(D,N.viewport),ve(_,N==null?void 0:N.item),ve(A,N.gap),N.scrollTop>0&&(ve(R,!0),Wn(U(r,aa(1)),G=>{ve(R,!1)}),ve(o,{top:N.scrollTop})))}),se(U(D,te(({height:N})=>N)),i),se(U(yt(be(D,os),be(_,os),be(A,(N,G)=>N&&N.column===G.column&&N.row===G.row),be(r)),te(([N,G,J,re])=>({viewport:N,item:G,gap:J,scrollTop:re}))),B),se(U(yt(be(C),t,be(A,EE),be(_,os),be(D,os),be(k),be(E),be(R),be(H),be(O)),pe(([,,,,,,,N])=>!N),te(([N,[G,J],re,fe,le,z,Ae,,ke,Xe])=>{const{row:qe,column:ee}=re,{height:ne,width:he}=fe,{width:Oe}=le;if(Ae===0&&(N===0||Oe===0))return xg;if(he===0){const _i=rf(Xe,N),ba=_i===0?Math.max(Ae-1,0):_i;return SE(Dg(_i,ba,z))}const ut=l1(Oe,he,ee);let Se,xe;ke?G===0&&J===0&&Ae>0?(Se=0,xe=Ae-1):(Se=ut*yl((G+qe)/(ne+qe)),xe=ut*wg((J+qe)/(ne+qe))-1,xe=zu(N-1,Ga(xe,ut-1)),Se=zu(xe,Ga(0,Se))):(Se=0,xe=-1);const Vt=Dg(Se,xe,z),{top:Ot,bottom:Nt}=Sg(le,re,fe,Vt),ln=wg(N/ut),Ko=ln*ne+(ln-1)*qe-Nt;return{items:Vt,offsetTop:Ot,offsetBottom:Ko,top:Ot,bottom:Nt,itemHeight:ne,itemWidth:he}})),I),se(U(k,pe(N=>N!==null),te(N=>N.length)),C),se(U(yt(D,_,I,A),pe(([N,G,{items:J}])=>J.length>0&&G.height!==0&&N.height!==0),te(([N,G,{items:J},re])=>{const{top:fe,bottom:le}=Sg(N,re,G,J);return[fe,le]}),Ye(co)),n);const Z=K(!1);se(U(r,ye(Z),te(([N,G])=>G||N!==0)),Z);const V=nn(U(be(I),pe(({items:N})=>N.length>0),ye(C,Z),pe(([{items:N},G,J])=>J&&N[N.length-1].index===G-1),te(([,N])=>N-1),Ye())),W=nn(U(be(I),pe(({items:N})=>N.length>0&&N[0].index===0),Bn(0),Ye())),q=nn(U(be(I),ye(R),pe(([{items:N},G])=>N.length>0&&!G),te(([{items:N}])=>({startIndex:N[0].index,endIndex:N[N.length-1].index})),Ye(qb),wr(0)));se(q,h.scrollSeekRangeChanged),se(U(F,ye(D,_,C,A),te(([N,G,J,re,fe])=>{const le=Kb(N),{align:z,behavior:Ae,offset:ke}=le;let Xe=le.index;Xe==="LAST"&&(Xe=re-1),Xe=Ga(0,Xe,zu(re-1,Xe));let qe=Wc(G,fe,J,Xe);return z==="end"?qe=Cg(qe-G.height+J.height):z==="center"&&(qe=Cg(qe-G.height/2+J.height/2)),ke&&(qe+=ke),{top:qe,behavior:Ae}})),o);const Y=At(U(I,te(N=>N.offsetBottom+N.bottom)),0);return se(U(m,te(N=>({width:N.visibleWidth,height:N.visibleHeight}))),D),{data:k,totalCount:C,viewportDimensions:D,itemDimensions:_,scrollTop:r,scrollHeight:$,overscan:e,scrollBy:a,scrollTo:o,scrollToIndex:F,smoothScrollTargetReached:s,windowViewportRect:m,windowScrollTo:y,useWindowScroll:p,customScrollParent:b,windowScrollContainerState:v,deviation:P,scrollContainerState:l,footerHeight:u,headerHeight:c,initialItemCount:E,gap:A,restoreStateFrom:T,...h,initialTopMostItemIndex:O,gridState:I,totalListHeight:Y,...d,startReached:W,endReached:V,rangeChanged:q,stateChanged:B,propsReady:f,stateRestoreInProgress:R,...w}},Ue(af,Bt,No,t1,Or,of,Vr));function Sg(e,t,n,r){const{height:i}=n;if(i===void 0||r.length===0)return{top:0,bottom:0};const a=Wc(e,t,n,r[0].index),o=Wc(e,t,n,r[r.length-1].index)+i;return{top:a,bottom:o}}function Wc(e,t,n,r){const i=l1(e.width,n.width,t.column),a=yl(r/i),o=a*n.height+Ga(0,a-1)*t.row;return o>0?o+t.row:o}function l1(e,t,n){return Ga(1,yl((e+n)/(yl(t)+n)))}const _E=Te(()=>{const e=K(u=>`Item ${u}`),t=K({}),n=K(null),r=K("virtuoso-grid-item"),i=K("virtuoso-grid-list"),a=K(lf),o=K("div"),s=K(wi),l=(u,c=null)=>At(U(t,te(d=>d[u]),Ye()),c);return{context:n,itemContent:e,components:t,computeItemKey:a,itemClassName:r,listClassName:i,headerFooterTag:o,scrollerRef:s,FooterComponent:l("Footer"),HeaderComponent:l("Header"),ListComponent:l("List","div"),ItemComponent:l("Item","div"),ScrollerComponent:l("Scroller","div"),ScrollSeekPlaceholder:l("ScrollSeekPlaceholder","div")}}),$E=Te(([e,t])=>({...e,...t}),Ue(IE,_E)),RE=x.memo(function(){const t=tt("gridState"),n=tt("listClassName"),r=tt("itemClassName"),i=tt("itemContent"),a=tt("computeItemKey"),o=tt("isSeeking"),s=Sn("scrollHeight"),l=tt("ItemComponent"),u=tt("ListComponent"),c=tt("ScrollSeekPlaceholder"),d=tt("context"),h=Sn("itemDimensions"),f=Sn("gap"),g=tt("log"),m=tt("stateRestoreInProgress"),p=zn(b=>{const v=b.parentElement.parentElement.scrollHeight;s(v);const y=b.firstChild;if(y){const{width:w,height:C}=y.getBoundingClientRect();h({width:w,height:C})}f({row:Eg("row-gap",getComputedStyle(b).rowGap,g),column:Eg("column-gap",getComputedStyle(b).columnGap,g)})});return m?null:x.createElement(u,{ref:p,className:n,...it(u,d),style:{paddingTop:t.offsetTop,paddingBottom:t.offsetBottom},"data-testid":"virtuoso-item-list"},t.items.map(b=>{const v=a(b.index,b.data,d);return o?x.createElement(c,{key:v,...it(c,d),index:b.index,height:t.itemHeight,width:t.itemWidth}):x.createElement(l,{...it(l,d),className:r,"data-index":b.index,key:v},i(b.index,b.data,d))}))}),AE=x.memo(function(){const t=tt("HeaderComponent"),n=Sn("headerHeight"),r=tt("headerFooterTag"),i=zn(o=>n(In(o,"height"))),a=tt("context");return t?x.createElement(r,{ref:i},x.createElement(t,it(t,a))):null}),FE=x.memo(function(){const t=tt("FooterComponent"),n=Sn("footerHeight"),r=tt("headerFooterTag"),i=zn(o=>n(In(o,"height"))),a=tt("context");return t?x.createElement(r,{ref:i},x.createElement(t,it(t,a))):null}),PE=({children:e})=>{const t=x.useContext(o1),n=Sn("itemDimensions"),r=Sn("viewportDimensions"),i=zn(a=>{r(a.getBoundingClientRect())});return x.useEffect(()=>{t&&(r({height:t.viewportHeight,width:t.viewportWidth}),n({height:t.itemHeight,width:t.itemWidth}))},[t,r,n]),x.createElement("div",{style:ga(!1),ref:i},e)},TE=({children:e})=>{const t=x.useContext(o1),n=Sn("windowViewportRect"),r=Sn("itemDimensions"),i=tt("customScrollParent"),a=sf(n,i);return x.useEffect(()=>{t&&(r({height:t.itemHeight,width:t.itemWidth}),n({offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:t.viewportWidth}))},[t,n,r]),x.createElement("div",{ref:a,style:ga(!1)},e)},kE=x.memo(function({...t}){const n=tt("useWindowScroll"),r=tt("customScrollParent"),i=r||n?BE:ME,a=r||n?TE:PE;return x.createElement(i,{...t},x.createElement(a,null,x.createElement(AE,null),x.createElement(RE,null),x.createElement(FE,null)))}),{Component:tB,usePublisher:Sn,useEmitterValue:tt,useEmitter:u1}=Qd($E,{optional:{context:"context",totalCount:"totalCount",overscan:"overscan",itemContent:"itemContent",components:"components",computeItemKey:"computeItemKey",data:"data",initialItemCount:"initialItemCount",scrollSeekConfiguration:"scrollSeekConfiguration",headerFooterTag:"headerFooterTag",listClassName:"listClassName",itemClassName:"itemClassName",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel",restoreStateFrom:"restoreStateFrom",initialTopMostItemIndex:"initialTopMostItemIndex"},methods:{scrollTo:"scrollTo",scrollBy:"scrollBy",scrollToIndex:"scrollToIndex"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",stateChanged:"stateChanged"}},kE),ME=uf({usePublisher:Sn,useEmitterValue:tt,useEmitter:u1}),BE=cf({usePublisher:Sn,useEmitterValue:tt,useEmitter:u1});function Eg(e,t,n){return t!=="normal"&&!(t!=null&&t.endsWith("px"))&&n(`${e} was not resolved to pixel value correctly`,t,rn.WARN),t==="normal"?0:parseInt(t??"0",10)}const VE=Te(()=>{const e=K(l=>x.createElement("td",null,"Item $",l)),t=K(null),n=K(null),r=K(null),i=K({}),a=K(lf),o=K(wi),s=(l,u=null)=>At(U(i,te(c=>c[l]),Ye()),u);return{context:t,itemContent:e,fixedHeaderContent:n,fixedFooterContent:r,components:i,computeItemKey:a,scrollerRef:o,TableComponent:s("Table","table"),TableHeadComponent:s("TableHead","thead"),TableFooterComponent:s("TableFoot","tfoot"),TableBodyComponent:s("TableBody","tbody"),TableRowComponent:s("TableRow","tr"),ScrollerComponent:s("Scroller","div"),EmptyPlaceholder:s("EmptyPlaceholder"),ScrollSeekPlaceholder:s("ScrollSeekPlaceholder"),FillerRow:s("FillerRow")}}),OE=Te(([e,t])=>({...e,...t}),Ue(i1,VE)),NE=({height:e})=>x.createElement("tr",null,x.createElement("td",{style:{height:e}})),LE=({height:e})=>x.createElement("tr",null,x.createElement("td",{style:{height:e,padding:0,border:0}})),jE={overflowAnchor:"none"},HE=x.memo(function(){const t=Le("listState"),n=En("sizeRanges"),r=Le("useWindowScroll"),i=Le("customScrollParent"),a=En("windowScrollContainerState"),o=En("scrollContainerState"),s=i||r?a:o,l=Le("itemContent"),u=Le("trackItemSizes"),c=Le("itemSize"),d=Le("log"),{callbackRef:h,ref:f}=Lb(n,c,u,s,d,void 0,i),[g,m]=x.useState(0);ff("deviation",T=>{g!==T&&(f.current.style.marginTop=`${T}px`,m(T))});const p=Le("EmptyPlaceholder"),b=Le("ScrollSeekPlaceholder")||NE,v=Le("FillerRow")||LE,y=Le("TableBodyComponent"),w=Le("TableRowComponent"),C=Le("computeItemKey"),E=Le("isSeeking"),I=Le("paddingTopAddition"),D=Le("firstItemIndex"),_=Le("statefulTotalCount"),F=Le("context");if(_===0&&p)return x.createElement(p,it(p,F));const $=t.offsetTop+I+g,P=t.offsetBottom,k=$>0?x.createElement(v,{height:$,key:"padding-top",context:F}):null,A=P>0?x.createElement(v,{height:P,key:"padding-bottom",context:F}):null,B=t.items.map(T=>{const R=T.originalIndex,O=C(R+D,T.data,F);return E?x.createElement(b,{...it(b,F),key:O,index:T.index,height:T.size,type:T.type||"item"}):x.createElement(w,{...it(w,F),...s1(w,T.data),key:O,"data-index":R,"data-known-size":T.size,"data-item-index":T.index,style:jE},l(T.index,T.data,F))});return x.createElement(y,{ref:h,"data-testid":"virtuoso-item-list",...it(y,F)},[k,...B,A])}),WE=({children:e})=>{const t=x.useContext(ou),n=En("viewportHeight"),r=En("fixedItemHeight"),i=zn(ao(n,a=>In(a,"height")));return x.useEffect(()=>{t&&(n(t.viewportHeight),r(t.itemHeight))},[t,n,r]),x.createElement("div",{style:ga(!1),ref:i,"data-viewport-type":"element"},e)},zE=({children:e})=>{const t=x.useContext(ou),n=En("windowViewportRect"),r=En("fixedItemHeight"),i=Le("customScrollParent"),a=sf(n,i);return x.useEffect(()=>{t&&(r(t.itemHeight),n({offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:100}))},[t,n,r]),x.createElement("div",{ref:a,style:ga(!1),"data-viewport-type":"window"},e)},GE=x.memo(function(t){const n=Le("useWindowScroll"),r=Le("customScrollParent"),i=En("fixedHeaderHeight"),a=En("fixedFooterHeight"),o=Le("fixedHeaderContent"),s=Le("fixedFooterContent"),l=Le("context"),u=zn(ao(i,v=>In(v,"height"))),c=zn(ao(a,v=>In(v,"height"))),d=r||n?YE:XE,h=r||n?zE:WE,f=Le("TableComponent"),g=Le("TableHeadComponent"),m=Le("TableFooterComponent"),p=o?x.createElement(g,{key:"TableHead",style:{zIndex:2,position:"sticky",top:0},ref:u,...it(g,l)},o()):null,b=s?x.createElement(m,{key:"TableFoot",style:{zIndex:1,position:"sticky",bottom:0},ref:c,...it(m,l)},s()):null;return x.createElement(d,{...t},x.createElement(h,null,x.createElement(f,{style:{borderSpacing:0,overflowAnchor:"none"},...it(f,l)},[p,x.createElement(HE,{key:"TableBody"}),b])))}),{Component:ZE,usePublisher:En,useEmitterValue:Le,useEmitter:ff}=Qd(OE,{required:{},optional:{restoreStateFrom:"restoreStateFrom",context:"context",followOutput:"followOutput",firstItemIndex:"firstItemIndex",itemContent:"itemContent",fixedHeaderContent:"fixedHeaderContent",fixedFooterContent:"fixedFooterContent",overscan:"overscan",increaseViewportBy:"increaseViewportBy",totalCount:"totalCount",topItemCount:"topItemCount",initialTopMostItemIndex:"initialTopMostItemIndex",components:"components",groupCounts:"groupCounts",atBottomThreshold:"atBottomThreshold",atTopThreshold:"atTopThreshold",computeItemKey:"computeItemKey",defaultItemHeight:"defaultItemHeight",fixedItemHeight:"fixedItemHeight",itemSize:"itemSize",scrollSeekConfiguration:"scrollSeekConfiguration",data:"data",initialItemCount:"initialItemCount",initialScrollTop:"initialScrollTop",alignToBottom:"alignToBottom",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel"},methods:{scrollToIndex:"scrollToIndex",scrollIntoView:"scrollIntoView",scrollTo:"scrollTo",scrollBy:"scrollBy",getState:"getState"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",totalListHeightChanged:"totalListHeightChanged",itemsRendered:"itemsRendered",groupIndices:"groupIndices"}},GE),XE=uf({usePublisher:En,useEmitterValue:Le,useEmitter:ff}),YE=cf({usePublisher:En,useEmitterValue:Le,useEmitter:ff}),UE=ZE,JE=({children:e,...t})=>S.jsx(S.Fragment,{children:e(t)}),KE=({children:e,...t})=>S.jsx(S.Fragment,{children:x.isValidElement(e)&&S.jsx(S.Fragment,{children:x.cloneElement(e,t)})}),hf=x.forwardRef((e,t)=>{const{classNameContainer:n="",computeItemKey:r=()=>"",itemSize:i=()=>0,totalCount:a=0,typeHight:o="min-max",minHeightItem:s=0,maxHeightTable:l=0,minLengthItem:u=0,fixedHeaderContent:c,itemContent:d,typeCalculateItemSize:h="manual",itemSizeNames:f=[],overscan:g=null,component:m={},idContainer:p="",triggerCalCulateContainer:b="",accumulationHeight:v=0,delayTriggerCalculateHeight:y=0,increaseViewportBy:w=()=>0,context:C={},endReached:E}=e,[I,D]=x.useState(0),_=()=>{if(o==="min-max"){const P=(a+1)*s;return{height:a>u?l:I>P?I:P}}return o==="container"?{height:I}:{}},F=P=>{var B;const k=P.getAttribute("data-index");let A=((B=P.getBoundingClientRect())==null?void 0:B.height)||0;return f==null||f.forEach(T=>{var R,O;A+=((O=(R=document.querySelector(`[${T}="${k}"]`))==null?void 0:R.getBoundingClientRect())==null?void 0:O.height)??0}),A},$=()=>{var P;if(p&&o==="container"){const k=((P=document==null?void 0:document.getElementById(p))==null?void 0:P.offsetHeight)??0;D(k-v)}};return x.useEffect(()=>{const P=setTimeout($,y);return window==null||window.addEventListener("resize",$),window==null||window.addEventListener("load",$),()=>{clearTimeout(P),window==null||window.removeEventListener("resize",$),window==null||window.removeEventListener("load",$)}},[o,b]),S.jsx("div",{className:`1ru-w-full ${n}`,children:S.jsx(UE,{context:C,ref:t,overscan:typeof g=="function"?g(o==="container"?I:l):o==="container"?I:l,totalListHeightChanged:P=>o==="min-max"?D(P):null,style:_(),totalCount:a,computeItemKey:r,itemSize:x.useCallback(P=>h==="manual"?i(P):F(P),[]),components:{TableRow:KE,...m},fixedHeaderContent:c,itemContent:(...P)=>d(JE,...P),endReached:E,increaseViewportBy:w(o==="container"?I:l)})})});hf.displayName="TableVirtualization";const QE="_sorting_dedjh_39",Qn={"container-table":"_container-table_dedjh_1","payhere-reguler":"_payhere-reguler_dedjh_1","laba-small":"_laba-small_dedjh_1","laba-reguler":"_laba-reguler_dedjh_1","table-root":"_table-root_dedjh_5","table-scroll-top":"_table-scroll-top_dedjh_9","pointer-laba":"_pointer-laba_dedjh_16","pointer-payhere":"_pointer-payhere_dedjh_20",sorting:QE,"laba-grey-02":"_laba-grey-02_dedjh_53"},Ti="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.6673%2011.3333L8.00065%2014M8.00065%2014L5.33398%2011.3333M8.00065%2014V2'%20stroke='%23CFD8DC'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e";function qE(e,t=null){const[n,r]=x.useState(!1);return x.useEffect(()=>{let i=null,a=null;const o=()=>{const s=i instanceof HTMLElement?i.getBoundingClientRect().width:window.innerWidth,l=window.matchMedia(e.replace("WIDTH",s.toString()));r(l.matches)};if(t){if(i=document.getElementById(t),!i)return;a=new ResizeObserver(o),a.observe(i)}else i=window,window.addEventListener("resize",o);return o(),()=>{a?a.disconnect():window.removeEventListener("resize",o)}},[e,t]),n}const eI=e=>{const t=h=>{const f=new Date,g=h.getTime()-f.getTime();return Math.max(Math.floor(g/1e3),0)},n=new Date(new Date(e.date).setHours(new Date(e.date).getHours()-((e==null?void 0:e.adjustTimesTime)??0))),[r,i]=x.useState(t(n)),[a,o]=x.useState(e.running??!1),[s,l]=x.useState(()=>e==null?void 0:e.callbackDone);return x.useEffect(()=>{let h;return a&&r>0?h=setInterval(()=>{i(f=>Math.max(f-1,0))},e.intervalMs):a&&r===0&&typeof s=="function"&&s(),()=>{h&&clearInterval(h)}},[a,r,e.intervalMs,s]),{count:r,startCountdown:()=>{o(!0)},stopCountdown:()=>{o(!1)},resetCountdown:h=>{i(typeof h=="number"?h:t(h??n))},setCallbackDone:h=>l(()=>h)}};function tI(e,t=0){const n=x.useRef({promise:null,resolve:null,reject:null,timeout:null});return x.useCallback((...i)=>(n.current.timeout&&clearTimeout(n.current.timeout),n.current.promise||(n.current.promise=new Promise((a,o)=>{n.current.resolve=a,n.current.reject=o})),n.current.timeout=setTimeout(()=>{e(...i).then(a=>{n.current.resolve&&n.current.resolve(a)}).catch(a=>{n.current.reject&&n.current.reject(a)}).finally(()=>{n.current.promise=null,n.current.resolve=null,n.current.reject=null,n.current.timeout=null})},t),n.current.promise),[e,t])}const c1=typeof window<"u"?x.useLayoutEffect:x.useEffect,nI=(e,t)=>{const[n,r]=x.useState({width:0,height:0}),[i,a]=x.useState({width:0,height:0,top:0,left:0,bottom:0,right:0,x:0,y:0}),o=x.useRef(null);return c1(()=>{const s=()=>{r({width:window.innerWidth,height:window.innerHeight})},l=d=>{for(const h of d){const{width:f,height:g,top:m,left:p,bottom:b,right:v,x:y,y:w}=h.contentRect;a({width:f,height:g,top:m,left:p,bottom:b,right:v,x:y,y:w})}};let u=null;t?u=document.querySelector(t):o.current&&(u=o.current);const c=new ResizeObserver(l);return u&&c.observe(u),window.addEventListener("resize",s),s(),()=>{u&&c.unobserve(u),window.removeEventListener("resize",s)}},[t,...e??[]]),{ref:o,windowSize:n,contentRect:i}};function rI(e){const[t,n]=x.useState(e),r=x.useRef(t);return x.useEffect(()=>{r.current=t},[t]),[t,n,r]}function iI(e,t){if(e!=null){if(typeof e=="function"){e(t);return}try{e.current=t}catch{throw new Error(`Cannot assign value '${JSON.stringify(t)}' to ref '${JSON.stringify(e)}'`)}}}function aI(...e){return t=>{e.forEach(n=>{iI(n,t)})}}function d1(...e){return x.useMemo(()=>aI(...e),e)}function gf(e){const t=x.useRef(e);return Vd(e,t.current)||(t.current=e),t.current}function jo(e,t){const n=t.map(gf);x.useEffect(e,n)}function oI({ref:e,handlerMain:t,eventListener:n="mousedown",useEffectDependency:r=[]}){x.useEffect(()=>{function i(a){t(e,a)}return document.addEventListener(n,i),()=>{document.removeEventListener(n,i)}},[e,t,n,...r])}const sI=(e,t)=>{var r,i;let n={};return e?n={position:"sticky",top:0,zIndex:2}:(r=t.column.columnDef.meta)!=null&&r.styleTh&&(n={...n,...(i=t.column.columnDef.meta)==null?void 0:i.styleTh(t.column.columnDef)}),n},Ut=()=>({kind:{"payhere-reguler":Qn["payhere-reguler"],"laba-reguler":Qn["laba-reguler"],"laba-small":Qn["laba-small"]},pointer:{"payhere-reguler":Qn["pointer-payhere"],"laba-reguler":Qn["pointer-laba"],"laba-small":Qn["pointer-laba"]},utility:{"table-scroll-top":""},sortingIcon:{"payhere-reguler":{asc:S.jsx("img",{src:Ti,className:"1ru-w-4 1ru-h-4"}),desc:S.jsx("img",{src:Ti,className:"1ru-w-4 1ru-h-4 1ru-rotate-180"})},"laba-reguler":{asc:S.jsx("img",{src:Ti,className:"1ru-w-4 1ru-h-4"}),desc:S.jsx("img",{src:Ti,className:"1ru-w-4 1ru-h-4 1ru-rotate-180"})},"laba-small":{asc:S.jsx("img",{src:Ti,className:"1ru-w-4 1ru-h-4"}),desc:S.jsx("img",{src:Ti,className:"1ru-w-4 1ru-h-4 1ru-rotate-180"})}},variant:{"laba-grey-02":Qn["laba-grey-02"]}}),lI=({tableInstance:e,classNameWrapperTable:t,classNameTable:n,handlerRowClick:r,privillageRowClick:i,headerId:a,tbodyTrId:o,maxHeight:s,idCalculateHeight:l,componentSortASC:u,componentSortDESC:c,classNamePointer:d,emptyPlaceholder:h})=>S.jsx("div",{id:"1ru-table",style:s?{height:s,overflow:"auto"}:{},className:t??"",children:S.jsxs("table",{className:n,children:[S.jsx("thead",{id:a,children:e.getHeaderGroups().map(f=>S.jsx("tr",{children:f.headers.map(g=>S.jsx("th",{style:sI(s,g),colSpan:g.colSpan,children:g.isPlaceholder?null:S.jsxs("div",{className:g.column.getCanSort()?Qn.sorting:"",onClick:g.column.getToggleSortingHandler(),children:[io(g.column.columnDef.header,g.getContext()),g.column.getCanSort()&&S.jsx("span",{className:"1ru-flex-shrink-0",children:g.column.getIsSorted()==="asc"||g.column.getIsSorted()==="desc"?S.jsxs(S.Fragment,{children:[g.column.getIsSorted()==="asc"&&S.jsx(S.Fragment,{children:u}),g.column.getIsSorted()==="desc"&&S.jsx(S.Fragment,{children:c})]}):S.jsx(S.Fragment,{})})]})},g.id))},f.id))}),S.jsxs("tbody",{children:[e.getRowModel().rows.length>0&&e.getRowModel().rows.map((f,g)=>S.jsx("tr",{onClick:m=>{m.stopPropagation(),i&&typeof r=="function"&&r(f.original,f)},className:i?d:"","data-calculate-height":`${l}-${g}`,id:o(f),children:f.getVisibleCells().map(m=>{var p,b,v;return S.jsx("td",{style:typeof((p=m.column.columnDef.meta)==null?void 0:p.styleTd)=="function"?m.column.columnDef.meta.styleTd(f.original,f):{},className:typeof((b=m.column.columnDef.meta)==null?void 0:b.classNameTd)=="function"?(v=m.column.columnDef.meta)==null?void 0:v.classNameTd(f.original,f):"",children:io(m.column.columnDef.cell,m.getContext())},m.id)})},f.id)),e.getRowModel().rows.length===0&&x.isValidElement(h)&&S.jsx("tr",{children:S.jsx("td",{colSpan:e.getVisibleFlatColumns().length,children:h})})]})]})}),f1=x.forwardRef((e,t)=>{const{context:n,...r}=e;return S.jsx("thead",{id:(n==null?void 0:n.headerId)??"",...r,ref:t})});f1.displayName="VirtualizationHead";const uI=({style:e,context:t,...n})=>S.jsx("table",{...n,id:"1ru-table",className:(t==null?void 0:t.classNameTable)??"",style:e}),cI=({tableInstance:e,classNameWrapperTable:t,handlerRowClick:n,privillageRowClick:r,virtualizationProps:i,headerId:a,tbodyTrId:o,classNameTable:s,componentSortASC:l,componentSortDESC:u,classNamePointer:c,emptyPlaceholder:d})=>{var g,m,p;const[h,f]=x.useState(0);return S.jsx(hf,{context:{headerId:a,classNameTable:s},typeHight:"min-max",totalCount:((g=e.getRowModel().rows)==null?void 0:g.length)||0,minLengthItem:((m=e.getRowModel().rows)==null?void 0:m.length)||0,typeCalculateItemSize:"auto",component:{TableHead:f1,Table:uI,EmptyPlaceholder:()=>S.jsx("tbody",{ref:b=>{var v;return f(((v=b==null?void 0:b.getBoundingClientRect())==null?void 0:v.height)??0)},children:S.jsx("tr",{children:S.jsx("td",{colSpan:e.getVisibleFlatColumns().length,children:x.isValidElement(d)&&d})})})},classNameContainer:t,fixedHeaderContent:()=>e.getHeaderGroups().map(b=>S.jsx("tr",{children:b.headers.map(v=>{var y,w;return S.jsx("th",{colSpan:v.colSpan,style:typeof((y=v.column.columnDef.meta)==null?void 0:y.styleTh)=="function"?(w=v.column.columnDef.meta)==null?void 0:w.styleTh(v.column.columnDef):{},children:v.isPlaceholder?null:S.jsxs("div",{className:v.column.getCanSort()?Qn.sorting:"",onClick:v.column.getToggleSortingHandler(),children:[io(v.column.columnDef.header,v.getContext()),v.column.getCanSort()&&S.jsx("span",{className:"1ru-flex-shrink-0",children:v.column.getIsSorted()==="asc"||v.column.getIsSorted()==="desc"?S.jsxs(S.Fragment,{children:[v.column.getIsSorted()==="asc"&&S.jsx(S.Fragment,{children:l}),v.column.getIsSorted()==="desc"&&S.jsx(S.Fragment,{children:u})]}):S.jsx(S.Fragment,{})})]})},v.id)})},b.id)),itemContent:(b,v)=>{var w,C;const y=(C=(w=e.getRowModel())==null?void 0:w.rows)==null?void 0:C[v];return S.jsx(b,{children:({...E})=>x.createElement("tr",{...E,onClick:I=>{I.stopPropagation(),r&&typeof n=="function"&&n(y.original,y)},className:r?c:"",key:y.id,id:o(y)},y.getVisibleCells().map(I=>{var D,_,F;return S.jsx(S.Fragment,{children:S.jsx("td",{style:typeof((D=I.column.columnDef.meta)==null?void 0:D.styleTd)=="function"?I.column.columnDef.meta.styleTd(y.original,y):{},className:typeof((_=I.column.columnDef.meta)==null?void 0:_.classNameTd)=="function"?(F=I.column.columnDef.meta)==null?void 0:F.classNameTd(y.original,y):"",children:io(I.column.columnDef.cell,I.getContext())},I.id)})}))},y.id)},...i,minHeightItem:((i==null?void 0:i.minHeightItem)??60)+((((p=e.getRowModel().rows)==null?void 0:p.length)||0)>0?0:h)})},dI=({tableInstance:e,classNameWrapperTable:t="",classNameTable:n="",collapseAll:r=!0,handlerRowClick:i,privillageRowClick:a=!1,virtualization:o=!1,virtualizationProps:s,headerId:l="",tbodyTrId:u=()=>"",maxHeight:c=0,idCalculateHeight:d=void 0,kind:h="laba-reguler",componentSortASC:f,componentSortDESC:g,scrollTop:m=!1,emptyPlaceholder:p,variant:b})=>{const v=()=>{if(![void 0,"undefined"].includes(d)){let y=0;const w=document.querySelectorAll(`[data-calculate-height^="${d}-"]`);return w==null||w.forEach(C=>{y+=C.offsetHeight}),y>c?c:y}return c};return jo(()=>{!r&&typeof e.toggleAllRowsExpanded=="function"&&e.toggleAllRowsExpanded()},[r,e==null?void 0:e.toggleAllRowsExpanded]),S.jsxs(S.Fragment,{children:[!o&&S.jsx(lI,{tbodyTrId:u,headerId:l,tableInstance:e,classNameTable:n,classNameWrapperTable:`${Ut().kind[h]} ${b?Ut().variant[b]:""}
|
72
72
|
${m?Ut().utility["table-scroll-top"]:""} ${t}`,handlerRowClick:i,privillageRowClick:a,maxHeight:v(),idCalculateHeight:d,componentSortASC:x.isValidElement(f)?f:Ut().sortingIcon[h].asc,componentSortDESC:x.isValidElement(g)?g:Ut().sortingIcon[h].desc,classNamePointer:Ut().pointer[h],emptyPlaceholder:p}),o&&S.jsx(cI,{tbodyTrId:u,headerId:l,tableInstance:e,classNameTable:n,classNameWrapperTable:`${Ut().kind[h]} ${b?Ut().variant[b]:""}
|
73
|
-
${m?Ut().utility["table-scroll-top"]:""} ${t}`,handlerRowClick:i,privillageRowClick:a,virtualizationProps:s,componentSortASC:x.isValidElement(f)?f:Ut().sortingIcon[h].asc,componentSortDESC:x.isValidElement(g)?g:Ut().sortingIcon[h].desc,classNamePointer:Ut().pointer[h],emptyPlaceholder:p})]})},fI=({children:e,...t})=>S.jsx(S.Fragment,{children:e(t)}),hI=({children:e,...t})=>S.jsx(S.Fragment,{children:x.isValidElement(e)&&S.jsx(S.Fragment,{children:x.cloneElement(e,t)})}),h1=x.forwardRef((e,t)=>{const{classNameContainer:n="",computeItemKey:r=()=>"",itemSize:i=()=>0,totalCount:a=0,typeHight:o="min-max",minHeightItem:s=0,maxHeightTable:l=0,minLengthItem:u=0,itemContent:c,typeCalculateItemSize:d="manual",itemSizeNames:h=[],overscan:f=null,component:g={},idContainer:m="",triggerCalCulateContainer:p="",accumulationHeight:b=0,delayTriggerCalculateHeight:v=0,increaseViewportBy:y=()=>0,context:w={},endReached:C}=e,[E,I]=x.useState(0),D=()=>{if(o==="min-max"){const $=(a+1)*s;return{height:a>u?l:E>$?E:$}}return o==="container"?{height:E}:{}},_=$=>{var A;const P=$.getAttribute("data-index");let
|
73
|
+
${m?Ut().utility["table-scroll-top"]:""} ${t}`,handlerRowClick:i,privillageRowClick:a,virtualizationProps:s,componentSortASC:x.isValidElement(f)?f:Ut().sortingIcon[h].asc,componentSortDESC:x.isValidElement(g)?g:Ut().sortingIcon[h].desc,classNamePointer:Ut().pointer[h],emptyPlaceholder:p})]})},fI=({children:e,...t})=>S.jsx(S.Fragment,{children:e(t)}),hI=({children:e,...t})=>S.jsx(S.Fragment,{children:x.isValidElement(e)&&S.jsx(S.Fragment,{children:x.cloneElement(e,t)})}),h1=x.forwardRef((e,t)=>{const{classNameContainer:n="",computeItemKey:r=()=>"",itemSize:i=()=>0,totalCount:a=0,typeHight:o="min-max",minHeightItem:s=0,maxHeightTable:l=0,minLengthItem:u=0,itemContent:c,typeCalculateItemSize:d="manual",itemSizeNames:h=[],overscan:f=null,component:g={},idContainer:m="",triggerCalCulateContainer:p="",accumulationHeight:b=0,delayTriggerCalculateHeight:v=0,increaseViewportBy:y=()=>0,context:w={},endReached:C}=e,[E,I]=x.useState(0),D=()=>{if(o==="min-max"){const $=(a+1)*s;return{height:a>u?l:E>$?E:$}}return o==="container"?{height:E}:{}},_=$=>{var A;const P=$.getAttribute("data-index");let k=((A=$.getBoundingClientRect())==null?void 0:A.height)||0;return h==null||h.forEach(B=>{var T,R;k+=((R=(T=document.querySelector(`[${B}="${P}"]`))==null?void 0:T.getBoundingClientRect())==null?void 0:R.height)??0}),k},F=()=>{var $;if(m&&o==="container"){const P=(($=document==null?void 0:document.getElementById(m))==null?void 0:$.offsetHeight)??0;I(P-b)}};return x.useEffect(()=>{const $=setTimeout(F,v);return window==null||window.addEventListener("resize",F),window==null||window.addEventListener("load",F),()=>{clearTimeout($),window==null||window.removeEventListener("resize",F),window==null||window.removeEventListener("load",F)}},[o,p]),S.jsx("div",{className:`1ru-w-full ${n}`,children:S.jsx(wE,{context:w,ref:t,overscan:typeof f=="function"?f(o==="container"?E:l):o==="container"?E:l,totalListHeightChanged:$=>o==="min-max"?I($):null,style:D(),totalCount:a,computeItemKey:r,itemSize:x.useCallback($=>d==="manual"?i($):_($),[]),itemContent:(...$)=>c(fI,...$),components:{Item:hI,...g},endReached:C,increaseViewportBy:y(o==="container"?E:l)})})});h1.displayName="ListVirtualization";const gI="_ripple_ori0m_64",mI="_active_ori0m_69",wt={"disable-transition":"_disable-transition_ori0m_1","tab-panel":"_tab-panel_ori0m_5","tabs-medium":"_tabs-medium_ori0m_9","tabs-list":"_tabs-list_ori0m_12","button-tabs":"_button-tabs_ori0m_12","tabs-small":"_tabs-small_ori0m_19","tabs-m":"_tabs-m_ori0m_9","tabs-s":"_tabs-s_ori0m_19","container-tabs":"_container-tabs_ori0m_49","original-laba-blue-10":"_original-laba-blue-10_ori0m_52",ripple:gI,active:mI,"tabs-slider":"_tabs-slider_ori0m_76","container-payhere-brand-base":"_container-payhere-brand-base_ori0m_81","container-laba-blue-10":"_container-laba-blue-10_ori0m_105","container-laba-blue-10-bg_white":"_container-laba-blue-10-bg_white_ori0m_129"},fo={"0px":"1ru-rounded-none","2px":"1ru-rounded-sm","4px":"1ru-rounded","6px":"1ru-rounded-md","8px":"1ru-rounded-lg","12px":"1ru-rounded-xl","16px":"1ru-rounded-2xl","24px":"1ru-rounded-3xl",full:"1ru-rounded-full"},pI=({id:e,value:t="",keyValueTab:n="",tabsList:r,className:i,classNameContainer:a,classNameButton:o,variant:s="original-laba-blue-10",size:l="tabs-m",borderRadius:u="0px",disabled:c,animation:d=!0,onChange:h})=>{var I;const f=x.useRef([]);let g=r||[];const m=Object.fromEntries(new URL(window.location.href).searchParams.entries()),p={tabsVariant:{"original-laba-blue-10":wt["original-laba-blue-10"],"container-payhere-brand-base":wt["container-payhere-brand-base"],"container-laba-blue-10":wt["container-laba-blue-10"],"container-laba-blue-10-bg_white":wt["container-laba-blue-10-bg_white"]},size:{"tabs-m":wt["tabs-m"],"tabs-s":wt["tabs-s"],"tabs-medium":wt["tabs-medium"],"tabs-small":wt["tabs-small"]},borderRadius:fo,isContainer:["container-payhere-brand-base","container-laba-blue-10","container-laba-blue-10-bg_white"]},[b,v]=x.useState(0),[y,w]=x.useState({height:0,width:0,left:0});g=g.filter(D=>typeof(D==null?void 0:D.isHide)=="boolean"?!D.isHide:!0);const C=D=>{const _=D.currentTarget,F=document.createElement("span"),$=Math.max(_.clientWidth,_.clientHeight),P=$/2;F.style.width=F.style.height=`${$}px`,F.style.left=`${D.clientX-_.getBoundingClientRect().left-P}px`,F.style.top=`${D.clientY-_.getBoundingClientRect().top-P}px`,F.classList.add(wt.ripple);const k=_.getElementsByClassName(wt.ripple)[0];k&&k.remove(),_.appendChild(F),setTimeout(()=>{F.remove()},500)},E=D=>{typeof h=="function"&&h(D)};return x.useEffect(()=>{function D(){const _=f.current[b],F={left:(_==null?void 0:_.offsetLeft)??0,width:(_==null?void 0:_.clientWidth)??0,height:p.isContainer.includes(s)?(_==null?void 0:_.clientHeight)??0:4};w(F)}return D(),window.addEventListener("resize",D),()=>window.removeEventListener("resize",D)},[b]),x.useEffect(()=>{const D=g.findIndex(_=>_.id===(m==null?void 0:m[n])||_.id===t);if((m!=null&&m[n]||t)&&D>=0){v(D);const _=g==null?void 0:g.find(F=>F.id===(m==null?void 0:m[n]));m!=null&&m[n]&&_&&E(_)}D<0&&E(g[0])},[JSON.stringify(t),JSON.stringify(m==null?void 0:m[n])]),S.jsx("div",{className:`${wt["container-tabs"]} ${a??""}`,children:S.jsxs("div",{className:`${p.tabsVariant[s]}
|
74
74
|
${p.isContainer.includes(s)?p.size[l]:""}
|
75
75
|
${i??""}`,id:e??"1ru-tabs",children:[S.jsx("div",{className:wt["tabs-list"],children:g.map((D,_)=>S.jsx("button",{id:`1ru-tabs-button-${D.id}`,ref:F=>f.current[_]=F,className:`${wt["button-tabs"]} ${p.borderRadius[u]}
|
76
76
|
${o??""} ${b===_?wt.active:""}`,disabled:c,onClick:F=>{p.isContainer.includes(s)||C(F),b!=_&&E(D)},children:D.label},_))}),S.jsx("div",{className:`${wt["tabs-slider"]} ${p.borderRadius[u]}
|
77
77
|
${o??""} ${d?"":wt["disable-transition"]}
|
78
|
-
`,style:{left:y.left,width:y.width,height:y.height,background:((I=r[b])==null?void 0:I.activeColor)??""}})]})})},bI=({children:e,id:t,value:n,selected:r,className:i,isHide:a})=>S.jsx("div",{role:"tabpanel",id:t??`1ru-tabpanel-${n}`,hidden:a??n!==r,className:`${wt["tab-panel"]} ${i??""}`,children:e}),vI="_option_eztw3_62",yI="_active_eztw3_73",cn={"base-pagination":"_base-pagination_eztw3_1","pagination-nude":"_pagination-nude_eztw3_1","pagination-box":"_pagination-box_eztw3_1","pagination-size":"_pagination-size_eztw3_9","navigation-container":"_navigation-container_eztw3_12","button-container":"_button-container_eztw3_17","button-next":"_button-next_eztw3_17","button-prev":"_button-prev_eztw3_17","pagination-active":"_pagination-active_eztw3_30","options-size":"_options-size_eztw3_62",option:vI,active:yI},xI="_selected_1is24_1",CI="_disabled_1is24_19",wI="_valid_1is24_66",DI="_invalid_1is24_72",SI="_error_1is24_103",ge={"selected-calendar":"_selected-calendar_1is24_1","container-calendar":"_container-calendar_1is24_1","month-calendar":"_month-calendar_1is24_1","cell-month":"_cell-month_1is24_1",selected:xI,"year-calendar":"_year-calendar_1is24_2","cell-year":"_cell-year_1is24_2","cell-calendar":"_cell-calendar_1is24_2","active-cell-calendar":"_active-cell-calendar_1is24_2","custom-time-calendar":"_custom-time-calendar_1is24_3","container-cell-time":"_container-cell-time_1is24_3","cell-time":"_cell-time_1is24_3","header-calendar":"_header-calendar_1is24_11","header-button-calendar":"_header-button-calendar_1is24_15",disabled:CI,"days-calendar":"_days-calendar_1is24_26","visible-cell-calendar":"_visible-cell-calendar_1is24_33","header-time":"_header-time_1is24_46","type-time":"_type-time_1is24_51",valid:wI,invalid:DI,"footer-calendar":"_footer-calendar_1is24_91","container-filter-date":"_container-filter-date_1is24_96","button-filter-date":"_button-filter-date_1is24_99",error:SI},Ln=({className:e})=>S.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",className:`1ru-h-4 1ru-w-4 1ru-text-blue-700 ${e??""}`,viewBox:"0 0 512 512",children:S.jsx("path",{d:"M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"})}),g1=({title:e,state:t,type:n,setUpYear:r={startYear:1970,endAfterThisYear:10},setActiveTypeCalendar:i,onChangeYear:a})=>{const o=(l,u)=>{const c=t.focusedDate.set({year:l});u?(i("month"),t.setFocusedDate(c)):!u&&typeof a=="function"&&a(c)},s=(l,u,c)=>Array.from({length:(u-l)/c+1},(d,h)=>l+h*c);return x.useEffect(()=>{const l=document.getElementById(`calendar-year-${t.focusedDate.year}`),u=document.getElementById("wrapper-calendar-year");l&&u&&u.scrollTo({behavior:"instant",top:l.offsetTop-93})},[]),S.jsxs("div",{className:`1ru-w-[296px] ${ge["container-calendar"]}`,children:[S.jsx("div",{className:`${ge["header-calendar"]} 1ru-my-2`,children:S.jsxs("div",{className:`${ge["header-button-calendar"]} ${n.includes("date")||n.includes("month")?"":ge.disabled}`,onClick:()=>{n.includes("date")?i("date"):n.includes("month")&&i("month")},children:[e," ",(n.includes("date")||n.includes("month"))&&S.jsx(Ln,{})]})}),S.jsx("div",{id:"wrapper-calendar-year",className:ge["year-calendar"],children:s(r==null?void 0:r.startYear,new Date().getFullYear()+r.endAfterThisYear,1).map(l=>{var f,g;const u=Number(l),c=t!=null&&t.minValue?u<((f=t==null?void 0:t.minValue)==null?void 0:f.year):!1,d=t!=null&&t.maxValue?u>((g=t==null?void 0:t.maxValue)==null?void 0:g.year):!1,h=c||d;return S.jsx("div",{id:`calendar-year-${l}`,onClick:()=>{h||o(u,n.includes("month"))},className:`${ge["cell-year"]} ${t.focusedDate.year===u&&!h?ge.selected:""} ${t.focusedDate.year!==u&&!h?"hover:1ru-bg-laba-blue-01":""} ${h?"1ru-text-gray-400":"1ru-cursor-pointer"}`,children:l},l)})})]})},ss=(e,t)=>{const n=t-e+1;return Array.from({length:n},(r,i)=>i+e)},EI=({totalData:e,totalPage:t,pageNumber:n,pageSize:r,className:i,id:a,kind:o="box",prevIcon:s,nextIcon:l,onChange:u,optionPageSize:c=[25,50,75,100],offset:d=1.5,zIndex:h,withOptionPageSize:f=!1})=>{const g=x.useRef(null),m={box:cn["pagination-box"],nude:cn["pagination-nude"]},p=1,b=(n-1)*r+1,v=r*n,y=e?`${br(b,"decimal")}-${v>=e?br(e,"decimal"):br(v,"decimal")}`:0,w=x.useMemo(()=>{const E=Math.ceil(e/r);if(p+5>=E)return ss(1,E);const D=Math.max(n-p,1),_=Math.min(n+p,E),F=D>2,$=_<E-2,P=1,
|
79
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cr(e,t){return _I(e)||$I(e,t)||p1(e,t)||RI()}function AI(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function gr(e,t){if(e==null)return{};var n,r,i=AI(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var FI=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function PI(e){var t=e.defaultInputValue,n=t===void 0?"":t,r=e.defaultMenuIsOpen,i=r===void 0?!1:r,a=e.defaultValue,o=a===void 0?null:a,s=e.inputValue,l=e.menuIsOpen,u=e.onChange,c=e.onInputChange,d=e.onMenuClose,h=e.onMenuOpen,f=e.value,g=gr(e,FI),m=x.useState(s!==void 0?s:n),p=cr(m,2),b=p[0],v=p[1],y=x.useState(l!==void 0?l:i),w=cr(y,2),C=w[0],E=w[1],I=x.useState(f!==void 0?f:o),D=cr(I,2),_=D[0],F=D[1],$=x.useCallback(function(O,H){typeof u=="function"&&u(O,H),F(O)},[u]),P=x.useCallback(function(O,H){var L;typeof c=="function"&&(L=c(O,H)),v(L!==void 0?L:O)},[c]),
|
78
|
+
`,style:{left:y.left,width:y.width,height:y.height,background:((I=r[b])==null?void 0:I.activeColor)??""}})]})})},bI=({children:e,id:t,value:n,selected:r,className:i,isHide:a})=>S.jsx("div",{role:"tabpanel",id:t??`1ru-tabpanel-${n}`,hidden:a??n!==r,className:`${wt["tab-panel"]} ${i??""}`,children:e}),vI="_option_eztw3_62",yI="_active_eztw3_73",cn={"base-pagination":"_base-pagination_eztw3_1","pagination-nude":"_pagination-nude_eztw3_1","pagination-box":"_pagination-box_eztw3_1","pagination-size":"_pagination-size_eztw3_9","navigation-container":"_navigation-container_eztw3_12","button-container":"_button-container_eztw3_17","button-next":"_button-next_eztw3_17","button-prev":"_button-prev_eztw3_17","pagination-active":"_pagination-active_eztw3_30","options-size":"_options-size_eztw3_62",option:vI,active:yI},xI="_selected_1is24_1",CI="_disabled_1is24_19",wI="_valid_1is24_66",DI="_invalid_1is24_72",SI="_error_1is24_103",ge={"selected-calendar":"_selected-calendar_1is24_1","container-calendar":"_container-calendar_1is24_1","month-calendar":"_month-calendar_1is24_1","cell-month":"_cell-month_1is24_1",selected:xI,"year-calendar":"_year-calendar_1is24_2","cell-year":"_cell-year_1is24_2","cell-calendar":"_cell-calendar_1is24_2","active-cell-calendar":"_active-cell-calendar_1is24_2","custom-time-calendar":"_custom-time-calendar_1is24_3","container-cell-time":"_container-cell-time_1is24_3","cell-time":"_cell-time_1is24_3","header-calendar":"_header-calendar_1is24_11","header-button-calendar":"_header-button-calendar_1is24_15",disabled:CI,"days-calendar":"_days-calendar_1is24_26","visible-cell-calendar":"_visible-cell-calendar_1is24_33","header-time":"_header-time_1is24_46","type-time":"_type-time_1is24_51",valid:wI,invalid:DI,"footer-calendar":"_footer-calendar_1is24_91","container-filter-date":"_container-filter-date_1is24_96","button-filter-date":"_button-filter-date_1is24_99",error:SI},Ln=({className:e})=>S.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",className:`1ru-h-4 1ru-w-4 1ru-text-blue-700 ${e??""}`,viewBox:"0 0 512 512",children:S.jsx("path",{d:"M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"})}),g1=({title:e,state:t,type:n,setUpYear:r={startYear:1970,endAfterThisYear:10},setActiveTypeCalendar:i,onChangeYear:a})=>{const o=(l,u)=>{const c=t.focusedDate.set({year:l});u?(i("month"),t.setFocusedDate(c)):!u&&typeof a=="function"&&a(c)},s=(l,u,c)=>Array.from({length:(u-l)/c+1},(d,h)=>l+h*c);return x.useEffect(()=>{const l=document.getElementById(`calendar-year-${t.focusedDate.year}`),u=document.getElementById("wrapper-calendar-year");l&&u&&u.scrollTo({behavior:"instant",top:l.offsetTop-93})},[]),S.jsxs("div",{className:`1ru-w-[296px] ${ge["container-calendar"]}`,children:[S.jsx("div",{className:`${ge["header-calendar"]} 1ru-my-2`,children:S.jsxs("div",{className:`${ge["header-button-calendar"]} ${n.includes("date")||n.includes("month")?"":ge.disabled}`,onClick:()=>{n.includes("date")?i("date"):n.includes("month")&&i("month")},children:[e," ",(n.includes("date")||n.includes("month"))&&S.jsx(Ln,{})]})}),S.jsx("div",{id:"wrapper-calendar-year",className:ge["year-calendar"],children:s(r==null?void 0:r.startYear,new Date().getFullYear()+r.endAfterThisYear,1).map(l=>{var f,g;const u=Number(l),c=t!=null&&t.minValue?u<((f=t==null?void 0:t.minValue)==null?void 0:f.year):!1,d=t!=null&&t.maxValue?u>((g=t==null?void 0:t.maxValue)==null?void 0:g.year):!1,h=c||d;return S.jsx("div",{id:`calendar-year-${l}`,onClick:()=>{h||o(u,n.includes("month"))},className:`${ge["cell-year"]} ${t.focusedDate.year===u&&!h?ge.selected:""} ${t.focusedDate.year!==u&&!h?"hover:1ru-bg-laba-blue-01":""} ${h?"1ru-text-gray-400":"1ru-cursor-pointer"}`,children:l},l)})})]})},ss=(e,t)=>{const n=t-e+1;return Array.from({length:n},(r,i)=>i+e)},EI=({totalData:e,totalPage:t,pageNumber:n,pageSize:r,className:i,id:a,kind:o="box",prevIcon:s,nextIcon:l,onChange:u,optionPageSize:c=[25,50,75,100],offset:d=1.5,zIndex:h,withOptionPageSize:f=!1})=>{const g=x.useRef(null),m={box:cn["pagination-box"],nude:cn["pagination-nude"]},p=1,b=(n-1)*r+1,v=r*n,y=e?`${br(b,"decimal")}-${v>=e?br(e,"decimal"):br(v,"decimal")}`:0,w=x.useMemo(()=>{const E=Math.ceil(e/r);if(p+5>=E)return ss(1,E);const D=Math.max(n-p,1),_=Math.min(n+p,E),F=D>2,$=_<E-2,P=1,k=E;if(!F&&$){const A=3+2*p;return[...ss(1,A),"...",E]}if(F&&!$){const A=3+2*p,B=ss(E-A+1,E);return[P,"...",...B]}if(F&&$){const A=ss(D,_);return[P,"...",...A,"...",k]}},[e,r,p,n]),C=E=>{typeof u=="function"&&u(E)};return S.jsxs(S.Fragment,{children:[S.jsxs("div",{id:a??"1ru-pagination",className:`${m[o]} ${i}`,children:[S.jsxs("div",{className:cn["pagination-size"],children:[S.jsx("span",{children:"Baris per halaman:"}),f&&S.jsx(Hn,{variants:"ghost-blue-gray-100-bg_white",size:"xs",endIcon:S.jsx(Ln,{className:"!1ru-text-gray-500 !1ru-w-[14px] !1ru-h-[14px] 1ru-mx-0.5"}),className:"!1ru-rounded-md !1ru-min-w-[60px] 1ru-justify-between",onClick:E=>{var I;return(I=g.current)==null?void 0:I.handlerShow(E)},children:br(r,"decimal")}),S.jsxs("span",{children:[y," dari ",br(e,"decimal")]})]}),S.jsxs("div",{className:cn["navigation-container"],children:[S.jsx("button",{id:"1ru-pagination-button-prev",className:`${cn["button-prev"]}`,disabled:n===1,onClick:()=>C({pageSize:r,totalData:e,totalPage:t,pageNumber:n-1}),children:typeof s=="function"||x.isValidElement(s)?x.isValidElement(s)?s:s():S.jsx(Ln,{className:"1ru-rotate-90 !1ru-text-gray-500 !1ru-w-[14px] !1ru-h-[14px]"})}),(w??[]).map((E,I)=>typeof E!="number"?S.jsx("button",{className:cn["button-container"],disabled:!0,children:E},I):S.jsx("button",{id:`1ru-pagination-button-${E}`,className:`${E===n?cn["pagination-active"]:""} ${cn["button-container"]}`,disabled:E===n,onClick:()=>C({pageSize:r,totalData:e,totalPage:t,pageNumber:E}),children:br(E,"decimal")},I)),S.jsx("button",{id:"1ru-pagination-button-next",className:`${cn["button-next"]}`,disabled:n===t||!t,onClick:()=>C({pageSize:r,totalData:e,totalPage:t,pageNumber:n+1}),children:typeof l=="function"||x.isValidElement(l)?x.isValidElement(l)?l:l():S.jsx(Ln,{className:"-1ru-rotate-90 !1ru-text-gray-500 !1ru-w-[14px] !1ru-h-[14px]"})})]})]}),S.jsx(Ci,{floatingOptions:{placement:"bottom-end"},ref:g,className:cn["options-size"],offset:d,zIndex:h,children:c.map((E,I)=>S.jsx("p",{className:`${cn.option} ${E===r?cn.active:""}`,onClick:()=>{var D;C({totalData:e,totalPage:t,pageSize:E,pageNumber:1}),(D=g.current)==null||D.setShow(!1)},children:br(E,"decimal")},I))})]})};function hi(e){"@babel/helpers - typeof";return hi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hi(e)}function II(e,t){if(hi(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(hi(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function m1(e){var t=II(e,"string");return hi(t)=="symbol"?t:t+""}function Fa(e,t,n){return(t=m1(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ig(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ce(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ig(Object(n),!0).forEach(function(r){Fa(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ig(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function _I(e){if(Array.isArray(e))return e}function $I(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function zc(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function p1(e,t){if(e){if(typeof e=="string")return zc(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?zc(e,t):void 0}}function RI(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
79
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cr(e,t){return _I(e)||$I(e,t)||p1(e,t)||RI()}function AI(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function gr(e,t){if(e==null)return{};var n,r,i=AI(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var FI=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function PI(e){var t=e.defaultInputValue,n=t===void 0?"":t,r=e.defaultMenuIsOpen,i=r===void 0?!1:r,a=e.defaultValue,o=a===void 0?null:a,s=e.inputValue,l=e.menuIsOpen,u=e.onChange,c=e.onInputChange,d=e.onMenuClose,h=e.onMenuOpen,f=e.value,g=gr(e,FI),m=x.useState(s!==void 0?s:n),p=cr(m,2),b=p[0],v=p[1],y=x.useState(l!==void 0?l:i),w=cr(y,2),C=w[0],E=w[1],I=x.useState(f!==void 0?f:o),D=cr(I,2),_=D[0],F=D[1],$=x.useCallback(function(O,H){typeof u=="function"&&u(O,H),F(O)},[u]),P=x.useCallback(function(O,H){var L;typeof c=="function"&&(L=c(O,H)),v(L!==void 0?L:O)},[c]),k=x.useCallback(function(){typeof h=="function"&&h(),E(!0)},[h]),A=x.useCallback(function(){typeof d=="function"&&d(),E(!1)},[d]),B=s!==void 0?s:b,T=l!==void 0?l:C,R=f!==void 0?f:_;return ce(ce({},g),{},{inputValue:B,menuIsOpen:T,onChange:$,onInputChange:P,onMenuClose:A,onMenuOpen:k,value:R})}function de(){return de=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},de.apply(null,arguments)}function TI(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _g(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,m1(r.key),r)}}function kI(e,t,n){return t&&_g(e.prototype,t),n&&_g(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Gc(e,t){return Gc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Gc(e,t)}function MI(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Gc(e,t)}function xl(e){return xl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},xl(e)}function b1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(b1=function(){return!!e})()}function BI(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function VI(e,t){if(t&&(hi(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return BI(e)}function OI(e){var t=b1();return function(){var n,r=xl(e);if(t){var i=xl(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return VI(this,n)}}function NI(e){if(Array.isArray(e))return zc(e)}function LI(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function jI(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
80
80
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mf(e){return NI(e)||LI(e)||p1(e)||jI()}function HI(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function WI(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var zI=function(){function e(n){var r=this;this._insertTag=function(i){var a;r.tags.length===0?r.insertionPoint?a=r.insertionPoint.nextSibling:r.prepend?a=r.container.firstChild:a=r.before:a=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(i,a),r.tags.push(i)},this.isSpeedy=n.speedy===void 0?process.env.NODE_ENV==="production":n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(WI(this));var i=this.tags[this.tags.length-1];if(process.env.NODE_ENV!=="production"){var a=r.charCodeAt(0)===64&&r.charCodeAt(1)===105;a&&this._alreadyInsertedOrderInsensitiveRule&&console.error(`You're attempting to insert the following rule:
|
81
81
|
`+r+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!a}if(this.isSpeedy){var o=HI(i);try{o.insertRule(r,o.cssRules.length)}catch(s){process.env.NODE_ENV!=="production"&&!/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(r)&&console.error('There was a problem inserting the following rule: "'+r+'"',s)}}else i.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){return r.parentNode&&r.parentNode.removeChild(r)}),this.tags=[],this.ctr=0,process.env.NODE_ENV!=="production"&&(this._alreadyInsertedOrderInsensitiveRule=!1)},e}(),It="-ms-",Cl="-moz-",Fe="-webkit-",pf="comm",bf="rule",vf="decl",GI="@import",v1="@keyframes",ZI="@layer",XI=Math.abs,su=String.fromCharCode,YI=Object.assign;function UI(e,t){return Dt(e,0)^45?(((t<<2^Dt(e,0))<<2^Dt(e,1))<<2^Dt(e,2))<<2^Dt(e,3):0}function y1(e){return e.trim()}function JI(e,t){return(e=t.exec(e))?e[0]:e}function Pe(e,t,n){return e.replace(t,n)}function Zc(e,t){return e.indexOf(t)}function Dt(e,t){return e.charCodeAt(t)|0}function ho(e,t,n){return e.slice(t,n)}function Vn(e){return e.length}function yf(e){return e.length}function ls(e,t){return t.push(e),e}function KI(e,t){return e.map(t).join("")}var lu=1,oa=1,x1=0,Zt=0,gt=0,ma="";function uu(e,t,n,r,i,a,o){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:lu,column:oa,length:o,return:""}}function xa(e,t){return YI(uu("",null,null,"",null,null,0),e,{length:-e.length},t)}function QI(){return gt}function qI(){return gt=Zt>0?Dt(ma,--Zt):0,oa--,gt===10&&(oa=1,lu--),gt}function an(){return gt=Zt<x1?Dt(ma,Zt++):0,oa++,gt===10&&(oa=1,lu++),gt}function jn(){return Dt(ma,Zt)}function Ws(){return Zt}function Ho(e,t){return ho(ma,e,t)}function go(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function C1(e){return lu=oa=1,x1=Vn(ma=e),Zt=0,[]}function w1(e){return ma="",e}function zs(e){return y1(Ho(Zt-1,Xc(e===91?e+2:e===40?e+1:e)))}function e_(e){for(;(gt=jn())&><33;)an();return go(e)>2||go(gt)>3?"":" "}function t_(e,t){for(;--t&&an()&&!(gt<48||gt>102||gt>57&><65||gt>70&><97););return Ho(e,Ws()+(t<6&&jn()==32&&an()==32))}function Xc(e){for(;an();)switch(gt){case e:return Zt;case 34:case 39:e!==34&&e!==39&&Xc(gt);break;case 40:e===41&&Xc(e);break;case 92:an();break}return Zt}function n_(e,t){for(;an()&&e+gt!==57;)if(e+gt===84&&jn()===47)break;return"/*"+Ho(t,Zt-1)+"*"+su(e===47?e:an())}function r_(e){for(;!go(jn());)an();return Ho(e,Zt)}function i_(e){return w1(Gs("",null,null,null,[""],e=C1(e),0,[0],e))}function Gs(e,t,n,r,i,a,o,s,l){for(var u=0,c=0,d=o,h=0,f=0,g=0,m=1,p=1,b=1,v=0,y="",w=i,C=a,E=r,I=y;p;)switch(g=v,v=an()){case 40:if(g!=108&&Dt(I,d-1)==58){Zc(I+=Pe(zs(v),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:I+=zs(v);break;case 9:case 10:case 13:case 32:I+=e_(g);break;case 92:I+=t_(Ws()-1,7);continue;case 47:switch(jn()){case 42:case 47:ls(a_(n_(an(),Ws()),t,n),l);break;default:I+="/"}break;case 123*m:s[u++]=Vn(I)*b;case 125*m:case 59:case 0:switch(v){case 0:case 125:p=0;case 59+c:b==-1&&(I=Pe(I,/\f/g,"")),f>0&&Vn(I)-d&&ls(f>32?Rg(I+";",r,n,d-1):Rg(Pe(I," ","")+";",r,n,d-2),l);break;case 59:I+=";";default:if(ls(E=$g(I,t,n,u,c,i,s,y,w=[],C=[],d),a),v===123)if(c===0)Gs(I,t,E,E,w,a,d,s,C);else switch(h===99&&Dt(I,3)===110?100:h){case 100:case 108:case 109:case 115:Gs(e,E,E,r&&ls($g(e,E,E,0,0,i,s,y,i,w=[],d),C),i,C,d,s,r?w:C);break;default:Gs(I,E,E,E,[""],C,0,s,C)}}u=c=f=0,m=b=1,y=I="",d=o;break;case 58:d=1+Vn(I),f=g;default:if(m<1){if(v==123)--m;else if(v==125&&m++==0&&qI()==125)continue}switch(I+=su(v),v*m){case 38:b=c>0?1:(I+="\f",-1);break;case 44:s[u++]=(Vn(I)-1)*b,b=1;break;case 64:jn()===45&&(I+=zs(an())),h=jn(),c=d=Vn(y=I+=r_(Ws())),v++;break;case 45:g===45&&Vn(I)==2&&(m=0)}}return a}function $g(e,t,n,r,i,a,o,s,l,u,c){for(var d=i-1,h=i===0?a:[""],f=yf(h),g=0,m=0,p=0;g<r;++g)for(var b=0,v=ho(e,d+1,d=XI(m=o[g])),y=e;b<f;++b)(y=y1(m>0?h[b]+" "+v:Pe(v,/&\f/g,h[b])))&&(l[p++]=y);return uu(e,t,n,i===0?bf:s,l,u,c)}function a_(e,t,n){return uu(e,t,n,pf,su(QI()),ho(e,2,-2),0)}function Rg(e,t,n,r){return uu(e,t,n,vf,ho(e,0,r),ho(e,r+1,-1),r)}function Ji(e,t){for(var n="",r=yf(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function o_(e,t,n,r){switch(e.type){case ZI:if(e.children.length)break;case GI:case vf:return e.return=e.return||e.value;case pf:return"";case v1:return e.return=e.value+"{"+Ji(e.children,r)+"}";case bf:e.value=e.props.join(",")}return Vn(n=Ji(e.children,r))?e.return=e.value+"{"+n+"}":""}function s_(e){var t=yf(e);return function(n,r,i,a){for(var o="",s=0;s<t;s++)o+=e[s](n,r,i,a)||"";return o}}function l_(e){return function(t){t.root||(t=t.return)&&e(t)}}var u_=function(t,n,r){for(var i=0,a=0;i=a,a=jn(),i===38&&a===12&&(n[r]=1),!go(a);)an();return Ho(t,Zt)},c_=function(t,n){var r=-1,i=44;do switch(go(i)){case 0:i===38&&jn()===12&&(n[r]=1),t[r]+=u_(Zt-1,n,r);break;case 2:t[r]+=zs(i);break;case 4:if(i===44){t[++r]=jn()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=su(i)}while(i=an());return t},d_=function(t,n){return w1(c_(C1(t),n))},Ag=new WeakMap,f_=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,i=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!Ag.get(r))&&!i){Ag.set(t,!0);for(var a=[],o=d_(n,a),s=r.props,l=0,u=0;l<o.length;l++)for(var c=0;c<s.length;c++,u++)t.props[u]=a[l]?o[l].replace(/&\f/g,s[c]):s[c]+" "+o[l]}}},h_=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}},g_="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",m_=function(t){return t.type==="comm"&&t.children.indexOf(g_)>-1},p_=function(t){return function(n,r,i){if(!(n.type!=="rule"||t.compat)){var a=n.value.match(/(:first|:nth|:nth-last)-child/g);if(a){for(var o=!!n.parent,s=o?n.parent.children:i,l=s.length-1;l>=0;l--){var u=s[l];if(u.line<n.line)break;if(u.column<n.column){if(m_(u))return;break}}a.forEach(function(c){console.error('The pseudo class "'+c+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+c.split("-child")[0]+'-of-type".')})}}}},D1=function(t){return t.type.charCodeAt(1)===105&&t.type.charCodeAt(0)===64},b_=function(t,n){for(var r=t-1;r>=0;r--)if(!D1(n[r]))return!0;return!1},Fg=function(t){t.type="",t.value="",t.return="",t.children="",t.props=""},v_=function(t,n,r){D1(t)&&(t.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),Fg(t)):b_(n,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),Fg(t)))};function S1(e,t){switch(UI(e,t)){case 5103:return Fe+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Fe+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Fe+e+Cl+e+It+e+e;case 6828:case 4268:return Fe+e+It+e+e;case 6165:return Fe+e+It+"flex-"+e+e;case 5187:return Fe+e+Pe(e,/(\w+).+(:[^]+)/,Fe+"box-$1$2"+It+"flex-$1$2")+e;case 5443:return Fe+e+It+"flex-item-"+Pe(e,/flex-|-self/,"")+e;case 4675:return Fe+e+It+"flex-line-pack"+Pe(e,/align-content|flex-|-self/,"")+e;case 5548:return Fe+e+It+Pe(e,"shrink","negative")+e;case 5292:return Fe+e+It+Pe(e,"basis","preferred-size")+e;case 6060:return Fe+"box-"+Pe(e,"-grow","")+Fe+e+It+Pe(e,"grow","positive")+e;case 4554:return Fe+Pe(e,/([^-])(transform)/g,"$1"+Fe+"$2")+e;case 6187:return Pe(Pe(Pe(e,/(zoom-|grab)/,Fe+"$1"),/(image-set)/,Fe+"$1"),e,"")+e;case 5495:case 3959:return Pe(e,/(image-set\([^]*)/,Fe+"$1$`$1");case 4968:return Pe(Pe(e,/(.+:)(flex-)?(.*)/,Fe+"box-pack:$3"+It+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Fe+e+e;case 4095:case 3583:case 4068:case 2532:return Pe(e,/(.+)-inline(.+)/,Fe+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Vn(e)-1-t>6)switch(Dt(e,t+1)){case 109:if(Dt(e,t+4)!==45)break;case 102:return Pe(e,/(.+:)(.+)-([^]+)/,"$1"+Fe+"$2-$3$1"+Cl+(Dt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Zc(e,"stretch")?S1(Pe(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Dt(e,t+1)!==115)break;case 6444:switch(Dt(e,Vn(e)-3-(~Zc(e,"!important")&&10))){case 107:return Pe(e,":",":"+Fe)+e;case 101:return Pe(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Fe+(Dt(e,14)===45?"inline-":"")+"box$3$1"+Fe+"$2$3$1"+It+"$2box$3")+e}break;case 5936:switch(Dt(e,t+11)){case 114:return Fe+e+It+Pe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Fe+e+It+Pe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Fe+e+It+Pe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Fe+e+It+e+e}return e}var y_=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case vf:t.return=S1(t.value,t.length);break;case v1:return Ji([xa(t,{value:Pe(t.value,"@","@"+Fe)})],i);case bf:if(t.length)return KI(t.props,function(a){switch(JI(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ji([xa(t,{props:[Pe(a,/:(read-\w+)/,":"+Cl+"$1")]})],i);case"::placeholder":return Ji([xa(t,{props:[Pe(a,/:(plac\w+)/,":"+Fe+"input-$1")]}),xa(t,{props:[Pe(a,/:(plac\w+)/,":"+Cl+"$1")]}),xa(t,{props:[Pe(a,/:(plac\w+)/,It+"input-$1")]})],i)}return""})}},x_=[y_],C_=function(t){var n=t.key;if(process.env.NODE_ENV!=="production"&&!n)throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.
|
82
82
|
If multiple caches share the same key they might "fight" for each other's style elements.`);if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(m){var p=m.getAttribute("data-emotion");p.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var i=t.stylisPlugins||x_;if(process.env.NODE_ENV!=="production"&&/[^a-z-]/.test(n))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+n+'" was passed');var a={},o,s=[];o=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(m){for(var p=m.getAttribute("data-emotion").split(" "),b=1;b<p.length;b++)a[p[b]]=!0;s.push(m)});var l,u=[f_,h_];process.env.NODE_ENV!=="production"&&u.push(p_({get compat(){return g.compat}}),v_);{var c,d=[o_,process.env.NODE_ENV!=="production"?function(m){m.root||(m.return?c.insert(m.return):m.value&&m.type!==pf&&c.insert(m.value+"{}"))}:l_(function(m){c.insert(m)})],h=s_(u.concat(i,d)),f=function(p){return Ji(i_(p),h)};l=function(p,b,v,y){c=v,process.env.NODE_ENV!=="production"&&b.map!==void 0&&(c={insert:function(C){v.insert(C+b.map)}}),f(p?p+"{"+b.styles+"}":b.styles),y&&(g.inserted[b.name]=!0)}}var g={key:n,sheet:new zI({key:n,container:o,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:a,registered:{},insert:l};return g.sheet.hydrate(s),g},Yc={exports:{}},Be={};/** @license React v16.13.1
|
@@ -93,19 +93,19 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
93
93
|
*
|
94
94
|
* This source code is licensed under the MIT license found in the
|
95
95
|
* LICENSE file in the root directory of this source tree.
|
96
|
-
*/var Tg;function D_(){return Tg||(Tg=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,f=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,p=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function y(z){return typeof z=="string"||typeof z=="function"||z===r||z===u||z===a||z===i||z===d||z===h||typeof z=="object"&&z!==null&&(z.$$typeof===g||z.$$typeof===f||z.$$typeof===o||z.$$typeof===s||z.$$typeof===c||z.$$typeof===p||z.$$typeof===b||z.$$typeof===v||z.$$typeof===m)}function w(z){if(typeof z=="object"&&z!==null){var Ae=z.$$typeof;switch(Ae){case t:var
|
96
|
+
*/var Tg;function D_(){return Tg||(Tg=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,f=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,p=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function y(z){return typeof z=="string"||typeof z=="function"||z===r||z===u||z===a||z===i||z===d||z===h||typeof z=="object"&&z!==null&&(z.$$typeof===g||z.$$typeof===f||z.$$typeof===o||z.$$typeof===s||z.$$typeof===c||z.$$typeof===p||z.$$typeof===b||z.$$typeof===v||z.$$typeof===m)}function w(z){if(typeof z=="object"&&z!==null){var Ae=z.$$typeof;switch(Ae){case t:var ke=z.type;switch(ke){case l:case u:case r:case a:case i:case d:return ke;default:var Xe=ke&&ke.$$typeof;switch(Xe){case s:case c:case g:case f:case o:return Xe;default:return Ae}}case n:return Ae}}}var C=l,E=u,I=s,D=o,_=t,F=c,$=r,P=g,k=f,A=n,B=a,T=i,R=d,O=!1;function H(z){return O||(O=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),L(z)||w(z)===l}function L(z){return w(z)===u}function Z(z){return w(z)===s}function V(z){return w(z)===o}function W(z){return typeof z=="object"&&z!==null&&z.$$typeof===t}function q(z){return w(z)===c}function Y(z){return w(z)===r}function N(z){return w(z)===g}function G(z){return w(z)===f}function J(z){return w(z)===n}function re(z){return w(z)===a}function fe(z){return w(z)===i}function le(z){return w(z)===d}Ve.AsyncMode=C,Ve.ConcurrentMode=E,Ve.ContextConsumer=I,Ve.ContextProvider=D,Ve.Element=_,Ve.ForwardRef=F,Ve.Fragment=$,Ve.Lazy=P,Ve.Memo=k,Ve.Portal=A,Ve.Profiler=B,Ve.StrictMode=T,Ve.Suspense=R,Ve.isAsyncMode=H,Ve.isConcurrentMode=L,Ve.isContextConsumer=Z,Ve.isContextProvider=V,Ve.isElement=W,Ve.isForwardRef=q,Ve.isFragment=Y,Ve.isLazy=N,Ve.isMemo=G,Ve.isPortal=J,Ve.isProfiler=re,Ve.isStrictMode=fe,Ve.isSuspense=le,Ve.isValidElementType=y,Ve.typeOf=w}()),Ve}process.env.NODE_ENV==="production"?Yc.exports=w_():Yc.exports=D_();var S_=Yc.exports,E1=S_,E_={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},I_={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},I1={};I1[E1.ForwardRef]=E_;I1[E1.Memo]=I_;var __=!0;function _1(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):r+=i+" "}),r}var xf=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||__===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},Cf=function(t,n,r){xf(t,n,r);var i=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var a=n;do t.insert(n===a?"."+i:"",a,t.sheet,!0),a=a.next;while(a!==void 0)}};function $_(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var R_={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function A_(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var kg=`You have illegal escape sequence in your template literal, most likely inside content's property value.
|
97
97
|
Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
|
98
98
|
You can read more about this here:
|
99
|
-
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,F_="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",P_=/[A-Z]|^ms/g,$1=/_EMO_([^_]+?)_([^]*?)_EMO_/g,wf=function(t){return t.charCodeAt(1)===45},
|
99
|
+
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,F_="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",P_=/[A-Z]|^ms/g,$1=/_EMO_([^_]+?)_([^]*?)_EMO_/g,wf=function(t){return t.charCodeAt(1)===45},Mg=function(t){return t!=null&&typeof t!="boolean"},Gu=A_(function(e){return wf(e)?e:e.replace(P_,"-$&").toLowerCase()}),wl=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace($1,function(r,i,a){return Cn={name:i,styles:a,next:Cn},i})}return R_[t]!==1&&!wf(t)&&typeof n=="number"&&n!==0?n+"px":n};if(process.env.NODE_ENV!=="production"){var T_=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,k_=["normal","none","initial","inherit","unset"],M_=wl,B_=/^-ms-/,V_=/-(.)/g,Bg={};wl=function(t,n){if(t==="content"&&(typeof n!="string"||k_.indexOf(n)===-1&&!T_.test(n)&&(n.charAt(0)!==n.charAt(n.length-1)||n.charAt(0)!=='"'&&n.charAt(0)!=="'")))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+n+"\"'`");var r=M_(t,n);return r!==""&&!wf(t)&&t.indexOf("-")!==-1&&Bg[t]===void 0&&(Bg[t]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+t.replace(B_,"ms-").replace(V_,function(i,a){return a.toUpperCase()})+"?")),r}}var R1="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function mo(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0){if(process.env.NODE_ENV!=="production"&&n.toString()==="NO_COMPONENT_SELECTOR")throw new Error(R1);return n}switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return Cn={name:n.name,styles:n.styles,next:Cn},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)Cn={name:r.name,styles:r.styles,next:Cn},r=r.next;var i=n.styles+";";return process.env.NODE_ENV!=="production"&&n.map!==void 0&&(i+=n.map),i}return O_(e,t,n)}case"function":{if(e!==void 0){var a=Cn,o=n(e);return Cn=a,mo(e,t,o)}else process.env.NODE_ENV!=="production"&&console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break}case"string":if(process.env.NODE_ENV!=="production"){var s=[],l=n.replace($1,function(c,d,h){var f="animation"+s.length;return s.push("const "+f+" = keyframes`"+h.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+f+"}"});s.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(s,["`"+l+"`"]).join(`
|
100
100
|
`)+`
|
101
101
|
|
102
102
|
You should wrap it with \`css\` like this:
|
103
103
|
|
104
|
-
`+("css`"+l+"`"))}break}if(t==null)return n;var u=t[n];return u!==void 0?u:n}function O_(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=mo(e,t,n[i])+";";else for(var a in n){var o=n[a];if(typeof o!="object")t!=null&&t[o]!==void 0?r+=a+"{"+t[o]+"}":
|
105
|
-
`),r=0;r<n.length;r++){var i=L_(n[r]);if(i){if(j_.has(i))break;if(/^[A-Z]/.test(i))return H_(i)}}},Uc="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Jc="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",z_=function(t,n){if(process.env.NODE_ENV!=="production"&&typeof n.css=="string"&&n.css.indexOf(":")!==-1)throw new Error("Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/react' like this: css`"+n.css+"`");var r={};for(var i in n)Df.call(n,i)&&(r[i]=n[i]);if(r[Uc]=t,process.env.NODE_ENV!=="production"&&n.css&&(typeof n.css!="object"||typeof n.css.name!="string"||n.css.name.indexOf("-")===-1)){var a=W_(new Error().stack);a&&(r[Jc]=a)}return r},G_=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return xf(n,r,i),P1(function(){return Cf(n,r,i)}),null},T1=Ef(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var i=e[Uc],a=[r],o="";typeof e.className=="string"?o=_1(t.registered,a,e.className):e.className!=null&&(o=e.className+" ");var s=po(a,void 0,j.useContext(cu));if(process.env.NODE_ENV!=="production"&&s.name.indexOf("-")===-1){var l=e[Jc];l&&(s=po([s,"label:"+l+";"]))}o+=t.key+"-"+s.name;var u={};for(var c in e)Df.call(e,c)&&c!=="css"&&c!==Uc&&(process.env.NODE_ENV==="production"||c!==Jc)&&(u[c]=e[c]);return u.ref=n,u.className=o,j.createElement(j.Fragment,null,j.createElement(G_,{cache:t,serialized:s,isStringTag:typeof i=="string"}),j.createElement(i,u))});process.env.NODE_ENV!=="production"&&(T1.displayName="EmotionCssPropInternal");var Z_=T1,X_={name:"@emotion/react",version:"11.11.4",main:"dist/emotion-react.cjs.js",module:"dist/emotion-react.esm.js",browser:{"./dist/emotion-react.esm.js":"./dist/emotion-react.browser.esm.js"},exports:{".":{module:{worker:"./dist/emotion-react.worker.esm.js",browser:"./dist/emotion-react.browser.esm.js",default:"./dist/emotion-react.esm.js"},import:"./dist/emotion-react.cjs.mjs",default:"./dist/emotion-react.cjs.js"},"./jsx-runtime":{module:{worker:"./jsx-runtime/dist/emotion-react-jsx-runtime.worker.esm.js",browser:"./jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js",default:"./jsx-runtime/dist/emotion-react-jsx-runtime.esm.js"},import:"./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.mjs",default:"./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.js"},"./_isolated-hnrs":{module:{worker:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.worker.esm.js",browser:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js",default:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.esm.js"},import:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.mjs",default:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js"},"./jsx-dev-runtime":{module:{worker:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.worker.esm.js",browser:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.esm.js",default:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.esm.js"},import:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.mjs",default:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.js"},"./package.json":"./package.json","./types/css-prop":"./types/css-prop.d.ts","./macro":{types:{import:"./macro.d.mts",default:"./macro.d.ts"},default:"./macro.js"}},types:"types/index.d.ts",files:["src","dist","jsx-runtime","jsx-dev-runtime","_isolated-hnrs","types/*.d.ts","macro.*"],sideEffects:!1,author:"Emotion Contributors",license:"MIT",scripts:{"test:typescript":"dtslint types"},dependencies:{"@babel/runtime":"^7.18.3","@emotion/babel-plugin":"^11.11.0","@emotion/cache":"^11.11.0","@emotion/serialize":"^1.1.3","@emotion/use-insertion-effect-with-fallbacks":"^1.0.1","@emotion/utils":"^1.2.1","@emotion/weak-memoize":"^0.3.1","hoist-non-react-statics":"^3.3.1"},peerDependencies:{react:">=16.8.0"},peerDependenciesMeta:{"@types/react":{optional:!0}},devDependencies:{"@definitelytyped/dtslint":"0.0.112","@emotion/css":"11.11.2","@emotion/css-prettifier":"1.1.3","@emotion/server":"11.11.0","@emotion/styled":"11.11.0","html-tag-names":"^1.1.2",react:"16.14.0","svg-tag-names":"^1.1.1",typescript:"^4.5.5"},repository:"https://github.com/emotion-js/emotion/tree/main/packages/react",publishConfig:{access:"public"},"umd:main":"dist/emotion-react.umd.min.js",preconstruct:{entrypoints:["./index.js","./jsx-runtime.js","./jsx-dev-runtime.js","./_isolated-hnrs.js"],umdName:"emotionReact",exports:{envConditions:["browser","worker"],extra:{"./types/css-prop":"./types/css-prop.d.ts","./macro":{types:{import:"./macro.d.mts",default:"./macro.d.ts"},default:"./macro.js"}}}}},ue=function(t,n){var r=arguments;if(n==null||!Df.call(n,"css"))return j.createElement.apply(void 0,r);var i=r.length,a=new Array(i);a[0]=Z_,a[1]=z_(t,n);for(var o=2;o<i;o++)a[o]=r[o];return j.createElement.apply(null,a)},Lg=!1,Y_=Ef(function(e,t){process.env.NODE_ENV!=="production"&&!Lg&&(e.className||e.css)&&(console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"),Lg=!0);var n=e.styles,r=po([n],void 0,j.useContext(cu)),i=j.useRef();return Og(function(){var a=t.key+"-global",o=new t.sheet.constructor({key:a,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),s=!1,l=document.querySelector('style[data-emotion="'+a+" "+r.name+'"]');return t.sheet.tags.length&&(o.before=t.sheet.tags[0]),l!==null&&(s=!0,l.setAttribute("data-emotion",a),o.hydrate([l])),i.current=[o,s],function(){o.flush()}},[t]),Og(function(){var a=i.current,o=a[0],s=a[1];if(s){a[1]=!1;return}if(r.next!==void 0&&Cf(t,r.next,!0),o.tags.length){var l=o.tags[o.tags.length-1].nextElementSibling;o.before=l,o.flush()}t.insert("",r,o,!1)},[t,r.name]),null});process.env.NODE_ENV!=="production"&&(Y_.displayName="EmotionGlobal");function If(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return po(t)}var U_=function(){var t=If.apply(void 0,arguments),n="animation-"+t.name;return{name:n,styles:"@keyframes "+n+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},J_=function e(t){for(var n=t.length,r=0,i="";r<n;r++){var a=t[r];if(a!=null){var o=void 0;switch(typeof a){case"boolean":break;case"object":{if(Array.isArray(a))o=e(a);else{process.env.NODE_ENV!=="production"&&a.styles!==void 0&&a.name!==void 0&&console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component."),o="";for(var s in a)a[s]&&s&&(o&&(o+=" "),o+=s)}break}default:o=a}o&&(i&&(i+=" "),i+=o)}}return i};function K_(e,t,n){var r=[],i=_1(e,r,n);return r.length<2?n:i+t(r)}var Q_=function(t){var n=t.cache,r=t.serializedArr;return P1(function(){for(var i=0;i<r.length;i++)Cf(n,r[i],!1)}),null},q_=Ef(function(e,t){var n=!1,r=[],i=function(){if(n&&process.env.NODE_ENV!=="production")throw new Error("css can only be used during render");for(var u=arguments.length,c=new Array(u),d=0;d<u;d++)c[d]=arguments[d];var h=po(c,t.registered);return r.push(h),xf(t,h,!1),t.key+"-"+h.name},a=function(){if(n&&process.env.NODE_ENV!=="production")throw new Error("cx can only be used during render");for(var u=arguments.length,c=new Array(u),d=0;d<u;d++)c[d]=arguments[d];return K_(t.registered,i,J_(c))},o={css:i,cx:a,theme:j.useContext(cu)},s=e.children(o);return n=!0,j.createElement(j.Fragment,null,j.createElement(Q_,{cache:t,serializedArr:r}),s)});process.env.NODE_ENV!=="production"&&(q_.displayName="EmotionClassNames");if(process.env.NODE_ENV!=="production"){var jg=!0,e6=typeof jest<"u"||typeof vi<"u";if(jg&&!e6){var Hg=typeof globalThis<"u"?globalThis:jg?window:global,Wg="__EMOTION_REACT_"+X_.version.split(".")[0]+"__";Hg[Wg]&&console.warn("You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used."),Hg[Wg]=!0}}function t6(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var Kc=x.useLayoutEffect,n6=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Dl=function(){};function r6(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function i6(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var a=[].concat(r);if(t&&e)for(var o in t)t.hasOwnProperty(o)&&t[o]&&a.push("".concat(r6(e,o)));return a.filter(function(s){return s}).map(function(s){return String(s).trim()}).join(" ")}var zg=function(t){return h6(t)?t.filter(Boolean):hi(t)==="object"&&t!==null?[t]:[]},M1=function(t){t.className,t.clearValue,t.cx,t.getStyles,t.getClassNames,t.getValue,t.hasValue,t.isMulti,t.isRtl,t.options,t.selectOption,t.selectProps,t.setValue,t.theme;var n=gr(t,n6);return ce({},n)},st=function(t,n,r){var i=t.cx,a=t.getStyles,o=t.getClassNames,s=t.className;return{css:a(n,t),className:i(r??{},o(n,t),s)}};function du(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function a6(e){return du(e)?window.innerHeight:e.clientHeight}function k1(e){return du(e)?window.pageYOffset:e.scrollTop}function Sl(e,t){if(du(e)){window.scrollTo(0,t);return}e.scrollTop=t}function o6(e){var t=getComputedStyle(e),n=t.position==="absolute",r=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),!(n&&t.position==="static")&&r.test(t.overflow+t.overflowY+t.overflowX))return i;return document.documentElement}function s6(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function us(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Dl,i=k1(e),a=t-i,o=10,s=0;function l(){s+=o;var u=s6(s,i,a,n);Sl(e,u),s<n?window.requestAnimationFrame(l):r(e)}l()}function Gg(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=t.offsetHeight/3;r.bottom+i>n.bottom?Sl(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):r.top-i<n.top&&Sl(e,Math.max(t.offsetTop-i,0))}function l6(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}function Zg(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function u6(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var B1=!1,c6={get passive(){return B1=!0}},cs=typeof window<"u"?window:{};cs.addEventListener&&cs.removeEventListener&&(cs.addEventListener("p",Dl,c6),cs.removeEventListener("p",Dl,!1));var d6=B1;function f6(e){return e!=null}function h6(e){return Array.isArray(e)}function ds(e,t,n){return e?t:n}var g6=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];var a=Object.entries(t).filter(function(o){var s=cr(o,1),l=s[0];return!r.includes(l)});return a.reduce(function(o,s){var l=cr(s,2),u=l[0],c=l[1];return o[u]=c,o},{})},m6=["children","innerProps"],p6=["children","innerProps"];function b6(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,i=e.placement,a=e.shouldScroll,o=e.isFixedPosition,s=e.controlHeight,l=o6(n),u={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return u;var c=l.getBoundingClientRect(),d=c.height,h=n.getBoundingClientRect(),f=h.bottom,g=h.height,m=h.top,p=n.offsetParent.getBoundingClientRect(),b=p.top,v=o?window.innerHeight:a6(l),y=k1(l),w=parseInt(getComputedStyle(n).marginBottom,10),C=parseInt(getComputedStyle(n).marginTop,10),E=b-C,I=v-m,D=E+y,_=d-y-m,F=f-v+y+w,$=y+m-C,P=160;switch(i){case"auto":case"bottom":if(I>=g)return{placement:"bottom",maxHeight:t};if(_>=g&&!o)return a&&us(l,F,P),{placement:"bottom",maxHeight:t};if(!o&&_>=r||o&&I>=r){a&&us(l,F,P);var M=o?I-w:_-w;return{placement:"bottom",maxHeight:M}}if(i==="auto"||o){var A=t,B=o?E:D;return B>=r&&(A=Math.min(B-w-s,t)),{placement:"top",maxHeight:A}}if(i==="bottom")return a&&Sl(l,F),{placement:"bottom",maxHeight:t};break;case"top":if(E>=g)return{placement:"top",maxHeight:t};if(D>=g&&!o)return a&&us(l,$,P),{placement:"top",maxHeight:t};if(!o&&D>=r||o&&E>=r){var T=t;return(!o&&D>=r||o&&E>=r)&&(T=o?E-C:D-C),a&&us(l,$,P),{placement:"top",maxHeight:T}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return u}function v6(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var V1=function(t){return t==="auto"?"bottom":t},y6=function(t,n){var r,i=t.placement,a=t.theme,o=a.borderRadius,s=a.spacing,l=a.colors;return ce((r={label:"menu"},Fa(r,v6(i),"100%"),Fa(r,"position","absolute"),Fa(r,"width","100%"),Fa(r,"zIndex",1),r),n?{}:{backgroundColor:l.neutral0,borderRadius:o,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:s.menuGutter,marginTop:s.menuGutter})},O1=x.createContext(null),x6=function(t){var n=t.children,r=t.minMenuHeight,i=t.maxMenuHeight,a=t.menuPlacement,o=t.menuPosition,s=t.menuShouldScrollIntoView,l=t.theme,u=x.useContext(O1)||{},c=u.setPortalPlacement,d=x.useRef(null),h=x.useState(i),f=cr(h,2),g=f[0],m=f[1],p=x.useState(null),b=cr(p,2),v=b[0],y=b[1],w=l.spacing.controlHeight;return Kc(function(){var C=d.current;if(C){var E=o==="fixed",I=s&&!E,D=b6({maxHeight:i,menuEl:C,minHeight:r,placement:a,shouldScroll:I,isFixedPosition:E,controlHeight:w});m(D.maxHeight),y(D.placement),c==null||c(D.placement)}},[i,a,o,s,r,c,w]),n({ref:d,placerProps:ce(ce({},t),{},{placement:v||V1(a),maxHeight:g})})},C6=function(t){var n=t.children,r=t.innerRef,i=t.innerProps;return ue("div",de({},st(t,"menu",{menu:!0}),{ref:r},i),n)},w6=C6,D6=function(t,n){var r=t.maxHeight,i=t.theme.spacing.baseUnit;return ce({maxHeight:r,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},n?{}:{paddingBottom:i,paddingTop:i})},S6=function(t){var n=t.children,r=t.innerProps,i=t.innerRef,a=t.isMulti;return ue("div",de({},st(t,"menuList",{"menu-list":!0,"menu-list--is-multi":a}),{ref:i},r),n)},N1=function(t,n){var r=t.theme,i=r.spacing.baseUnit,a=r.colors;return ce({textAlign:"center"},n?{}:{color:a.neutral40,padding:"".concat(i*2,"px ").concat(i*3,"px")})},E6=N1,I6=N1,_6=function(t){var n=t.children,r=n===void 0?"No options":n,i=t.innerProps,a=gr(t,m6);return ue("div",de({},st(ce(ce({},a),{},{children:r,innerProps:i}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),i),r)},$6=function(t){var n=t.children,r=n===void 0?"Loading...":n,i=t.innerProps,a=gr(t,p6);return ue("div",de({},st(ce(ce({},a),{},{children:r,innerProps:i}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),i),r)},R6=function(t){var n=t.rect,r=t.offset,i=t.position;return{left:n.left,position:i,top:r,width:n.width,zIndex:1}},A6=function(t){var n=t.appendTo,r=t.children,i=t.controlElement,a=t.innerProps,o=t.menuPlacement,s=t.menuPosition,l=x.useRef(null),u=x.useRef(null),c=x.useState(V1(o)),d=cr(c,2),h=d[0],f=d[1],g=x.useMemo(function(){return{setPortalPlacement:f}},[]),m=x.useState(null),p=cr(m,2),b=p[0],v=p[1],y=x.useCallback(function(){if(i){var I=l6(i),D=s==="fixed"?0:window.pageYOffset,_=I[h]+D;(_!==(b==null?void 0:b.offset)||I.left!==(b==null?void 0:b.rect.left)||I.width!==(b==null?void 0:b.rect.width))&&v({offset:_,rect:I})}},[i,s,h,b==null?void 0:b.offset,b==null?void 0:b.rect.left,b==null?void 0:b.rect.width]);Kc(function(){y()},[y]);var w=x.useCallback(function(){typeof u.current=="function"&&(u.current(),u.current=null),i&&l.current&&(u.current=U0(i,l.current,y,{elementResize:"ResizeObserver"in window}))},[i,y]);Kc(function(){w()},[w]);var C=x.useCallback(function(I){l.current=I,w()},[w]);if(!n&&s!=="fixed"||!b)return null;var E=ue("div",de({ref:C},st(ce(ce({},t),{},{offset:b.offset,position:s,rect:b.rect}),"menuPortal",{"menu-portal":!0}),a),r);return ue(O1.Provider,{value:g},n?To.createPortal(E,n):E)},F6=function(t){var n=t.isDisabled,r=t.isRtl;return{label:"container",direction:r?"rtl":void 0,pointerEvents:n?"none":void 0,position:"relative"}},P6=function(t){var n=t.children,r=t.innerProps,i=t.isDisabled,a=t.isRtl;return ue("div",de({},st(t,"container",{"--is-disabled":i,"--is-rtl":a}),r),n)},T6=function(t,n){var r=t.theme.spacing,i=t.isMulti,a=t.hasValue,o=t.selectProps.controlShouldRenderValue;return ce({alignItems:"center",display:i&&a&&o?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},n?{}:{padding:"".concat(r.baseUnit/2,"px ").concat(r.baseUnit*2,"px")})},M6=function(t){var n=t.children,r=t.innerProps,i=t.isMulti,a=t.hasValue;return ue("div",de({},st(t,"valueContainer",{"value-container":!0,"value-container--is-multi":i,"value-container--has-value":a}),r),n)},k6=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},B6=function(t){var n=t.children,r=t.innerProps;return ue("div",de({},st(t,"indicatorsContainer",{indicators:!0}),r),n)},Xg,V6=["size"],O6=["innerProps","isRtl","size"];function N6(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var L6=process.env.NODE_ENV==="production"?{name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"}:{name:"tj5bde-Svg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVhY3ROb2RlIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4LCBrZXlmcmFtZXMgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7XG4gIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lLFxuICBDU1NPYmplY3RXaXRoTGFiZWwsXG4gIEdyb3VwQmFzZSxcbn0gZnJvbSAnLi4vdHlwZXMnO1xuaW1wb3J0IHsgZ2V0U3R5bGVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEljb25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgU3ZnID0gKHtcbiAgc2l6ZSxcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU6IG51bWJlciB9KSA9PiAoXG4gIDxzdmdcbiAgICBoZWlnaHQ9e3NpemV9XG4gICAgd2lkdGg9e3NpemV9XG4gICAgdmlld0JveD1cIjAgMCAyMCAyMFwiXG4gICAgYXJpYS1oaWRkZW49XCJ0cnVlXCJcbiAgICBmb2N1c2FibGU9XCJmYWxzZVwiXG4gICAgY3NzPXt7XG4gICAgICBkaXNwbGF5OiAnaW5saW5lLWJsb2NrJyxcbiAgICAgIGZpbGw6ICdjdXJyZW50Q29sb3InLFxuICAgICAgbGluZUhlaWdodDogMSxcbiAgICAgIHN0cm9rZTogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBzdHJva2VXaWR0aDogMCxcbiAgICB9fVxuICAgIHsuLi5wcm9wc31cbiAgLz5cbik7XG5cbmV4cG9ydCB0eXBlIENyb3NzSWNvblByb3BzID0gSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZT86IG51bWJlciB9O1xuZXhwb3J0IGNvbnN0IENyb3NzSWNvbiA9IChwcm9wczogQ3Jvc3NJY29uUHJvcHMpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTE0LjM0OCAxNC44NDljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDBsLTIuNjUxLTMuMDMwLTIuNjUxIDMuMDI5Yy0wLjQ2OSAwLjQ2OS0xLjIyOSAwLjQ2OS0xLjY5NyAwLTAuNDY5LTAuNDY5LTAuNDY5LTEuMjI5IDAtMS42OTdsMi43NTgtMy4xNS0yLjc1OS0zLjE1MmMtMC40NjktMC40NjktMC40NjktMS4yMjggMC0xLjY5N3MxLjIyOC0wLjQ2OSAxLjY5NyAwbDIuNjUyIDMuMDMxIDIuNjUxLTMuMDMxYzAuNDY5LTAuNDY5IDEuMjI4LTAuNDY5IDEuNjk3IDBzMC40NjkgMS4yMjkgMCAxLjY5N2wtMi43NTggMy4xNTIgMi43NTggMy4xNWMwLjQ2OSAwLjQ2OSAwLjQ2OSAxLjIyOSAwIDEuNjk4elwiIC8+XG4gIDwvU3ZnPlxuKTtcbmV4cG9ydCB0eXBlIERvd25DaGV2cm9uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgRG93bkNoZXZyb24gPSAocHJvcHM6IERvd25DaGV2cm9uUHJvcHMpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTQuNTE2IDcuNTQ4YzAuNDM2LTAuNDQ2IDEuMDQzLTAuNDgxIDEuNTc2IDBsMy45MDggMy43NDcgMy45MDgtMy43NDdjMC41MzMtMC40ODEgMS4xNDEtMC40NDYgMS41NzQgMCAwLjQzNiAwLjQ0NSAwLjQwOCAxLjE5NyAwIDEuNjE1LTAuNDA2IDAuNDE4LTQuNjk1IDQuNTAyLTQuNjk1IDQuNTAyLTAuMjE3IDAuMjIzLTAuNTAyIDAuMzM1LTAuNzg3IDAuMzM1cy0wLjU3LTAuMTEyLTAuNzg5LTAuMzM1YzAgMC00LjI4Ny00LjA4NC00LjY5NS00LjUwMnMtMC40MzYtMS4xNyAwLTEuNjE1elwiIC8+XG4gIDwvU3ZnPlxuKTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEJ1dHRvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xufVxuXG5jb25zdCBiYXNlQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNGb2N1c2VkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTpcbiAgICB8IERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbiAgICB8IENsZWFySW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JDb250YWluZXInLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICAgICc6aG92ZXInOiB7XG4gICAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsODAgOiBjb2xvcnMubmV1dHJhbDQwLFxuICAgICAgICB9LFxuICAgICAgfSksXG59KTtcblxuZXhwb3J0IGNvbnN0IGRyb3Bkb3duSW5kaWNhdG9yQ1NTID0gYmFzZUNTUztcbmV4cG9ydCBjb25zdCBEcm9wZG93bkluZGljYXRvciA9IDxcbiAgT3B0aW9uLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPlxuPihcbiAgcHJvcHM6IERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBpbm5lclByb3BzIH0gPSBwcm9wcztcbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uZ2V0U3R5bGVQcm9wcyhwcm9wcywgJ2Ryb3Bkb3duSW5kaWNhdG9yJywge1xuICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICdkcm9wZG93bi1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgfSl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICB7Y2hpbGRyZW4gfHwgPERvd25DaGV2cm9uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuZXhwb3J0IGludGVyZmFjZSBDbGVhckluZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFRoZSBjaGlsZHJlbiB0byBiZSByZW5kZXJlZCBpbnNpZGUgdGhlIGluZGljYXRvci4gKi9cbiAgY2hpbGRyZW4/OiBSZWFjdE5vZGU7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydkaXYnXTtcbiAgLyoqIFRoZSBmb2N1c2VkIHN0YXRlIG9mIHRoZSBzZWxlY3QuICovXG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbn1cblxuZXhwb3J0IGNvbnN0IGNsZWFySW5kaWNhdG9yQ1NTID0gYmFzZUNTUztcbmV4cG9ydCBjb25zdCBDbGVhckluZGljYXRvciA9IDxcbiAgT3B0aW9uLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPlxuPihcbiAgcHJvcHM6IENsZWFySW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBpbm5lclByb3BzIH0gPSBwcm9wcztcbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uZ2V0U3R5bGVQcm9wcyhwcm9wcywgJ2NsZWFySW5kaWNhdG9yJywge1xuICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICdjbGVhci1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgfSl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICB7Y2hpbGRyZW4gfHwgPENyb3NzSWNvbiAvPn1cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG5cbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuLy8gU2VwYXJhdG9yXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuZXhwb3J0IGludGVyZmFjZSBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbiAgaW5uZXJQcm9wcz86IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3BhbiddO1xufVxuXG5leHBvcnQgY29uc3QgaW5kaWNhdG9yU2VwYXJhdG9yQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNEaXNhYmxlZCxcbiAgICB0aGVtZToge1xuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgICAgY29sb3JzLFxuICAgIH0sXG4gIH06IEluZGljYXRvclNlcGFyYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+LFxuICB1bnN0eWxlZDogYm9vbGVhblxuKTogQ1NTT2JqZWN0V2l0aExhYmVsID0+ICh7XG4gIGxhYmVsOiAnaW5kaWNhdG9yU2VwYXJhdG9yJyxcbiAgYWxpZ25TZWxmOiAnc3RyZXRjaCcsXG4gIHdpZHRoOiAxLFxuICAuLi4odW5zdHlsZWRcbiAgICA/IHt9XG4gICAgOiB7XG4gICAgICAgIGJhY2tncm91bmRDb2xvcjogaXNEaXNhYmxlZCA/IGNvbG9ycy5uZXV0cmFsMTAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBtYXJnaW5Cb3R0b206IGJhc2VVbml0ICogMixcbiAgICAgICAgbWFyZ2luVG9wOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgSW5kaWNhdG9yU2VwYXJhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxzcGFuXG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnaW5kaWNhdG9yU2VwYXJhdG9yJywge1xuICAgICAgICAnaW5kaWNhdG9yLXNlcGFyYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAvPlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBMb2FkaW5nXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgbG9hZGluZ0RvdEFuaW1hdGlvbnMgPSBrZXlmcmFtZXNgXG4gIDAlLCA4MCUsIDEwMCUgeyBvcGFjaXR5OiAwOyB9XG4gIDQwJSB7IG9wYWNpdHk6IDE7IH1cbmA7XG5cbmV4cG9ydCBjb25zdCBsb2FkaW5nSW5kaWNhdG9yQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNGb2N1c2VkLFxuICAgIHNpemUsXG4gICAgdGhlbWU6IHtcbiAgICAgIGNvbG9ycyxcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICB9LFxuICB9OiBMb2FkaW5nSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdsb2FkaW5nSW5kaWNhdG9yJyxcbiAgZGlzcGxheTogJ2ZsZXgnLFxuICB0cmFuc2l0aW9uOiAnY29sb3IgMTUwbXMnLFxuICBhbGlnblNlbGY6ICdjZW50ZXInLFxuICBmb250U2l6ZTogc2l6ZSxcbiAgbGluZUhlaWdodDogMSxcbiAgbWFyZ2luUmlnaHQ6IHNpemUsXG4gIHRleHRBbGlnbjogJ2NlbnRlcicsXG4gIHZlcnRpY2FsQWxpZ246ICdtaWRkbGUnLFxuICAuLi4odW5zdHlsZWRcbiAgICA/IHt9XG4gICAgOiB7XG4gICAgICAgIGNvbG9yOiBpc0ZvY3VzZWQgPyBjb2xvcnMubmV1dHJhbDYwIDogY29sb3JzLm5ldXRyYWwyMCxcbiAgICAgICAgcGFkZGluZzogYmFzZVVuaXQgKiAyLFxuICAgICAgfSksXG59KTtcblxuaW50ZXJmYWNlIExvYWRpbmdEb3RQcm9wcyB7XG4gIGRlbGF5OiBudW1iZXI7XG4gIG9mZnNldDogYm9vbGVhbjtcbn1cbmNvbnN0IExvYWRpbmdEb3QgPSAoeyBkZWxheSwgb2Zmc2V0IH06IExvYWRpbmdEb3RQcm9wcykgPT4gKFxuICA8c3BhblxuICAgIGNzcz17e1xuICAgICAgYW5pbWF0aW9uOiBgJHtsb2FkaW5nRG90QW5pbWF0aW9uc30gMXMgZWFzZS1pbi1vdXQgJHtkZWxheX1tcyBpbmZpbml0ZTtgLFxuICAgICAgYmFja2dyb3VuZENvbG9yOiAnY3VycmVudENvbG9yJyxcbiAgICAgIGJvcmRlclJhZGl1czogJzFlbScsXG4gICAgICBkaXNwbGF5OiAnaW5saW5lLWJsb2NrJyxcbiAgICAgIG1hcmdpbkxlZnQ6IG9mZnNldCA/ICcxZW0nIDogdW5kZWZpbmVkLFxuICAgICAgaGVpZ2h0OiAnMWVtJyxcbiAgICAgIHZlcnRpY2FsQWxpZ246ICd0b3AnLFxuICAgICAgd2lkdGg6ICcxZW0nLFxuICAgIH19XG4gIC8+XG4pO1xuXG5leHBvcnQgaW50ZXJmYWNlIExvYWRpbmdJbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydkaXYnXTtcbiAgLyoqIFRoZSBmb2N1c2VkIHN0YXRlIG9mIHRoZSBzZWxlY3QuICovXG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgLyoqIFNldCBzaXplIG9mIHRoZSBjb250YWluZXIuICovXG4gIHNpemU6IG51bWJlcjtcbn1cbmV4cG9ydCBjb25zdCBMb2FkaW5nSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KHtcbiAgaW5uZXJQcm9wcyxcbiAgaXNSdGwsXG4gIHNpemUgPSA0LFxuICAuLi5yZXN0UHJvcHNcbn06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPikgPT4ge1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKFxuICAgICAgICB7IC4uLnJlc3RQcm9wcywgaW5uZXJQcm9wcywgaXNSdGwsIHNpemUgfSxcbiAgICAgICAgJ2xvYWRpbmdJbmRpY2F0b3InLFxuICAgICAgICB7XG4gICAgICAgICAgaW5kaWNhdG9yOiB0cnVlLFxuICAgICAgICAgICdsb2FkaW5nLWluZGljYXRvcic6IHRydWUsXG4gICAgICAgIH1cbiAgICAgICl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MH0gb2Zmc2V0PXtpc1J0bH0gLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXsxNjB9IG9mZnNldCAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezMyMH0gb2Zmc2V0PXshaXNSdGx9IC8+XG4gICAgPC9kaXY+XG4gICk7XG59O1xuIl19 */",toString:N6},L1=function(t){var n=t.size,r=gr(t,V6);return ue("svg",de({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:L6},r))},_f=function(t){return ue(L1,de({size:20},t),ue("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},j1=function(t){return ue(L1,de({size:20},t),ue("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},H1=function(t,n){var r=t.isFocused,i=t.theme,a=i.spacing.baseUnit,o=i.colors;return ce({label:"indicatorContainer",display:"flex",transition:"color 150ms"},n?{}:{color:r?o.neutral60:o.neutral20,padding:a*2,":hover":{color:r?o.neutral80:o.neutral40}})},j6=H1,H6=function(t){var n=t.children,r=t.innerProps;return ue("div",de({},st(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),r),n||ue(j1,null))},W6=H1,z6=function(t){var n=t.children,r=t.innerProps;return ue("div",de({},st(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),r),n||ue(_f,null))},G6=function(t,n){var r=t.isDisabled,i=t.theme,a=i.spacing.baseUnit,o=i.colors;return ce({label:"indicatorSeparator",alignSelf:"stretch",width:1},n?{}:{backgroundColor:r?o.neutral10:o.neutral20,marginBottom:a*2,marginTop:a*2})},Z6=function(t){var n=t.innerProps;return ue("span",de({},n,st(t,"indicatorSeparator",{"indicator-separator":!0})))},X6=U_(Xg||(Xg=t6([`
|
104
|
+
`+("css`"+l+"`"))}break}if(t==null)return n;var u=t[n];return u!==void 0?u:n}function O_(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=mo(e,t,n[i])+";";else for(var a in n){var o=n[a];if(typeof o!="object")t!=null&&t[o]!==void 0?r+=a+"{"+t[o]+"}":Mg(o)&&(r+=Gu(a)+":"+wl(a,o)+";");else{if(a==="NO_COMPONENT_SELECTOR"&&process.env.NODE_ENV!=="production")throw new Error(R1);if(Array.isArray(o)&&typeof o[0]=="string"&&(t==null||t[o[0]]===void 0))for(var s=0;s<o.length;s++)Mg(o[s])&&(r+=Gu(a)+":"+wl(a,o[s])+";");else{var l=mo(e,t,o);switch(a){case"animation":case"animationName":{r+=Gu(a)+":"+l+";";break}default:process.env.NODE_ENV!=="production"&&a==="undefined"&&console.error(F_),r+=a+"{"+l+"}"}}}}return r}var Vg=/label:\s*([^\s;\n{]+)\s*(;|$)/g,A1;process.env.NODE_ENV!=="production"&&(A1=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var Cn,po=function(t,n,r){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var i=!0,a="";Cn=void 0;var o=t[0];o==null||o.raw===void 0?(i=!1,a+=mo(r,n,o)):(process.env.NODE_ENV!=="production"&&o[0]===void 0&&console.error(kg),a+=o[0]);for(var s=1;s<t.length;s++)a+=mo(r,n,t[s]),i&&(process.env.NODE_ENV!=="production"&&o[s]===void 0&&console.error(kg),a+=o[s]);var l;process.env.NODE_ENV!=="production"&&(a=a.replace(A1,function(h){return l=h,""})),Vg.lastIndex=0;for(var u="",c;(c=Vg.exec(a))!==null;)u+="-"+c[1];var d=$_(a)+u;return process.env.NODE_ENV!=="production"?{name:d,styles:a,map:l,next:Cn,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}:{name:d,styles:a,next:Cn}},N_=function(t){return t()},F1=j.useInsertionEffect?j.useInsertionEffect:!1,P1=F1||N_,Og=F1||j.useLayoutEffect,Df={}.hasOwnProperty,Sf=j.createContext(typeof HTMLElement<"u"?C_({key:"css"}):null);process.env.NODE_ENV!=="production"&&(Sf.displayName="EmotionCacheContext");Sf.Provider;var Ef=function(t){return x.forwardRef(function(n,r){var i=x.useContext(Sf);return t(n,i,r)})},cu=j.createContext({});process.env.NODE_ENV!=="production"&&(cu.displayName="EmotionThemeContext");var Ng=function(t){var n=t.split(".");return n[n.length-1]},L_=function(t){var n=/^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(t);if(n||(n=/^([A-Za-z0-9$.]+)@/.exec(t),n))return Ng(n[1])},j_=new Set(["renderWithHooks","processChild","finishClassComponent","renderToString"]),H_=function(t){return t.replace(/\$/g,"-")},W_=function(t){if(t)for(var n=t.split(`
|
105
|
+
`),r=0;r<n.length;r++){var i=L_(n[r]);if(i){if(j_.has(i))break;if(/^[A-Z]/.test(i))return H_(i)}}},Uc="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Jc="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",z_=function(t,n){if(process.env.NODE_ENV!=="production"&&typeof n.css=="string"&&n.css.indexOf(":")!==-1)throw new Error("Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/react' like this: css`"+n.css+"`");var r={};for(var i in n)Df.call(n,i)&&(r[i]=n[i]);if(r[Uc]=t,process.env.NODE_ENV!=="production"&&n.css&&(typeof n.css!="object"||typeof n.css.name!="string"||n.css.name.indexOf("-")===-1)){var a=W_(new Error().stack);a&&(r[Jc]=a)}return r},G_=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return xf(n,r,i),P1(function(){return Cf(n,r,i)}),null},T1=Ef(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var i=e[Uc],a=[r],o="";typeof e.className=="string"?o=_1(t.registered,a,e.className):e.className!=null&&(o=e.className+" ");var s=po(a,void 0,j.useContext(cu));if(process.env.NODE_ENV!=="production"&&s.name.indexOf("-")===-1){var l=e[Jc];l&&(s=po([s,"label:"+l+";"]))}o+=t.key+"-"+s.name;var u={};for(var c in e)Df.call(e,c)&&c!=="css"&&c!==Uc&&(process.env.NODE_ENV==="production"||c!==Jc)&&(u[c]=e[c]);return u.ref=n,u.className=o,j.createElement(j.Fragment,null,j.createElement(G_,{cache:t,serialized:s,isStringTag:typeof i=="string"}),j.createElement(i,u))});process.env.NODE_ENV!=="production"&&(T1.displayName="EmotionCssPropInternal");var Z_=T1,X_={name:"@emotion/react",version:"11.11.4",main:"dist/emotion-react.cjs.js",module:"dist/emotion-react.esm.js",browser:{"./dist/emotion-react.esm.js":"./dist/emotion-react.browser.esm.js"},exports:{".":{module:{worker:"./dist/emotion-react.worker.esm.js",browser:"./dist/emotion-react.browser.esm.js",default:"./dist/emotion-react.esm.js"},import:"./dist/emotion-react.cjs.mjs",default:"./dist/emotion-react.cjs.js"},"./jsx-runtime":{module:{worker:"./jsx-runtime/dist/emotion-react-jsx-runtime.worker.esm.js",browser:"./jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js",default:"./jsx-runtime/dist/emotion-react-jsx-runtime.esm.js"},import:"./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.mjs",default:"./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.js"},"./_isolated-hnrs":{module:{worker:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.worker.esm.js",browser:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js",default:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.esm.js"},import:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.mjs",default:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js"},"./jsx-dev-runtime":{module:{worker:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.worker.esm.js",browser:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.esm.js",default:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.esm.js"},import:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.mjs",default:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.js"},"./package.json":"./package.json","./types/css-prop":"./types/css-prop.d.ts","./macro":{types:{import:"./macro.d.mts",default:"./macro.d.ts"},default:"./macro.js"}},types:"types/index.d.ts",files:["src","dist","jsx-runtime","jsx-dev-runtime","_isolated-hnrs","types/*.d.ts","macro.*"],sideEffects:!1,author:"Emotion Contributors",license:"MIT",scripts:{"test:typescript":"dtslint types"},dependencies:{"@babel/runtime":"^7.18.3","@emotion/babel-plugin":"^11.11.0","@emotion/cache":"^11.11.0","@emotion/serialize":"^1.1.3","@emotion/use-insertion-effect-with-fallbacks":"^1.0.1","@emotion/utils":"^1.2.1","@emotion/weak-memoize":"^0.3.1","hoist-non-react-statics":"^3.3.1"},peerDependencies:{react:">=16.8.0"},peerDependenciesMeta:{"@types/react":{optional:!0}},devDependencies:{"@definitelytyped/dtslint":"0.0.112","@emotion/css":"11.11.2","@emotion/css-prettifier":"1.1.3","@emotion/server":"11.11.0","@emotion/styled":"11.11.0","html-tag-names":"^1.1.2",react:"16.14.0","svg-tag-names":"^1.1.1",typescript:"^4.5.5"},repository:"https://github.com/emotion-js/emotion/tree/main/packages/react",publishConfig:{access:"public"},"umd:main":"dist/emotion-react.umd.min.js",preconstruct:{entrypoints:["./index.js","./jsx-runtime.js","./jsx-dev-runtime.js","./_isolated-hnrs.js"],umdName:"emotionReact",exports:{envConditions:["browser","worker"],extra:{"./types/css-prop":"./types/css-prop.d.ts","./macro":{types:{import:"./macro.d.mts",default:"./macro.d.ts"},default:"./macro.js"}}}}},ue=function(t,n){var r=arguments;if(n==null||!Df.call(n,"css"))return j.createElement.apply(void 0,r);var i=r.length,a=new Array(i);a[0]=Z_,a[1]=z_(t,n);for(var o=2;o<i;o++)a[o]=r[o];return j.createElement.apply(null,a)},Lg=!1,Y_=Ef(function(e,t){process.env.NODE_ENV!=="production"&&!Lg&&(e.className||e.css)&&(console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"),Lg=!0);var n=e.styles,r=po([n],void 0,j.useContext(cu)),i=j.useRef();return Og(function(){var a=t.key+"-global",o=new t.sheet.constructor({key:a,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),s=!1,l=document.querySelector('style[data-emotion="'+a+" "+r.name+'"]');return t.sheet.tags.length&&(o.before=t.sheet.tags[0]),l!==null&&(s=!0,l.setAttribute("data-emotion",a),o.hydrate([l])),i.current=[o,s],function(){o.flush()}},[t]),Og(function(){var a=i.current,o=a[0],s=a[1];if(s){a[1]=!1;return}if(r.next!==void 0&&Cf(t,r.next,!0),o.tags.length){var l=o.tags[o.tags.length-1].nextElementSibling;o.before=l,o.flush()}t.insert("",r,o,!1)},[t,r.name]),null});process.env.NODE_ENV!=="production"&&(Y_.displayName="EmotionGlobal");function If(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return po(t)}var U_=function(){var t=If.apply(void 0,arguments),n="animation-"+t.name;return{name:n,styles:"@keyframes "+n+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},J_=function e(t){for(var n=t.length,r=0,i="";r<n;r++){var a=t[r];if(a!=null){var o=void 0;switch(typeof a){case"boolean":break;case"object":{if(Array.isArray(a))o=e(a);else{process.env.NODE_ENV!=="production"&&a.styles!==void 0&&a.name!==void 0&&console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component."),o="";for(var s in a)a[s]&&s&&(o&&(o+=" "),o+=s)}break}default:o=a}o&&(i&&(i+=" "),i+=o)}}return i};function K_(e,t,n){var r=[],i=_1(e,r,n);return r.length<2?n:i+t(r)}var Q_=function(t){var n=t.cache,r=t.serializedArr;return P1(function(){for(var i=0;i<r.length;i++)Cf(n,r[i],!1)}),null},q_=Ef(function(e,t){var n=!1,r=[],i=function(){if(n&&process.env.NODE_ENV!=="production")throw new Error("css can only be used during render");for(var u=arguments.length,c=new Array(u),d=0;d<u;d++)c[d]=arguments[d];var h=po(c,t.registered);return r.push(h),xf(t,h,!1),t.key+"-"+h.name},a=function(){if(n&&process.env.NODE_ENV!=="production")throw new Error("cx can only be used during render");for(var u=arguments.length,c=new Array(u),d=0;d<u;d++)c[d]=arguments[d];return K_(t.registered,i,J_(c))},o={css:i,cx:a,theme:j.useContext(cu)},s=e.children(o);return n=!0,j.createElement(j.Fragment,null,j.createElement(Q_,{cache:t,serializedArr:r}),s)});process.env.NODE_ENV!=="production"&&(q_.displayName="EmotionClassNames");if(process.env.NODE_ENV!=="production"){var jg=!0,e6=typeof jest<"u"||typeof vi<"u";if(jg&&!e6){var Hg=typeof globalThis<"u"?globalThis:jg?window:global,Wg="__EMOTION_REACT_"+X_.version.split(".")[0]+"__";Hg[Wg]&&console.warn("You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used."),Hg[Wg]=!0}}function t6(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var Kc=x.useLayoutEffect,n6=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Dl=function(){};function r6(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function i6(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var a=[].concat(r);if(t&&e)for(var o in t)t.hasOwnProperty(o)&&t[o]&&a.push("".concat(r6(e,o)));return a.filter(function(s){return s}).map(function(s){return String(s).trim()}).join(" ")}var zg=function(t){return h6(t)?t.filter(Boolean):hi(t)==="object"&&t!==null?[t]:[]},k1=function(t){t.className,t.clearValue,t.cx,t.getStyles,t.getClassNames,t.getValue,t.hasValue,t.isMulti,t.isRtl,t.options,t.selectOption,t.selectProps,t.setValue,t.theme;var n=gr(t,n6);return ce({},n)},st=function(t,n,r){var i=t.cx,a=t.getStyles,o=t.getClassNames,s=t.className;return{css:a(n,t),className:i(r??{},o(n,t),s)}};function du(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function a6(e){return du(e)?window.innerHeight:e.clientHeight}function M1(e){return du(e)?window.pageYOffset:e.scrollTop}function Sl(e,t){if(du(e)){window.scrollTo(0,t);return}e.scrollTop=t}function o6(e){var t=getComputedStyle(e),n=t.position==="absolute",r=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),!(n&&t.position==="static")&&r.test(t.overflow+t.overflowY+t.overflowX))return i;return document.documentElement}function s6(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function us(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Dl,i=M1(e),a=t-i,o=10,s=0;function l(){s+=o;var u=s6(s,i,a,n);Sl(e,u),s<n?window.requestAnimationFrame(l):r(e)}l()}function Gg(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=t.offsetHeight/3;r.bottom+i>n.bottom?Sl(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):r.top-i<n.top&&Sl(e,Math.max(t.offsetTop-i,0))}function l6(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}function Zg(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function u6(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var B1=!1,c6={get passive(){return B1=!0}},cs=typeof window<"u"?window:{};cs.addEventListener&&cs.removeEventListener&&(cs.addEventListener("p",Dl,c6),cs.removeEventListener("p",Dl,!1));var d6=B1;function f6(e){return e!=null}function h6(e){return Array.isArray(e)}function ds(e,t,n){return e?t:n}var g6=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];var a=Object.entries(t).filter(function(o){var s=cr(o,1),l=s[0];return!r.includes(l)});return a.reduce(function(o,s){var l=cr(s,2),u=l[0],c=l[1];return o[u]=c,o},{})},m6=["children","innerProps"],p6=["children","innerProps"];function b6(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,i=e.placement,a=e.shouldScroll,o=e.isFixedPosition,s=e.controlHeight,l=o6(n),u={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return u;var c=l.getBoundingClientRect(),d=c.height,h=n.getBoundingClientRect(),f=h.bottom,g=h.height,m=h.top,p=n.offsetParent.getBoundingClientRect(),b=p.top,v=o?window.innerHeight:a6(l),y=M1(l),w=parseInt(getComputedStyle(n).marginBottom,10),C=parseInt(getComputedStyle(n).marginTop,10),E=b-C,I=v-m,D=E+y,_=d-y-m,F=f-v+y+w,$=y+m-C,P=160;switch(i){case"auto":case"bottom":if(I>=g)return{placement:"bottom",maxHeight:t};if(_>=g&&!o)return a&&us(l,F,P),{placement:"bottom",maxHeight:t};if(!o&&_>=r||o&&I>=r){a&&us(l,F,P);var k=o?I-w:_-w;return{placement:"bottom",maxHeight:k}}if(i==="auto"||o){var A=t,B=o?E:D;return B>=r&&(A=Math.min(B-w-s,t)),{placement:"top",maxHeight:A}}if(i==="bottom")return a&&Sl(l,F),{placement:"bottom",maxHeight:t};break;case"top":if(E>=g)return{placement:"top",maxHeight:t};if(D>=g&&!o)return a&&us(l,$,P),{placement:"top",maxHeight:t};if(!o&&D>=r||o&&E>=r){var T=t;return(!o&&D>=r||o&&E>=r)&&(T=o?E-C:D-C),a&&us(l,$,P),{placement:"top",maxHeight:T}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return u}function v6(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var V1=function(t){return t==="auto"?"bottom":t},y6=function(t,n){var r,i=t.placement,a=t.theme,o=a.borderRadius,s=a.spacing,l=a.colors;return ce((r={label:"menu"},Fa(r,v6(i),"100%"),Fa(r,"position","absolute"),Fa(r,"width","100%"),Fa(r,"zIndex",1),r),n?{}:{backgroundColor:l.neutral0,borderRadius:o,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:s.menuGutter,marginTop:s.menuGutter})},O1=x.createContext(null),x6=function(t){var n=t.children,r=t.minMenuHeight,i=t.maxMenuHeight,a=t.menuPlacement,o=t.menuPosition,s=t.menuShouldScrollIntoView,l=t.theme,u=x.useContext(O1)||{},c=u.setPortalPlacement,d=x.useRef(null),h=x.useState(i),f=cr(h,2),g=f[0],m=f[1],p=x.useState(null),b=cr(p,2),v=b[0],y=b[1],w=l.spacing.controlHeight;return Kc(function(){var C=d.current;if(C){var E=o==="fixed",I=s&&!E,D=b6({maxHeight:i,menuEl:C,minHeight:r,placement:a,shouldScroll:I,isFixedPosition:E,controlHeight:w});m(D.maxHeight),y(D.placement),c==null||c(D.placement)}},[i,a,o,s,r,c,w]),n({ref:d,placerProps:ce(ce({},t),{},{placement:v||V1(a),maxHeight:g})})},C6=function(t){var n=t.children,r=t.innerRef,i=t.innerProps;return ue("div",de({},st(t,"menu",{menu:!0}),{ref:r},i),n)},w6=C6,D6=function(t,n){var r=t.maxHeight,i=t.theme.spacing.baseUnit;return ce({maxHeight:r,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},n?{}:{paddingBottom:i,paddingTop:i})},S6=function(t){var n=t.children,r=t.innerProps,i=t.innerRef,a=t.isMulti;return ue("div",de({},st(t,"menuList",{"menu-list":!0,"menu-list--is-multi":a}),{ref:i},r),n)},N1=function(t,n){var r=t.theme,i=r.spacing.baseUnit,a=r.colors;return ce({textAlign:"center"},n?{}:{color:a.neutral40,padding:"".concat(i*2,"px ").concat(i*3,"px")})},E6=N1,I6=N1,_6=function(t){var n=t.children,r=n===void 0?"No options":n,i=t.innerProps,a=gr(t,m6);return ue("div",de({},st(ce(ce({},a),{},{children:r,innerProps:i}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),i),r)},$6=function(t){var n=t.children,r=n===void 0?"Loading...":n,i=t.innerProps,a=gr(t,p6);return ue("div",de({},st(ce(ce({},a),{},{children:r,innerProps:i}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),i),r)},R6=function(t){var n=t.rect,r=t.offset,i=t.position;return{left:n.left,position:i,top:r,width:n.width,zIndex:1}},A6=function(t){var n=t.appendTo,r=t.children,i=t.controlElement,a=t.innerProps,o=t.menuPlacement,s=t.menuPosition,l=x.useRef(null),u=x.useRef(null),c=x.useState(V1(o)),d=cr(c,2),h=d[0],f=d[1],g=x.useMemo(function(){return{setPortalPlacement:f}},[]),m=x.useState(null),p=cr(m,2),b=p[0],v=p[1],y=x.useCallback(function(){if(i){var I=l6(i),D=s==="fixed"?0:window.pageYOffset,_=I[h]+D;(_!==(b==null?void 0:b.offset)||I.left!==(b==null?void 0:b.rect.left)||I.width!==(b==null?void 0:b.rect.width))&&v({offset:_,rect:I})}},[i,s,h,b==null?void 0:b.offset,b==null?void 0:b.rect.left,b==null?void 0:b.rect.width]);Kc(function(){y()},[y]);var w=x.useCallback(function(){typeof u.current=="function"&&(u.current(),u.current=null),i&&l.current&&(u.current=U0(i,l.current,y,{elementResize:"ResizeObserver"in window}))},[i,y]);Kc(function(){w()},[w]);var C=x.useCallback(function(I){l.current=I,w()},[w]);if(!n&&s!=="fixed"||!b)return null;var E=ue("div",de({ref:C},st(ce(ce({},t),{},{offset:b.offset,position:s,rect:b.rect}),"menuPortal",{"menu-portal":!0}),a),r);return ue(O1.Provider,{value:g},n?To.createPortal(E,n):E)},F6=function(t){var n=t.isDisabled,r=t.isRtl;return{label:"container",direction:r?"rtl":void 0,pointerEvents:n?"none":void 0,position:"relative"}},P6=function(t){var n=t.children,r=t.innerProps,i=t.isDisabled,a=t.isRtl;return ue("div",de({},st(t,"container",{"--is-disabled":i,"--is-rtl":a}),r),n)},T6=function(t,n){var r=t.theme.spacing,i=t.isMulti,a=t.hasValue,o=t.selectProps.controlShouldRenderValue;return ce({alignItems:"center",display:i&&a&&o?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},n?{}:{padding:"".concat(r.baseUnit/2,"px ").concat(r.baseUnit*2,"px")})},k6=function(t){var n=t.children,r=t.innerProps,i=t.isMulti,a=t.hasValue;return ue("div",de({},st(t,"valueContainer",{"value-container":!0,"value-container--is-multi":i,"value-container--has-value":a}),r),n)},M6=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},B6=function(t){var n=t.children,r=t.innerProps;return ue("div",de({},st(t,"indicatorsContainer",{indicators:!0}),r),n)},Xg,V6=["size"],O6=["innerProps","isRtl","size"];function N6(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var L6=process.env.NODE_ENV==="production"?{name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"}:{name:"tj5bde-Svg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVhY3ROb2RlIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4LCBrZXlmcmFtZXMgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7XG4gIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lLFxuICBDU1NPYmplY3RXaXRoTGFiZWwsXG4gIEdyb3VwQmFzZSxcbn0gZnJvbSAnLi4vdHlwZXMnO1xuaW1wb3J0IHsgZ2V0U3R5bGVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEljb25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgU3ZnID0gKHtcbiAgc2l6ZSxcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU6IG51bWJlciB9KSA9PiAoXG4gIDxzdmdcbiAgICBoZWlnaHQ9e3NpemV9XG4gICAgd2lkdGg9e3NpemV9XG4gICAgdmlld0JveD1cIjAgMCAyMCAyMFwiXG4gICAgYXJpYS1oaWRkZW49XCJ0cnVlXCJcbiAgICBmb2N1c2FibGU9XCJmYWxzZVwiXG4gICAgY3NzPXt7XG4gICAgICBkaXNwbGF5OiAnaW5saW5lLWJsb2NrJyxcbiAgICAgIGZpbGw6ICdjdXJyZW50Q29sb3InLFxuICAgICAgbGluZUhlaWdodDogMSxcbiAgICAgIHN0cm9rZTogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBzdHJva2VXaWR0aDogMCxcbiAgICB9fVxuICAgIHsuLi5wcm9wc31cbiAgLz5cbik7XG5cbmV4cG9ydCB0eXBlIENyb3NzSWNvblByb3BzID0gSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZT86IG51bWJlciB9O1xuZXhwb3J0IGNvbnN0IENyb3NzSWNvbiA9IChwcm9wczogQ3Jvc3NJY29uUHJvcHMpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTE0LjM0OCAxNC44NDljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDBsLTIuNjUxLTMuMDMwLTIuNjUxIDMuMDI5Yy0wLjQ2OSAwLjQ2OS0xLjIyOSAwLjQ2OS0xLjY5NyAwLTAuNDY5LTAuNDY5LTAuNDY5LTEuMjI5IDAtMS42OTdsMi43NTgtMy4xNS0yLjc1OS0zLjE1MmMtMC40NjktMC40NjktMC40NjktMS4yMjggMC0xLjY5N3MxLjIyOC0wLjQ2OSAxLjY5NyAwbDIuNjUyIDMuMDMxIDIuNjUxLTMuMDMxYzAuNDY5LTAuNDY5IDEuMjI4LTAuNDY5IDEuNjk3IDBzMC40NjkgMS4yMjkgMCAxLjY5N2wtMi43NTggMy4xNTIgMi43NTggMy4xNWMwLjQ2OSAwLjQ2OSAwLjQ2OSAxLjIyOSAwIDEuNjk4elwiIC8+XG4gIDwvU3ZnPlxuKTtcbmV4cG9ydCB0eXBlIERvd25DaGV2cm9uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgRG93bkNoZXZyb24gPSAocHJvcHM6IERvd25DaGV2cm9uUHJvcHMpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTQuNTE2IDcuNTQ4YzAuNDM2LTAuNDQ2IDEuMDQzLTAuNDgxIDEuNTc2IDBsMy45MDggMy43NDcgMy45MDgtMy43NDdjMC41MzMtMC40ODEgMS4xNDEtMC40NDYgMS41NzQgMCAwLjQzNiAwLjQ0NSAwLjQwOCAxLjE5NyAwIDEuNjE1LTAuNDA2IDAuNDE4LTQuNjk1IDQuNTAyLTQuNjk1IDQuNTAyLTAuMjE3IDAuMjIzLTAuNTAyIDAuMzM1LTAuNzg3IDAuMzM1cy0wLjU3LTAuMTEyLTAuNzg5LTAuMzM1YzAgMC00LjI4Ny00LjA4NC00LjY5NS00LjUwMnMtMC40MzYtMS4xNyAwLTEuNjE1elwiIC8+XG4gIDwvU3ZnPlxuKTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEJ1dHRvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xufVxuXG5jb25zdCBiYXNlQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNGb2N1c2VkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTpcbiAgICB8IERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbiAgICB8IENsZWFySW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JDb250YWluZXInLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICAgICc6aG92ZXInOiB7XG4gICAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsODAgOiBjb2xvcnMubmV1dHJhbDQwLFxuICAgICAgICB9LFxuICAgICAgfSksXG59KTtcblxuZXhwb3J0IGNvbnN0IGRyb3Bkb3duSW5kaWNhdG9yQ1NTID0gYmFzZUNTUztcbmV4cG9ydCBjb25zdCBEcm9wZG93bkluZGljYXRvciA9IDxcbiAgT3B0aW9uLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPlxuPihcbiAgcHJvcHM6IERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBpbm5lclByb3BzIH0gPSBwcm9wcztcbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uZ2V0U3R5bGVQcm9wcyhwcm9wcywgJ2Ryb3Bkb3duSW5kaWNhdG9yJywge1xuICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICdkcm9wZG93bi1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgfSl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICB7Y2hpbGRyZW4gfHwgPERvd25DaGV2cm9uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuZXhwb3J0IGludGVyZmFjZSBDbGVhckluZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFRoZSBjaGlsZHJlbiB0byBiZSByZW5kZXJlZCBpbnNpZGUgdGhlIGluZGljYXRvci4gKi9cbiAgY2hpbGRyZW4/OiBSZWFjdE5vZGU7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydkaXYnXTtcbiAgLyoqIFRoZSBmb2N1c2VkIHN0YXRlIG9mIHRoZSBzZWxlY3QuICovXG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbn1cblxuZXhwb3J0IGNvbnN0IGNsZWFySW5kaWNhdG9yQ1NTID0gYmFzZUNTUztcbmV4cG9ydCBjb25zdCBDbGVhckluZGljYXRvciA9IDxcbiAgT3B0aW9uLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPlxuPihcbiAgcHJvcHM6IENsZWFySW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBpbm5lclByb3BzIH0gPSBwcm9wcztcbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uZ2V0U3R5bGVQcm9wcyhwcm9wcywgJ2NsZWFySW5kaWNhdG9yJywge1xuICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICdjbGVhci1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgfSl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICB7Y2hpbGRyZW4gfHwgPENyb3NzSWNvbiAvPn1cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG5cbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuLy8gU2VwYXJhdG9yXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuZXhwb3J0IGludGVyZmFjZSBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbiAgaW5uZXJQcm9wcz86IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3BhbiddO1xufVxuXG5leHBvcnQgY29uc3QgaW5kaWNhdG9yU2VwYXJhdG9yQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNEaXNhYmxlZCxcbiAgICB0aGVtZToge1xuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgICAgY29sb3JzLFxuICAgIH0sXG4gIH06IEluZGljYXRvclNlcGFyYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+LFxuICB1bnN0eWxlZDogYm9vbGVhblxuKTogQ1NTT2JqZWN0V2l0aExhYmVsID0+ICh7XG4gIGxhYmVsOiAnaW5kaWNhdG9yU2VwYXJhdG9yJyxcbiAgYWxpZ25TZWxmOiAnc3RyZXRjaCcsXG4gIHdpZHRoOiAxLFxuICAuLi4odW5zdHlsZWRcbiAgICA/IHt9XG4gICAgOiB7XG4gICAgICAgIGJhY2tncm91bmRDb2xvcjogaXNEaXNhYmxlZCA/IGNvbG9ycy5uZXV0cmFsMTAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBtYXJnaW5Cb3R0b206IGJhc2VVbml0ICogMixcbiAgICAgICAgbWFyZ2luVG9wOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgSW5kaWNhdG9yU2VwYXJhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxzcGFuXG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnaW5kaWNhdG9yU2VwYXJhdG9yJywge1xuICAgICAgICAnaW5kaWNhdG9yLXNlcGFyYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAvPlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBMb2FkaW5nXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgbG9hZGluZ0RvdEFuaW1hdGlvbnMgPSBrZXlmcmFtZXNgXG4gIDAlLCA4MCUsIDEwMCUgeyBvcGFjaXR5OiAwOyB9XG4gIDQwJSB7IG9wYWNpdHk6IDE7IH1cbmA7XG5cbmV4cG9ydCBjb25zdCBsb2FkaW5nSW5kaWNhdG9yQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNGb2N1c2VkLFxuICAgIHNpemUsXG4gICAgdGhlbWU6IHtcbiAgICAgIGNvbG9ycyxcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICB9LFxuICB9OiBMb2FkaW5nSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdsb2FkaW5nSW5kaWNhdG9yJyxcbiAgZGlzcGxheTogJ2ZsZXgnLFxuICB0cmFuc2l0aW9uOiAnY29sb3IgMTUwbXMnLFxuICBhbGlnblNlbGY6ICdjZW50ZXInLFxuICBmb250U2l6ZTogc2l6ZSxcbiAgbGluZUhlaWdodDogMSxcbiAgbWFyZ2luUmlnaHQ6IHNpemUsXG4gIHRleHRBbGlnbjogJ2NlbnRlcicsXG4gIHZlcnRpY2FsQWxpZ246ICdtaWRkbGUnLFxuICAuLi4odW5zdHlsZWRcbiAgICA/IHt9XG4gICAgOiB7XG4gICAgICAgIGNvbG9yOiBpc0ZvY3VzZWQgPyBjb2xvcnMubmV1dHJhbDYwIDogY29sb3JzLm5ldXRyYWwyMCxcbiAgICAgICAgcGFkZGluZzogYmFzZVVuaXQgKiAyLFxuICAgICAgfSksXG59KTtcblxuaW50ZXJmYWNlIExvYWRpbmdEb3RQcm9wcyB7XG4gIGRlbGF5OiBudW1iZXI7XG4gIG9mZnNldDogYm9vbGVhbjtcbn1cbmNvbnN0IExvYWRpbmdEb3QgPSAoeyBkZWxheSwgb2Zmc2V0IH06IExvYWRpbmdEb3RQcm9wcykgPT4gKFxuICA8c3BhblxuICAgIGNzcz17e1xuICAgICAgYW5pbWF0aW9uOiBgJHtsb2FkaW5nRG90QW5pbWF0aW9uc30gMXMgZWFzZS1pbi1vdXQgJHtkZWxheX1tcyBpbmZpbml0ZTtgLFxuICAgICAgYmFja2dyb3VuZENvbG9yOiAnY3VycmVudENvbG9yJyxcbiAgICAgIGJvcmRlclJhZGl1czogJzFlbScsXG4gICAgICBkaXNwbGF5OiAnaW5saW5lLWJsb2NrJyxcbiAgICAgIG1hcmdpbkxlZnQ6IG9mZnNldCA/ICcxZW0nIDogdW5kZWZpbmVkLFxuICAgICAgaGVpZ2h0OiAnMWVtJyxcbiAgICAgIHZlcnRpY2FsQWxpZ246ICd0b3AnLFxuICAgICAgd2lkdGg6ICcxZW0nLFxuICAgIH19XG4gIC8+XG4pO1xuXG5leHBvcnQgaW50ZXJmYWNlIExvYWRpbmdJbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydkaXYnXTtcbiAgLyoqIFRoZSBmb2N1c2VkIHN0YXRlIG9mIHRoZSBzZWxlY3QuICovXG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgLyoqIFNldCBzaXplIG9mIHRoZSBjb250YWluZXIuICovXG4gIHNpemU6IG51bWJlcjtcbn1cbmV4cG9ydCBjb25zdCBMb2FkaW5nSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KHtcbiAgaW5uZXJQcm9wcyxcbiAgaXNSdGwsXG4gIHNpemUgPSA0LFxuICAuLi5yZXN0UHJvcHNcbn06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPikgPT4ge1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKFxuICAgICAgICB7IC4uLnJlc3RQcm9wcywgaW5uZXJQcm9wcywgaXNSdGwsIHNpemUgfSxcbiAgICAgICAgJ2xvYWRpbmdJbmRpY2F0b3InLFxuICAgICAgICB7XG4gICAgICAgICAgaW5kaWNhdG9yOiB0cnVlLFxuICAgICAgICAgICdsb2FkaW5nLWluZGljYXRvcic6IHRydWUsXG4gICAgICAgIH1cbiAgICAgICl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MH0gb2Zmc2V0PXtpc1J0bH0gLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXsxNjB9IG9mZnNldCAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezMyMH0gb2Zmc2V0PXshaXNSdGx9IC8+XG4gICAgPC9kaXY+XG4gICk7XG59O1xuIl19 */",toString:N6},L1=function(t){var n=t.size,r=gr(t,V6);return ue("svg",de({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:L6},r))},_f=function(t){return ue(L1,de({size:20},t),ue("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},j1=function(t){return ue(L1,de({size:20},t),ue("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},H1=function(t,n){var r=t.isFocused,i=t.theme,a=i.spacing.baseUnit,o=i.colors;return ce({label:"indicatorContainer",display:"flex",transition:"color 150ms"},n?{}:{color:r?o.neutral60:o.neutral20,padding:a*2,":hover":{color:r?o.neutral80:o.neutral40}})},j6=H1,H6=function(t){var n=t.children,r=t.innerProps;return ue("div",de({},st(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),r),n||ue(j1,null))},W6=H1,z6=function(t){var n=t.children,r=t.innerProps;return ue("div",de({},st(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),r),n||ue(_f,null))},G6=function(t,n){var r=t.isDisabled,i=t.theme,a=i.spacing.baseUnit,o=i.colors;return ce({label:"indicatorSeparator",alignSelf:"stretch",width:1},n?{}:{backgroundColor:r?o.neutral10:o.neutral20,marginBottom:a*2,marginTop:a*2})},Z6=function(t){var n=t.innerProps;return ue("span",de({},n,st(t,"indicatorSeparator",{"indicator-separator":!0})))},X6=U_(Xg||(Xg=t6([`
|
106
106
|
0%, 80%, 100% { opacity: 0; }
|
107
107
|
40% { opacity: 1; }
|
108
|
-
`]))),Y6=function(t,n){var r=t.isFocused,i=t.size,a=t.theme,o=a.colors,s=a.spacing.baseUnit;return ce({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:i,lineHeight:1,marginRight:i,textAlign:"center",verticalAlign:"middle"},n?{}:{color:r?o.neutral60:o.neutral20,padding:s*2})},Zu=function(t){var n=t.delay,r=t.offset;return ue("span",{css:If({animation:"".concat(X6," 1s ease-in-out ").concat(n,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:r?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},process.env.NODE_ENV==="production"?"":";label:LoadingDot;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVhY3ROb2RlIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4LCBrZXlmcmFtZXMgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7XG4gIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lLFxuICBDU1NPYmplY3RXaXRoTGFiZWwsXG4gIEdyb3VwQmFzZSxcbn0gZnJvbSAnLi4vdHlwZXMnO1xuaW1wb3J0IHsgZ2V0U3R5bGVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEljb25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgU3ZnID0gKHtcbiAgc2l6ZSxcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU6IG51bWJlciB9KSA9PiAoXG4gIDxzdmdcbiAgICBoZWlnaHQ9e3NpemV9XG4gICAgd2lkdGg9e3NpemV9XG4gICAgdmlld0JveD1cIjAgMCAyMCAyMFwiXG4gICAgYXJpYS1oaWRkZW49XCJ0cnVlXCJcbiAgICBmb2N1c2FibGU9XCJmYWxzZVwiXG4gICAgY3NzPXt7XG4gICAgICBkaXNwbGF5OiAnaW5saW5lLWJsb2NrJyxcbiAgICAgIGZpbGw6ICdjdXJyZW50Q29sb3InLFxuICAgICAgbGluZUhlaWdodDogMSxcbiAgICAgIHN0cm9rZTogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBzdHJva2VXaWR0aDogMCxcbiAgICB9fVxuICAgIHsuLi5wcm9wc31cbiAgLz5cbik7XG5cbmV4cG9ydCB0eXBlIENyb3NzSWNvblByb3BzID0gSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZT86IG51bWJlciB9O1xuZXhwb3J0IGNvbnN0IENyb3NzSWNvbiA9IChwcm9wczogQ3Jvc3NJY29uUHJvcHMpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTE0LjM0OCAxNC44NDljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDBsLTIuNjUxLTMuMDMwLTIuNjUxIDMuMDI5Yy0wLjQ2OSAwLjQ2OS0xLjIyOSAwLjQ2OS0xLjY5NyAwLTAuNDY5LTAuNDY5LTAuNDY5LTEuMjI5IDAtMS42OTdsMi43NTgtMy4xNS0yLjc1OS0zLjE1MmMtMC40NjktMC40NjktMC40NjktMS4yMjggMC0xLjY5N3MxLjIyOC0wLjQ2OSAxLjY5NyAwbDIuNjUyIDMuMDMxIDIuNjUxLTMuMDMxYzAuNDY5LTAuNDY5IDEuMjI4LTAuNDY5IDEuNjk3IDBzMC40NjkgMS4yMjkgMCAxLjY5N2wtMi43NTggMy4xNTIgMi43NTggMy4xNWMwLjQ2OSAwLjQ2OSAwLjQ2OSAxLjIyOSAwIDEuNjk4elwiIC8+XG4gIDwvU3ZnPlxuKTtcbmV4cG9ydCB0eXBlIERvd25DaGV2cm9uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgRG93bkNoZXZyb24gPSAocHJvcHM6IERvd25DaGV2cm9uUHJvcHMpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTQuNTE2IDcuNTQ4YzAuNDM2LTAuNDQ2IDEuMDQzLTAuNDgxIDEuNTc2IDBsMy45MDggMy43NDcgMy45MDgtMy43NDdjMC41MzMtMC40ODEgMS4xNDEtMC40NDYgMS41NzQgMCAwLjQzNiAwLjQ0NSAwLjQwOCAxLjE5NyAwIDEuNjE1LTAuNDA2IDAuNDE4LTQuNjk1IDQuNTAyLTQuNjk1IDQuNTAyLTAuMjE3IDAuMjIzLTAuNTAyIDAuMzM1LTAuNzg3IDAuMzM1cy0wLjU3LTAuMTEyLTAuNzg5LTAuMzM1YzAgMC00LjI4Ny00LjA4NC00LjY5NS00LjUwMnMtMC40MzYtMS4xNyAwLTEuNjE1elwiIC8+XG4gIDwvU3ZnPlxuKTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEJ1dHRvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xufVxuXG5jb25zdCBiYXNlQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNGb2N1c2VkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTpcbiAgICB8IERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbiAgICB8IENsZWFySW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JDb250YWluZXInLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICAgICc6aG92ZXInOiB7XG4gICAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsODAgOiBjb2xvcnMubmV1dHJhbDQwLFxuICAgICAgICB9LFxuICAgICAgfSksXG59KTtcblxuZXhwb3J0IGNvbnN0IGRyb3Bkb3duSW5kaWNhdG9yQ1NTID0gYmFzZUNTUztcbmV4cG9ydCBjb25zdCBEcm9wZG93bkluZGljYXRvciA9IDxcbiAgT3B0aW9uLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPlxuPihcbiAgcHJvcHM6IERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBpbm5lclByb3BzIH0gPSBwcm9wcztcbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uZ2V0U3R5bGVQcm9wcyhwcm9wcywgJ2Ryb3Bkb3duSW5kaWNhdG9yJywge1xuICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICdkcm9wZG93bi1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgfSl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICB7Y2hpbGRyZW4gfHwgPERvd25DaGV2cm9uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuZXhwb3J0IGludGVyZmFjZSBDbGVhckluZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFRoZSBjaGlsZHJlbiB0byBiZSByZW5kZXJlZCBpbnNpZGUgdGhlIGluZGljYXRvci4gKi9cbiAgY2hpbGRyZW4/OiBSZWFjdE5vZGU7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydkaXYnXTtcbiAgLyoqIFRoZSBmb2N1c2VkIHN0YXRlIG9mIHRoZSBzZWxlY3QuICovXG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbn1cblxuZXhwb3J0IGNvbnN0IGNsZWFySW5kaWNhdG9yQ1NTID0gYmFzZUNTUztcbmV4cG9ydCBjb25zdCBDbGVhckluZGljYXRvciA9IDxcbiAgT3B0aW9uLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPlxuPihcbiAgcHJvcHM6IENsZWFySW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBpbm5lclByb3BzIH0gPSBwcm9wcztcbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uZ2V0U3R5bGVQcm9wcyhwcm9wcywgJ2NsZWFySW5kaWNhdG9yJywge1xuICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICdjbGVhci1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgfSl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICB7Y2hpbGRyZW4gfHwgPENyb3NzSWNvbiAvPn1cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG5cbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuLy8gU2VwYXJhdG9yXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuZXhwb3J0IGludGVyZmFjZSBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbiAgaW5uZXJQcm9wcz86IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3BhbiddO1xufVxuXG5leHBvcnQgY29uc3QgaW5kaWNhdG9yU2VwYXJhdG9yQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNEaXNhYmxlZCxcbiAgICB0aGVtZToge1xuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgICAgY29sb3JzLFxuICAgIH0sXG4gIH06IEluZGljYXRvclNlcGFyYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+LFxuICB1bnN0eWxlZDogYm9vbGVhblxuKTogQ1NTT2JqZWN0V2l0aExhYmVsID0+ICh7XG4gIGxhYmVsOiAnaW5kaWNhdG9yU2VwYXJhdG9yJyxcbiAgYWxpZ25TZWxmOiAnc3RyZXRjaCcsXG4gIHdpZHRoOiAxLFxuICAuLi4odW5zdHlsZWRcbiAgICA/IHt9XG4gICAgOiB7XG4gICAgICAgIGJhY2tncm91bmRDb2xvcjogaXNEaXNhYmxlZCA/IGNvbG9ycy5uZXV0cmFsMTAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBtYXJnaW5Cb3R0b206IGJhc2VVbml0ICogMixcbiAgICAgICAgbWFyZ2luVG9wOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgSW5kaWNhdG9yU2VwYXJhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxzcGFuXG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnaW5kaWNhdG9yU2VwYXJhdG9yJywge1xuICAgICAgICAnaW5kaWNhdG9yLXNlcGFyYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAvPlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBMb2FkaW5nXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgbG9hZGluZ0RvdEFuaW1hdGlvbnMgPSBrZXlmcmFtZXNgXG4gIDAlLCA4MCUsIDEwMCUgeyBvcGFjaXR5OiAwOyB9XG4gIDQwJSB7IG9wYWNpdHk6IDE7IH1cbmA7XG5cbmV4cG9ydCBjb25zdCBsb2FkaW5nSW5kaWNhdG9yQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNGb2N1c2VkLFxuICAgIHNpemUsXG4gICAgdGhlbWU6IHtcbiAgICAgIGNvbG9ycyxcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICB9LFxuICB9OiBMb2FkaW5nSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdsb2FkaW5nSW5kaWNhdG9yJyxcbiAgZGlzcGxheTogJ2ZsZXgnLFxuICB0cmFuc2l0aW9uOiAnY29sb3IgMTUwbXMnLFxuICBhbGlnblNlbGY6ICdjZW50ZXInLFxuICBmb250U2l6ZTogc2l6ZSxcbiAgbGluZUhlaWdodDogMSxcbiAgbWFyZ2luUmlnaHQ6IHNpemUsXG4gIHRleHRBbGlnbjogJ2NlbnRlcicsXG4gIHZlcnRpY2FsQWxpZ246ICdtaWRkbGUnLFxuICAuLi4odW5zdHlsZWRcbiAgICA/IHt9XG4gICAgOiB7XG4gICAgICAgIGNvbG9yOiBpc0ZvY3VzZWQgPyBjb2xvcnMubmV1dHJhbDYwIDogY29sb3JzLm5ldXRyYWwyMCxcbiAgICAgICAgcGFkZGluZzogYmFzZVVuaXQgKiAyLFxuICAgICAgfSksXG59KTtcblxuaW50ZXJmYWNlIExvYWRpbmdEb3RQcm9wcyB7XG4gIGRlbGF5OiBudW1iZXI7XG4gIG9mZnNldDogYm9vbGVhbjtcbn1cbmNvbnN0IExvYWRpbmdEb3QgPSAoeyBkZWxheSwgb2Zmc2V0IH06IExvYWRpbmdEb3RQcm9wcykgPT4gKFxuICA8c3BhblxuICAgIGNzcz17e1xuICAgICAgYW5pbWF0aW9uOiBgJHtsb2FkaW5nRG90QW5pbWF0aW9uc30gMXMgZWFzZS1pbi1vdXQgJHtkZWxheX1tcyBpbmZpbml0ZTtgLFxuICAgICAgYmFja2dyb3VuZENvbG9yOiAnY3VycmVudENvbG9yJyxcbiAgICAgIGJvcmRlclJhZGl1czogJzFlbScsXG4gICAgICBkaXNwbGF5OiAnaW5saW5lLWJsb2NrJyxcbiAgICAgIG1hcmdpbkxlZnQ6IG9mZnNldCA/ICcxZW0nIDogdW5kZWZpbmVkLFxuICAgICAgaGVpZ2h0OiAnMWVtJyxcbiAgICAgIHZlcnRpY2FsQWxpZ246ICd0b3AnLFxuICAgICAgd2lkdGg6ICcxZW0nLFxuICAgIH19XG4gIC8+XG4pO1xuXG5leHBvcnQgaW50ZXJmYWNlIExvYWRpbmdJbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydkaXYnXTtcbiAgLyoqIFRoZSBmb2N1c2VkIHN0YXRlIG9mIHRoZSBzZWxlY3QuICovXG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgLyoqIFNldCBzaXplIG9mIHRoZSBjb250YWluZXIuICovXG4gIHNpemU6IG51bWJlcjtcbn1cbmV4cG9ydCBjb25zdCBMb2FkaW5nSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KHtcbiAgaW5uZXJQcm9wcyxcbiAgaXNSdGwsXG4gIHNpemUgPSA0LFxuICAuLi5yZXN0UHJvcHNcbn06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPikgPT4ge1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKFxuICAgICAgICB7IC4uLnJlc3RQcm9wcywgaW5uZXJQcm9wcywgaXNSdGwsIHNpemUgfSxcbiAgICAgICAgJ2xvYWRpbmdJbmRpY2F0b3InLFxuICAgICAgICB7XG4gICAgICAgICAgaW5kaWNhdG9yOiB0cnVlLFxuICAgICAgICAgICdsb2FkaW5nLWluZGljYXRvcic6IHRydWUsXG4gICAgICAgIH1cbiAgICAgICl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MH0gb2Zmc2V0PXtpc1J0bH0gLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXsxNjB9IG9mZnNldCAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezMyMH0gb2Zmc2V0PXshaXNSdGx9IC8+XG4gICAgPC9kaXY+XG4gICk7XG59O1xuIl19 */")})},U6=function(t){var n=t.innerProps,r=t.isRtl,i=t.size,a=i===void 0?4:i,o=gr(t,O6);return ue("div",de({},st(ce(ce({},o),{},{innerProps:n,isRtl:r,size:a}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),n),ue(Zu,{delay:0,offset:r}),ue(Zu,{delay:160,offset:!0}),ue(Zu,{delay:320,offset:!r}))},J6=function(t,n){var r=t.isDisabled,i=t.isFocused,a=t.theme,o=a.colors,s=a.borderRadius,l=a.spacing;return ce({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:l.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},n?{}:{backgroundColor:r?o.neutral5:o.neutral0,borderColor:r?o.neutral10:i?o.primary:o.neutral20,borderRadius:s,borderStyle:"solid",borderWidth:1,boxShadow:i?"0 0 0 1px ".concat(o.primary):void 0,"&:hover":{borderColor:i?o.primary:o.neutral30}})},K6=function(t){var n=t.children,r=t.isDisabled,i=t.isFocused,a=t.innerRef,o=t.innerProps,s=t.menuIsOpen;return ue("div",de({ref:a},st(t,"control",{control:!0,"control--is-disabled":r,"control--is-focused":i,"control--menu-is-open":s}),o,{"aria-disabled":r||void 0}),n)},Q6=K6,q6=["data"],e$=function(t,n){var r=t.theme.spacing;return n?{}:{paddingBottom:r.baseUnit*2,paddingTop:r.baseUnit*2}},t$=function(t){var n=t.children,r=t.cx,i=t.getStyles,a=t.getClassNames,o=t.Heading,s=t.headingProps,l=t.innerProps,u=t.label,c=t.theme,d=t.selectProps;return ue("div",de({},st(t,"group",{group:!0}),l),ue(o,de({},s,{selectProps:d,theme:c,getStyles:i,getClassNames:a,cx:r}),u),ue("div",null,n))},n$=function(t,n){var r=t.theme,i=r.colors,a=r.spacing;return ce({label:"group",cursor:"default",display:"block"},n?{}:{color:i.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:a.baseUnit*3,paddingRight:a.baseUnit*3,textTransform:"uppercase"})},r$=function(t){var n=M1(t);n.data;var r=gr(n,q6);return ue("div",de({},st(t,"groupHeading",{"group-heading":!0}),r))},i$=t$,a$=["innerRef","isDisabled","isHidden","inputClassName"],o$=function(t,n){var r=t.isDisabled,i=t.value,a=t.theme,o=a.spacing,s=a.colors;return ce(ce({visibility:r?"hidden":"visible",transform:i?"translateZ(0)":""},s$),n?{}:{margin:o.baseUnit/2,paddingBottom:o.baseUnit/2,paddingTop:o.baseUnit/2,color:s.neutral80})},W1={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},s$={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":ce({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},W1)},l$=function(t){return ce({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},W1)},u$=function(t){var n=t.cx,r=t.value,i=M1(t),a=i.innerRef,o=i.isDisabled,s=i.isHidden,l=i.inputClassName,u=gr(i,a$);return ue("div",de({},st(t,"input",{"input-container":!0}),{"data-value":r||""}),ue("input",de({className:n({input:!0},l),ref:a,style:l$(s),disabled:o},u)))},c$=u$,d$=function(t,n){var r=t.theme,i=r.spacing,a=r.borderRadius,o=r.colors;return ce({label:"multiValue",display:"flex",minWidth:0},n?{}:{backgroundColor:o.neutral10,borderRadius:a/2,margin:i.baseUnit/2})},f$=function(t,n){var r=t.theme,i=r.borderRadius,a=r.colors,o=t.cropWithEllipsis;return ce({overflow:"hidden",textOverflow:o||o===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},n?{}:{borderRadius:i/2,color:a.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},h$=function(t,n){var r=t.theme,i=r.spacing,a=r.borderRadius,o=r.colors,s=t.isFocused;return ce({alignItems:"center",display:"flex"},n?{}:{borderRadius:a/2,backgroundColor:s?o.dangerLight:void 0,paddingLeft:i.baseUnit,paddingRight:i.baseUnit,":hover":{backgroundColor:o.dangerLight,color:o.danger}})},z1=function(t){var n=t.children,r=t.innerProps;return ue("div",r,n)},g$=z1,m$=z1;function p$(e){var t=e.children,n=e.innerProps;return ue("div",de({role:"button"},n),t||ue(_f,{size:14}))}var b$=function(t){var n=t.children,r=t.components,i=t.data,a=t.innerProps,o=t.isDisabled,s=t.removeProps,l=t.selectProps,u=r.Container,c=r.Label,d=r.Remove;return ue(u,{data:i,innerProps:ce(ce({},st(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":o})),a),selectProps:l},ue(c,{data:i,innerProps:ce({},st(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:l},n),ue(d,{data:i,innerProps:ce(ce({},st(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(n||"option")},s),selectProps:l}))},v$=b$,y$=function(t,n){var r=t.isDisabled,i=t.isFocused,a=t.isSelected,o=t.theme,s=o.spacing,l=o.colors;return ce({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},n?{}:{backgroundColor:a?l.primary:i?l.primary25:"transparent",color:r?l.neutral20:a?l.neutral0:"inherit",padding:"".concat(s.baseUnit*2,"px ").concat(s.baseUnit*3,"px"),":active":{backgroundColor:r?void 0:a?l.primary:l.primary50}})},x$=function(t){var n=t.children,r=t.isDisabled,i=t.isFocused,a=t.isSelected,o=t.innerRef,s=t.innerProps;return ue("div",de({},st(t,"option",{option:!0,"option--is-disabled":r,"option--is-focused":i,"option--is-selected":a}),{ref:o,"aria-disabled":r},s),n)},C$=x$,w$=function(t,n){var r=t.theme,i=r.spacing,a=r.colors;return ce({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},n?{}:{color:a.neutral50,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},D$=function(t){var n=t.children,r=t.innerProps;return ue("div",de({},st(t,"placeholder",{placeholder:!0}),r),n)},S$=D$,E$=function(t,n){var r=t.isDisabled,i=t.theme,a=i.spacing,o=i.colors;return ce({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n?{}:{color:r?o.neutral40:o.neutral80,marginLeft:a.baseUnit/2,marginRight:a.baseUnit/2})},I$=function(t){var n=t.children,r=t.isDisabled,i=t.innerProps;return ue("div",de({},st(t,"singleValue",{"single-value":!0,"single-value--is-disabled":r}),i),n)},_$=I$,G1={ClearIndicator:z6,Control:Q6,DropdownIndicator:H6,DownChevron:j1,CrossIcon:_f,Group:i$,GroupHeading:r$,IndicatorsContainer:B6,IndicatorSeparator:Z6,Input:c$,LoadingIndicator:U6,Menu:w6,MenuList:S6,MenuPortal:A6,LoadingMessage:$6,NoOptionsMessage:_6,MultiValue:v$,MultiValueContainer:g$,MultiValueLabel:m$,MultiValueRemove:p$,Option:C$,Placeholder:S$,SelectContainer:P6,SingleValue:_$,ValueContainer:M6},$$=function(t){return ce(ce({},G1),t.components)},Yg=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function R$(e,t){return!!(e===t||Yg(e)&&Yg(t))}function A$(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!R$(e[n],t[n]))return!1;return!0}function F$(e,t){t===void 0&&(t=A$);var n=null;function r(){for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];if(n&&n.lastThis===this&&t(i,n.lastArgs))return n.lastResult;var o=e.apply(this,i);return n={lastResult:o,lastArgs:i,lastThis:this},o}return r.clear=function(){n=null},r}function P$(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var T$=process.env.NODE_ENV==="production"?{name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"}:{name:"1f43avz-a11yText-A11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;label:A11yText;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFNSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",toString:P$},M$=function(t){return ue("span",de({css:T$},t))},Ug=M$,k$={guidance:function(t){var n=t.isSearchable,r=t.isMulti,i=t.tabSelectsValue,a=t.context,o=t.isInitialFocus;switch(a){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(i?", press Tab to select the option and exit the menu":"",".");case"input":return o?"".concat(t["aria-label"]||"Select"," is focused ").concat(n?",type to refine list":"",", press Down to open the menu, ").concat(r?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(t){var n=t.action,r=t.label,i=r===void 0?"":r,a=t.labels,o=t.isDisabled;switch(n){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(i,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(a.length>1?"s":""," ").concat(a.join(","),", selected.");case"select-option":return o?"option ".concat(i," is disabled. Select another option."):"option ".concat(i,", selected.");default:return""}},onFocus:function(t){var n=t.context,r=t.focused,i=t.options,a=t.label,o=a===void 0?"":a,s=t.selectValue,l=t.isDisabled,u=t.isSelected,c=t.isAppleDevice,d=function(m,p){return m&&m.length?"".concat(m.indexOf(p)+1," of ").concat(m.length):""};if(n==="value"&&s)return"value ".concat(o," focused, ").concat(d(s,r),".");if(n==="menu"&&c){var h=l?" disabled":"",f="".concat(u?" selected":"").concat(h);return"".concat(o).concat(f,", ").concat(d(i,r),".")}return""},onFilter:function(t){var n=t.inputValue,r=t.resultsMessage;return"".concat(r).concat(n?" for search term "+n:"",".")}},B$=function(t){var n=t.ariaSelection,r=t.focusedOption,i=t.focusedValue,a=t.focusableOptions,o=t.isFocused,s=t.selectValue,l=t.selectProps,u=t.id,c=t.isAppleDevice,d=l.ariaLiveMessages,h=l.getOptionLabel,f=l.inputValue,g=l.isMulti,m=l.isOptionDisabled,p=l.isSearchable,b=l.menuIsOpen,v=l.options,y=l.screenReaderStatus,w=l.tabSelectsValue,C=l.isLoading,E=l["aria-label"],I=l["aria-live"],D=x.useMemo(function(){return ce(ce({},k$),d||{})},[d]),_=x.useMemo(function(){var B="";if(n&&D.onChange){var T=n.option,R=n.options,O=n.removedValue,H=n.removedValues,L=n.value,Z=function(J){return Array.isArray(J)?null:J},V=O||T||Z(L),W=V?h(V):"",q=R||H||void 0,Y=q?q.map(h):[],N=ce({isDisabled:V&&m(V,s),label:W,labels:Y},n);B=D.onChange(N)}return B},[n,D,m,s,h]),F=x.useMemo(function(){var B="",T=r||i,R=!!(r&&s&&s.includes(r));if(T&&D.onFocus){var O={focused:T,label:h(T),isDisabled:m(T,s),isSelected:R,options:a,context:T===r?"menu":"value",selectValue:s,isAppleDevice:c};B=D.onFocus(O)}return B},[r,i,h,m,D,a,s,c]),$=x.useMemo(function(){var B="";if(b&&v.length&&!C&&D.onFilter){var T=y({count:a.length});B=D.onFilter({inputValue:f,resultsMessage:T})}return B},[a,f,b,D,v,y,C]),P=(n==null?void 0:n.action)==="initial-input-focus",M=x.useMemo(function(){var B="";if(D.guidance){var T=i?"value":b?"menu":"input";B=D.guidance({"aria-label":E,context:T,isDisabled:r&&m(r,s),isMulti:g,isSearchable:p,tabSelectsValue:w,isInitialFocus:P})}return B},[E,r,i,g,m,p,b,D,s,w,P]),A=ue(x.Fragment,null,ue("span",{id:"aria-selection"},_),ue("span",{id:"aria-focused"},F),ue("span",{id:"aria-results"},$),ue("span",{id:"aria-guidance"},M));return ue(x.Fragment,null,ue(Ug,{id:u},P&&A),ue(Ug,{"aria-live":I,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},o&&!P&&A))},V$=B$,Qc=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],O$=new RegExp("["+Qc.map(function(e){return e.letters}).join("")+"]","g"),Z1={};for(var Xu=0;Xu<Qc.length;Xu++)for(var Yu=Qc[Xu],Uu=0;Uu<Yu.letters.length;Uu++)Z1[Yu.letters[Uu]]=Yu.base;var X1=function(t){return t.replace(O$,function(n){return Z1[n]})},N$=F$(X1),Jg=function(t){return t.replace(/^\s+|\s+$/g,"")},L$=function(t){return"".concat(t.label," ").concat(t.value)},j$=function(t){return function(n,r){if(n.data.__isNew__)return!0;var i=ce({ignoreCase:!0,ignoreAccents:!0,stringify:L$,trim:!0,matchFrom:"any"},t),a=i.ignoreCase,o=i.ignoreAccents,s=i.stringify,l=i.trim,u=i.matchFrom,c=l?Jg(r):r,d=l?Jg(s(n)):s(n);return a&&(c=c.toLowerCase(),d=d.toLowerCase()),o&&(c=N$(c),d=X1(d)),u==="start"?d.substr(0,c.length)===c:d.indexOf(c)>-1}},H$=["innerRef"];function W$(e){var t=e.innerRef,n=gr(e,H$),r=g6(n,"onExited","in","enter","exit","appear");return ue("input",de({ref:t},r,{css:If({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},process.env.NODE_ENV==="production"?"":";label:DummyInput;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVmIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgcmVtb3ZlUHJvcHMgfSBmcm9tICcuLi91dGlscyc7XG5cbmV4cG9ydCBkZWZhdWx0IGZ1bmN0aW9uIER1bW15SW5wdXQoe1xuICBpbm5lclJlZixcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snaW5wdXQnXSAmIHtcbiAgcmVhZG9ubHkgaW5uZXJSZWY6IFJlZjxIVE1MSW5wdXRFbGVtZW50Pjtcbn0pIHtcbiAgLy8gUmVtb3ZlIGFuaW1hdGlvbiBwcm9wcyBub3QgbWVhbnQgZm9yIEhUTUwgZWxlbWVudHNcbiAgY29uc3QgZmlsdGVyZWRQcm9wcyA9IHJlbW92ZVByb3BzKFxuICAgIHByb3BzLFxuICAgICdvbkV4aXRlZCcsXG4gICAgJ2luJyxcbiAgICAnZW50ZXInLFxuICAgICdleGl0JyxcbiAgICAnYXBwZWFyJ1xuICApO1xuXG4gIHJldHVybiAoXG4gICAgPGlucHV0XG4gICAgICByZWY9e2lubmVyUmVmfVxuICAgICAgey4uLmZpbHRlcmVkUHJvcHN9XG4gICAgICBjc3M9e3tcbiAgICAgICAgbGFiZWw6ICdkdW1teUlucHV0JyxcbiAgICAgICAgLy8gZ2V0IHJpZCBvZiBhbnkgZGVmYXVsdCBzdHlsZXNcbiAgICAgICAgYmFja2dyb3VuZDogMCxcbiAgICAgICAgYm9yZGVyOiAwLFxuICAgICAgICAvLyBpbXBvcnRhbnQhIHRoaXMgaGlkZXMgdGhlIGZsYXNoaW5nIGN1cnNvclxuICAgICAgICBjYXJldENvbG9yOiAndHJhbnNwYXJlbnQnLFxuICAgICAgICBmb250U2l6ZTogJ2luaGVyaXQnLFxuICAgICAgICBncmlkQXJlYTogJzEgLyAxIC8gMiAvIDMnLFxuICAgICAgICBvdXRsaW5lOiAwLFxuICAgICAgICBwYWRkaW5nOiAwLFxuICAgICAgICAvLyBpbXBvcnRhbnQhIHdpdGhvdXQgYHdpZHRoYCBicm93c2VycyB3b24ndCBhbGxvdyBmb2N1c1xuICAgICAgICB3aWR0aDogMSxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIGRlc2t0b3BcbiAgICAgICAgY29sb3I6ICd0cmFuc3BhcmVudCcsXG5cbiAgICAgICAgLy8gcmVtb3ZlIGN1cnNvciBvbiBtb2JpbGUgd2hpbHN0IG1haW50YWluaW5nIFwic2Nyb2xsIGludG8gdmlld1wiIGJlaGF2aW91clxuICAgICAgICBsZWZ0OiAtMTAwLFxuICAgICAgICBvcGFjaXR5OiAwLFxuICAgICAgICBwb3NpdGlvbjogJ3JlbGF0aXZlJyxcbiAgICAgICAgdHJhbnNmb3JtOiAnc2NhbGUoLjAxKScsXG4gICAgICB9fVxuICAgIC8+XG4gICk7XG59XG4iXX0= */")}))}var z$=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function G$(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,i=e.onTopArrive,a=e.onTopLeave,o=x.useRef(!1),s=x.useRef(!1),l=x.useRef(0),u=x.useRef(null),c=x.useCallback(function(p,b){if(u.current!==null){var v=u.current,y=v.scrollTop,w=v.scrollHeight,C=v.clientHeight,E=u.current,I=b>0,D=w-C-y,_=!1;D>b&&o.current&&(r&&r(p),o.current=!1),I&&s.current&&(a&&a(p),s.current=!1),I&&b>D?(n&&!o.current&&n(p),E.scrollTop=w,_=!0,o.current=!0):!I&&-b>y&&(i&&!s.current&&i(p),E.scrollTop=0,_=!0,s.current=!0),_&&z$(p)}},[n,r,i,a]),d=x.useCallback(function(p){c(p,p.deltaY)},[c]),h=x.useCallback(function(p){l.current=p.changedTouches[0].clientY},[]),f=x.useCallback(function(p){var b=l.current-p.changedTouches[0].clientY;c(p,b)},[c]),g=x.useCallback(function(p){if(p){var b=d6?{passive:!1}:!1;p.addEventListener("wheel",d,b),p.addEventListener("touchstart",h,b),p.addEventListener("touchmove",f,b)}},[f,h,d]),m=x.useCallback(function(p){p&&(p.removeEventListener("wheel",d,!1),p.removeEventListener("touchstart",h,!1),p.removeEventListener("touchmove",f,!1))},[f,h,d]);return x.useEffect(function(){if(t){var p=u.current;return g(p),function(){m(p)}}},[t,g,m]),function(p){u.current=p}}var Kg=["boxSizing","height","overflow","paddingRight","position"],Qg={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function qg(e){e.preventDefault()}function em(e){e.stopPropagation()}function tm(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;e===0?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function nm(){return"ontouchstart"in window||navigator.maxTouchPoints}var rm=!!(typeof window<"u"&&window.document&&window.document.createElement),Ca=0,Mi={capture:!1,passive:!1};function Z$(e){var t=e.isEnabled,n=e.accountForScrollbars,r=n===void 0?!0:n,i=x.useRef({}),a=x.useRef(null),o=x.useCallback(function(l){if(rm){var u=document.body,c=u&&u.style;if(r&&Kg.forEach(function(g){var m=c&&c[g];i.current[g]=m}),r&&Ca<1){var d=parseInt(i.current.paddingRight,10)||0,h=document.body?document.body.clientWidth:0,f=window.innerWidth-h+d||0;Object.keys(Qg).forEach(function(g){var m=Qg[g];c&&(c[g]=m)}),c&&(c.paddingRight="".concat(f,"px"))}u&&nm()&&(u.addEventListener("touchmove",qg,Mi),l&&(l.addEventListener("touchstart",tm,Mi),l.addEventListener("touchmove",em,Mi))),Ca+=1}},[r]),s=x.useCallback(function(l){if(rm){var u=document.body,c=u&&u.style;Ca=Math.max(Ca-1,0),r&&Ca<1&&Kg.forEach(function(d){var h=i.current[d];c&&(c[d]=h)}),u&&nm()&&(u.removeEventListener("touchmove",qg,Mi),l&&(l.removeEventListener("touchstart",tm,Mi),l.removeEventListener("touchmove",em,Mi)))}},[r]);return x.useEffect(function(){if(t){var l=a.current;return o(l),function(){s(l)}}},[t,o,s]),function(l){a.current=l}}function X$(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var Y$=function(t){var n=t.target;return n.ownerDocument.activeElement&&n.ownerDocument.activeElement.blur()},U$=process.env.NODE_ENV==="production"?{name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"}:{name:"bp8cua-ScrollManager",styles:"position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2ssIE1vdXNlRXZlbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjcm9sbExvY2sgZnJvbSAnLi91c2VTY3JvbGxMb2NrJztcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgcmVhZG9ubHkgY2hpbGRyZW46IChyZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PikgPT4gUmVhY3RFbGVtZW50O1xuICByZWFkb25seSBsb2NrRW5hYmxlZDogYm9vbGVhbjtcbiAgcmVhZG9ubHkgY2FwdHVyZUVuYWJsZWQ6IGJvb2xlYW47XG4gIHJlYWRvbmx5IG9uQm90dG9tQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Cb3R0b21MZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG4gIHJlYWRvbmx5IG9uVG9wQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Ub3BMZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG59XG5cbmNvbnN0IGJsdXJTZWxlY3RJbnB1dCA9IChldmVudDogTW91c2VFdmVudDxIVE1MRGl2RWxlbWVudD4pID0+IHtcbiAgY29uc3QgZWxlbWVudCA9IGV2ZW50LnRhcmdldCBhcyBIVE1MRGl2RWxlbWVudDtcbiAgcmV0dXJuIChcbiAgICBlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCAmJlxuICAgIChlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCBhcyBIVE1MRWxlbWVudCkuYmx1cigpXG4gICk7XG59O1xuXG5leHBvcnQgZGVmYXVsdCBmdW5jdGlvbiBTY3JvbGxNYW5hZ2VyKHtcbiAgY2hpbGRyZW4sXG4gIGxvY2tFbmFibGVkLFxuICBjYXB0dXJlRW5hYmxlZCA9IHRydWUsXG4gIG9uQm90dG9tQXJyaXZlLFxuICBvbkJvdHRvbUxlYXZlLFxuICBvblRvcEFycml2ZSxcbiAgb25Ub3BMZWF2ZSxcbn06IFByb3BzKSB7XG4gIGNvbnN0IHNldFNjcm9sbENhcHR1cmVUYXJnZXQgPSB1c2VTY3JvbGxDYXB0dXJlKHtcbiAgICBpc0VuYWJsZWQ6IGNhcHR1cmVFbmFibGVkLFxuICAgIG9uQm90dG9tQXJyaXZlLFxuICAgIG9uQm90dG9tTGVhdmUsXG4gICAgb25Ub3BBcnJpdmUsXG4gICAgb25Ub3BMZWF2ZSxcbiAgfSk7XG4gIGNvbnN0IHNldFNjcm9sbExvY2tUYXJnZXQgPSB1c2VTY3JvbGxMb2NrKHsgaXNFbmFibGVkOiBsb2NrRW5hYmxlZCB9KTtcblxuICBjb25zdCB0YXJnZXRSZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PiA9IChlbGVtZW50KSA9PiB7XG4gICAgc2V0U2Nyb2xsQ2FwdHVyZVRhcmdldChlbGVtZW50KTtcbiAgICBzZXRTY3JvbGxMb2NrVGFyZ2V0KGVsZW1lbnQpO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",toString:X$};function J$(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,i=r===void 0?!0:r,a=e.onBottomArrive,o=e.onBottomLeave,s=e.onTopArrive,l=e.onTopLeave,u=G$({isEnabled:i,onBottomArrive:a,onBottomLeave:o,onTopArrive:s,onTopLeave:l}),c=Z$({isEnabled:n}),d=function(f){u(f),c(f)};return ue(x.Fragment,null,n&&ue("div",{onClick:Y$,css:U$}),t(d))}function K$(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var Q$=process.env.NODE_ENV==="production"?{name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"}:{name:"5kkxb2-requiredInput-RequiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlcXVpcmVkSW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNJIiwiZmlsZSI6IlJlcXVpcmVkSW5wdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBGb2N1c0V2ZW50SGFuZGxlciwgRnVuY3Rpb25Db21wb25lbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmNvbnN0IFJlcXVpcmVkSW5wdXQ6IEZ1bmN0aW9uQ29tcG9uZW50PHtcbiAgcmVhZG9ubHkgbmFtZT86IHN0cmluZztcbiAgcmVhZG9ubHkgb25Gb2N1czogRm9jdXNFdmVudEhhbmRsZXI8SFRNTElucHV0RWxlbWVudD47XG59PiA9ICh7IG5hbWUsIG9uRm9jdXMgfSkgPT4gKFxuICA8aW5wdXRcbiAgICByZXF1aXJlZFxuICAgIG5hbWU9e25hbWV9XG4gICAgdGFiSW5kZXg9ey0xfVxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgb25Gb2N1cz17b25Gb2N1c31cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAncmVxdWlyZWRJbnB1dCcsXG4gICAgICBvcGFjaXR5OiAwLFxuICAgICAgcG9pbnRlckV2ZW50czogJ25vbmUnLFxuICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICBib3R0b206IDAsXG4gICAgICBsZWZ0OiAwLFxuICAgICAgcmlnaHQ6IDAsXG4gICAgICB3aWR0aDogJzEwMCUnLFxuICAgIH19XG4gICAgLy8gUHJldmVudCBgU3dpdGNoaW5nIGZyb20gdW5jb250cm9sbGVkIHRvIGNvbnRyb2xsZWRgIGVycm9yXG4gICAgdmFsdWU9XCJcIlxuICAgIG9uQ2hhbmdlPXsoKSA9PiB7fX1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */",toString:K$},q$=function(t){var n=t.name,r=t.onFocus;return ue("input",{required:!0,name:n,tabIndex:-1,"aria-hidden":"true",onFocus:r,css:Q$,value:"",onChange:function(){}})},e9=q$;function $f(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function t9(){return $f(/^iPhone/i)}function Y1(){return $f(/^Mac/i)}function n9(){return $f(/^iPad/i)||Y1()&&navigator.maxTouchPoints>1}function r9(){return t9()||n9()}function i9(){return Y1()||r9()}var a9=function(t){return t.label},o9=function(t){return t.label},s9=function(t){return t.value},l9=function(t){return!!t.isDisabled},u9={clearIndicator:W6,container:F6,control:J6,dropdownIndicator:j6,group:e$,groupHeading:n$,indicatorsContainer:k6,indicatorSeparator:G6,input:o$,loadingIndicator:Y6,loadingMessage:I6,menu:y6,menuList:D6,menuPortal:R6,multiValue:d$,multiValueLabel:f$,multiValueRemove:h$,noOptionsMessage:E6,option:y$,placeholder:w$,singleValue:E$,valueContainer:T6},c9={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},d9=4,U1=4,f9=38,h9=U1*2,g9={baseUnit:U1,controlHeight:f9,menuGutter:h9},Ju={borderRadius:d9,colors:c9,spacing:g9},m9={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Zg(),captureMenuScroll:!Zg(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:j$(),formatGroupLabel:a9,getOptionLabel:o9,getOptionValue:s9,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:l9,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!u6(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var n=t.count;return"".concat(n," result").concat(n!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function im(e,t,n,r){var i=Q1(e,t,n),a=q1(e,t,n),o=K1(e,t),s=El(e,t);return{type:"option",data:t,isDisabled:i,isSelected:a,label:o,value:s,index:r}}function Zs(e,t){return e.options.map(function(n,r){if("options"in n){var i=n.options.map(function(o,s){return im(e,o,t,s)}).filter(function(o){return om(e,o)});return i.length>0?{type:"group",data:n,options:i,index:r}:void 0}var a=im(e,n,t,r);return om(e,a)?a:void 0}).filter(f6)}function J1(e){return e.reduce(function(t,n){return n.type==="group"?t.push.apply(t,mf(n.options.map(function(r){return r.data}))):t.push(n.data),t},[])}function am(e,t){return e.reduce(function(n,r){return r.type==="group"?n.push.apply(n,mf(r.options.map(function(i){return{data:i.data,id:"".concat(t,"-").concat(r.index,"-").concat(i.index)}}))):n.push({data:r.data,id:"".concat(t,"-").concat(r.index)}),n},[])}function p9(e,t){return J1(Zs(e,t))}function om(e,t){var n=e.inputValue,r=n===void 0?"":n,i=t.data,a=t.isSelected,o=t.label,s=t.value;return(!tv(e)||!a)&&ev(e,{label:o,value:s,data:i},r)}function b9(e,t){var n=e.focusedValue,r=e.selectValue,i=r.indexOf(n);if(i>-1){var a=t.indexOf(n);if(a>-1)return n;if(i<t.length)return t[i]}return null}function v9(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}var Ku=function(t,n){var r,i=(r=t.find(function(a){return a.data===n}))===null||r===void 0?void 0:r.id;return i||null},K1=function(t,n){return t.getOptionLabel(n)},El=function(t,n){return t.getOptionValue(n)};function Q1(e,t,n){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,n):!1}function q1(e,t,n){if(n.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,n);var r=El(e,t);return n.some(function(i){return El(e,i)===r})}function ev(e,t,n){return e.filterOption?e.filterOption(t,n):!0}var tv=function(t){var n=t.hideSelectedOptions,r=t.isMulti;return n===void 0?r:n},y9=1,nv=function(e){kI(n,e);var t=OI(n);function n(r){var i;if(TI(this,n),i=t.call(this,r),i.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},i.blockOptionHover=!1,i.isComposing=!1,i.commonProps=void 0,i.initialTouchX=0,i.initialTouchY=0,i.openAfterFocus=!1,i.scrollToFocusedOptionOnUpdate=!1,i.userIsDragging=void 0,i.isAppleDevice=i9(),i.controlRef=null,i.getControlRef=function(l){i.controlRef=l},i.focusedOptionRef=null,i.getFocusedOptionRef=function(l){i.focusedOptionRef=l},i.menuListRef=null,i.getMenuListRef=function(l){i.menuListRef=l},i.inputRef=null,i.getInputRef=function(l){i.inputRef=l},i.focus=i.focusInput,i.blur=i.blurInput,i.onChange=function(l,u){var c=i.props,d=c.onChange,h=c.name;u.name=h,i.ariaOnChange(l,u),d(l,u)},i.setValue=function(l,u,c){var d=i.props,h=d.closeMenuOnSelect,f=d.isMulti,g=d.inputValue;i.onInputChange("",{action:"set-value",prevInputValue:g}),h&&(i.setState({inputIsHiddenAfterUpdate:!f}),i.onMenuClose()),i.setState({clearFocusValueOnUpdate:!0}),i.onChange(l,{action:u,option:c})},i.selectOption=function(l){var u=i.props,c=u.blurInputOnSelect,d=u.isMulti,h=u.name,f=i.state.selectValue,g=d&&i.isOptionSelected(l,f),m=i.isOptionDisabled(l,f);if(g){var p=i.getOptionValue(l);i.setValue(f.filter(function(b){return i.getOptionValue(b)!==p}),"deselect-option",l)}else if(!m)d?i.setValue([].concat(mf(f),[l]),"select-option",l):i.setValue(l,"select-option");else{i.ariaOnChange(l,{action:"select-option",option:l,name:h});return}c&&i.blurInput()},i.removeValue=function(l){var u=i.props.isMulti,c=i.state.selectValue,d=i.getOptionValue(l),h=c.filter(function(g){return i.getOptionValue(g)!==d}),f=ds(u,h,h[0]||null);i.onChange(f,{action:"remove-value",removedValue:l}),i.focusInput()},i.clearValue=function(){var l=i.state.selectValue;i.onChange(ds(i.props.isMulti,[],null),{action:"clear",removedValues:l})},i.popValue=function(){var l=i.props.isMulti,u=i.state.selectValue,c=u[u.length-1],d=u.slice(0,u.length-1),h=ds(l,d,d[0]||null);i.onChange(h,{action:"pop-value",removedValue:c})},i.getFocusedOptionId=function(l){return Ku(i.state.focusableOptionsWithIds,l)},i.getFocusableOptionsWithIds=function(){return am(Zs(i.props,i.state.selectValue),i.getElementId("option"))},i.getValue=function(){return i.state.selectValue},i.cx=function(){for(var l=arguments.length,u=new Array(l),c=0;c<l;c++)u[c]=arguments[c];return i6.apply(void 0,[i.props.classNamePrefix].concat(u))},i.getOptionLabel=function(l){return K1(i.props,l)},i.getOptionValue=function(l){return El(i.props,l)},i.getStyles=function(l,u){var c=i.props.unstyled,d=u9[l](u,c);d.boxSizing="border-box";var h=i.props.styles[l];return h?h(d,u):d},i.getClassNames=function(l,u){var c,d;return(c=(d=i.props.classNames)[l])===null||c===void 0?void 0:c.call(d,u)},i.getElementId=function(l){return"".concat(i.state.instancePrefix,"-").concat(l)},i.getComponents=function(){return $$(i.props)},i.buildCategorizedOptions=function(){return Zs(i.props,i.state.selectValue)},i.getCategorizedOptions=function(){return i.props.menuIsOpen?i.buildCategorizedOptions():[]},i.buildFocusableOptions=function(){return J1(i.buildCategorizedOptions())},i.getFocusableOptions=function(){return i.props.menuIsOpen?i.buildFocusableOptions():[]},i.ariaOnChange=function(l,u){i.setState({ariaSelection:ce({value:l},u)})},i.onMenuMouseDown=function(l){l.button===0&&(l.stopPropagation(),l.preventDefault(),i.focusInput())},i.onMenuMouseMove=function(l){i.blockOptionHover=!1},i.onControlMouseDown=function(l){if(!l.defaultPrevented){var u=i.props.openMenuOnClick;i.state.isFocused?i.props.menuIsOpen?l.target.tagName!=="INPUT"&&l.target.tagName!=="TEXTAREA"&&i.onMenuClose():u&&i.openMenu("first"):(u&&(i.openAfterFocus=!0),i.focusInput()),l.target.tagName!=="INPUT"&&l.target.tagName!=="TEXTAREA"&&l.preventDefault()}},i.onDropdownIndicatorMouseDown=function(l){if(!(l&&l.type==="mousedown"&&l.button!==0)&&!i.props.isDisabled){var u=i.props,c=u.isMulti,d=u.menuIsOpen;i.focusInput(),d?(i.setState({inputIsHiddenAfterUpdate:!c}),i.onMenuClose()):i.openMenu("first"),l.preventDefault()}},i.onClearIndicatorMouseDown=function(l){l&&l.type==="mousedown"&&l.button!==0||(i.clearValue(),l.preventDefault(),i.openAfterFocus=!1,l.type==="touchend"?i.focusInput():setTimeout(function(){return i.focusInput()}))},i.onScroll=function(l){typeof i.props.closeMenuOnScroll=="boolean"?l.target instanceof HTMLElement&&du(l.target)&&i.props.onMenuClose():typeof i.props.closeMenuOnScroll=="function"&&i.props.closeMenuOnScroll(l)&&i.props.onMenuClose()},i.onCompositionStart=function(){i.isComposing=!0},i.onCompositionEnd=function(){i.isComposing=!1},i.onTouchStart=function(l){var u=l.touches,c=u&&u.item(0);c&&(i.initialTouchX=c.clientX,i.initialTouchY=c.clientY,i.userIsDragging=!1)},i.onTouchMove=function(l){var u=l.touches,c=u&&u.item(0);if(c){var d=Math.abs(c.clientX-i.initialTouchX),h=Math.abs(c.clientY-i.initialTouchY),f=5;i.userIsDragging=d>f||h>f}},i.onTouchEnd=function(l){i.userIsDragging||(i.controlRef&&!i.controlRef.contains(l.target)&&i.menuListRef&&!i.menuListRef.contains(l.target)&&i.blurInput(),i.initialTouchX=0,i.initialTouchY=0)},i.onControlTouchEnd=function(l){i.userIsDragging||i.onControlMouseDown(l)},i.onClearIndicatorTouchEnd=function(l){i.userIsDragging||i.onClearIndicatorMouseDown(l)},i.onDropdownIndicatorTouchEnd=function(l){i.userIsDragging||i.onDropdownIndicatorMouseDown(l)},i.handleInputChange=function(l){var u=i.props.inputValue,c=l.currentTarget.value;i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange(c,{action:"input-change",prevInputValue:u}),i.props.menuIsOpen||i.onMenuOpen()},i.onInputFocus=function(l){i.props.onFocus&&i.props.onFocus(l),i.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(i.openAfterFocus||i.props.openMenuOnFocus)&&i.openMenu("first"),i.openAfterFocus=!1},i.onInputBlur=function(l){var u=i.props.inputValue;if(i.menuListRef&&i.menuListRef.contains(document.activeElement)){i.inputRef.focus();return}i.props.onBlur&&i.props.onBlur(l),i.onInputChange("",{action:"input-blur",prevInputValue:u}),i.onMenuClose(),i.setState({focusedValue:null,isFocused:!1})},i.onOptionHover=function(l){if(!(i.blockOptionHover||i.state.focusedOption===l)){var u=i.getFocusableOptions(),c=u.indexOf(l);i.setState({focusedOption:l,focusedOptionId:c>-1?i.getFocusedOptionId(l):null})}},i.shouldHideSelectedOptions=function(){return tv(i.props)},i.onValueInputFocus=function(l){l.preventDefault(),l.stopPropagation(),i.focus()},i.onKeyDown=function(l){var u=i.props,c=u.isMulti,d=u.backspaceRemovesValue,h=u.escapeClearsValue,f=u.inputValue,g=u.isClearable,m=u.isDisabled,p=u.menuIsOpen,b=u.onKeyDown,v=u.tabSelectsValue,y=u.openMenuOnFocus,w=i.state,C=w.focusedOption,E=w.focusedValue,I=w.selectValue;if(!m&&!(typeof b=="function"&&(b(l),l.defaultPrevented))){switch(i.blockOptionHover=!0,l.key){case"ArrowLeft":if(!c||f)return;i.focusValue("previous");break;case"ArrowRight":if(!c||f)return;i.focusValue("next");break;case"Delete":case"Backspace":if(f)return;if(E)i.removeValue(E);else{if(!d)return;c?i.popValue():g&&i.clearValue()}break;case"Tab":if(i.isComposing||l.shiftKey||!p||!v||!C||y&&i.isOptionSelected(C,I))return;i.selectOption(C);break;case"Enter":if(l.keyCode===229)break;if(p){if(!C||i.isComposing)return;i.selectOption(C);break}return;case"Escape":p?(i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange("",{action:"menu-close",prevInputValue:f}),i.onMenuClose()):g&&h&&i.clearValue();break;case" ":if(f)return;if(!p){i.openMenu("first");break}if(!C)return;i.selectOption(C);break;case"ArrowUp":p?i.focusOption("up"):i.openMenu("last");break;case"ArrowDown":p?i.focusOption("down"):i.openMenu("first");break;case"PageUp":if(!p)return;i.focusOption("pageup");break;case"PageDown":if(!p)return;i.focusOption("pagedown");break;case"Home":if(!p)return;i.focusOption("first");break;case"End":if(!p)return;i.focusOption("last");break;default:return}l.preventDefault()}},i.state.instancePrefix="react-select-"+(i.props.instanceId||++y9),i.state.selectValue=zg(r.value),r.menuIsOpen&&i.state.selectValue.length){var a=i.getFocusableOptionsWithIds(),o=i.buildFocusableOptions(),s=o.indexOf(i.state.selectValue[0]);i.state.focusableOptionsWithIds=a,i.state.focusedOption=o[s],i.state.focusedOptionId=Ku(a,o[s])}return i}return MI(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&Gg(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(i){var a=this.props,o=a.isDisabled,s=a.menuIsOpen,l=this.state.isFocused;(l&&!o&&i.isDisabled||l&&s&&!i.menuIsOpen)&&this.focusInput(),l&&o&&!i.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!l&&!o&&i.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(Gg(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(i,a){this.props.onInputChange(i,a)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(i){var a=this,o=this.state,s=o.selectValue,l=o.isFocused,u=this.buildFocusableOptions(),c=i==="first"?0:u.length-1;if(!this.props.isMulti){var d=u.indexOf(s[0]);d>-1&&(c=d)}this.scrollToFocusedOptionOnUpdate=!(l&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:u[c],focusedOptionId:this.getFocusedOptionId(u[c])},function(){return a.onMenuOpen()})}},{key:"focusValue",value:function(i){var a=this.state,o=a.selectValue,s=a.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var l=o.indexOf(s);s||(l=-1);var u=o.length-1,c=-1;if(o.length){switch(i){case"previous":l===0?c=0:l===-1?c=u:c=l-1;break;case"next":l>-1&&l<u&&(c=l+1);break}this.setState({inputIsHidden:c!==-1,focusedValue:o[c]})}}}},{key:"focusOption",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",a=this.props.pageSize,o=this.state.focusedOption,s=this.getFocusableOptions();if(s.length){var l=0,u=s.indexOf(o);o||(u=-1),i==="up"?l=u>0?u-1:s.length-1:i==="down"?l=(u+1)%s.length:i==="pageup"?(l=u-a,l<0&&(l=0)):i==="pagedown"?(l=u+a,l>s.length-1&&(l=s.length-1)):i==="last"&&(l=s.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:s[l],focusedValue:null,focusedOptionId:this.getFocusedOptionId(s[l])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(Ju):ce(ce({},Ju),this.props.theme):Ju}},{key:"getCommonProps",value:function(){var i=this.clearValue,a=this.cx,o=this.getStyles,s=this.getClassNames,l=this.getValue,u=this.selectOption,c=this.setValue,d=this.props,h=d.isMulti,f=d.isRtl,g=d.options,m=this.hasValue();return{clearValue:i,cx:a,getStyles:o,getClassNames:s,getValue:l,hasValue:m,isMulti:h,isRtl:f,options:g,selectOption:u,selectProps:d,setValue:c,theme:this.getTheme()}}},{key:"hasValue",value:function(){var i=this.state.selectValue;return i.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var i=this.props,a=i.isClearable,o=i.isMulti;return a===void 0?o:a}},{key:"isOptionDisabled",value:function(i,a){return Q1(this.props,i,a)}},{key:"isOptionSelected",value:function(i,a){return q1(this.props,i,a)}},{key:"filterOption",value:function(i,a){return ev(this.props,i,a)}},{key:"formatOptionLabel",value:function(i,a){if(typeof this.props.formatOptionLabel=="function"){var o=this.props.inputValue,s=this.state.selectValue;return this.props.formatOptionLabel(i,{context:a,inputValue:o,selectValue:s})}else return this.getOptionLabel(i)}},{key:"formatGroupLabel",value:function(i){return this.props.formatGroupLabel(i)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var i=this.props,a=i.isDisabled,o=i.isSearchable,s=i.inputId,l=i.inputValue,u=i.tabIndex,c=i.form,d=i.menuIsOpen,h=i.required,f=this.getComponents(),g=f.Input,m=this.state,p=m.inputIsHidden,b=m.ariaSelection,v=this.commonProps,y=s||this.getElementId("input"),w=ce(ce(ce({"aria-autocomplete":"list","aria-expanded":d,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":h,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},d&&{"aria-controls":this.getElementId("listbox")}),!o&&{"aria-readonly":!0}),this.hasValue()?(b==null?void 0:b.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return o?j.createElement(g,de({},v,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:y,innerRef:this.getInputRef,isDisabled:a,isHidden:p,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:u,form:c,type:"text",value:l},w)):j.createElement(W$,de({id:y,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Dl,onFocus:this.onInputFocus,disabled:a,tabIndex:u,inputMode:"none",form:c,value:""},w))}},{key:"renderPlaceholderOrValue",value:function(){var i=this,a=this.getComponents(),o=a.MultiValue,s=a.MultiValueContainer,l=a.MultiValueLabel,u=a.MultiValueRemove,c=a.SingleValue,d=a.Placeholder,h=this.commonProps,f=this.props,g=f.controlShouldRenderValue,m=f.isDisabled,p=f.isMulti,b=f.inputValue,v=f.placeholder,y=this.state,w=y.selectValue,C=y.focusedValue,E=y.isFocused;if(!this.hasValue()||!g)return b?null:j.createElement(d,de({},h,{key:"placeholder",isDisabled:m,isFocused:E,innerProps:{id:this.getElementId("placeholder")}}),v);if(p)return w.map(function(D,_){var F=D===C,$="".concat(i.getOptionLabel(D),"-").concat(i.getOptionValue(D));return j.createElement(o,de({},h,{components:{Container:s,Label:l,Remove:u},isFocused:F,isDisabled:m,key:$,index:_,removeProps:{onClick:function(){return i.removeValue(D)},onTouchEnd:function(){return i.removeValue(D)},onMouseDown:function(M){M.preventDefault()}},data:D}),i.formatOptionLabel(D,"value"))});if(b)return null;var I=w[0];return j.createElement(c,de({},h,{data:I,isDisabled:m}),this.formatOptionLabel(I,"value"))}},{key:"renderClearIndicator",value:function(){var i=this.getComponents(),a=i.ClearIndicator,o=this.commonProps,s=this.props,l=s.isDisabled,u=s.isLoading,c=this.state.isFocused;if(!this.isClearable()||!a||l||!this.hasValue()||u)return null;var d={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return j.createElement(a,de({},o,{innerProps:d,isFocused:c}))}},{key:"renderLoadingIndicator",value:function(){var i=this.getComponents(),a=i.LoadingIndicator,o=this.commonProps,s=this.props,l=s.isDisabled,u=s.isLoading,c=this.state.isFocused;if(!a||!u)return null;var d={"aria-hidden":"true"};return j.createElement(a,de({},o,{innerProps:d,isDisabled:l,isFocused:c}))}},{key:"renderIndicatorSeparator",value:function(){var i=this.getComponents(),a=i.DropdownIndicator,o=i.IndicatorSeparator;if(!a||!o)return null;var s=this.commonProps,l=this.props.isDisabled,u=this.state.isFocused;return j.createElement(o,de({},s,{isDisabled:l,isFocused:u}))}},{key:"renderDropdownIndicator",value:function(){var i=this.getComponents(),a=i.DropdownIndicator;if(!a)return null;var o=this.commonProps,s=this.props.isDisabled,l=this.state.isFocused,u={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return j.createElement(a,de({},o,{innerProps:u,isDisabled:s,isFocused:l}))}},{key:"renderMenu",value:function(){var i=this,a=this.getComponents(),o=a.Group,s=a.GroupHeading,l=a.Menu,u=a.MenuList,c=a.MenuPortal,d=a.LoadingMessage,h=a.NoOptionsMessage,f=a.Option,g=this.commonProps,m=this.state.focusedOption,p=this.props,b=p.captureMenuScroll,v=p.inputValue,y=p.isLoading,w=p.loadingMessage,C=p.minMenuHeight,E=p.maxMenuHeight,I=p.menuIsOpen,D=p.menuPlacement,_=p.menuPosition,F=p.menuPortalTarget,$=p.menuShouldBlockScroll,P=p.menuShouldScrollIntoView,M=p.noOptionsMessage,A=p.onMenuScrollToTop,B=p.onMenuScrollToBottom;if(!I)return null;var T=function(W,q){var Y=W.type,N=W.data,G=W.isDisabled,J=W.isSelected,re=W.label,fe=W.value,le=m===N,z=G?void 0:function(){return i.onOptionHover(N)},Ae=G?void 0:function(){return i.selectOption(N)},Me="".concat(i.getElementId("option"),"-").concat(q),Xe={id:Me,onClick:Ae,onMouseMove:z,onMouseOver:z,tabIndex:-1,role:"option","aria-selected":i.isAppleDevice?void 0:J};return j.createElement(f,de({},g,{innerProps:Xe,data:N,isDisabled:G,isSelected:J,key:Me,label:re,type:Y,value:fe,isFocused:le,innerRef:le?i.getFocusedOptionRef:void 0}),i.formatOptionLabel(W.data,"menu"))},R;if(this.hasOptions())R=this.getCategorizedOptions().map(function(V){if(V.type==="group"){var W=V.data,q=V.options,Y=V.index,N="".concat(i.getElementId("group"),"-").concat(Y),G="".concat(N,"-heading");return j.createElement(o,de({},g,{key:N,data:W,options:q,Heading:s,headingProps:{id:G,data:V.data},label:i.formatGroupLabel(V.data)}),V.options.map(function(J){return T(J,"".concat(Y,"-").concat(J.index))}))}else if(V.type==="option")return T(V,"".concat(V.index))});else if(y){var O=w({inputValue:v});if(O===null)return null;R=j.createElement(d,g,O)}else{var H=M({inputValue:v});if(H===null)return null;R=j.createElement(h,g,H)}var L={minMenuHeight:C,maxMenuHeight:E,menuPlacement:D,menuPosition:_,menuShouldScrollIntoView:P},Z=j.createElement(x6,de({},g,L),function(V){var W=V.ref,q=V.placerProps,Y=q.placement,N=q.maxHeight;return j.createElement(l,de({},g,L,{innerRef:W,innerProps:{onMouseDown:i.onMenuMouseDown,onMouseMove:i.onMenuMouseMove},isLoading:y,placement:Y}),j.createElement(J$,{captureEnabled:b,onTopArrive:A,onBottomArrive:B,lockEnabled:$},function(G){return j.createElement(u,de({},g,{innerRef:function(re){i.getMenuListRef(re),G(re)},innerProps:{role:"listbox","aria-multiselectable":g.isMulti,id:i.getElementId("listbox")},isLoading:y,maxHeight:N,focusedOption:m}),R)}))});return F||_==="fixed"?j.createElement(c,de({},g,{appendTo:F,controlElement:this.controlRef,menuPlacement:D,menuPosition:_}),Z):Z}},{key:"renderFormField",value:function(){var i=this,a=this.props,o=a.delimiter,s=a.isDisabled,l=a.isMulti,u=a.name,c=a.required,d=this.state.selectValue;if(c&&!this.hasValue()&&!s)return j.createElement(e9,{name:u,onFocus:this.onValueInputFocus});if(!(!u||s))if(l)if(o){var h=d.map(function(m){return i.getOptionValue(m)}).join(o);return j.createElement("input",{name:u,type:"hidden",value:h})}else{var f=d.length>0?d.map(function(m,p){return j.createElement("input",{key:"i-".concat(p),name:u,type:"hidden",value:i.getOptionValue(m)})}):j.createElement("input",{name:u,type:"hidden",value:""});return j.createElement("div",null,f)}else{var g=d[0]?this.getOptionValue(d[0]):"";return j.createElement("input",{name:u,type:"hidden",value:g})}}},{key:"renderLiveRegion",value:function(){var i=this.commonProps,a=this.state,o=a.ariaSelection,s=a.focusedOption,l=a.focusedValue,u=a.isFocused,c=a.selectValue,d=this.getFocusableOptions();return j.createElement(V$,de({},i,{id:this.getElementId("live-region"),ariaSelection:o,focusedOption:s,focusedValue:l,isFocused:u,selectValue:c,focusableOptions:d,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var i=this.getComponents(),a=i.Control,o=i.IndicatorsContainer,s=i.SelectContainer,l=i.ValueContainer,u=this.props,c=u.className,d=u.id,h=u.isDisabled,f=u.menuIsOpen,g=this.state.isFocused,m=this.commonProps=this.getCommonProps();return j.createElement(s,de({},m,{className:c,innerProps:{id:d,onKeyDown:this.onKeyDown},isDisabled:h,isFocused:g}),this.renderLiveRegion(),j.createElement(a,de({},m,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:h,isFocused:g,menuIsOpen:f}),j.createElement(l,de({},m,{isDisabled:h}),this.renderPlaceholderOrValue(),this.renderInput()),j.createElement(o,de({},m,{isDisabled:h}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(i,a){var o=a.prevProps,s=a.clearFocusValueOnUpdate,l=a.inputIsHiddenAfterUpdate,u=a.ariaSelection,c=a.isFocused,d=a.prevWasFocused,h=a.instancePrefix,f=i.options,g=i.value,m=i.menuIsOpen,p=i.inputValue,b=i.isMulti,v=zg(g),y={};if(o&&(g!==o.value||f!==o.options||m!==o.menuIsOpen||p!==o.inputValue)){var w=m?p9(i,v):[],C=m?am(Zs(i,v),"".concat(h,"-option")):[],E=s?b9(a,v):null,I=v9(a,w),D=Ku(C,I);y={selectValue:v,focusedOption:I,focusedOptionId:D,focusableOptionsWithIds:C,focusedValue:E,clearFocusValueOnUpdate:!1}}var _=l!=null&&i!==o?{inputIsHidden:l,inputIsHiddenAfterUpdate:void 0}:{},F=u,$=c&&d;return c&&!$&&(F={value:ds(b,v,v[0]||null),options:v,action:"initial-input-focus"},$=!d),(u==null?void 0:u.action)==="initial-input-focus"&&(F=null),ce(ce(ce({},y),_),{},{prevProps:i,ariaSelection:F,prevWasFocused:$})}}]),n}(x.Component);nv.defaultProps=m9;var x9=x.forwardRef(function(e,t){var n=PI(e);return j.createElement(nv,de({ref:t},n))}),C9=x9;const w9="_container_26hat_1",Qu={container:w9,"error-payhere":"_error-payhere_26hat_4","error-laba":"_error-laba_26hat_7"},D9={control:e=>({...e,border:"1px solid #D6D6D6","&:hover":{borderColor:"#0163C8"},borderRadius:"4px",outline:"none",boxShadow:"none",color:"#898989",backgroundColor:"white",margin:"0px",cursor:"text",minHeight:32}),dropdownIndicator:e=>({...e,padding:"0px 8px"}),menu:e=>({...e,position:"static",boxShadow:"none",marginTop:"0px"}),option:(e,t)=>({...e,cursor:"pointer",background:t.isSelected?"#F0F7FF":"white",color:t.isSelected?"#0163C8":e.color,"&:hover":{background:"#F0F7FF",color:"#0163C8"}}),group:e=>({...e,padding:0})},S9={control:()=>({display:"none"}),dropdownIndicator:e=>({...e,padding:"0px 8px"}),menu:e=>({...e,position:"static",boxShadow:"none",marginTop:"0px"}),option:(e,t)=>({...e,cursor:"pointer",background:t.isSelected?"#F0F7FF":"white",color:t.isSelected?"#0163C8":e.color,"&:hover":{background:"#F0F7FF",color:"#0163C8"}}),group:e=>({...e,padding:0})},rv=x.forwardRef((e,t)=>{const{width:n,children:r,components:i,classNameContainer:a="",classNameContainerShowSelect:o="",classNameContainerSelect:s="",classNameLabelError:l="",error:u,onChange:c,externalValue:d=!1,defaultValueButtonDropdown:h={},autoClose:f=!0,onMenuOpen:g=()=>{},autoCloseOutside:m=!0,styleInnerPopper:p={},onMenuClose:b=()=>{},zIndexPopper:v=0,id:y="select-dropdown-container",idPopover:w="select-dropdown-container-popover",useAutoPlacement:C,flipOptions:E,autoPlacementOptions:I,withSearch:D=!1,floatingOptions:_={},offsetPopover:F=5,selectProps:$={},errorLabel:P="payhere",actionValueChange:M=()=>{},...A}=e,B={error:{laba:Qu["error-laba"],payhere:Qu["error-payhere"]}},T=x.useRef(null),R=x.useRef(null),[O,H]=x.useState(""),[L,Z]=x.useState(!1),[V,W]=x.useState({}),[q,Y]=x.useState(0),N=z=>{var Ae;(Ae=R.current)==null||Ae.setShow(z),Z(z)},G=()=>{if(d)return e.isMulti?h:[h]},J=z=>{var Ae;(Ae=R.current)==null||Ae.handlerShow(z),Y(T.current.offsetWidth),Z(Me=>!Me)},re=()=>{var z;m&&((z=R.current)==null||z.setShow(!1))},fe=(z,Ae)=>{var Me;f&&(Z(!1),(Me=R.current)==null||Me.setShow(!1)),W(z),typeof c=="function"&&c(z,Ae)},le=()=>{T.current&&Y(T.current.offsetWidth)};return jo(()=>{d&&W(h),M(h)},[d,h]),x.useEffect(()=>{L?g():L||(b(),H(""))},[L]),x.useImperativeHandle(t,()=>({selectValue:V,setSelectValue:W,handlerClose:re,handlerShow:J,show:L,setShow:N}),[L,gf(V)]),x.useEffect(()=>(window.addEventListener("resize",le),window.addEventListener("load",le),()=>{window.removeEventListener("resize",le),window.removeEventListener("load",le)}),[T]),S.jsxs("div",{id:y,className:`${Qu.container} ${a} ${L?`${o} open-popover`:null}`,ref:T,children:[r({selectValue:V,setSelectValue:W,handlerClose:re,handlerShow:J,show:L,setShow:N}),S.jsx(Ci,{ref:R,offset:F,useAutoPlacement:C,flipOptions:E,autoPlacementOptions:I,zIndex:v,styleInnerPopover:p,id:w,width:typeof n=="function"?n(q,V):n??q,className:s,floatingOptions:_,children:S.jsx(C9,{className:"1ru-w-full",defaultValue:G(),inputValue:O,onInputChange:(z,{action:Ae})=>{Ae==="input-change"&&H(z)},openMenuOnFocus:!0,autoFocus:!1,backspaceRemovesValue:!1,components:{IndicatorSeparator:null,...i},controlShouldRenderValue:!1,hideSelectedOptions:!1,isClearable:!1,menuIsOpen:!0,tabSelectsValue:!1,styles:D?D9:S9,noOptionsMessage:()=>"Tidak ada data.",onChange:fe,selectProps:{...$,setShowDropdown:N},...A})}),S.jsx("div",{className:`${B.error[P]} ${l}`,children:u})]})});rv.displayName="SelectDropdownContainer";function Ki(e,t){return e-t*Math.floor(e/t)}const iv=1721426;function ai(e,t,n,r){t=Wo(e,t);let i=t-1,a=-2;return n<=2?a=0:Dr(t)&&(a=-1),iv-1+365*i+Math.floor(i/4)-Math.floor(i/100)+Math.floor(i/400)+Math.floor((367*n-362)/12+a+r)}function Dr(e){return e%4===0&&(e%100!==0||e%400===0)}function Wo(e,t){return e==="BC"?1-t:t}function fu(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}const E9={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]};class sn{fromJulianDay(t){let n=t,r=n-iv,i=Math.floor(r/146097),a=Ki(r,146097),o=Math.floor(a/36524),s=Ki(a,36524),l=Math.floor(s/1461),u=Ki(s,1461),c=Math.floor(u/365),d=i*400+o*100+l*4+c+(o!==4&&c!==4?1:0),[h,f]=fu(d),g=n-ai(h,f,1,1),m=2;n<ai(h,f,3,1)?m=0:Dr(f)&&(m=1);let p=Math.floor(((g+m)*12+373)/367),b=n-ai(h,f,p,1)+1;return new lt(h,f,p,b)}toJulianDay(t){return ai(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return E9[Dr(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return Dr(t.year)?366:365}getYearsInEra(t){return 9999}getEras(){return["BC","AD"]}isInverseEra(t){return t.era==="BC"}balanceDate(t){t.year<=0&&(t.era=t.era==="BC"?"AD":"BC",t.year=1-t.year)}constructor(){this.identifier="gregory"}}const I9={"001":1,AD:1,AE:6,AF:6,AI:1,AL:1,AM:1,AN:1,AR:1,AT:1,AU:1,AX:1,AZ:1,BA:1,BE:1,BG:1,BH:6,BM:1,BN:1,BY:1,CH:1,CL:1,CM:1,CN:1,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DZ:6,EC:1,EE:1,EG:6,ES:1,FI:1,FJ:1,FO:1,FR:1,GB:1,GE:1,GF:1,GP:1,GR:1,HR:1,HU:1,IE:1,IQ:6,IR:6,IS:1,IT:1,JO:6,KG:1,KW:6,KZ:1,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MK:1,MN:1,MQ:1,MV:5,MY:1,NL:1,NO:1,NZ:1,OM:6,PL:1,QA:6,RE:1,RO:1,RS:1,RU:1,SD:6,SE:1,SI:1,SK:1,SM:1,SY:6,TJ:1,TM:1,TR:1,UA:1,UY:1,UZ:1,VA:1,VN:1,XK:1};function ht(e,t){return t=bt(t,e.calendar),e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function qc(e,t){return e.calendar.identifier===t.calendar.identifier&&e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function _9(e,t){return ht(e,Rf(t))}function hu(e,t){let n=e.calendar.toJulianDay(e),r=Math.ceil(n+1-P9(t))%7;return r<0&&(r+=7),r}function $9(e){return ar(Date.now(),e)}function Rf(e){return on($9(e))}function av(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function ov(e,t){return sm(e)-sm(t)}function sm(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}let qu=null;function gi(){return qu==null&&(qu=new Intl.DateTimeFormat().resolvedOptions().timeZone),qu}function zo(e){return e.subtract({days:e.day-1})}function ed(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})}function R9(e){return zo(e.subtract({months:e.month-1}))}function bo(e,t){let n=hu(e,t);return e.subtract({days:n})}function A9(e,t){return bo(e,t).add({days:6})}const lm=new Map;function F9(e){if(Intl.Locale){let n=lm.get(e);return n||(n=new Intl.Locale(e).maximize().region,n&&lm.set(e,n)),n}let t=e.split("-")[1];return t==="u"?void 0:t}function P9(e){let t=F9(e);return t&&I9[t]||0}function sv(e,t){let n=e.calendar.getDaysInMonth(e);return Math.ceil((hu(zo(e),t)+n)/7)}function Af(e,t){return e&&t?e.compare(t)<=0?e:t:e||t}function Ff(e,t){return e&&t?e.compare(t)>=0?e:t:e||t}function sa(e){e=bt(e,new sn);let t=Wo(e.era,e.year);return lv(t,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function lv(e,t,n,r,i,a,o){let s=new Date;return s.setUTCHours(r,i,a,o),s.setUTCFullYear(e,t-1,n),s.getTime()}function td(e,t){if(t==="UTC")return 0;if(e>0&&t===gi())return new Date(e).getTimezoneOffset()*-6e4;let{year:n,month:r,day:i,hour:a,minute:o,second:s}=uv(e,t);return lv(n,r,i,a,o,s,0)-Math.floor(e/1e3)*1e3}const um=new Map;function uv(e,t){let n=um.get(t);n||(n=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),um.set(t,n));let r=n.formatToParts(new Date(e)),i={};for(let a of r)a.type!=="literal"&&(i[a.type]=a.value);return{year:i.era==="BC"||i.era==="B"?-i.year+1:+i.year,month:+i.month,day:+i.day,hour:i.hour==="24"?0:+i.hour,minute:+i.minute,second:+i.second}}const cm=864e5;function T9(e,t,n,r){return(n===r?[n]:[n,r]).filter(a=>M9(e,t,a))}function M9(e,t,n){let r=uv(n,t);return e.year===r.year&&e.month===r.month&&e.day===r.day&&e.hour===r.hour&&e.minute===r.minute&&e.second===r.second}function er(e,t,n="compatible"){let r=Pr(e);if(t==="UTC")return sa(r);if(t===gi()&&n==="compatible"){r=bt(r,new sn);let l=new Date,u=Wo(r.era,r.year);return l.setFullYear(u,r.month-1,r.day),l.setHours(r.hour,r.minute,r.second,r.millisecond),l.getTime()}let i=sa(r),a=td(i-cm,t),o=td(i+cm,t),s=T9(r,t,i-a,i-o);if(s.length===1)return s[0];if(s.length>1)switch(n){case"compatible":case"earlier":return s[0];case"later":return s[s.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(n){case"earlier":return Math.min(i-a,i-o);case"compatible":case"later":return Math.max(i-a,i-o);case"reject":throw new RangeError("No such absolute time found")}}function cv(e,t,n="compatible"){return new Date(er(e,t,n))}function ar(e,t){let n=td(e,t),r=new Date(e+n),i=r.getUTCFullYear(),a=r.getUTCMonth()+1,o=r.getUTCDate(),s=r.getUTCHours(),l=r.getUTCMinutes(),u=r.getUTCSeconds(),c=r.getUTCMilliseconds();return new yo(i,a,o,t,n,s,l,u,c)}function on(e){return new lt(e.calendar,e.era,e.year,e.month,e.day)}function Pr(e,t){let n=0,r=0,i=0,a=0;if("timeZone"in e)({hour:n,minute:r,second:i,millisecond:a}=e);else if("hour"in e&&!t)return e;return t&&({hour:n,minute:r,second:i,millisecond:a}=t),new Il(e.calendar,e.era,e.year,e.month,e.day,n,r,i,a)}function bt(e,t){if(e.calendar.identifier===t.identifier)return e;let n=t.fromJulianDay(e.calendar.toJulianDay(e)),r=e.copy();return r.calendar=t,r.era=n.era,r.year=n.year,r.month=n.month,r.day=n.day,mi(r),r}function k9(e,t,n){if(e instanceof yo)return e.timeZone===t?e:V9(e,t);let r=er(e,t,n);return ar(r,t)}function B9(e){let t=sa(e)-e.offset;return new Date(t)}function V9(e,t){let n=sa(e)-e.offset;return bt(ar(n,t),e.calendar)}const wa=36e5;function gu(e,t){let n=e.copy(),r="hour"in n?gv(n,t):0;nd(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,rd(n),dv(n),n.day+=(t.weeks||0)*7,n.day+=t.days||0,n.day+=r,O9(n),n.calendar.balanceDate&&n.calendar.balanceDate(n),n.year<1&&(n.year=1,n.month=1,n.day=1);let i=n.calendar.getYearsInEra(n);if(n.year>i){var a,o;let l=(a=(o=n.calendar).isInverseEra)===null||a===void 0?void 0:a.call(o,n);n.year=i,n.month=l?1:n.calendar.getMonthsInYear(n),n.day=l?1:n.calendar.getDaysInMonth(n)}n.month<1&&(n.month=1,n.day=1);let s=n.calendar.getMonthsInYear(n);return n.month>s&&(n.month=s,n.day=n.calendar.getDaysInMonth(n)),n.day=Math.max(1,Math.min(n.calendar.getDaysInMonth(n),n.day)),n}function nd(e,t){var n,r;!((n=(r=e.calendar).isInverseEra)===null||n===void 0)&&n.call(r,e)&&(t=-t),e.year+=t}function rd(e){for(;e.month<1;)nd(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,nd(e,1)}function O9(e){for(;e.day<1;)e.month--,rd(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,rd(e)}function dv(e){e.month=Math.max(1,Math.min(e.calendar.getMonthsInYear(e),e.month)),e.day=Math.max(1,Math.min(e.calendar.getDaysInMonth(e),e.day))}function mi(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),dv(e)}function Pf(e){let t={};for(let n in e)typeof e[n]=="number"&&(t[n]=-e[n]);return t}function fv(e,t){return gu(e,Pf(t))}function Tf(e,t){let n=e.copy();return t.era!=null&&(n.era=t.era),t.year!=null&&(n.year=t.year),t.month!=null&&(n.month=t.month),t.day!=null&&(n.day=t.day),mi(n),n}function vo(e,t){let n=e.copy();return t.hour!=null&&(n.hour=t.hour),t.minute!=null&&(n.minute=t.minute),t.second!=null&&(n.second=t.second),t.millisecond!=null&&(n.millisecond=t.millisecond),hv(n),n}function N9(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=fs(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=fs(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=fs(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=fs(e.hour,24),t}function hv(e){e.millisecond=Math.max(0,Math.min(e.millisecond,1e3)),e.second=Math.max(0,Math.min(e.second,59)),e.minute=Math.max(0,Math.min(e.minute,59)),e.hour=Math.max(0,Math.min(e.hour,23))}function fs(e,t){let n=e%t;return n<0&&(n+=t),n}function gv(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,N9(e)}function mv(e,t){let n=e.copy();return gv(n,t),n}function L9(e,t){return mv(e,Pf(t))}function Mf(e,t,n,r){let i=e.copy();switch(t){case"era":{let s=e.calendar.getEras(),l=s.indexOf(e.era);if(l<0)throw new Error("Invalid era: "+e.era);l=or(l,n,0,s.length-1,r==null?void 0:r.round),i.era=s[l],mi(i);break}case"year":var a,o;!((a=(o=i.calendar).isInverseEra)===null||a===void 0)&&a.call(o,i)&&(n=-n),i.year=or(e.year,n,-1/0,9999,r==null?void 0:r.round),i.year===-1/0&&(i.year=1),i.calendar.balanceYearMonth&&i.calendar.balanceYearMonth(i,e);break;case"month":i.month=or(e.month,n,1,e.calendar.getMonthsInYear(e),r==null?void 0:r.round);break;case"day":i.day=or(e.day,n,1,e.calendar.getDaysInMonth(e),r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(i),mi(i),i}function kf(e,t,n,r){let i=e.copy();switch(t){case"hour":{let a=e.hour,o=0,s=23;if((r==null?void 0:r.hourCycle)===12){let l=a>=12;o=l?12:0,s=l?23:11}i.hour=or(a,n,o,s,r==null?void 0:r.round);break}case"minute":i.minute=or(e.minute,n,0,59,r==null?void 0:r.round);break;case"second":i.second=or(e.second,n,0,59,r==null?void 0:r.round);break;case"millisecond":i.millisecond=or(e.millisecond,n,0,999,r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return i}function or(e,t,n,r,i=!1){if(i){e+=Math.sign(t),e<n&&(e=r);let a=Math.abs(t);t>0?e=Math.ceil(e/a)*a:e=Math.floor(e/a)*a,e>r&&(e=n)}else e+=t,e<n?e=r-(n-e-1):e>r&&(e=n+(e-r-1));return e}function pv(e,t){let n;if(t.years!=null&&t.years!==0||t.months!=null&&t.months!==0||t.weeks!=null&&t.weeks!==0||t.days!=null&&t.days!==0){let i=gu(Pr(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});n=er(i,e.timeZone)}else n=sa(e)-e.offset;n+=t.milliseconds||0,n+=(t.seconds||0)*1e3,n+=(t.minutes||0)*6e4,n+=(t.hours||0)*36e5;let r=ar(n,e.timeZone);return bt(r,e.calendar)}function j9(e,t){return pv(e,Pf(t))}function H9(e,t,n,r){switch(t){case"hour":{let i=0,a=23;if((r==null?void 0:r.hourCycle)===12){let g=e.hour>=12;i=g?12:0,a=g?23:11}let o=Pr(e),s=bt(vo(o,{hour:i}),new sn),l=[er(s,e.timeZone,"earlier"),er(s,e.timeZone,"later")].filter(g=>ar(g,e.timeZone).day===s.day)[0],u=bt(vo(o,{hour:a}),new sn),c=[er(u,e.timeZone,"earlier"),er(u,e.timeZone,"later")].filter(g=>ar(g,e.timeZone).day===u.day).pop(),d=sa(e)-e.offset,h=Math.floor(d/wa),f=d%wa;return d=or(h,n,Math.floor(l/wa),Math.floor(c/wa),r==null?void 0:r.round)*wa+f,bt(ar(d,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return kf(e,t,n,r);case"era":case"year":case"month":case"day":{let i=Mf(Pr(e),t,n,r),a=er(i,e.timeZone);return bt(ar(a,e.timeZone),e.calendar)}default:throw new Error("Unsupported field "+t)}}function W9(e,t,n){let r=Pr(e),i=vo(Tf(r,t),t);if(i.compare(r)===0)return e;let a=er(i,e.timeZone,n);return bt(ar(a,e.timeZone),e.calendar)}const z9=/^(\d{4})-(\d{2})-(\d{2})$/;function Bf(e){let t=e.match(z9);if(!t)throw new Error("Invalid ISO 8601 date string: "+e);let n=new lt(ec(t[1],0,9999),ec(t[2],1,12),1);return n.day=ec(t[3],0,n.calendar.getDaysInMonth(n)),n}function ec(e,t,n){let r=Number(e);if(r<t||r>n)throw new RangeError(`Value out of range: ${t} <= ${r} <= ${n}`);return r}function bv(e){return`${String(e.hour).padStart(2,"0")}:${String(e.minute).padStart(2,"0")}:${String(e.second).padStart(2,"0")}${e.millisecond?String(e.millisecond/1e3).slice(1):""}`}function vv(e){let t=bt(e,new sn);return`${String(t.year).padStart(4,"0")}-${String(t.month).padStart(2,"0")}-${String(t.day).padStart(2,"0")}`}function yv(e){return`${vv(e)}T${bv(e)}`}function G9(e){let t=Math.sign(e)<0?"-":"+";e=Math.abs(e);let n=Math.floor(e/36e5),r=e%36e5/6e4;return`${t}${String(n).padStart(2,"0")}:${String(r).padStart(2,"0")}`}function Z9(e){return`${yv(e)}${G9(e.offset)}[${e.timeZone}]`}function X9(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Go(e,t,n){X9(e,t),t.set(e,n)}function Vf(e){let t=typeof e[0]=="object"?e.shift():new sn,n;if(typeof e[0]=="string")n=e.shift();else{let o=t.getEras();n=o[o.length-1]}let r=e.shift(),i=e.shift(),a=e.shift();return[t,n,r,i,a]}var Y9=new WeakMap;class lt{copy(){return this.era?new lt(this.calendar,this.era,this.year,this.month,this.day):new lt(this.calendar,this.year,this.month,this.day)}add(t){return gu(this,t)}subtract(t){return fv(this,t)}set(t){return Tf(this,t)}cycle(t,n,r){return Mf(this,t,n,r)}toDate(t){return cv(this,t)}toString(){return vv(this)}compare(t){return av(this,t)}constructor(...t){Go(this,Y9,{writable:!0,value:void 0});let[n,r,i,a,o]=Vf(t);this.calendar=n,this.era=r,this.year=i,this.month=a,this.day=o,mi(this)}}var U9=new WeakMap;class Of{copy(){return new Of(this.hour,this.minute,this.second,this.millisecond)}add(t){return mv(this,t)}subtract(t){return L9(this,t)}set(t){return vo(this,t)}cycle(t,n,r){return kf(this,t,n,r)}toString(){return bv(this)}compare(t){return ov(this,t)}constructor(t=0,n=0,r=0,i=0){Go(this,U9,{writable:!0,value:void 0}),this.hour=t,this.minute=n,this.second=r,this.millisecond=i,hv(this)}}var J9=new WeakMap;class Il{copy(){return this.era?new Il(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new Il(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(t){return gu(this,t)}subtract(t){return fv(this,t)}set(t){return Tf(vo(this,t),t)}cycle(t,n,r){switch(t){case"era":case"year":case"month":case"day":return Mf(this,t,n,r);default:return kf(this,t,n,r)}}toDate(t,n){return cv(this,t,n)}toString(){return yv(this)}compare(t){let n=av(this,t);return n===0?ov(this,Pr(t)):n}constructor(...t){Go(this,J9,{writable:!0,value:void 0});let[n,r,i,a,o]=Vf(t);this.calendar=n,this.era=r,this.year=i,this.month=a,this.day=o,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,mi(this)}}var K9=new WeakMap;class yo{copy(){return this.era?new yo(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new yo(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(t){return pv(this,t)}subtract(t){return j9(this,t)}set(t,n){return W9(this,t,n)}cycle(t,n,r){return H9(this,t,n,r)}toDate(){return B9(this)}toString(){return Z9(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(t){return this.toDate().getTime()-k9(t,this.timeZone).toDate().getTime()}constructor(...t){Go(this,K9,{writable:!0,value:void 0});let[n,r,i,a,o]=Vf(t),s=t.shift(),l=t.shift();this.calendar=n,this.era=r,this.year=i,this.month=a,this.day=o,this.timeZone=s,this.offset=l,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,mi(this)}}const Qi=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],Q9=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],Xs=[1867,1911,1925,1988,2018],yr=["meiji","taisho","showa","heisei","reiwa"];function dm(e){const t=Qi.findIndex(([n,r,i])=>e.year<n||e.year===n&&e.month<r||e.year===n&&e.month===r&&e.day<i);return t===-1?Qi.length-1:t===0?0:t-1}function tc(e){let t=Xs[yr.indexOf(e.era)];if(!t)throw new Error("Unknown era: "+e.era);return new lt(e.year+t,e.month,e.day)}class q9 extends sn{fromJulianDay(t){let n=super.fromJulianDay(t),r=dm(n);return new lt(this,yr[r],n.year-Xs[r],n.month,n.day)}toJulianDay(t){return super.toJulianDay(tc(t))}balanceDate(t){let n=tc(t),r=dm(n);yr[r]!==t.era&&(t.era=yr[r],t.year=n.year-Xs[r]),this.constrainDate(t)}constrainDate(t){let n=yr.indexOf(t.era),r=Q9[n];if(r!=null){let[i,a,o]=r,s=i-Xs[n];t.year=Math.max(1,Math.min(s,t.year)),t.year===s&&(t.month=Math.min(a,t.month),t.month===a&&(t.day=Math.min(o,t.day)))}if(t.year===1&&n>=0){let[,i,a]=Qi[n];t.month=Math.max(i,t.month),t.month===i&&(t.day=Math.max(a,t.day))}}getEras(){return yr}getYearsInEra(t){let n=yr.indexOf(t.era),r=Qi[n],i=Qi[n+1];if(i==null)return 9999-r[0]+1;let a=i[0]-r[0];return(t.month<i[1]||t.month===i[1]&&t.day<i[2])&&a++,a}getDaysInMonth(t){return super.getDaysInMonth(tc(t))}getMinimumMonthInYear(t){let n=fm(t);return n?n[1]:1}getMinimumDayInMonth(t){let n=fm(t);return n&&t.month===n[1]?n[2]:1}constructor(...t){super(...t),this.identifier="japanese"}}function fm(e){if(e.year===1){let t=yr.indexOf(e.era);return Qi[t]}}const xv=-543;class eR extends sn{fromJulianDay(t){let n=super.fromJulianDay(t),r=Wo(n.era,n.year);return new lt(this,r-xv,n.month,n.day)}toJulianDay(t){return super.toJulianDay(hm(t))}getEras(){return["BE"]}getDaysInMonth(t){return super.getDaysInMonth(hm(t))}balanceDate(){}constructor(...t){super(...t),this.identifier="buddhist"}}function hm(e){let[t,n]=fu(e.year+xv);return new lt(t,n,e.month,e.day)}const _l=1911;function Cv(e){return e.era==="minguo"?e.year+_l:1-e.year+_l}function gm(e){let t=e-_l;return t>0?["minguo",t]:["before_minguo",1-t]}class tR extends sn{fromJulianDay(t){let n=super.fromJulianDay(t),r=Wo(n.era,n.year),[i,a]=gm(r);return new lt(this,i,a,n.month,n.day)}toJulianDay(t){return super.toJulianDay(mm(t))}getEras(){return["before_minguo","minguo"]}balanceDate(t){let[n,r]=gm(Cv(t));t.era=n,t.year=r}isInverseEra(t){return t.era==="before_minguo"}getDaysInMonth(t){return super.getDaysInMonth(mm(t))}getYearsInEra(t){return t.era==="before_minguo"?9999:9999-_l}constructor(...t){super(...t),this.identifier="roc"}}function mm(e){let[t,n]=fu(Cv(e));return new lt(t,n,e.month,e.day)}const pm=1948320,bm=[0,31,62,93,124,155,186,216,246,276,306,336];class nR{fromJulianDay(t){let n=t-pm,r=1+Math.floor((33*n+3)/12053),i=365*(r-1)+Math.floor((8*r+21)/33),a=n-i,o=a<216?Math.floor(a/31):Math.floor((a-6)/30),s=a-bm[o]+1;return new lt(this,r,o+1,s)}toJulianDay(t){let n=pm-1+365*(t.year-1)+Math.floor((8*t.year+21)/33);return n+=bm[t.month-1],n+=t.day,n}getMonthsInYear(){return 12}getDaysInMonth(t){return t.month<=6?31:t.month<=11||Ki(25*t.year+11,33)<8?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}const nc=78,vm=80;class rR extends sn{fromJulianDay(t){let n=super.fromJulianDay(t),r=n.year-nc,i=t-ai(n.era,n.year,1,1),a;i<vm?(r--,a=Dr(n.year-1)?31:30,i+=a+155+90+10):(a=Dr(n.year)?31:30,i-=vm);let o,s;if(i<a)o=1,s=i+1;else{let l=i-a;l<155?(o=Math.floor(l/31)+2,s=l%31+1):(l-=155,o=Math.floor(l/30)+7,s=l%30+1)}return new lt(this,r,o,s)}toJulianDay(t){let n=t.year+nc,[r,i]=fu(n),a,o;return Dr(i)?(a=31,o=ai(r,i,3,21)):(a=30,o=ai(r,i,3,22)),t.month===1?o+t.day-1:(o+=a+Math.min(t.month-2,5)*31,t.month>=8&&(o+=(t.month-7)*30),o+=t.day-1,o)}getDaysInMonth(t){return t.month===1&&Dr(t.year+nc)||t.month>=2&&t.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...t){super(...t),this.identifier="indian"}}const $l=1948440,ym=1948439,hn=1300,ki=1600,iR=460322;function Rl(e,t,n,r){return r+Math.ceil(29.5*(n-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function wv(e,t,n){let r=Math.floor((30*(n-t)+10646)/10631),i=Math.min(12,Math.ceil((n-(29+Rl(t,r,1,1)))/29.5)+1),a=n-Rl(t,r,i,1)+1;return new lt(e,r,i,a)}function xm(e){return(14+11*e)%30<11}class Nf{fromJulianDay(t){return wv(this,$l,t)}toJulianDay(t){return Rl($l,t.year,t.month,t.day)}getDaysInMonth(t){let n=29+t.month%2;return t.month===12&&xm(t.year)&&n++,n}getMonthsInYear(){return 12}getDaysInYear(t){return xm(t.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class aR extends Nf{fromJulianDay(t){return wv(this,ym,t)}toJulianDay(t){return Rl(ym,t.year,t.month,t.day)}constructor(...t){super(...t),this.identifier="islamic-tbla"}}const oR="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";let id,qi;function Ys(e){return iR+qi[e-hn]}function Pa(e,t){let n=e-hn,r=1<<11-(t-1);return id[n]&r?30:29}function Cm(e,t){let n=Ys(e);for(let r=1;r<t;r++)n+=Pa(e,r);return n}function wm(e){return qi[e+1-hn]-qi[e-hn]}class sR extends Nf{fromJulianDay(t){let n=t-$l,r=Ys(hn),i=Ys(ki);if(n<r||n>i)return super.fromJulianDay(t);{let a=hn-1,o=1,s=1;for(;s>0;){a++,s=n-Ys(a)+1;let l=wm(a);if(s===l){o=12;break}else if(s<l){let u=Pa(a,o);for(o=1;s>u;)s-=u,o++,u=Pa(a,o);break}}return new lt(this,a,o,n-Cm(a,o)+1)}}toJulianDay(t){return t.year<hn||t.year>ki?super.toJulianDay(t):$l+Cm(t.year,t.month)+(t.day-1)}getDaysInMonth(t){return t.year<hn||t.year>ki?super.getDaysInMonth(t):Pa(t.year,t.month)}getDaysInYear(t){return t.year<hn||t.year>ki?super.getDaysInYear(t):wm(t.year)}constructor(){if(super(),this.identifier="islamic-umalqura",id||(id=new Uint16Array(Uint8Array.from(atob(oR),t=>t.charCodeAt(0)).buffer)),!qi){qi=new Uint32Array(ki-hn+1);let t=0;for(let n=hn;n<=ki;n++){qi[n-hn]=t;for(let r=1;r<=12;r++)t+=Pa(n,r)}}}}const Dm=347997,Dv=1080,Sv=24*Dv,lR=29,uR=12*Dv+793,cR=lR*Sv+uR;function ti(e){return Ki(e*7+1,19)<7}function Us(e){let t=Math.floor((235*e-234)/19),n=12084+13753*t,r=t*29+Math.floor(n/25920);return Ki(3*(r+1),7)<3&&(r+=1),r}function dR(e){let t=Us(e-1),n=Us(e);return Us(e+1)-n===356?2:n-t===382?1:0}function Za(e){return Us(e)+dR(e)}function Ev(e){return Za(e+1)-Za(e)}function fR(e){let t=Ev(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}function hs(e,t){if(t>=6&&!ti(e)&&t++,t===4||t===7||t===9||t===11||t===13)return 29;let n=fR(e);return t===2?n===2?30:29:t===3?n===0?29:30:t===6?ti(e)?30:0:30}class hR{fromJulianDay(t){let n=t-Dm,r=n*Sv/cR,i=Math.floor((19*r+234)/235)+1,a=Za(i),o=Math.floor(n-a);for(;o<1;)i--,a=Za(i),o=Math.floor(n-a);let s=1,l=0;for(;l<o;)l+=hs(i,s),s++;s--,l-=hs(i,s);let u=o-l;return new lt(this,i,s,u)}toJulianDay(t){let n=Za(t.year);for(let r=1;r<t.month;r++)n+=hs(t.year,r);return n+t.day+Dm}getDaysInMonth(t){return hs(t.year,t.month)}getMonthsInYear(t){return ti(t.year)?13:12}getDaysInYear(t){return Ev(t.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(t,n){n.year!==t.year&&(ti(n.year)&&!ti(t.year)&&n.month>6?t.month--:!ti(n.year)&&ti(t.year)&&n.month>6&&t.month++)}constructor(){this.identifier="hebrew"}}const ad=1723856,Sm=1824665,od=5500;function Al(e,t,n,r){return e+365*t+Math.floor(t/4)+30*(n-1)+r-1}function Lf(e,t){let n=Math.floor(4*(t-e)/1461),r=1+Math.floor((t-Al(e,n,1,1))/30),i=t+1-Al(e,n,r,1);return[n,r,i]}function Iv(e){return Math.floor(e%4/3)}function _v(e,t){return t%13!==0?30:Iv(e)+5}class jf{fromJulianDay(t){let[n,r,i]=Lf(ad,t),a="AM";return n<=0&&(a="AA",n+=od),new lt(this,a,n,r,i)}toJulianDay(t){let n=t.year;return t.era==="AA"&&(n-=od),Al(ad,n,t.month,t.day)}getDaysInMonth(t){return _v(t.year,t.month)}getMonthsInYear(){return 13}getDaysInYear(t){return 365+Iv(t.year)}getYearsInEra(t){return t.era==="AA"?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class gR extends jf{fromJulianDay(t){let[n,r,i]=Lf(ad,t);return n+=od,new lt(this,"AA",n,r,i)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...t){super(...t),this.identifier="ethioaa"}}class mR extends jf{fromJulianDay(t){let[n,r,i]=Lf(Sm,t),a="CE";return n<=0&&(a="BCE",n=1-n),new lt(this,a,n,r,i)}toJulianDay(t){let n=t.year;return t.era==="BCE"&&(n=1-n),Al(Sm,n,t.month,t.day)}getDaysInMonth(t){let n=t.year;return t.era==="BCE"&&(n=1-n),_v(n,t.month)}isInverseEra(t){return t.era==="BCE"}balanceDate(t){t.year<=0&&(t.era=t.era==="BCE"?"CE":"BCE",t.year=1-t.year)}getEras(){return["BCE","CE"]}getYearsInEra(t){return t.era==="BCE"?9999:9715}constructor(...t){super(...t),this.identifier="coptic"}}function Zo(e){switch(e){case"buddhist":return new eR;case"ethiopic":return new jf;case"ethioaa":return new gR;case"coptic":return new mR;case"hebrew":return new hR;case"indian":return new rR;case"islamic-civil":return new Nf;case"islamic-tbla":return new aR;case"islamic-umalqura":return new sR;case"japanese":return new q9;case"persian":return new nR;case"roc":return new tR;case"gregory":default:return new sn}}let rc=new Map;class xo{format(t){return this.formatter.format(t)}formatToParts(t){return this.formatter.formatToParts(t)}formatRange(t,n){if(typeof this.formatter.formatRange=="function")return this.formatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.formatter.format(t)} – ${this.formatter.format(n)}`}formatRangeToParts(t,n){if(typeof this.formatter.formatRangeToParts=="function")return this.formatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.formatter.formatToParts(t),i=this.formatter.formatToParts(n);return[...r.map(a=>({...a,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...i.map(a=>({...a,source:"endRange"}))]}resolvedOptions(){let t=this.formatter.resolvedOptions();return vR()&&(this.resolvedHourCycle||(this.resolvedHourCycle=yR(t.locale,this.options)),t.hourCycle=this.resolvedHourCycle,t.hour12=this.resolvedHourCycle==="h11"||this.resolvedHourCycle==="h12"),t.calendar==="ethiopic-amete-alem"&&(t.calendar="ethioaa"),t}constructor(t,n={}){this.formatter=$v(t,n),this.options=n}}const pR={true:{ja:"h11"},false:{}};function $v(e,t={}){if(typeof t.hour12=="boolean"&&bR()){t={...t};let i=pR[String(t.hour12)][e.split("-")[0]],a=t.hour12?"h12":"h23";t.hourCycle=i??a,delete t.hour12}let n=e+(t?Object.entries(t).sort((i,a)=>i[0]<a[0]?-1:1).join():"");if(rc.has(n))return rc.get(n);let r=new Intl.DateTimeFormat(e,t);return rc.set(n,r),r}let ic=null;function bR(){return ic==null&&(ic=new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))==="24"),ic}let ac=null;function vR(){return ac==null&&(ac=new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle==="h12"),ac}function yR(e,t){if(!t.timeStyle&&!t.hour)return;e=e.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,""),e+=(e.includes("-u-")?"":"-u")+"-nu-latn";let n=$v(e,{...t,timeZone:void 0}),r=parseInt(n.formatToParts(new Date(2020,2,3,0)).find(a=>a.type==="hour").value,10),i=parseInt(n.formatToParts(new Date(2020,2,3,23)).find(a=>a.type==="hour").value,10);if(r===0&&i===23)return"h23";if(r===24&&i===23)return"h24";if(r===0&&i===11)return"h11";if(r===12&&i===11)return"h12";throw new Error("Unexpected hour cycle result")}const Si=typeof document<"u"?x.useLayoutEffect:()=>{};function tr(e){const t=x.useRef(null);return Si(()=>{t.current=e},[e]),x.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}function xR(e){let[t,n]=x.useState(e),r=x.useRef(null),i=tr(()=>{if(!r.current)return;let o=r.current.next();if(o.done){r.current=null;return}t===o.value?i():n(o.value)});Si(()=>{r.current&&i()});let a=tr(o=>{r.current=o(t),i()});return[t,a]}const Fl={prefix:String(Math.round(Math.random()*1e10)),current:0},Rv=x.createContext(Fl),CR=x.createContext(!1);let wR=!!(typeof window<"u"&&window.document&&window.document.createElement),oc=new WeakMap;function DR(e=!1){let t=x.useContext(Rv),n=x.useRef(null);if(n.current===null&&!e){var r,i;let a=(i=x.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||i===void 0||(r=i.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(a){let o=oc.get(a);o==null?oc.set(a,{id:t.current,state:a.memoizedState}):a.memoizedState!==o.state&&(t.current=o.id,oc.delete(a))}n.current=++t.current}return n.current}function SR(e){let t=x.useContext(Rv);t===Fl&&!wR&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let n=DR(!!e),r=t===Fl&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${r}-${n}`}function ER(e){let t=x.useId(),[n]=x.useState(Av()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${Fl.prefix}`;return e||`${r}-${t}`}const IR=typeof x.useId=="function"?ER:SR;function _R(){return!1}function $R(){return!0}function RR(e){return()=>{}}function Av(){return typeof x.useSyncExternalStore=="function"?x.useSyncExternalStore(RR,_R,$R):x.useContext(CR)}let AR=!!(typeof window<"u"&&window.document&&window.document.createElement),Pl=new Map;function la(e){let[t,n]=x.useState(e),r=x.useRef(null),i=IR(t),a=x.useCallback(o=>{r.current=o},[]);return AR&&Pl.set(i,a),Si(()=>{let o=i;return()=>{Pl.delete(o)}},[i]),x.useEffect(()=>{let o=r.current;o&&(r.current=null,n(o))}),i}function FR(e,t){if(e===t)return e;let n=Pl.get(e);if(n)return n(t),t;let r=Pl.get(t);return r?(r(e),e):t}function sd(e=[]){let t=la(),[n,r]=xR(t),i=x.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return Si(i,[t,i,...e]),n}function Fv(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const $t=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},wn=e=>e&&"window"in e&&e.window===e?e:$t(e).defaultView||window;function Xt(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let i in r){let a=t[i],o=r[i];typeof a=="function"&&typeof o=="function"&&i[0]==="o"&&i[1]==="n"&&i.charCodeAt(2)>=65&&i.charCodeAt(2)<=90?t[i]=Fv(a,o):(i==="className"||i==="UNSAFE_className")&&typeof a=="string"&&typeof o=="string"?t[i]=rr(a,o):i==="id"&&a&&o?t.id=FR(a,o):t[i]=o!==void 0?o:a}}return t}const PR=new Set(["id"]),TR=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),MR=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),kR=/^(data-.*)$/;function Hf(e,t={}){let{labelable:n,isLink:r,propNames:i}=t,a={};for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(PR.has(o)||n&&TR.has(o)||r&&MR.has(o)||i!=null&&i.has(o)||kR.test(o))&&(a[o]=e[o]);return a}function Sr(e){if(BR())e.focus({preventScroll:!0});else{let t=VR(e);e.focus(),OR(t)}}let gs=null;function BR(){if(gs==null){gs=!1;try{document.createElement("div").focus({get preventScroll(){return gs=!0,!0}})}catch{}}return gs}function VR(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function OR(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function mu(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(n=>e.test(n.brand)))||e.test(window.navigator.userAgent)}function Wf(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function Co(){return Wf(/^Mac/i)}function NR(){return Wf(/^iPhone/i)}function Pv(){return Wf(/^iPad/i)||Co()&&navigator.maxTouchPoints>1}function Tv(){return NR()||Pv()}function LR(){return mu(/AppleWebKit/i)&&!jR()}function jR(){return mu(/Chrome/i)}function Mv(){return mu(/Android/i)}function HR(){return mu(/Firefox/i)}function wo(e,t,n=!0){var r,i;let{metaKey:a,ctrlKey:o,altKey:s,shiftKey:l}=t;HR()&&(!((i=window.event)===null||i===void 0||(r=i.type)===null||r===void 0)&&r.startsWith("key"))&&e.target==="_blank"&&(Co()?a=!0:o=!0);let u=LR()&&Co()&&!Pv()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:a,ctrlKey:o,altKey:s,shiftKey:l}):new MouseEvent("click",{metaKey:a,ctrlKey:o,altKey:s,shiftKey:l,bubbles:!0,cancelable:!0});wo.isOpening=n,Sr(e),e.dispatchEvent(u),wo.isOpening=!1}wo.isOpening=!1;let zi=new Map,ld=new Set;function Em(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{if(!e(r)||!r.target)return;let i=zi.get(r.target);i||(i=new Set,zi.set(r.target,i),r.target.addEventListener("transitioncancel",n,{once:!0})),i.add(r.propertyName)},n=r=>{if(!e(r)||!r.target)return;let i=zi.get(r.target);if(i&&(i.delete(r.propertyName),i.size===0&&(r.target.removeEventListener("transitioncancel",n),zi.delete(r.target)),zi.size===0)){for(let a of ld)a();ld.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?Em():document.addEventListener("DOMContentLoaded",Em));function kv(e){requestAnimationFrame(()=>{zi.size===0?e():ld.add(e)})}function WR(){let e=x.useRef(new Map),t=x.useCallback((i,a,o,s)=>{let l=s!=null&&s.once?(...u)=>{e.current.delete(o),o(...u)}:o;e.current.set(o,{type:a,eventTarget:i,fn:l,options:s}),i.addEventListener(a,o,s)},[]),n=x.useCallback((i,a,o,s)=>{var l;let u=((l=e.current.get(o))===null||l===void 0?void 0:l.fn)||o;i.removeEventListener(a,u,s),e.current.delete(o)},[]),r=x.useCallback(()=>{e.current.forEach((i,a)=>{n(i.eventTarget,i.type,a,i.options)})},[n]);return x.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function zf(e,t){let{id:n,"aria-label":r,"aria-labelledby":i}=e;return n=la(n),i&&r?i=[...new Set([n,...i.trim().split(/\s+/)])].join(" "):i&&(i=i.trim().split(/\s+/).join(" ")),!r&&!i&&t&&(r=t),{id:n,"aria-label":r,"aria-labelledby":i}}function Im(e,t){const n=x.useRef(!0),r=x.useRef(null);x.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[]),x.useEffect(()=>{n.current?n.current=!1:(!r.current||t.some((i,a)=>!Object.is(i,r[a])))&&e(),r.current=t},t)}function Bv(e,t){Si(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function ud(e,t){let n=window.getComputedStyle(e),r=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return r&&t&&(r=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),r}function zR(e,t){let n=e;for(ud(n,t)&&(n=n.parentElement);n&&!ud(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function GR(e,t){const n=[];for(;e&&e!==document.documentElement;)ud(e,t)&&n.push(e),e=e.parentElement;return n}let ZR=0;const sc=new Map;function Vv(e){let[t,n]=x.useState();return Si(()=>{if(!e)return;let r=sc.get(e);if(r)n(r.element.id);else{let i=`react-aria-description-${ZR++}`;n(i);let a=document.createElement("div");a.id=i,a.style.display="none",a.textContent=e,document.body.appendChild(a),r={refCount:0,element:a},sc.set(e,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),sc.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function lc(e,t,n,r){let i=tr(n),a=n==null;x.useEffect(()=>{if(a||!e.current)return;let o=e.current;return o.addEventListener(t,i,r),()=>{o.removeEventListener(t,i,r)}},[e,t,r,a,i])}function XR(e,t){let n=_m(e,t,"left"),r=_m(e,t,"top"),i=t.offsetWidth,a=t.offsetHeight,o=e.scrollLeft,s=e.scrollTop,{borderTopWidth:l,borderLeftWidth:u}=getComputedStyle(e),c=e.scrollLeft+parseInt(u,10),d=e.scrollTop+parseInt(l,10),h=c+e.clientWidth,f=d+e.clientHeight;n<=o?o=n-parseInt(u,10):n+i>h&&(o+=n+i-h),r<=d?s=r-parseInt(l,10):r+a>f&&(s+=r+a-f),e.scrollLeft=o,e.scrollTop=s}function _m(e,t,n){const r=n==="left"?"offsetLeft":"offsetTop";let i=0;for(;t.offsetParent&&(i+=t[r],t.offsetParent!==e);){if(t.offsetParent.contains(e)){i-=e[r];break}t=t.offsetParent}return i}function YR(e,t){if(document.contains(e)){let o=document.scrollingElement||document.documentElement;if(window.getComputedStyle(o).overflow==="hidden"){let l=GR(e);for(let u of l)XR(u,e)}else{var n;let{left:l,top:u}=e.getBoundingClientRect();e==null||(n=e.scrollIntoView)===null||n===void 0||n.call(e,{block:"nearest"});let{left:c,top:d}=e.getBoundingClientRect();if(Math.abs(l-c)>1||Math.abs(u-d)>1){var r,i,a;t==null||(i=t.containingElement)===null||i===void 0||(r=i.scrollIntoView)===null||r===void 0||r.call(i,{block:"center",inline:"center"}),(a=e.scrollIntoView)===null||a===void 0||a.call(e,{block:"nearest"})}}}}function cd(e){return e.mozInputSource===0&&e.isTrusted?!0:Mv()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function UR(e){return!Mv()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function Ov(e,t){let n=x.useRef(null);return e&&n.current&&t(e,n.current)&&(e=n.current),n.current=e,e}function Do(e,t,n){let[r,i]=x.useState(e||t),a=x.useRef(e!==void 0),o=e!==void 0;x.useEffect(()=>{let u=a.current;u!==o&&console.warn(`WARN: A component changed from ${u?"controlled":"uncontrolled"} to ${o?"controlled":"uncontrolled"}.`),a.current=o},[o]);let s=o?e:r,l=x.useCallback((u,...c)=>{let d=(h,...f)=>{n&&(Object.is(s,h)||n(h,...f)),o||(s=h)};typeof u=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),i((f,...g)=>{let m=u(o?s:f,...g);return d(m,...c),o?f:m})):(o||i(u),d(u,...c))},[o,s,n]);return[s,l]}let Gi="default",dd="",Js=new WeakMap;function $m(e){if(Tv()){if(Gi==="default"){const t=$t(e);dd=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}Gi="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(Js.set(e,e.style.userSelect),e.style.userSelect="none")}function ms(e){if(Tv()){if(Gi!=="disabled")return;Gi="restoring",setTimeout(()=>{kv(()=>{if(Gi==="restoring"){const t=$t(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=dd||""),dd="",Gi="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Js.has(e)){let t=Js.get(e);e.style.userSelect==="none"&&(e.style.userSelect=t),e.getAttribute("style")===""&&e.removeAttribute("style"),Js.delete(e)}}const Nv=x.createContext({register:()=>{}});Nv.displayName="PressResponderContext";function JR(e,t){return t.get?t.get.call(e):t.value}function Lv(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function KR(e,t){var n=Lv(e,t,"get");return JR(e,n)}function QR(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}function Rm(e,t,n){var r=Lv(e,t,"set");return QR(e,r,n),n}function qR(e){let t=x.useContext(Nv);if(t){let{register:n,...r}=t;e=Xt(r,e),n()}return Bv(t,e.ref),e}var ps=new WeakMap;class bs{continuePropagation(){Rm(this,ps,!1)}get shouldStopPropagation(){return KR(this,ps)}constructor(t,n,r){Go(this,ps,{writable:!0,value:void 0}),Rm(this,ps,!0),this.type=t,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey}}const Am=Symbol("linkClicked");function Gf(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:a,isDisabled:o,isPressed:s,preventFocusOnPress:l,shouldCancelOnPointerExit:u,allowTextSelectionOnPress:c,ref:d,...h}=qR(e),[f,g]=x.useState(!1),m=x.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:p,removeAllGlobalListeners:b}=WR(),v=tr((D,_)=>{let F=m.current;if(o||F.didFirePressStart)return!1;let $=!0;if(F.isTriggeringEvent=!0,r){let P=new bs("pressstart",_,D);r(P),$=P.shouldStopPropagation}return n&&n(!0),F.isTriggeringEvent=!1,F.didFirePressStart=!0,g(!0),$}),y=tr((D,_,F=!0)=>{let $=m.current;if(!$.didFirePressStart)return!1;$.ignoreClickAfterPress=!0,$.didFirePressStart=!1,$.isTriggeringEvent=!0;let P=!0;if(i){let M=new bs("pressend",_,D);i(M),P=M.shouldStopPropagation}if(n&&n(!1),g(!1),t&&F&&!o){let M=new bs("press",_,D);t(M),P&&(P=M.shouldStopPropagation)}return $.isTriggeringEvent=!1,P}),w=tr((D,_)=>{let F=m.current;if(o)return!1;if(a){F.isTriggeringEvent=!0;let $=new bs("pressup",_,D);return a($),F.isTriggeringEvent=!1,$.shouldStopPropagation}return!0}),C=tr(D=>{let _=m.current;_.isPressed&&_.target&&(_.isOverTarget&&_.pointerType!=null&&y(Zn(_.target,D),_.pointerType,!1),_.isPressed=!1,_.isOverTarget=!1,_.activePointerId=null,_.pointerType=null,b(),c||ms(_.target))}),E=tr(D=>{u&&C(D)}),I=x.useMemo(()=>{let D=m.current,_={onKeyDown($){if(uc($.nativeEvent,$.currentTarget)&&$.currentTarget.contains($.target)){var P;Pm($.target,$.key)&&$.preventDefault();let M=!0;if(!D.isPressed&&!$.repeat){D.target=$.currentTarget,D.isPressed=!0,M=v($,"keyboard");let A=$.currentTarget,B=T=>{uc(T,A)&&!T.repeat&&A.contains(T.target)&&D.target&&w(Zn(D.target,T),"keyboard")};p($t($.currentTarget),"keyup",Fv(B,F),!0)}M&&$.stopPropagation(),$.metaKey&&Co()&&((P=D.metaKeyEvents)===null||P===void 0||P.set($.key,$.nativeEvent))}else $.key==="Meta"&&(D.metaKeyEvents=new Map)},onClick($){if(!($&&!$.currentTarget.contains($.target))&&$&&$.button===0&&!D.isTriggeringEvent&&!wo.isOpening){let P=!0;if(o&&$.preventDefault(),!D.ignoreClickAfterPress&&!D.ignoreEmulatedMouseEvents&&!D.isPressed&&(D.pointerType==="virtual"||cd($.nativeEvent))){!o&&!l&&Sr($.currentTarget);let M=v($,"virtual"),A=w($,"virtual"),B=y($,"virtual");P=M&&A&&B}D.ignoreEmulatedMouseEvents=!1,D.ignoreClickAfterPress=!1,P&&$.stopPropagation()}}},F=$=>{var P;if(D.isPressed&&D.target&&uc($,D.target)){var M;Pm($.target,$.key)&&$.preventDefault();let B=$.target;y(Zn(D.target,$),"keyboard",D.target.contains(B)),b(),$.key!=="Enter"&&Zf(D.target)&&D.target.contains(B)&&!$[Am]&&($[Am]=!0,wo(D.target,$,!1)),D.isPressed=!1,(M=D.metaKeyEvents)===null||M===void 0||M.delete($.key)}else if($.key==="Meta"&&(!((P=D.metaKeyEvents)===null||P===void 0)&&P.size)){var A;let B=D.metaKeyEvents;D.metaKeyEvents=void 0;for(let T of B.values())(A=D.target)===null||A===void 0||A.dispatchEvent(new KeyboardEvent("keyup",T))}};if(typeof PointerEvent<"u"){_.onPointerDown=A=>{if(A.button!==0||!A.currentTarget.contains(A.target))return;if(UR(A.nativeEvent)){D.pointerType="virtual";return}cc(A.currentTarget)&&A.preventDefault(),D.pointerType=A.pointerType;let B=!0;D.isPressed||(D.isPressed=!0,D.isOverTarget=!0,D.activePointerId=A.pointerId,D.target=A.currentTarget,!o&&!l&&Sr(A.currentTarget),c||$m(D.target),B=v(A,D.pointerType),p($t(A.currentTarget),"pointermove",$,!1),p($t(A.currentTarget),"pointerup",P,!1),p($t(A.currentTarget),"pointercancel",M,!1)),B&&A.stopPropagation()},_.onMouseDown=A=>{A.currentTarget.contains(A.target)&&A.button===0&&(cc(A.currentTarget)&&A.preventDefault(),A.stopPropagation())},_.onPointerUp=A=>{!A.currentTarget.contains(A.target)||D.pointerType==="virtual"||A.button===0&&Bi(A,A.currentTarget)&&w(A,D.pointerType||A.pointerType)};let $=A=>{A.pointerId===D.activePointerId&&(D.target&&Bi(A,D.target)?!D.isOverTarget&&D.pointerType!=null&&(D.isOverTarget=!0,v(Zn(D.target,A),D.pointerType)):D.target&&D.isOverTarget&&D.pointerType!=null&&(D.isOverTarget=!1,y(Zn(D.target,A),D.pointerType,!1),E(A)))},P=A=>{A.pointerId===D.activePointerId&&D.isPressed&&A.button===0&&D.target&&(Bi(A,D.target)&&D.pointerType!=null?y(Zn(D.target,A),D.pointerType):D.isOverTarget&&D.pointerType!=null&&y(Zn(D.target,A),D.pointerType,!1),D.isPressed=!1,D.isOverTarget=!1,D.activePointerId=null,D.pointerType=null,b(),c||ms(D.target))},M=A=>{C(A)};_.onDragStart=A=>{A.currentTarget.contains(A.target)&&C(A)}}else{_.onMouseDown=M=>{if(M.button!==0||!M.currentTarget.contains(M.target))return;if(cc(M.currentTarget)&&M.preventDefault(),D.ignoreEmulatedMouseEvents){M.stopPropagation();return}D.isPressed=!0,D.isOverTarget=!0,D.target=M.currentTarget,D.pointerType=cd(M.nativeEvent)?"virtual":"mouse",!o&&!l&&Sr(M.currentTarget),v(M,D.pointerType)&&M.stopPropagation(),p($t(M.currentTarget),"mouseup",$,!1)},_.onMouseEnter=M=>{if(!M.currentTarget.contains(M.target))return;let A=!0;D.isPressed&&!D.ignoreEmulatedMouseEvents&&D.pointerType!=null&&(D.isOverTarget=!0,A=v(M,D.pointerType)),A&&M.stopPropagation()},_.onMouseLeave=M=>{if(!M.currentTarget.contains(M.target))return;let A=!0;D.isPressed&&!D.ignoreEmulatedMouseEvents&&D.pointerType!=null&&(D.isOverTarget=!1,A=y(M,D.pointerType,!1),E(M)),A&&M.stopPropagation()},_.onMouseUp=M=>{M.currentTarget.contains(M.target)&&!D.ignoreEmulatedMouseEvents&&M.button===0&&w(M,D.pointerType||"mouse")};let $=M=>{if(M.button===0){if(D.isPressed=!1,b(),D.ignoreEmulatedMouseEvents){D.ignoreEmulatedMouseEvents=!1;return}D.target&&Bi(M,D.target)&&D.pointerType!=null?y(Zn(D.target,M),D.pointerType):D.target&&D.isOverTarget&&D.pointerType!=null&&y(Zn(D.target,M),D.pointerType,!1),D.isOverTarget=!1}};_.onTouchStart=M=>{if(!M.currentTarget.contains(M.target))return;let A=eA(M.nativeEvent);if(!A)return;D.activePointerId=A.identifier,D.ignoreEmulatedMouseEvents=!0,D.isOverTarget=!0,D.isPressed=!0,D.target=M.currentTarget,D.pointerType="touch",!o&&!l&&Sr(M.currentTarget),c||$m(D.target),v(M,D.pointerType)&&M.stopPropagation(),p(wn(M.currentTarget),"scroll",P,!0)},_.onTouchMove=M=>{if(!M.currentTarget.contains(M.target))return;if(!D.isPressed){M.stopPropagation();return}let A=Fm(M.nativeEvent,D.activePointerId),B=!0;A&&Bi(A,M.currentTarget)?!D.isOverTarget&&D.pointerType!=null&&(D.isOverTarget=!0,B=v(M,D.pointerType)):D.isOverTarget&&D.pointerType!=null&&(D.isOverTarget=!1,B=y(M,D.pointerType,!1),E(M)),B&&M.stopPropagation()},_.onTouchEnd=M=>{if(!M.currentTarget.contains(M.target))return;if(!D.isPressed){M.stopPropagation();return}let A=Fm(M.nativeEvent,D.activePointerId),B=!0;A&&Bi(A,M.currentTarget)&&D.pointerType!=null?(w(M,D.pointerType),B=y(M,D.pointerType)):D.isOverTarget&&D.pointerType!=null&&(B=y(M,D.pointerType,!1)),B&&M.stopPropagation(),D.isPressed=!1,D.activePointerId=null,D.isOverTarget=!1,D.ignoreEmulatedMouseEvents=!0,D.target&&!c&&ms(D.target),b()},_.onTouchCancel=M=>{M.currentTarget.contains(M.target)&&(M.stopPropagation(),D.isPressed&&C(M))};let P=M=>{D.isPressed&&M.target.contains(D.target)&&C({currentTarget:D.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};_.onDragStart=M=>{M.currentTarget.contains(M.target)&&C(M)}}return _},[p,o,l,b,c,C,E,y,v,w]);return x.useEffect(()=>()=>{var D;c||ms((D=m.current.target)!==null&&D!==void 0?D:void 0)},[c]),{isPressed:s||f,pressProps:Xt(h,I)}}function Zf(e){return e.tagName==="A"&&e.hasAttribute("href")}function uc(e,t){const{key:n,code:r}=e,i=t,a=i.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(i instanceof wn(i).HTMLInputElement&&!jv(i,n)||i instanceof wn(i).HTMLTextAreaElement||i.isContentEditable)&&!((a==="link"||!a&&Zf(i))&&n!=="Enter")}function eA(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function Fm(e,t){const n=e.changedTouches;for(let r=0;r<n.length;r++){const i=n[r];if(i.identifier===t)return i}return null}function Zn(e,t){return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey}}function tA(e){let t=0,n=0;return e.width!==void 0?t=e.width/2:e.radiusX!==void 0&&(t=e.radiusX),e.height!==void 0?n=e.height/2:e.radiusY!==void 0&&(n=e.radiusY),{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}function nA(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function Bi(e,t){let n=t.getBoundingClientRect(),r=tA(e);return nA(n,r)}function cc(e){return!(e instanceof HTMLElement)||!e.hasAttribute("draggable")}function Pm(e,t){return e instanceof HTMLInputElement?!jv(e,t):e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!Zf(e)}const rA=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function jv(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":rA.has(e.type)}class iA{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,n){this.nativeEvent=n,this.target=n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget,this.bubbles=n.bubbles,this.cancelable=n.cancelable,this.defaultPrevented=n.defaultPrevented,this.eventPhase=n.eventPhase,this.isTrusted=n.isTrusted,this.timeStamp=n.timeStamp,this.type=t}}function Hv(e){let t=x.useRef({isFocused:!1,observer:null});Si(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=tr(r=>{e==null||e(r)});return x.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let i=r.target,a=o=>{t.current.isFocused=!1,i.disabled&&n(new iA("blur",o)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};i.addEventListener("focusout",a,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&i.disabled){var o;(o=t.current.observer)===null||o===void 0||o.disconnect();let s=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:s})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:s}))}}),t.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function Wv(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e;const a=x.useCallback(l=>{if(l.target===l.currentTarget)return r&&r(l),i&&i(!1),!0},[r,i]),o=Hv(a),s=x.useCallback(l=>{const u=$t(l.target);l.target===l.currentTarget&&u.activeElement===l.target&&(n&&n(l),i&&i(!0),o(l))},[i,n,o]);return{focusProps:{onFocus:!t&&(n||i||r)?s:void 0,onBlur:!t&&(r||i)?a:void 0}}}let pa=null,fd=new Set,Xa=new Map,pi=!1,hd=!1;const aA={Tab:!0,Escape:!0};function Xf(e,t){for(let n of fd)n(e,t)}function oA(e){return!(e.metaKey||!Co()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Tl(e){pi=!0,oA(e)&&(pa="keyboard",Xf("keyboard",e))}function gn(e){pa="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(pi=!0,Xf("pointer",e))}function zv(e){cd(e)&&(pi=!0,pa="virtual")}function Gv(e){e.target===window||e.target===document||(!pi&&!hd&&(pa="virtual",Xf("virtual",e)),pi=!1,hd=!1)}function Zv(){pi=!1,hd=!0}function gd(e){if(typeof window>"u"||Xa.get(wn(e)))return;const t=wn(e),n=$t(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){pi=!0,r.apply(this,arguments)},n.addEventListener("keydown",Tl,!0),n.addEventListener("keyup",Tl,!0),n.addEventListener("click",zv,!0),t.addEventListener("focus",Gv,!0),t.addEventListener("blur",Zv,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",gn,!0),n.addEventListener("pointermove",gn,!0),n.addEventListener("pointerup",gn,!0)):(n.addEventListener("mousedown",gn,!0),n.addEventListener("mousemove",gn,!0),n.addEventListener("mouseup",gn,!0)),t.addEventListener("beforeunload",()=>{Xv(e)},{once:!0}),Xa.set(t,{focus:r})}const Xv=(e,t)=>{const n=wn(e),r=$t(e);t&&r.removeEventListener("DOMContentLoaded",t),Xa.has(n)&&(n.HTMLElement.prototype.focus=Xa.get(n).focus,r.removeEventListener("keydown",Tl,!0),r.removeEventListener("keyup",Tl,!0),r.removeEventListener("click",zv,!0),n.removeEventListener("focus",Gv,!0),n.removeEventListener("blur",Zv,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",gn,!0),r.removeEventListener("pointermove",gn,!0),r.removeEventListener("pointerup",gn,!0)):(r.removeEventListener("mousedown",gn,!0),r.removeEventListener("mousemove",gn,!0),r.removeEventListener("mouseup",gn,!0)),Xa.delete(n))};function sA(e){const t=$t(e);let n;return t.readyState!=="loading"?gd(e):(n=()=>{gd(e)},t.addEventListener("DOMContentLoaded",n)),()=>Xv(e,n)}typeof document<"u"&&sA();function Yv(){return pa!=="pointer"}function Uv(){return pa}const lA=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function uA(e,t,n){var r;const i=typeof window<"u"?wn(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,a=typeof window<"u"?wn(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,o=typeof window<"u"?wn(n==null?void 0:n.target).HTMLElement:HTMLElement,s=typeof window<"u"?wn(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return e=e||(n==null?void 0:n.target)instanceof i&&!lA.has(n==null||(r=n.target)===null||r===void 0?void 0:r.type)||(n==null?void 0:n.target)instanceof a||(n==null?void 0:n.target)instanceof o&&(n==null?void 0:n.target.isContentEditable),!(e&&t==="keyboard"&&n instanceof s&&!aA[n.key])}function cA(e,t,n){gd(),x.useEffect(()=>{let r=(i,a)=>{uA(!!(n!=null&&n.isTextInput),i,a)&&e(Yv())};return fd.add(r),()=>{fd.delete(r)}},t)}function Jv(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,a=x.useRef({isFocusWithin:!1}),o=x.useCallback(u=>{a.current.isFocusWithin&&!u.currentTarget.contains(u.relatedTarget)&&(a.current.isFocusWithin=!1,n&&n(u),i&&i(!1))},[n,i,a]),s=Hv(o),l=x.useCallback(u=>{!a.current.isFocusWithin&&document.activeElement===u.target&&(r&&r(u),i&&i(!0),a.current.isFocusWithin=!0,s(u))},[r,i,s]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:l,onBlur:o}}}function Tm(e){if(!e)return;let t=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){t=!1}};e(r),t&&n.stopPropagation()}}function dA(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:Tm(e.onKeyDown),onKeyUp:Tm(e.onKeyUp)}}}function Kv(e){const t=$t(e);if(Uv()==="virtual"){let n=t.activeElement;kv(()=>{t.activeElement===n&&e.isConnected&&Sr(e)})}else Sr(e)}function fA(e){const t=wn(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,i=n!=="none"&&r!=="hidden"&&r!=="collapse";if(i){const{getComputedStyle:a}=e.ownerDocument.defaultView;let{display:o,visibility:s}=a(e);i=o!=="none"&&s!=="hidden"&&s!=="collapse"}return i}function hA(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function Qv(e,t){return e.nodeName!=="#comment"&&fA(e)&&hA(e,t)&&(!e.parentElement||Qv(e.parentElement,e))}const Yf=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],gA=Yf.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";Yf.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const mA=Yf.join(':not([hidden]):not([tabindex="-1"]),');function qv(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}function Da(e,t=!1){if(e!=null&&!t)try{Kv(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function Ta(e,t,n){let r=t!=null&&t.tabbable?mA:gA,i=$t(e).createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(a){var o;return!(t==null||(o=t.from)===null||o===void 0)&&o.contains(a)?NodeFilter.FILTER_REJECT:a.matches(r)&&Qv(a)&&(!n||qv(a,n))&&(!(t!=null&&t.accept)||t.accept(a))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(i.currentNode=t.from),i}function ey(e,t={}){return{focusNext(n={}){let r=e.current;if(!r)return null;let{from:i,tabbable:a=t.tabbable,wrap:o=t.wrap,accept:s=t.accept}=n,l=i||$t(r).activeElement,u=Ta(r,{tabbable:a,accept:s});r.contains(l)&&(u.currentNode=l);let c=u.nextNode();return!c&&o&&(u.currentNode=r,c=u.nextNode()),c&&Da(c,!0),c},focusPrevious(n=t){let r=e.current;if(!r)return null;let{from:i,tabbable:a=t.tabbable,wrap:o=t.wrap,accept:s=t.accept}=n,l=i||$t(r).activeElement,u=Ta(r,{tabbable:a,accept:s});if(r.contains(l))u.currentNode=l;else{let d=dc(u);return d&&Da(d,!0),d??null}let c=u.previousNode();if(!c&&o){u.currentNode=r;let d=dc(u);if(!d)return null;c=d}return c&&Da(c,!0),c??null},focusFirst(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:a=t.accept}=n,s=Ta(r,{tabbable:i,accept:a}).nextNode();return s&&Da(s,!0),s},focusLast(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:a=t.accept}=n,o=Ta(r,{tabbable:i,accept:a}),s=dc(o);return s&&Da(s,!0),s??null}}}function dc(e){let t,n;do n=e.lastChild(),n&&(t=n);while(n);return t}class Uf{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,n,r){let i=this.fastMap.get(n??null);if(!i)return;let a=new Mm({scopeRef:t});i.addChild(a),a.parent=i,this.fastMap.set(t,a),r&&(a.nodeToRestore=r)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let n=this.fastMap.get(t);if(!n)return;let r=n.parent;for(let a of this.traverse())a!==n&&n.nodeToRestore&&a.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&qv(a.nodeToRestore,n.scopeRef.current)&&(a.nodeToRestore=n.nodeToRestore);let i=n.children;r&&(r.removeChild(n),i.size>0&&i.forEach(a=>r&&r.addChild(a))),this.fastMap.delete(n.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let n of t.children)yield*this.traverse(n)}clone(){var t;let n=new Uf;var r;for(let i of this.traverse())n.addTreeNode(i.scopeRef,(r=(t=i.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&r!==void 0?r:null,i.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new Mm({scopeRef:null}),this.fastMap.set(null,this.root)}}class Mm{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}new Uf;function ty(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,i=x.useRef({isFocused:!1,isFocusVisible:t||Yv()}),[a,o]=x.useState(!1),[s,l]=x.useState(()=>i.current.isFocused&&i.current.isFocusVisible),u=x.useCallback(()=>l(i.current.isFocused&&i.current.isFocusVisible),[]),c=x.useCallback(f=>{i.current.isFocused=f,o(f),u()},[u]);cA(f=>{i.current.isFocusVisible=f,u()},[],{isTextInput:n});let{focusProps:d}=Wv({isDisabled:r,onFocusChange:c}),{focusWithinProps:h}=Jv({isDisabled:!r,onFocusWithinChange:c});return{isFocused:a,isFocusVisible:s,focusProps:r?h:d}}let pA=x.createContext(null);function bA(e){let t=x.useContext(pA)||{};Bv(t,e);let{ref:n,...r}=t;return r}function vA(e,t){let{focusProps:n}=Wv(e),{keyboardProps:r}=dA(e),i=Xt(n,r),a=bA(t),o=e.isDisabled?{}:a,s=x.useRef(e.autoFocus);return x.useEffect(()=>{s.current&&t.current&&Kv(t.current),s.current=!1},[t]),{focusableProps:Xt({...i,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},o)}}const yA=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),xA=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function ny(e){if(Intl.Locale){let n=new Intl.Locale(e).maximize(),r=typeof n.getTextInfo=="function"?n.getTextInfo():n.textInfo;if(r)return r.direction==="rtl";if(n.script)return yA.has(n.script)}let t=e.split("-")[0];return xA.has(t)}const CA=Symbol.for("react-aria.i18n.locale");function ry(){let e=typeof window<"u"&&window[CA]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:ny(e)?"rtl":"ltr"}}let md=ry(),Ma=new Set;function km(){md=ry();for(let e of Ma)e(md)}function iy(){let e=Av(),[t,n]=x.useState(md);return x.useEffect(()=>(Ma.size===0&&window.addEventListener("languagechange",km),Ma.add(n),()=>{Ma.delete(n),Ma.size===0&&window.removeEventListener("languagechange",km)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const ay=x.createContext(null);function Jf(e){let{locale:t,children:n}=e,r=iy(),i=x.useMemo(()=>t?{locale:t,direction:ny(t)?"rtl":"ltr"}:r,[r,t]);return x.createElement(ay.Provider,{value:i},n)}function $n(){let e=iy();return x.useContext(ay)||e}const wA=Symbol.for("react-aria.i18n.locale"),DA=Symbol.for("react-aria.i18n.strings");let Vi;class Ei{getStringForLocale(t,n){let i=this.getStringsForLocale(n)[t];if(!i)throw new Error(`Could not find intl message ${t} in ${n} locale`);return i}getStringsForLocale(t){let n=this.strings[t];return n||(n=SA(t,this.strings,this.defaultLocale),this.strings[t]=n),n}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let n=window[wA];if(Vi===void 0){let i=window[DA];if(!i)return null;Vi={};for(let a in i)Vi[a]=new Ei({[n]:i[a]},n)}let r=Vi==null?void 0:Vi[t];if(!r)throw new Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}constructor(t,n="en-US"){this.strings=Object.fromEntries(Object.entries(t).filter(([,r])=>r)),this.defaultLocale=n}}function SA(e,t,n="en-US"){if(t[e])return t[e];let r=EA(e);if(t[r])return t[r];for(let i in t)if(i.startsWith(r+"-"))return t[i];return t[n]}function EA(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const Bm=new Map,Vm=new Map;class oy{format(t,n){let r=this.strings.getStringForLocale(t,this.locale);return typeof r=="function"?r(n,this):r}plural(t,n,r="cardinal"){let i=n["="+t];if(i)return typeof i=="function"?i():i;let a=this.locale+":"+r,o=Bm.get(a);o||(o=new Intl.PluralRules(this.locale,{type:r}),Bm.set(a,o));let s=o.select(t);return i=n[s]||n.other,typeof i=="function"?i():i}number(t){let n=Vm.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),Vm.set(this.locale,n)),n.format(t)}select(t,n){let r=t[n]||t.other;return typeof r=="function"?r():r}constructor(t,n){this.locale=t,this.strings=n}}const Om=new WeakMap;function IA(e){let t=Om.get(e);return t||(t=new Ei(e),Om.set(e,t)),t}function _A(e,t){return t&&Ei.getGlobalDictionaryForPackage(t)||IA(e)}function Xo(e,t){let{locale:n}=$n(),r=_A(e,t);return x.useMemo(()=>new oy(n,r),[n,r])}function Tr(e){e=Ov(e??{},$A);let{locale:t}=$n();return x.useMemo(()=>new xo(t,e),[t,e])}function $A(e,t){if(e===t)return!0;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i of n)if(t[i]!==e[i])return!1;return!0}function RA(e,t){let{elementType:n="button",isDisabled:r,onPress:i,onPressStart:a,onPressEnd:o,onPressUp:s,onPressChange:l,preventFocusOnPress:u,allowFocusWhenDisabled:c,onClick:d,href:h,target:f,rel:g,type:m="button"}=e,p;n==="button"?p={type:m,disabled:r}:p={role:"button",tabIndex:r?void 0:0,href:n==="a"&&r?void 0:h,target:n==="a"?f:void 0,type:n==="input"?m:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?g:void 0};let{pressProps:b,isPressed:v}=Gf({onPressStart:a,onPressEnd:o,onPressChange:l,onPress:i,onPressUp:s,isDisabled:r,preventFocusOnPress:u,ref:t}),{focusableProps:y}=vA(e,t);c&&(y.tabIndex=r?-1:y.tabIndex);let w=Xt(y,b,Hf(e,{labelable:!0}));return{isPressed:v,buttonProps:Xt(p,w,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],onClick:C=>{d&&(d(C),console.warn("onClick is deprecated, please use onPress"))}})}}var sy={};sy={dateRange:e=>`${e.startDate} إلى ${e.endDate}`,dateSelected:e=>`${e.date} المحدد`,finishRangeSelectionPrompt:"انقر لإنهاء عملية تحديد نطاق التاريخ",maximumDate:"آخر تاريخ متاح",minimumDate:"أول تاريخ متاح",next:"التالي",previous:"السابق",selectedDateDescription:e=>`تاريخ محدد: ${e.date}`,selectedRangeDescription:e=>`المدى الزمني المحدد: ${e.dateRange}`,startRangeSelectionPrompt:"انقر لبدء عملية تحديد نطاق التاريخ",todayDate:e=>`اليوم، ${e.date}`,todayDateSelected:e=>`اليوم، ${e.date} محدد`};var ly={};ly={dateRange:e=>`${e.startDate} до ${e.endDate}`,dateSelected:e=>`Избрано е ${e.date}`,finishRangeSelectionPrompt:"Натиснете, за да довършите избора на времеви интервал",maximumDate:"Последна налична дата",minimumDate:"Първа налична дата",next:"Напред",previous:"Назад",selectedDateDescription:e=>`Избрана дата: ${e.date}`,selectedRangeDescription:e=>`Избран диапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Натиснете, за да пристъпите към избора на времеви интервал",todayDate:e=>`Днес, ${e.date}`,todayDateSelected:e=>`Днес, ${e.date} са избрани`};var uy={};uy={dateRange:e=>`${e.startDate} až ${e.endDate}`,dateSelected:e=>`Vybráno ${e.date}`,finishRangeSelectionPrompt:"Kliknutím dokončíte výběr rozsahu dat",maximumDate:"Poslední dostupné datum",minimumDate:"První dostupné datum",next:"Další",previous:"Předchozí",selectedDateDescription:e=>`Vybrané datum: ${e.date}`,selectedRangeDescription:e=>`Vybrané období: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknutím zahájíte výběr rozsahu dat",todayDate:e=>`Dnes, ${e.date}`,todayDateSelected:e=>`Dnes, vybráno ${e.date}`};var cy={};cy={dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klik for at fuldføre valg af datoområde",maximumDate:"Sidste ledige dato",minimumDate:"Første ledige dato",next:"Næste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.dateRange}`,startRangeSelectionPrompt:"Klik for at starte valg af datoområde",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`};var dy={};dy={dateRange:e=>`${e.startDate} bis ${e.endDate}`,dateSelected:e=>`${e.date} ausgewählt`,finishRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beenden",maximumDate:"Letztes verfügbares Datum",minimumDate:"Erstes verfügbares Datum",next:"Weiter",previous:"Zurück",selectedDateDescription:e=>`Ausgewähltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgewählter Bereich: ${e.dateRange}`,startRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beginnen",todayDate:e=>`Heute, ${e.date}`,todayDateSelected:e=>`Heute, ${e.date} ausgewählt`};var fy={};fy={dateRange:e=>`${e.startDate} έως ${e.endDate}`,dateSelected:e=>`Επιλέχθηκε ${e.date}`,finishRangeSelectionPrompt:"Κάντε κλικ για να ολοκληρώσετε την επιλογή εύρους ημερομηνιών",maximumDate:"Τελευταία διαθέσιμη ημερομηνία",minimumDate:"Πρώτη διαθέσιμη ημερομηνία",next:"Επόμενο",previous:"Προηγούμενο",selectedDateDescription:e=>`Επιλεγμένη ημερομηνία: ${e.date}`,selectedRangeDescription:e=>`Επιλεγμένο εύρος: ${e.dateRange}`,startRangeSelectionPrompt:"Κάντε κλικ για να ξεκινήσετε την επιλογή εύρους ημερομηνιών",todayDate:e=>`Σήμερα, ${e.date}`,todayDateSelected:e=>`Σήμερα, επιλέχτηκε ${e.date}`};var hy={};hy={previous:"Previous",next:"Next",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.dateRange}`,todayDate:e=>`Today, ${e.date}`,todayDateSelected:e=>`Today, ${e.date} selected`,dateSelected:e=>`${e.date} selected`,startRangeSelectionPrompt:"Click to start selecting date range",finishRangeSelectionPrompt:"Click to finish selecting date range",minimumDate:"First available date",maximumDate:"Last available date",dateRange:e=>`${e.startDate} to ${e.endDate}`};var gy={};gy={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} seleccionado`,finishRangeSelectionPrompt:"Haga clic para terminar de seleccionar rango de fechas",maximumDate:"Última fecha disponible",minimumDate:"Primera fecha disponible",next:"Siguiente",previous:"Anterior",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo seleccionado: ${e.dateRange}`,startRangeSelectionPrompt:"Haga clic para comenzar a seleccionar un rango de fechas",todayDate:e=>`Hoy, ${e.date}`,todayDateSelected:e=>`Hoy, ${e.date} seleccionado`};var my={};my={dateRange:e=>`${e.startDate} kuni ${e.endDate}`,dateSelected:e=>`${e.date} valitud`,finishRangeSelectionPrompt:"Klõpsake kuupäevavahemiku valimise lõpetamiseks",maximumDate:"Viimane saadaolev kuupäev",minimumDate:"Esimene saadaolev kuupäev",next:"Järgmine",previous:"Eelmine",selectedDateDescription:e=>`Valitud kuupäev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.dateRange}`,startRangeSelectionPrompt:"Klõpsake kuupäevavahemiku valimiseks",todayDate:e=>`Täna, ${e.date}`,todayDateSelected:e=>`Täna, ${e.date} valitud`};var py={};py={dateRange:e=>`${e.startDate} – ${e.endDate}`,dateSelected:e=>`${e.date} valittu`,finishRangeSelectionPrompt:"Lopeta päivämääräalueen valinta napsauttamalla tätä.",maximumDate:"Viimeinen varattavissa oleva päivämäärä",minimumDate:"Ensimmäinen varattavissa oleva päivämäärä",next:"Seuraava",previous:"Edellinen",selectedDateDescription:e=>`Valittu päivämäärä: ${e.date}`,selectedRangeDescription:e=>`Valittu aikaväli: ${e.dateRange}`,startRangeSelectionPrompt:"Aloita päivämääräalueen valinta napsauttamalla tätä.",todayDate:e=>`Tänään, ${e.date}`,todayDateSelected:e=>`Tänään, ${e.date} valittu`};var by={};by={dateRange:e=>`${e.startDate} à ${e.endDate}`,dateSelected:e=>`${e.date} sélectionné`,finishRangeSelectionPrompt:"Cliquer pour finir de sélectionner la plage de dates",maximumDate:"Dernière date disponible",minimumDate:"Première date disponible",next:"Suivant",previous:"Précédent",selectedDateDescription:e=>`Date sélectionnée : ${e.date}`,selectedRangeDescription:e=>`Plage sélectionnée : ${e.dateRange}`,startRangeSelectionPrompt:"Cliquer pour commencer à sélectionner la plage de dates",todayDate:e=>`Aujourd'hui, ${e.date}`,todayDateSelected:e=>`Aujourd’hui, ${e.date} sélectionné`};var vy={};vy={dateRange:e=>`${e.startDate} עד ${e.endDate}`,dateSelected:e=>`${e.date} נבחר`,finishRangeSelectionPrompt:"חץ כדי לסיים את בחירת טווח התאריכים",maximumDate:"תאריך פנוי אחרון",minimumDate:"תאריך פנוי ראשון",next:"הבא",previous:"הקודם",selectedDateDescription:e=>`תאריך נבחר: ${e.date}`,selectedRangeDescription:e=>`טווח נבחר: ${e.dateRange}`,startRangeSelectionPrompt:"לחץ כדי להתחיל בבחירת טווח התאריכים",todayDate:e=>`היום, ${e.date}`,todayDateSelected:e=>`היום, ${e.date} נבחר`};var yy={};yy={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} odabran`,finishRangeSelectionPrompt:"Kliknite da dovršite raspon odabranih datuma",maximumDate:"Posljednji raspoloživi datum",minimumDate:"Prvi raspoloživi datum",next:"Sljedeći",previous:"Prethodni",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da započnete raspon odabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, odabran ${e.date}`};var xy={};xy={dateRange:e=>`${e.startDate}–${e.endDate}`,dateSelected:e=>`${e.date} kiválasztva`,finishRangeSelectionPrompt:"Kattintson a dátumtartomány kijelölésének befejezéséhez",maximumDate:"Utolsó elérhető dátum",minimumDate:"Az első elérhető dátum",next:"Következő",previous:"Előző",selectedDateDescription:e=>`Kijelölt dátum: ${e.date}`,selectedRangeDescription:e=>`Kijelölt tartomány: ${e.dateRange}`,startRangeSelectionPrompt:"Kattintson a dátumtartomány kijelölésének indításához",todayDate:e=>`Ma, ${e.date}`,todayDateSelected:e=>`Ma, ${e.date} kijelölve`};var Cy={};Cy={dateRange:e=>`Da ${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selezionata`,finishRangeSelectionPrompt:"Fai clic per completare la selezione dell’intervallo di date",maximumDate:"Ultima data disponibile",minimumDate:"Prima data disponibile",next:"Successivo",previous:"Precedente",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: ${e.dateRange}`,startRangeSelectionPrompt:"Fai clic per selezionare l’intervallo di date",todayDate:e=>`Oggi, ${e.date}`,todayDateSelected:e=>`Oggi, ${e.date} selezionata`};var wy={};wy={dateRange:e=>`${e.startDate} から ${e.endDate}`,dateSelected:e=>`${e.date} を選択`,finishRangeSelectionPrompt:"クリックして日付範囲の選択を終了",maximumDate:"最終利用可能日",minimumDate:"最初の利用可能日",next:"次へ",previous:"前へ",selectedDateDescription:e=>`選択した日付 : ${e.date}`,selectedRangeDescription:e=>`選択範囲 : ${e.dateRange}`,startRangeSelectionPrompt:"クリックして日付範囲の選択を開始",todayDate:e=>`本日、${e.date}`,todayDateSelected:e=>`本日、${e.date} を選択`};var Dy={};Dy={dateRange:e=>`${e.startDate} ~ ${e.endDate}`,dateSelected:e=>`${e.date} 선택됨`,finishRangeSelectionPrompt:"날짜 범위 선택을 완료하려면 클릭하십시오.",maximumDate:"마지막으로 사용 가능한 일자",minimumDate:"처음으로 사용 가능한 일자",next:"다음",previous:"이전",selectedDateDescription:e=>`선택 일자: ${e.date}`,selectedRangeDescription:e=>`선택 범위: ${e.dateRange}`,startRangeSelectionPrompt:"날짜 범위 선택을 시작하려면 클릭하십시오.",todayDate:e=>`오늘, ${e.date}`,todayDateSelected:e=>`오늘, ${e.date} 선택됨`};var Sy={};Sy={dateRange:e=>`Nuo ${e.startDate} iki ${e.endDate}`,dateSelected:e=>`Pasirinkta ${e.date}`,finishRangeSelectionPrompt:"Spustelėkite, kad baigtumėte pasirinkti datų intervalą",maximumDate:"Paskutinė galima data",minimumDate:"Pirmoji galima data",next:"Paskesnis",previous:"Ankstesnis",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: ${e.dateRange}`,startRangeSelectionPrompt:"Spustelėkite, kad pradėtumėte pasirinkti datų intervalą",todayDate:e=>`Šiandien, ${e.date}`,todayDateSelected:e=>`Šiandien, pasirinkta ${e.date}`};var Ey={};Ey={dateRange:e=>`No ${e.startDate} līdz ${e.endDate}`,dateSelected:e=>`Atlasīts: ${e.date}`,finishRangeSelectionPrompt:"Noklikšķiniet, lai pabeigtu datumu diapazona atlasi",maximumDate:"Pēdējais pieejamais datums",minimumDate:"Pirmais pieejamais datums",next:"Tālāk",previous:"Atpakaļ",selectedDateDescription:e=>`Atlasītais datums: ${e.date}`,selectedRangeDescription:e=>`Atlasītais diapazons: ${e.dateRange}`,startRangeSelectionPrompt:"Noklikšķiniet, lai sāktu datumu diapazona atlasi",todayDate:e=>`Šodien, ${e.date}`,todayDateSelected:e=>`Atlasīta šodiena, ${e.date}`};var Iy={};Iy={dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klikk for å fullføre valg av datoområde",maximumDate:"Siste tilgjengelige dato",minimumDate:"Første tilgjengelige dato",next:"Neste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt område: ${e.dateRange}`,startRangeSelectionPrompt:"Klikk for å starte valg av datoområde",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`};var _y={};_y={dateRange:e=>`${e.startDate} tot ${e.endDate}`,dateSelected:e=>`${e.date} geselecteerd`,finishRangeSelectionPrompt:"Klik om de selectie van het datumbereik te voltooien",maximumDate:"Laatste beschikbare datum",minimumDate:"Eerste beschikbare datum",next:"Volgende",previous:"Vorige",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.dateRange}`,startRangeSelectionPrompt:"Klik om het datumbereik te selecteren",todayDate:e=>`Vandaag, ${e.date}`,todayDateSelected:e=>`Vandaag, ${e.date} geselecteerd`};var $y={};$y={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`Wybrano ${e.date}`,finishRangeSelectionPrompt:"Kliknij, aby zakończyć wybór zakresu dat",maximumDate:"Ostatnia dostępna data",minimumDate:"Pierwsza dostępna data",next:"Dalej",previous:"Wstecz",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknij, aby rozpocząć wybór zakresu dat",todayDate:e=>`Dzisiaj, ${e.date}`,todayDateSelected:e=>`Dzisiaj wybrano ${e.date}`};var Ry={};Ry={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para concluir a seleção do intervalo de datas",maximumDate:"Última data disponível",minimumDate:"Primeira data disponível",next:"Próximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para iniciar a seleção do intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`};var Ay={};Ay={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para terminar de selecionar o intervalo de datas",maximumDate:"Última data disponível",minimumDate:"Primeira data disponível",next:"Próximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para começar a selecionar o intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`};var Fy={};Fy={dateRange:e=>`De la ${e.startDate} până la ${e.endDate}`,dateSelected:e=>`${e.date} selectată`,finishRangeSelectionPrompt:"Apăsaţi pentru a finaliza selecţia razei pentru dată",maximumDate:"Ultima dată disponibilă",minimumDate:"Prima dată disponibilă",next:"Următorul",previous:"Înainte",selectedDateDescription:e=>`Dată selectată: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: ${e.dateRange}`,startRangeSelectionPrompt:"Apăsaţi pentru a începe selecţia razei pentru dată",todayDate:e=>`Astăzi, ${e.date}`,todayDateSelected:e=>`Azi, ${e.date} selectată`};var Py={};Py={dateRange:e=>`С ${e.startDate} по ${e.endDate}`,dateSelected:e=>`Выбрано ${e.date}`,finishRangeSelectionPrompt:"Щелкните, чтобы завершить выбор диапазона дат",maximumDate:"Последняя доступная дата",minimumDate:"Первая доступная дата",next:"Далее",previous:"Назад",selectedDateDescription:e=>`Выбранная дата: ${e.date}`,selectedRangeDescription:e=>`Выбранный диапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Щелкните, чтобы начать выбор диапазона дат",todayDate:e=>`Сегодня, ${e.date}`,todayDateSelected:e=>`Сегодня, выбрано ${e.date}`};var Ty={};Ty={dateRange:e=>`Od ${e.startDate} do ${e.endDate}`,dateSelected:e=>`Vybratý dátum ${e.date}`,finishRangeSelectionPrompt:"Kliknutím dokončíte výber rozsahu dátumov",maximumDate:"Posledný dostupný dátum",minimumDate:"Prvý dostupný dátum",next:"Nasledujúce",previous:"Predchádzajúce",selectedDateDescription:e=>`Vybratý dátum: ${e.date}`,selectedRangeDescription:e=>`Vybratý rozsah: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknutím spustíte výber rozsahu dátumov",todayDate:e=>`Dnes ${e.date}`,todayDateSelected:e=>`Vybratý dnešný dátum ${e.date}`};var My={};My={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izbrano`,finishRangeSelectionPrompt:"Kliknite za dokončanje izbire datumskega obsega",maximumDate:"Zadnji razpoložljivi datum",minimumDate:"Prvi razpoložljivi datum",next:"Naprej",previous:"Nazaj",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano območje: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite za začetek izbire datumskega obsega",todayDate:e=>`Danes, ${e.date}`,todayDateSelected:e=>`Danes, ${e.date} izbrano`};var ky={};ky={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izabran`,finishRangeSelectionPrompt:"Kliknite da dovršite opseg izabranih datuma",maximumDate:"Zadnji raspoloživi datum",minimumDate:"Prvi raspoloživi datum",next:"Sledeći",previous:"Prethodni",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani period: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da započnete opseg izabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, izabran ${e.date}`};var By={};By={dateRange:e=>`${e.startDate} till ${e.endDate}`,dateSelected:e=>`${e.date} har valts`,finishRangeSelectionPrompt:"Klicka för att avsluta val av datumintervall",maximumDate:"Sista tillgängliga datum",minimumDate:"Första tillgängliga datum",next:"Nästa",previous:"Föregående",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.dateRange}`,startRangeSelectionPrompt:"Klicka för att välja datumintervall",todayDate:e=>`Idag, ${e.date}`,todayDateSelected:e=>`Idag, ${e.date} har valts`};var Vy={};Vy={dateRange:e=>`${e.startDate} - ${e.endDate}`,dateSelected:e=>`${e.date} seçildi`,finishRangeSelectionPrompt:"Tarih aralığı seçimini tamamlamak için tıklayın",maximumDate:"Son müsait tarih",minimumDate:"İlk müsait tarih",next:"Sonraki",previous:"Önceki",selectedDateDescription:e=>`Seçilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Seçilen Aralık: ${e.dateRange}`,startRangeSelectionPrompt:"Tarih aralığı seçimini başlatmak için tıklayın",todayDate:e=>`Bugün, ${e.date}`,todayDateSelected:e=>`Bugün, ${e.date} seçildi`};var Oy={};Oy={dateRange:e=>`${e.startDate} — ${e.endDate}`,dateSelected:e=>`Вибрано ${e.date}`,finishRangeSelectionPrompt:"Натисніть, щоб завершити вибір діапазону дат",maximumDate:"Остання доступна дата",minimumDate:"Перша доступна дата",next:"Наступний",previous:"Попередній",selectedDateDescription:e=>`Вибрана дата: ${e.date}`,selectedRangeDescription:e=>`Вибраний діапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Натисніть, щоб почати вибір діапазону дат",todayDate:e=>`Сьогодні, ${e.date}`,todayDateSelected:e=>`Сьогодні, вибрано ${e.date}`};var Ny={};Ny={dateRange:e=>`${e.startDate} 至 ${e.endDate}`,dateSelected:e=>`已选择 ${e.date}`,finishRangeSelectionPrompt:"单击以完成选择日期范围",maximumDate:"最后一个可用日期",minimumDate:"第一个可用日期",next:"下一页",previous:"上一页",selectedDateDescription:e=>`选定的日期:${e.date}`,selectedRangeDescription:e=>`选定的范围:${e.dateRange}`,startRangeSelectionPrompt:"单击以开始选择日期范围",todayDate:e=>`今天,即 ${e.date}`,todayDateSelected:e=>`已选择今天,即 ${e.date}`};var Ly={};Ly={dateRange:e=>`${e.startDate} 至 ${e.endDate}`,dateSelected:e=>`已選取 ${e.date}`,finishRangeSelectionPrompt:"按一下以完成選取日期範圍",maximumDate:"最後一個可用日期",minimumDate:"第一個可用日期",next:"下一頁",previous:"上一頁",selectedDateDescription:e=>`選定的日期:${e.date}`,selectedRangeDescription:e=>`選定的範圍:${e.dateRange}`,startRangeSelectionPrompt:"按一下以開始選取日期範圍",todayDate:e=>`今天,${e.date}`,todayDateSelected:e=>`已選取今天,${e.date}`};var Yo={};Yo={"ar-AE":sy,"bg-BG":ly,"cs-CZ":uy,"da-DK":cy,"de-DE":dy,"el-GR":fy,"en-US":hy,"es-ES":gy,"et-EE":my,"fi-FI":py,"fr-FR":by,"he-IL":vy,"hr-HR":yy,"hu-HU":xy,"it-IT":Cy,"ja-JP":wy,"ko-KR":Dy,"lt-LT":Sy,"lv-LV":Ey,"nb-NO":Iy,"nl-NL":_y,"pl-PL":$y,"pt-BR":Ry,"pt-PT":Ay,"ro-RO":Fy,"ru-RU":Py,"sk-SK":Ty,"sl-SI":My,"sr-SP":ky,"sv-SE":By,"tr-TR":Vy,"uk-UA":Oy,"zh-CN":Ny,"zh-TW":Ly};function jy(e){return e&&e.__esModule?e.default:e}const Kf=new WeakMap;function So(e){return(e==null?void 0:e.calendar.identifier)==="gregory"&&e.era==="BC"?"short":void 0}function AA(e){let t=Xo(jy(Yo),"@react-aria/calendar"),n,r;"highlightedRange"in e?{start:n,end:r}=e.highlightedRange||{}:n=r=e.value;let i=Tr({weekday:"long",month:"long",year:"numeric",day:"numeric",era:So(n)||So(r),timeZone:e.timeZone}),a="anchorDate"in e?e.anchorDate:null;return x.useMemo(()=>{if(!a&&n&&r)if(ht(n,r)){let o=i.format(n.toDate(e.timeZone));return t.format("selectedDateDescription",{date:o})}else{let o=bd(i,t,n,r,e.timeZone);return t.format("selectedRangeDescription",{dateRange:o})}return""},[n,r,a,e.timeZone,t,i])}function pd(e,t,n,r){let i=Xo(jy(Yo),"@react-aria/calendar"),a=So(e)||So(t),o=Tr({month:"long",year:"numeric",era:a,calendar:e.calendar.identifier,timeZone:n}),s=Tr({month:"long",year:"numeric",day:"numeric",era:a,calendar:e.calendar.identifier,timeZone:n});return x.useMemo(()=>{if(ht(e,zo(e))){if(ht(t,ed(e)))return o.format(e.toDate(n));if(ht(t,ed(t)))return r?bd(o,i,e,t,n):o.formatRange(e.toDate(n),t.toDate(n))}return r?bd(s,i,e,t,n):s.formatRange(e.toDate(n),t.toDate(n))},[e,t,o,s,i,n,r])}function bd(e,t,n,r,i){let a=e.formatRangeToParts(n.toDate(i),r.toDate(i)),o=-1;for(let u=0;u<a.length;u++){let c=a[u];if(c.source==="shared"&&c.type==="literal")o=u;else if(c.source==="endRange")break}let s="",l="";for(let u=0;u<a.length;u++)u<o?s+=a[u].value:u>o&&(l+=a[u].value);return t.format("dateRange",{startDate:s,endDate:l})}const Hy=7e3;let fc=null;function Nm(e,t="assertive",n=Hy){fc||(fc=new FA),fc.announce(e,t,n)}class FA{createLog(t){let n=document.createElement("div");return n.setAttribute("role","log"),n.setAttribute("aria-live",t),n.setAttribute("aria-relevant","additions"),n}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(t,n="assertive",r=Hy){if(!this.node)return;let i=document.createElement("div");i.textContent=t,n==="assertive"?this.assertiveLog.appendChild(i):this.politeLog.appendChild(i),t!==""&&setTimeout(()=>{i.remove()},r)}clear(t){this.node&&((!t||t==="assertive")&&(this.assertiveLog.innerHTML=""),(!t||t==="polite")&&(this.politeLog.innerHTML=""))}constructor(){this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node)}}function PA(e){return e&&e.__esModule?e.default:e}function Wy(e,t){let n=Xo(PA(Yo),"@react-aria/calendar"),r=Hf(e),i=pd(t.visibleRange.start,t.visibleRange.end,t.timeZone,!1),a=pd(t.visibleRange.start,t.visibleRange.end,t.timeZone,!0);Im(()=>{t.isFocused||Nm(a)},[a]);let o=AA(t);Im(()=>{o&&Nm(o,"polite",4e3)},[o]);let s=sd([!!e.errorMessage,e.isInvalid,e.validationState]);Kf.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:e["aria-labelledby"],errorMessageId:s,selectedDateDescription:o});let[l,u]=x.useState(!1),c=e.isDisabled||t.isNextVisibleRangeInvalid();c&&l&&(u(!1),t.setFocused(!0));let[d,h]=x.useState(!1),f=e.isDisabled||t.isPreviousVisibleRangeInvalid();f&&d&&(h(!1),t.setFocused(!0));let g=zf({id:e.id,"aria-label":[e["aria-label"],a].filter(Boolean).join(", "),"aria-labelledby":e["aria-labelledby"]});return{calendarProps:Xt(r,g,{role:"application","aria-describedby":e["aria-describedby"]||void 0}),nextButtonProps:{onPress:()=>t.focusNextPage(),"aria-label":n.format("next"),isDisabled:c,onFocusChange:u},prevButtonProps:{onPress:()=>t.focusPreviousPage(),"aria-label":n.format("previous"),isDisabled:f,onFocusChange:h},errorMessageProps:{id:s},title:i}}function zy(e,t){return Wy(e,t)}function TA(e,t,n){let r=Wy(e,t),i=x.useRef(!1),a=x.useRef(typeof window<"u"?window:null);return lc(a,"pointerdown",s=>{i.current=s.width===0&&s.height===0}),lc(a,"pointerup",s=>{if(i.current){i.current=!1;return}if(t.setDragging(!1),!t.anchorDate)return;let l=s.target;n.current&&n.current.contains(document.activeElement)&&(!n.current.contains(l)||!l.closest('button, [role="button"]'))&&t.selectFocusedDate()}),r.calendarProps.onBlur=s=>{n.current&&(!s.relatedTarget||!n.current.contains(s.relatedTarget))&&t.anchorDate&&t.selectFocusedDate()},lc(n,"touchmove",s=>{t.isDragging&&s.preventDefault()},{passive:!1,capture:!0}),r}function Gy(e,t){let{startDate:n=t.visibleRange.start,endDate:r=t.visibleRange.end}=e,{direction:i}=$n(),a=f=>{switch(f.key){case"Enter":case" ":f.preventDefault(),t.selectFocusedDate();break;case"PageUp":f.preventDefault(),f.stopPropagation(),t.focusPreviousSection(f.shiftKey);break;case"PageDown":f.preventDefault(),f.stopPropagation(),t.focusNextSection(f.shiftKey);break;case"End":f.preventDefault(),f.stopPropagation(),t.focusSectionEnd();break;case"Home":f.preventDefault(),f.stopPropagation(),t.focusSectionStart();break;case"ArrowLeft":f.preventDefault(),f.stopPropagation(),i==="rtl"?t.focusNextDay():t.focusPreviousDay();break;case"ArrowUp":f.preventDefault(),f.stopPropagation(),t.focusPreviousRow();break;case"ArrowRight":f.preventDefault(),f.stopPropagation(),i==="rtl"?t.focusPreviousDay():t.focusNextDay();break;case"ArrowDown":f.preventDefault(),f.stopPropagation(),t.focusNextRow();break;case"Escape":"setAnchorDate"in t&&(f.preventDefault(),t.setAnchorDate(null));break}},o=pd(n,r,t.timeZone,!0),{ariaLabel:s,ariaLabelledBy:l}=Kf.get(t),u=zf({"aria-label":[s,o].filter(Boolean).join(", "),"aria-labelledby":l}),c=Tr({weekday:e.weekdayStyle||"narrow",timeZone:t.timeZone}),{locale:d}=$n(),h=x.useMemo(()=>{let f=bo(Rf(t.timeZone),d);return[...new Array(7).keys()].map(g=>{let p=f.add({days:g}).toDate(t.timeZone);return c.format(p)})},[d,t.timeZone,c]);return{gridProps:Xt(u,{role:"grid","aria-readonly":t.isReadOnly||null,"aria-disabled":t.isDisabled||null,"aria-multiselectable":"highlightedRange"in t||void 0,onKeyDown:a,onFocus:()=>t.setFocused(!0),onBlur:()=>t.setFocused(!1)}),headerProps:{"aria-hidden":!0},weekDays:h}}function MA(e){return e&&e.__esModule?e.default:e}function kA(e,t,n){let{date:r,isDisabled:i}=e,{errorMessageId:a,selectedDateDescription:o}=Kf.get(t),s=Xo(MA(Yo),"@react-aria/calendar"),l=Tr({weekday:"long",day:"numeric",month:"long",year:"numeric",era:So(r),timeZone:t.timeZone}),u=t.isSelected(r),c=t.isCellFocused(r);i=i||t.isCellDisabled(r);let d=t.isCellUnavailable(r),h=!i&&!d,f=t.isValueInvalid&&("highlightedRange"in t?!t.anchorDate&&t.highlightedRange&&r.compare(t.highlightedRange.start)>=0&&r.compare(t.highlightedRange.end)<=0:t.value&&ht(t.value,r));f&&(u=!0),r=Ov(r,qc);let g=x.useMemo(()=>r.toDate(t.timeZone),[r,t.timeZone]),m=_9(r,t.timeZone),p=x.useMemo(()=>{let $="";return"highlightedRange"in t&&t.value&&!t.anchorDate&&(ht(r,t.value.start)||ht(r,t.value.end))&&($=o+", "),$+=l.format(g),m?$=s.format(u?"todayDateSelected":"todayDate",{date:$}):u&&($=s.format("dateSelected",{date:$})),t.minValue&&ht(r,t.minValue)?$+=", "+s.format("minimumDate"):t.maxValue&&ht(r,t.maxValue)&&($+=", "+s.format("maximumDate")),$},[l,g,s,u,m,r,t,o]),b="";"anchorDate"in t&&c&&!t.isReadOnly&&h&&(t.anchorDate?b=s.format("finishRangeSelectionPrompt"):b=s.format("startRangeSelectionPrompt"));let v=Vv(b),y=x.useRef(!1),w=x.useRef(!1),C=x.useRef(null),{pressProps:E,isPressed:I}=Gf({shouldCancelOnPointerExit:"anchorDate"in t&&!!t.anchorDate,preventFocusOnPress:!0,isDisabled:!h||t.isReadOnly,onPressStart($){if(t.isReadOnly){t.setFocusedDate(r);return}if("highlightedRange"in t&&!t.anchorDate&&($.pointerType==="mouse"||$.pointerType==="touch")){if(t.highlightedRange&&!f){if(ht(r,t.highlightedRange.start)){t.setAnchorDate(t.highlightedRange.end),t.setFocusedDate(r),t.setDragging(!0),w.current=!0;return}else if(ht(r,t.highlightedRange.end)){t.setAnchorDate(t.highlightedRange.start),t.setFocusedDate(r),t.setDragging(!0),w.current=!0;return}}let P=()=>{t.setDragging(!0),C.current=null,t.selectDate(r),t.setFocusedDate(r),y.current=!0};$.pointerType==="touch"?C.current=setTimeout(P,200):P()}},onPressEnd(){w.current=!1,y.current=!1,clearTimeout(C.current),C.current=null},onPress(){!("anchorDate"in t)&&!t.isReadOnly&&(t.selectDate(r),t.setFocusedDate(r))},onPressUp($){if(!t.isReadOnly&&("anchorDate"in t&&C.current&&(t.selectDate(r),t.setFocusedDate(r)),"anchorDate"in t))if(w.current)t.setAnchorDate(r);else if(t.anchorDate&&!y.current)t.selectDate(r),t.setFocusedDate(r);else if($.pointerType==="keyboard"&&!t.anchorDate){t.selectDate(r);let P=r.add({days:1});t.isInvalid(P)&&(P=r.subtract({days:1})),t.isInvalid(P)||t.setFocusedDate(P)}else $.pointerType==="virtual"&&(t.selectDate(r),t.setFocusedDate(r))}}),D=null;i||(D=ht(r,t.focusedDate)?0:-1),x.useEffect(()=>{c&&n.current&&(Sr(n.current),Uv()!=="pointer"&&document.activeElement===n.current&&YR(n.current,{containingElement:zR(n.current)}))},[c,n]);let _=Tr({day:"numeric",timeZone:t.timeZone,calendar:r.calendar.identifier}),F=x.useMemo(()=>_.formatToParts(g).find($=>$.type==="day").value,[_,g]);return{cellProps:{role:"gridcell","aria-disabled":!h||null,"aria-selected":u||null,"aria-invalid":f||null},buttonProps:Xt(E,{onFocus(){i||t.setFocusedDate(r)},tabIndex:D,role:"button","aria-disabled":!h||null,"aria-label":p,"aria-invalid":f||null,"aria-describedby":[f?a:null,v["aria-describedby"]].filter(Boolean).join(" ")||void 0,onPointerEnter($){"highlightDate"in t&&($.pointerType!=="touch"||t.isDragging)&&h&&t.highlightDate(r)},onPointerDown($){"releasePointerCapture"in $.target&&$.target.releasePointerCapture($.pointerId)},onContextMenu($){$.preventDefault()}}),isPressed:I,isFocused:c,isSelected:u,isDisabled:i,isUnavailable:d,isOutsideVisibleRange:r.compare(t.visibleRange.start)<0||r.compare(t.visibleRange.end)>0,isInvalid:f,formattedDate:F}}const pu={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},Zy={...pu,customError:!0,valid:!1},ni={isInvalid:!1,validationDetails:pu,validationErrors:[]},BA=x.createContext({}),Ml="__formValidationState"+Date.now();function VA(e){if(e[Ml]){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:a}=e[Ml];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:a}}return OA(e)}function OA(e){let{isInvalid:t,validationState:n,name:r,value:i,builtinValidation:a,validate:o,validationBehavior:s="aria"}=e;n&&(t||(t=n==="invalid"));let l=t!==void 0?{isInvalid:t,validationErrors:[],validationDetails:Zy}:null,u=x.useMemo(()=>Lm(NA(o,i)),[o,i]);a!=null&&a.validationDetails.valid&&(a=null);let c=x.useContext(BA),d=x.useMemo(()=>r?Array.isArray(r)?r.flatMap(F=>vd(c[F])):vd(c[r]):[],[c,r]),[h,f]=x.useState(c),[g,m]=x.useState(!1);c!==h&&(f(c),m(!1));let p=x.useMemo(()=>Lm(g?[]:d),[g,d]),b=x.useRef(ni),[v,y]=x.useState(ni),w=x.useRef(ni),C=()=>{if(!E)return;I(!1);let F=u||a||b.current;hc(F,w.current)||(w.current=F,y(F))},[E,I]=x.useState(!1);return x.useEffect(C),{realtimeValidation:l||p||u||a||ni,displayValidation:s==="native"?l||p||v:l||p||u||a||v,updateValidation(F){s==="aria"&&!hc(v,F)?y(F):b.current=F},resetValidation(){let F=ni;hc(F,w.current)||(w.current=F,y(F)),s==="native"&&I(!1),m(!0)},commitValidation(){s==="native"&&I(!0),m(!0)}}}function vd(e){return e?Array.isArray(e)?e:[e]:[]}function NA(e,t){if(typeof e=="function"){let n=e(t);if(n&&typeof n!="boolean")return vd(n)}return[]}function Lm(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:Zy}:null}function hc(e,t){return e===t?!0:e&&t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((n,r)=>n===t.validationErrors[r])&&Object.entries(e.validationDetails).every(([n,r])=>t.validationDetails[n]===r)}function kl(...e){let t=new Set,n=!1,r={...pu};for(let o of e){var i,a;for(let s of o.validationErrors)t.add(s);n||(n=o.isInvalid);for(let s in r)(i=r)[a=s]||(i[a]=o.validationDetails[s])}return r.valid=!n,{isInvalid:n,validationErrors:[...t],validationDetails:r}}function LA(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:a="label"}=e;t=la(t);let o=la(),s={};n?(r=r?`${o} ${r}`:o,s={id:o,htmlFor:a==="label"?t:void 0}):!r&&!i&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let l=zf({id:t,"aria-label":i,"aria-labelledby":r});return{labelProps:s,fieldProps:l}}function jA(e){let{description:t,errorMessage:n,isInvalid:r,validationState:i}=e,{labelProps:a,fieldProps:o}=LA(e),s=sd([!!t,!!n,r,i]),l=sd([!!t,!!n,r,i]);return o=Xt(o,{"aria-describedby":[s,l,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:a,fieldProps:o,descriptionProps:{id:s},errorMessageProps:{id:l}}}var Xy={};Xy={calendar:"التقويم",day:"يوم",dayPeriod:"ص/م",endDate:"تاريخ الانتهاء",era:"العصر",hour:"الساعات",minute:"الدقائق",month:"الشهر",second:"الثواني",selectedDateDescription:e=>`تاريخ محدد: ${e.date}`,selectedRangeDescription:e=>`المدى الزمني المحدد: ${e.startDate} إلى ${e.endDate}`,selectedTimeDescription:e=>`الوقت المحدد: ${e.time}`,startDate:"تاريخ البدء",timeZoneName:"التوقيت",weekday:"اليوم",year:"السنة"};var Yy={};Yy={calendar:"Календар",day:"ден",dayPeriod:"пр.об./сл.об.",endDate:"Крайна дата",era:"ера",hour:"час",minute:"минута",month:"месец",second:"секунда",selectedDateDescription:e=>`Избрана дата: ${e.date}`,selectedRangeDescription:e=>`Избран диапазон: ${e.startDate} до ${e.endDate}`,selectedTimeDescription:e=>`Избрано време: ${e.time}`,startDate:"Начална дата",timeZoneName:"часова зона",weekday:"ден от седмицата",year:"година"};var Uy={};Uy={calendar:"Kalendář",day:"den",dayPeriod:"část dne",endDate:"Konečné datum",era:"letopočet",hour:"hodina",minute:"minuta",month:"měsíc",second:"sekunda",selectedDateDescription:e=>`Vybrané datum: ${e.date}`,selectedRangeDescription:e=>`Vybrané období: ${e.startDate} až ${e.endDate}`,selectedTimeDescription:e=>`Vybraný čas: ${e.time}`,startDate:"Počáteční datum",timeZoneName:"časové pásmo",weekday:"den v týdnu",year:"rok"};var Jy={};Jy={calendar:"Kalender",day:"dag",dayPeriod:"AM/PM",endDate:"Slutdato",era:"æra",hour:"time",minute:"minut",month:"måned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tidspunkt: ${e.time}`,startDate:"Startdato",timeZoneName:"tidszone",weekday:"ugedag",year:"år"};var Ky={};Ky={calendar:"Kalender",day:"Tag",dayPeriod:"Tageshälfte",endDate:"Enddatum",era:"Epoche",hour:"Stunde",minute:"Minute",month:"Monat",second:"Sekunde",selectedDateDescription:e=>`Ausgewähltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgewählter Bereich: ${e.startDate} bis ${e.endDate}`,selectedTimeDescription:e=>`Ausgewählte Zeit: ${e.time}`,startDate:"Anfangsdatum",timeZoneName:"Zeitzone",weekday:"Wochentag",year:"Jahr"};var Qy={};Qy={calendar:"Ημερολόγιο",day:"ημέρα",dayPeriod:"π.μ./μ.μ.",endDate:"Ημερομηνία λήξης",era:"περίοδος",hour:"ώρα",minute:"λεπτό",month:"μήνας",second:"δευτερόλεπτο",selectedDateDescription:e=>`Επιλεγμένη ημερομηνία: ${e.date}`,selectedRangeDescription:e=>`Επιλεγμένο εύρος: ${e.startDate} έως ${e.endDate}`,selectedTimeDescription:e=>`Επιλεγμένη ώρα: ${e.time}`,startDate:"Ημερομηνία έναρξης",timeZoneName:"ζώνη ώρας",weekday:"καθημερινή",year:"έτος"};var qy={};qy={era:"era",year:"year",month:"month",day:"day",hour:"hour",minute:"minute",second:"second",dayPeriod:"AM/PM",calendar:"Calendar",startDate:"Start Date",endDate:"End Date",weekday:"day of the week",timeZoneName:"time zone",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.startDate} to ${e.endDate}`,selectedTimeDescription:e=>`Selected Time: ${e.time}`};var ex={};ex={calendar:"Calendario",day:"día",dayPeriod:"a. m./p. m.",endDate:"Fecha final",era:"era",hour:"hora",minute:"minuto",month:"mes",second:"segundo",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Rango seleccionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora seleccionada: ${e.time}`,startDate:"Fecha de inicio",timeZoneName:"zona horaria",weekday:"día de la semana",year:"año"};var tx={};tx={calendar:"Kalender",day:"päev",dayPeriod:"enne/pärast lõunat",endDate:"Lõppkuupäev",era:"ajastu",hour:"tund",minute:"minut",month:"kuu",second:"sekund",selectedDateDescription:e=>`Valitud kuupäev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.startDate} kuni ${e.endDate}`,selectedTimeDescription:e=>`Valitud aeg: ${e.time}`,startDate:"Alguskuupäev",timeZoneName:"ajavöönd",weekday:"nädalapäev",year:"aasta"};var nx={};nx={calendar:"Kalenteri",day:"päivä",dayPeriod:"vuorokaudenaika",endDate:"Päättymispäivä",era:"aikakausi",hour:"tunti",minute:"minuutti",month:"kuukausi",second:"sekunti",selectedDateDescription:e=>`Valittu päivämäärä: ${e.date}`,selectedRangeDescription:e=>`Valittu aikaväli: ${e.startDate} – ${e.endDate}`,selectedTimeDescription:e=>`Valittu aika: ${e.time}`,startDate:"Alkamispäivä",timeZoneName:"aikavyöhyke",weekday:"viikonpäivä",year:"vuosi"};var rx={};rx={calendar:"Calendrier",day:"jour",dayPeriod:"cadran",endDate:"Date de fin",era:"ère",hour:"heure",minute:"minute",month:"mois",second:"seconde",selectedDateDescription:e=>`Date sélectionnée : ${e.date}`,selectedRangeDescription:e=>`Plage sélectionnée : ${e.startDate} au ${e.endDate}`,selectedTimeDescription:e=>`Heure choisie : ${e.time}`,startDate:"Date de début",timeZoneName:"fuseau horaire",weekday:"jour de la semaine",year:"année"};var ix={};ix={calendar:"לוח שנה",day:"יום",dayPeriod:"לפנה״צ/אחה״צ",endDate:"תאריך סיום",era:"תקופה",hour:"שעה",minute:"דקה",month:"חודש",second:"שנייה",selectedDateDescription:e=>`תאריך נבחר: ${e.date}`,selectedRangeDescription:e=>`טווח נבחר: ${e.startDate} עד ${e.endDate}`,selectedTimeDescription:e=>`זמן נבחר: ${e.time}`,startDate:"תאריך התחלה",timeZoneName:"אזור זמן",weekday:"יום בשבוע",year:"שנה"};var ax={};ax={calendar:"Kalendar",day:"dan",dayPeriod:"AM/PM",endDate:"Datum završetka",era:"era",hour:"sat",minute:"minuta",month:"mjesec",second:"sekunda",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Odabrano vrijeme: ${e.time}`,startDate:"Datum početka",timeZoneName:"vremenska zona",weekday:"dan u tjednu",year:"godina"};var ox={};ox={calendar:"Naptár",day:"nap",dayPeriod:"napszak",endDate:"Befejező dátum",era:"éra",hour:"óra",minute:"perc",month:"hónap",second:"másodperc",selectedDateDescription:e=>`Kijelölt dátum: ${e.date}`,selectedRangeDescription:e=>`Kijelölt tartomány: ${e.startDate}–${e.endDate}`,selectedTimeDescription:e=>`Kijelölt idő: ${e.time}`,startDate:"Kezdő dátum",timeZoneName:"időzóna",weekday:"hét napja",year:"év"};var sx={};sx={calendar:"Calendario",day:"giorno",dayPeriod:"AM/PM",endDate:"Data finale",era:"era",hour:"ora",minute:"minuto",month:"mese",second:"secondo",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: da ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Ora selezionata: ${e.time}`,startDate:"Data iniziale",timeZoneName:"fuso orario",weekday:"giorno della settimana",year:"anno"};var lx={};lx={calendar:"カレンダー",day:"日",dayPeriod:"午前/午後",endDate:"終了日",era:"時代",hour:"時",minute:"分",month:"月",second:"秒",selectedDateDescription:e=>`選択した日付 : ${e.date}`,selectedRangeDescription:e=>`選択範囲 : ${e.startDate} から ${e.endDate}`,selectedTimeDescription:e=>`選択した時間 : ${e.time}`,startDate:"開始日",timeZoneName:"タイムゾーン",weekday:"曜日",year:"年"};var ux={};ux={calendar:"달력",day:"일",dayPeriod:"오전/오후",endDate:"종료일",era:"연호",hour:"시",minute:"분",month:"월",second:"초",selectedDateDescription:e=>`선택 일자: ${e.date}`,selectedRangeDescription:e=>`선택 범위: ${e.startDate} ~ ${e.endDate}`,selectedTimeDescription:e=>`선택 시간: ${e.time}`,startDate:"시작일",timeZoneName:"시간대",weekday:"요일",year:"년"};var cx={};cx={calendar:"Kalendorius",day:"diena",dayPeriod:"iki pietų / po pietų",endDate:"Pabaigos data",era:"era",hour:"valanda",minute:"minutė",month:"mėnuo",second:"sekundė",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: nuo ${e.startDate} iki ${e.endDate}`,selectedTimeDescription:e=>`Pasirinktas laikas: ${e.time}`,startDate:"Pradžios data",timeZoneName:"laiko juosta",weekday:"savaitės diena",year:"metai"};var dx={};dx={calendar:"Kalendārs",day:"diena",dayPeriod:"priekšpusdienā/pēcpusdienā",endDate:"Beigu datums",era:"ēra",hour:"stundas",minute:"minūtes",month:"mēnesis",second:"sekundes",selectedDateDescription:e=>`Atlasītais datums: ${e.date}`,selectedRangeDescription:e=>`Atlasītais diapazons: no ${e.startDate} līdz ${e.endDate}`,selectedTimeDescription:e=>`Atlasītais laiks: ${e.time}`,startDate:"Sākuma datums",timeZoneName:"laika josla",weekday:"nedēļas diena",year:"gads"};var fx={};fx={calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Sluttdato",era:"tidsalder",hour:"time",minute:"minutt",month:"måned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt område: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tid: ${e.time}`,startDate:"Startdato",timeZoneName:"tidssone",weekday:"ukedag",year:"år"};var hx={};hx={calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Einddatum",era:"tijdperk",hour:"uur",minute:"minuut",month:"maand",second:"seconde",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.startDate} tot ${e.endDate}`,selectedTimeDescription:e=>`Geselecteerde tijd: ${e.time}`,startDate:"Startdatum",timeZoneName:"tijdzone",weekday:"dag van de week",year:"jaar"};var gx={};gx={calendar:"Kalendarz",day:"dzień",dayPeriod:"rano / po południu / wieczorem",endDate:"Data końcowa",era:"era",hour:"godzina",minute:"minuta",month:"miesiąc",second:"sekunda",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Wybrany czas: ${e.time}`,startDate:"Data początkowa",timeZoneName:"strefa czasowa",weekday:"dzień tygodnia",year:"rok"};var mx={};mx={calendar:"Calendário",day:"dia",dayPeriod:"AM/PM",endDate:"Data final",era:"era",hour:"hora",minute:"minuto",month:"mês",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data inicial",timeZoneName:"fuso horário",weekday:"dia da semana",year:"ano"};var px={};px={calendar:"Calendário",day:"dia",dayPeriod:"am/pm",endDate:"Data de Término",era:"era",hour:"hora",minute:"minuto",month:"mês",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data de Início",timeZoneName:"fuso horário",weekday:"dia da semana",year:"ano"};var bx={};bx={calendar:"Calendar",day:"zi",dayPeriod:"a.m/p.m.",endDate:"Dată final",era:"eră",hour:"oră",minute:"minut",month:"lună",second:"secundă",selectedDateDescription:e=>`Dată selectată: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: de la ${e.startDate} până la ${e.endDate}`,selectedTimeDescription:e=>`Ora selectată: ${e.time}`,startDate:"Dată început",timeZoneName:"fus orar",weekday:"ziua din săptămână",year:"an"};var vx={};vx={calendar:"Календарь",day:"день",dayPeriod:"AM/PM",endDate:"Дата окончания",era:"эра",hour:"час",minute:"минута",month:"месяц",second:"секунда",selectedDateDescription:e=>`Выбранная дата: ${e.date}`,selectedRangeDescription:e=>`Выбранный диапазон: с ${e.startDate} по ${e.endDate}`,selectedTimeDescription:e=>`Выбранное время: ${e.time}`,startDate:"Дата начала",timeZoneName:"часовой пояс",weekday:"день недели",year:"год"};var yx={};yx={calendar:"Kalendár",day:"deň",dayPeriod:"AM/PM",endDate:"Dátum ukončenia",era:"letopočet",hour:"hodina",minute:"minúta",month:"mesiac",second:"sekunda",selectedDateDescription:e=>`Vybratý dátum: ${e.date}`,selectedRangeDescription:e=>`Vybratý rozsah: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Vybratý čas: ${e.time}`,startDate:"Dátum začatia",timeZoneName:"časové pásmo",weekday:"deň týždňa",year:"rok"};var xx={};xx={calendar:"Koledar",day:"dan",dayPeriod:"dop/pop",endDate:"Datum konca",era:"doba",hour:"ura",minute:"minuta",month:"mesec",second:"sekunda",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano območje: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izbrani čas: ${e.time}`,startDate:"Datum začetka",timeZoneName:"časovni pas",weekday:"dan v tednu",year:"leto"};var Cx={};Cx={calendar:"Kalendar",day:"дан",dayPeriod:"пре подне/по подне",endDate:"Datum završetka",era:"ера",hour:"сат",minute:"минут",month:"месец",second:"секунд",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani opseg: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izabrano vreme: ${e.time}`,startDate:"Datum početka",timeZoneName:"временска зона",weekday:"дан у недељи",year:"година"};var wx={};wx={calendar:"Kalender",day:"dag",dayPeriod:"fm/em",endDate:"Slutdatum",era:"era",hour:"timme",minute:"minut",month:"månad",second:"sekund",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.startDate} till ${e.endDate}`,selectedTimeDescription:e=>`Vald tid: ${e.time}`,startDate:"Startdatum",timeZoneName:"tidszon",weekday:"veckodag",year:"år"};var Dx={};Dx={calendar:"Takvim",day:"gün",dayPeriod:"ÖÖ/ÖS",endDate:"Bitiş Tarihi",era:"çağ",hour:"saat",minute:"dakika",month:"ay",second:"saniye",selectedDateDescription:e=>`Seçilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Seçilen Aralık: ${e.startDate} - ${e.endDate}`,selectedTimeDescription:e=>`Seçilen Zaman: ${e.time}`,startDate:"Başlangıç Tarihi",timeZoneName:"saat dilimi",weekday:"haftanın günü",year:"yıl"};var Sx={};Sx={calendar:"Календар",day:"день",dayPeriod:"дп/пп",endDate:"Дата завершення",era:"ера",hour:"година",minute:"хвилина",month:"місяць",second:"секунда",selectedDateDescription:e=>`Вибрана дата: ${e.date}`,selectedRangeDescription:e=>`Вибраний діапазон: ${e.startDate} — ${e.endDate}`,selectedTimeDescription:e=>`Вибраний час: ${e.time}`,startDate:"Дата початку",timeZoneName:"часовий пояс",weekday:"день тижня",year:"рік"};var Ex={};Ex={calendar:"日历",day:"日",dayPeriod:"上午/下午",endDate:"结束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`选定的日期:${e.date}`,selectedRangeDescription:e=>`选定的范围:${e.startDate} 至 ${e.endDate}`,selectedTimeDescription:e=>`选定的时间:${e.time}`,startDate:"开始日期",timeZoneName:"时区",weekday:"工作日",year:"年"};var Ix={};Ix={calendar:"日曆",day:"日",dayPeriod:"上午/下午",endDate:"結束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`選定的日期:${e.date}`,selectedRangeDescription:e=>`選定的範圍:${e.startDate} 至 ${e.endDate}`,selectedTimeDescription:e=>`選定的時間:${e.time}`,startDate:"開始日期",timeZoneName:"时区",weekday:"工作日",year:"年"};var _x={};_x={"ar-AE":Xy,"bg-BG":Yy,"cs-CZ":Uy,"da-DK":Jy,"de-DE":Ky,"el-GR":Qy,"en-US":qy,"es-ES":ex,"et-EE":tx,"fi-FI":nx,"fr-FR":rx,"he-IL":ix,"hr-HR":ax,"hu-HU":ox,"it-IT":sx,"ja-JP":lx,"ko-KR":ux,"lt-LT":cx,"lv-LV":dx,"nb-NO":fx,"nl-NL":hx,"pl-PL":gx,"pt-BR":mx,"pt-PT":px,"ro-RO":bx,"ru-RU":vx,"sk-SK":yx,"sl-SI":xx,"sr-SP":Cx,"sv-SE":wx,"tr-TR":Dx,"uk-UA":Sx,"zh-CN":Ex,"zh-TW":Ix};function HA(e,t,n){let{direction:r}=$n(),i=x.useMemo(()=>ey(t),[t]),a=l=>{if(l.currentTarget.contains(l.target)&&(l.altKey&&(l.key==="ArrowDown"||l.key==="ArrowUp")&&"setOpen"in e&&(l.preventDefault(),l.stopPropagation(),e.setOpen(!0)),!n))switch(l.key){case"ArrowLeft":l.preventDefault(),l.stopPropagation(),r==="rtl"?i.focusNext():i.focusPrevious();break;case"ArrowRight":l.preventDefault(),l.stopPropagation(),r==="rtl"?i.focusPrevious():i.focusNext();break}},o=()=>{var l;let u=(l=window.event)===null||l===void 0?void 0:l.target,c=Ta(t.current,{tabbable:!0});if(u&&(c.currentNode=u,u=c.previousNode()),!u){let d;do d=c.lastChild(),d&&(u=d);while(d)}for(;u!=null&&u.hasAttribute("data-placeholder");){let d=c.previousNode();if(d&&d.hasAttribute("data-placeholder"))u=d;else break}u&&u.focus()},{pressProps:s}=Gf({preventFocusOnPress:!0,allowTextSelectionOnPress:!0,onPressStart(l){l.pointerType==="mouse"&&o()},onPress(l){l.pointerType!=="mouse"&&o()}});return Xt(s,{onKeyDown:a})}const WA="__role_"+Date.now(),zA="__focusManager_"+Date.now();function GA(e){return e&&e.__esModule?e.default:e}function ZA(e,t,n){var r,i;let a=Xo(GA(_x),"@react-aria/datepicker"),{isInvalid:o,validationErrors:s,validationDetails:l}=t.displayValidation,{labelProps:u,fieldProps:c,descriptionProps:d,errorMessageProps:h}=jA({...e,labelElementType:"span",isInvalid:o,errorMessage:e.errorMessage||s}),f=c["aria-labelledby"]||c.id,{locale:g}=$n(),m=t.formatValue(g,{month:"long"}),p=m?a.format("selectedRangeDescription",{startDate:m.start,endDate:m.end}):"",b=Vv(p),v={"aria-label":a.format("startDate"),"aria-labelledby":f},y={"aria-label":a.format("endDate"),"aria-labelledby":f},w=la(),C=la(),E=HA(t,n),I=[b["aria-describedby"],c["aria-describedby"]].filter(Boolean).join(" ")||void 0,D=x.useMemo(()=>ey(n,{accept:A=>A.id!==w}),[n,w]),_={[zA]:D,[WA]:"presentation","aria-describedby":I,placeholderValue:e.placeholderValue,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,granularity:e.granularity,shouldForceLeadingZeros:e.shouldForceLeadingZeros,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isRequired:e.isRequired,validationBehavior:e.validationBehavior},F=Hf(e),{focusWithinProps:$}=Jv({...e,isDisabled:t.isOpen,onBlurWithin:e.onBlur,onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange}),P=x.useRef(ni),M=x.useRef(ni);return{groupProps:Xt(F,E,c,b,$,{role:"group","aria-disabled":e.isDisabled||null,"aria-describedby":I,onKeyDown(A){t.isOpen||e.onKeyDown&&e.onKeyDown(A)},onKeyUp(A){t.isOpen||e.onKeyUp&&e.onKeyUp(A)}}),labelProps:{...u,onClick:()=>{D.focusFirst()}},buttonProps:{...b,id:w,"aria-haspopup":"dialog","aria-label":a.format("calendar"),"aria-labelledby":`${w} ${f}`,"aria-describedby":I,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:C,"aria-labelledby":`${w} ${f}`},startFieldProps:{...v,..._,value:(r=t.value)===null||r===void 0?void 0:r.start,onChange:A=>t.setDateTime("start",A),autoFocus:e.autoFocus,name:e.startName,[Ml]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(A){P.current=A,t.updateValidation(kl(A,M.current))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},endFieldProps:{...y,..._,value:(i=t.value)===null||i===void 0?void 0:i.end,onChange:A=>t.setDateTime("end",A),name:e.endName,[Ml]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(A){M.current=A,t.updateValidation(kl(P.current,A))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},descriptionProps:d,errorMessageProps:h,calendarProps:{autoFocus:!0,value:t.dateRange,onChange:t.setDateRange,minValue:e.minValue,maxValue:e.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isDateUnavailable:e.isDateUnavailable,allowsNonContiguousRanges:e.allowsNonContiguousRanges,defaultFocusedValue:t.dateRange?void 0:e.placeholderValue,isInvalid:t.isInvalid,errorMessage:typeof e.errorMessage=="function"?e.errorMessage(t.displayValidation):e.errorMessage||t.displayValidation.validationErrors.join(" ")},isInvalid:o,validationErrors:s,validationDetails:l}}function ea(e,t,n){return t!=null&&e.compare(t)<0||n!=null&&e.compare(n)>0}function yd(e,t,n,r,i){let a={};for(let s in t)a[s]=Math.floor(t[s]/2),a[s]>0&&t[s]%2===0&&a[s]--;let o=oi(e,t,n).subtract(a);return Eo(e,o,t,n,r,i)}function oi(e,t,n,r,i){let a=e;return t.years?a=R9(e):t.months?a=zo(e):t.weeks&&(a=bo(e,n)),Eo(e,a,t,n,r,i)}function xd(e,t,n,r,i){let a={...t};t.days?a.days--:t.weeks?a.weeks--:t.months?a.months--:t.years&&a.years--;let o=oi(e,t,n).subtract(a);return Eo(e,o,t,n,r,i)}function Eo(e,t,n,r,i,a){return i&&e.compare(i)>=0&&(t=Ff(t,oi(on(i),n,r))),a&&e.compare(a)<=0&&(t=Af(t,xd(on(a),n,r))),t}function vr(e,t,n){return t&&(e=Ff(e,on(t))),n&&(e=Af(e,on(n))),e}function $x(e,t,n){if(!n)return e;for(;e.compare(t)>=0&&n(e);)e=e.subtract({days:1});if(e.compare(t)>=0)return e}function Rx(e){let t=x.useMemo(()=>new xo(e.locale),[e.locale]),n=x.useMemo(()=>t.resolvedOptions(),[t]),{locale:r,createCalendar:i,visibleDuration:a={months:1},minValue:o,maxValue:s,selectionAlignment:l,isDateUnavailable:u,pageBehavior:c="visible"}=e,d=x.useMemo(()=>i(n.calendar),[i,n.calendar]),[h,f]=Do(e.value,e.defaultValue,e.onChange),g=x.useMemo(()=>h?bt(on(h),d):null,[h,d]),m=x.useMemo(()=>h&&"timeZone"in h?h.timeZone:n.timeZone,[h,n.timeZone]),p=x.useMemo(()=>e.focusedValue?vr(bt(on(e.focusedValue),d),o,s):void 0,[e.focusedValue,d,o,s]),b=x.useMemo(()=>vr(e.defaultFocusedValue?bt(on(e.defaultFocusedValue),d):g||bt(Rf(m),d),o,s),[e.defaultFocusedValue,g,m,d,o,s]),[v,y]=Do(p,b,e.onFocusChange),[w,C]=x.useState(()=>{switch(l){case"start":return oi(v,a,r,o,s);case"end":return xd(v,a,r,o,s);case"center":default:return yd(v,a,r,o,s)}}),[E,I]=x.useState(e.autoFocus||!1),D=x.useMemo(()=>{let R={...a};return R.days?R.days--:R.days=-1,w.add(R)},[w,a]),[_,F]=x.useState(d.identifier);if(d.identifier!==_){let R=bt(v,d);C(yd(R,a,r,o,s)),y(R),F(d.identifier)}ea(v,o,s)?y(vr(v,o,s)):v.compare(w)<0?C(xd(v,a,r,o,s)):v.compare(D)>0&&C(oi(v,a,r,o,s));function $(R){R=vr(R,o,s),y(R)}function P(R){if(!e.isDisabled&&!e.isReadOnly){if(R===null){f(null);return}if(R=vr(R,o,s),R=$x(R,w,u),!R)return;R=bt(R,(h==null?void 0:h.calendar)||new sn),h&&"hour"in h?f(h.set(R)):f(R)}}let M=x.useMemo(()=>g?u&&u(g)?!0:ea(g,o,s):!1,[g,u,o,s]),A=e.isInvalid||e.validationState==="invalid"||M,B=A?"invalid":null,T=x.useMemo(()=>c==="visible"?a:gc(a),[c,a]);return{isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,value:g,setValue:P,visibleRange:{start:w,end:D},minValue:o,maxValue:s,focusedDate:v,timeZone:m,validationState:B,isValueInvalid:A,setFocusedDate(R){$(R),I(!0)},focusNextDay(){$(v.add({days:1}))},focusPreviousDay(){$(v.subtract({days:1}))},focusNextRow(){a.days?this.focusNextPage():(a.weeks||a.months||a.years)&&$(v.add({weeks:1}))},focusPreviousRow(){a.days?this.focusPreviousPage():(a.weeks||a.months||a.years)&&$(v.subtract({weeks:1}))},focusNextPage(){let R=w.add(T);y(vr(v.add(T),o,s)),C(oi(Eo(v,R,T,r,o,s),T,r))},focusPreviousPage(){let R=w.subtract(T);y(vr(v.subtract(T),o,s)),C(oi(Eo(v,R,T,r,o,s),T,r))},focusSectionStart(){a.days?$(w):a.weeks?$(bo(v,r)):(a.months||a.years)&&$(zo(v))},focusSectionEnd(){a.days?$(D):a.weeks?$(A9(v,r)):(a.months||a.years)&&$(ed(v))},focusNextSection(R){if(!R&&!a.days){$(v.add(gc(a)));return}a.days?this.focusNextPage():a.weeks?$(v.add({months:1})):(a.months||a.years)&&$(v.add({years:1}))},focusPreviousSection(R){if(!R&&!a.days){$(v.subtract(gc(a)));return}a.days?this.focusPreviousPage():a.weeks?$(v.subtract({months:1})):(a.months||a.years)&&$(v.subtract({years:1}))},selectFocusedDate(){P(v)},selectDate(R){P(R)},isFocused:E,setFocused:I,isInvalid(R){return ea(R,o,s)},isSelected(R){return g!=null&&ht(R,g)&&!this.isCellDisabled(R)&&!this.isCellUnavailable(R)},isCellFocused(R){return E&&v&&ht(R,v)},isCellDisabled(R){return e.isDisabled||R.compare(w)<0||R.compare(D)>0||this.isInvalid(R,o,s)},isCellUnavailable(R){return e.isDateUnavailable&&e.isDateUnavailable(R)},isPreviousVisibleRangeInvalid(){let R=w.subtract({days:1});return ht(R,w)||this.isInvalid(R,o,s)},isNextVisibleRangeInvalid(){let R=D.add({days:1});return ht(R,D)||this.isInvalid(R,o,s)},getDatesInWeek(R,O=w){let H=O.add({weeks:R}),L=[];H=bo(H,r);let Z=hu(H,r);for(let V=0;V<Z;V++)L.push(null);for(;L.length<7;){L.push(H);let V=H.add({days:1});if(ht(H,V))break;H=V}for(;L.length<7;)L.push(null);return L}}}function gc(e){let t={...e};for(let n in e)t[n]=1;return t}function XA(e){let{value:t,defaultValue:n,onChange:r,createCalendar:i,locale:a,visibleDuration:o={months:1},minValue:s,maxValue:l,...u}=e,[c,d]=Do(t,n||null,r),[h,f]=x.useState(null),g="center";if(c&&c.start&&c.end){let O=yd(on(c.start),o,a,s,l).add(o).subtract({days:1});c.end.compare(O)>0&&(g="start")}let m=x.useRef(null),[p,b]=x.useState(null),v=x.useMemo(()=>Ff(s,p==null?void 0:p.start),[s,p]),y=x.useMemo(()=>Af(l,p==null?void 0:p.end),[l,p]),w=Rx({...u,value:c&&c.start,createCalendar:i,locale:a,visibleDuration:o,minValue:v,maxValue:y,selectionAlignment:g}),C=R=>{R&&e.isDateUnavailable&&!e.allowsNonContiguousRanges?(m.current={start:Hm(R,w,-1),end:Hm(R,w,1)},b(m.current)):(m.current=null,b(null))},[E,I]=x.useState(w.visibleRange);(!qc(w.visibleRange.start,E.start)||!qc(w.visibleRange.end,E.end))&&(C(h),I(w.visibleRange));let D=R=>{R?(f(R),C(R)):(f(null),C(null))},_=h?mc(h,w.focusedDate):c&&mc(c.start,c.end),F=R=>{if(!e.isReadOnly&&(R=vr(R,v,y),R=$x(R,w.visibleRange.start,e.isDateUnavailable),!!R))if(!h)D(R);else{let O=mc(h,R);d({start:jm(O.start,c==null?void 0:c.start),end:jm(O.end,c==null?void 0:c.end)}),D(null)}},[$,P]=x.useState(!1),{isDateUnavailable:M}=e,A=x.useMemo(()=>!c||h?!1:M&&(M(c.start)||M(c.end))?!0:ea(c.start,s,l)||ea(c.end,s,l),[M,c,h,s,l]),B=e.isInvalid||e.validationState==="invalid"||A;return{...w,value:c,setValue:d,anchorDate:h,setAnchorDate:D,highlightedRange:_,validationState:B?"invalid":null,isValueInvalid:B,selectFocusedDate(){F(w.focusedDate)},selectDate:F,highlightDate(R){h&&w.setFocusedDate(R)},isSelected(R){return _&&R.compare(_.start)>=0&&R.compare(_.end)<=0&&!w.isCellDisabled(R)&&!w.isCellUnavailable(R)},isInvalid(R){var O,H;return w.isInvalid(R)||ea(R,(O=m.current)===null||O===void 0?void 0:O.start,(H=m.current)===null||H===void 0?void 0:H.end)},isDragging:$,setDragging:P}}function mc(e,t){return!e||!t?null:(t.compare(e)<0&&([e,t]=[t,e]),{start:on(e),end:on(t)})}function jm(e,t){return e=bt(e,(t==null?void 0:t.calendar)||new sn),t&&"hour"in t?t.set(e):e}function Hm(e,t,n){let r=e.add({days:n});for(;(n<0?r.compare(t.visibleRange.start)>=0:r.compare(t.visibleRange.end)<=0)&&!t.isCellUnavailable(r);)r=r.add({days:n});return t.isCellUnavailable(r)?r.add({days:-n}):null}function YA(e){let[t,n]=Do(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const r=x.useCallback(()=>{n(!0)},[n]),i=x.useCallback(()=>{n(!1)},[n]),a=x.useCallback(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:r,close:i,toggle:a}}var Ax={};Ax={rangeOverflow:e=>`يجب أن تكون القيمة ${e.maxValue} أو قبل ذلك.`,rangeReversed:"تاريخ البدء يجب أن يكون قبل تاريخ الانتهاء.",rangeUnderflow:e=>`يجب أن تكون القيمة ${e.minValue} أو بعد ذلك.`,unavailableDate:"البيانات المحددة غير متاحة."};var Fx={};Fx={rangeOverflow:e=>`Стойността трябва да е ${e.maxValue} или по-ранна.`,rangeReversed:"Началната дата трябва да е преди крайната.",rangeUnderflow:e=>`Стойността трябва да е ${e.minValue} или по-късно.`,unavailableDate:"Избраната дата не е налична."};var Px={};Px={rangeOverflow:e=>`Hodnota musí být ${e.maxValue} nebo dřívější.`,rangeReversed:"Datum zahájení musí předcházet datu ukončení.",rangeUnderflow:e=>`Hodnota musí být ${e.minValue} nebo pozdější.`,unavailableDate:"Vybrané datum není k dispozici."};var Tx={};Tx={rangeOverflow:e=>`Værdien skal være ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen skal være før slutdatoen.",rangeUnderflow:e=>`Værdien skal være ${e.minValue} eller nyere.`,unavailableDate:"Den valgte dato er ikke tilgængelig."};var Mx={};Mx={rangeOverflow:e=>`Der Wert muss ${e.maxValue} oder früher sein.`,rangeReversed:"Das Anfangsdatum muss vor dem Enddatum liegen.",rangeUnderflow:e=>`Der Wert muss ${e.minValue} oder später sein.`,unavailableDate:"Das ausgewählte Datum ist nicht verfügbar."};var kx={};kx={rangeOverflow:e=>`Η τιμή πρέπει να είναι ${e.maxValue} ή παλαιότερη.`,rangeReversed:"Η ημερομηνία έναρξης πρέπει να είναι πριν από την ημερομηνία λήξης.",rangeUnderflow:e=>`Η τιμή πρέπει να είναι ${e.minValue} ή μεταγενέστερη.`,unavailableDate:"Η επιλεγμένη ημερομηνία δεν είναι διαθέσιμη."};var Bx={};Bx={rangeUnderflow:e=>`Value must be ${e.minValue} or later.`,rangeOverflow:e=>`Value must be ${e.maxValue} or earlier.`,rangeReversed:"Start date must be before end date.",unavailableDate:"Selected date unavailable."};var Vx={};Vx={rangeOverflow:e=>`El valor debe ser ${e.maxValue} o anterior.`,rangeReversed:"La fecha de inicio debe ser anterior a la fecha de finalización.",rangeUnderflow:e=>`El valor debe ser ${e.minValue} o posterior.`,unavailableDate:"Fecha seleccionada no disponible."};var Ox={};Ox={rangeOverflow:e=>`Väärtus peab olema ${e.maxValue} või varasem.`,rangeReversed:"Alguskuupäev peab olema enne lõppkuupäeva.",rangeUnderflow:e=>`Väärtus peab olema ${e.minValue} või hilisem.`,unavailableDate:"Valitud kuupäev pole saadaval."};var Nx={};Nx={rangeOverflow:e=>`Arvon on oltava ${e.maxValue} tai sitä aikaisempi.`,rangeReversed:"Aloituspäivän on oltava ennen lopetuspäivää.",rangeUnderflow:e=>`Arvon on oltava ${e.minValue} tai sitä myöhäisempi.`,unavailableDate:"Valittu päivämäärä ei ole käytettävissä."};var Lx={};Lx={rangeOverflow:e=>`La valeur doit être ${e.maxValue} ou antérieure.`,rangeReversed:"La date de début doit être antérieure à la date de fin.",rangeUnderflow:e=>`La valeur doit être ${e.minValue} ou ultérieure.`,unavailableDate:"La date sélectionnée n’est pas disponible."};var jx={};jx={rangeOverflow:e=>`הערך חייב להיות ${e.maxValue} או מוקדם יותר.`,rangeReversed:"תאריך ההתחלה חייב להיות לפני תאריך הסיום.",rangeUnderflow:e=>`הערך חייב להיות ${e.minValue} או מאוחר יותר.`,unavailableDate:"התאריך הנבחר אינו זמין."};var Hx={};Hx={rangeOverflow:e=>`Vrijednost mora biti ${e.maxValue} ili ranije.`,rangeReversed:"Datum početka mora biti prije datuma završetka.",rangeUnderflow:e=>`Vrijednost mora biti ${e.minValue} ili kasnije.`,unavailableDate:"Odabrani datum nije dostupan."};var Wx={};Wx={rangeOverflow:e=>`Az értéknek ${e.maxValue} vagy korábbinak kell lennie.`,rangeReversed:"A kezdő dátumnak a befejező dátumnál korábbinak kell lennie.",rangeUnderflow:e=>`Az értéknek ${e.minValue} vagy későbbinek kell lennie.`,unavailableDate:"A kiválasztott dátum nem érhető el."};var zx={};zx={rangeOverflow:e=>`Il valore deve essere ${e.maxValue} o precedente.`,rangeReversed:"La data di inizio deve essere antecedente alla data di fine.",rangeUnderflow:e=>`Il valore deve essere ${e.minValue} o successivo.`,unavailableDate:"Data selezionata non disponibile."};var Gx={};Gx={rangeOverflow:e=>`値は ${e.maxValue} 以下にする必要があります。`,rangeReversed:"開始日は終了日より前にする必要があります。",rangeUnderflow:e=>`値は ${e.minValue} 以上にする必要があります。`,unavailableDate:"選択した日付は使用できません。"};var Zx={};Zx={rangeOverflow:e=>`값은 ${e.maxValue} 이전이어야 합니다.`,rangeReversed:"시작일은 종료일 이전이어야 합니다.",rangeUnderflow:e=>`값은 ${e.minValue} 이상이어야 합니다.`,unavailableDate:"선택한 날짜를 사용할 수 없습니다."};var Xx={};Xx={rangeOverflow:e=>`Reikšmė turi būti ${e.maxValue} arba ankstesnė.`,rangeReversed:"Pradžios data turi būti ankstesnė nei pabaigos data.",rangeUnderflow:e=>`Reikšmė turi būti ${e.minValue} arba naujesnė.`,unavailableDate:"Pasirinkta data nepasiekiama."};var Yx={};Yx={rangeOverflow:e=>`Vērtībai ir jābūt ${e.maxValue} vai agrākai.`,rangeReversed:"Sākuma datumam ir jābūt pirms beigu datuma.",rangeUnderflow:e=>`Vērtībai ir jābūt ${e.minValue} vai vēlākai.`,unavailableDate:"Atlasītais datums nav pieejams."};var Ux={};Ux={rangeOverflow:e=>`Verdien må være ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen må være før sluttdatoen.",rangeUnderflow:e=>`Verdien må være ${e.minValue} eller senere.`,unavailableDate:"Valgt dato utilgjengelig."};var Jx={};Jx={rangeOverflow:e=>`Waarde moet ${e.maxValue} of eerder zijn.`,rangeReversed:"De startdatum moet voor de einddatum liggen.",rangeUnderflow:e=>`Waarde moet ${e.minValue} of later zijn.`,unavailableDate:"Geselecteerde datum niet beschikbaar."};var Kx={};Kx={rangeOverflow:e=>`Wartość musi mieć wartość ${e.maxValue} lub wcześniejszą.`,rangeReversed:"Data rozpoczęcia musi być wcześniejsza niż data zakończenia.",rangeUnderflow:e=>`Wartość musi mieć wartość ${e.minValue} lub późniejszą.`,unavailableDate:"Wybrana data jest niedostępna."};var Qx={};Qx={rangeOverflow:e=>`O valor deve ser ${e.maxValue} ou anterior.`,rangeReversed:"A data inicial deve ser anterior à data final.",rangeUnderflow:e=>`O valor deve ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."};var qx={};qx={rangeOverflow:e=>`O valor tem de ser ${e.maxValue} ou anterior.`,rangeReversed:"A data de início deve ser anterior à data de fim.",rangeUnderflow:e=>`O valor tem de ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."};var e4={};e4={rangeOverflow:e=>`Valoarea trebuie să fie ${e.maxValue} sau anterioară.`,rangeReversed:"Data de început trebuie să fie anterioară datei de sfârșit.",rangeUnderflow:e=>`Valoarea trebuie să fie ${e.minValue} sau ulterioară.`,unavailableDate:"Data selectată nu este disponibilă."};var t4={};t4={rangeOverflow:e=>`Значение должно быть не позже ${e.maxValue}.`,rangeReversed:"Дата начала должна предшествовать дате окончания.",rangeUnderflow:e=>`Значение должно быть не раньше ${e.minValue}.`,unavailableDate:"Выбранная дата недоступна."};var n4={};n4={rangeOverflow:e=>`Hodnota musí byť ${e.maxValue} alebo skoršia.`,rangeReversed:"Dátum začiatku musí byť skorší ako dátum konca.",rangeUnderflow:e=>`Hodnota musí byť ${e.minValue} alebo neskoršia.`,unavailableDate:"Vybratý dátum je nedostupný."};var r4={};r4={rangeOverflow:e=>`Vrednost mora biti ${e.maxValue} ali starejša.`,rangeReversed:"Začetni datum mora biti pred končnim datumom.",rangeUnderflow:e=>`Vrednost mora biti ${e.minValue} ali novejša.`,unavailableDate:"Izbrani datum ni na voljo."};var i4={};i4={rangeOverflow:e=>`Vrednost mora da bude ${e.maxValue} ili starija.`,rangeReversed:"Datum početka mora biti pre datuma završetka.",rangeUnderflow:e=>`Vrednost mora da bude ${e.minValue} ili novija.`,unavailableDate:"Izabrani datum nije dostupan."};var a4={};a4={rangeOverflow:e=>`Värdet måste vara ${e.maxValue} eller tidigare.`,rangeReversed:"Startdatumet måste vara före slutdatumet.",rangeUnderflow:e=>`Värdet måste vara ${e.minValue} eller senare.`,unavailableDate:"Det valda datumet är inte tillgängligt."};var o4={};o4={rangeOverflow:e=>`Değer, ${e.maxValue} veya öncesi olmalıdır.`,rangeReversed:"Başlangıç tarihi bitiş tarihinden önce olmalıdır.",rangeUnderflow:e=>`Değer, ${e.minValue} veya sonrası olmalıdır.`,unavailableDate:"Seçilen tarih kullanılamıyor."};var s4={};s4={rangeOverflow:e=>`Значення має бути не пізніше ${e.maxValue}.`,rangeReversed:"Дата початку має передувати даті завершення.",rangeUnderflow:e=>`Значення має бути не раніше ${e.minValue}.`,unavailableDate:"Вибрана дата недоступна."};var l4={};l4={rangeOverflow:e=>`值必须是 ${e.maxValue} 或更早日期。`,rangeReversed:"开始日期必须早于结束日期。",rangeUnderflow:e=>`值必须是 ${e.minValue} 或更晚日期。`,unavailableDate:"所选日期不可用。"};var u4={};u4={rangeOverflow:e=>`值必須是 ${e.maxValue} 或更早。`,rangeReversed:"開始日期必須在結束日期之前。",rangeUnderflow:e=>`值必須是 ${e.minValue} 或更晚。`,unavailableDate:"所選日期無法使用。"};var c4={};c4={"ar-AE":Ax,"bg-BG":Fx,"cs-CZ":Px,"da-DK":Tx,"de-DE":Mx,"el-GR":kx,"en-US":Bx,"es-ES":Vx,"et-EE":Ox,"fi-FI":Nx,"fr-FR":Lx,"he-IL":jx,"hr-HR":Hx,"hu-HU":Wx,"it-IT":zx,"ja-JP":Gx,"ko-KR":Zx,"lt-LT":Xx,"lv-LV":Yx,"nb-NO":Ux,"nl-NL":Jx,"pl-PL":Kx,"pt-BR":Qx,"pt-PT":qx,"ro-RO":e4,"ru-RU":t4,"sk-SK":n4,"sl-SI":r4,"sr-SP":i4,"sv-SE":a4,"tr-TR":o4,"uk-UA":s4,"zh-CN":l4,"zh-TW":u4};function UA(e){return e&&e.__esModule?e.default:e}const d4=new Ei(UA(c4));function f4(){return typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US"}function Wm(e,t,n,r,i){let a=e!=null&&n!=null&&e.compare(n)>0,o=e!=null&&t!=null&&e.compare(t)<0,s=e!=null&&(r==null?void 0:r(e))||!1,l=a||o||s,u=[];if(l){let c=f4(),d=Ei.getGlobalDictionaryForPackage("@react-stately/datepicker")||d4,h=new oy(c,d),f=new xo(c,Cd({},i)),g=f.resolvedOptions().timeZone;o&&u.push(h.format("rangeUnderflow",{minValue:f.format(t.toDate(g))})),a&&u.push(h.format("rangeOverflow",{maxValue:f.format(n.toDate(g))})),s&&u.push(h.format("unavailableDate"))}return{isInvalid:l,validationErrors:u,validationDetails:{badInput:s,customError:!1,patternMismatch:!1,rangeOverflow:a,rangeUnderflow:o,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!l}}}function JA(e,t,n,r,i){let a=Wm(e==null?void 0:e.start,t,n,r,i),o=Wm(e==null?void 0:e.end,t,n,r,i),s=kl(a,o);if(e.end!=null&&e.start!=null&&e.end.compare(e.start)<0){let l=Ei.getGlobalDictionaryForPackage("@react-stately/datepicker")||d4;s=kl(s,{isInvalid:!0,validationErrors:[l.getStringForLocale("rangeReversed",f4())],validationDetails:{...pu,rangeUnderflow:!0,rangeOverflow:!0,valid:!1}})}return s}const KA={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},QA={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};function Cd(e,t){e={...t.shouldForceLeadingZeros?QA:KA,...e};let r=t.granularity||"minute",i=Object.keys(e);var a;let o=i.indexOf((a=t.maxGranularity)!==null&&a!==void 0?a:"year");o<0&&(o=0);let s=i.indexOf(r);if(s<0&&(s=2),o>s)throw new Error("maxGranularity must be greater than granularity");let l=i.slice(o,s+1).reduce((c,d)=>(c[d]=e[d],c),{});return t.hourCycle!=null&&(l.hour12=t.hourCycle===12),l.timeZone=t.timeZone||"UTC",(r==="hour"||r==="minute"||r==="second")&&t.timeZone&&!t.hideTimeZone&&(l.timeZoneName="short"),t.showEra&&o===0&&(l.era="short"),l}function vs(e){return e&&"hour"in e?e:new Of}function qA(e,t){let n=e&&"timeZone"in e?e.timeZone:void 0,r=e&&"minute"in e?"minute":"day";if(e&&t&&!(t in e))throw new Error("Invalid granularity "+t+" for value "+e.toString());let[i,a]=x.useState([r,n]);e&&(i[0]!==r||i[1]!==n)&&a([r,n]),t||(t=e?r:i[0]);let o=e?n:i[1];return[t,o]}function eF(e){var t,n;let r=YA(e),[i,a]=Do(e.value,e.defaultValue||null,e.onChange),[o,s]=x.useState(()=>i||{start:null,end:null});i==null&&o.start&&o.end&&(o={start:null,end:null},s(o));let l=i||o,u=T=>{s(T||{start:null,end:null}),T!=null&&T.start&&T.end?a(T):a(null)},c=(l==null?void 0:l.start)||(l==null?void 0:l.end)||e.placeholderValue,[d,h]=qA(c,e.granularity),f=d==="hour"||d==="minute"||d==="second";var g;let m=(g=e.shouldCloseOnSelect)!==null&&g!==void 0?g:!0,[p,b]=x.useState(null),[v,y]=x.useState(null);l&&l.start&&l.end&&(p=l,"hour"in l.start&&(v=l));let w=(T,R)=>{u({start:"timeZone"in R.start?R.start.set(on(T.start)):Pr(T.start,R.start),end:"timeZone"in R.end?R.end.set(on(T.end)):Pr(T.end,R.end)}),b(null),y(null),M.commitValidation()},C=T=>{let R=typeof m=="function"?m():m;f?R||T.start&&T.end&&(v!=null&&v.start)&&(v!=null&&v.end)?w(T,{start:(v==null?void 0:v.start)||vs(e.placeholderValue),end:(v==null?void 0:v.end)||vs(e.placeholderValue)}):b(T):T.start&&T.end?(u(T),M.commitValidation()):b(T),R&&r.setOpen(!1)},E=T=>{p!=null&&p.start&&(p!=null&&p.end)&&T.start&&T.end?w(p,T):y(T)},I=(l==null||(t=l.start)===null||t===void 0?void 0:t.calendar.identifier)==="gregory"&&l.start.era==="BC"||(l==null||(n=l.end)===null||n===void 0?void 0:n.calendar.identifier)==="gregory"&&l.end.era==="BC",D=x.useMemo(()=>({granularity:d,timeZone:h,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:I}),[d,e.hourCycle,e.shouldForceLeadingZeros,h,e.hideTimeZone,I]),{minValue:_,maxValue:F,isDateUnavailable:$}=e,P=x.useMemo(()=>JA(l,_,F,$,D),[l,_,F,$,D]),M=VA({...e,value:i,name:x.useMemo(()=>[e.startName,e.endName],[e.startName,e.endName]),builtinValidation:P}),A=M.displayValidation.isInvalid,B=e.validationState||(A?"invalid":null);return{...M,value:l,setValue:u,dateRange:p,timeRange:v,granularity:d,hasTime:f,setDate(T,R){C({...p,[T]:R})},setTime(T,R){E({...v,[T]:R})},setDateTime(T,R){u({...l,[T]:R})},setDateRange:C,setTimeRange:E,...r,setOpen(T){!T&&!(l!=null&&l.start&&(l!=null&&l.end))&&(p!=null&&p.start)&&(p!=null&&p.end)&&f&&w(p,{start:(v==null?void 0:v.start)||vs(e.placeholderValue),end:(v==null?void 0:v.end)||vs(e.placeholderValue)}),r.setOpen(T)},validationState:B,isInvalid:A,formatValue(T,R){if(!l||!l.start||!l.end)return null;let O="timeZone"in l.start?l.start.timeZone:void 0,H=e.granularity||(l.start&&"minute"in l.start?"minute":"day"),L="timeZone"in l.end?l.end.timeZone:void 0,Z=e.granularity||(l.end&&"minute"in l.end?"minute":"day"),V=Cd(R,{granularity:H,timeZone:O,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,showEra:l.start.calendar.identifier==="gregory"&&l.start.era==="BC"||l.end.calendar.identifier==="gregory"&&l.end.era==="BC"}),W=l.start.toDate(O||"UTC"),q=l.end.toDate(L||"UTC"),Y=new xo(T,V),N;if(O===L&&H===Z&&l.start.compare(l.end)!==0){try{let G=Y.formatRangeToParts(W,q),J=-1;for(let le=0;le<G.length;le++){let z=G[le];if(z.source==="shared"&&z.type==="literal")J=le;else if(z.source==="endRange")break}let re="",fe="";for(let le=0;le<G.length;le++)le<J?re+=G[le].value:le>J&&(fe+=G[le].value);return{start:re,end:fe}}catch{}N=Y}else{let G=Cd(R,{granularity:Z,timeZone:L,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle});N=new xo(T,G)}return{start:Y.format(W),end:N.format(q)}}}}const h4=e=>{const t=x.useRef(null),{locale:n}=$n(),{state:r,date:i}=e,{cellProps:a,buttonProps:o,isSelected:s,isOutsideVisibleRange:l,isDisabled:u,formattedDate:c,isInvalid:d}=kA({date:i},r,t),{focusProps:h}=ty(),f="highlightedRange"in r?r.highlightedRange?ht(i,r.highlightedRange.start):null:s,g="highlightedRange"in r?r.highlightedRange?ht(i,r.highlightedRange.end):null:s,m=hu(i,n),p=s&&(f??m===0??i.day===1),b=s&&(g??m===6??i.day===i.calendar.getDaysInMonth(i));return S.jsx("td",{...a,children:S.jsx("div",{...Xt(o,h),ref:t,className:`${ge["cell-calendar"]} ${p?"1ru-rounded-l-full":""} ${b?"1ru-rounded-r-full":""} ${s?d?"1ru-bg-red-300":"1ru-bg-laba-blue-02":""} ${u?"1ru-disabled":""}`,children:l?S.jsx("div",{className:ge["visible-cell-calendar"],children:c}):S.jsx("div",{className:`${ge["active-cell-calendar"]} ${u&&!d?ge.disabled:""} ${f||g?d?ge.error:ge.selected:""} ${s&&!u&&!(f??g)?d?"hover:1ru-bg-red-400":"hover:1ru-text-laba-blue-05":""} ${!s&&!u?"hover:1ru-bg-laba-blue-01":""}`,children:c})})})},ua=e=>{const t=x.useRef(null),{buttonProps:n}=RA(e,t),{focusProps:r}=ty();return S.jsx("button",{...Xt(n,r),ref:t,className:`1ru-px-2 1ru-py-1 1ru-rounded-full ${e.isDisabled?"1ru-text-gray-400":"1ru-text-laba-blue-10"} ${e.isDisabled?"":"hover:1ru-bg-laba-blue-01 1ru-cursor-pointer"} 1ru-outline-none`,children:e.children})},g4=({prevIcon:e,nextIcon:t,state:n,setActiveTypeCalendar:r,onChangeMonth:i,type:a})=>{const o=n.focusedDate.calendar.getMonthsInYear(n.focusedDate),s=Tr({month:"short",timeZone:n.timeZone}),l=(c,d)=>{const h=n.focusedDate.set({month:c});d?(r("date"),n.setFocusedDate(h)):!d&&typeof i=="function"&&i(h)},u=c=>{const d=n.focusedDate.set({year:c});n.setFocusedDate(d)};return S.jsxs("div",{className:`1ru-w-[296px] ${ge["container-calendar"]}`,children:[S.jsxs("div",{className:ge["header-calendar"],children:[S.jsx(ua,{isDisabled:n!=null&&n.minValue?n.focusedDate.year<=n.minValue.year:!1,onPress:()=>u(n.focusedDate.year-1),children:typeof e=="function"||x.isValidElement(e)?x.isValidElement(e)?e:e():S.jsx(Ln,{className:"1ru-rotate-90"})}),S.jsx("div",{className:`${ge["header-button-calendar"]} ${a.includes("year")?"":ge.disabled}`,onClick:()=>{a.includes("year")&&r("year")},children:n.focusedDate.year}),S.jsx(ua,{isDisabled:n!=null&&n.maxValue?n.focusedDate.year>=n.maxValue.year:!1,onPress:()=>u(n.focusedDate.year+1),children:typeof t=="function"||x.isValidElement(t)?x.isValidElement(t)?t:t():S.jsx(Ln,{className:"-1ru-rotate-90"})})]}),S.jsx("div",{className:ge["month-calendar"],children:[...Array(o).keys()].map(c=>{var p;const d=n.focusedDate.set({month:c+1}),h=s.format(d.toDate(n.timeZone)),f=n!=null&&n.minValue?d.month<((p=n==null?void 0:n.minValue)==null?void 0:p.month)&&d.year<=n.minValue.year:!1,g=n!=null&&n.maxValue?d.month>n.maxValue.month&&d.year>=n.maxValue.year:!1,m=f||g;return S.jsx("div",{onClick:()=>{m||l(d.month,a.includes("date"))},className:`${ge["cell-month"]} ${n.focusedDate.month===d.month&&!m&&d.year===n.value.year?ge.selected:""} ${n.focusedDate.month!==d.month&&!m?"hover:1ru-bg-laba-blue-01":""} ${m?"1ru-text-gray-400":"1ru-cursor-pointer"}`,children:h},c)})})]})},tF=e=>{const t=sv(e.state.visibleRange.start,e.locale),{gridProps:n,headerProps:r,weekDays:i}=Gy({},e.state),{prevButtonProps:a,nextButtonProps:o,title:s}=zy(e,e.state),l=u=>{let c="";switch(u){case 0:c="Min";break;case 1:c="Sen";break;case 2:c="Sel";break;case 3:c="Rab";break;case 4:c="Kam";break;case 5:c="Jum";break;case 6:c="Sab";break}return c};return S.jsxs("div",{children:[S.jsxs("div",{className:ge["header-calendar"],children:[S.jsx(ua,{...a,children:typeof(e==null?void 0:e.prevIcon)=="function"||x.isValidElement(e==null?void 0:e.prevIcon)?x.isValidElement(e.prevIcon)?e.prevIcon:e.prevIcon():S.jsx(Ln,{className:"1ru-rotate-90"})}),S.jsx("div",{className:ge["header-button-calendar"],onClick:()=>e.setActiveTypeCalendar("month"),children:s}),S.jsx(ua,{...o,children:typeof(e==null?void 0:e.nextIcon)=="function"||x.isValidElement(e==null?void 0:e.nextIcon)?x.isValidElement(e.nextIcon)?e.nextIcon:e.nextIcon():S.jsx(Ln,{className:"-1ru-rotate-90"})})]}),S.jsxs("table",{...n,children:[S.jsx("thead",{...r,children:S.jsx("tr",{children:i.map((u,c)=>S.jsx("th",{className:ge["days-calendar"],children:l(c)},c))})}),S.jsx("tbody",{children:[...new Array(t).keys()].map(u=>S.jsx("tr",{children:e.state.getDatesInWeek(u).map((c,d)=>c?S.jsx(h4,{state:e.state,date:c},d):S.jsx("td",{},d))},u))})]})]})},nF=({minDate:e,maxDate:t,value:n,time:r,handlerChangeTime:i})=>{const a=e?new Date(e):null,o=t?new Date(t):null,s=a==null?void 0:a.getHours(),l=o==null?void 0:o.getHours(),u=a==null?void 0:a.getMinutes(),c=o==null?void 0:o.getMinutes(),[d,h]=x.useState(!0),f=(b,v,y)=>Array.from({length:(v-b)/y+1},(w,C)=>b+C*y),g=(b,v)=>{typeof i=="function"&&i({hour:b,minut:v,second:r==null?void 0:r.second})},m=()=>{const b=document.getElementById(`calendar-hour-${r==null?void 0:r.hour}`),v=document.getElementById(`calendar-minut-${r==null?void 0:r.minut}`),y=document.getElementById("wrapper-calendar-hour"),w=document.getElementById("wrapper-calendar-minut");b&&y&&y.scrollTo({behavior:"instant",top:b.offsetTop-75}),v&&w&&w.scrollTo({behavior:"instant",top:v.offsetTop-75})},p=(b,v)=>{let y=!0;if(a&&n){const w=n.year===a.getFullYear(),C=n.month===a.getMonth()+1;n.day===a.getDate()&&C&&w?(v==="hour"&&b<(s??0)||v==="minut"&&((r==null?void 0:r.hour)??0)<=a.getHours()&&b<(u??0))&&(y=!1):n.toDate(gi()).getTime()<a.getTime()&&(y=!1)}if(o&&n){const w=n.year===o.getFullYear(),C=n.month===o.getMonth()+1;n.day===o.getDate()&&C&&w?(v==="hour"&&b>(l??0)||v==="minut"&&((r==null?void 0:r.hour)??0)>=o.getHours()&&b>(c??0))&&(y=!1):n.toDate(gi()).getTime()>o.getTime()&&(y=!1)}return y};return x.useEffect(()=>{d&&m(),r&&h(!1)},[JSON.stringify(n)]),S.jsxs("div",{className:ge["custom-time-calendar"],children:[S.jsx("div",{className:ge["header-time"],children:"Atur Waktu"}),S.jsxs("div",{className:ge["type-time"],children:[S.jsx("div",{children:"Jam"}),S.jsx("div",{children:"Menit"})]}),S.jsxs("div",{className:"1ru-flex 1ru-justify-around",children:[S.jsx("div",{id:"wrapper-calendar-hour",className:ge["container-cell-time"],children:f(0,23,1).map(b=>S.jsx("div",{id:`calendar-hour-${b}`,className:`${ge["cell-time"]} ${(r==null?void 0:r.hour)===b?p(b,"hour")?ge.selected:ge.error:""} ${p(b,"hour")&&(r==null?void 0:r.hour)!=b?ge.valid:ge.invalid}`,onClick:()=>{p(b,"hour")&&g(b,r==null?void 0:r.minut)},children:b},b))}),S.jsx("div",{id:"wrapper-calendar-minut",className:ge["container-cell-time"],children:f(0,59,1).map(b=>S.jsx("div",{id:`calendar-minut-${b}`,className:`${ge["cell-time"]} ${(r==null?void 0:r.minut)===b?p(b,"minut")?ge.selected:ge.error:""} ${p(b,"minut")&&(r==null?void 0:r.minut)!=b?ge.valid:ge.invalid}`,onClick:()=>{p(b,"minut")&&g(r==null?void 0:r.hour,b)},children:b},b))})]})]})},bu=e=>{const t=Rx({...e,locale:e.locale,createCalendar:Zo}),{title:n}=zy(e,t),[r,i]=x.useState((e==null?void 0:e.activeType)??"date"),a=o=>{t.setValue(o)};return jo(()=>{e!=null&&e.activeType&&i(e.activeType)},[e==null?void 0:e.activeType]),S.jsxs("div",{className:"1ru-text-laba-base-sr",children:[r==="date"&&S.jsx(S.Fragment,{children:S.jsxs("div",{className:ge["container-calendar"],children:[S.jsxs("div",{className:"1ru-flex 1ru-gap-2",children:[S.jsx(tF,{state:t,setActiveTypeCalendar:i,...e}),(e==null?void 0:e.isCustomTime)&&S.jsx(nF,{minDate:e.minDate,maxDate:e.maxDate,time:e.time,value:e.value,handlerChangeTime:e.handlerChangeTime})]}),((e==null?void 0:e.withConfirm)??(e==null?void 0:e.isCustomTime))&&S.jsxs("div",{className:`${ge["footer-calendar"]}`,children:[typeof(e==null?void 0:e.buttonReset)=="function"?S.jsx("div",{onClick:()=>e.handlerReset(t),children:e.buttonReset()}):S.jsx(Hn,{variants:"nude-laba-blue-10",size:"small",onClick:()=>e.handlerReset(t),children:"Reset"}),typeof(e==null?void 0:e.buttonSubmit)=="function"?S.jsx("div",{onClick:e.handlerSubmit,children:e.buttonSubmit()}):S.jsx(Hn,{size:"small",onClick:e.handlerSubmit,children:"Terapkan"})]})]})}),r==="month"&&S.jsx(g4,{state:t,setActiveTypeCalendar:i,type:e.type,onChangeMonth:a}),r==="year"&&S.jsx(g1,{state:t,type:e.type,setActiveTypeCalendar:i,title:n,onChangeYear:a})]})},rF=e=>{const t=x.useRef(null),{locale:n}=$n(),r=XA({...e,locale:n,createCalendar:Zo}),i=m=>{let p="";switch(m){case 0:p="Min";break;case 1:p="Sen";break;case 2:p="Sel";break;case 3:p="Rab";break;case 4:p="Kam";break;case 5:p="Jum";break;case 6:p="Sab";break}return p},{calendarProps:a,prevButtonProps:o,nextButtonProps:s,title:l}=TA(e,r,t),{gridProps:u,headerProps:c,weekDays:d}=Gy({},r),h=sv(r.visibleRange.start,n),[f,g]=x.useState("date");return S.jsxs("div",{className:"1ru-text-laba-base-sr",children:[f==="date"&&S.jsx(S.Fragment,{children:S.jsx("div",{...a,ref:t,children:S.jsxs("div",{className:ge["container-calendar"],children:[S.jsxs("div",{className:ge["header-calendar"],children:[S.jsx(ua,{...o,children:typeof(e==null?void 0:e.prevIcon)=="function"||x.isValidElement(e==null?void 0:e.prevIcon)?x.isValidElement(e.prevIcon)?e.prevIcon:e.prevIcon():S.jsx(Ln,{className:"1ru-rotate-90"})}),S.jsx("div",{className:ge["header-button-calendar"],onClick:()=>g("month"),children:l}),S.jsx(ua,{...s,children:typeof(e==null?void 0:e.nextIcon)=="function"||x.isValidElement(e==null?void 0:e.nextIcon)?x.isValidElement(e.nextIcon)?e.nextIcon:e.nextIcon():S.jsx(Ln,{className:"-1ru-rotate-90"})})]}),S.jsxs("table",{...u,cellPadding:"0",className:"flex-1",children:[S.jsx("thead",{...c,className:"text-gray-600",children:S.jsx("tr",{children:d.map((m,p)=>S.jsx("th",{className:ge["days-calendar"],children:i(p)},p))})}),S.jsx("tbody",{children:[...new Array(h).keys()].map(m=>S.jsx("tr",{children:r.getDatesInWeek(m).map((p,b)=>p?S.jsx(h4,{state:r,date:p},b):S.jsx("td",{},b))},m))})]}),e.withConfirm&&S.jsxs("div",{className:ge["footer-calendar"],children:[typeof(e==null?void 0:e.buttonReset)=="function"?S.jsx("div",{onClick:()=>e.handlerReset(r),children:e.buttonReset()}):S.jsx(Hn,{variants:"nude-laba-blue-10",size:"small",onClick:()=>e.handlerReset(r),children:"Reset"}),typeof(e==null?void 0:e.buttonSubmit)=="function"?S.jsx("div",{onClick:e.handlerSubmit,children:e.buttonSubmit()}):S.jsx(Hn,{size:"small",onClick:e.handlerSubmit,children:"Terapkan"})]})]})})}),f==="month"&&S.jsx(g4,{state:r,setActiveTypeCalendar:g,type:["date","month","year"]}),f==="year"&&S.jsx(g1,{state:r,setActiveTypeCalendar:g,title:l,type:["date","month","year"]})]})},m4=e=>{const t=eF(e),n=x.useRef(null),{calendarProps:r}=ZA(e,t,n);return S.jsx("div",{ref:n,children:S.jsx(rF,{handlerReset:e.handlerReset,handlerSubmit:e.handlerSubmit,withConfirm:e.withConfirm,prevIcon:e.prevIcon,nextIcon:e.nextIcon,buttonReset:e.buttonReset,buttonSubmit:e.buttonSubmit,...r})})},ys=e=>{let t;const n=new Date(e??new Date);return e&&(t=Bf(new Date(n.setHours(n.getHours()+7)).toISOString().slice(0,10))),t},iF=e=>{const{minDate:t,maxDate:n,value:r,defaultValue:i,withConfirm:a=!1,isCustomTime:o=!1,className:s,classNameButton:l,buttonClick:u,buttonReset:c,buttonSubmit:d,prevIcon:h,nextIcon:f,onChange:g,id:m="date-picker",idPopover:p="date-picker-popover",floatingOptions:b={},offsetPopover:v=5,zIndexPopper:y=1}=e,w=Tr(),{locale:C}=$n(),E=ys(t),I=ys(n),D=x.useRef(null),[_,F]=x.useState(),[$,P]=x.useState(),M=O=>{var W;const H=new Date;let L=O.toDate(gi());L.setHours(H.getHours(),H.getMinutes(),H.getSeconds());const Z=t?new Date(t):null,V=n?new Date(n):null;if(o){if(L=new Date(new Date(L).setHours(($==null?void 0:$.hour)??0,$==null?void 0:$.minut,$==null?void 0:$.second)),Z&&(Z==null?void 0:Z.toDateString())===new Date(L).toDateString()&&(Z==null?void 0:Z.toTimeString())>=(L==null?void 0:L.toTimeString())){if(Z&&(Z.getHours()>L.getHours()||Z.getHours()===L.getHours()&&Z.getMinutes()>L.getMinutes()))return;L=new Date(Z.setSeconds(Z.getSeconds()+1))}if(V&&(V==null?void 0:V.toDateString())===new Date(L).toDateString()&&(V==null?void 0:V.toTimeString())<(L==null?void 0:L.toTimeString())){if(V&&(V.getHours()<L.getHours()||V.getHours()===L.getHours()&&V.getMinutes()<L.getMinutes()))return;L=new Date(V.setSeconds(V.getSeconds()-1))}}else Z&&w.format(L)===w.format(Z)&&Z.getTime()>=L.getTime()?L=new Date(Z.setSeconds(Z.getSeconds()+1)):V&&w.format(L)===w.format(V)&&V.getTime()<=L.getTime()&&(L=new Date(V.setSeconds(V.getSeconds()-1)));typeof g=="function"&&(g(L),(W=D.current)==null||W.setShow(!1))},A=(O,H)=>{F(O),(H??(!a&&!o))&&M(O)},B=O=>{P(O)},T=O=>{const H=new Date(r??new Date);if(r&&O){const L=O.focusedDate.set({month:H.getMonth()+1,year:H.getFullYear()});O.setFocusedDate(L)}P({hour:H.getHours(),minut:H.getMinutes(),second:H.getSeconds()}),F(ys(r))},R=()=>{_&&A(_,!0)};return S.jsxs(S.Fragment,{children:[S.jsx("div",{id:m,onClick:O=>{var H;(H=D.current)==null||H.handlerShow(O),T()},className:l,children:typeof u=="function"?u(r):r?new Date(r).toDateString():"Pilih Tanggal"}),S.jsx(Ci,{zIndex:y,ref:D,offset:v,id:p,floatingOptions:{placement:"bottom-end",...b},children:S.jsx("div",{className:s??"",children:S.jsx(Jf,{locale:"id-ID",children:S.jsx(bu,{minValue:E,maxValue:I,minDate:t,maxDate:n,time:$,locale:C,value:_,buttonReset:c,buttonSubmit:d,prevIcon:h,nextIcon:f,createCalendar:Zo,defaultValue:ys(r),onChange:A,handlerReset:()=>{var O;typeof g=="function"&&(g(i),(O=D.current)==null||O.setShow(!1))},handlerSubmit:R,handlerChangeTime:B,withConfirm:a,isCustomTime:o,type:["date","month","year"]})})})})]})},pc=e=>{let t;const n=new Date(e??new Date);return e&&(t=Bf(new Date(n.setHours(n.getHours()+7)).toISOString().slice(0,10))),t},zm=e=>{const t=new Date((e==null?void 0:e.startDate)??new Date),n=new Date((e==null?void 0:e.endDate)??new Date),r=new lt(t.getFullYear(),t.getMonth()+1,t.getDate()),i=new lt(n.getFullYear(),n.getMonth()+1,n.getDate());return e?{start:r,end:i}:void 0},p4=e=>{const{minDate:t,maxDate:n,defaultValue:r,withConfirm:i,prevIcon:a,nextIcon:o,buttonReset:s,buttonSubmit:l,typePicker:u="RANGE",onChange:c,onReset:d}=e,{locale:h}=$n(),f=pc(t),g=pc(n),[m,p]=x.useState(),b=C=>{typeof c=="function"&&c(C)},v=(C,E)=>{const I=C.start.toDate(gi()),D=C.end.toDate(gi());p(C),(E??!i)&&b({startDate:I,endDate:new Date(D.setHours(23,59,59))})},y=C=>{if(typeof d=="function")d();else if(r&&C){const E=new Date(r.endDate??new Date),I=C.focusedDate.set({month:E.getMonth()+1,year:E.getFullYear()});C.setFocusedDate(I)}p(zm(r))},w=()=>{m&&v(m,!0)};return S.jsx("div",{className:"1ru-flex 1ru-flex-col",children:S.jsxs(Jf,{locale:"id-ID",children:[u==="RANGE"&&S.jsx(m4,{defaultValue:zm(r),value:m,minValue:f,maxValue:g,withConfirm:i,prevIcon:a,nextIcon:o,buttonReset:s,buttonSubmit:l,onChange:v,handlerReset:y,handlerSubmit:w}),u==="SINGLE"&&S.jsx(bu,{defaultValue:pc(r==null?void 0:r.endDate),value:m==null?void 0:m.end,minValue:f,maxValue:g,minDate:t,maxDate:n,withConfirm:i,prevIcon:a,nextIcon:o,buttonReset:s,buttonSubmit:l,locale:h,createCalendar:Zo,onChange:C=>v({start:C,end:C}),handlerReset:y,handlerSubmit:w,type:["date","month","year"]})]})})},aF=({value:e,prevIcon:t,nextIcon:n,buttonReset:r,buttonSubmit:i,className:a,classNameButton:o,buttonClick:s,buttonList:l,typePicker:u="RANGE",onChange:c,idPopover:d="filter-date-popover",id:h="filter-date",floatingOptions:f={},offsetPopover:g=5,zIndexPopper:m=0,defaultValueLabel:p})=>{const b=[{key:"thisDay",value:"Hari ini"},{key:"thisWeek",value:"Minggu ini"},{key:"thisMonth",value:"Bulan ini"},{key:"thisYear",value:"Tahun ini"},{key:"yesterday",value:"Kemarin"},{key:"lastWeek",value:"Minggu lalu"},{key:"lastMonth",value:"Bulan lalu"},{key:"lastYear",value:"Tahun lalu"},{key:"custom",value:"Kustom"}],v=x.useRef(null),[y,w]=x.useState(),[C,E]=x.useState(),[I,D]=x.useState(),_=(V,W)=>{const q=new Date(V??new Date);return W==="start"?new Date(q.setHours(0,0,0)):new Date(q.setHours(23,59,59))},F=()=>{const V=new Date;return{startDate:V,endDate:V}},$=()=>{const V=new Date;V.setDate(V.getDate()-V.getDay());const W=new Date;return W.setDate(W.getDate()+(6-W.getDay())),{startDate:V,endDate:W}},P=()=>{const V=new Date,W=new Date(V.getFullYear(),V.getMonth(),1),q=new Date(V.getFullYear(),V.getMonth()+1,0);return{startDate:W,endDate:q}},M=()=>{const V=new Date(new Date().getFullYear(),0,1),W=new Date(new Date().getFullYear(),11,31);return{startDate:V,endDate:W}},A=()=>{const V=new Date(new Date().setDate(new Date().getDate()-1));return{startDate:V,endDate:V}},B=()=>{const V=new Date;V.setDate(V.getDate()-(7+V.getDay()));const W=new Date;return W.setDate(W.getDate()-(W.getDay()+1)),{startDate:V,endDate:W}},T=()=>{const V=new Date,W=new Date(V.getFullYear(),V.getMonth()-1,1),q=new Date(V.getFullYear(),V.getMonth(),0);return{startDate:W,endDate:q}},R=()=>{const V=new Date(new Date().getFullYear()-1,0,1),W=new Date(new Date().getFullYear()-1,11,31);return{startDate:V,endDate:W}},O=(V,W)=>{var q;D(V),typeof c=="function"&&((q=v.current)==null||q.setShow(!1),c(V,W??""))},H=V=>{w(V);let W;if((V==null?void 0:V.key)!=="custom"){switch(E(V),V==null?void 0:V.key){case"thisDay":W=F();break;case"thisWeek":W=$();break;case"thisMonth":W=P();break;case"thisYear":W=M();break;case"yesterday":W=A();break;case"lastWeek":W=B();break;case"lastMonth":W=T();break;case"lastYear":W=R();break}W&&O({startDate:_(W.startDate,"start"),endDate:_(W.endDate,"end")},V==null?void 0:V.value)}},L=()=>{e&&D(e)},Z=V=>{const W=(l??b).find(q=>q.key===V);!V&&!W?O():typeof V=="object"&&O(V),H(W),E(W)};return x.useEffect(()=>{L()},[JSON.stringify(e)]),x.useEffect(()=>{typeof p=="string"&&Z(p)},[]),S.jsxs(S.Fragment,{children:[S.jsxs("div",{onClick:V=>{var W;(W=v.current)==null||W.handlerShow(V),L()},className:o,id:h,children:[x.isValidElement(s)&&s,typeof s=="function"?s(I,C):"Pilih Filter"]}),S.jsx(Ci,{zIndex:m,ref:v,offset:g,id:d,floatingOptions:{placement:"bottom-end",...f},children:S.jsxs("div",{className:`${ge["container-filter-date"]} ${a}`,children:[S.jsx("div",{children:(l??b).map((V,W)=>S.jsx("div",{className:`${ge["button-filter-date"]} hover:1ru-bg-laba-blue-01 ${(y==null?void 0:y.key)===V.key?"1ru-text-laba-blue-10":""}`,onClick:()=>H(V),children:V.value},W))}),(y==null?void 0:y.key)==="custom"&&S.jsx("div",{children:S.jsx(p4,{defaultValue:I,prevIcon:t,nextIcon:n,buttonReset:r,buttonSubmit:i,onChange:V=>{O(V,"Kustom"),E({key:"custom",value:"Kustom"})},onReset:()=>{Z(p)},typePicker:u,withConfirm:!0})})]})})]})},oF="_active_1e40z_26",Wr={"button-switch-base":"_button-switch-base_1e40z_1","switch-s":"_switch-s_1e40z_1","switch-r":"_switch-r_1e40z_1","switch-l":"_switch-l_1e40z_1","thumb-switch-base":"_thumb-switch-base_1e40z_7","thumb-switch":"_thumb-switch_1e40z_7","title-switch-base":"_title-switch-base_1e40z_12","description-switch-base":"_description-switch-base_1e40z_16",active:oF},sF=({value:e,disabled:t,title:n="",description:r="",size:i="regular",id:a,className:o,classNameTitle:s,classNameDesc:l,onChange:u})=>{const c={large:Wr["switch-l"],regular:Wr["switch-r"],small:Wr["switch-s"]},d=()=>{!t&&typeof u=="function"&&u(!e)};return S.jsxs("div",{id:a??"1ru-switch",className:`1ru-flex 1ru-gap-2 ${o??""}`,onClick:h=>h.stopPropagation(),children:[S.jsxs("label",{children:[S.jsx("input",{type:"checkbox",checked:e,onChange:d,className:"1ru-hidden"}),S.jsx("span",{className:`${c[i]} ${e?"1ru-bg-payhere-brand-base":"1ru-bg-blue-gray-50"} ${t?"":"1ru-cursor-pointer"} ${!e&&t?"1ru-bg-laba-grey-05":""}`,children:S.jsx("span",{className:`${Wr["thumb-switch"]} ${e?Wr.active:""} ${t?"1ru-bg-gray-300":"1ru-bg-white"}`})})]}),(n||r)&&S.jsxs("div",{children:[n&&S.jsx("div",{className:`${Wr["title-switch-base"]} ${s}`,children:n}),r&&S.jsx("div",{className:`${Wr["description-switch-base"]} ${l}`,children:r})]})]})},lF="_loading_1rugy_10",$e={"button-base":"_button-base_1rugy_6","button-xs":"_button-xs_1rugy_6","button-s":"_button-s_1rugy_6","button-m":"_button-m_1rugy_6","button-l":"_button-l_1rugy_6","button-extra-small":"_button-extra-small_1rugy_6","button-small":"_button-small_1rugy_6","button-reguler":"_button-reguler_1rugy_6","button-large":"_button-large_1rugy_6",loading:lF,"button-disabled-laba-grey-06":"_button-disabled-laba-grey-06_1rugy_18","nude-laba-red-10":"_nude-laba-red-10_1rugy_18","nude-gray-500":"_nude-gray-500_1rugy_18","nude-green-700":"_nude-green-700_1rugy_18","nude-red-700":"_nude-red-700_1rugy_18","nude-laba-blue-10":"_nude-laba-blue-10_1rugy_18","ghost-blue-gray-100-bg_white":"_ghost-blue-gray-100-bg_white_1rugy_18","ghost-green-700":"_ghost-green-700_1rugy_18","ghost-red-700":"_ghost-red-700_1rugy_18","ghost-laba-blue-10":"_ghost-laba-blue-10_1rugy_18","filled-laba-white_laba-blue-10":"_filled-laba-white_laba-blue-10_1rugy_18","primary-green-700":"_primary-green-700_1rugy_18","primary-red-700-dsb_laba-grey-06":"_primary-red-700-dsb_laba-grey-06_1rugy_18","primary-laba-blue-10":"_primary-laba-blue-10_1rugy_18","button-disabled-gray-100":"_button-disabled-gray-100_1rugy_18","tertiary-gray-500":"_tertiary-gray-500_1rugy_18","tertiary-red-600":"_tertiary-red-600_1rugy_18","tertiary-red-300":"_tertiary-red-300_1rugy_18","tertiary-blue-700":"_tertiary-blue-700_1rugy_18","secondary-green-600":"_secondary-green-600_1rugy_18","secondary-red-600":"_secondary-red-600_1rugy_18","secondary-blue-700":"_secondary-blue-700_1rugy_18","primary-red-700":"_primary-red-700_1rugy_18","primary-blue-700":"_primary-blue-700_1rugy_18","icon-loading":"_icon-loading_1rugy_80","spin-loading":"_spin-loading_1rugy_1"},uF=({className:e=""})=>S.jsx("svg",{className:`${$e["icon-loading"]} ${e??""}`,xmlns:"http://www.w3.org/2000/svg",width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",children:S.jsx("path",{d:`M21.6311 6.63315C22.3017 6.23898 22.5321 5.36957 22.0621 4.7497C20.7187 2.9779 18.9029 1.6063 \r
|
108
|
+
`]))),Y6=function(t,n){var r=t.isFocused,i=t.size,a=t.theme,o=a.colors,s=a.spacing.baseUnit;return ce({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:i,lineHeight:1,marginRight:i,textAlign:"center",verticalAlign:"middle"},n?{}:{color:r?o.neutral60:o.neutral20,padding:s*2})},Zu=function(t){var n=t.delay,r=t.offset;return ue("span",{css:If({animation:"".concat(X6," 1s ease-in-out ").concat(n,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:r?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},process.env.NODE_ENV==="production"?"":";label:LoadingDot;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVhY3ROb2RlIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4LCBrZXlmcmFtZXMgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7XG4gIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lLFxuICBDU1NPYmplY3RXaXRoTGFiZWwsXG4gIEdyb3VwQmFzZSxcbn0gZnJvbSAnLi4vdHlwZXMnO1xuaW1wb3J0IHsgZ2V0U3R5bGVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEljb25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgU3ZnID0gKHtcbiAgc2l6ZSxcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU6IG51bWJlciB9KSA9PiAoXG4gIDxzdmdcbiAgICBoZWlnaHQ9e3NpemV9XG4gICAgd2lkdGg9e3NpemV9XG4gICAgdmlld0JveD1cIjAgMCAyMCAyMFwiXG4gICAgYXJpYS1oaWRkZW49XCJ0cnVlXCJcbiAgICBmb2N1c2FibGU9XCJmYWxzZVwiXG4gICAgY3NzPXt7XG4gICAgICBkaXNwbGF5OiAnaW5saW5lLWJsb2NrJyxcbiAgICAgIGZpbGw6ICdjdXJyZW50Q29sb3InLFxuICAgICAgbGluZUhlaWdodDogMSxcbiAgICAgIHN0cm9rZTogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBzdHJva2VXaWR0aDogMCxcbiAgICB9fVxuICAgIHsuLi5wcm9wc31cbiAgLz5cbik7XG5cbmV4cG9ydCB0eXBlIENyb3NzSWNvblByb3BzID0gSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZT86IG51bWJlciB9O1xuZXhwb3J0IGNvbnN0IENyb3NzSWNvbiA9IChwcm9wczogQ3Jvc3NJY29uUHJvcHMpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTE0LjM0OCAxNC44NDljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDBsLTIuNjUxLTMuMDMwLTIuNjUxIDMuMDI5Yy0wLjQ2OSAwLjQ2OS0xLjIyOSAwLjQ2OS0xLjY5NyAwLTAuNDY5LTAuNDY5LTAuNDY5LTEuMjI5IDAtMS42OTdsMi43NTgtMy4xNS0yLjc1OS0zLjE1MmMtMC40NjktMC40NjktMC40NjktMS4yMjggMC0xLjY5N3MxLjIyOC0wLjQ2OSAxLjY5NyAwbDIuNjUyIDMuMDMxIDIuNjUxLTMuMDMxYzAuNDY5LTAuNDY5IDEuMjI4LTAuNDY5IDEuNjk3IDBzMC40NjkgMS4yMjkgMCAxLjY5N2wtMi43NTggMy4xNTIgMi43NTggMy4xNWMwLjQ2OSAwLjQ2OSAwLjQ2OSAxLjIyOSAwIDEuNjk4elwiIC8+XG4gIDwvU3ZnPlxuKTtcbmV4cG9ydCB0eXBlIERvd25DaGV2cm9uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgRG93bkNoZXZyb24gPSAocHJvcHM6IERvd25DaGV2cm9uUHJvcHMpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTQuNTE2IDcuNTQ4YzAuNDM2LTAuNDQ2IDEuMDQzLTAuNDgxIDEuNTc2IDBsMy45MDggMy43NDcgMy45MDgtMy43NDdjMC41MzMtMC40ODEgMS4xNDEtMC40NDYgMS41NzQgMCAwLjQzNiAwLjQ0NSAwLjQwOCAxLjE5NyAwIDEuNjE1LTAuNDA2IDAuNDE4LTQuNjk1IDQuNTAyLTQuNjk1IDQuNTAyLTAuMjE3IDAuMjIzLTAuNTAyIDAuMzM1LTAuNzg3IDAuMzM1cy0wLjU3LTAuMTEyLTAuNzg5LTAuMzM1YzAgMC00LjI4Ny00LjA4NC00LjY5NS00LjUwMnMtMC40MzYtMS4xNyAwLTEuNjE1elwiIC8+XG4gIDwvU3ZnPlxuKTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEJ1dHRvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xufVxuXG5jb25zdCBiYXNlQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNGb2N1c2VkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTpcbiAgICB8IERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbiAgICB8IENsZWFySW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JDb250YWluZXInLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICAgICc6aG92ZXInOiB7XG4gICAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsODAgOiBjb2xvcnMubmV1dHJhbDQwLFxuICAgICAgICB9LFxuICAgICAgfSksXG59KTtcblxuZXhwb3J0IGNvbnN0IGRyb3Bkb3duSW5kaWNhdG9yQ1NTID0gYmFzZUNTUztcbmV4cG9ydCBjb25zdCBEcm9wZG93bkluZGljYXRvciA9IDxcbiAgT3B0aW9uLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPlxuPihcbiAgcHJvcHM6IERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBpbm5lclByb3BzIH0gPSBwcm9wcztcbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uZ2V0U3R5bGVQcm9wcyhwcm9wcywgJ2Ryb3Bkb3duSW5kaWNhdG9yJywge1xuICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICdkcm9wZG93bi1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgfSl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICB7Y2hpbGRyZW4gfHwgPERvd25DaGV2cm9uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuZXhwb3J0IGludGVyZmFjZSBDbGVhckluZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFRoZSBjaGlsZHJlbiB0byBiZSByZW5kZXJlZCBpbnNpZGUgdGhlIGluZGljYXRvci4gKi9cbiAgY2hpbGRyZW4/OiBSZWFjdE5vZGU7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydkaXYnXTtcbiAgLyoqIFRoZSBmb2N1c2VkIHN0YXRlIG9mIHRoZSBzZWxlY3QuICovXG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbn1cblxuZXhwb3J0IGNvbnN0IGNsZWFySW5kaWNhdG9yQ1NTID0gYmFzZUNTUztcbmV4cG9ydCBjb25zdCBDbGVhckluZGljYXRvciA9IDxcbiAgT3B0aW9uLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPlxuPihcbiAgcHJvcHM6IENsZWFySW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBpbm5lclByb3BzIH0gPSBwcm9wcztcbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uZ2V0U3R5bGVQcm9wcyhwcm9wcywgJ2NsZWFySW5kaWNhdG9yJywge1xuICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICdjbGVhci1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgfSl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICB7Y2hpbGRyZW4gfHwgPENyb3NzSWNvbiAvPn1cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG5cbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuLy8gU2VwYXJhdG9yXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuZXhwb3J0IGludGVyZmFjZSBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbiAgaW5uZXJQcm9wcz86IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3BhbiddO1xufVxuXG5leHBvcnQgY29uc3QgaW5kaWNhdG9yU2VwYXJhdG9yQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNEaXNhYmxlZCxcbiAgICB0aGVtZToge1xuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgICAgY29sb3JzLFxuICAgIH0sXG4gIH06IEluZGljYXRvclNlcGFyYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+LFxuICB1bnN0eWxlZDogYm9vbGVhblxuKTogQ1NTT2JqZWN0V2l0aExhYmVsID0+ICh7XG4gIGxhYmVsOiAnaW5kaWNhdG9yU2VwYXJhdG9yJyxcbiAgYWxpZ25TZWxmOiAnc3RyZXRjaCcsXG4gIHdpZHRoOiAxLFxuICAuLi4odW5zdHlsZWRcbiAgICA/IHt9XG4gICAgOiB7XG4gICAgICAgIGJhY2tncm91bmRDb2xvcjogaXNEaXNhYmxlZCA/IGNvbG9ycy5uZXV0cmFsMTAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBtYXJnaW5Cb3R0b206IGJhc2VVbml0ICogMixcbiAgICAgICAgbWFyZ2luVG9wOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgSW5kaWNhdG9yU2VwYXJhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxzcGFuXG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnaW5kaWNhdG9yU2VwYXJhdG9yJywge1xuICAgICAgICAnaW5kaWNhdG9yLXNlcGFyYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAvPlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBMb2FkaW5nXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgbG9hZGluZ0RvdEFuaW1hdGlvbnMgPSBrZXlmcmFtZXNgXG4gIDAlLCA4MCUsIDEwMCUgeyBvcGFjaXR5OiAwOyB9XG4gIDQwJSB7IG9wYWNpdHk6IDE7IH1cbmA7XG5cbmV4cG9ydCBjb25zdCBsb2FkaW5nSW5kaWNhdG9yQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNGb2N1c2VkLFxuICAgIHNpemUsXG4gICAgdGhlbWU6IHtcbiAgICAgIGNvbG9ycyxcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICB9LFxuICB9OiBMb2FkaW5nSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdsb2FkaW5nSW5kaWNhdG9yJyxcbiAgZGlzcGxheTogJ2ZsZXgnLFxuICB0cmFuc2l0aW9uOiAnY29sb3IgMTUwbXMnLFxuICBhbGlnblNlbGY6ICdjZW50ZXInLFxuICBmb250U2l6ZTogc2l6ZSxcbiAgbGluZUhlaWdodDogMSxcbiAgbWFyZ2luUmlnaHQ6IHNpemUsXG4gIHRleHRBbGlnbjogJ2NlbnRlcicsXG4gIHZlcnRpY2FsQWxpZ246ICdtaWRkbGUnLFxuICAuLi4odW5zdHlsZWRcbiAgICA/IHt9XG4gICAgOiB7XG4gICAgICAgIGNvbG9yOiBpc0ZvY3VzZWQgPyBjb2xvcnMubmV1dHJhbDYwIDogY29sb3JzLm5ldXRyYWwyMCxcbiAgICAgICAgcGFkZGluZzogYmFzZVVuaXQgKiAyLFxuICAgICAgfSksXG59KTtcblxuaW50ZXJmYWNlIExvYWRpbmdEb3RQcm9wcyB7XG4gIGRlbGF5OiBudW1iZXI7XG4gIG9mZnNldDogYm9vbGVhbjtcbn1cbmNvbnN0IExvYWRpbmdEb3QgPSAoeyBkZWxheSwgb2Zmc2V0IH06IExvYWRpbmdEb3RQcm9wcykgPT4gKFxuICA8c3BhblxuICAgIGNzcz17e1xuICAgICAgYW5pbWF0aW9uOiBgJHtsb2FkaW5nRG90QW5pbWF0aW9uc30gMXMgZWFzZS1pbi1vdXQgJHtkZWxheX1tcyBpbmZpbml0ZTtgLFxuICAgICAgYmFja2dyb3VuZENvbG9yOiAnY3VycmVudENvbG9yJyxcbiAgICAgIGJvcmRlclJhZGl1czogJzFlbScsXG4gICAgICBkaXNwbGF5OiAnaW5saW5lLWJsb2NrJyxcbiAgICAgIG1hcmdpbkxlZnQ6IG9mZnNldCA/ICcxZW0nIDogdW5kZWZpbmVkLFxuICAgICAgaGVpZ2h0OiAnMWVtJyxcbiAgICAgIHZlcnRpY2FsQWxpZ246ICd0b3AnLFxuICAgICAgd2lkdGg6ICcxZW0nLFxuICAgIH19XG4gIC8+XG4pO1xuXG5leHBvcnQgaW50ZXJmYWNlIExvYWRpbmdJbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydkaXYnXTtcbiAgLyoqIFRoZSBmb2N1c2VkIHN0YXRlIG9mIHRoZSBzZWxlY3QuICovXG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgLyoqIFNldCBzaXplIG9mIHRoZSBjb250YWluZXIuICovXG4gIHNpemU6IG51bWJlcjtcbn1cbmV4cG9ydCBjb25zdCBMb2FkaW5nSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KHtcbiAgaW5uZXJQcm9wcyxcbiAgaXNSdGwsXG4gIHNpemUgPSA0LFxuICAuLi5yZXN0UHJvcHNcbn06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPikgPT4ge1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKFxuICAgICAgICB7IC4uLnJlc3RQcm9wcywgaW5uZXJQcm9wcywgaXNSdGwsIHNpemUgfSxcbiAgICAgICAgJ2xvYWRpbmdJbmRpY2F0b3InLFxuICAgICAgICB7XG4gICAgICAgICAgaW5kaWNhdG9yOiB0cnVlLFxuICAgICAgICAgICdsb2FkaW5nLWluZGljYXRvcic6IHRydWUsXG4gICAgICAgIH1cbiAgICAgICl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MH0gb2Zmc2V0PXtpc1J0bH0gLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXsxNjB9IG9mZnNldCAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezMyMH0gb2Zmc2V0PXshaXNSdGx9IC8+XG4gICAgPC9kaXY+XG4gICk7XG59O1xuIl19 */")})},U6=function(t){var n=t.innerProps,r=t.isRtl,i=t.size,a=i===void 0?4:i,o=gr(t,O6);return ue("div",de({},st(ce(ce({},o),{},{innerProps:n,isRtl:r,size:a}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),n),ue(Zu,{delay:0,offset:r}),ue(Zu,{delay:160,offset:!0}),ue(Zu,{delay:320,offset:!r}))},J6=function(t,n){var r=t.isDisabled,i=t.isFocused,a=t.theme,o=a.colors,s=a.borderRadius,l=a.spacing;return ce({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:l.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},n?{}:{backgroundColor:r?o.neutral5:o.neutral0,borderColor:r?o.neutral10:i?o.primary:o.neutral20,borderRadius:s,borderStyle:"solid",borderWidth:1,boxShadow:i?"0 0 0 1px ".concat(o.primary):void 0,"&:hover":{borderColor:i?o.primary:o.neutral30}})},K6=function(t){var n=t.children,r=t.isDisabled,i=t.isFocused,a=t.innerRef,o=t.innerProps,s=t.menuIsOpen;return ue("div",de({ref:a},st(t,"control",{control:!0,"control--is-disabled":r,"control--is-focused":i,"control--menu-is-open":s}),o,{"aria-disabled":r||void 0}),n)},Q6=K6,q6=["data"],e$=function(t,n){var r=t.theme.spacing;return n?{}:{paddingBottom:r.baseUnit*2,paddingTop:r.baseUnit*2}},t$=function(t){var n=t.children,r=t.cx,i=t.getStyles,a=t.getClassNames,o=t.Heading,s=t.headingProps,l=t.innerProps,u=t.label,c=t.theme,d=t.selectProps;return ue("div",de({},st(t,"group",{group:!0}),l),ue(o,de({},s,{selectProps:d,theme:c,getStyles:i,getClassNames:a,cx:r}),u),ue("div",null,n))},n$=function(t,n){var r=t.theme,i=r.colors,a=r.spacing;return ce({label:"group",cursor:"default",display:"block"},n?{}:{color:i.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:a.baseUnit*3,paddingRight:a.baseUnit*3,textTransform:"uppercase"})},r$=function(t){var n=k1(t);n.data;var r=gr(n,q6);return ue("div",de({},st(t,"groupHeading",{"group-heading":!0}),r))},i$=t$,a$=["innerRef","isDisabled","isHidden","inputClassName"],o$=function(t,n){var r=t.isDisabled,i=t.value,a=t.theme,o=a.spacing,s=a.colors;return ce(ce({visibility:r?"hidden":"visible",transform:i?"translateZ(0)":""},s$),n?{}:{margin:o.baseUnit/2,paddingBottom:o.baseUnit/2,paddingTop:o.baseUnit/2,color:s.neutral80})},W1={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},s$={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":ce({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},W1)},l$=function(t){return ce({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},W1)},u$=function(t){var n=t.cx,r=t.value,i=k1(t),a=i.innerRef,o=i.isDisabled,s=i.isHidden,l=i.inputClassName,u=gr(i,a$);return ue("div",de({},st(t,"input",{"input-container":!0}),{"data-value":r||""}),ue("input",de({className:n({input:!0},l),ref:a,style:l$(s),disabled:o},u)))},c$=u$,d$=function(t,n){var r=t.theme,i=r.spacing,a=r.borderRadius,o=r.colors;return ce({label:"multiValue",display:"flex",minWidth:0},n?{}:{backgroundColor:o.neutral10,borderRadius:a/2,margin:i.baseUnit/2})},f$=function(t,n){var r=t.theme,i=r.borderRadius,a=r.colors,o=t.cropWithEllipsis;return ce({overflow:"hidden",textOverflow:o||o===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},n?{}:{borderRadius:i/2,color:a.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},h$=function(t,n){var r=t.theme,i=r.spacing,a=r.borderRadius,o=r.colors,s=t.isFocused;return ce({alignItems:"center",display:"flex"},n?{}:{borderRadius:a/2,backgroundColor:s?o.dangerLight:void 0,paddingLeft:i.baseUnit,paddingRight:i.baseUnit,":hover":{backgroundColor:o.dangerLight,color:o.danger}})},z1=function(t){var n=t.children,r=t.innerProps;return ue("div",r,n)},g$=z1,m$=z1;function p$(e){var t=e.children,n=e.innerProps;return ue("div",de({role:"button"},n),t||ue(_f,{size:14}))}var b$=function(t){var n=t.children,r=t.components,i=t.data,a=t.innerProps,o=t.isDisabled,s=t.removeProps,l=t.selectProps,u=r.Container,c=r.Label,d=r.Remove;return ue(u,{data:i,innerProps:ce(ce({},st(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":o})),a),selectProps:l},ue(c,{data:i,innerProps:ce({},st(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:l},n),ue(d,{data:i,innerProps:ce(ce({},st(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(n||"option")},s),selectProps:l}))},v$=b$,y$=function(t,n){var r=t.isDisabled,i=t.isFocused,a=t.isSelected,o=t.theme,s=o.spacing,l=o.colors;return ce({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},n?{}:{backgroundColor:a?l.primary:i?l.primary25:"transparent",color:r?l.neutral20:a?l.neutral0:"inherit",padding:"".concat(s.baseUnit*2,"px ").concat(s.baseUnit*3,"px"),":active":{backgroundColor:r?void 0:a?l.primary:l.primary50}})},x$=function(t){var n=t.children,r=t.isDisabled,i=t.isFocused,a=t.isSelected,o=t.innerRef,s=t.innerProps;return ue("div",de({},st(t,"option",{option:!0,"option--is-disabled":r,"option--is-focused":i,"option--is-selected":a}),{ref:o,"aria-disabled":r},s),n)},C$=x$,w$=function(t,n){var r=t.theme,i=r.spacing,a=r.colors;return ce({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},n?{}:{color:a.neutral50,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},D$=function(t){var n=t.children,r=t.innerProps;return ue("div",de({},st(t,"placeholder",{placeholder:!0}),r),n)},S$=D$,E$=function(t,n){var r=t.isDisabled,i=t.theme,a=i.spacing,o=i.colors;return ce({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n?{}:{color:r?o.neutral40:o.neutral80,marginLeft:a.baseUnit/2,marginRight:a.baseUnit/2})},I$=function(t){var n=t.children,r=t.isDisabled,i=t.innerProps;return ue("div",de({},st(t,"singleValue",{"single-value":!0,"single-value--is-disabled":r}),i),n)},_$=I$,G1={ClearIndicator:z6,Control:Q6,DropdownIndicator:H6,DownChevron:j1,CrossIcon:_f,Group:i$,GroupHeading:r$,IndicatorsContainer:B6,IndicatorSeparator:Z6,Input:c$,LoadingIndicator:U6,Menu:w6,MenuList:S6,MenuPortal:A6,LoadingMessage:$6,NoOptionsMessage:_6,MultiValue:v$,MultiValueContainer:g$,MultiValueLabel:m$,MultiValueRemove:p$,Option:C$,Placeholder:S$,SelectContainer:P6,SingleValue:_$,ValueContainer:k6},$$=function(t){return ce(ce({},G1),t.components)},Yg=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function R$(e,t){return!!(e===t||Yg(e)&&Yg(t))}function A$(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!R$(e[n],t[n]))return!1;return!0}function F$(e,t){t===void 0&&(t=A$);var n=null;function r(){for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];if(n&&n.lastThis===this&&t(i,n.lastArgs))return n.lastResult;var o=e.apply(this,i);return n={lastResult:o,lastArgs:i,lastThis:this},o}return r.clear=function(){n=null},r}function P$(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var T$=process.env.NODE_ENV==="production"?{name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"}:{name:"1f43avz-a11yText-A11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;label:A11yText;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFNSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",toString:P$},k$=function(t){return ue("span",de({css:T$},t))},Ug=k$,M$={guidance:function(t){var n=t.isSearchable,r=t.isMulti,i=t.tabSelectsValue,a=t.context,o=t.isInitialFocus;switch(a){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(i?", press Tab to select the option and exit the menu":"",".");case"input":return o?"".concat(t["aria-label"]||"Select"," is focused ").concat(n?",type to refine list":"",", press Down to open the menu, ").concat(r?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(t){var n=t.action,r=t.label,i=r===void 0?"":r,a=t.labels,o=t.isDisabled;switch(n){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(i,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(a.length>1?"s":""," ").concat(a.join(","),", selected.");case"select-option":return o?"option ".concat(i," is disabled. Select another option."):"option ".concat(i,", selected.");default:return""}},onFocus:function(t){var n=t.context,r=t.focused,i=t.options,a=t.label,o=a===void 0?"":a,s=t.selectValue,l=t.isDisabled,u=t.isSelected,c=t.isAppleDevice,d=function(m,p){return m&&m.length?"".concat(m.indexOf(p)+1," of ").concat(m.length):""};if(n==="value"&&s)return"value ".concat(o," focused, ").concat(d(s,r),".");if(n==="menu"&&c){var h=l?" disabled":"",f="".concat(u?" selected":"").concat(h);return"".concat(o).concat(f,", ").concat(d(i,r),".")}return""},onFilter:function(t){var n=t.inputValue,r=t.resultsMessage;return"".concat(r).concat(n?" for search term "+n:"",".")}},B$=function(t){var n=t.ariaSelection,r=t.focusedOption,i=t.focusedValue,a=t.focusableOptions,o=t.isFocused,s=t.selectValue,l=t.selectProps,u=t.id,c=t.isAppleDevice,d=l.ariaLiveMessages,h=l.getOptionLabel,f=l.inputValue,g=l.isMulti,m=l.isOptionDisabled,p=l.isSearchable,b=l.menuIsOpen,v=l.options,y=l.screenReaderStatus,w=l.tabSelectsValue,C=l.isLoading,E=l["aria-label"],I=l["aria-live"],D=x.useMemo(function(){return ce(ce({},M$),d||{})},[d]),_=x.useMemo(function(){var B="";if(n&&D.onChange){var T=n.option,R=n.options,O=n.removedValue,H=n.removedValues,L=n.value,Z=function(J){return Array.isArray(J)?null:J},V=O||T||Z(L),W=V?h(V):"",q=R||H||void 0,Y=q?q.map(h):[],N=ce({isDisabled:V&&m(V,s),label:W,labels:Y},n);B=D.onChange(N)}return B},[n,D,m,s,h]),F=x.useMemo(function(){var B="",T=r||i,R=!!(r&&s&&s.includes(r));if(T&&D.onFocus){var O={focused:T,label:h(T),isDisabled:m(T,s),isSelected:R,options:a,context:T===r?"menu":"value",selectValue:s,isAppleDevice:c};B=D.onFocus(O)}return B},[r,i,h,m,D,a,s,c]),$=x.useMemo(function(){var B="";if(b&&v.length&&!C&&D.onFilter){var T=y({count:a.length});B=D.onFilter({inputValue:f,resultsMessage:T})}return B},[a,f,b,D,v,y,C]),P=(n==null?void 0:n.action)==="initial-input-focus",k=x.useMemo(function(){var B="";if(D.guidance){var T=i?"value":b?"menu":"input";B=D.guidance({"aria-label":E,context:T,isDisabled:r&&m(r,s),isMulti:g,isSearchable:p,tabSelectsValue:w,isInitialFocus:P})}return B},[E,r,i,g,m,p,b,D,s,w,P]),A=ue(x.Fragment,null,ue("span",{id:"aria-selection"},_),ue("span",{id:"aria-focused"},F),ue("span",{id:"aria-results"},$),ue("span",{id:"aria-guidance"},k));return ue(x.Fragment,null,ue(Ug,{id:u},P&&A),ue(Ug,{"aria-live":I,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},o&&!P&&A))},V$=B$,Qc=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],O$=new RegExp("["+Qc.map(function(e){return e.letters}).join("")+"]","g"),Z1={};for(var Xu=0;Xu<Qc.length;Xu++)for(var Yu=Qc[Xu],Uu=0;Uu<Yu.letters.length;Uu++)Z1[Yu.letters[Uu]]=Yu.base;var X1=function(t){return t.replace(O$,function(n){return Z1[n]})},N$=F$(X1),Jg=function(t){return t.replace(/^\s+|\s+$/g,"")},L$=function(t){return"".concat(t.label," ").concat(t.value)},j$=function(t){return function(n,r){if(n.data.__isNew__)return!0;var i=ce({ignoreCase:!0,ignoreAccents:!0,stringify:L$,trim:!0,matchFrom:"any"},t),a=i.ignoreCase,o=i.ignoreAccents,s=i.stringify,l=i.trim,u=i.matchFrom,c=l?Jg(r):r,d=l?Jg(s(n)):s(n);return a&&(c=c.toLowerCase(),d=d.toLowerCase()),o&&(c=N$(c),d=X1(d)),u==="start"?d.substr(0,c.length)===c:d.indexOf(c)>-1}},H$=["innerRef"];function W$(e){var t=e.innerRef,n=gr(e,H$),r=g6(n,"onExited","in","enter","exit","appear");return ue("input",de({ref:t},r,{css:If({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},process.env.NODE_ENV==="production"?"":";label:DummyInput;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVmIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgcmVtb3ZlUHJvcHMgfSBmcm9tICcuLi91dGlscyc7XG5cbmV4cG9ydCBkZWZhdWx0IGZ1bmN0aW9uIER1bW15SW5wdXQoe1xuICBpbm5lclJlZixcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snaW5wdXQnXSAmIHtcbiAgcmVhZG9ubHkgaW5uZXJSZWY6IFJlZjxIVE1MSW5wdXRFbGVtZW50Pjtcbn0pIHtcbiAgLy8gUmVtb3ZlIGFuaW1hdGlvbiBwcm9wcyBub3QgbWVhbnQgZm9yIEhUTUwgZWxlbWVudHNcbiAgY29uc3QgZmlsdGVyZWRQcm9wcyA9IHJlbW92ZVByb3BzKFxuICAgIHByb3BzLFxuICAgICdvbkV4aXRlZCcsXG4gICAgJ2luJyxcbiAgICAnZW50ZXInLFxuICAgICdleGl0JyxcbiAgICAnYXBwZWFyJ1xuICApO1xuXG4gIHJldHVybiAoXG4gICAgPGlucHV0XG4gICAgICByZWY9e2lubmVyUmVmfVxuICAgICAgey4uLmZpbHRlcmVkUHJvcHN9XG4gICAgICBjc3M9e3tcbiAgICAgICAgbGFiZWw6ICdkdW1teUlucHV0JyxcbiAgICAgICAgLy8gZ2V0IHJpZCBvZiBhbnkgZGVmYXVsdCBzdHlsZXNcbiAgICAgICAgYmFja2dyb3VuZDogMCxcbiAgICAgICAgYm9yZGVyOiAwLFxuICAgICAgICAvLyBpbXBvcnRhbnQhIHRoaXMgaGlkZXMgdGhlIGZsYXNoaW5nIGN1cnNvclxuICAgICAgICBjYXJldENvbG9yOiAndHJhbnNwYXJlbnQnLFxuICAgICAgICBmb250U2l6ZTogJ2luaGVyaXQnLFxuICAgICAgICBncmlkQXJlYTogJzEgLyAxIC8gMiAvIDMnLFxuICAgICAgICBvdXRsaW5lOiAwLFxuICAgICAgICBwYWRkaW5nOiAwLFxuICAgICAgICAvLyBpbXBvcnRhbnQhIHdpdGhvdXQgYHdpZHRoYCBicm93c2VycyB3b24ndCBhbGxvdyBmb2N1c1xuICAgICAgICB3aWR0aDogMSxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIGRlc2t0b3BcbiAgICAgICAgY29sb3I6ICd0cmFuc3BhcmVudCcsXG5cbiAgICAgICAgLy8gcmVtb3ZlIGN1cnNvciBvbiBtb2JpbGUgd2hpbHN0IG1haW50YWluaW5nIFwic2Nyb2xsIGludG8gdmlld1wiIGJlaGF2aW91clxuICAgICAgICBsZWZ0OiAtMTAwLFxuICAgICAgICBvcGFjaXR5OiAwLFxuICAgICAgICBwb3NpdGlvbjogJ3JlbGF0aXZlJyxcbiAgICAgICAgdHJhbnNmb3JtOiAnc2NhbGUoLjAxKScsXG4gICAgICB9fVxuICAgIC8+XG4gICk7XG59XG4iXX0= */")}))}var z$=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function G$(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,i=e.onTopArrive,a=e.onTopLeave,o=x.useRef(!1),s=x.useRef(!1),l=x.useRef(0),u=x.useRef(null),c=x.useCallback(function(p,b){if(u.current!==null){var v=u.current,y=v.scrollTop,w=v.scrollHeight,C=v.clientHeight,E=u.current,I=b>0,D=w-C-y,_=!1;D>b&&o.current&&(r&&r(p),o.current=!1),I&&s.current&&(a&&a(p),s.current=!1),I&&b>D?(n&&!o.current&&n(p),E.scrollTop=w,_=!0,o.current=!0):!I&&-b>y&&(i&&!s.current&&i(p),E.scrollTop=0,_=!0,s.current=!0),_&&z$(p)}},[n,r,i,a]),d=x.useCallback(function(p){c(p,p.deltaY)},[c]),h=x.useCallback(function(p){l.current=p.changedTouches[0].clientY},[]),f=x.useCallback(function(p){var b=l.current-p.changedTouches[0].clientY;c(p,b)},[c]),g=x.useCallback(function(p){if(p){var b=d6?{passive:!1}:!1;p.addEventListener("wheel",d,b),p.addEventListener("touchstart",h,b),p.addEventListener("touchmove",f,b)}},[f,h,d]),m=x.useCallback(function(p){p&&(p.removeEventListener("wheel",d,!1),p.removeEventListener("touchstart",h,!1),p.removeEventListener("touchmove",f,!1))},[f,h,d]);return x.useEffect(function(){if(t){var p=u.current;return g(p),function(){m(p)}}},[t,g,m]),function(p){u.current=p}}var Kg=["boxSizing","height","overflow","paddingRight","position"],Qg={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function qg(e){e.preventDefault()}function em(e){e.stopPropagation()}function tm(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;e===0?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function nm(){return"ontouchstart"in window||navigator.maxTouchPoints}var rm=!!(typeof window<"u"&&window.document&&window.document.createElement),Ca=0,ki={capture:!1,passive:!1};function Z$(e){var t=e.isEnabled,n=e.accountForScrollbars,r=n===void 0?!0:n,i=x.useRef({}),a=x.useRef(null),o=x.useCallback(function(l){if(rm){var u=document.body,c=u&&u.style;if(r&&Kg.forEach(function(g){var m=c&&c[g];i.current[g]=m}),r&&Ca<1){var d=parseInt(i.current.paddingRight,10)||0,h=document.body?document.body.clientWidth:0,f=window.innerWidth-h+d||0;Object.keys(Qg).forEach(function(g){var m=Qg[g];c&&(c[g]=m)}),c&&(c.paddingRight="".concat(f,"px"))}u&&nm()&&(u.addEventListener("touchmove",qg,ki),l&&(l.addEventListener("touchstart",tm,ki),l.addEventListener("touchmove",em,ki))),Ca+=1}},[r]),s=x.useCallback(function(l){if(rm){var u=document.body,c=u&&u.style;Ca=Math.max(Ca-1,0),r&&Ca<1&&Kg.forEach(function(d){var h=i.current[d];c&&(c[d]=h)}),u&&nm()&&(u.removeEventListener("touchmove",qg,ki),l&&(l.removeEventListener("touchstart",tm,ki),l.removeEventListener("touchmove",em,ki)))}},[r]);return x.useEffect(function(){if(t){var l=a.current;return o(l),function(){s(l)}}},[t,o,s]),function(l){a.current=l}}function X$(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var Y$=function(t){var n=t.target;return n.ownerDocument.activeElement&&n.ownerDocument.activeElement.blur()},U$=process.env.NODE_ENV==="production"?{name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"}:{name:"bp8cua-ScrollManager",styles:"position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2ssIE1vdXNlRXZlbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjcm9sbExvY2sgZnJvbSAnLi91c2VTY3JvbGxMb2NrJztcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgcmVhZG9ubHkgY2hpbGRyZW46IChyZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PikgPT4gUmVhY3RFbGVtZW50O1xuICByZWFkb25seSBsb2NrRW5hYmxlZDogYm9vbGVhbjtcbiAgcmVhZG9ubHkgY2FwdHVyZUVuYWJsZWQ6IGJvb2xlYW47XG4gIHJlYWRvbmx5IG9uQm90dG9tQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Cb3R0b21MZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG4gIHJlYWRvbmx5IG9uVG9wQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Ub3BMZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG59XG5cbmNvbnN0IGJsdXJTZWxlY3RJbnB1dCA9IChldmVudDogTW91c2VFdmVudDxIVE1MRGl2RWxlbWVudD4pID0+IHtcbiAgY29uc3QgZWxlbWVudCA9IGV2ZW50LnRhcmdldCBhcyBIVE1MRGl2RWxlbWVudDtcbiAgcmV0dXJuIChcbiAgICBlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCAmJlxuICAgIChlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCBhcyBIVE1MRWxlbWVudCkuYmx1cigpXG4gICk7XG59O1xuXG5leHBvcnQgZGVmYXVsdCBmdW5jdGlvbiBTY3JvbGxNYW5hZ2VyKHtcbiAgY2hpbGRyZW4sXG4gIGxvY2tFbmFibGVkLFxuICBjYXB0dXJlRW5hYmxlZCA9IHRydWUsXG4gIG9uQm90dG9tQXJyaXZlLFxuICBvbkJvdHRvbUxlYXZlLFxuICBvblRvcEFycml2ZSxcbiAgb25Ub3BMZWF2ZSxcbn06IFByb3BzKSB7XG4gIGNvbnN0IHNldFNjcm9sbENhcHR1cmVUYXJnZXQgPSB1c2VTY3JvbGxDYXB0dXJlKHtcbiAgICBpc0VuYWJsZWQ6IGNhcHR1cmVFbmFibGVkLFxuICAgIG9uQm90dG9tQXJyaXZlLFxuICAgIG9uQm90dG9tTGVhdmUsXG4gICAgb25Ub3BBcnJpdmUsXG4gICAgb25Ub3BMZWF2ZSxcbiAgfSk7XG4gIGNvbnN0IHNldFNjcm9sbExvY2tUYXJnZXQgPSB1c2VTY3JvbGxMb2NrKHsgaXNFbmFibGVkOiBsb2NrRW5hYmxlZCB9KTtcblxuICBjb25zdCB0YXJnZXRSZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PiA9IChlbGVtZW50KSA9PiB7XG4gICAgc2V0U2Nyb2xsQ2FwdHVyZVRhcmdldChlbGVtZW50KTtcbiAgICBzZXRTY3JvbGxMb2NrVGFyZ2V0KGVsZW1lbnQpO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",toString:X$};function J$(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,i=r===void 0?!0:r,a=e.onBottomArrive,o=e.onBottomLeave,s=e.onTopArrive,l=e.onTopLeave,u=G$({isEnabled:i,onBottomArrive:a,onBottomLeave:o,onTopArrive:s,onTopLeave:l}),c=Z$({isEnabled:n}),d=function(f){u(f),c(f)};return ue(x.Fragment,null,n&&ue("div",{onClick:Y$,css:U$}),t(d))}function K$(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var Q$=process.env.NODE_ENV==="production"?{name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"}:{name:"5kkxb2-requiredInput-RequiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlcXVpcmVkSW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNJIiwiZmlsZSI6IlJlcXVpcmVkSW5wdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBGb2N1c0V2ZW50SGFuZGxlciwgRnVuY3Rpb25Db21wb25lbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmNvbnN0IFJlcXVpcmVkSW5wdXQ6IEZ1bmN0aW9uQ29tcG9uZW50PHtcbiAgcmVhZG9ubHkgbmFtZT86IHN0cmluZztcbiAgcmVhZG9ubHkgb25Gb2N1czogRm9jdXNFdmVudEhhbmRsZXI8SFRNTElucHV0RWxlbWVudD47XG59PiA9ICh7IG5hbWUsIG9uRm9jdXMgfSkgPT4gKFxuICA8aW5wdXRcbiAgICByZXF1aXJlZFxuICAgIG5hbWU9e25hbWV9XG4gICAgdGFiSW5kZXg9ey0xfVxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgb25Gb2N1cz17b25Gb2N1c31cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAncmVxdWlyZWRJbnB1dCcsXG4gICAgICBvcGFjaXR5OiAwLFxuICAgICAgcG9pbnRlckV2ZW50czogJ25vbmUnLFxuICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICBib3R0b206IDAsXG4gICAgICBsZWZ0OiAwLFxuICAgICAgcmlnaHQ6IDAsXG4gICAgICB3aWR0aDogJzEwMCUnLFxuICAgIH19XG4gICAgLy8gUHJldmVudCBgU3dpdGNoaW5nIGZyb20gdW5jb250cm9sbGVkIHRvIGNvbnRyb2xsZWRgIGVycm9yXG4gICAgdmFsdWU9XCJcIlxuICAgIG9uQ2hhbmdlPXsoKSA9PiB7fX1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */",toString:K$},q$=function(t){var n=t.name,r=t.onFocus;return ue("input",{required:!0,name:n,tabIndex:-1,"aria-hidden":"true",onFocus:r,css:Q$,value:"",onChange:function(){}})},e9=q$;function $f(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function t9(){return $f(/^iPhone/i)}function Y1(){return $f(/^Mac/i)}function n9(){return $f(/^iPad/i)||Y1()&&navigator.maxTouchPoints>1}function r9(){return t9()||n9()}function i9(){return Y1()||r9()}var a9=function(t){return t.label},o9=function(t){return t.label},s9=function(t){return t.value},l9=function(t){return!!t.isDisabled},u9={clearIndicator:W6,container:F6,control:J6,dropdownIndicator:j6,group:e$,groupHeading:n$,indicatorsContainer:M6,indicatorSeparator:G6,input:o$,loadingIndicator:Y6,loadingMessage:I6,menu:y6,menuList:D6,menuPortal:R6,multiValue:d$,multiValueLabel:f$,multiValueRemove:h$,noOptionsMessage:E6,option:y$,placeholder:w$,singleValue:E$,valueContainer:T6},c9={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},d9=4,U1=4,f9=38,h9=U1*2,g9={baseUnit:U1,controlHeight:f9,menuGutter:h9},Ju={borderRadius:d9,colors:c9,spacing:g9},m9={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Zg(),captureMenuScroll:!Zg(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:j$(),formatGroupLabel:a9,getOptionLabel:o9,getOptionValue:s9,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:l9,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!u6(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var n=t.count;return"".concat(n," result").concat(n!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function im(e,t,n,r){var i=Q1(e,t,n),a=q1(e,t,n),o=K1(e,t),s=El(e,t);return{type:"option",data:t,isDisabled:i,isSelected:a,label:o,value:s,index:r}}function Zs(e,t){return e.options.map(function(n,r){if("options"in n){var i=n.options.map(function(o,s){return im(e,o,t,s)}).filter(function(o){return om(e,o)});return i.length>0?{type:"group",data:n,options:i,index:r}:void 0}var a=im(e,n,t,r);return om(e,a)?a:void 0}).filter(f6)}function J1(e){return e.reduce(function(t,n){return n.type==="group"?t.push.apply(t,mf(n.options.map(function(r){return r.data}))):t.push(n.data),t},[])}function am(e,t){return e.reduce(function(n,r){return r.type==="group"?n.push.apply(n,mf(r.options.map(function(i){return{data:i.data,id:"".concat(t,"-").concat(r.index,"-").concat(i.index)}}))):n.push({data:r.data,id:"".concat(t,"-").concat(r.index)}),n},[])}function p9(e,t){return J1(Zs(e,t))}function om(e,t){var n=e.inputValue,r=n===void 0?"":n,i=t.data,a=t.isSelected,o=t.label,s=t.value;return(!tv(e)||!a)&&ev(e,{label:o,value:s,data:i},r)}function b9(e,t){var n=e.focusedValue,r=e.selectValue,i=r.indexOf(n);if(i>-1){var a=t.indexOf(n);if(a>-1)return n;if(i<t.length)return t[i]}return null}function v9(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}var Ku=function(t,n){var r,i=(r=t.find(function(a){return a.data===n}))===null||r===void 0?void 0:r.id;return i||null},K1=function(t,n){return t.getOptionLabel(n)},El=function(t,n){return t.getOptionValue(n)};function Q1(e,t,n){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,n):!1}function q1(e,t,n){if(n.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,n);var r=El(e,t);return n.some(function(i){return El(e,i)===r})}function ev(e,t,n){return e.filterOption?e.filterOption(t,n):!0}var tv=function(t){var n=t.hideSelectedOptions,r=t.isMulti;return n===void 0?r:n},y9=1,nv=function(e){MI(n,e);var t=OI(n);function n(r){var i;if(TI(this,n),i=t.call(this,r),i.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},i.blockOptionHover=!1,i.isComposing=!1,i.commonProps=void 0,i.initialTouchX=0,i.initialTouchY=0,i.openAfterFocus=!1,i.scrollToFocusedOptionOnUpdate=!1,i.userIsDragging=void 0,i.isAppleDevice=i9(),i.controlRef=null,i.getControlRef=function(l){i.controlRef=l},i.focusedOptionRef=null,i.getFocusedOptionRef=function(l){i.focusedOptionRef=l},i.menuListRef=null,i.getMenuListRef=function(l){i.menuListRef=l},i.inputRef=null,i.getInputRef=function(l){i.inputRef=l},i.focus=i.focusInput,i.blur=i.blurInput,i.onChange=function(l,u){var c=i.props,d=c.onChange,h=c.name;u.name=h,i.ariaOnChange(l,u),d(l,u)},i.setValue=function(l,u,c){var d=i.props,h=d.closeMenuOnSelect,f=d.isMulti,g=d.inputValue;i.onInputChange("",{action:"set-value",prevInputValue:g}),h&&(i.setState({inputIsHiddenAfterUpdate:!f}),i.onMenuClose()),i.setState({clearFocusValueOnUpdate:!0}),i.onChange(l,{action:u,option:c})},i.selectOption=function(l){var u=i.props,c=u.blurInputOnSelect,d=u.isMulti,h=u.name,f=i.state.selectValue,g=d&&i.isOptionSelected(l,f),m=i.isOptionDisabled(l,f);if(g){var p=i.getOptionValue(l);i.setValue(f.filter(function(b){return i.getOptionValue(b)!==p}),"deselect-option",l)}else if(!m)d?i.setValue([].concat(mf(f),[l]),"select-option",l):i.setValue(l,"select-option");else{i.ariaOnChange(l,{action:"select-option",option:l,name:h});return}c&&i.blurInput()},i.removeValue=function(l){var u=i.props.isMulti,c=i.state.selectValue,d=i.getOptionValue(l),h=c.filter(function(g){return i.getOptionValue(g)!==d}),f=ds(u,h,h[0]||null);i.onChange(f,{action:"remove-value",removedValue:l}),i.focusInput()},i.clearValue=function(){var l=i.state.selectValue;i.onChange(ds(i.props.isMulti,[],null),{action:"clear",removedValues:l})},i.popValue=function(){var l=i.props.isMulti,u=i.state.selectValue,c=u[u.length-1],d=u.slice(0,u.length-1),h=ds(l,d,d[0]||null);i.onChange(h,{action:"pop-value",removedValue:c})},i.getFocusedOptionId=function(l){return Ku(i.state.focusableOptionsWithIds,l)},i.getFocusableOptionsWithIds=function(){return am(Zs(i.props,i.state.selectValue),i.getElementId("option"))},i.getValue=function(){return i.state.selectValue},i.cx=function(){for(var l=arguments.length,u=new Array(l),c=0;c<l;c++)u[c]=arguments[c];return i6.apply(void 0,[i.props.classNamePrefix].concat(u))},i.getOptionLabel=function(l){return K1(i.props,l)},i.getOptionValue=function(l){return El(i.props,l)},i.getStyles=function(l,u){var c=i.props.unstyled,d=u9[l](u,c);d.boxSizing="border-box";var h=i.props.styles[l];return h?h(d,u):d},i.getClassNames=function(l,u){var c,d;return(c=(d=i.props.classNames)[l])===null||c===void 0?void 0:c.call(d,u)},i.getElementId=function(l){return"".concat(i.state.instancePrefix,"-").concat(l)},i.getComponents=function(){return $$(i.props)},i.buildCategorizedOptions=function(){return Zs(i.props,i.state.selectValue)},i.getCategorizedOptions=function(){return i.props.menuIsOpen?i.buildCategorizedOptions():[]},i.buildFocusableOptions=function(){return J1(i.buildCategorizedOptions())},i.getFocusableOptions=function(){return i.props.menuIsOpen?i.buildFocusableOptions():[]},i.ariaOnChange=function(l,u){i.setState({ariaSelection:ce({value:l},u)})},i.onMenuMouseDown=function(l){l.button===0&&(l.stopPropagation(),l.preventDefault(),i.focusInput())},i.onMenuMouseMove=function(l){i.blockOptionHover=!1},i.onControlMouseDown=function(l){if(!l.defaultPrevented){var u=i.props.openMenuOnClick;i.state.isFocused?i.props.menuIsOpen?l.target.tagName!=="INPUT"&&l.target.tagName!=="TEXTAREA"&&i.onMenuClose():u&&i.openMenu("first"):(u&&(i.openAfterFocus=!0),i.focusInput()),l.target.tagName!=="INPUT"&&l.target.tagName!=="TEXTAREA"&&l.preventDefault()}},i.onDropdownIndicatorMouseDown=function(l){if(!(l&&l.type==="mousedown"&&l.button!==0)&&!i.props.isDisabled){var u=i.props,c=u.isMulti,d=u.menuIsOpen;i.focusInput(),d?(i.setState({inputIsHiddenAfterUpdate:!c}),i.onMenuClose()):i.openMenu("first"),l.preventDefault()}},i.onClearIndicatorMouseDown=function(l){l&&l.type==="mousedown"&&l.button!==0||(i.clearValue(),l.preventDefault(),i.openAfterFocus=!1,l.type==="touchend"?i.focusInput():setTimeout(function(){return i.focusInput()}))},i.onScroll=function(l){typeof i.props.closeMenuOnScroll=="boolean"?l.target instanceof HTMLElement&&du(l.target)&&i.props.onMenuClose():typeof i.props.closeMenuOnScroll=="function"&&i.props.closeMenuOnScroll(l)&&i.props.onMenuClose()},i.onCompositionStart=function(){i.isComposing=!0},i.onCompositionEnd=function(){i.isComposing=!1},i.onTouchStart=function(l){var u=l.touches,c=u&&u.item(0);c&&(i.initialTouchX=c.clientX,i.initialTouchY=c.clientY,i.userIsDragging=!1)},i.onTouchMove=function(l){var u=l.touches,c=u&&u.item(0);if(c){var d=Math.abs(c.clientX-i.initialTouchX),h=Math.abs(c.clientY-i.initialTouchY),f=5;i.userIsDragging=d>f||h>f}},i.onTouchEnd=function(l){i.userIsDragging||(i.controlRef&&!i.controlRef.contains(l.target)&&i.menuListRef&&!i.menuListRef.contains(l.target)&&i.blurInput(),i.initialTouchX=0,i.initialTouchY=0)},i.onControlTouchEnd=function(l){i.userIsDragging||i.onControlMouseDown(l)},i.onClearIndicatorTouchEnd=function(l){i.userIsDragging||i.onClearIndicatorMouseDown(l)},i.onDropdownIndicatorTouchEnd=function(l){i.userIsDragging||i.onDropdownIndicatorMouseDown(l)},i.handleInputChange=function(l){var u=i.props.inputValue,c=l.currentTarget.value;i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange(c,{action:"input-change",prevInputValue:u}),i.props.menuIsOpen||i.onMenuOpen()},i.onInputFocus=function(l){i.props.onFocus&&i.props.onFocus(l),i.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(i.openAfterFocus||i.props.openMenuOnFocus)&&i.openMenu("first"),i.openAfterFocus=!1},i.onInputBlur=function(l){var u=i.props.inputValue;if(i.menuListRef&&i.menuListRef.contains(document.activeElement)){i.inputRef.focus();return}i.props.onBlur&&i.props.onBlur(l),i.onInputChange("",{action:"input-blur",prevInputValue:u}),i.onMenuClose(),i.setState({focusedValue:null,isFocused:!1})},i.onOptionHover=function(l){if(!(i.blockOptionHover||i.state.focusedOption===l)){var u=i.getFocusableOptions(),c=u.indexOf(l);i.setState({focusedOption:l,focusedOptionId:c>-1?i.getFocusedOptionId(l):null})}},i.shouldHideSelectedOptions=function(){return tv(i.props)},i.onValueInputFocus=function(l){l.preventDefault(),l.stopPropagation(),i.focus()},i.onKeyDown=function(l){var u=i.props,c=u.isMulti,d=u.backspaceRemovesValue,h=u.escapeClearsValue,f=u.inputValue,g=u.isClearable,m=u.isDisabled,p=u.menuIsOpen,b=u.onKeyDown,v=u.tabSelectsValue,y=u.openMenuOnFocus,w=i.state,C=w.focusedOption,E=w.focusedValue,I=w.selectValue;if(!m&&!(typeof b=="function"&&(b(l),l.defaultPrevented))){switch(i.blockOptionHover=!0,l.key){case"ArrowLeft":if(!c||f)return;i.focusValue("previous");break;case"ArrowRight":if(!c||f)return;i.focusValue("next");break;case"Delete":case"Backspace":if(f)return;if(E)i.removeValue(E);else{if(!d)return;c?i.popValue():g&&i.clearValue()}break;case"Tab":if(i.isComposing||l.shiftKey||!p||!v||!C||y&&i.isOptionSelected(C,I))return;i.selectOption(C);break;case"Enter":if(l.keyCode===229)break;if(p){if(!C||i.isComposing)return;i.selectOption(C);break}return;case"Escape":p?(i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange("",{action:"menu-close",prevInputValue:f}),i.onMenuClose()):g&&h&&i.clearValue();break;case" ":if(f)return;if(!p){i.openMenu("first");break}if(!C)return;i.selectOption(C);break;case"ArrowUp":p?i.focusOption("up"):i.openMenu("last");break;case"ArrowDown":p?i.focusOption("down"):i.openMenu("first");break;case"PageUp":if(!p)return;i.focusOption("pageup");break;case"PageDown":if(!p)return;i.focusOption("pagedown");break;case"Home":if(!p)return;i.focusOption("first");break;case"End":if(!p)return;i.focusOption("last");break;default:return}l.preventDefault()}},i.state.instancePrefix="react-select-"+(i.props.instanceId||++y9),i.state.selectValue=zg(r.value),r.menuIsOpen&&i.state.selectValue.length){var a=i.getFocusableOptionsWithIds(),o=i.buildFocusableOptions(),s=o.indexOf(i.state.selectValue[0]);i.state.focusableOptionsWithIds=a,i.state.focusedOption=o[s],i.state.focusedOptionId=Ku(a,o[s])}return i}return kI(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&Gg(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(i){var a=this.props,o=a.isDisabled,s=a.menuIsOpen,l=this.state.isFocused;(l&&!o&&i.isDisabled||l&&s&&!i.menuIsOpen)&&this.focusInput(),l&&o&&!i.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!l&&!o&&i.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(Gg(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(i,a){this.props.onInputChange(i,a)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(i){var a=this,o=this.state,s=o.selectValue,l=o.isFocused,u=this.buildFocusableOptions(),c=i==="first"?0:u.length-1;if(!this.props.isMulti){var d=u.indexOf(s[0]);d>-1&&(c=d)}this.scrollToFocusedOptionOnUpdate=!(l&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:u[c],focusedOptionId:this.getFocusedOptionId(u[c])},function(){return a.onMenuOpen()})}},{key:"focusValue",value:function(i){var a=this.state,o=a.selectValue,s=a.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var l=o.indexOf(s);s||(l=-1);var u=o.length-1,c=-1;if(o.length){switch(i){case"previous":l===0?c=0:l===-1?c=u:c=l-1;break;case"next":l>-1&&l<u&&(c=l+1);break}this.setState({inputIsHidden:c!==-1,focusedValue:o[c]})}}}},{key:"focusOption",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",a=this.props.pageSize,o=this.state.focusedOption,s=this.getFocusableOptions();if(s.length){var l=0,u=s.indexOf(o);o||(u=-1),i==="up"?l=u>0?u-1:s.length-1:i==="down"?l=(u+1)%s.length:i==="pageup"?(l=u-a,l<0&&(l=0)):i==="pagedown"?(l=u+a,l>s.length-1&&(l=s.length-1)):i==="last"&&(l=s.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:s[l],focusedValue:null,focusedOptionId:this.getFocusedOptionId(s[l])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(Ju):ce(ce({},Ju),this.props.theme):Ju}},{key:"getCommonProps",value:function(){var i=this.clearValue,a=this.cx,o=this.getStyles,s=this.getClassNames,l=this.getValue,u=this.selectOption,c=this.setValue,d=this.props,h=d.isMulti,f=d.isRtl,g=d.options,m=this.hasValue();return{clearValue:i,cx:a,getStyles:o,getClassNames:s,getValue:l,hasValue:m,isMulti:h,isRtl:f,options:g,selectOption:u,selectProps:d,setValue:c,theme:this.getTheme()}}},{key:"hasValue",value:function(){var i=this.state.selectValue;return i.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var i=this.props,a=i.isClearable,o=i.isMulti;return a===void 0?o:a}},{key:"isOptionDisabled",value:function(i,a){return Q1(this.props,i,a)}},{key:"isOptionSelected",value:function(i,a){return q1(this.props,i,a)}},{key:"filterOption",value:function(i,a){return ev(this.props,i,a)}},{key:"formatOptionLabel",value:function(i,a){if(typeof this.props.formatOptionLabel=="function"){var o=this.props.inputValue,s=this.state.selectValue;return this.props.formatOptionLabel(i,{context:a,inputValue:o,selectValue:s})}else return this.getOptionLabel(i)}},{key:"formatGroupLabel",value:function(i){return this.props.formatGroupLabel(i)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var i=this.props,a=i.isDisabled,o=i.isSearchable,s=i.inputId,l=i.inputValue,u=i.tabIndex,c=i.form,d=i.menuIsOpen,h=i.required,f=this.getComponents(),g=f.Input,m=this.state,p=m.inputIsHidden,b=m.ariaSelection,v=this.commonProps,y=s||this.getElementId("input"),w=ce(ce(ce({"aria-autocomplete":"list","aria-expanded":d,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":h,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},d&&{"aria-controls":this.getElementId("listbox")}),!o&&{"aria-readonly":!0}),this.hasValue()?(b==null?void 0:b.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return o?j.createElement(g,de({},v,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:y,innerRef:this.getInputRef,isDisabled:a,isHidden:p,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:u,form:c,type:"text",value:l},w)):j.createElement(W$,de({id:y,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Dl,onFocus:this.onInputFocus,disabled:a,tabIndex:u,inputMode:"none",form:c,value:""},w))}},{key:"renderPlaceholderOrValue",value:function(){var i=this,a=this.getComponents(),o=a.MultiValue,s=a.MultiValueContainer,l=a.MultiValueLabel,u=a.MultiValueRemove,c=a.SingleValue,d=a.Placeholder,h=this.commonProps,f=this.props,g=f.controlShouldRenderValue,m=f.isDisabled,p=f.isMulti,b=f.inputValue,v=f.placeholder,y=this.state,w=y.selectValue,C=y.focusedValue,E=y.isFocused;if(!this.hasValue()||!g)return b?null:j.createElement(d,de({},h,{key:"placeholder",isDisabled:m,isFocused:E,innerProps:{id:this.getElementId("placeholder")}}),v);if(p)return w.map(function(D,_){var F=D===C,$="".concat(i.getOptionLabel(D),"-").concat(i.getOptionValue(D));return j.createElement(o,de({},h,{components:{Container:s,Label:l,Remove:u},isFocused:F,isDisabled:m,key:$,index:_,removeProps:{onClick:function(){return i.removeValue(D)},onTouchEnd:function(){return i.removeValue(D)},onMouseDown:function(k){k.preventDefault()}},data:D}),i.formatOptionLabel(D,"value"))});if(b)return null;var I=w[0];return j.createElement(c,de({},h,{data:I,isDisabled:m}),this.formatOptionLabel(I,"value"))}},{key:"renderClearIndicator",value:function(){var i=this.getComponents(),a=i.ClearIndicator,o=this.commonProps,s=this.props,l=s.isDisabled,u=s.isLoading,c=this.state.isFocused;if(!this.isClearable()||!a||l||!this.hasValue()||u)return null;var d={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return j.createElement(a,de({},o,{innerProps:d,isFocused:c}))}},{key:"renderLoadingIndicator",value:function(){var i=this.getComponents(),a=i.LoadingIndicator,o=this.commonProps,s=this.props,l=s.isDisabled,u=s.isLoading,c=this.state.isFocused;if(!a||!u)return null;var d={"aria-hidden":"true"};return j.createElement(a,de({},o,{innerProps:d,isDisabled:l,isFocused:c}))}},{key:"renderIndicatorSeparator",value:function(){var i=this.getComponents(),a=i.DropdownIndicator,o=i.IndicatorSeparator;if(!a||!o)return null;var s=this.commonProps,l=this.props.isDisabled,u=this.state.isFocused;return j.createElement(o,de({},s,{isDisabled:l,isFocused:u}))}},{key:"renderDropdownIndicator",value:function(){var i=this.getComponents(),a=i.DropdownIndicator;if(!a)return null;var o=this.commonProps,s=this.props.isDisabled,l=this.state.isFocused,u={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return j.createElement(a,de({},o,{innerProps:u,isDisabled:s,isFocused:l}))}},{key:"renderMenu",value:function(){var i=this,a=this.getComponents(),o=a.Group,s=a.GroupHeading,l=a.Menu,u=a.MenuList,c=a.MenuPortal,d=a.LoadingMessage,h=a.NoOptionsMessage,f=a.Option,g=this.commonProps,m=this.state.focusedOption,p=this.props,b=p.captureMenuScroll,v=p.inputValue,y=p.isLoading,w=p.loadingMessage,C=p.minMenuHeight,E=p.maxMenuHeight,I=p.menuIsOpen,D=p.menuPlacement,_=p.menuPosition,F=p.menuPortalTarget,$=p.menuShouldBlockScroll,P=p.menuShouldScrollIntoView,k=p.noOptionsMessage,A=p.onMenuScrollToTop,B=p.onMenuScrollToBottom;if(!I)return null;var T=function(W,q){var Y=W.type,N=W.data,G=W.isDisabled,J=W.isSelected,re=W.label,fe=W.value,le=m===N,z=G?void 0:function(){return i.onOptionHover(N)},Ae=G?void 0:function(){return i.selectOption(N)},ke="".concat(i.getElementId("option"),"-").concat(q),Xe={id:ke,onClick:Ae,onMouseMove:z,onMouseOver:z,tabIndex:-1,role:"option","aria-selected":i.isAppleDevice?void 0:J};return j.createElement(f,de({},g,{innerProps:Xe,data:N,isDisabled:G,isSelected:J,key:ke,label:re,type:Y,value:fe,isFocused:le,innerRef:le?i.getFocusedOptionRef:void 0}),i.formatOptionLabel(W.data,"menu"))},R;if(this.hasOptions())R=this.getCategorizedOptions().map(function(V){if(V.type==="group"){var W=V.data,q=V.options,Y=V.index,N="".concat(i.getElementId("group"),"-").concat(Y),G="".concat(N,"-heading");return j.createElement(o,de({},g,{key:N,data:W,options:q,Heading:s,headingProps:{id:G,data:V.data},label:i.formatGroupLabel(V.data)}),V.options.map(function(J){return T(J,"".concat(Y,"-").concat(J.index))}))}else if(V.type==="option")return T(V,"".concat(V.index))});else if(y){var O=w({inputValue:v});if(O===null)return null;R=j.createElement(d,g,O)}else{var H=k({inputValue:v});if(H===null)return null;R=j.createElement(h,g,H)}var L={minMenuHeight:C,maxMenuHeight:E,menuPlacement:D,menuPosition:_,menuShouldScrollIntoView:P},Z=j.createElement(x6,de({},g,L),function(V){var W=V.ref,q=V.placerProps,Y=q.placement,N=q.maxHeight;return j.createElement(l,de({},g,L,{innerRef:W,innerProps:{onMouseDown:i.onMenuMouseDown,onMouseMove:i.onMenuMouseMove},isLoading:y,placement:Y}),j.createElement(J$,{captureEnabled:b,onTopArrive:A,onBottomArrive:B,lockEnabled:$},function(G){return j.createElement(u,de({},g,{innerRef:function(re){i.getMenuListRef(re),G(re)},innerProps:{role:"listbox","aria-multiselectable":g.isMulti,id:i.getElementId("listbox")},isLoading:y,maxHeight:N,focusedOption:m}),R)}))});return F||_==="fixed"?j.createElement(c,de({},g,{appendTo:F,controlElement:this.controlRef,menuPlacement:D,menuPosition:_}),Z):Z}},{key:"renderFormField",value:function(){var i=this,a=this.props,o=a.delimiter,s=a.isDisabled,l=a.isMulti,u=a.name,c=a.required,d=this.state.selectValue;if(c&&!this.hasValue()&&!s)return j.createElement(e9,{name:u,onFocus:this.onValueInputFocus});if(!(!u||s))if(l)if(o){var h=d.map(function(m){return i.getOptionValue(m)}).join(o);return j.createElement("input",{name:u,type:"hidden",value:h})}else{var f=d.length>0?d.map(function(m,p){return j.createElement("input",{key:"i-".concat(p),name:u,type:"hidden",value:i.getOptionValue(m)})}):j.createElement("input",{name:u,type:"hidden",value:""});return j.createElement("div",null,f)}else{var g=d[0]?this.getOptionValue(d[0]):"";return j.createElement("input",{name:u,type:"hidden",value:g})}}},{key:"renderLiveRegion",value:function(){var i=this.commonProps,a=this.state,o=a.ariaSelection,s=a.focusedOption,l=a.focusedValue,u=a.isFocused,c=a.selectValue,d=this.getFocusableOptions();return j.createElement(V$,de({},i,{id:this.getElementId("live-region"),ariaSelection:o,focusedOption:s,focusedValue:l,isFocused:u,selectValue:c,focusableOptions:d,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var i=this.getComponents(),a=i.Control,o=i.IndicatorsContainer,s=i.SelectContainer,l=i.ValueContainer,u=this.props,c=u.className,d=u.id,h=u.isDisabled,f=u.menuIsOpen,g=this.state.isFocused,m=this.commonProps=this.getCommonProps();return j.createElement(s,de({},m,{className:c,innerProps:{id:d,onKeyDown:this.onKeyDown},isDisabled:h,isFocused:g}),this.renderLiveRegion(),j.createElement(a,de({},m,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:h,isFocused:g,menuIsOpen:f}),j.createElement(l,de({},m,{isDisabled:h}),this.renderPlaceholderOrValue(),this.renderInput()),j.createElement(o,de({},m,{isDisabled:h}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(i,a){var o=a.prevProps,s=a.clearFocusValueOnUpdate,l=a.inputIsHiddenAfterUpdate,u=a.ariaSelection,c=a.isFocused,d=a.prevWasFocused,h=a.instancePrefix,f=i.options,g=i.value,m=i.menuIsOpen,p=i.inputValue,b=i.isMulti,v=zg(g),y={};if(o&&(g!==o.value||f!==o.options||m!==o.menuIsOpen||p!==o.inputValue)){var w=m?p9(i,v):[],C=m?am(Zs(i,v),"".concat(h,"-option")):[],E=s?b9(a,v):null,I=v9(a,w),D=Ku(C,I);y={selectValue:v,focusedOption:I,focusedOptionId:D,focusableOptionsWithIds:C,focusedValue:E,clearFocusValueOnUpdate:!1}}var _=l!=null&&i!==o?{inputIsHidden:l,inputIsHiddenAfterUpdate:void 0}:{},F=u,$=c&&d;return c&&!$&&(F={value:ds(b,v,v[0]||null),options:v,action:"initial-input-focus"},$=!d),(u==null?void 0:u.action)==="initial-input-focus"&&(F=null),ce(ce(ce({},y),_),{},{prevProps:i,ariaSelection:F,prevWasFocused:$})}}]),n}(x.Component);nv.defaultProps=m9;var x9=x.forwardRef(function(e,t){var n=PI(e);return j.createElement(nv,de({ref:t},n))}),C9=x9;const w9="_container_26hat_1",Qu={container:w9,"error-payhere":"_error-payhere_26hat_4","error-laba":"_error-laba_26hat_7"},D9={control:e=>({...e,border:"1px solid #D6D6D6","&:hover":{borderColor:"#0163C8"},borderRadius:"4px",outline:"none",boxShadow:"none",color:"#898989",backgroundColor:"white",margin:"0px",cursor:"text",minHeight:32}),dropdownIndicator:e=>({...e,padding:"0px 8px"}),menu:e=>({...e,position:"static",boxShadow:"none",marginTop:"0px"}),option:(e,t)=>({...e,cursor:"pointer",background:t.isSelected?"#F0F7FF":"white",color:t.isSelected?"#0163C8":e.color,"&:hover":{background:"#F0F7FF",color:"#0163C8"}}),group:e=>({...e,padding:0})},S9={control:()=>({display:"none"}),dropdownIndicator:e=>({...e,padding:"0px 8px"}),menu:e=>({...e,position:"static",boxShadow:"none",marginTop:"0px"}),option:(e,t)=>({...e,cursor:"pointer",background:t.isSelected?"#F0F7FF":"white",color:t.isSelected?"#0163C8":e.color,"&:hover":{background:"#F0F7FF",color:"#0163C8"}}),group:e=>({...e,padding:0})},rv=x.forwardRef((e,t)=>{const{width:n,children:r,components:i,classNameContainer:a="",classNameContainerShowSelect:o="",classNameContainerSelect:s="",classNameLabelError:l="",error:u,onChange:c,externalValue:d=!1,defaultValueButtonDropdown:h={},autoClose:f=!0,onMenuOpen:g=()=>{},autoCloseOutside:m=!0,styleInnerPopper:p={},onMenuClose:b=()=>{},zIndexPopper:v=0,id:y="select-dropdown-container",idPopover:w="select-dropdown-container-popover",useAutoPlacement:C,flipOptions:E,autoPlacementOptions:I,withSearch:D=!1,floatingOptions:_={},offsetPopover:F=5,selectProps:$={},errorLabel:P="payhere",actionValueChange:k=()=>{},...A}=e,B={error:{laba:Qu["error-laba"],payhere:Qu["error-payhere"]}},T=x.useRef(null),R=x.useRef(null),[O,H]=x.useState(""),[L,Z]=x.useState(!1),[V,W]=x.useState({}),[q,Y]=x.useState(0),N=z=>{var Ae;(Ae=R.current)==null||Ae.setShow(z),Z(z)},G=()=>{if(d)return e.isMulti?h:[h]},J=z=>{var Ae;(Ae=R.current)==null||Ae.handlerShow(z),Y(T.current.offsetWidth),Z(ke=>!ke)},re=()=>{var z;m&&((z=R.current)==null||z.setShow(!1))},fe=(z,Ae)=>{var ke;f&&(Z(!1),(ke=R.current)==null||ke.setShow(!1)),W(z),typeof c=="function"&&c(z,Ae)},le=()=>{T.current&&Y(T.current.offsetWidth)};return jo(()=>{d&&W(h),k(h)},[d,h]),x.useEffect(()=>{L?g():L||(b(),H(""))},[L]),x.useImperativeHandle(t,()=>({selectValue:V,setSelectValue:W,handlerClose:re,handlerShow:J,show:L,setShow:N}),[L,gf(V)]),x.useEffect(()=>(window.addEventListener("resize",le),window.addEventListener("load",le),()=>{window.removeEventListener("resize",le),window.removeEventListener("load",le)}),[T]),S.jsxs("div",{id:y,className:`${Qu.container} ${a} ${L?`${o} open-popover`:null}`,ref:T,children:[r({selectValue:V,setSelectValue:W,handlerClose:re,handlerShow:J,show:L,setShow:N}),S.jsx(Ci,{ref:R,offset:F,useAutoPlacement:C,flipOptions:E,autoPlacementOptions:I,zIndex:v,styleInnerPopover:p,id:w,width:typeof n=="function"?n(q,V):n??q,className:s,floatingOptions:_,children:S.jsx(C9,{className:"1ru-w-full",defaultValue:G(),inputValue:O,onInputChange:(z,{action:Ae})=>{Ae==="input-change"&&H(z)},openMenuOnFocus:!0,autoFocus:!1,backspaceRemovesValue:!1,components:{IndicatorSeparator:null,...i},controlShouldRenderValue:!1,hideSelectedOptions:!1,isClearable:!1,menuIsOpen:!0,tabSelectsValue:!1,styles:D?D9:S9,noOptionsMessage:()=>"Tidak ada data.",onChange:fe,selectProps:{...$,setShowDropdown:N},...A})}),S.jsx("div",{className:`${B.error[P]} ${l}`,children:u})]})});rv.displayName="SelectDropdownContainer";function Ki(e,t){return e-t*Math.floor(e/t)}const iv=1721426;function ai(e,t,n,r){t=Wo(e,t);let i=t-1,a=-2;return n<=2?a=0:Dr(t)&&(a=-1),iv-1+365*i+Math.floor(i/4)-Math.floor(i/100)+Math.floor(i/400)+Math.floor((367*n-362)/12+a+r)}function Dr(e){return e%4===0&&(e%100!==0||e%400===0)}function Wo(e,t){return e==="BC"?1-t:t}function fu(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}const E9={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]};class sn{fromJulianDay(t){let n=t,r=n-iv,i=Math.floor(r/146097),a=Ki(r,146097),o=Math.floor(a/36524),s=Ki(a,36524),l=Math.floor(s/1461),u=Ki(s,1461),c=Math.floor(u/365),d=i*400+o*100+l*4+c+(o!==4&&c!==4?1:0),[h,f]=fu(d),g=n-ai(h,f,1,1),m=2;n<ai(h,f,3,1)?m=0:Dr(f)&&(m=1);let p=Math.floor(((g+m)*12+373)/367),b=n-ai(h,f,p,1)+1;return new lt(h,f,p,b)}toJulianDay(t){return ai(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return E9[Dr(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return Dr(t.year)?366:365}getYearsInEra(t){return 9999}getEras(){return["BC","AD"]}isInverseEra(t){return t.era==="BC"}balanceDate(t){t.year<=0&&(t.era=t.era==="BC"?"AD":"BC",t.year=1-t.year)}constructor(){this.identifier="gregory"}}const I9={"001":1,AD:1,AE:6,AF:6,AI:1,AL:1,AM:1,AN:1,AR:1,AT:1,AU:1,AX:1,AZ:1,BA:1,BE:1,BG:1,BH:6,BM:1,BN:1,BY:1,CH:1,CL:1,CM:1,CN:1,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DZ:6,EC:1,EE:1,EG:6,ES:1,FI:1,FJ:1,FO:1,FR:1,GB:1,GE:1,GF:1,GP:1,GR:1,HR:1,HU:1,IE:1,IQ:6,IR:6,IS:1,IT:1,JO:6,KG:1,KW:6,KZ:1,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MK:1,MN:1,MQ:1,MV:5,MY:1,NL:1,NO:1,NZ:1,OM:6,PL:1,QA:6,RE:1,RO:1,RS:1,RU:1,SD:6,SE:1,SI:1,SK:1,SM:1,SY:6,TJ:1,TM:1,TR:1,UA:1,UY:1,UZ:1,VA:1,VN:1,XK:1};function ht(e,t){return t=bt(t,e.calendar),e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function qc(e,t){return e.calendar.identifier===t.calendar.identifier&&e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function _9(e,t){return ht(e,Rf(t))}function hu(e,t){let n=e.calendar.toJulianDay(e),r=Math.ceil(n+1-P9(t))%7;return r<0&&(r+=7),r}function $9(e){return ar(Date.now(),e)}function Rf(e){return on($9(e))}function av(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function ov(e,t){return sm(e)-sm(t)}function sm(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}let qu=null;function gi(){return qu==null&&(qu=new Intl.DateTimeFormat().resolvedOptions().timeZone),qu}function zo(e){return e.subtract({days:e.day-1})}function ed(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})}function R9(e){return zo(e.subtract({months:e.month-1}))}function bo(e,t){let n=hu(e,t);return e.subtract({days:n})}function A9(e,t){return bo(e,t).add({days:6})}const lm=new Map;function F9(e){if(Intl.Locale){let n=lm.get(e);return n||(n=new Intl.Locale(e).maximize().region,n&&lm.set(e,n)),n}let t=e.split("-")[1];return t==="u"?void 0:t}function P9(e){let t=F9(e);return t&&I9[t]||0}function sv(e,t){let n=e.calendar.getDaysInMonth(e);return Math.ceil((hu(zo(e),t)+n)/7)}function Af(e,t){return e&&t?e.compare(t)<=0?e:t:e||t}function Ff(e,t){return e&&t?e.compare(t)>=0?e:t:e||t}function sa(e){e=bt(e,new sn);let t=Wo(e.era,e.year);return lv(t,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function lv(e,t,n,r,i,a,o){let s=new Date;return s.setUTCHours(r,i,a,o),s.setUTCFullYear(e,t-1,n),s.getTime()}function td(e,t){if(t==="UTC")return 0;if(e>0&&t===gi())return new Date(e).getTimezoneOffset()*-6e4;let{year:n,month:r,day:i,hour:a,minute:o,second:s}=uv(e,t);return lv(n,r,i,a,o,s,0)-Math.floor(e/1e3)*1e3}const um=new Map;function uv(e,t){let n=um.get(t);n||(n=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),um.set(t,n));let r=n.formatToParts(new Date(e)),i={};for(let a of r)a.type!=="literal"&&(i[a.type]=a.value);return{year:i.era==="BC"||i.era==="B"?-i.year+1:+i.year,month:+i.month,day:+i.day,hour:i.hour==="24"?0:+i.hour,minute:+i.minute,second:+i.second}}const cm=864e5;function T9(e,t,n,r){return(n===r?[n]:[n,r]).filter(a=>k9(e,t,a))}function k9(e,t,n){let r=uv(n,t);return e.year===r.year&&e.month===r.month&&e.day===r.day&&e.hour===r.hour&&e.minute===r.minute&&e.second===r.second}function er(e,t,n="compatible"){let r=Pr(e);if(t==="UTC")return sa(r);if(t===gi()&&n==="compatible"){r=bt(r,new sn);let l=new Date,u=Wo(r.era,r.year);return l.setFullYear(u,r.month-1,r.day),l.setHours(r.hour,r.minute,r.second,r.millisecond),l.getTime()}let i=sa(r),a=td(i-cm,t),o=td(i+cm,t),s=T9(r,t,i-a,i-o);if(s.length===1)return s[0];if(s.length>1)switch(n){case"compatible":case"earlier":return s[0];case"later":return s[s.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(n){case"earlier":return Math.min(i-a,i-o);case"compatible":case"later":return Math.max(i-a,i-o);case"reject":throw new RangeError("No such absolute time found")}}function cv(e,t,n="compatible"){return new Date(er(e,t,n))}function ar(e,t){let n=td(e,t),r=new Date(e+n),i=r.getUTCFullYear(),a=r.getUTCMonth()+1,o=r.getUTCDate(),s=r.getUTCHours(),l=r.getUTCMinutes(),u=r.getUTCSeconds(),c=r.getUTCMilliseconds();return new yo(i,a,o,t,n,s,l,u,c)}function on(e){return new lt(e.calendar,e.era,e.year,e.month,e.day)}function Pr(e,t){let n=0,r=0,i=0,a=0;if("timeZone"in e)({hour:n,minute:r,second:i,millisecond:a}=e);else if("hour"in e&&!t)return e;return t&&({hour:n,minute:r,second:i,millisecond:a}=t),new Il(e.calendar,e.era,e.year,e.month,e.day,n,r,i,a)}function bt(e,t){if(e.calendar.identifier===t.identifier)return e;let n=t.fromJulianDay(e.calendar.toJulianDay(e)),r=e.copy();return r.calendar=t,r.era=n.era,r.year=n.year,r.month=n.month,r.day=n.day,mi(r),r}function M9(e,t,n){if(e instanceof yo)return e.timeZone===t?e:V9(e,t);let r=er(e,t,n);return ar(r,t)}function B9(e){let t=sa(e)-e.offset;return new Date(t)}function V9(e,t){let n=sa(e)-e.offset;return bt(ar(n,t),e.calendar)}const wa=36e5;function gu(e,t){let n=e.copy(),r="hour"in n?gv(n,t):0;nd(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,rd(n),dv(n),n.day+=(t.weeks||0)*7,n.day+=t.days||0,n.day+=r,O9(n),n.calendar.balanceDate&&n.calendar.balanceDate(n),n.year<1&&(n.year=1,n.month=1,n.day=1);let i=n.calendar.getYearsInEra(n);if(n.year>i){var a,o;let l=(a=(o=n.calendar).isInverseEra)===null||a===void 0?void 0:a.call(o,n);n.year=i,n.month=l?1:n.calendar.getMonthsInYear(n),n.day=l?1:n.calendar.getDaysInMonth(n)}n.month<1&&(n.month=1,n.day=1);let s=n.calendar.getMonthsInYear(n);return n.month>s&&(n.month=s,n.day=n.calendar.getDaysInMonth(n)),n.day=Math.max(1,Math.min(n.calendar.getDaysInMonth(n),n.day)),n}function nd(e,t){var n,r;!((n=(r=e.calendar).isInverseEra)===null||n===void 0)&&n.call(r,e)&&(t=-t),e.year+=t}function rd(e){for(;e.month<1;)nd(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,nd(e,1)}function O9(e){for(;e.day<1;)e.month--,rd(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,rd(e)}function dv(e){e.month=Math.max(1,Math.min(e.calendar.getMonthsInYear(e),e.month)),e.day=Math.max(1,Math.min(e.calendar.getDaysInMonth(e),e.day))}function mi(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),dv(e)}function Pf(e){let t={};for(let n in e)typeof e[n]=="number"&&(t[n]=-e[n]);return t}function fv(e,t){return gu(e,Pf(t))}function Tf(e,t){let n=e.copy();return t.era!=null&&(n.era=t.era),t.year!=null&&(n.year=t.year),t.month!=null&&(n.month=t.month),t.day!=null&&(n.day=t.day),mi(n),n}function vo(e,t){let n=e.copy();return t.hour!=null&&(n.hour=t.hour),t.minute!=null&&(n.minute=t.minute),t.second!=null&&(n.second=t.second),t.millisecond!=null&&(n.millisecond=t.millisecond),hv(n),n}function N9(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=fs(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=fs(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=fs(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=fs(e.hour,24),t}function hv(e){e.millisecond=Math.max(0,Math.min(e.millisecond,1e3)),e.second=Math.max(0,Math.min(e.second,59)),e.minute=Math.max(0,Math.min(e.minute,59)),e.hour=Math.max(0,Math.min(e.hour,23))}function fs(e,t){let n=e%t;return n<0&&(n+=t),n}function gv(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,N9(e)}function mv(e,t){let n=e.copy();return gv(n,t),n}function L9(e,t){return mv(e,Pf(t))}function kf(e,t,n,r){let i=e.copy();switch(t){case"era":{let s=e.calendar.getEras(),l=s.indexOf(e.era);if(l<0)throw new Error("Invalid era: "+e.era);l=or(l,n,0,s.length-1,r==null?void 0:r.round),i.era=s[l],mi(i);break}case"year":var a,o;!((a=(o=i.calendar).isInverseEra)===null||a===void 0)&&a.call(o,i)&&(n=-n),i.year=or(e.year,n,-1/0,9999,r==null?void 0:r.round),i.year===-1/0&&(i.year=1),i.calendar.balanceYearMonth&&i.calendar.balanceYearMonth(i,e);break;case"month":i.month=or(e.month,n,1,e.calendar.getMonthsInYear(e),r==null?void 0:r.round);break;case"day":i.day=or(e.day,n,1,e.calendar.getDaysInMonth(e),r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(i),mi(i),i}function Mf(e,t,n,r){let i=e.copy();switch(t){case"hour":{let a=e.hour,o=0,s=23;if((r==null?void 0:r.hourCycle)===12){let l=a>=12;o=l?12:0,s=l?23:11}i.hour=or(a,n,o,s,r==null?void 0:r.round);break}case"minute":i.minute=or(e.minute,n,0,59,r==null?void 0:r.round);break;case"second":i.second=or(e.second,n,0,59,r==null?void 0:r.round);break;case"millisecond":i.millisecond=or(e.millisecond,n,0,999,r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return i}function or(e,t,n,r,i=!1){if(i){e+=Math.sign(t),e<n&&(e=r);let a=Math.abs(t);t>0?e=Math.ceil(e/a)*a:e=Math.floor(e/a)*a,e>r&&(e=n)}else e+=t,e<n?e=r-(n-e-1):e>r&&(e=n+(e-r-1));return e}function pv(e,t){let n;if(t.years!=null&&t.years!==0||t.months!=null&&t.months!==0||t.weeks!=null&&t.weeks!==0||t.days!=null&&t.days!==0){let i=gu(Pr(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});n=er(i,e.timeZone)}else n=sa(e)-e.offset;n+=t.milliseconds||0,n+=(t.seconds||0)*1e3,n+=(t.minutes||0)*6e4,n+=(t.hours||0)*36e5;let r=ar(n,e.timeZone);return bt(r,e.calendar)}function j9(e,t){return pv(e,Pf(t))}function H9(e,t,n,r){switch(t){case"hour":{let i=0,a=23;if((r==null?void 0:r.hourCycle)===12){let g=e.hour>=12;i=g?12:0,a=g?23:11}let o=Pr(e),s=bt(vo(o,{hour:i}),new sn),l=[er(s,e.timeZone,"earlier"),er(s,e.timeZone,"later")].filter(g=>ar(g,e.timeZone).day===s.day)[0],u=bt(vo(o,{hour:a}),new sn),c=[er(u,e.timeZone,"earlier"),er(u,e.timeZone,"later")].filter(g=>ar(g,e.timeZone).day===u.day).pop(),d=sa(e)-e.offset,h=Math.floor(d/wa),f=d%wa;return d=or(h,n,Math.floor(l/wa),Math.floor(c/wa),r==null?void 0:r.round)*wa+f,bt(ar(d,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return Mf(e,t,n,r);case"era":case"year":case"month":case"day":{let i=kf(Pr(e),t,n,r),a=er(i,e.timeZone);return bt(ar(a,e.timeZone),e.calendar)}default:throw new Error("Unsupported field "+t)}}function W9(e,t,n){let r=Pr(e),i=vo(Tf(r,t),t);if(i.compare(r)===0)return e;let a=er(i,e.timeZone,n);return bt(ar(a,e.timeZone),e.calendar)}const z9=/^(\d{4})-(\d{2})-(\d{2})$/;function Bf(e){let t=e.match(z9);if(!t)throw new Error("Invalid ISO 8601 date string: "+e);let n=new lt(ec(t[1],0,9999),ec(t[2],1,12),1);return n.day=ec(t[3],0,n.calendar.getDaysInMonth(n)),n}function ec(e,t,n){let r=Number(e);if(r<t||r>n)throw new RangeError(`Value out of range: ${t} <= ${r} <= ${n}`);return r}function bv(e){return`${String(e.hour).padStart(2,"0")}:${String(e.minute).padStart(2,"0")}:${String(e.second).padStart(2,"0")}${e.millisecond?String(e.millisecond/1e3).slice(1):""}`}function vv(e){let t=bt(e,new sn);return`${String(t.year).padStart(4,"0")}-${String(t.month).padStart(2,"0")}-${String(t.day).padStart(2,"0")}`}function yv(e){return`${vv(e)}T${bv(e)}`}function G9(e){let t=Math.sign(e)<0?"-":"+";e=Math.abs(e);let n=Math.floor(e/36e5),r=e%36e5/6e4;return`${t}${String(n).padStart(2,"0")}:${String(r).padStart(2,"0")}`}function Z9(e){return`${yv(e)}${G9(e.offset)}[${e.timeZone}]`}function X9(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Go(e,t,n){X9(e,t),t.set(e,n)}function Vf(e){let t=typeof e[0]=="object"?e.shift():new sn,n;if(typeof e[0]=="string")n=e.shift();else{let o=t.getEras();n=o[o.length-1]}let r=e.shift(),i=e.shift(),a=e.shift();return[t,n,r,i,a]}var Y9=new WeakMap;class lt{copy(){return this.era?new lt(this.calendar,this.era,this.year,this.month,this.day):new lt(this.calendar,this.year,this.month,this.day)}add(t){return gu(this,t)}subtract(t){return fv(this,t)}set(t){return Tf(this,t)}cycle(t,n,r){return kf(this,t,n,r)}toDate(t){return cv(this,t)}toString(){return vv(this)}compare(t){return av(this,t)}constructor(...t){Go(this,Y9,{writable:!0,value:void 0});let[n,r,i,a,o]=Vf(t);this.calendar=n,this.era=r,this.year=i,this.month=a,this.day=o,mi(this)}}var U9=new WeakMap;class Of{copy(){return new Of(this.hour,this.minute,this.second,this.millisecond)}add(t){return mv(this,t)}subtract(t){return L9(this,t)}set(t){return vo(this,t)}cycle(t,n,r){return Mf(this,t,n,r)}toString(){return bv(this)}compare(t){return ov(this,t)}constructor(t=0,n=0,r=0,i=0){Go(this,U9,{writable:!0,value:void 0}),this.hour=t,this.minute=n,this.second=r,this.millisecond=i,hv(this)}}var J9=new WeakMap;class Il{copy(){return this.era?new Il(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new Il(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(t){return gu(this,t)}subtract(t){return fv(this,t)}set(t){return Tf(vo(this,t),t)}cycle(t,n,r){switch(t){case"era":case"year":case"month":case"day":return kf(this,t,n,r);default:return Mf(this,t,n,r)}}toDate(t,n){return cv(this,t,n)}toString(){return yv(this)}compare(t){let n=av(this,t);return n===0?ov(this,Pr(t)):n}constructor(...t){Go(this,J9,{writable:!0,value:void 0});let[n,r,i,a,o]=Vf(t);this.calendar=n,this.era=r,this.year=i,this.month=a,this.day=o,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,mi(this)}}var K9=new WeakMap;class yo{copy(){return this.era?new yo(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new yo(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(t){return pv(this,t)}subtract(t){return j9(this,t)}set(t,n){return W9(this,t,n)}cycle(t,n,r){return H9(this,t,n,r)}toDate(){return B9(this)}toString(){return Z9(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(t){return this.toDate().getTime()-M9(t,this.timeZone).toDate().getTime()}constructor(...t){Go(this,K9,{writable:!0,value:void 0});let[n,r,i,a,o]=Vf(t),s=t.shift(),l=t.shift();this.calendar=n,this.era=r,this.year=i,this.month=a,this.day=o,this.timeZone=s,this.offset=l,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,mi(this)}}const Qi=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],Q9=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],Xs=[1867,1911,1925,1988,2018],yr=["meiji","taisho","showa","heisei","reiwa"];function dm(e){const t=Qi.findIndex(([n,r,i])=>e.year<n||e.year===n&&e.month<r||e.year===n&&e.month===r&&e.day<i);return t===-1?Qi.length-1:t===0?0:t-1}function tc(e){let t=Xs[yr.indexOf(e.era)];if(!t)throw new Error("Unknown era: "+e.era);return new lt(e.year+t,e.month,e.day)}class q9 extends sn{fromJulianDay(t){let n=super.fromJulianDay(t),r=dm(n);return new lt(this,yr[r],n.year-Xs[r],n.month,n.day)}toJulianDay(t){return super.toJulianDay(tc(t))}balanceDate(t){let n=tc(t),r=dm(n);yr[r]!==t.era&&(t.era=yr[r],t.year=n.year-Xs[r]),this.constrainDate(t)}constrainDate(t){let n=yr.indexOf(t.era),r=Q9[n];if(r!=null){let[i,a,o]=r,s=i-Xs[n];t.year=Math.max(1,Math.min(s,t.year)),t.year===s&&(t.month=Math.min(a,t.month),t.month===a&&(t.day=Math.min(o,t.day)))}if(t.year===1&&n>=0){let[,i,a]=Qi[n];t.month=Math.max(i,t.month),t.month===i&&(t.day=Math.max(a,t.day))}}getEras(){return yr}getYearsInEra(t){let n=yr.indexOf(t.era),r=Qi[n],i=Qi[n+1];if(i==null)return 9999-r[0]+1;let a=i[0]-r[0];return(t.month<i[1]||t.month===i[1]&&t.day<i[2])&&a++,a}getDaysInMonth(t){return super.getDaysInMonth(tc(t))}getMinimumMonthInYear(t){let n=fm(t);return n?n[1]:1}getMinimumDayInMonth(t){let n=fm(t);return n&&t.month===n[1]?n[2]:1}constructor(...t){super(...t),this.identifier="japanese"}}function fm(e){if(e.year===1){let t=yr.indexOf(e.era);return Qi[t]}}const xv=-543;class eR extends sn{fromJulianDay(t){let n=super.fromJulianDay(t),r=Wo(n.era,n.year);return new lt(this,r-xv,n.month,n.day)}toJulianDay(t){return super.toJulianDay(hm(t))}getEras(){return["BE"]}getDaysInMonth(t){return super.getDaysInMonth(hm(t))}balanceDate(){}constructor(...t){super(...t),this.identifier="buddhist"}}function hm(e){let[t,n]=fu(e.year+xv);return new lt(t,n,e.month,e.day)}const _l=1911;function Cv(e){return e.era==="minguo"?e.year+_l:1-e.year+_l}function gm(e){let t=e-_l;return t>0?["minguo",t]:["before_minguo",1-t]}class tR extends sn{fromJulianDay(t){let n=super.fromJulianDay(t),r=Wo(n.era,n.year),[i,a]=gm(r);return new lt(this,i,a,n.month,n.day)}toJulianDay(t){return super.toJulianDay(mm(t))}getEras(){return["before_minguo","minguo"]}balanceDate(t){let[n,r]=gm(Cv(t));t.era=n,t.year=r}isInverseEra(t){return t.era==="before_minguo"}getDaysInMonth(t){return super.getDaysInMonth(mm(t))}getYearsInEra(t){return t.era==="before_minguo"?9999:9999-_l}constructor(...t){super(...t),this.identifier="roc"}}function mm(e){let[t,n]=fu(Cv(e));return new lt(t,n,e.month,e.day)}const pm=1948320,bm=[0,31,62,93,124,155,186,216,246,276,306,336];class nR{fromJulianDay(t){let n=t-pm,r=1+Math.floor((33*n+3)/12053),i=365*(r-1)+Math.floor((8*r+21)/33),a=n-i,o=a<216?Math.floor(a/31):Math.floor((a-6)/30),s=a-bm[o]+1;return new lt(this,r,o+1,s)}toJulianDay(t){let n=pm-1+365*(t.year-1)+Math.floor((8*t.year+21)/33);return n+=bm[t.month-1],n+=t.day,n}getMonthsInYear(){return 12}getDaysInMonth(t){return t.month<=6?31:t.month<=11||Ki(25*t.year+11,33)<8?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}const nc=78,vm=80;class rR extends sn{fromJulianDay(t){let n=super.fromJulianDay(t),r=n.year-nc,i=t-ai(n.era,n.year,1,1),a;i<vm?(r--,a=Dr(n.year-1)?31:30,i+=a+155+90+10):(a=Dr(n.year)?31:30,i-=vm);let o,s;if(i<a)o=1,s=i+1;else{let l=i-a;l<155?(o=Math.floor(l/31)+2,s=l%31+1):(l-=155,o=Math.floor(l/30)+7,s=l%30+1)}return new lt(this,r,o,s)}toJulianDay(t){let n=t.year+nc,[r,i]=fu(n),a,o;return Dr(i)?(a=31,o=ai(r,i,3,21)):(a=30,o=ai(r,i,3,22)),t.month===1?o+t.day-1:(o+=a+Math.min(t.month-2,5)*31,t.month>=8&&(o+=(t.month-7)*30),o+=t.day-1,o)}getDaysInMonth(t){return t.month===1&&Dr(t.year+nc)||t.month>=2&&t.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...t){super(...t),this.identifier="indian"}}const $l=1948440,ym=1948439,hn=1300,Mi=1600,iR=460322;function Rl(e,t,n,r){return r+Math.ceil(29.5*(n-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function wv(e,t,n){let r=Math.floor((30*(n-t)+10646)/10631),i=Math.min(12,Math.ceil((n-(29+Rl(t,r,1,1)))/29.5)+1),a=n-Rl(t,r,i,1)+1;return new lt(e,r,i,a)}function xm(e){return(14+11*e)%30<11}class Nf{fromJulianDay(t){return wv(this,$l,t)}toJulianDay(t){return Rl($l,t.year,t.month,t.day)}getDaysInMonth(t){let n=29+t.month%2;return t.month===12&&xm(t.year)&&n++,n}getMonthsInYear(){return 12}getDaysInYear(t){return xm(t.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class aR extends Nf{fromJulianDay(t){return wv(this,ym,t)}toJulianDay(t){return Rl(ym,t.year,t.month,t.day)}constructor(...t){super(...t),this.identifier="islamic-tbla"}}const oR="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";let id,qi;function Ys(e){return iR+qi[e-hn]}function Pa(e,t){let n=e-hn,r=1<<11-(t-1);return id[n]&r?30:29}function Cm(e,t){let n=Ys(e);for(let r=1;r<t;r++)n+=Pa(e,r);return n}function wm(e){return qi[e+1-hn]-qi[e-hn]}class sR extends Nf{fromJulianDay(t){let n=t-$l,r=Ys(hn),i=Ys(Mi);if(n<r||n>i)return super.fromJulianDay(t);{let a=hn-1,o=1,s=1;for(;s>0;){a++,s=n-Ys(a)+1;let l=wm(a);if(s===l){o=12;break}else if(s<l){let u=Pa(a,o);for(o=1;s>u;)s-=u,o++,u=Pa(a,o);break}}return new lt(this,a,o,n-Cm(a,o)+1)}}toJulianDay(t){return t.year<hn||t.year>Mi?super.toJulianDay(t):$l+Cm(t.year,t.month)+(t.day-1)}getDaysInMonth(t){return t.year<hn||t.year>Mi?super.getDaysInMonth(t):Pa(t.year,t.month)}getDaysInYear(t){return t.year<hn||t.year>Mi?super.getDaysInYear(t):wm(t.year)}constructor(){if(super(),this.identifier="islamic-umalqura",id||(id=new Uint16Array(Uint8Array.from(atob(oR),t=>t.charCodeAt(0)).buffer)),!qi){qi=new Uint32Array(Mi-hn+1);let t=0;for(let n=hn;n<=Mi;n++){qi[n-hn]=t;for(let r=1;r<=12;r++)t+=Pa(n,r)}}}}const Dm=347997,Dv=1080,Sv=24*Dv,lR=29,uR=12*Dv+793,cR=lR*Sv+uR;function ti(e){return Ki(e*7+1,19)<7}function Us(e){let t=Math.floor((235*e-234)/19),n=12084+13753*t,r=t*29+Math.floor(n/25920);return Ki(3*(r+1),7)<3&&(r+=1),r}function dR(e){let t=Us(e-1),n=Us(e);return Us(e+1)-n===356?2:n-t===382?1:0}function Za(e){return Us(e)+dR(e)}function Ev(e){return Za(e+1)-Za(e)}function fR(e){let t=Ev(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}function hs(e,t){if(t>=6&&!ti(e)&&t++,t===4||t===7||t===9||t===11||t===13)return 29;let n=fR(e);return t===2?n===2?30:29:t===3?n===0?29:30:t===6?ti(e)?30:0:30}class hR{fromJulianDay(t){let n=t-Dm,r=n*Sv/cR,i=Math.floor((19*r+234)/235)+1,a=Za(i),o=Math.floor(n-a);for(;o<1;)i--,a=Za(i),o=Math.floor(n-a);let s=1,l=0;for(;l<o;)l+=hs(i,s),s++;s--,l-=hs(i,s);let u=o-l;return new lt(this,i,s,u)}toJulianDay(t){let n=Za(t.year);for(let r=1;r<t.month;r++)n+=hs(t.year,r);return n+t.day+Dm}getDaysInMonth(t){return hs(t.year,t.month)}getMonthsInYear(t){return ti(t.year)?13:12}getDaysInYear(t){return Ev(t.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(t,n){n.year!==t.year&&(ti(n.year)&&!ti(t.year)&&n.month>6?t.month--:!ti(n.year)&&ti(t.year)&&n.month>6&&t.month++)}constructor(){this.identifier="hebrew"}}const ad=1723856,Sm=1824665,od=5500;function Al(e,t,n,r){return e+365*t+Math.floor(t/4)+30*(n-1)+r-1}function Lf(e,t){let n=Math.floor(4*(t-e)/1461),r=1+Math.floor((t-Al(e,n,1,1))/30),i=t+1-Al(e,n,r,1);return[n,r,i]}function Iv(e){return Math.floor(e%4/3)}function _v(e,t){return t%13!==0?30:Iv(e)+5}class jf{fromJulianDay(t){let[n,r,i]=Lf(ad,t),a="AM";return n<=0&&(a="AA",n+=od),new lt(this,a,n,r,i)}toJulianDay(t){let n=t.year;return t.era==="AA"&&(n-=od),Al(ad,n,t.month,t.day)}getDaysInMonth(t){return _v(t.year,t.month)}getMonthsInYear(){return 13}getDaysInYear(t){return 365+Iv(t.year)}getYearsInEra(t){return t.era==="AA"?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class gR extends jf{fromJulianDay(t){let[n,r,i]=Lf(ad,t);return n+=od,new lt(this,"AA",n,r,i)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...t){super(...t),this.identifier="ethioaa"}}class mR extends jf{fromJulianDay(t){let[n,r,i]=Lf(Sm,t),a="CE";return n<=0&&(a="BCE",n=1-n),new lt(this,a,n,r,i)}toJulianDay(t){let n=t.year;return t.era==="BCE"&&(n=1-n),Al(Sm,n,t.month,t.day)}getDaysInMonth(t){let n=t.year;return t.era==="BCE"&&(n=1-n),_v(n,t.month)}isInverseEra(t){return t.era==="BCE"}balanceDate(t){t.year<=0&&(t.era=t.era==="BCE"?"CE":"BCE",t.year=1-t.year)}getEras(){return["BCE","CE"]}getYearsInEra(t){return t.era==="BCE"?9999:9715}constructor(...t){super(...t),this.identifier="coptic"}}function Zo(e){switch(e){case"buddhist":return new eR;case"ethiopic":return new jf;case"ethioaa":return new gR;case"coptic":return new mR;case"hebrew":return new hR;case"indian":return new rR;case"islamic-civil":return new Nf;case"islamic-tbla":return new aR;case"islamic-umalqura":return new sR;case"japanese":return new q9;case"persian":return new nR;case"roc":return new tR;case"gregory":default:return new sn}}let rc=new Map;class xo{format(t){return this.formatter.format(t)}formatToParts(t){return this.formatter.formatToParts(t)}formatRange(t,n){if(typeof this.formatter.formatRange=="function")return this.formatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.formatter.format(t)} – ${this.formatter.format(n)}`}formatRangeToParts(t,n){if(typeof this.formatter.formatRangeToParts=="function")return this.formatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.formatter.formatToParts(t),i=this.formatter.formatToParts(n);return[...r.map(a=>({...a,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...i.map(a=>({...a,source:"endRange"}))]}resolvedOptions(){let t=this.formatter.resolvedOptions();return vR()&&(this.resolvedHourCycle||(this.resolvedHourCycle=yR(t.locale,this.options)),t.hourCycle=this.resolvedHourCycle,t.hour12=this.resolvedHourCycle==="h11"||this.resolvedHourCycle==="h12"),t.calendar==="ethiopic-amete-alem"&&(t.calendar="ethioaa"),t}constructor(t,n={}){this.formatter=$v(t,n),this.options=n}}const pR={true:{ja:"h11"},false:{}};function $v(e,t={}){if(typeof t.hour12=="boolean"&&bR()){t={...t};let i=pR[String(t.hour12)][e.split("-")[0]],a=t.hour12?"h12":"h23";t.hourCycle=i??a,delete t.hour12}let n=e+(t?Object.entries(t).sort((i,a)=>i[0]<a[0]?-1:1).join():"");if(rc.has(n))return rc.get(n);let r=new Intl.DateTimeFormat(e,t);return rc.set(n,r),r}let ic=null;function bR(){return ic==null&&(ic=new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))==="24"),ic}let ac=null;function vR(){return ac==null&&(ac=new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle==="h12"),ac}function yR(e,t){if(!t.timeStyle&&!t.hour)return;e=e.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,""),e+=(e.includes("-u-")?"":"-u")+"-nu-latn";let n=$v(e,{...t,timeZone:void 0}),r=parseInt(n.formatToParts(new Date(2020,2,3,0)).find(a=>a.type==="hour").value,10),i=parseInt(n.formatToParts(new Date(2020,2,3,23)).find(a=>a.type==="hour").value,10);if(r===0&&i===23)return"h23";if(r===24&&i===23)return"h24";if(r===0&&i===11)return"h11";if(r===12&&i===11)return"h12";throw new Error("Unexpected hour cycle result")}const Si=typeof document<"u"?x.useLayoutEffect:()=>{};function tr(e){const t=x.useRef(null);return Si(()=>{t.current=e},[e]),x.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}function xR(e){let[t,n]=x.useState(e),r=x.useRef(null),i=tr(()=>{if(!r.current)return;let o=r.current.next();if(o.done){r.current=null;return}t===o.value?i():n(o.value)});Si(()=>{r.current&&i()});let a=tr(o=>{r.current=o(t),i()});return[t,a]}const Fl={prefix:String(Math.round(Math.random()*1e10)),current:0},Rv=x.createContext(Fl),CR=x.createContext(!1);let wR=!!(typeof window<"u"&&window.document&&window.document.createElement),oc=new WeakMap;function DR(e=!1){let t=x.useContext(Rv),n=x.useRef(null);if(n.current===null&&!e){var r,i;let a=(i=x.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||i===void 0||(r=i.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(a){let o=oc.get(a);o==null?oc.set(a,{id:t.current,state:a.memoizedState}):a.memoizedState!==o.state&&(t.current=o.id,oc.delete(a))}n.current=++t.current}return n.current}function SR(e){let t=x.useContext(Rv);t===Fl&&!wR&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let n=DR(!!e),r=t===Fl&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${r}-${n}`}function ER(e){let t=x.useId(),[n]=x.useState(Av()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${Fl.prefix}`;return e||`${r}-${t}`}const IR=typeof x.useId=="function"?ER:SR;function _R(){return!1}function $R(){return!0}function RR(e){return()=>{}}function Av(){return typeof x.useSyncExternalStore=="function"?x.useSyncExternalStore(RR,_R,$R):x.useContext(CR)}let AR=!!(typeof window<"u"&&window.document&&window.document.createElement),Pl=new Map;function la(e){let[t,n]=x.useState(e),r=x.useRef(null),i=IR(t),a=x.useCallback(o=>{r.current=o},[]);return AR&&Pl.set(i,a),Si(()=>{let o=i;return()=>{Pl.delete(o)}},[i]),x.useEffect(()=>{let o=r.current;o&&(r.current=null,n(o))}),i}function FR(e,t){if(e===t)return e;let n=Pl.get(e);if(n)return n(t),t;let r=Pl.get(t);return r?(r(e),e):t}function sd(e=[]){let t=la(),[n,r]=xR(t),i=x.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return Si(i,[t,i,...e]),n}function Fv(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const $t=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},wn=e=>e&&"window"in e&&e.window===e?e:$t(e).defaultView||window;function Xt(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let i in r){let a=t[i],o=r[i];typeof a=="function"&&typeof o=="function"&&i[0]==="o"&&i[1]==="n"&&i.charCodeAt(2)>=65&&i.charCodeAt(2)<=90?t[i]=Fv(a,o):(i==="className"||i==="UNSAFE_className")&&typeof a=="string"&&typeof o=="string"?t[i]=rr(a,o):i==="id"&&a&&o?t.id=FR(a,o):t[i]=o!==void 0?o:a}}return t}const PR=new Set(["id"]),TR=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),kR=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),MR=/^(data-.*)$/;function Hf(e,t={}){let{labelable:n,isLink:r,propNames:i}=t,a={};for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(PR.has(o)||n&&TR.has(o)||r&&kR.has(o)||i!=null&&i.has(o)||MR.test(o))&&(a[o]=e[o]);return a}function Sr(e){if(BR())e.focus({preventScroll:!0});else{let t=VR(e);e.focus(),OR(t)}}let gs=null;function BR(){if(gs==null){gs=!1;try{document.createElement("div").focus({get preventScroll(){return gs=!0,!0}})}catch{}}return gs}function VR(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function OR(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function mu(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(n=>e.test(n.brand)))||e.test(window.navigator.userAgent)}function Wf(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function Co(){return Wf(/^Mac/i)}function NR(){return Wf(/^iPhone/i)}function Pv(){return Wf(/^iPad/i)||Co()&&navigator.maxTouchPoints>1}function Tv(){return NR()||Pv()}function LR(){return mu(/AppleWebKit/i)&&!jR()}function jR(){return mu(/Chrome/i)}function kv(){return mu(/Android/i)}function HR(){return mu(/Firefox/i)}function wo(e,t,n=!0){var r,i;let{metaKey:a,ctrlKey:o,altKey:s,shiftKey:l}=t;HR()&&(!((i=window.event)===null||i===void 0||(r=i.type)===null||r===void 0)&&r.startsWith("key"))&&e.target==="_blank"&&(Co()?a=!0:o=!0);let u=LR()&&Co()&&!Pv()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:a,ctrlKey:o,altKey:s,shiftKey:l}):new MouseEvent("click",{metaKey:a,ctrlKey:o,altKey:s,shiftKey:l,bubbles:!0,cancelable:!0});wo.isOpening=n,Sr(e),e.dispatchEvent(u),wo.isOpening=!1}wo.isOpening=!1;let zi=new Map,ld=new Set;function Em(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{if(!e(r)||!r.target)return;let i=zi.get(r.target);i||(i=new Set,zi.set(r.target,i),r.target.addEventListener("transitioncancel",n,{once:!0})),i.add(r.propertyName)},n=r=>{if(!e(r)||!r.target)return;let i=zi.get(r.target);if(i&&(i.delete(r.propertyName),i.size===0&&(r.target.removeEventListener("transitioncancel",n),zi.delete(r.target)),zi.size===0)){for(let a of ld)a();ld.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?Em():document.addEventListener("DOMContentLoaded",Em));function Mv(e){requestAnimationFrame(()=>{zi.size===0?e():ld.add(e)})}function WR(){let e=x.useRef(new Map),t=x.useCallback((i,a,o,s)=>{let l=s!=null&&s.once?(...u)=>{e.current.delete(o),o(...u)}:o;e.current.set(o,{type:a,eventTarget:i,fn:l,options:s}),i.addEventListener(a,o,s)},[]),n=x.useCallback((i,a,o,s)=>{var l;let u=((l=e.current.get(o))===null||l===void 0?void 0:l.fn)||o;i.removeEventListener(a,u,s),e.current.delete(o)},[]),r=x.useCallback(()=>{e.current.forEach((i,a)=>{n(i.eventTarget,i.type,a,i.options)})},[n]);return x.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function zf(e,t){let{id:n,"aria-label":r,"aria-labelledby":i}=e;return n=la(n),i&&r?i=[...new Set([n,...i.trim().split(/\s+/)])].join(" "):i&&(i=i.trim().split(/\s+/).join(" ")),!r&&!i&&t&&(r=t),{id:n,"aria-label":r,"aria-labelledby":i}}function Im(e,t){const n=x.useRef(!0),r=x.useRef(null);x.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[]),x.useEffect(()=>{n.current?n.current=!1:(!r.current||t.some((i,a)=>!Object.is(i,r[a])))&&e(),r.current=t},t)}function Bv(e,t){Si(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function ud(e,t){let n=window.getComputedStyle(e),r=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return r&&t&&(r=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),r}function zR(e,t){let n=e;for(ud(n,t)&&(n=n.parentElement);n&&!ud(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function GR(e,t){const n=[];for(;e&&e!==document.documentElement;)ud(e,t)&&n.push(e),e=e.parentElement;return n}let ZR=0;const sc=new Map;function Vv(e){let[t,n]=x.useState();return Si(()=>{if(!e)return;let r=sc.get(e);if(r)n(r.element.id);else{let i=`react-aria-description-${ZR++}`;n(i);let a=document.createElement("div");a.id=i,a.style.display="none",a.textContent=e,document.body.appendChild(a),r={refCount:0,element:a},sc.set(e,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),sc.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function lc(e,t,n,r){let i=tr(n),a=n==null;x.useEffect(()=>{if(a||!e.current)return;let o=e.current;return o.addEventListener(t,i,r),()=>{o.removeEventListener(t,i,r)}},[e,t,r,a,i])}function XR(e,t){let n=_m(e,t,"left"),r=_m(e,t,"top"),i=t.offsetWidth,a=t.offsetHeight,o=e.scrollLeft,s=e.scrollTop,{borderTopWidth:l,borderLeftWidth:u}=getComputedStyle(e),c=e.scrollLeft+parseInt(u,10),d=e.scrollTop+parseInt(l,10),h=c+e.clientWidth,f=d+e.clientHeight;n<=o?o=n-parseInt(u,10):n+i>h&&(o+=n+i-h),r<=d?s=r-parseInt(l,10):r+a>f&&(s+=r+a-f),e.scrollLeft=o,e.scrollTop=s}function _m(e,t,n){const r=n==="left"?"offsetLeft":"offsetTop";let i=0;for(;t.offsetParent&&(i+=t[r],t.offsetParent!==e);){if(t.offsetParent.contains(e)){i-=e[r];break}t=t.offsetParent}return i}function YR(e,t){if(document.contains(e)){let o=document.scrollingElement||document.documentElement;if(window.getComputedStyle(o).overflow==="hidden"){let l=GR(e);for(let u of l)XR(u,e)}else{var n;let{left:l,top:u}=e.getBoundingClientRect();e==null||(n=e.scrollIntoView)===null||n===void 0||n.call(e,{block:"nearest"});let{left:c,top:d}=e.getBoundingClientRect();if(Math.abs(l-c)>1||Math.abs(u-d)>1){var r,i,a;t==null||(i=t.containingElement)===null||i===void 0||(r=i.scrollIntoView)===null||r===void 0||r.call(i,{block:"center",inline:"center"}),(a=e.scrollIntoView)===null||a===void 0||a.call(e,{block:"nearest"})}}}}function cd(e){return e.mozInputSource===0&&e.isTrusted?!0:kv()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function UR(e){return!kv()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function Ov(e,t){let n=x.useRef(null);return e&&n.current&&t(e,n.current)&&(e=n.current),n.current=e,e}function Do(e,t,n){let[r,i]=x.useState(e||t),a=x.useRef(e!==void 0),o=e!==void 0;x.useEffect(()=>{let u=a.current;u!==o&&console.warn(`WARN: A component changed from ${u?"controlled":"uncontrolled"} to ${o?"controlled":"uncontrolled"}.`),a.current=o},[o]);let s=o?e:r,l=x.useCallback((u,...c)=>{let d=(h,...f)=>{n&&(Object.is(s,h)||n(h,...f)),o||(s=h)};typeof u=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),i((f,...g)=>{let m=u(o?s:f,...g);return d(m,...c),o?f:m})):(o||i(u),d(u,...c))},[o,s,n]);return[s,l]}let Gi="default",dd="",Js=new WeakMap;function $m(e){if(Tv()){if(Gi==="default"){const t=$t(e);dd=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}Gi="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(Js.set(e,e.style.userSelect),e.style.userSelect="none")}function ms(e){if(Tv()){if(Gi!=="disabled")return;Gi="restoring",setTimeout(()=>{Mv(()=>{if(Gi==="restoring"){const t=$t(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=dd||""),dd="",Gi="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Js.has(e)){let t=Js.get(e);e.style.userSelect==="none"&&(e.style.userSelect=t),e.getAttribute("style")===""&&e.removeAttribute("style"),Js.delete(e)}}const Nv=x.createContext({register:()=>{}});Nv.displayName="PressResponderContext";function JR(e,t){return t.get?t.get.call(e):t.value}function Lv(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function KR(e,t){var n=Lv(e,t,"get");return JR(e,n)}function QR(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}function Rm(e,t,n){var r=Lv(e,t,"set");return QR(e,r,n),n}function qR(e){let t=x.useContext(Nv);if(t){let{register:n,...r}=t;e=Xt(r,e),n()}return Bv(t,e.ref),e}var ps=new WeakMap;class bs{continuePropagation(){Rm(this,ps,!1)}get shouldStopPropagation(){return KR(this,ps)}constructor(t,n,r){Go(this,ps,{writable:!0,value:void 0}),Rm(this,ps,!0),this.type=t,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey}}const Am=Symbol("linkClicked");function Gf(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:a,isDisabled:o,isPressed:s,preventFocusOnPress:l,shouldCancelOnPointerExit:u,allowTextSelectionOnPress:c,ref:d,...h}=qR(e),[f,g]=x.useState(!1),m=x.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:p,removeAllGlobalListeners:b}=WR(),v=tr((D,_)=>{let F=m.current;if(o||F.didFirePressStart)return!1;let $=!0;if(F.isTriggeringEvent=!0,r){let P=new bs("pressstart",_,D);r(P),$=P.shouldStopPropagation}return n&&n(!0),F.isTriggeringEvent=!1,F.didFirePressStart=!0,g(!0),$}),y=tr((D,_,F=!0)=>{let $=m.current;if(!$.didFirePressStart)return!1;$.ignoreClickAfterPress=!0,$.didFirePressStart=!1,$.isTriggeringEvent=!0;let P=!0;if(i){let k=new bs("pressend",_,D);i(k),P=k.shouldStopPropagation}if(n&&n(!1),g(!1),t&&F&&!o){let k=new bs("press",_,D);t(k),P&&(P=k.shouldStopPropagation)}return $.isTriggeringEvent=!1,P}),w=tr((D,_)=>{let F=m.current;if(o)return!1;if(a){F.isTriggeringEvent=!0;let $=new bs("pressup",_,D);return a($),F.isTriggeringEvent=!1,$.shouldStopPropagation}return!0}),C=tr(D=>{let _=m.current;_.isPressed&&_.target&&(_.isOverTarget&&_.pointerType!=null&&y(Zn(_.target,D),_.pointerType,!1),_.isPressed=!1,_.isOverTarget=!1,_.activePointerId=null,_.pointerType=null,b(),c||ms(_.target))}),E=tr(D=>{u&&C(D)}),I=x.useMemo(()=>{let D=m.current,_={onKeyDown($){if(uc($.nativeEvent,$.currentTarget)&&$.currentTarget.contains($.target)){var P;Pm($.target,$.key)&&$.preventDefault();let k=!0;if(!D.isPressed&&!$.repeat){D.target=$.currentTarget,D.isPressed=!0,k=v($,"keyboard");let A=$.currentTarget,B=T=>{uc(T,A)&&!T.repeat&&A.contains(T.target)&&D.target&&w(Zn(D.target,T),"keyboard")};p($t($.currentTarget),"keyup",Fv(B,F),!0)}k&&$.stopPropagation(),$.metaKey&&Co()&&((P=D.metaKeyEvents)===null||P===void 0||P.set($.key,$.nativeEvent))}else $.key==="Meta"&&(D.metaKeyEvents=new Map)},onClick($){if(!($&&!$.currentTarget.contains($.target))&&$&&$.button===0&&!D.isTriggeringEvent&&!wo.isOpening){let P=!0;if(o&&$.preventDefault(),!D.ignoreClickAfterPress&&!D.ignoreEmulatedMouseEvents&&!D.isPressed&&(D.pointerType==="virtual"||cd($.nativeEvent))){!o&&!l&&Sr($.currentTarget);let k=v($,"virtual"),A=w($,"virtual"),B=y($,"virtual");P=k&&A&&B}D.ignoreEmulatedMouseEvents=!1,D.ignoreClickAfterPress=!1,P&&$.stopPropagation()}}},F=$=>{var P;if(D.isPressed&&D.target&&uc($,D.target)){var k;Pm($.target,$.key)&&$.preventDefault();let B=$.target;y(Zn(D.target,$),"keyboard",D.target.contains(B)),b(),$.key!=="Enter"&&Zf(D.target)&&D.target.contains(B)&&!$[Am]&&($[Am]=!0,wo(D.target,$,!1)),D.isPressed=!1,(k=D.metaKeyEvents)===null||k===void 0||k.delete($.key)}else if($.key==="Meta"&&(!((P=D.metaKeyEvents)===null||P===void 0)&&P.size)){var A;let B=D.metaKeyEvents;D.metaKeyEvents=void 0;for(let T of B.values())(A=D.target)===null||A===void 0||A.dispatchEvent(new KeyboardEvent("keyup",T))}};if(typeof PointerEvent<"u"){_.onPointerDown=A=>{if(A.button!==0||!A.currentTarget.contains(A.target))return;if(UR(A.nativeEvent)){D.pointerType="virtual";return}cc(A.currentTarget)&&A.preventDefault(),D.pointerType=A.pointerType;let B=!0;D.isPressed||(D.isPressed=!0,D.isOverTarget=!0,D.activePointerId=A.pointerId,D.target=A.currentTarget,!o&&!l&&Sr(A.currentTarget),c||$m(D.target),B=v(A,D.pointerType),p($t(A.currentTarget),"pointermove",$,!1),p($t(A.currentTarget),"pointerup",P,!1),p($t(A.currentTarget),"pointercancel",k,!1)),B&&A.stopPropagation()},_.onMouseDown=A=>{A.currentTarget.contains(A.target)&&A.button===0&&(cc(A.currentTarget)&&A.preventDefault(),A.stopPropagation())},_.onPointerUp=A=>{!A.currentTarget.contains(A.target)||D.pointerType==="virtual"||A.button===0&&Bi(A,A.currentTarget)&&w(A,D.pointerType||A.pointerType)};let $=A=>{A.pointerId===D.activePointerId&&(D.target&&Bi(A,D.target)?!D.isOverTarget&&D.pointerType!=null&&(D.isOverTarget=!0,v(Zn(D.target,A),D.pointerType)):D.target&&D.isOverTarget&&D.pointerType!=null&&(D.isOverTarget=!1,y(Zn(D.target,A),D.pointerType,!1),E(A)))},P=A=>{A.pointerId===D.activePointerId&&D.isPressed&&A.button===0&&D.target&&(Bi(A,D.target)&&D.pointerType!=null?y(Zn(D.target,A),D.pointerType):D.isOverTarget&&D.pointerType!=null&&y(Zn(D.target,A),D.pointerType,!1),D.isPressed=!1,D.isOverTarget=!1,D.activePointerId=null,D.pointerType=null,b(),c||ms(D.target))},k=A=>{C(A)};_.onDragStart=A=>{A.currentTarget.contains(A.target)&&C(A)}}else{_.onMouseDown=k=>{if(k.button!==0||!k.currentTarget.contains(k.target))return;if(cc(k.currentTarget)&&k.preventDefault(),D.ignoreEmulatedMouseEvents){k.stopPropagation();return}D.isPressed=!0,D.isOverTarget=!0,D.target=k.currentTarget,D.pointerType=cd(k.nativeEvent)?"virtual":"mouse",!o&&!l&&Sr(k.currentTarget),v(k,D.pointerType)&&k.stopPropagation(),p($t(k.currentTarget),"mouseup",$,!1)},_.onMouseEnter=k=>{if(!k.currentTarget.contains(k.target))return;let A=!0;D.isPressed&&!D.ignoreEmulatedMouseEvents&&D.pointerType!=null&&(D.isOverTarget=!0,A=v(k,D.pointerType)),A&&k.stopPropagation()},_.onMouseLeave=k=>{if(!k.currentTarget.contains(k.target))return;let A=!0;D.isPressed&&!D.ignoreEmulatedMouseEvents&&D.pointerType!=null&&(D.isOverTarget=!1,A=y(k,D.pointerType,!1),E(k)),A&&k.stopPropagation()},_.onMouseUp=k=>{k.currentTarget.contains(k.target)&&!D.ignoreEmulatedMouseEvents&&k.button===0&&w(k,D.pointerType||"mouse")};let $=k=>{if(k.button===0){if(D.isPressed=!1,b(),D.ignoreEmulatedMouseEvents){D.ignoreEmulatedMouseEvents=!1;return}D.target&&Bi(k,D.target)&&D.pointerType!=null?y(Zn(D.target,k),D.pointerType):D.target&&D.isOverTarget&&D.pointerType!=null&&y(Zn(D.target,k),D.pointerType,!1),D.isOverTarget=!1}};_.onTouchStart=k=>{if(!k.currentTarget.contains(k.target))return;let A=eA(k.nativeEvent);if(!A)return;D.activePointerId=A.identifier,D.ignoreEmulatedMouseEvents=!0,D.isOverTarget=!0,D.isPressed=!0,D.target=k.currentTarget,D.pointerType="touch",!o&&!l&&Sr(k.currentTarget),c||$m(D.target),v(k,D.pointerType)&&k.stopPropagation(),p(wn(k.currentTarget),"scroll",P,!0)},_.onTouchMove=k=>{if(!k.currentTarget.contains(k.target))return;if(!D.isPressed){k.stopPropagation();return}let A=Fm(k.nativeEvent,D.activePointerId),B=!0;A&&Bi(A,k.currentTarget)?!D.isOverTarget&&D.pointerType!=null&&(D.isOverTarget=!0,B=v(k,D.pointerType)):D.isOverTarget&&D.pointerType!=null&&(D.isOverTarget=!1,B=y(k,D.pointerType,!1),E(k)),B&&k.stopPropagation()},_.onTouchEnd=k=>{if(!k.currentTarget.contains(k.target))return;if(!D.isPressed){k.stopPropagation();return}let A=Fm(k.nativeEvent,D.activePointerId),B=!0;A&&Bi(A,k.currentTarget)&&D.pointerType!=null?(w(k,D.pointerType),B=y(k,D.pointerType)):D.isOverTarget&&D.pointerType!=null&&(B=y(k,D.pointerType,!1)),B&&k.stopPropagation(),D.isPressed=!1,D.activePointerId=null,D.isOverTarget=!1,D.ignoreEmulatedMouseEvents=!0,D.target&&!c&&ms(D.target),b()},_.onTouchCancel=k=>{k.currentTarget.contains(k.target)&&(k.stopPropagation(),D.isPressed&&C(k))};let P=k=>{D.isPressed&&k.target.contains(D.target)&&C({currentTarget:D.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};_.onDragStart=k=>{k.currentTarget.contains(k.target)&&C(k)}}return _},[p,o,l,b,c,C,E,y,v,w]);return x.useEffect(()=>()=>{var D;c||ms((D=m.current.target)!==null&&D!==void 0?D:void 0)},[c]),{isPressed:s||f,pressProps:Xt(h,I)}}function Zf(e){return e.tagName==="A"&&e.hasAttribute("href")}function uc(e,t){const{key:n,code:r}=e,i=t,a=i.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(i instanceof wn(i).HTMLInputElement&&!jv(i,n)||i instanceof wn(i).HTMLTextAreaElement||i.isContentEditable)&&!((a==="link"||!a&&Zf(i))&&n!=="Enter")}function eA(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function Fm(e,t){const n=e.changedTouches;for(let r=0;r<n.length;r++){const i=n[r];if(i.identifier===t)return i}return null}function Zn(e,t){return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey}}function tA(e){let t=0,n=0;return e.width!==void 0?t=e.width/2:e.radiusX!==void 0&&(t=e.radiusX),e.height!==void 0?n=e.height/2:e.radiusY!==void 0&&(n=e.radiusY),{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}function nA(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function Bi(e,t){let n=t.getBoundingClientRect(),r=tA(e);return nA(n,r)}function cc(e){return!(e instanceof HTMLElement)||!e.hasAttribute("draggable")}function Pm(e,t){return e instanceof HTMLInputElement?!jv(e,t):e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!Zf(e)}const rA=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function jv(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":rA.has(e.type)}class iA{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,n){this.nativeEvent=n,this.target=n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget,this.bubbles=n.bubbles,this.cancelable=n.cancelable,this.defaultPrevented=n.defaultPrevented,this.eventPhase=n.eventPhase,this.isTrusted=n.isTrusted,this.timeStamp=n.timeStamp,this.type=t}}function Hv(e){let t=x.useRef({isFocused:!1,observer:null});Si(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=tr(r=>{e==null||e(r)});return x.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let i=r.target,a=o=>{t.current.isFocused=!1,i.disabled&&n(new iA("blur",o)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};i.addEventListener("focusout",a,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&i.disabled){var o;(o=t.current.observer)===null||o===void 0||o.disconnect();let s=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:s})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:s}))}}),t.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function Wv(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e;const a=x.useCallback(l=>{if(l.target===l.currentTarget)return r&&r(l),i&&i(!1),!0},[r,i]),o=Hv(a),s=x.useCallback(l=>{const u=$t(l.target);l.target===l.currentTarget&&u.activeElement===l.target&&(n&&n(l),i&&i(!0),o(l))},[i,n,o]);return{focusProps:{onFocus:!t&&(n||i||r)?s:void 0,onBlur:!t&&(r||i)?a:void 0}}}let pa=null,fd=new Set,Xa=new Map,pi=!1,hd=!1;const aA={Tab:!0,Escape:!0};function Xf(e,t){for(let n of fd)n(e,t)}function oA(e){return!(e.metaKey||!Co()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Tl(e){pi=!0,oA(e)&&(pa="keyboard",Xf("keyboard",e))}function gn(e){pa="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(pi=!0,Xf("pointer",e))}function zv(e){cd(e)&&(pi=!0,pa="virtual")}function Gv(e){e.target===window||e.target===document||(!pi&&!hd&&(pa="virtual",Xf("virtual",e)),pi=!1,hd=!1)}function Zv(){pi=!1,hd=!0}function gd(e){if(typeof window>"u"||Xa.get(wn(e)))return;const t=wn(e),n=$t(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){pi=!0,r.apply(this,arguments)},n.addEventListener("keydown",Tl,!0),n.addEventListener("keyup",Tl,!0),n.addEventListener("click",zv,!0),t.addEventListener("focus",Gv,!0),t.addEventListener("blur",Zv,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",gn,!0),n.addEventListener("pointermove",gn,!0),n.addEventListener("pointerup",gn,!0)):(n.addEventListener("mousedown",gn,!0),n.addEventListener("mousemove",gn,!0),n.addEventListener("mouseup",gn,!0)),t.addEventListener("beforeunload",()=>{Xv(e)},{once:!0}),Xa.set(t,{focus:r})}const Xv=(e,t)=>{const n=wn(e),r=$t(e);t&&r.removeEventListener("DOMContentLoaded",t),Xa.has(n)&&(n.HTMLElement.prototype.focus=Xa.get(n).focus,r.removeEventListener("keydown",Tl,!0),r.removeEventListener("keyup",Tl,!0),r.removeEventListener("click",zv,!0),n.removeEventListener("focus",Gv,!0),n.removeEventListener("blur",Zv,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",gn,!0),r.removeEventListener("pointermove",gn,!0),r.removeEventListener("pointerup",gn,!0)):(r.removeEventListener("mousedown",gn,!0),r.removeEventListener("mousemove",gn,!0),r.removeEventListener("mouseup",gn,!0)),Xa.delete(n))};function sA(e){const t=$t(e);let n;return t.readyState!=="loading"?gd(e):(n=()=>{gd(e)},t.addEventListener("DOMContentLoaded",n)),()=>Xv(e,n)}typeof document<"u"&&sA();function Yv(){return pa!=="pointer"}function Uv(){return pa}const lA=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function uA(e,t,n){var r;const i=typeof window<"u"?wn(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,a=typeof window<"u"?wn(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,o=typeof window<"u"?wn(n==null?void 0:n.target).HTMLElement:HTMLElement,s=typeof window<"u"?wn(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return e=e||(n==null?void 0:n.target)instanceof i&&!lA.has(n==null||(r=n.target)===null||r===void 0?void 0:r.type)||(n==null?void 0:n.target)instanceof a||(n==null?void 0:n.target)instanceof o&&(n==null?void 0:n.target.isContentEditable),!(e&&t==="keyboard"&&n instanceof s&&!aA[n.key])}function cA(e,t,n){gd(),x.useEffect(()=>{let r=(i,a)=>{uA(!!(n!=null&&n.isTextInput),i,a)&&e(Yv())};return fd.add(r),()=>{fd.delete(r)}},t)}function Jv(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,a=x.useRef({isFocusWithin:!1}),o=x.useCallback(u=>{a.current.isFocusWithin&&!u.currentTarget.contains(u.relatedTarget)&&(a.current.isFocusWithin=!1,n&&n(u),i&&i(!1))},[n,i,a]),s=Hv(o),l=x.useCallback(u=>{!a.current.isFocusWithin&&document.activeElement===u.target&&(r&&r(u),i&&i(!0),a.current.isFocusWithin=!0,s(u))},[r,i,s]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:l,onBlur:o}}}function Tm(e){if(!e)return;let t=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){t=!1}};e(r),t&&n.stopPropagation()}}function dA(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:Tm(e.onKeyDown),onKeyUp:Tm(e.onKeyUp)}}}function Kv(e){const t=$t(e);if(Uv()==="virtual"){let n=t.activeElement;Mv(()=>{t.activeElement===n&&e.isConnected&&Sr(e)})}else Sr(e)}function fA(e){const t=wn(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,i=n!=="none"&&r!=="hidden"&&r!=="collapse";if(i){const{getComputedStyle:a}=e.ownerDocument.defaultView;let{display:o,visibility:s}=a(e);i=o!=="none"&&s!=="hidden"&&s!=="collapse"}return i}function hA(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function Qv(e,t){return e.nodeName!=="#comment"&&fA(e)&&hA(e,t)&&(!e.parentElement||Qv(e.parentElement,e))}const Yf=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],gA=Yf.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";Yf.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const mA=Yf.join(':not([hidden]):not([tabindex="-1"]),');function qv(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}function Da(e,t=!1){if(e!=null&&!t)try{Kv(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function Ta(e,t,n){let r=t!=null&&t.tabbable?mA:gA,i=$t(e).createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(a){var o;return!(t==null||(o=t.from)===null||o===void 0)&&o.contains(a)?NodeFilter.FILTER_REJECT:a.matches(r)&&Qv(a)&&(!n||qv(a,n))&&(!(t!=null&&t.accept)||t.accept(a))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(i.currentNode=t.from),i}function ey(e,t={}){return{focusNext(n={}){let r=e.current;if(!r)return null;let{from:i,tabbable:a=t.tabbable,wrap:o=t.wrap,accept:s=t.accept}=n,l=i||$t(r).activeElement,u=Ta(r,{tabbable:a,accept:s});r.contains(l)&&(u.currentNode=l);let c=u.nextNode();return!c&&o&&(u.currentNode=r,c=u.nextNode()),c&&Da(c,!0),c},focusPrevious(n=t){let r=e.current;if(!r)return null;let{from:i,tabbable:a=t.tabbable,wrap:o=t.wrap,accept:s=t.accept}=n,l=i||$t(r).activeElement,u=Ta(r,{tabbable:a,accept:s});if(r.contains(l))u.currentNode=l;else{let d=dc(u);return d&&Da(d,!0),d??null}let c=u.previousNode();if(!c&&o){u.currentNode=r;let d=dc(u);if(!d)return null;c=d}return c&&Da(c,!0),c??null},focusFirst(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:a=t.accept}=n,s=Ta(r,{tabbable:i,accept:a}).nextNode();return s&&Da(s,!0),s},focusLast(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:a=t.accept}=n,o=Ta(r,{tabbable:i,accept:a}),s=dc(o);return s&&Da(s,!0),s??null}}}function dc(e){let t,n;do n=e.lastChild(),n&&(t=n);while(n);return t}class Uf{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,n,r){let i=this.fastMap.get(n??null);if(!i)return;let a=new km({scopeRef:t});i.addChild(a),a.parent=i,this.fastMap.set(t,a),r&&(a.nodeToRestore=r)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let n=this.fastMap.get(t);if(!n)return;let r=n.parent;for(let a of this.traverse())a!==n&&n.nodeToRestore&&a.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&qv(a.nodeToRestore,n.scopeRef.current)&&(a.nodeToRestore=n.nodeToRestore);let i=n.children;r&&(r.removeChild(n),i.size>0&&i.forEach(a=>r&&r.addChild(a))),this.fastMap.delete(n.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let n of t.children)yield*this.traverse(n)}clone(){var t;let n=new Uf;var r;for(let i of this.traverse())n.addTreeNode(i.scopeRef,(r=(t=i.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&r!==void 0?r:null,i.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new km({scopeRef:null}),this.fastMap.set(null,this.root)}}class km{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}new Uf;function ty(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,i=x.useRef({isFocused:!1,isFocusVisible:t||Yv()}),[a,o]=x.useState(!1),[s,l]=x.useState(()=>i.current.isFocused&&i.current.isFocusVisible),u=x.useCallback(()=>l(i.current.isFocused&&i.current.isFocusVisible),[]),c=x.useCallback(f=>{i.current.isFocused=f,o(f),u()},[u]);cA(f=>{i.current.isFocusVisible=f,u()},[],{isTextInput:n});let{focusProps:d}=Wv({isDisabled:r,onFocusChange:c}),{focusWithinProps:h}=Jv({isDisabled:!r,onFocusWithinChange:c});return{isFocused:a,isFocusVisible:s,focusProps:r?h:d}}let pA=x.createContext(null);function bA(e){let t=x.useContext(pA)||{};Bv(t,e);let{ref:n,...r}=t;return r}function vA(e,t){let{focusProps:n}=Wv(e),{keyboardProps:r}=dA(e),i=Xt(n,r),a=bA(t),o=e.isDisabled?{}:a,s=x.useRef(e.autoFocus);return x.useEffect(()=>{s.current&&t.current&&Kv(t.current),s.current=!1},[t]),{focusableProps:Xt({...i,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},o)}}const yA=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),xA=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function ny(e){if(Intl.Locale){let n=new Intl.Locale(e).maximize(),r=typeof n.getTextInfo=="function"?n.getTextInfo():n.textInfo;if(r)return r.direction==="rtl";if(n.script)return yA.has(n.script)}let t=e.split("-")[0];return xA.has(t)}const CA=Symbol.for("react-aria.i18n.locale");function ry(){let e=typeof window<"u"&&window[CA]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:ny(e)?"rtl":"ltr"}}let md=ry(),ka=new Set;function Mm(){md=ry();for(let e of ka)e(md)}function iy(){let e=Av(),[t,n]=x.useState(md);return x.useEffect(()=>(ka.size===0&&window.addEventListener("languagechange",Mm),ka.add(n),()=>{ka.delete(n),ka.size===0&&window.removeEventListener("languagechange",Mm)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const ay=x.createContext(null);function Jf(e){let{locale:t,children:n}=e,r=iy(),i=x.useMemo(()=>t?{locale:t,direction:ny(t)?"rtl":"ltr"}:r,[r,t]);return x.createElement(ay.Provider,{value:i},n)}function $n(){let e=iy();return x.useContext(ay)||e}const wA=Symbol.for("react-aria.i18n.locale"),DA=Symbol.for("react-aria.i18n.strings");let Vi;class Ei{getStringForLocale(t,n){let i=this.getStringsForLocale(n)[t];if(!i)throw new Error(`Could not find intl message ${t} in ${n} locale`);return i}getStringsForLocale(t){let n=this.strings[t];return n||(n=SA(t,this.strings,this.defaultLocale),this.strings[t]=n),n}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let n=window[wA];if(Vi===void 0){let i=window[DA];if(!i)return null;Vi={};for(let a in i)Vi[a]=new Ei({[n]:i[a]},n)}let r=Vi==null?void 0:Vi[t];if(!r)throw new Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}constructor(t,n="en-US"){this.strings=Object.fromEntries(Object.entries(t).filter(([,r])=>r)),this.defaultLocale=n}}function SA(e,t,n="en-US"){if(t[e])return t[e];let r=EA(e);if(t[r])return t[r];for(let i in t)if(i.startsWith(r+"-"))return t[i];return t[n]}function EA(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const Bm=new Map,Vm=new Map;class oy{format(t,n){let r=this.strings.getStringForLocale(t,this.locale);return typeof r=="function"?r(n,this):r}plural(t,n,r="cardinal"){let i=n["="+t];if(i)return typeof i=="function"?i():i;let a=this.locale+":"+r,o=Bm.get(a);o||(o=new Intl.PluralRules(this.locale,{type:r}),Bm.set(a,o));let s=o.select(t);return i=n[s]||n.other,typeof i=="function"?i():i}number(t){let n=Vm.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),Vm.set(this.locale,n)),n.format(t)}select(t,n){let r=t[n]||t.other;return typeof r=="function"?r():r}constructor(t,n){this.locale=t,this.strings=n}}const Om=new WeakMap;function IA(e){let t=Om.get(e);return t||(t=new Ei(e),Om.set(e,t)),t}function _A(e,t){return t&&Ei.getGlobalDictionaryForPackage(t)||IA(e)}function Xo(e,t){let{locale:n}=$n(),r=_A(e,t);return x.useMemo(()=>new oy(n,r),[n,r])}function Tr(e){e=Ov(e??{},$A);let{locale:t}=$n();return x.useMemo(()=>new xo(t,e),[t,e])}function $A(e,t){if(e===t)return!0;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i of n)if(t[i]!==e[i])return!1;return!0}function RA(e,t){let{elementType:n="button",isDisabled:r,onPress:i,onPressStart:a,onPressEnd:o,onPressUp:s,onPressChange:l,preventFocusOnPress:u,allowFocusWhenDisabled:c,onClick:d,href:h,target:f,rel:g,type:m="button"}=e,p;n==="button"?p={type:m,disabled:r}:p={role:"button",tabIndex:r?void 0:0,href:n==="a"&&r?void 0:h,target:n==="a"?f:void 0,type:n==="input"?m:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?g:void 0};let{pressProps:b,isPressed:v}=Gf({onPressStart:a,onPressEnd:o,onPressChange:l,onPress:i,onPressUp:s,isDisabled:r,preventFocusOnPress:u,ref:t}),{focusableProps:y}=vA(e,t);c&&(y.tabIndex=r?-1:y.tabIndex);let w=Xt(y,b,Hf(e,{labelable:!0}));return{isPressed:v,buttonProps:Xt(p,w,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],onClick:C=>{d&&(d(C),console.warn("onClick is deprecated, please use onPress"))}})}}var sy={};sy={dateRange:e=>`${e.startDate} إلى ${e.endDate}`,dateSelected:e=>`${e.date} المحدد`,finishRangeSelectionPrompt:"انقر لإنهاء عملية تحديد نطاق التاريخ",maximumDate:"آخر تاريخ متاح",minimumDate:"أول تاريخ متاح",next:"التالي",previous:"السابق",selectedDateDescription:e=>`تاريخ محدد: ${e.date}`,selectedRangeDescription:e=>`المدى الزمني المحدد: ${e.dateRange}`,startRangeSelectionPrompt:"انقر لبدء عملية تحديد نطاق التاريخ",todayDate:e=>`اليوم، ${e.date}`,todayDateSelected:e=>`اليوم، ${e.date} محدد`};var ly={};ly={dateRange:e=>`${e.startDate} до ${e.endDate}`,dateSelected:e=>`Избрано е ${e.date}`,finishRangeSelectionPrompt:"Натиснете, за да довършите избора на времеви интервал",maximumDate:"Последна налична дата",minimumDate:"Първа налична дата",next:"Напред",previous:"Назад",selectedDateDescription:e=>`Избрана дата: ${e.date}`,selectedRangeDescription:e=>`Избран диапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Натиснете, за да пристъпите към избора на времеви интервал",todayDate:e=>`Днес, ${e.date}`,todayDateSelected:e=>`Днес, ${e.date} са избрани`};var uy={};uy={dateRange:e=>`${e.startDate} až ${e.endDate}`,dateSelected:e=>`Vybráno ${e.date}`,finishRangeSelectionPrompt:"Kliknutím dokončíte výběr rozsahu dat",maximumDate:"Poslední dostupné datum",minimumDate:"První dostupné datum",next:"Další",previous:"Předchozí",selectedDateDescription:e=>`Vybrané datum: ${e.date}`,selectedRangeDescription:e=>`Vybrané období: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknutím zahájíte výběr rozsahu dat",todayDate:e=>`Dnes, ${e.date}`,todayDateSelected:e=>`Dnes, vybráno ${e.date}`};var cy={};cy={dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klik for at fuldføre valg af datoområde",maximumDate:"Sidste ledige dato",minimumDate:"Første ledige dato",next:"Næste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.dateRange}`,startRangeSelectionPrompt:"Klik for at starte valg af datoområde",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`};var dy={};dy={dateRange:e=>`${e.startDate} bis ${e.endDate}`,dateSelected:e=>`${e.date} ausgewählt`,finishRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beenden",maximumDate:"Letztes verfügbares Datum",minimumDate:"Erstes verfügbares Datum",next:"Weiter",previous:"Zurück",selectedDateDescription:e=>`Ausgewähltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgewählter Bereich: ${e.dateRange}`,startRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beginnen",todayDate:e=>`Heute, ${e.date}`,todayDateSelected:e=>`Heute, ${e.date} ausgewählt`};var fy={};fy={dateRange:e=>`${e.startDate} έως ${e.endDate}`,dateSelected:e=>`Επιλέχθηκε ${e.date}`,finishRangeSelectionPrompt:"Κάντε κλικ για να ολοκληρώσετε την επιλογή εύρους ημερομηνιών",maximumDate:"Τελευταία διαθέσιμη ημερομηνία",minimumDate:"Πρώτη διαθέσιμη ημερομηνία",next:"Επόμενο",previous:"Προηγούμενο",selectedDateDescription:e=>`Επιλεγμένη ημερομηνία: ${e.date}`,selectedRangeDescription:e=>`Επιλεγμένο εύρος: ${e.dateRange}`,startRangeSelectionPrompt:"Κάντε κλικ για να ξεκινήσετε την επιλογή εύρους ημερομηνιών",todayDate:e=>`Σήμερα, ${e.date}`,todayDateSelected:e=>`Σήμερα, επιλέχτηκε ${e.date}`};var hy={};hy={previous:"Previous",next:"Next",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.dateRange}`,todayDate:e=>`Today, ${e.date}`,todayDateSelected:e=>`Today, ${e.date} selected`,dateSelected:e=>`${e.date} selected`,startRangeSelectionPrompt:"Click to start selecting date range",finishRangeSelectionPrompt:"Click to finish selecting date range",minimumDate:"First available date",maximumDate:"Last available date",dateRange:e=>`${e.startDate} to ${e.endDate}`};var gy={};gy={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} seleccionado`,finishRangeSelectionPrompt:"Haga clic para terminar de seleccionar rango de fechas",maximumDate:"Última fecha disponible",minimumDate:"Primera fecha disponible",next:"Siguiente",previous:"Anterior",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo seleccionado: ${e.dateRange}`,startRangeSelectionPrompt:"Haga clic para comenzar a seleccionar un rango de fechas",todayDate:e=>`Hoy, ${e.date}`,todayDateSelected:e=>`Hoy, ${e.date} seleccionado`};var my={};my={dateRange:e=>`${e.startDate} kuni ${e.endDate}`,dateSelected:e=>`${e.date} valitud`,finishRangeSelectionPrompt:"Klõpsake kuupäevavahemiku valimise lõpetamiseks",maximumDate:"Viimane saadaolev kuupäev",minimumDate:"Esimene saadaolev kuupäev",next:"Järgmine",previous:"Eelmine",selectedDateDescription:e=>`Valitud kuupäev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.dateRange}`,startRangeSelectionPrompt:"Klõpsake kuupäevavahemiku valimiseks",todayDate:e=>`Täna, ${e.date}`,todayDateSelected:e=>`Täna, ${e.date} valitud`};var py={};py={dateRange:e=>`${e.startDate} – ${e.endDate}`,dateSelected:e=>`${e.date} valittu`,finishRangeSelectionPrompt:"Lopeta päivämääräalueen valinta napsauttamalla tätä.",maximumDate:"Viimeinen varattavissa oleva päivämäärä",minimumDate:"Ensimmäinen varattavissa oleva päivämäärä",next:"Seuraava",previous:"Edellinen",selectedDateDescription:e=>`Valittu päivämäärä: ${e.date}`,selectedRangeDescription:e=>`Valittu aikaväli: ${e.dateRange}`,startRangeSelectionPrompt:"Aloita päivämääräalueen valinta napsauttamalla tätä.",todayDate:e=>`Tänään, ${e.date}`,todayDateSelected:e=>`Tänään, ${e.date} valittu`};var by={};by={dateRange:e=>`${e.startDate} à ${e.endDate}`,dateSelected:e=>`${e.date} sélectionné`,finishRangeSelectionPrompt:"Cliquer pour finir de sélectionner la plage de dates",maximumDate:"Dernière date disponible",minimumDate:"Première date disponible",next:"Suivant",previous:"Précédent",selectedDateDescription:e=>`Date sélectionnée : ${e.date}`,selectedRangeDescription:e=>`Plage sélectionnée : ${e.dateRange}`,startRangeSelectionPrompt:"Cliquer pour commencer à sélectionner la plage de dates",todayDate:e=>`Aujourd'hui, ${e.date}`,todayDateSelected:e=>`Aujourd’hui, ${e.date} sélectionné`};var vy={};vy={dateRange:e=>`${e.startDate} עד ${e.endDate}`,dateSelected:e=>`${e.date} נבחר`,finishRangeSelectionPrompt:"חץ כדי לסיים את בחירת טווח התאריכים",maximumDate:"תאריך פנוי אחרון",minimumDate:"תאריך פנוי ראשון",next:"הבא",previous:"הקודם",selectedDateDescription:e=>`תאריך נבחר: ${e.date}`,selectedRangeDescription:e=>`טווח נבחר: ${e.dateRange}`,startRangeSelectionPrompt:"לחץ כדי להתחיל בבחירת טווח התאריכים",todayDate:e=>`היום, ${e.date}`,todayDateSelected:e=>`היום, ${e.date} נבחר`};var yy={};yy={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} odabran`,finishRangeSelectionPrompt:"Kliknite da dovršite raspon odabranih datuma",maximumDate:"Posljednji raspoloživi datum",minimumDate:"Prvi raspoloživi datum",next:"Sljedeći",previous:"Prethodni",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da započnete raspon odabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, odabran ${e.date}`};var xy={};xy={dateRange:e=>`${e.startDate}–${e.endDate}`,dateSelected:e=>`${e.date} kiválasztva`,finishRangeSelectionPrompt:"Kattintson a dátumtartomány kijelölésének befejezéséhez",maximumDate:"Utolsó elérhető dátum",minimumDate:"Az első elérhető dátum",next:"Következő",previous:"Előző",selectedDateDescription:e=>`Kijelölt dátum: ${e.date}`,selectedRangeDescription:e=>`Kijelölt tartomány: ${e.dateRange}`,startRangeSelectionPrompt:"Kattintson a dátumtartomány kijelölésének indításához",todayDate:e=>`Ma, ${e.date}`,todayDateSelected:e=>`Ma, ${e.date} kijelölve`};var Cy={};Cy={dateRange:e=>`Da ${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selezionata`,finishRangeSelectionPrompt:"Fai clic per completare la selezione dell’intervallo di date",maximumDate:"Ultima data disponibile",minimumDate:"Prima data disponibile",next:"Successivo",previous:"Precedente",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: ${e.dateRange}`,startRangeSelectionPrompt:"Fai clic per selezionare l’intervallo di date",todayDate:e=>`Oggi, ${e.date}`,todayDateSelected:e=>`Oggi, ${e.date} selezionata`};var wy={};wy={dateRange:e=>`${e.startDate} から ${e.endDate}`,dateSelected:e=>`${e.date} を選択`,finishRangeSelectionPrompt:"クリックして日付範囲の選択を終了",maximumDate:"最終利用可能日",minimumDate:"最初の利用可能日",next:"次へ",previous:"前へ",selectedDateDescription:e=>`選択した日付 : ${e.date}`,selectedRangeDescription:e=>`選択範囲 : ${e.dateRange}`,startRangeSelectionPrompt:"クリックして日付範囲の選択を開始",todayDate:e=>`本日、${e.date}`,todayDateSelected:e=>`本日、${e.date} を選択`};var Dy={};Dy={dateRange:e=>`${e.startDate} ~ ${e.endDate}`,dateSelected:e=>`${e.date} 선택됨`,finishRangeSelectionPrompt:"날짜 범위 선택을 완료하려면 클릭하십시오.",maximumDate:"마지막으로 사용 가능한 일자",minimumDate:"처음으로 사용 가능한 일자",next:"다음",previous:"이전",selectedDateDescription:e=>`선택 일자: ${e.date}`,selectedRangeDescription:e=>`선택 범위: ${e.dateRange}`,startRangeSelectionPrompt:"날짜 범위 선택을 시작하려면 클릭하십시오.",todayDate:e=>`오늘, ${e.date}`,todayDateSelected:e=>`오늘, ${e.date} 선택됨`};var Sy={};Sy={dateRange:e=>`Nuo ${e.startDate} iki ${e.endDate}`,dateSelected:e=>`Pasirinkta ${e.date}`,finishRangeSelectionPrompt:"Spustelėkite, kad baigtumėte pasirinkti datų intervalą",maximumDate:"Paskutinė galima data",minimumDate:"Pirmoji galima data",next:"Paskesnis",previous:"Ankstesnis",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: ${e.dateRange}`,startRangeSelectionPrompt:"Spustelėkite, kad pradėtumėte pasirinkti datų intervalą",todayDate:e=>`Šiandien, ${e.date}`,todayDateSelected:e=>`Šiandien, pasirinkta ${e.date}`};var Ey={};Ey={dateRange:e=>`No ${e.startDate} līdz ${e.endDate}`,dateSelected:e=>`Atlasīts: ${e.date}`,finishRangeSelectionPrompt:"Noklikšķiniet, lai pabeigtu datumu diapazona atlasi",maximumDate:"Pēdējais pieejamais datums",minimumDate:"Pirmais pieejamais datums",next:"Tālāk",previous:"Atpakaļ",selectedDateDescription:e=>`Atlasītais datums: ${e.date}`,selectedRangeDescription:e=>`Atlasītais diapazons: ${e.dateRange}`,startRangeSelectionPrompt:"Noklikšķiniet, lai sāktu datumu diapazona atlasi",todayDate:e=>`Šodien, ${e.date}`,todayDateSelected:e=>`Atlasīta šodiena, ${e.date}`};var Iy={};Iy={dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klikk for å fullføre valg av datoområde",maximumDate:"Siste tilgjengelige dato",minimumDate:"Første tilgjengelige dato",next:"Neste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt område: ${e.dateRange}`,startRangeSelectionPrompt:"Klikk for å starte valg av datoområde",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`};var _y={};_y={dateRange:e=>`${e.startDate} tot ${e.endDate}`,dateSelected:e=>`${e.date} geselecteerd`,finishRangeSelectionPrompt:"Klik om de selectie van het datumbereik te voltooien",maximumDate:"Laatste beschikbare datum",minimumDate:"Eerste beschikbare datum",next:"Volgende",previous:"Vorige",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.dateRange}`,startRangeSelectionPrompt:"Klik om het datumbereik te selecteren",todayDate:e=>`Vandaag, ${e.date}`,todayDateSelected:e=>`Vandaag, ${e.date} geselecteerd`};var $y={};$y={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`Wybrano ${e.date}`,finishRangeSelectionPrompt:"Kliknij, aby zakończyć wybór zakresu dat",maximumDate:"Ostatnia dostępna data",minimumDate:"Pierwsza dostępna data",next:"Dalej",previous:"Wstecz",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknij, aby rozpocząć wybór zakresu dat",todayDate:e=>`Dzisiaj, ${e.date}`,todayDateSelected:e=>`Dzisiaj wybrano ${e.date}`};var Ry={};Ry={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para concluir a seleção do intervalo de datas",maximumDate:"Última data disponível",minimumDate:"Primeira data disponível",next:"Próximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para iniciar a seleção do intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`};var Ay={};Ay={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para terminar de selecionar o intervalo de datas",maximumDate:"Última data disponível",minimumDate:"Primeira data disponível",next:"Próximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para começar a selecionar o intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`};var Fy={};Fy={dateRange:e=>`De la ${e.startDate} până la ${e.endDate}`,dateSelected:e=>`${e.date} selectată`,finishRangeSelectionPrompt:"Apăsaţi pentru a finaliza selecţia razei pentru dată",maximumDate:"Ultima dată disponibilă",minimumDate:"Prima dată disponibilă",next:"Următorul",previous:"Înainte",selectedDateDescription:e=>`Dată selectată: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: ${e.dateRange}`,startRangeSelectionPrompt:"Apăsaţi pentru a începe selecţia razei pentru dată",todayDate:e=>`Astăzi, ${e.date}`,todayDateSelected:e=>`Azi, ${e.date} selectată`};var Py={};Py={dateRange:e=>`С ${e.startDate} по ${e.endDate}`,dateSelected:e=>`Выбрано ${e.date}`,finishRangeSelectionPrompt:"Щелкните, чтобы завершить выбор диапазона дат",maximumDate:"Последняя доступная дата",minimumDate:"Первая доступная дата",next:"Далее",previous:"Назад",selectedDateDescription:e=>`Выбранная дата: ${e.date}`,selectedRangeDescription:e=>`Выбранный диапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Щелкните, чтобы начать выбор диапазона дат",todayDate:e=>`Сегодня, ${e.date}`,todayDateSelected:e=>`Сегодня, выбрано ${e.date}`};var Ty={};Ty={dateRange:e=>`Od ${e.startDate} do ${e.endDate}`,dateSelected:e=>`Vybratý dátum ${e.date}`,finishRangeSelectionPrompt:"Kliknutím dokončíte výber rozsahu dátumov",maximumDate:"Posledný dostupný dátum",minimumDate:"Prvý dostupný dátum",next:"Nasledujúce",previous:"Predchádzajúce",selectedDateDescription:e=>`Vybratý dátum: ${e.date}`,selectedRangeDescription:e=>`Vybratý rozsah: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknutím spustíte výber rozsahu dátumov",todayDate:e=>`Dnes ${e.date}`,todayDateSelected:e=>`Vybratý dnešný dátum ${e.date}`};var ky={};ky={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izbrano`,finishRangeSelectionPrompt:"Kliknite za dokončanje izbire datumskega obsega",maximumDate:"Zadnji razpoložljivi datum",minimumDate:"Prvi razpoložljivi datum",next:"Naprej",previous:"Nazaj",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano območje: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite za začetek izbire datumskega obsega",todayDate:e=>`Danes, ${e.date}`,todayDateSelected:e=>`Danes, ${e.date} izbrano`};var My={};My={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izabran`,finishRangeSelectionPrompt:"Kliknite da dovršite opseg izabranih datuma",maximumDate:"Zadnji raspoloživi datum",minimumDate:"Prvi raspoloživi datum",next:"Sledeći",previous:"Prethodni",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani period: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da započnete opseg izabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, izabran ${e.date}`};var By={};By={dateRange:e=>`${e.startDate} till ${e.endDate}`,dateSelected:e=>`${e.date} har valts`,finishRangeSelectionPrompt:"Klicka för att avsluta val av datumintervall",maximumDate:"Sista tillgängliga datum",minimumDate:"Första tillgängliga datum",next:"Nästa",previous:"Föregående",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.dateRange}`,startRangeSelectionPrompt:"Klicka för att välja datumintervall",todayDate:e=>`Idag, ${e.date}`,todayDateSelected:e=>`Idag, ${e.date} har valts`};var Vy={};Vy={dateRange:e=>`${e.startDate} - ${e.endDate}`,dateSelected:e=>`${e.date} seçildi`,finishRangeSelectionPrompt:"Tarih aralığı seçimini tamamlamak için tıklayın",maximumDate:"Son müsait tarih",minimumDate:"İlk müsait tarih",next:"Sonraki",previous:"Önceki",selectedDateDescription:e=>`Seçilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Seçilen Aralık: ${e.dateRange}`,startRangeSelectionPrompt:"Tarih aralığı seçimini başlatmak için tıklayın",todayDate:e=>`Bugün, ${e.date}`,todayDateSelected:e=>`Bugün, ${e.date} seçildi`};var Oy={};Oy={dateRange:e=>`${e.startDate} — ${e.endDate}`,dateSelected:e=>`Вибрано ${e.date}`,finishRangeSelectionPrompt:"Натисніть, щоб завершити вибір діапазону дат",maximumDate:"Остання доступна дата",minimumDate:"Перша доступна дата",next:"Наступний",previous:"Попередній",selectedDateDescription:e=>`Вибрана дата: ${e.date}`,selectedRangeDescription:e=>`Вибраний діапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Натисніть, щоб почати вибір діапазону дат",todayDate:e=>`Сьогодні, ${e.date}`,todayDateSelected:e=>`Сьогодні, вибрано ${e.date}`};var Ny={};Ny={dateRange:e=>`${e.startDate} 至 ${e.endDate}`,dateSelected:e=>`已选择 ${e.date}`,finishRangeSelectionPrompt:"单击以完成选择日期范围",maximumDate:"最后一个可用日期",minimumDate:"第一个可用日期",next:"下一页",previous:"上一页",selectedDateDescription:e=>`选定的日期:${e.date}`,selectedRangeDescription:e=>`选定的范围:${e.dateRange}`,startRangeSelectionPrompt:"单击以开始选择日期范围",todayDate:e=>`今天,即 ${e.date}`,todayDateSelected:e=>`已选择今天,即 ${e.date}`};var Ly={};Ly={dateRange:e=>`${e.startDate} 至 ${e.endDate}`,dateSelected:e=>`已選取 ${e.date}`,finishRangeSelectionPrompt:"按一下以完成選取日期範圍",maximumDate:"最後一個可用日期",minimumDate:"第一個可用日期",next:"下一頁",previous:"上一頁",selectedDateDescription:e=>`選定的日期:${e.date}`,selectedRangeDescription:e=>`選定的範圍:${e.dateRange}`,startRangeSelectionPrompt:"按一下以開始選取日期範圍",todayDate:e=>`今天,${e.date}`,todayDateSelected:e=>`已選取今天,${e.date}`};var Yo={};Yo={"ar-AE":sy,"bg-BG":ly,"cs-CZ":uy,"da-DK":cy,"de-DE":dy,"el-GR":fy,"en-US":hy,"es-ES":gy,"et-EE":my,"fi-FI":py,"fr-FR":by,"he-IL":vy,"hr-HR":yy,"hu-HU":xy,"it-IT":Cy,"ja-JP":wy,"ko-KR":Dy,"lt-LT":Sy,"lv-LV":Ey,"nb-NO":Iy,"nl-NL":_y,"pl-PL":$y,"pt-BR":Ry,"pt-PT":Ay,"ro-RO":Fy,"ru-RU":Py,"sk-SK":Ty,"sl-SI":ky,"sr-SP":My,"sv-SE":By,"tr-TR":Vy,"uk-UA":Oy,"zh-CN":Ny,"zh-TW":Ly};function jy(e){return e&&e.__esModule?e.default:e}const Kf=new WeakMap;function So(e){return(e==null?void 0:e.calendar.identifier)==="gregory"&&e.era==="BC"?"short":void 0}function AA(e){let t=Xo(jy(Yo),"@react-aria/calendar"),n,r;"highlightedRange"in e?{start:n,end:r}=e.highlightedRange||{}:n=r=e.value;let i=Tr({weekday:"long",month:"long",year:"numeric",day:"numeric",era:So(n)||So(r),timeZone:e.timeZone}),a="anchorDate"in e?e.anchorDate:null;return x.useMemo(()=>{if(!a&&n&&r)if(ht(n,r)){let o=i.format(n.toDate(e.timeZone));return t.format("selectedDateDescription",{date:o})}else{let o=bd(i,t,n,r,e.timeZone);return t.format("selectedRangeDescription",{dateRange:o})}return""},[n,r,a,e.timeZone,t,i])}function pd(e,t,n,r){let i=Xo(jy(Yo),"@react-aria/calendar"),a=So(e)||So(t),o=Tr({month:"long",year:"numeric",era:a,calendar:e.calendar.identifier,timeZone:n}),s=Tr({month:"long",year:"numeric",day:"numeric",era:a,calendar:e.calendar.identifier,timeZone:n});return x.useMemo(()=>{if(ht(e,zo(e))){if(ht(t,ed(e)))return o.format(e.toDate(n));if(ht(t,ed(t)))return r?bd(o,i,e,t,n):o.formatRange(e.toDate(n),t.toDate(n))}return r?bd(s,i,e,t,n):s.formatRange(e.toDate(n),t.toDate(n))},[e,t,o,s,i,n,r])}function bd(e,t,n,r,i){let a=e.formatRangeToParts(n.toDate(i),r.toDate(i)),o=-1;for(let u=0;u<a.length;u++){let c=a[u];if(c.source==="shared"&&c.type==="literal")o=u;else if(c.source==="endRange")break}let s="",l="";for(let u=0;u<a.length;u++)u<o?s+=a[u].value:u>o&&(l+=a[u].value);return t.format("dateRange",{startDate:s,endDate:l})}const Hy=7e3;let fc=null;function Nm(e,t="assertive",n=Hy){fc||(fc=new FA),fc.announce(e,t,n)}class FA{createLog(t){let n=document.createElement("div");return n.setAttribute("role","log"),n.setAttribute("aria-live",t),n.setAttribute("aria-relevant","additions"),n}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(t,n="assertive",r=Hy){if(!this.node)return;let i=document.createElement("div");i.textContent=t,n==="assertive"?this.assertiveLog.appendChild(i):this.politeLog.appendChild(i),t!==""&&setTimeout(()=>{i.remove()},r)}clear(t){this.node&&((!t||t==="assertive")&&(this.assertiveLog.innerHTML=""),(!t||t==="polite")&&(this.politeLog.innerHTML=""))}constructor(){this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node)}}function PA(e){return e&&e.__esModule?e.default:e}function Wy(e,t){let n=Xo(PA(Yo),"@react-aria/calendar"),r=Hf(e),i=pd(t.visibleRange.start,t.visibleRange.end,t.timeZone,!1),a=pd(t.visibleRange.start,t.visibleRange.end,t.timeZone,!0);Im(()=>{t.isFocused||Nm(a)},[a]);let o=AA(t);Im(()=>{o&&Nm(o,"polite",4e3)},[o]);let s=sd([!!e.errorMessage,e.isInvalid,e.validationState]);Kf.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:e["aria-labelledby"],errorMessageId:s,selectedDateDescription:o});let[l,u]=x.useState(!1),c=e.isDisabled||t.isNextVisibleRangeInvalid();c&&l&&(u(!1),t.setFocused(!0));let[d,h]=x.useState(!1),f=e.isDisabled||t.isPreviousVisibleRangeInvalid();f&&d&&(h(!1),t.setFocused(!0));let g=zf({id:e.id,"aria-label":[e["aria-label"],a].filter(Boolean).join(", "),"aria-labelledby":e["aria-labelledby"]});return{calendarProps:Xt(r,g,{role:"application","aria-describedby":e["aria-describedby"]||void 0}),nextButtonProps:{onPress:()=>t.focusNextPage(),"aria-label":n.format("next"),isDisabled:c,onFocusChange:u},prevButtonProps:{onPress:()=>t.focusPreviousPage(),"aria-label":n.format("previous"),isDisabled:f,onFocusChange:h},errorMessageProps:{id:s},title:i}}function zy(e,t){return Wy(e,t)}function TA(e,t,n){let r=Wy(e,t),i=x.useRef(!1),a=x.useRef(typeof window<"u"?window:null);return lc(a,"pointerdown",s=>{i.current=s.width===0&&s.height===0}),lc(a,"pointerup",s=>{if(i.current){i.current=!1;return}if(t.setDragging(!1),!t.anchorDate)return;let l=s.target;n.current&&n.current.contains(document.activeElement)&&(!n.current.contains(l)||!l.closest('button, [role="button"]'))&&t.selectFocusedDate()}),r.calendarProps.onBlur=s=>{n.current&&(!s.relatedTarget||!n.current.contains(s.relatedTarget))&&t.anchorDate&&t.selectFocusedDate()},lc(n,"touchmove",s=>{t.isDragging&&s.preventDefault()},{passive:!1,capture:!0}),r}function Gy(e,t){let{startDate:n=t.visibleRange.start,endDate:r=t.visibleRange.end}=e,{direction:i}=$n(),a=f=>{switch(f.key){case"Enter":case" ":f.preventDefault(),t.selectFocusedDate();break;case"PageUp":f.preventDefault(),f.stopPropagation(),t.focusPreviousSection(f.shiftKey);break;case"PageDown":f.preventDefault(),f.stopPropagation(),t.focusNextSection(f.shiftKey);break;case"End":f.preventDefault(),f.stopPropagation(),t.focusSectionEnd();break;case"Home":f.preventDefault(),f.stopPropagation(),t.focusSectionStart();break;case"ArrowLeft":f.preventDefault(),f.stopPropagation(),i==="rtl"?t.focusNextDay():t.focusPreviousDay();break;case"ArrowUp":f.preventDefault(),f.stopPropagation(),t.focusPreviousRow();break;case"ArrowRight":f.preventDefault(),f.stopPropagation(),i==="rtl"?t.focusPreviousDay():t.focusNextDay();break;case"ArrowDown":f.preventDefault(),f.stopPropagation(),t.focusNextRow();break;case"Escape":"setAnchorDate"in t&&(f.preventDefault(),t.setAnchorDate(null));break}},o=pd(n,r,t.timeZone,!0),{ariaLabel:s,ariaLabelledBy:l}=Kf.get(t),u=zf({"aria-label":[s,o].filter(Boolean).join(", "),"aria-labelledby":l}),c=Tr({weekday:e.weekdayStyle||"narrow",timeZone:t.timeZone}),{locale:d}=$n(),h=x.useMemo(()=>{let f=bo(Rf(t.timeZone),d);return[...new Array(7).keys()].map(g=>{let p=f.add({days:g}).toDate(t.timeZone);return c.format(p)})},[d,t.timeZone,c]);return{gridProps:Xt(u,{role:"grid","aria-readonly":t.isReadOnly||null,"aria-disabled":t.isDisabled||null,"aria-multiselectable":"highlightedRange"in t||void 0,onKeyDown:a,onFocus:()=>t.setFocused(!0),onBlur:()=>t.setFocused(!1)}),headerProps:{"aria-hidden":!0},weekDays:h}}function kA(e){return e&&e.__esModule?e.default:e}function MA(e,t,n){let{date:r,isDisabled:i}=e,{errorMessageId:a,selectedDateDescription:o}=Kf.get(t),s=Xo(kA(Yo),"@react-aria/calendar"),l=Tr({weekday:"long",day:"numeric",month:"long",year:"numeric",era:So(r),timeZone:t.timeZone}),u=t.isSelected(r),c=t.isCellFocused(r);i=i||t.isCellDisabled(r);let d=t.isCellUnavailable(r),h=!i&&!d,f=t.isValueInvalid&&("highlightedRange"in t?!t.anchorDate&&t.highlightedRange&&r.compare(t.highlightedRange.start)>=0&&r.compare(t.highlightedRange.end)<=0:t.value&&ht(t.value,r));f&&(u=!0),r=Ov(r,qc);let g=x.useMemo(()=>r.toDate(t.timeZone),[r,t.timeZone]),m=_9(r,t.timeZone),p=x.useMemo(()=>{let $="";return"highlightedRange"in t&&t.value&&!t.anchorDate&&(ht(r,t.value.start)||ht(r,t.value.end))&&($=o+", "),$+=l.format(g),m?$=s.format(u?"todayDateSelected":"todayDate",{date:$}):u&&($=s.format("dateSelected",{date:$})),t.minValue&&ht(r,t.minValue)?$+=", "+s.format("minimumDate"):t.maxValue&&ht(r,t.maxValue)&&($+=", "+s.format("maximumDate")),$},[l,g,s,u,m,r,t,o]),b="";"anchorDate"in t&&c&&!t.isReadOnly&&h&&(t.anchorDate?b=s.format("finishRangeSelectionPrompt"):b=s.format("startRangeSelectionPrompt"));let v=Vv(b),y=x.useRef(!1),w=x.useRef(!1),C=x.useRef(null),{pressProps:E,isPressed:I}=Gf({shouldCancelOnPointerExit:"anchorDate"in t&&!!t.anchorDate,preventFocusOnPress:!0,isDisabled:!h||t.isReadOnly,onPressStart($){if(t.isReadOnly){t.setFocusedDate(r);return}if("highlightedRange"in t&&!t.anchorDate&&($.pointerType==="mouse"||$.pointerType==="touch")){if(t.highlightedRange&&!f){if(ht(r,t.highlightedRange.start)){t.setAnchorDate(t.highlightedRange.end),t.setFocusedDate(r),t.setDragging(!0),w.current=!0;return}else if(ht(r,t.highlightedRange.end)){t.setAnchorDate(t.highlightedRange.start),t.setFocusedDate(r),t.setDragging(!0),w.current=!0;return}}let P=()=>{t.setDragging(!0),C.current=null,t.selectDate(r),t.setFocusedDate(r),y.current=!0};$.pointerType==="touch"?C.current=setTimeout(P,200):P()}},onPressEnd(){w.current=!1,y.current=!1,clearTimeout(C.current),C.current=null},onPress(){!("anchorDate"in t)&&!t.isReadOnly&&(t.selectDate(r),t.setFocusedDate(r))},onPressUp($){if(!t.isReadOnly&&("anchorDate"in t&&C.current&&(t.selectDate(r),t.setFocusedDate(r)),"anchorDate"in t))if(w.current)t.setAnchorDate(r);else if(t.anchorDate&&!y.current)t.selectDate(r),t.setFocusedDate(r);else if($.pointerType==="keyboard"&&!t.anchorDate){t.selectDate(r);let P=r.add({days:1});t.isInvalid(P)&&(P=r.subtract({days:1})),t.isInvalid(P)||t.setFocusedDate(P)}else $.pointerType==="virtual"&&(t.selectDate(r),t.setFocusedDate(r))}}),D=null;i||(D=ht(r,t.focusedDate)?0:-1),x.useEffect(()=>{c&&n.current&&(Sr(n.current),Uv()!=="pointer"&&document.activeElement===n.current&&YR(n.current,{containingElement:zR(n.current)}))},[c,n]);let _=Tr({day:"numeric",timeZone:t.timeZone,calendar:r.calendar.identifier}),F=x.useMemo(()=>_.formatToParts(g).find($=>$.type==="day").value,[_,g]);return{cellProps:{role:"gridcell","aria-disabled":!h||null,"aria-selected":u||null,"aria-invalid":f||null},buttonProps:Xt(E,{onFocus(){i||t.setFocusedDate(r)},tabIndex:D,role:"button","aria-disabled":!h||null,"aria-label":p,"aria-invalid":f||null,"aria-describedby":[f?a:null,v["aria-describedby"]].filter(Boolean).join(" ")||void 0,onPointerEnter($){"highlightDate"in t&&($.pointerType!=="touch"||t.isDragging)&&h&&t.highlightDate(r)},onPointerDown($){"releasePointerCapture"in $.target&&$.target.releasePointerCapture($.pointerId)},onContextMenu($){$.preventDefault()}}),isPressed:I,isFocused:c,isSelected:u,isDisabled:i,isUnavailable:d,isOutsideVisibleRange:r.compare(t.visibleRange.start)<0||r.compare(t.visibleRange.end)>0,isInvalid:f,formattedDate:F}}const pu={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},Zy={...pu,customError:!0,valid:!1},ni={isInvalid:!1,validationDetails:pu,validationErrors:[]},BA=x.createContext({}),kl="__formValidationState"+Date.now();function VA(e){if(e[kl]){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:a}=e[kl];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:a}}return OA(e)}function OA(e){let{isInvalid:t,validationState:n,name:r,value:i,builtinValidation:a,validate:o,validationBehavior:s="aria"}=e;n&&(t||(t=n==="invalid"));let l=t!==void 0?{isInvalid:t,validationErrors:[],validationDetails:Zy}:null,u=x.useMemo(()=>Lm(NA(o,i)),[o,i]);a!=null&&a.validationDetails.valid&&(a=null);let c=x.useContext(BA),d=x.useMemo(()=>r?Array.isArray(r)?r.flatMap(F=>vd(c[F])):vd(c[r]):[],[c,r]),[h,f]=x.useState(c),[g,m]=x.useState(!1);c!==h&&(f(c),m(!1));let p=x.useMemo(()=>Lm(g?[]:d),[g,d]),b=x.useRef(ni),[v,y]=x.useState(ni),w=x.useRef(ni),C=()=>{if(!E)return;I(!1);let F=u||a||b.current;hc(F,w.current)||(w.current=F,y(F))},[E,I]=x.useState(!1);return x.useEffect(C),{realtimeValidation:l||p||u||a||ni,displayValidation:s==="native"?l||p||v:l||p||u||a||v,updateValidation(F){s==="aria"&&!hc(v,F)?y(F):b.current=F},resetValidation(){let F=ni;hc(F,w.current)||(w.current=F,y(F)),s==="native"&&I(!1),m(!0)},commitValidation(){s==="native"&&I(!0),m(!0)}}}function vd(e){return e?Array.isArray(e)?e:[e]:[]}function NA(e,t){if(typeof e=="function"){let n=e(t);if(n&&typeof n!="boolean")return vd(n)}return[]}function Lm(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:Zy}:null}function hc(e,t){return e===t?!0:e&&t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((n,r)=>n===t.validationErrors[r])&&Object.entries(e.validationDetails).every(([n,r])=>t.validationDetails[n]===r)}function Ml(...e){let t=new Set,n=!1,r={...pu};for(let o of e){var i,a;for(let s of o.validationErrors)t.add(s);n||(n=o.isInvalid);for(let s in r)(i=r)[a=s]||(i[a]=o.validationDetails[s])}return r.valid=!n,{isInvalid:n,validationErrors:[...t],validationDetails:r}}function LA(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:a="label"}=e;t=la(t);let o=la(),s={};n?(r=r?`${o} ${r}`:o,s={id:o,htmlFor:a==="label"?t:void 0}):!r&&!i&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let l=zf({id:t,"aria-label":i,"aria-labelledby":r});return{labelProps:s,fieldProps:l}}function jA(e){let{description:t,errorMessage:n,isInvalid:r,validationState:i}=e,{labelProps:a,fieldProps:o}=LA(e),s=sd([!!t,!!n,r,i]),l=sd([!!t,!!n,r,i]);return o=Xt(o,{"aria-describedby":[s,l,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:a,fieldProps:o,descriptionProps:{id:s},errorMessageProps:{id:l}}}var Xy={};Xy={calendar:"التقويم",day:"يوم",dayPeriod:"ص/م",endDate:"تاريخ الانتهاء",era:"العصر",hour:"الساعات",minute:"الدقائق",month:"الشهر",second:"الثواني",selectedDateDescription:e=>`تاريخ محدد: ${e.date}`,selectedRangeDescription:e=>`المدى الزمني المحدد: ${e.startDate} إلى ${e.endDate}`,selectedTimeDescription:e=>`الوقت المحدد: ${e.time}`,startDate:"تاريخ البدء",timeZoneName:"التوقيت",weekday:"اليوم",year:"السنة"};var Yy={};Yy={calendar:"Календар",day:"ден",dayPeriod:"пр.об./сл.об.",endDate:"Крайна дата",era:"ера",hour:"час",minute:"минута",month:"месец",second:"секунда",selectedDateDescription:e=>`Избрана дата: ${e.date}`,selectedRangeDescription:e=>`Избран диапазон: ${e.startDate} до ${e.endDate}`,selectedTimeDescription:e=>`Избрано време: ${e.time}`,startDate:"Начална дата",timeZoneName:"часова зона",weekday:"ден от седмицата",year:"година"};var Uy={};Uy={calendar:"Kalendář",day:"den",dayPeriod:"část dne",endDate:"Konečné datum",era:"letopočet",hour:"hodina",minute:"minuta",month:"měsíc",second:"sekunda",selectedDateDescription:e=>`Vybrané datum: ${e.date}`,selectedRangeDescription:e=>`Vybrané období: ${e.startDate} až ${e.endDate}`,selectedTimeDescription:e=>`Vybraný čas: ${e.time}`,startDate:"Počáteční datum",timeZoneName:"časové pásmo",weekday:"den v týdnu",year:"rok"};var Jy={};Jy={calendar:"Kalender",day:"dag",dayPeriod:"AM/PM",endDate:"Slutdato",era:"æra",hour:"time",minute:"minut",month:"måned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tidspunkt: ${e.time}`,startDate:"Startdato",timeZoneName:"tidszone",weekday:"ugedag",year:"år"};var Ky={};Ky={calendar:"Kalender",day:"Tag",dayPeriod:"Tageshälfte",endDate:"Enddatum",era:"Epoche",hour:"Stunde",minute:"Minute",month:"Monat",second:"Sekunde",selectedDateDescription:e=>`Ausgewähltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgewählter Bereich: ${e.startDate} bis ${e.endDate}`,selectedTimeDescription:e=>`Ausgewählte Zeit: ${e.time}`,startDate:"Anfangsdatum",timeZoneName:"Zeitzone",weekday:"Wochentag",year:"Jahr"};var Qy={};Qy={calendar:"Ημερολόγιο",day:"ημέρα",dayPeriod:"π.μ./μ.μ.",endDate:"Ημερομηνία λήξης",era:"περίοδος",hour:"ώρα",minute:"λεπτό",month:"μήνας",second:"δευτερόλεπτο",selectedDateDescription:e=>`Επιλεγμένη ημερομηνία: ${e.date}`,selectedRangeDescription:e=>`Επιλεγμένο εύρος: ${e.startDate} έως ${e.endDate}`,selectedTimeDescription:e=>`Επιλεγμένη ώρα: ${e.time}`,startDate:"Ημερομηνία έναρξης",timeZoneName:"ζώνη ώρας",weekday:"καθημερινή",year:"έτος"};var qy={};qy={era:"era",year:"year",month:"month",day:"day",hour:"hour",minute:"minute",second:"second",dayPeriod:"AM/PM",calendar:"Calendar",startDate:"Start Date",endDate:"End Date",weekday:"day of the week",timeZoneName:"time zone",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.startDate} to ${e.endDate}`,selectedTimeDescription:e=>`Selected Time: ${e.time}`};var ex={};ex={calendar:"Calendario",day:"día",dayPeriod:"a. m./p. m.",endDate:"Fecha final",era:"era",hour:"hora",minute:"minuto",month:"mes",second:"segundo",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Rango seleccionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora seleccionada: ${e.time}`,startDate:"Fecha de inicio",timeZoneName:"zona horaria",weekday:"día de la semana",year:"año"};var tx={};tx={calendar:"Kalender",day:"päev",dayPeriod:"enne/pärast lõunat",endDate:"Lõppkuupäev",era:"ajastu",hour:"tund",minute:"minut",month:"kuu",second:"sekund",selectedDateDescription:e=>`Valitud kuupäev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.startDate} kuni ${e.endDate}`,selectedTimeDescription:e=>`Valitud aeg: ${e.time}`,startDate:"Alguskuupäev",timeZoneName:"ajavöönd",weekday:"nädalapäev",year:"aasta"};var nx={};nx={calendar:"Kalenteri",day:"päivä",dayPeriod:"vuorokaudenaika",endDate:"Päättymispäivä",era:"aikakausi",hour:"tunti",minute:"minuutti",month:"kuukausi",second:"sekunti",selectedDateDescription:e=>`Valittu päivämäärä: ${e.date}`,selectedRangeDescription:e=>`Valittu aikaväli: ${e.startDate} – ${e.endDate}`,selectedTimeDescription:e=>`Valittu aika: ${e.time}`,startDate:"Alkamispäivä",timeZoneName:"aikavyöhyke",weekday:"viikonpäivä",year:"vuosi"};var rx={};rx={calendar:"Calendrier",day:"jour",dayPeriod:"cadran",endDate:"Date de fin",era:"ère",hour:"heure",minute:"minute",month:"mois",second:"seconde",selectedDateDescription:e=>`Date sélectionnée : ${e.date}`,selectedRangeDescription:e=>`Plage sélectionnée : ${e.startDate} au ${e.endDate}`,selectedTimeDescription:e=>`Heure choisie : ${e.time}`,startDate:"Date de début",timeZoneName:"fuseau horaire",weekday:"jour de la semaine",year:"année"};var ix={};ix={calendar:"לוח שנה",day:"יום",dayPeriod:"לפנה״צ/אחה״צ",endDate:"תאריך סיום",era:"תקופה",hour:"שעה",minute:"דקה",month:"חודש",second:"שנייה",selectedDateDescription:e=>`תאריך נבחר: ${e.date}`,selectedRangeDescription:e=>`טווח נבחר: ${e.startDate} עד ${e.endDate}`,selectedTimeDescription:e=>`זמן נבחר: ${e.time}`,startDate:"תאריך התחלה",timeZoneName:"אזור זמן",weekday:"יום בשבוע",year:"שנה"};var ax={};ax={calendar:"Kalendar",day:"dan",dayPeriod:"AM/PM",endDate:"Datum završetka",era:"era",hour:"sat",minute:"minuta",month:"mjesec",second:"sekunda",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Odabrano vrijeme: ${e.time}`,startDate:"Datum početka",timeZoneName:"vremenska zona",weekday:"dan u tjednu",year:"godina"};var ox={};ox={calendar:"Naptár",day:"nap",dayPeriod:"napszak",endDate:"Befejező dátum",era:"éra",hour:"óra",minute:"perc",month:"hónap",second:"másodperc",selectedDateDescription:e=>`Kijelölt dátum: ${e.date}`,selectedRangeDescription:e=>`Kijelölt tartomány: ${e.startDate}–${e.endDate}`,selectedTimeDescription:e=>`Kijelölt idő: ${e.time}`,startDate:"Kezdő dátum",timeZoneName:"időzóna",weekday:"hét napja",year:"év"};var sx={};sx={calendar:"Calendario",day:"giorno",dayPeriod:"AM/PM",endDate:"Data finale",era:"era",hour:"ora",minute:"minuto",month:"mese",second:"secondo",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: da ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Ora selezionata: ${e.time}`,startDate:"Data iniziale",timeZoneName:"fuso orario",weekday:"giorno della settimana",year:"anno"};var lx={};lx={calendar:"カレンダー",day:"日",dayPeriod:"午前/午後",endDate:"終了日",era:"時代",hour:"時",minute:"分",month:"月",second:"秒",selectedDateDescription:e=>`選択した日付 : ${e.date}`,selectedRangeDescription:e=>`選択範囲 : ${e.startDate} から ${e.endDate}`,selectedTimeDescription:e=>`選択した時間 : ${e.time}`,startDate:"開始日",timeZoneName:"タイムゾーン",weekday:"曜日",year:"年"};var ux={};ux={calendar:"달력",day:"일",dayPeriod:"오전/오후",endDate:"종료일",era:"연호",hour:"시",minute:"분",month:"월",second:"초",selectedDateDescription:e=>`선택 일자: ${e.date}`,selectedRangeDescription:e=>`선택 범위: ${e.startDate} ~ ${e.endDate}`,selectedTimeDescription:e=>`선택 시간: ${e.time}`,startDate:"시작일",timeZoneName:"시간대",weekday:"요일",year:"년"};var cx={};cx={calendar:"Kalendorius",day:"diena",dayPeriod:"iki pietų / po pietų",endDate:"Pabaigos data",era:"era",hour:"valanda",minute:"minutė",month:"mėnuo",second:"sekundė",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: nuo ${e.startDate} iki ${e.endDate}`,selectedTimeDescription:e=>`Pasirinktas laikas: ${e.time}`,startDate:"Pradžios data",timeZoneName:"laiko juosta",weekday:"savaitės diena",year:"metai"};var dx={};dx={calendar:"Kalendārs",day:"diena",dayPeriod:"priekšpusdienā/pēcpusdienā",endDate:"Beigu datums",era:"ēra",hour:"stundas",minute:"minūtes",month:"mēnesis",second:"sekundes",selectedDateDescription:e=>`Atlasītais datums: ${e.date}`,selectedRangeDescription:e=>`Atlasītais diapazons: no ${e.startDate} līdz ${e.endDate}`,selectedTimeDescription:e=>`Atlasītais laiks: ${e.time}`,startDate:"Sākuma datums",timeZoneName:"laika josla",weekday:"nedēļas diena",year:"gads"};var fx={};fx={calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Sluttdato",era:"tidsalder",hour:"time",minute:"minutt",month:"måned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt område: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tid: ${e.time}`,startDate:"Startdato",timeZoneName:"tidssone",weekday:"ukedag",year:"år"};var hx={};hx={calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Einddatum",era:"tijdperk",hour:"uur",minute:"minuut",month:"maand",second:"seconde",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.startDate} tot ${e.endDate}`,selectedTimeDescription:e=>`Geselecteerde tijd: ${e.time}`,startDate:"Startdatum",timeZoneName:"tijdzone",weekday:"dag van de week",year:"jaar"};var gx={};gx={calendar:"Kalendarz",day:"dzień",dayPeriod:"rano / po południu / wieczorem",endDate:"Data końcowa",era:"era",hour:"godzina",minute:"minuta",month:"miesiąc",second:"sekunda",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Wybrany czas: ${e.time}`,startDate:"Data początkowa",timeZoneName:"strefa czasowa",weekday:"dzień tygodnia",year:"rok"};var mx={};mx={calendar:"Calendário",day:"dia",dayPeriod:"AM/PM",endDate:"Data final",era:"era",hour:"hora",minute:"minuto",month:"mês",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data inicial",timeZoneName:"fuso horário",weekday:"dia da semana",year:"ano"};var px={};px={calendar:"Calendário",day:"dia",dayPeriod:"am/pm",endDate:"Data de Término",era:"era",hour:"hora",minute:"minuto",month:"mês",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data de Início",timeZoneName:"fuso horário",weekday:"dia da semana",year:"ano"};var bx={};bx={calendar:"Calendar",day:"zi",dayPeriod:"a.m/p.m.",endDate:"Dată final",era:"eră",hour:"oră",minute:"minut",month:"lună",second:"secundă",selectedDateDescription:e=>`Dată selectată: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: de la ${e.startDate} până la ${e.endDate}`,selectedTimeDescription:e=>`Ora selectată: ${e.time}`,startDate:"Dată început",timeZoneName:"fus orar",weekday:"ziua din săptămână",year:"an"};var vx={};vx={calendar:"Календарь",day:"день",dayPeriod:"AM/PM",endDate:"Дата окончания",era:"эра",hour:"час",minute:"минута",month:"месяц",second:"секунда",selectedDateDescription:e=>`Выбранная дата: ${e.date}`,selectedRangeDescription:e=>`Выбранный диапазон: с ${e.startDate} по ${e.endDate}`,selectedTimeDescription:e=>`Выбранное время: ${e.time}`,startDate:"Дата начала",timeZoneName:"часовой пояс",weekday:"день недели",year:"год"};var yx={};yx={calendar:"Kalendár",day:"deň",dayPeriod:"AM/PM",endDate:"Dátum ukončenia",era:"letopočet",hour:"hodina",minute:"minúta",month:"mesiac",second:"sekunda",selectedDateDescription:e=>`Vybratý dátum: ${e.date}`,selectedRangeDescription:e=>`Vybratý rozsah: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Vybratý čas: ${e.time}`,startDate:"Dátum začatia",timeZoneName:"časové pásmo",weekday:"deň týždňa",year:"rok"};var xx={};xx={calendar:"Koledar",day:"dan",dayPeriod:"dop/pop",endDate:"Datum konca",era:"doba",hour:"ura",minute:"minuta",month:"mesec",second:"sekunda",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano območje: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izbrani čas: ${e.time}`,startDate:"Datum začetka",timeZoneName:"časovni pas",weekday:"dan v tednu",year:"leto"};var Cx={};Cx={calendar:"Kalendar",day:"дан",dayPeriod:"пре подне/по подне",endDate:"Datum završetka",era:"ера",hour:"сат",minute:"минут",month:"месец",second:"секунд",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani opseg: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izabrano vreme: ${e.time}`,startDate:"Datum početka",timeZoneName:"временска зона",weekday:"дан у недељи",year:"година"};var wx={};wx={calendar:"Kalender",day:"dag",dayPeriod:"fm/em",endDate:"Slutdatum",era:"era",hour:"timme",minute:"minut",month:"månad",second:"sekund",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.startDate} till ${e.endDate}`,selectedTimeDescription:e=>`Vald tid: ${e.time}`,startDate:"Startdatum",timeZoneName:"tidszon",weekday:"veckodag",year:"år"};var Dx={};Dx={calendar:"Takvim",day:"gün",dayPeriod:"ÖÖ/ÖS",endDate:"Bitiş Tarihi",era:"çağ",hour:"saat",minute:"dakika",month:"ay",second:"saniye",selectedDateDescription:e=>`Seçilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Seçilen Aralık: ${e.startDate} - ${e.endDate}`,selectedTimeDescription:e=>`Seçilen Zaman: ${e.time}`,startDate:"Başlangıç Tarihi",timeZoneName:"saat dilimi",weekday:"haftanın günü",year:"yıl"};var Sx={};Sx={calendar:"Календар",day:"день",dayPeriod:"дп/пп",endDate:"Дата завершення",era:"ера",hour:"година",minute:"хвилина",month:"місяць",second:"секунда",selectedDateDescription:e=>`Вибрана дата: ${e.date}`,selectedRangeDescription:e=>`Вибраний діапазон: ${e.startDate} — ${e.endDate}`,selectedTimeDescription:e=>`Вибраний час: ${e.time}`,startDate:"Дата початку",timeZoneName:"часовий пояс",weekday:"день тижня",year:"рік"};var Ex={};Ex={calendar:"日历",day:"日",dayPeriod:"上午/下午",endDate:"结束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`选定的日期:${e.date}`,selectedRangeDescription:e=>`选定的范围:${e.startDate} 至 ${e.endDate}`,selectedTimeDescription:e=>`选定的时间:${e.time}`,startDate:"开始日期",timeZoneName:"时区",weekday:"工作日",year:"年"};var Ix={};Ix={calendar:"日曆",day:"日",dayPeriod:"上午/下午",endDate:"結束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`選定的日期:${e.date}`,selectedRangeDescription:e=>`選定的範圍:${e.startDate} 至 ${e.endDate}`,selectedTimeDescription:e=>`選定的時間:${e.time}`,startDate:"開始日期",timeZoneName:"时区",weekday:"工作日",year:"年"};var _x={};_x={"ar-AE":Xy,"bg-BG":Yy,"cs-CZ":Uy,"da-DK":Jy,"de-DE":Ky,"el-GR":Qy,"en-US":qy,"es-ES":ex,"et-EE":tx,"fi-FI":nx,"fr-FR":rx,"he-IL":ix,"hr-HR":ax,"hu-HU":ox,"it-IT":sx,"ja-JP":lx,"ko-KR":ux,"lt-LT":cx,"lv-LV":dx,"nb-NO":fx,"nl-NL":hx,"pl-PL":gx,"pt-BR":mx,"pt-PT":px,"ro-RO":bx,"ru-RU":vx,"sk-SK":yx,"sl-SI":xx,"sr-SP":Cx,"sv-SE":wx,"tr-TR":Dx,"uk-UA":Sx,"zh-CN":Ex,"zh-TW":Ix};function HA(e,t,n){let{direction:r}=$n(),i=x.useMemo(()=>ey(t),[t]),a=l=>{if(l.currentTarget.contains(l.target)&&(l.altKey&&(l.key==="ArrowDown"||l.key==="ArrowUp")&&"setOpen"in e&&(l.preventDefault(),l.stopPropagation(),e.setOpen(!0)),!n))switch(l.key){case"ArrowLeft":l.preventDefault(),l.stopPropagation(),r==="rtl"?i.focusNext():i.focusPrevious();break;case"ArrowRight":l.preventDefault(),l.stopPropagation(),r==="rtl"?i.focusPrevious():i.focusNext();break}},o=()=>{var l;let u=(l=window.event)===null||l===void 0?void 0:l.target,c=Ta(t.current,{tabbable:!0});if(u&&(c.currentNode=u,u=c.previousNode()),!u){let d;do d=c.lastChild(),d&&(u=d);while(d)}for(;u!=null&&u.hasAttribute("data-placeholder");){let d=c.previousNode();if(d&&d.hasAttribute("data-placeholder"))u=d;else break}u&&u.focus()},{pressProps:s}=Gf({preventFocusOnPress:!0,allowTextSelectionOnPress:!0,onPressStart(l){l.pointerType==="mouse"&&o()},onPress(l){l.pointerType!=="mouse"&&o()}});return Xt(s,{onKeyDown:a})}const WA="__role_"+Date.now(),zA="__focusManager_"+Date.now();function GA(e){return e&&e.__esModule?e.default:e}function ZA(e,t,n){var r,i;let a=Xo(GA(_x),"@react-aria/datepicker"),{isInvalid:o,validationErrors:s,validationDetails:l}=t.displayValidation,{labelProps:u,fieldProps:c,descriptionProps:d,errorMessageProps:h}=jA({...e,labelElementType:"span",isInvalid:o,errorMessage:e.errorMessage||s}),f=c["aria-labelledby"]||c.id,{locale:g}=$n(),m=t.formatValue(g,{month:"long"}),p=m?a.format("selectedRangeDescription",{startDate:m.start,endDate:m.end}):"",b=Vv(p),v={"aria-label":a.format("startDate"),"aria-labelledby":f},y={"aria-label":a.format("endDate"),"aria-labelledby":f},w=la(),C=la(),E=HA(t,n),I=[b["aria-describedby"],c["aria-describedby"]].filter(Boolean).join(" ")||void 0,D=x.useMemo(()=>ey(n,{accept:A=>A.id!==w}),[n,w]),_={[zA]:D,[WA]:"presentation","aria-describedby":I,placeholderValue:e.placeholderValue,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,granularity:e.granularity,shouldForceLeadingZeros:e.shouldForceLeadingZeros,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isRequired:e.isRequired,validationBehavior:e.validationBehavior},F=Hf(e),{focusWithinProps:$}=Jv({...e,isDisabled:t.isOpen,onBlurWithin:e.onBlur,onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange}),P=x.useRef(ni),k=x.useRef(ni);return{groupProps:Xt(F,E,c,b,$,{role:"group","aria-disabled":e.isDisabled||null,"aria-describedby":I,onKeyDown(A){t.isOpen||e.onKeyDown&&e.onKeyDown(A)},onKeyUp(A){t.isOpen||e.onKeyUp&&e.onKeyUp(A)}}),labelProps:{...u,onClick:()=>{D.focusFirst()}},buttonProps:{...b,id:w,"aria-haspopup":"dialog","aria-label":a.format("calendar"),"aria-labelledby":`${w} ${f}`,"aria-describedby":I,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:C,"aria-labelledby":`${w} ${f}`},startFieldProps:{...v,..._,value:(r=t.value)===null||r===void 0?void 0:r.start,onChange:A=>t.setDateTime("start",A),autoFocus:e.autoFocus,name:e.startName,[kl]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(A){P.current=A,t.updateValidation(Ml(A,k.current))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},endFieldProps:{...y,..._,value:(i=t.value)===null||i===void 0?void 0:i.end,onChange:A=>t.setDateTime("end",A),name:e.endName,[kl]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(A){k.current=A,t.updateValidation(Ml(P.current,A))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},descriptionProps:d,errorMessageProps:h,calendarProps:{autoFocus:!0,value:t.dateRange,onChange:t.setDateRange,minValue:e.minValue,maxValue:e.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isDateUnavailable:e.isDateUnavailable,allowsNonContiguousRanges:e.allowsNonContiguousRanges,defaultFocusedValue:t.dateRange?void 0:e.placeholderValue,isInvalid:t.isInvalid,errorMessage:typeof e.errorMessage=="function"?e.errorMessage(t.displayValidation):e.errorMessage||t.displayValidation.validationErrors.join(" ")},isInvalid:o,validationErrors:s,validationDetails:l}}function ea(e,t,n){return t!=null&&e.compare(t)<0||n!=null&&e.compare(n)>0}function yd(e,t,n,r,i){let a={};for(let s in t)a[s]=Math.floor(t[s]/2),a[s]>0&&t[s]%2===0&&a[s]--;let o=oi(e,t,n).subtract(a);return Eo(e,o,t,n,r,i)}function oi(e,t,n,r,i){let a=e;return t.years?a=R9(e):t.months?a=zo(e):t.weeks&&(a=bo(e,n)),Eo(e,a,t,n,r,i)}function xd(e,t,n,r,i){let a={...t};t.days?a.days--:t.weeks?a.weeks--:t.months?a.months--:t.years&&a.years--;let o=oi(e,t,n).subtract(a);return Eo(e,o,t,n,r,i)}function Eo(e,t,n,r,i,a){return i&&e.compare(i)>=0&&(t=Ff(t,oi(on(i),n,r))),a&&e.compare(a)<=0&&(t=Af(t,xd(on(a),n,r))),t}function vr(e,t,n){return t&&(e=Ff(e,on(t))),n&&(e=Af(e,on(n))),e}function $x(e,t,n){if(!n)return e;for(;e.compare(t)>=0&&n(e);)e=e.subtract({days:1});if(e.compare(t)>=0)return e}function Rx(e){let t=x.useMemo(()=>new xo(e.locale),[e.locale]),n=x.useMemo(()=>t.resolvedOptions(),[t]),{locale:r,createCalendar:i,visibleDuration:a={months:1},minValue:o,maxValue:s,selectionAlignment:l,isDateUnavailable:u,pageBehavior:c="visible"}=e,d=x.useMemo(()=>i(n.calendar),[i,n.calendar]),[h,f]=Do(e.value,e.defaultValue,e.onChange),g=x.useMemo(()=>h?bt(on(h),d):null,[h,d]),m=x.useMemo(()=>h&&"timeZone"in h?h.timeZone:n.timeZone,[h,n.timeZone]),p=x.useMemo(()=>e.focusedValue?vr(bt(on(e.focusedValue),d),o,s):void 0,[e.focusedValue,d,o,s]),b=x.useMemo(()=>vr(e.defaultFocusedValue?bt(on(e.defaultFocusedValue),d):g||bt(Rf(m),d),o,s),[e.defaultFocusedValue,g,m,d,o,s]),[v,y]=Do(p,b,e.onFocusChange),[w,C]=x.useState(()=>{switch(l){case"start":return oi(v,a,r,o,s);case"end":return xd(v,a,r,o,s);case"center":default:return yd(v,a,r,o,s)}}),[E,I]=x.useState(e.autoFocus||!1),D=x.useMemo(()=>{let R={...a};return R.days?R.days--:R.days=-1,w.add(R)},[w,a]),[_,F]=x.useState(d.identifier);if(d.identifier!==_){let R=bt(v,d);C(yd(R,a,r,o,s)),y(R),F(d.identifier)}ea(v,o,s)?y(vr(v,o,s)):v.compare(w)<0?C(xd(v,a,r,o,s)):v.compare(D)>0&&C(oi(v,a,r,o,s));function $(R){R=vr(R,o,s),y(R)}function P(R){if(!e.isDisabled&&!e.isReadOnly){if(R===null){f(null);return}if(R=vr(R,o,s),R=$x(R,w,u),!R)return;R=bt(R,(h==null?void 0:h.calendar)||new sn),h&&"hour"in h?f(h.set(R)):f(R)}}let k=x.useMemo(()=>g?u&&u(g)?!0:ea(g,o,s):!1,[g,u,o,s]),A=e.isInvalid||e.validationState==="invalid"||k,B=A?"invalid":null,T=x.useMemo(()=>c==="visible"?a:gc(a),[c,a]);return{isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,value:g,setValue:P,visibleRange:{start:w,end:D},minValue:o,maxValue:s,focusedDate:v,timeZone:m,validationState:B,isValueInvalid:A,setFocusedDate(R){$(R),I(!0)},focusNextDay(){$(v.add({days:1}))},focusPreviousDay(){$(v.subtract({days:1}))},focusNextRow(){a.days?this.focusNextPage():(a.weeks||a.months||a.years)&&$(v.add({weeks:1}))},focusPreviousRow(){a.days?this.focusPreviousPage():(a.weeks||a.months||a.years)&&$(v.subtract({weeks:1}))},focusNextPage(){let R=w.add(T);y(vr(v.add(T),o,s)),C(oi(Eo(v,R,T,r,o,s),T,r))},focusPreviousPage(){let R=w.subtract(T);y(vr(v.subtract(T),o,s)),C(oi(Eo(v,R,T,r,o,s),T,r))},focusSectionStart(){a.days?$(w):a.weeks?$(bo(v,r)):(a.months||a.years)&&$(zo(v))},focusSectionEnd(){a.days?$(D):a.weeks?$(A9(v,r)):(a.months||a.years)&&$(ed(v))},focusNextSection(R){if(!R&&!a.days){$(v.add(gc(a)));return}a.days?this.focusNextPage():a.weeks?$(v.add({months:1})):(a.months||a.years)&&$(v.add({years:1}))},focusPreviousSection(R){if(!R&&!a.days){$(v.subtract(gc(a)));return}a.days?this.focusPreviousPage():a.weeks?$(v.subtract({months:1})):(a.months||a.years)&&$(v.subtract({years:1}))},selectFocusedDate(){P(v)},selectDate(R){P(R)},isFocused:E,setFocused:I,isInvalid(R){return ea(R,o,s)},isSelected(R){return g!=null&&ht(R,g)&&!this.isCellDisabled(R)&&!this.isCellUnavailable(R)},isCellFocused(R){return E&&v&&ht(R,v)},isCellDisabled(R){return e.isDisabled||R.compare(w)<0||R.compare(D)>0||this.isInvalid(R,o,s)},isCellUnavailable(R){return e.isDateUnavailable&&e.isDateUnavailable(R)},isPreviousVisibleRangeInvalid(){let R=w.subtract({days:1});return ht(R,w)||this.isInvalid(R,o,s)},isNextVisibleRangeInvalid(){let R=D.add({days:1});return ht(R,D)||this.isInvalid(R,o,s)},getDatesInWeek(R,O=w){let H=O.add({weeks:R}),L=[];H=bo(H,r);let Z=hu(H,r);for(let V=0;V<Z;V++)L.push(null);for(;L.length<7;){L.push(H);let V=H.add({days:1});if(ht(H,V))break;H=V}for(;L.length<7;)L.push(null);return L}}}function gc(e){let t={...e};for(let n in e)t[n]=1;return t}function XA(e){let{value:t,defaultValue:n,onChange:r,createCalendar:i,locale:a,visibleDuration:o={months:1},minValue:s,maxValue:l,...u}=e,[c,d]=Do(t,n||null,r),[h,f]=x.useState(null),g="center";if(c&&c.start&&c.end){let O=yd(on(c.start),o,a,s,l).add(o).subtract({days:1});c.end.compare(O)>0&&(g="start")}let m=x.useRef(null),[p,b]=x.useState(null),v=x.useMemo(()=>Ff(s,p==null?void 0:p.start),[s,p]),y=x.useMemo(()=>Af(l,p==null?void 0:p.end),[l,p]),w=Rx({...u,value:c&&c.start,createCalendar:i,locale:a,visibleDuration:o,minValue:v,maxValue:y,selectionAlignment:g}),C=R=>{R&&e.isDateUnavailable&&!e.allowsNonContiguousRanges?(m.current={start:Hm(R,w,-1),end:Hm(R,w,1)},b(m.current)):(m.current=null,b(null))},[E,I]=x.useState(w.visibleRange);(!qc(w.visibleRange.start,E.start)||!qc(w.visibleRange.end,E.end))&&(C(h),I(w.visibleRange));let D=R=>{R?(f(R),C(R)):(f(null),C(null))},_=h?mc(h,w.focusedDate):c&&mc(c.start,c.end),F=R=>{if(!e.isReadOnly&&(R=vr(R,v,y),R=$x(R,w.visibleRange.start,e.isDateUnavailable),!!R))if(!h)D(R);else{let O=mc(h,R);d({start:jm(O.start,c==null?void 0:c.start),end:jm(O.end,c==null?void 0:c.end)}),D(null)}},[$,P]=x.useState(!1),{isDateUnavailable:k}=e,A=x.useMemo(()=>!c||h?!1:k&&(k(c.start)||k(c.end))?!0:ea(c.start,s,l)||ea(c.end,s,l),[k,c,h,s,l]),B=e.isInvalid||e.validationState==="invalid"||A;return{...w,value:c,setValue:d,anchorDate:h,setAnchorDate:D,highlightedRange:_,validationState:B?"invalid":null,isValueInvalid:B,selectFocusedDate(){F(w.focusedDate)},selectDate:F,highlightDate(R){h&&w.setFocusedDate(R)},isSelected(R){return _&&R.compare(_.start)>=0&&R.compare(_.end)<=0&&!w.isCellDisabled(R)&&!w.isCellUnavailable(R)},isInvalid(R){var O,H;return w.isInvalid(R)||ea(R,(O=m.current)===null||O===void 0?void 0:O.start,(H=m.current)===null||H===void 0?void 0:H.end)},isDragging:$,setDragging:P}}function mc(e,t){return!e||!t?null:(t.compare(e)<0&&([e,t]=[t,e]),{start:on(e),end:on(t)})}function jm(e,t){return e=bt(e,(t==null?void 0:t.calendar)||new sn),t&&"hour"in t?t.set(e):e}function Hm(e,t,n){let r=e.add({days:n});for(;(n<0?r.compare(t.visibleRange.start)>=0:r.compare(t.visibleRange.end)<=0)&&!t.isCellUnavailable(r);)r=r.add({days:n});return t.isCellUnavailable(r)?r.add({days:-n}):null}function YA(e){let[t,n]=Do(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const r=x.useCallback(()=>{n(!0)},[n]),i=x.useCallback(()=>{n(!1)},[n]),a=x.useCallback(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:r,close:i,toggle:a}}var Ax={};Ax={rangeOverflow:e=>`يجب أن تكون القيمة ${e.maxValue} أو قبل ذلك.`,rangeReversed:"تاريخ البدء يجب أن يكون قبل تاريخ الانتهاء.",rangeUnderflow:e=>`يجب أن تكون القيمة ${e.minValue} أو بعد ذلك.`,unavailableDate:"البيانات المحددة غير متاحة."};var Fx={};Fx={rangeOverflow:e=>`Стойността трябва да е ${e.maxValue} или по-ранна.`,rangeReversed:"Началната дата трябва да е преди крайната.",rangeUnderflow:e=>`Стойността трябва да е ${e.minValue} или по-късно.`,unavailableDate:"Избраната дата не е налична."};var Px={};Px={rangeOverflow:e=>`Hodnota musí být ${e.maxValue} nebo dřívější.`,rangeReversed:"Datum zahájení musí předcházet datu ukončení.",rangeUnderflow:e=>`Hodnota musí být ${e.minValue} nebo pozdější.`,unavailableDate:"Vybrané datum není k dispozici."};var Tx={};Tx={rangeOverflow:e=>`Værdien skal være ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen skal være før slutdatoen.",rangeUnderflow:e=>`Værdien skal være ${e.minValue} eller nyere.`,unavailableDate:"Den valgte dato er ikke tilgængelig."};var kx={};kx={rangeOverflow:e=>`Der Wert muss ${e.maxValue} oder früher sein.`,rangeReversed:"Das Anfangsdatum muss vor dem Enddatum liegen.",rangeUnderflow:e=>`Der Wert muss ${e.minValue} oder später sein.`,unavailableDate:"Das ausgewählte Datum ist nicht verfügbar."};var Mx={};Mx={rangeOverflow:e=>`Η τιμή πρέπει να είναι ${e.maxValue} ή παλαιότερη.`,rangeReversed:"Η ημερομηνία έναρξης πρέπει να είναι πριν από την ημερομηνία λήξης.",rangeUnderflow:e=>`Η τιμή πρέπει να είναι ${e.minValue} ή μεταγενέστερη.`,unavailableDate:"Η επιλεγμένη ημερομηνία δεν είναι διαθέσιμη."};var Bx={};Bx={rangeUnderflow:e=>`Value must be ${e.minValue} or later.`,rangeOverflow:e=>`Value must be ${e.maxValue} or earlier.`,rangeReversed:"Start date must be before end date.",unavailableDate:"Selected date unavailable."};var Vx={};Vx={rangeOverflow:e=>`El valor debe ser ${e.maxValue} o anterior.`,rangeReversed:"La fecha de inicio debe ser anterior a la fecha de finalización.",rangeUnderflow:e=>`El valor debe ser ${e.minValue} o posterior.`,unavailableDate:"Fecha seleccionada no disponible."};var Ox={};Ox={rangeOverflow:e=>`Väärtus peab olema ${e.maxValue} või varasem.`,rangeReversed:"Alguskuupäev peab olema enne lõppkuupäeva.",rangeUnderflow:e=>`Väärtus peab olema ${e.minValue} või hilisem.`,unavailableDate:"Valitud kuupäev pole saadaval."};var Nx={};Nx={rangeOverflow:e=>`Arvon on oltava ${e.maxValue} tai sitä aikaisempi.`,rangeReversed:"Aloituspäivän on oltava ennen lopetuspäivää.",rangeUnderflow:e=>`Arvon on oltava ${e.minValue} tai sitä myöhäisempi.`,unavailableDate:"Valittu päivämäärä ei ole käytettävissä."};var Lx={};Lx={rangeOverflow:e=>`La valeur doit être ${e.maxValue} ou antérieure.`,rangeReversed:"La date de début doit être antérieure à la date de fin.",rangeUnderflow:e=>`La valeur doit être ${e.minValue} ou ultérieure.`,unavailableDate:"La date sélectionnée n’est pas disponible."};var jx={};jx={rangeOverflow:e=>`הערך חייב להיות ${e.maxValue} או מוקדם יותר.`,rangeReversed:"תאריך ההתחלה חייב להיות לפני תאריך הסיום.",rangeUnderflow:e=>`הערך חייב להיות ${e.minValue} או מאוחר יותר.`,unavailableDate:"התאריך הנבחר אינו זמין."};var Hx={};Hx={rangeOverflow:e=>`Vrijednost mora biti ${e.maxValue} ili ranije.`,rangeReversed:"Datum početka mora biti prije datuma završetka.",rangeUnderflow:e=>`Vrijednost mora biti ${e.minValue} ili kasnije.`,unavailableDate:"Odabrani datum nije dostupan."};var Wx={};Wx={rangeOverflow:e=>`Az értéknek ${e.maxValue} vagy korábbinak kell lennie.`,rangeReversed:"A kezdő dátumnak a befejező dátumnál korábbinak kell lennie.",rangeUnderflow:e=>`Az értéknek ${e.minValue} vagy későbbinek kell lennie.`,unavailableDate:"A kiválasztott dátum nem érhető el."};var zx={};zx={rangeOverflow:e=>`Il valore deve essere ${e.maxValue} o precedente.`,rangeReversed:"La data di inizio deve essere antecedente alla data di fine.",rangeUnderflow:e=>`Il valore deve essere ${e.minValue} o successivo.`,unavailableDate:"Data selezionata non disponibile."};var Gx={};Gx={rangeOverflow:e=>`値は ${e.maxValue} 以下にする必要があります。`,rangeReversed:"開始日は終了日より前にする必要があります。",rangeUnderflow:e=>`値は ${e.minValue} 以上にする必要があります。`,unavailableDate:"選択した日付は使用できません。"};var Zx={};Zx={rangeOverflow:e=>`값은 ${e.maxValue} 이전이어야 합니다.`,rangeReversed:"시작일은 종료일 이전이어야 합니다.",rangeUnderflow:e=>`값은 ${e.minValue} 이상이어야 합니다.`,unavailableDate:"선택한 날짜를 사용할 수 없습니다."};var Xx={};Xx={rangeOverflow:e=>`Reikšmė turi būti ${e.maxValue} arba ankstesnė.`,rangeReversed:"Pradžios data turi būti ankstesnė nei pabaigos data.",rangeUnderflow:e=>`Reikšmė turi būti ${e.minValue} arba naujesnė.`,unavailableDate:"Pasirinkta data nepasiekiama."};var Yx={};Yx={rangeOverflow:e=>`Vērtībai ir jābūt ${e.maxValue} vai agrākai.`,rangeReversed:"Sākuma datumam ir jābūt pirms beigu datuma.",rangeUnderflow:e=>`Vērtībai ir jābūt ${e.minValue} vai vēlākai.`,unavailableDate:"Atlasītais datums nav pieejams."};var Ux={};Ux={rangeOverflow:e=>`Verdien må være ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen må være før sluttdatoen.",rangeUnderflow:e=>`Verdien må være ${e.minValue} eller senere.`,unavailableDate:"Valgt dato utilgjengelig."};var Jx={};Jx={rangeOverflow:e=>`Waarde moet ${e.maxValue} of eerder zijn.`,rangeReversed:"De startdatum moet voor de einddatum liggen.",rangeUnderflow:e=>`Waarde moet ${e.minValue} of later zijn.`,unavailableDate:"Geselecteerde datum niet beschikbaar."};var Kx={};Kx={rangeOverflow:e=>`Wartość musi mieć wartość ${e.maxValue} lub wcześniejszą.`,rangeReversed:"Data rozpoczęcia musi być wcześniejsza niż data zakończenia.",rangeUnderflow:e=>`Wartość musi mieć wartość ${e.minValue} lub późniejszą.`,unavailableDate:"Wybrana data jest niedostępna."};var Qx={};Qx={rangeOverflow:e=>`O valor deve ser ${e.maxValue} ou anterior.`,rangeReversed:"A data inicial deve ser anterior à data final.",rangeUnderflow:e=>`O valor deve ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."};var qx={};qx={rangeOverflow:e=>`O valor tem de ser ${e.maxValue} ou anterior.`,rangeReversed:"A data de início deve ser anterior à data de fim.",rangeUnderflow:e=>`O valor tem de ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."};var e4={};e4={rangeOverflow:e=>`Valoarea trebuie să fie ${e.maxValue} sau anterioară.`,rangeReversed:"Data de început trebuie să fie anterioară datei de sfârșit.",rangeUnderflow:e=>`Valoarea trebuie să fie ${e.minValue} sau ulterioară.`,unavailableDate:"Data selectată nu este disponibilă."};var t4={};t4={rangeOverflow:e=>`Значение должно быть не позже ${e.maxValue}.`,rangeReversed:"Дата начала должна предшествовать дате окончания.",rangeUnderflow:e=>`Значение должно быть не раньше ${e.minValue}.`,unavailableDate:"Выбранная дата недоступна."};var n4={};n4={rangeOverflow:e=>`Hodnota musí byť ${e.maxValue} alebo skoršia.`,rangeReversed:"Dátum začiatku musí byť skorší ako dátum konca.",rangeUnderflow:e=>`Hodnota musí byť ${e.minValue} alebo neskoršia.`,unavailableDate:"Vybratý dátum je nedostupný."};var r4={};r4={rangeOverflow:e=>`Vrednost mora biti ${e.maxValue} ali starejša.`,rangeReversed:"Začetni datum mora biti pred končnim datumom.",rangeUnderflow:e=>`Vrednost mora biti ${e.minValue} ali novejša.`,unavailableDate:"Izbrani datum ni na voljo."};var i4={};i4={rangeOverflow:e=>`Vrednost mora da bude ${e.maxValue} ili starija.`,rangeReversed:"Datum početka mora biti pre datuma završetka.",rangeUnderflow:e=>`Vrednost mora da bude ${e.minValue} ili novija.`,unavailableDate:"Izabrani datum nije dostupan."};var a4={};a4={rangeOverflow:e=>`Värdet måste vara ${e.maxValue} eller tidigare.`,rangeReversed:"Startdatumet måste vara före slutdatumet.",rangeUnderflow:e=>`Värdet måste vara ${e.minValue} eller senare.`,unavailableDate:"Det valda datumet är inte tillgängligt."};var o4={};o4={rangeOverflow:e=>`Değer, ${e.maxValue} veya öncesi olmalıdır.`,rangeReversed:"Başlangıç tarihi bitiş tarihinden önce olmalıdır.",rangeUnderflow:e=>`Değer, ${e.minValue} veya sonrası olmalıdır.`,unavailableDate:"Seçilen tarih kullanılamıyor."};var s4={};s4={rangeOverflow:e=>`Значення має бути не пізніше ${e.maxValue}.`,rangeReversed:"Дата початку має передувати даті завершення.",rangeUnderflow:e=>`Значення має бути не раніше ${e.minValue}.`,unavailableDate:"Вибрана дата недоступна."};var l4={};l4={rangeOverflow:e=>`值必须是 ${e.maxValue} 或更早日期。`,rangeReversed:"开始日期必须早于结束日期。",rangeUnderflow:e=>`值必须是 ${e.minValue} 或更晚日期。`,unavailableDate:"所选日期不可用。"};var u4={};u4={rangeOverflow:e=>`值必須是 ${e.maxValue} 或更早。`,rangeReversed:"開始日期必須在結束日期之前。",rangeUnderflow:e=>`值必須是 ${e.minValue} 或更晚。`,unavailableDate:"所選日期無法使用。"};var c4={};c4={"ar-AE":Ax,"bg-BG":Fx,"cs-CZ":Px,"da-DK":Tx,"de-DE":kx,"el-GR":Mx,"en-US":Bx,"es-ES":Vx,"et-EE":Ox,"fi-FI":Nx,"fr-FR":Lx,"he-IL":jx,"hr-HR":Hx,"hu-HU":Wx,"it-IT":zx,"ja-JP":Gx,"ko-KR":Zx,"lt-LT":Xx,"lv-LV":Yx,"nb-NO":Ux,"nl-NL":Jx,"pl-PL":Kx,"pt-BR":Qx,"pt-PT":qx,"ro-RO":e4,"ru-RU":t4,"sk-SK":n4,"sl-SI":r4,"sr-SP":i4,"sv-SE":a4,"tr-TR":o4,"uk-UA":s4,"zh-CN":l4,"zh-TW":u4};function UA(e){return e&&e.__esModule?e.default:e}const d4=new Ei(UA(c4));function f4(){return typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US"}function Wm(e,t,n,r,i){let a=e!=null&&n!=null&&e.compare(n)>0,o=e!=null&&t!=null&&e.compare(t)<0,s=e!=null&&(r==null?void 0:r(e))||!1,l=a||o||s,u=[];if(l){let c=f4(),d=Ei.getGlobalDictionaryForPackage("@react-stately/datepicker")||d4,h=new oy(c,d),f=new xo(c,Cd({},i)),g=f.resolvedOptions().timeZone;o&&u.push(h.format("rangeUnderflow",{minValue:f.format(t.toDate(g))})),a&&u.push(h.format("rangeOverflow",{maxValue:f.format(n.toDate(g))})),s&&u.push(h.format("unavailableDate"))}return{isInvalid:l,validationErrors:u,validationDetails:{badInput:s,customError:!1,patternMismatch:!1,rangeOverflow:a,rangeUnderflow:o,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!l}}}function JA(e,t,n,r,i){let a=Wm(e==null?void 0:e.start,t,n,r,i),o=Wm(e==null?void 0:e.end,t,n,r,i),s=Ml(a,o);if(e.end!=null&&e.start!=null&&e.end.compare(e.start)<0){let l=Ei.getGlobalDictionaryForPackage("@react-stately/datepicker")||d4;s=Ml(s,{isInvalid:!0,validationErrors:[l.getStringForLocale("rangeReversed",f4())],validationDetails:{...pu,rangeUnderflow:!0,rangeOverflow:!0,valid:!1}})}return s}const KA={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},QA={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};function Cd(e,t){e={...t.shouldForceLeadingZeros?QA:KA,...e};let r=t.granularity||"minute",i=Object.keys(e);var a;let o=i.indexOf((a=t.maxGranularity)!==null&&a!==void 0?a:"year");o<0&&(o=0);let s=i.indexOf(r);if(s<0&&(s=2),o>s)throw new Error("maxGranularity must be greater than granularity");let l=i.slice(o,s+1).reduce((c,d)=>(c[d]=e[d],c),{});return t.hourCycle!=null&&(l.hour12=t.hourCycle===12),l.timeZone=t.timeZone||"UTC",(r==="hour"||r==="minute"||r==="second")&&t.timeZone&&!t.hideTimeZone&&(l.timeZoneName="short"),t.showEra&&o===0&&(l.era="short"),l}function vs(e){return e&&"hour"in e?e:new Of}function qA(e,t){let n=e&&"timeZone"in e?e.timeZone:void 0,r=e&&"minute"in e?"minute":"day";if(e&&t&&!(t in e))throw new Error("Invalid granularity "+t+" for value "+e.toString());let[i,a]=x.useState([r,n]);e&&(i[0]!==r||i[1]!==n)&&a([r,n]),t||(t=e?r:i[0]);let o=e?n:i[1];return[t,o]}function eF(e){var t,n;let r=YA(e),[i,a]=Do(e.value,e.defaultValue||null,e.onChange),[o,s]=x.useState(()=>i||{start:null,end:null});i==null&&o.start&&o.end&&(o={start:null,end:null},s(o));let l=i||o,u=T=>{s(T||{start:null,end:null}),T!=null&&T.start&&T.end?a(T):a(null)},c=(l==null?void 0:l.start)||(l==null?void 0:l.end)||e.placeholderValue,[d,h]=qA(c,e.granularity),f=d==="hour"||d==="minute"||d==="second";var g;let m=(g=e.shouldCloseOnSelect)!==null&&g!==void 0?g:!0,[p,b]=x.useState(null),[v,y]=x.useState(null);l&&l.start&&l.end&&(p=l,"hour"in l.start&&(v=l));let w=(T,R)=>{u({start:"timeZone"in R.start?R.start.set(on(T.start)):Pr(T.start,R.start),end:"timeZone"in R.end?R.end.set(on(T.end)):Pr(T.end,R.end)}),b(null),y(null),k.commitValidation()},C=T=>{let R=typeof m=="function"?m():m;f?R||T.start&&T.end&&(v!=null&&v.start)&&(v!=null&&v.end)?w(T,{start:(v==null?void 0:v.start)||vs(e.placeholderValue),end:(v==null?void 0:v.end)||vs(e.placeholderValue)}):b(T):T.start&&T.end?(u(T),k.commitValidation()):b(T),R&&r.setOpen(!1)},E=T=>{p!=null&&p.start&&(p!=null&&p.end)&&T.start&&T.end?w(p,T):y(T)},I=(l==null||(t=l.start)===null||t===void 0?void 0:t.calendar.identifier)==="gregory"&&l.start.era==="BC"||(l==null||(n=l.end)===null||n===void 0?void 0:n.calendar.identifier)==="gregory"&&l.end.era==="BC",D=x.useMemo(()=>({granularity:d,timeZone:h,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:I}),[d,e.hourCycle,e.shouldForceLeadingZeros,h,e.hideTimeZone,I]),{minValue:_,maxValue:F,isDateUnavailable:$}=e,P=x.useMemo(()=>JA(l,_,F,$,D),[l,_,F,$,D]),k=VA({...e,value:i,name:x.useMemo(()=>[e.startName,e.endName],[e.startName,e.endName]),builtinValidation:P}),A=k.displayValidation.isInvalid,B=e.validationState||(A?"invalid":null);return{...k,value:l,setValue:u,dateRange:p,timeRange:v,granularity:d,hasTime:f,setDate(T,R){C({...p,[T]:R})},setTime(T,R){E({...v,[T]:R})},setDateTime(T,R){u({...l,[T]:R})},setDateRange:C,setTimeRange:E,...r,setOpen(T){!T&&!(l!=null&&l.start&&(l!=null&&l.end))&&(p!=null&&p.start)&&(p!=null&&p.end)&&f&&w(p,{start:(v==null?void 0:v.start)||vs(e.placeholderValue),end:(v==null?void 0:v.end)||vs(e.placeholderValue)}),r.setOpen(T)},validationState:B,isInvalid:A,formatValue(T,R){if(!l||!l.start||!l.end)return null;let O="timeZone"in l.start?l.start.timeZone:void 0,H=e.granularity||(l.start&&"minute"in l.start?"minute":"day"),L="timeZone"in l.end?l.end.timeZone:void 0,Z=e.granularity||(l.end&&"minute"in l.end?"minute":"day"),V=Cd(R,{granularity:H,timeZone:O,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,showEra:l.start.calendar.identifier==="gregory"&&l.start.era==="BC"||l.end.calendar.identifier==="gregory"&&l.end.era==="BC"}),W=l.start.toDate(O||"UTC"),q=l.end.toDate(L||"UTC"),Y=new xo(T,V),N;if(O===L&&H===Z&&l.start.compare(l.end)!==0){try{let G=Y.formatRangeToParts(W,q),J=-1;for(let le=0;le<G.length;le++){let z=G[le];if(z.source==="shared"&&z.type==="literal")J=le;else if(z.source==="endRange")break}let re="",fe="";for(let le=0;le<G.length;le++)le<J?re+=G[le].value:le>J&&(fe+=G[le].value);return{start:re,end:fe}}catch{}N=Y}else{let G=Cd(R,{granularity:Z,timeZone:L,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle});N=new xo(T,G)}return{start:Y.format(W),end:N.format(q)}}}}const h4=e=>{const t=x.useRef(null),{locale:n}=$n(),{state:r,date:i}=e,{cellProps:a,buttonProps:o,isSelected:s,isOutsideVisibleRange:l,isDisabled:u,formattedDate:c,isInvalid:d}=MA({date:i},r,t),{focusProps:h}=ty(),f="highlightedRange"in r?r.highlightedRange?ht(i,r.highlightedRange.start):null:s,g="highlightedRange"in r?r.highlightedRange?ht(i,r.highlightedRange.end):null:s,m=hu(i,n),p=s&&(f??m===0??i.day===1),b=s&&(g??m===6??i.day===i.calendar.getDaysInMonth(i));return S.jsx("td",{...a,children:S.jsx("div",{...Xt(o,h),ref:t,className:`${ge["cell-calendar"]} ${p?"1ru-rounded-l-full":""} ${b?"1ru-rounded-r-full":""} ${s?d?"1ru-bg-red-300":"1ru-bg-laba-blue-02":""} ${u?"1ru-disabled":""}`,children:l?S.jsx("div",{className:ge["visible-cell-calendar"],children:c}):S.jsx("div",{className:`${ge["active-cell-calendar"]} ${u&&!d?ge.disabled:""} ${f||g?d?ge.error:ge.selected:""} ${s&&!u&&!(f??g)?d?"hover:1ru-bg-red-400":"hover:1ru-text-laba-blue-05":""} ${!s&&!u?"hover:1ru-bg-laba-blue-01":""}`,children:c})})})},ua=e=>{const t=x.useRef(null),{buttonProps:n}=RA(e,t),{focusProps:r}=ty();return S.jsx("button",{...Xt(n,r),ref:t,className:`1ru-px-2 1ru-py-1 1ru-rounded-full ${e.isDisabled?"1ru-text-gray-400":"1ru-text-laba-blue-10"} ${e.isDisabled?"":"hover:1ru-bg-laba-blue-01 1ru-cursor-pointer"} 1ru-outline-none`,children:e.children})},g4=({prevIcon:e,nextIcon:t,state:n,setActiveTypeCalendar:r,onChangeMonth:i,type:a})=>{const o=n.focusedDate.calendar.getMonthsInYear(n.focusedDate),s=Tr({month:"short",timeZone:n.timeZone}),l=(c,d)=>{const h=n.focusedDate.set({month:c});d?(r("date"),n.setFocusedDate(h)):!d&&typeof i=="function"&&i(h)},u=c=>{const d=n.focusedDate.set({year:c});n.setFocusedDate(d)};return S.jsxs("div",{className:`1ru-w-[296px] ${ge["container-calendar"]}`,children:[S.jsxs("div",{className:ge["header-calendar"],children:[S.jsx(ua,{isDisabled:n!=null&&n.minValue?n.focusedDate.year<=n.minValue.year:!1,onPress:()=>u(n.focusedDate.year-1),children:typeof e=="function"||x.isValidElement(e)?x.isValidElement(e)?e:e():S.jsx(Ln,{className:"1ru-rotate-90"})}),S.jsx("div",{className:`${ge["header-button-calendar"]} ${a.includes("year")?"":ge.disabled}`,onClick:()=>{a.includes("year")&&r("year")},children:n.focusedDate.year}),S.jsx(ua,{isDisabled:n!=null&&n.maxValue?n.focusedDate.year>=n.maxValue.year:!1,onPress:()=>u(n.focusedDate.year+1),children:typeof t=="function"||x.isValidElement(t)?x.isValidElement(t)?t:t():S.jsx(Ln,{className:"-1ru-rotate-90"})})]}),S.jsx("div",{className:ge["month-calendar"],children:[...Array(o).keys()].map(c=>{var p;const d=n.focusedDate.set({month:c+1}),h=s.format(d.toDate(n.timeZone)),f=n!=null&&n.minValue?d.month<((p=n==null?void 0:n.minValue)==null?void 0:p.month)&&d.year<=n.minValue.year:!1,g=n!=null&&n.maxValue?d.month>n.maxValue.month&&d.year>=n.maxValue.year:!1,m=f||g;return S.jsx("div",{onClick:()=>{m||l(d.month,a.includes("date"))},className:`${ge["cell-month"]} ${n.focusedDate.month===d.month&&!m&&d.year===n.value.year?ge.selected:""} ${n.focusedDate.month!==d.month&&!m?"hover:1ru-bg-laba-blue-01":""} ${m?"1ru-text-gray-400":"1ru-cursor-pointer"}`,children:h},c)})})]})},tF=e=>{const t=sv(e.state.visibleRange.start,e.locale),{gridProps:n,headerProps:r,weekDays:i}=Gy({},e.state),{prevButtonProps:a,nextButtonProps:o,title:s}=zy(e,e.state),l=u=>{let c="";switch(u){case 0:c="Min";break;case 1:c="Sen";break;case 2:c="Sel";break;case 3:c="Rab";break;case 4:c="Kam";break;case 5:c="Jum";break;case 6:c="Sab";break}return c};return S.jsxs("div",{children:[S.jsxs("div",{className:ge["header-calendar"],children:[S.jsx(ua,{...a,children:typeof(e==null?void 0:e.prevIcon)=="function"||x.isValidElement(e==null?void 0:e.prevIcon)?x.isValidElement(e.prevIcon)?e.prevIcon:e.prevIcon():S.jsx(Ln,{className:"1ru-rotate-90"})}),S.jsx("div",{className:ge["header-button-calendar"],onClick:()=>e.setActiveTypeCalendar("month"),children:s}),S.jsx(ua,{...o,children:typeof(e==null?void 0:e.nextIcon)=="function"||x.isValidElement(e==null?void 0:e.nextIcon)?x.isValidElement(e.nextIcon)?e.nextIcon:e.nextIcon():S.jsx(Ln,{className:"-1ru-rotate-90"})})]}),S.jsxs("table",{...n,children:[S.jsx("thead",{...r,children:S.jsx("tr",{children:i.map((u,c)=>S.jsx("th",{className:ge["days-calendar"],children:l(c)},c))})}),S.jsx("tbody",{children:[...new Array(t).keys()].map(u=>S.jsx("tr",{children:e.state.getDatesInWeek(u).map((c,d)=>c?S.jsx(h4,{state:e.state,date:c},d):S.jsx("td",{},d))},u))})]})]})},nF=({minDate:e,maxDate:t,value:n,time:r,handlerChangeTime:i})=>{const a=e?new Date(e):null,o=t?new Date(t):null,s=a==null?void 0:a.getHours(),l=o==null?void 0:o.getHours(),u=a==null?void 0:a.getMinutes(),c=o==null?void 0:o.getMinutes(),[d,h]=x.useState(!0),f=(b,v,y)=>Array.from({length:(v-b)/y+1},(w,C)=>b+C*y),g=(b,v)=>{typeof i=="function"&&i({hour:b,minut:v,second:r==null?void 0:r.second})},m=()=>{const b=document.getElementById(`calendar-hour-${r==null?void 0:r.hour}`),v=document.getElementById(`calendar-minut-${r==null?void 0:r.minut}`),y=document.getElementById("wrapper-calendar-hour"),w=document.getElementById("wrapper-calendar-minut");b&&y&&y.scrollTo({behavior:"instant",top:b.offsetTop-75}),v&&w&&w.scrollTo({behavior:"instant",top:v.offsetTop-75})},p=(b,v)=>{let y=!0;if(a&&n){const w=n.year===a.getFullYear(),C=n.month===a.getMonth()+1;n.day===a.getDate()&&C&&w?(v==="hour"&&b<(s??0)||v==="minut"&&((r==null?void 0:r.hour)??0)<=a.getHours()&&b<(u??0))&&(y=!1):n.toDate(gi()).getTime()<a.getTime()&&(y=!1)}if(o&&n){const w=n.year===o.getFullYear(),C=n.month===o.getMonth()+1;n.day===o.getDate()&&C&&w?(v==="hour"&&b>(l??0)||v==="minut"&&((r==null?void 0:r.hour)??0)>=o.getHours()&&b>(c??0))&&(y=!1):n.toDate(gi()).getTime()>o.getTime()&&(y=!1)}return y};return x.useEffect(()=>{d&&m(),r&&h(!1)},[JSON.stringify(n)]),S.jsxs("div",{className:ge["custom-time-calendar"],children:[S.jsx("div",{className:ge["header-time"],children:"Atur Waktu"}),S.jsxs("div",{className:ge["type-time"],children:[S.jsx("div",{children:"Jam"}),S.jsx("div",{children:"Menit"})]}),S.jsxs("div",{className:"1ru-flex 1ru-justify-around",children:[S.jsx("div",{id:"wrapper-calendar-hour",className:ge["container-cell-time"],children:f(0,23,1).map(b=>S.jsx("div",{id:`calendar-hour-${b}`,className:`${ge["cell-time"]} ${(r==null?void 0:r.hour)===b?p(b,"hour")?ge.selected:ge.error:""} ${p(b,"hour")&&(r==null?void 0:r.hour)!=b?ge.valid:ge.invalid}`,onClick:()=>{p(b,"hour")&&g(b,r==null?void 0:r.minut)},children:b},b))}),S.jsx("div",{id:"wrapper-calendar-minut",className:ge["container-cell-time"],children:f(0,59,1).map(b=>S.jsx("div",{id:`calendar-minut-${b}`,className:`${ge["cell-time"]} ${(r==null?void 0:r.minut)===b?p(b,"minut")?ge.selected:ge.error:""} ${p(b,"minut")&&(r==null?void 0:r.minut)!=b?ge.valid:ge.invalid}`,onClick:()=>{p(b,"minut")&&g(r==null?void 0:r.hour,b)},children:b},b))})]})]})},bu=e=>{const t=Rx({...e,locale:e.locale,createCalendar:Zo}),{title:n}=zy(e,t),[r,i]=x.useState((e==null?void 0:e.activeType)??"date"),a=o=>{t.setValue(o)};return jo(()=>{e!=null&&e.activeType&&i(e.activeType)},[e==null?void 0:e.activeType]),S.jsxs("div",{className:"1ru-text-laba-base-sr",children:[r==="date"&&S.jsx(S.Fragment,{children:S.jsxs("div",{className:ge["container-calendar"],children:[S.jsxs("div",{className:"1ru-flex 1ru-gap-2",children:[S.jsx(tF,{state:t,setActiveTypeCalendar:i,...e}),(e==null?void 0:e.isCustomTime)&&S.jsx(nF,{minDate:e.minDate,maxDate:e.maxDate,time:e.time,value:e.value,handlerChangeTime:e.handlerChangeTime})]}),((e==null?void 0:e.withConfirm)??(e==null?void 0:e.isCustomTime))&&S.jsxs("div",{className:`${ge["footer-calendar"]}`,children:[typeof(e==null?void 0:e.buttonReset)=="function"?S.jsx("div",{onClick:()=>e.handlerReset(t),children:e.buttonReset()}):S.jsx(Hn,{variants:"nude-laba-blue-10",size:"small",onClick:()=>e.handlerReset(t),children:"Reset"}),typeof(e==null?void 0:e.buttonSubmit)=="function"?S.jsx("div",{onClick:e.handlerSubmit,children:e.buttonSubmit()}):S.jsx(Hn,{size:"small",onClick:e.handlerSubmit,children:"Terapkan"})]})]})}),r==="month"&&S.jsx(g4,{state:t,setActiveTypeCalendar:i,type:e.type,onChangeMonth:a}),r==="year"&&S.jsx(g1,{state:t,type:e.type,setActiveTypeCalendar:i,title:n,onChangeYear:a})]})},rF=e=>{const t=x.useRef(null),{locale:n}=$n(),r=XA({...e,locale:n,createCalendar:Zo}),i=m=>{let p="";switch(m){case 0:p="Min";break;case 1:p="Sen";break;case 2:p="Sel";break;case 3:p="Rab";break;case 4:p="Kam";break;case 5:p="Jum";break;case 6:p="Sab";break}return p},{calendarProps:a,prevButtonProps:o,nextButtonProps:s,title:l}=TA(e,r,t),{gridProps:u,headerProps:c,weekDays:d}=Gy({},r),h=sv(r.visibleRange.start,n),[f,g]=x.useState("date");return S.jsxs("div",{className:"1ru-text-laba-base-sr",children:[f==="date"&&S.jsx(S.Fragment,{children:S.jsx("div",{...a,ref:t,children:S.jsxs("div",{className:ge["container-calendar"],children:[S.jsxs("div",{className:ge["header-calendar"],children:[S.jsx(ua,{...o,children:typeof(e==null?void 0:e.prevIcon)=="function"||x.isValidElement(e==null?void 0:e.prevIcon)?x.isValidElement(e.prevIcon)?e.prevIcon:e.prevIcon():S.jsx(Ln,{className:"1ru-rotate-90"})}),S.jsx("div",{className:ge["header-button-calendar"],onClick:()=>g("month"),children:l}),S.jsx(ua,{...s,children:typeof(e==null?void 0:e.nextIcon)=="function"||x.isValidElement(e==null?void 0:e.nextIcon)?x.isValidElement(e.nextIcon)?e.nextIcon:e.nextIcon():S.jsx(Ln,{className:"-1ru-rotate-90"})})]}),S.jsxs("table",{...u,cellPadding:"0",className:"flex-1",children:[S.jsx("thead",{...c,className:"text-gray-600",children:S.jsx("tr",{children:d.map((m,p)=>S.jsx("th",{className:ge["days-calendar"],children:i(p)},p))})}),S.jsx("tbody",{children:[...new Array(h).keys()].map(m=>S.jsx("tr",{children:r.getDatesInWeek(m).map((p,b)=>p?S.jsx(h4,{state:r,date:p},b):S.jsx("td",{},b))},m))})]}),e.withConfirm&&S.jsxs("div",{className:ge["footer-calendar"],children:[typeof(e==null?void 0:e.buttonReset)=="function"?S.jsx("div",{onClick:()=>e.handlerReset(r),children:e.buttonReset()}):S.jsx(Hn,{variants:"nude-laba-blue-10",size:"small",onClick:()=>e.handlerReset(r),children:"Reset"}),typeof(e==null?void 0:e.buttonSubmit)=="function"?S.jsx("div",{onClick:e.handlerSubmit,children:e.buttonSubmit()}):S.jsx(Hn,{size:"small",onClick:e.handlerSubmit,children:"Terapkan"})]})]})})}),f==="month"&&S.jsx(g4,{state:r,setActiveTypeCalendar:g,type:["date","month","year"]}),f==="year"&&S.jsx(g1,{state:r,setActiveTypeCalendar:g,title:l,type:["date","month","year"]})]})},m4=e=>{const t=eF(e),n=x.useRef(null),{calendarProps:r}=ZA(e,t,n);return S.jsx("div",{ref:n,children:S.jsx(rF,{handlerReset:e.handlerReset,handlerSubmit:e.handlerSubmit,withConfirm:e.withConfirm,prevIcon:e.prevIcon,nextIcon:e.nextIcon,buttonReset:e.buttonReset,buttonSubmit:e.buttonSubmit,...r})})},ys=e=>{let t;const n=new Date(e??new Date);return e&&(t=Bf(new Date(n.setHours(n.getHours()+7)).toISOString().slice(0,10))),t},iF=e=>{const{minDate:t,maxDate:n,value:r,defaultValue:i,withConfirm:a=!1,isCustomTime:o=!1,className:s,classNameButton:l,buttonClick:u,buttonReset:c,buttonSubmit:d,prevIcon:h,nextIcon:f,onChange:g,id:m="date-picker",idPopover:p="date-picker-popover",floatingOptions:b={},offsetPopover:v=5,zIndexPopper:y=1}=e,w=Tr(),{locale:C}=$n(),E=ys(t),I=ys(n),D=x.useRef(null),[_,F]=x.useState(),[$,P]=x.useState(),k=O=>{var W;const H=new Date;let L=O.toDate(gi());L.setHours(H.getHours(),H.getMinutes(),H.getSeconds());const Z=t?new Date(t):null,V=n?new Date(n):null;if(o){if(L=new Date(new Date(L).setHours(($==null?void 0:$.hour)??0,$==null?void 0:$.minut,$==null?void 0:$.second)),Z&&(Z==null?void 0:Z.toDateString())===new Date(L).toDateString()&&(Z==null?void 0:Z.toTimeString())>=(L==null?void 0:L.toTimeString())){if(Z&&(Z.getHours()>L.getHours()||Z.getHours()===L.getHours()&&Z.getMinutes()>L.getMinutes()))return;L=new Date(Z.setSeconds(Z.getSeconds()+1))}if(V&&(V==null?void 0:V.toDateString())===new Date(L).toDateString()&&(V==null?void 0:V.toTimeString())<(L==null?void 0:L.toTimeString())){if(V&&(V.getHours()<L.getHours()||V.getHours()===L.getHours()&&V.getMinutes()<L.getMinutes()))return;L=new Date(V.setSeconds(V.getSeconds()-1))}}else Z&&w.format(L)===w.format(Z)&&Z.getTime()>=L.getTime()?L=new Date(Z.setSeconds(Z.getSeconds()+1)):V&&w.format(L)===w.format(V)&&V.getTime()<=L.getTime()&&(L=new Date(V.setSeconds(V.getSeconds()-1)));typeof g=="function"&&(g(L),(W=D.current)==null||W.setShow(!1))},A=(O,H)=>{F(O),(H??(!a&&!o))&&k(O)},B=O=>{P(O)},T=O=>{const H=new Date(r??new Date);if(r&&O){const L=O.focusedDate.set({month:H.getMonth()+1,year:H.getFullYear()});O.setFocusedDate(L)}P({hour:H.getHours(),minut:H.getMinutes(),second:H.getSeconds()}),F(ys(r))},R=()=>{_&&A(_,!0)};return S.jsxs(S.Fragment,{children:[S.jsx("div",{id:m,onClick:O=>{var H;(H=D.current)==null||H.handlerShow(O),T()},className:l,children:typeof u=="function"?u(r):r?new Date(r).toDateString():"Pilih Tanggal"}),S.jsx(Ci,{zIndex:y,ref:D,offset:v,id:p,floatingOptions:{placement:"bottom-end",...b},children:S.jsx("div",{className:s??"",children:S.jsx(Jf,{locale:"id-ID",children:S.jsx(bu,{minValue:E,maxValue:I,minDate:t,maxDate:n,time:$,locale:C,value:_,buttonReset:c,buttonSubmit:d,prevIcon:h,nextIcon:f,createCalendar:Zo,defaultValue:ys(r),onChange:A,handlerReset:()=>{var O;typeof g=="function"&&(g(i),(O=D.current)==null||O.setShow(!1))},handlerSubmit:R,handlerChangeTime:B,withConfirm:a,isCustomTime:o,type:["date","month","year"]})})})})]})},pc=e=>{let t;const n=new Date(e??new Date);return e&&(t=Bf(new Date(n.setHours(n.getHours()+7)).toISOString().slice(0,10))),t},zm=e=>{const t=new Date((e==null?void 0:e.startDate)??new Date),n=new Date((e==null?void 0:e.endDate)??new Date),r=new lt(t.getFullYear(),t.getMonth()+1,t.getDate()),i=new lt(n.getFullYear(),n.getMonth()+1,n.getDate());return e?{start:r,end:i}:void 0},p4=e=>{const{minDate:t,maxDate:n,defaultValue:r,withConfirm:i,prevIcon:a,nextIcon:o,buttonReset:s,buttonSubmit:l,typePicker:u="RANGE",onChange:c,onReset:d}=e,{locale:h}=$n(),f=pc(t),g=pc(n),[m,p]=x.useState(),b=C=>{typeof c=="function"&&c(C)},v=(C,E)=>{const I=C.start.toDate(gi()),D=C.end.toDate(gi());p(C),(E??!i)&&b({startDate:I,endDate:new Date(D.setHours(23,59,59))})},y=C=>{if(typeof d=="function")d();else if(r&&C){const E=new Date(r.endDate??new Date),I=C.focusedDate.set({month:E.getMonth()+1,year:E.getFullYear()});C.setFocusedDate(I)}p(zm(r))},w=()=>{m&&v(m,!0)};return S.jsx("div",{className:"1ru-flex 1ru-flex-col",children:S.jsxs(Jf,{locale:"id-ID",children:[u==="RANGE"&&S.jsx(m4,{defaultValue:zm(r),value:m,minValue:f,maxValue:g,withConfirm:i,prevIcon:a,nextIcon:o,buttonReset:s,buttonSubmit:l,onChange:v,handlerReset:y,handlerSubmit:w}),u==="SINGLE"&&S.jsx(bu,{defaultValue:pc(r==null?void 0:r.endDate),value:m==null?void 0:m.end,minValue:f,maxValue:g,minDate:t,maxDate:n,withConfirm:i,prevIcon:a,nextIcon:o,buttonReset:s,buttonSubmit:l,locale:h,createCalendar:Zo,onChange:C=>v({start:C,end:C}),handlerReset:y,handlerSubmit:w,type:["date","month","year"]})]})})},aF=({value:e,prevIcon:t,nextIcon:n,buttonReset:r,buttonSubmit:i,className:a,classNameButton:o,buttonClick:s,buttonList:l,typePicker:u="RANGE",onChange:c,idPopover:d="filter-date-popover",id:h="filter-date",floatingOptions:f={},offsetPopover:g=5,zIndexPopper:m=0,defaultValueLabel:p})=>{const b=[{key:"thisDay",value:"Hari ini"},{key:"thisWeek",value:"Minggu ini"},{key:"thisMonth",value:"Bulan ini"},{key:"thisYear",value:"Tahun ini"},{key:"yesterday",value:"Kemarin"},{key:"lastWeek",value:"Minggu lalu"},{key:"lastMonth",value:"Bulan lalu"},{key:"lastYear",value:"Tahun lalu"},{key:"custom",value:"Kustom"}],v=x.useRef(null),[y,w]=x.useState(),[C,E]=x.useState(),[I,D]=x.useState(),_=(V,W)=>{const q=new Date(V??new Date);return W==="start"?new Date(q.setHours(0,0,0)):new Date(q.setHours(23,59,59))},F=()=>{const V=new Date;return{startDate:V,endDate:V}},$=()=>{const V=new Date;V.setDate(V.getDate()-V.getDay());const W=new Date;return W.setDate(W.getDate()+(6-W.getDay())),{startDate:V,endDate:W}},P=()=>{const V=new Date,W=new Date(V.getFullYear(),V.getMonth(),1),q=new Date(V.getFullYear(),V.getMonth()+1,0);return{startDate:W,endDate:q}},k=()=>{const V=new Date(new Date().getFullYear(),0,1),W=new Date(new Date().getFullYear(),11,31);return{startDate:V,endDate:W}},A=()=>{const V=new Date(new Date().setDate(new Date().getDate()-1));return{startDate:V,endDate:V}},B=()=>{const V=new Date;V.setDate(V.getDate()-(7+V.getDay()));const W=new Date;return W.setDate(W.getDate()-(W.getDay()+1)),{startDate:V,endDate:W}},T=()=>{const V=new Date,W=new Date(V.getFullYear(),V.getMonth()-1,1),q=new Date(V.getFullYear(),V.getMonth(),0);return{startDate:W,endDate:q}},R=()=>{const V=new Date(new Date().getFullYear()-1,0,1),W=new Date(new Date().getFullYear()-1,11,31);return{startDate:V,endDate:W}},O=(V,W)=>{var q;D(V),typeof c=="function"&&((q=v.current)==null||q.setShow(!1),c(V,W??""))},H=V=>{w(V);let W;if((V==null?void 0:V.key)!=="custom"){switch(E(V),V==null?void 0:V.key){case"thisDay":W=F();break;case"thisWeek":W=$();break;case"thisMonth":W=P();break;case"thisYear":W=k();break;case"yesterday":W=A();break;case"lastWeek":W=B();break;case"lastMonth":W=T();break;case"lastYear":W=R();break}W&&O({startDate:_(W.startDate,"start"),endDate:_(W.endDate,"end")},V==null?void 0:V.value)}},L=()=>{e&&D(e)},Z=V=>{const W=(l??b).find(q=>q.key===V);!V&&!W?O():typeof V=="object"&&O(V),H(W),E(W)};return x.useEffect(()=>{L()},[JSON.stringify(e)]),x.useEffect(()=>{typeof p=="string"&&Z(p)},[]),S.jsxs(S.Fragment,{children:[S.jsxs("div",{onClick:V=>{var W;(W=v.current)==null||W.handlerShow(V),L()},className:o,id:h,children:[x.isValidElement(s)&&s,typeof s=="function"?s(I,C):"Pilih Filter"]}),S.jsx(Ci,{zIndex:m,ref:v,offset:g,id:d,floatingOptions:{placement:"bottom-end",...f},children:S.jsxs("div",{className:`${ge["container-filter-date"]} ${a}`,children:[S.jsx("div",{children:(l??b).map((V,W)=>S.jsx("div",{className:`${ge["button-filter-date"]} hover:1ru-bg-laba-blue-01 ${(y==null?void 0:y.key)===V.key?"1ru-text-laba-blue-10":""}`,onClick:()=>H(V),children:V.value},W))}),(y==null?void 0:y.key)==="custom"&&S.jsx("div",{children:S.jsx(p4,{defaultValue:I,prevIcon:t,nextIcon:n,buttonReset:r,buttonSubmit:i,onChange:V=>{O(V,"Kustom"),E({key:"custom",value:"Kustom"})},onReset:()=>{Z(p)},typePicker:u,withConfirm:!0})})]})})]})},oF="_active_1e40z_26",Wr={"button-switch-base":"_button-switch-base_1e40z_1","switch-s":"_switch-s_1e40z_1","switch-r":"_switch-r_1e40z_1","switch-l":"_switch-l_1e40z_1","thumb-switch-base":"_thumb-switch-base_1e40z_7","thumb-switch":"_thumb-switch_1e40z_7","title-switch-base":"_title-switch-base_1e40z_12","description-switch-base":"_description-switch-base_1e40z_16",active:oF},sF=({value:e,disabled:t,title:n="",description:r="",size:i="regular",id:a,className:o,classNameTitle:s,classNameDesc:l,onChange:u})=>{const c={large:Wr["switch-l"],regular:Wr["switch-r"],small:Wr["switch-s"]},d=()=>{!t&&typeof u=="function"&&u(!e)};return S.jsxs("div",{id:a??"1ru-switch",className:`1ru-flex 1ru-gap-2 ${o??""}`,onClick:h=>h.stopPropagation(),children:[S.jsxs("label",{children:[S.jsx("input",{type:"checkbox",checked:e,onChange:d,className:"1ru-hidden"}),S.jsx("span",{className:`${c[i]} ${e?"1ru-bg-payhere-brand-base":"1ru-bg-blue-gray-50"} ${t?"":"1ru-cursor-pointer"} ${!e&&t?"1ru-bg-laba-grey-05":""}`,children:S.jsx("span",{className:`${Wr["thumb-switch"]} ${e?Wr.active:""} ${t?"1ru-bg-gray-300":"1ru-bg-white"}`})})]}),(n||r)&&S.jsxs("div",{children:[n&&S.jsx("div",{className:`${Wr["title-switch-base"]} ${s}`,children:n}),r&&S.jsx("div",{className:`${Wr["description-switch-base"]} ${l}`,children:r})]})]})},lF="_loading_1rugy_10",$e={"button-base":"_button-base_1rugy_6","button-xs":"_button-xs_1rugy_6","button-s":"_button-s_1rugy_6","button-m":"_button-m_1rugy_6","button-l":"_button-l_1rugy_6","button-extra-small":"_button-extra-small_1rugy_6","button-small":"_button-small_1rugy_6","button-reguler":"_button-reguler_1rugy_6","button-large":"_button-large_1rugy_6",loading:lF,"button-disabled-laba-grey-06":"_button-disabled-laba-grey-06_1rugy_18","nude-laba-red-10":"_nude-laba-red-10_1rugy_18","nude-gray-500":"_nude-gray-500_1rugy_18","nude-green-700":"_nude-green-700_1rugy_18","nude-red-700":"_nude-red-700_1rugy_18","nude-laba-blue-10":"_nude-laba-blue-10_1rugy_18","ghost-blue-gray-100-bg_white":"_ghost-blue-gray-100-bg_white_1rugy_18","ghost-green-700":"_ghost-green-700_1rugy_18","ghost-red-700":"_ghost-red-700_1rugy_18","ghost-laba-blue-10":"_ghost-laba-blue-10_1rugy_18","filled-laba-white_laba-blue-10":"_filled-laba-white_laba-blue-10_1rugy_18","primary-green-700":"_primary-green-700_1rugy_18","primary-red-700-dsb_laba-grey-06":"_primary-red-700-dsb_laba-grey-06_1rugy_18","primary-laba-blue-10":"_primary-laba-blue-10_1rugy_18","button-disabled-gray-100":"_button-disabled-gray-100_1rugy_18","tertiary-gray-500":"_tertiary-gray-500_1rugy_18","tertiary-red-600":"_tertiary-red-600_1rugy_18","tertiary-red-300":"_tertiary-red-300_1rugy_18","tertiary-blue-700":"_tertiary-blue-700_1rugy_18","secondary-green-600":"_secondary-green-600_1rugy_18","secondary-red-600":"_secondary-red-600_1rugy_18","secondary-blue-700":"_secondary-blue-700_1rugy_18","primary-red-700":"_primary-red-700_1rugy_18","primary-blue-700":"_primary-blue-700_1rugy_18","icon-loading":"_icon-loading_1rugy_80","spin-loading":"_spin-loading_1rugy_1"},uF=({className:e=""})=>S.jsx("svg",{className:`${$e["icon-loading"]} ${e??""}`,xmlns:"http://www.w3.org/2000/svg",width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",children:S.jsx("path",{d:`M21.6311 6.63315C22.3017 6.23898 22.5321 5.36957 22.0621 4.7497C20.7187 2.9779 18.9029 1.6063 \r
|
109
109
|
16.8106 0.800956C14.2782 -0.173807 11.4901 -0.261467 8.90143 0.552281C6.31275 1.36603 4.07629 \r
|
110
110
|
3.03314 2.55704 5.28155C1.0378 7.52995 0.325454 10.2269 0.536268 12.9323C0.747083 15.6376 1.86861 \r
|
111
111
|
18.1917 3.71782 20.1776C5.56702 22.1635 8.03473 23.4641 10.7182 23.867C13.4017 24.2699 16.1425 23.7514 \r
|
@@ -127,7 +127,7 @@ You should wrap it with \`css\` like this:
|
|
127
127
|
${m||u.subs.length>0&&b?(w=c.activeColor)==null?void 0:w[a]:""} ${typeof n=="boolean"&&n?et["item-sidebar-open"]:""} ${typeof n=="boolean"&&!n?et["item-sidebar-close"]:""}
|
128
128
|
`,onClick:v,onMouseOver:()=>g(!0),onMouseOut:()=>g(!1),...l?l(u.slug):{},children:[S.jsxs("div",{className:"1ru-flex 1ru-items-center 1ru-gap-3 1ru-relative",children:[x.isValidElement(u.svgIcon)&&S.jsx("div",{className:et["item-icon"],children:m||u.subs.length>0&&b||f?u.svgIconActive:u.svgIcon}),S.jsx("div",{className:et["item-label"],children:u.label})]}),u.subs.length>0&&n&&S.jsxs("div",{className:et["item-icon-subs"],children:[x.isValidElement(i)&&i,typeof i=="function"&&i()]})]}),u.parent===3&&!u.subs.length&&S.jsx("div",{className:et["divider-item-sidebar"]})]})),(u.parent===2||u.parent===4)&&(d=S.jsxs(S.Fragment,{children:[S.jsxs(h,{id:u.name,className:`${et["item-sidebar-2"]} ${(C=c.hoverColor)==null?void 0:C[a]}
|
129
129
|
${m||u.subs.length>0&&b?(E=c.activeColor)==null?void 0:E[a]:""} ${typeof n=="boolean"&&n?et["item-sidebar-open"]:""} ${typeof n=="boolean"&&!n?et["item-sidebar-close"]:""}
|
130
|
-
`,onClick:v,onMouseOver:()=>g(!0),onMouseOut:()=>g(!1),...l?l(u.slug):{},children:[x.isValidElement(u.svgIcon)&&S.jsx("div",{className:et["item-icon"],children:m||u.subs.length>0&&b||f?u.svgIconActive:u.svgIcon}),S.jsx("div",{className:et["item-label"],children:u.label}),u.subs.length>0&&n&&S.jsxs("div",{className:et["item-icon-subs"],children:[x.isValidElement(i)&&i,typeof i=="function"&&i()]})]}),u.parent===4&&!u.subs.length&&S.jsx("div",{className:et["divider-item-sidebar"]})]})),u.subs.length>0?S.jsxs("div",{className:`${n??b?"":"-mt-2"}`,children:[d,S.jsx("div",{className:`${et["item-subs-sidebar"]} ${!n||!b?et.hidden:""}`,children:u.subs.map(I=>x.createElement(w4,{...I,as:I.manualRoute?"div":I.subs.length>0?e:u.linkComponent,key:I.name,patch:r,iconSubs:i,show:t,open:n,variant:a,setShow:o}))}),[3,4].includes(u.parent)&&S.jsx("div",{className:et["divider-item-sidebar"]})]}):d):S.jsx(S.Fragment,{})},D4=x.forwardRef((e,t)=>{var B;const{as:n,children:r,patch:i="/",iconCompany:a,iconSubs:o,iconCollapse:s,iconCollapseClose:l,modules:u,toleranceWidthIconCompany:c=25,onClickItems:d,variant:h="payhere-brand-base-white",footer:f,withInheritance:g,...m}=e,p=x.useRef(null),b={withCuctomWidthIconCompany:["payhere-brand-base-white","payhere-brand-base-transparent"],variants:{"payhere-brand-base-white":dn["payhere-brand-base-white"],"payhere-brand-base-transparent":dn["payhere-brand-base-transparent"],"laba-white":dn["laba-white"]}},[v,y]=x.useState(null),[w,C]=x.useState(null),[E,I]=x.useState(""),[D,_]=x.useState(),[F,$]=x.useState(0),P=()=>{var O;let T=0;const R=document.getElementById("icon-company-sidebar");(O=R==null?void 0:R.childNodes)==null||O.forEach(H=>{T+=H.getBoundingClientRect().width??0}),_(T+c+"px")},M=()=>{$(window.innerWidth)},A=()=>{y(!w),w?_("auto"):setTimeout(()=>{P()},100)};return x.useEffect(()=>{F>=768?(y(!0),setTimeout(()=>{P()},100)):(y(!1),_("auto"))},[F]),x.useEffect(()=>{typeof v=="boolean"&&C(v)},[v]),x.useImperativeHandle(t,()=>({openSidebar:v,setOpenSidebar:y,handlerClickCollapse:A}),[v,w]),x.useEffect(()=>(i&&i.split("/").length>1&&I(i+"/"),P(),M(),window.addEventListener("resize",M),()=>window.removeEventListener("resize",M)),[]),S.jsxs("div",{className:b.variants[h],...m,ref:p,children:[S.jsxs("div",{id:"1ru-sidebar",className:`${dn.sidebar} ${typeof w=="boolean"&&w?dn["sidebar-open"]:""} ${typeof w=="boolean"&&!w?dn["sidebar-close"]:""}`,children:[x.isValidElement(s)&&S.jsxs("div",{className:dn["button-collaps-sidebar"],onClick:A,children:[v&&s,v?"":x.isValidElement(l)?l:s]}),S.jsx("div",{className:dn["container-icon-company-sidebar"],children:S.jsxs("div",{id:"icon-company-sidebar",className:dn["icon-company-sidebar"],style:{width:D&&b.withCuctomWidthIconCompany.includes(h)?D:"100%"},children:[x.isValidElement(a)&&a,typeof a=="function"&&a({openSidebar:w,setOpenSidebar:y})]})}),S.jsx("div",{className:dn["menu-sidebar"],onMouseOver:()=>{v||C(!0)},onMouseOut:()=>{v||C(!1)},children:u.map(T=>x.createElement(w4,{...T,as:T.manualRoute||T.subs.length>0?"div":n,linkComponent:n,key:T.name,show:E,open:w,patch:i,iconSubs:o,variant:h,setShow:I,onClickItems:d}))}),f&&S.jsxs("div",{className:w?"1ru-opacity-[1]":"1ru-opacity-0",children:[x.isValidElement(f)&&S.jsx("div",{children:f}),typeof f=="function"&&S.jsx("div",{children:f()})]})]}),v&&S.jsx("div",{className:dn["splace-screen"],onClick:A}),S.jsxs("div",{className:dn["content-sidebar"],children:[g&&((B=x.Children)==null?void 0:B.map(r,T=>S.jsx(S.Fragment,{children:x.isValidElement(T)&&S.jsx(S.Fragment,{children:x.cloneElement(T,{openSidebar:v,handlerClickCollapse:A})})}))),!g&&S.jsx(S.Fragment,{children:r})]})]})});D4.displayName="Sidebar";const IF="_collapse_gto9s_1",_F={collapse:IF},$F=({children:e,id:t="id-collapse-1mpacto-react-ui",open:n,className:r,maxCollapsedHeight:i="0px"})=>{const[a,o]=x.useState("1000vh"),s=()=>{var u;const l=((u=document==null?void 0:document.getElementById(t))==null?void 0:u.offsetHeight)??0;o(l||"1000vh")};return x.useEffect(()=>{const l=setTimeout(s,200);return window==null||window.addEventListener("resize",s),window==null||window.addEventListener("load",s),()=>{clearTimeout(l),window==null||window.removeEventListener("resize",s),window==null||window.removeEventListener("load",s)}},[]),S.jsx("div",{className:_F.collapse,style:{maxHeight:n?a:i},children:S.jsx("div",{id:t,className:r??"",children:e})})},RF="_modal_1j8ss_1",zr={"center-layout":"_center-layout_1j8ss_1",modal:RF,"modal-content":"_modal-content_1j8ss_1","with-overlay":"_with-overlay_1j8ss_14","modal-small":"_modal-small_1j8ss_24","modal-regular":"_modal-regular_1j8ss_28","modal-large":"_modal-large_1j8ss_32","modal-show":"_modal-show_1j8ss_36"},AF=({as:e,children:t,id:n="modal",idModal:r="1ru-modal",withOverlay:i=!0,show:a,size:o="regular",className:s,classNameContainer:l,onClose:u,...c})=>{const d=e??"div",h={size:{small:zr["modal-small"],regular:zr["modal-regular"],large:zr["modal-large"]}},f=()=>{typeof u=="function"&&u()};return S.jsx(S.Fragment,{children:a&&document.getElementById(r)&&To.createPortal(S.jsx("div",{id:n,onClick:f,className:`${zr.modal} ${i?zr["with-overlay"]:""} ${a?zr["modal-show"]:""} ${l??""}`,children:S.jsx(d,{onClick:g=>g.stopPropagation(),className:`${zr["modal-content"]} ${h.size[o]} ${s??""}`,...c,children:t})}),document.getElementById(r))})},FF="_dot_10oqk_31",Tn={"timeline-container":"_timeline-container_10oqk_1","no-time":"_no-time_10oqk_11","timeline-content":"_timeline-content_10oqk_15","left-content":"_left-content_10oqk_18","time-content":"_time-content_10oqk_24","text-time":"_text-time_10oqk_27",dot:FF,"right-content":"_right-content_10oqk_34"},PF=({children:e,noTime:t=!1})=>S.jsx("div",{className:`${Tn["timeline-container"]} ${t?Tn["no-time"]:""}`,children:e}),TF=({children:e,time:t,clasName:n,noTime:r=!1})=>S.jsxs("div",{className:Tn["timeline-content"],children:[S.jsx("div",{className:`${Tn["left-content"]} ${r?Tn["no-time"]:""}`,children:S.jsxs("div",{className:Tn["time-content"],children:[!r&&S.jsx("time",{className:Tn["text-time"],children:t??""}),S.jsx("div",{className:Tn.dot})]})}),S.jsx("div",{className:`${Tn["right-content"]} ${r?Tn["no-time"]:""} ${n??""}`,children:e})]}),MF=Object.assign(PF,{TimelineContent:TF}),Zm=(e,t,n)=>{if((t==null?void 0:t.length)>0){const r={};return t.forEach(i=>{e[i]&&(r[i]=e[i]),n&&e[`${n}${i}`]&&(r[`${n}${i}`]=e[`${n}${i}`])}),r}return e},kF=({children:e,onChange:t,prefixNativeValue:n="",defaultNativeValue:r,defaultValue:i,mountedExecuteChange:a=!0,keepKeys:o=[],resetPagination:s=!0,keyPageNumber:l="pageNumber"})=>{const u=s?{[l]:1}:{},[c,d]=x.useState(Zm(i??{},o,"")),[h,f]=x.useState(J2(n,Zm(r??{},o,n))),[g,m]=x.useState(!1),p=(C,E)=>C.map(I=>I[E]).join(","),b=(C,E)=>C.map(I=>I[E]),v=(C,E)=>{const I={};return Object.keys(E).forEach(D=>{I[`${C}${D}`]=E[D]}),I},y=(C,E,I,D)=>{let _=C;const F=v(n,{[E]:C});Array.isArray(C)&&(I==="array-of-object-to-array"?_=b(C,D):I==="array-of-object-to-string"?_=p(C,D):I==="array-to-string"&&(_=_.toString())),typeof t=="function"&&t({...c,[E]:_,...u},{...h,...F}),d($=>({...$,[E]:_})),f($=>({...$,...F}))},w=(C,E)=>{const D=v(n,{...E??C});typeof t=="function"&&t({...c,...C,...u},{...h,...D}),d(_=>({..._,...C})),f(_=>({..._,...D}))};return jo(()=>{!g&&typeof t=="function"&&a&&(t(c,h),m(!0))},[c,h,g,a]),S.jsx(S.Fragment,{children:e({handlerOnChange:y,handlerOnChangeNative:w,value:c,nativeValue:h})})};function Qf(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}var Io;(function(e){e.event="event",e.props="prop"})(Io||(Io={}));function nr(){}function BF(e){var t,n=void 0;return function(){for(var r=[],i=arguments.length;i--;)r[i]=arguments[i];return t&&r.length===t.length&&r.every(function(a,o){return a===t[o]})||(t=r,n=e.apply(void 0,r)),n}}function bi(e){return!!(e||"").match(/\d/)}function ui(e){return e==null}function VF(e){return typeof e=="number"&&isNaN(e)}function S4(e){return ui(e)||VF(e)||typeof e=="number"&&!isFinite(e)}function E4(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function OF(e){switch(e){case"lakh":return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case"wan":return/(\d)(?=(\d{4})+(?!\d))/g;case"thousand":default:return/(\d)(?=(\d{3})+(?!\d))/g}}function NF(e,t,n){var r=OF(n),i=e.search(/[1-9]/);return i=i===-1?e.length:i,e.substring(0,i)+e.substring(i,e.length).replace(r,"$1"+t)}function LF(e){var t=x.useRef(e);t.current=e;var n=x.useRef(function(){for(var r=[],i=arguments.length;i--;)r[i]=arguments[i];return t.current.apply(t,r)});return n.current}function qf(e,t){t===void 0&&(t=!0);var n=e[0]==="-",r=n&&t;e=e.replace("-","");var i=e.split("."),a=i[0],o=i[1]||"";return{beforeDecimal:a,afterDecimal:o,hasNegation:n,addNegation:r}}function jF(e){if(!e)return e;var t=e[0]==="-";t&&(e=e.substring(1,e.length));var n=e.split("."),r=n[0].replace(/^0+/,"")||"0",i=n[1]||"";return(t?"-":"")+r+(i?"."+i:"")}function I4(e,t,n){for(var r="",i=n?"0":"",a=0;a<=t-1;a++)r+=e[a]||i;return r}function Xm(e,t){return Array(t+1).join(e)}function _4(e){var t=e+"",n=t[0]==="-"?"-":"";n&&(t=t.substring(1));var r=t.split(/[eE]/g),i=r[0],a=r[1];if(a=Number(a),!a)return n+i;i=i.replace(".","");var o=1+a,s=i.length;return o<0?i="0."+Xm("0",Math.abs(o))+i:o>=s?i=i+Xm("0",o-s):i=(i.substring(0,o)||"0")+"."+i.substring(o),n+i}function Ym(e,t,n){if(["","-"].indexOf(e)!==-1)return e;var r=(e.indexOf(".")!==-1||n)&&t,i=qf(e),a=i.beforeDecimal,o=i.afterDecimal,s=i.hasNegation,l=parseFloat("0."+(o||"0")),u=o.length<=t?"0."+o:l.toFixed(t),c=u.split("."),d=a;a&&Number(c[0])&&(d=a.split("").reverse().reduce(function(m,p,b){return m.length>b?(Number(m[0])+Number(p)).toString()+m.substring(1,m.length):p+m},c[0]));var h=I4(c[1]||"",t,n),f=s?"-":"",g=r?".":"";return""+f+d+g+h}function Cr(e,t){if(e.value=e.value,e!==null){if(e.createTextRange){var n=e.createTextRange();return n.move("character",t),n.select(),!0}return e.selectionStart||e.selectionStart===0?(e.focus(),e.setSelectionRange(t,t),!0):(e.focus(),!1)}}var $4=BF(function(e,t){for(var n=0,r=0,i=e.length,a=t.length;e[n]===t[n]&&n<i;)n++;for(;e[i-1-r]===t[a-1-r]&&a-r>n&&i-r>n;)r++;return{from:{start:n,end:i-r},to:{start:n,end:a-r}}}),HF=function(e,t){var n=Math.min(e.selectionStart,t);return{from:{start:n,end:e.selectionEnd},to:{start:n,end:t}}};function WF(e,t,n){return Math.min(Math.max(e,t),n)}function bc(e){return Math.max(e.selectionStart,e.selectionEnd)}function zF(){return typeof navigator<"u"&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}function R4(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function A4(e,t){return e===void 0&&(e=" "),typeof e=="string"?e:e[t]||" "}function GF(e){var t=e.currentValue,n=e.formattedValue,r=e.currentValueIndex,i=e.formattedValueIndex;return t[r]===n[i]}function ZF(e,t,n,r,i,a,o){o===void 0&&(o=GF);var s=i.findIndex(function(w){return w}),l=e.slice(0,s);!t&&!n.startsWith(l)&&(t=l,n=l+n,r=r+l.length);for(var u=n.length,c=e.length,d={},h=new Array(u),f=0;f<u;f++){h[f]=-1;for(var g=0,m=c;g<m;g++){var p=o({currentValue:n,lastValue:t,formattedValue:e,currentValueIndex:f,formattedValueIndex:g});if(p&&d[g]!==!0){h[f]=g,d[g]=!0;break}}}for(var b=r;b<u&&(h[b]===-1||!a(n[b]));)b++;var v=b===u||h[b]===-1?c:h[b];for(b=r-1;b>0&&h[b]===-1;)b--;var y=b===-1||h[b]===-1?0:h[b]+1;return y>v?v:r-y<v-r?y:v}function Bl(e,t,n,r){var i=e.length;if(t=WF(t,0,i),r==="left"){for(;t>=0&&!n[t];)t--;t===-1&&(t=n.indexOf(!0))}else{for(;t<=i&&!n[t];)t++;t>i&&(t=n.lastIndexOf(!0))}return t===-1&&(t=i),t}function XF(e){for(var t=Array.from({length:e.length+1}).map(function(){return!0}),n=0,r=t.length;n<r;n++)t[n]=!!(bi(e[n])||bi(e[n-1]));return t}function F4(e,t,n,r,i,a){a===void 0&&(a=nr);var o=LF(function(g,m){var p,b;return S4(g)?(b="",p=""):typeof g=="number"||m?(b=typeof g=="number"?_4(g):g,p=r(b)):(b=i(g,void 0),p=r(b)),{formattedValue:p,numAsString:b}}),s=x.useState(function(){return o(ui(e)?t:e,n)}),l=s[0],u=s[1],c=function(g,m){g.formattedValue!==l.formattedValue&&u({formattedValue:g.formattedValue,numAsString:g.value}),a(g,m)},d=e,h=n;ui(e)&&(d=l.numAsString,h=!0);var f=o(d,h);return x.useMemo(function(){u(f)},[f.formattedValue]),[l,c]}function YF(e){return e.replace(/[^0-9]/g,"")}function UF(e){return e}function P4(e){var t=e.type;t===void 0&&(t="text");var n=e.displayType;n===void 0&&(n="input");var r=e.customInput,i=e.renderText,a=e.getInputRef,o=e.format;o===void 0&&(o=UF);var s=e.removeFormatting;s===void 0&&(s=YF);var l=e.defaultValue,u=e.valueIsNumericString,c=e.onValueChange,d=e.isAllowed,h=e.onChange;h===void 0&&(h=nr);var f=e.onKeyDown;f===void 0&&(f=nr);var g=e.onMouseUp;g===void 0&&(g=nr);var m=e.onFocus;m===void 0&&(m=nr);var p=e.onBlur;p===void 0&&(p=nr);var b=e.value,v=e.getCaretBoundary;v===void 0&&(v=XF);var y=e.isValidInputCharacter;y===void 0&&(y=bi);var w=e.isCharacterSame,C=Qf(e,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter","isCharacterSame"]),E=F4(b,l,!!u,o,s,c),I=E[0],D=I.formattedValue,_=I.numAsString,F=E[1],$=x.useRef(),P=x.useRef({formattedValue:D,numAsString:_}),M=function(ee,ne){P.current={formattedValue:ee.formattedValue,numAsString:ee.value},F(ee,ne)},A=x.useState(!1),B=A[0],T=A[1],R=x.useRef(null),O=x.useRef({setCaretTimeout:null,focusTimeout:null});x.useEffect(function(){return T(!0),function(){clearTimeout(O.current.setCaretTimeout),clearTimeout(O.current.focusTimeout)}},[]);var H=o,L=function(ee,ne){var he=parseFloat(ne);return{formattedValue:ee,value:ne,floatValue:isNaN(he)?void 0:he}},Z=function(ee,ne,he){ee.selectionStart===0&&ee.selectionEnd===ee.value.length||(Cr(ee,ne),O.current.setCaretTimeout=setTimeout(function(){ee.value===he&&ee.selectionStart!==ne&&Cr(ee,ne)},0))},V=function(ee,ne,he){return Bl(ee,ne,v(ee),he)},W=function(ee,ne,he){var Oe=v(ne),ut=ZF(ne,D,ee,he,Oe,y,w);return ut=Bl(ne,ut,Oe),ut},q=function(ee){var ne=ee.formattedValue;ne===void 0&&(ne="");var he=ee.input,Oe=ee.source,ut=ee.event,Se=ee.numAsString,xe;if(he){var Vt=ee.inputValue||he.value,Ot=bc(he);he.value=ne,xe=W(Vt,ne,Ot),xe!==void 0&&Z(he,xe,ne)}ne!==D&&M(L(ne,Se),{event:ut,source:Oe})};x.useEffect(function(){var ee=P.current,ne=ee.formattedValue,he=ee.numAsString;(D!==ne||_!==he)&&M(L(D,_),{event:void 0,source:Io.props})},[D,_]);var Y=R.current?bc(R.current):void 0,N=typeof window<"u"?x.useLayoutEffect:x.useEffect;N(function(){var ee=R.current;if(D!==P.current.formattedValue&&ee){var ne=W(P.current.formattedValue,D,Y);ee.value=D,Z(ee,ne,D)}},[D]);var G=function(ee,ne,he){var Oe=ne.target,ut=$.current?HF($.current,Oe.selectionEnd):$4(D,ee),Se=Object.assign(Object.assign({},ut),{lastValue:D}),xe=s(ee,Se),Vt=H(xe);if(xe=s(Vt,void 0),d&&!d(L(Vt,xe))){var Ot=ne.target,Nt=bc(Ot),ln=W(ee,D,Nt);return Ot.value=D,Z(Ot,ln,D),!1}return q({formattedValue:Vt,numAsString:xe,inputValue:ee,event:ne,source:he,input:ne.target}),!0},J=function(ee,ne){ne===void 0&&(ne=0);var he=ee.selectionStart,Oe=ee.selectionEnd;$.current={selectionStart:he,selectionEnd:Oe+ne}},re=function(ee){var ne=ee.target,he=ne.value,Oe=G(he,ee,Io.event);Oe&&h(ee),$.current=void 0},fe=function(ee){var ne=ee.target,he=ee.key,Oe=ne.selectionStart,ut=ne.selectionEnd,Se=ne.value;Se===void 0&&(Se="");var xe;he==="ArrowLeft"||he==="Backspace"?xe=Math.max(Oe-1,0):he==="ArrowRight"?xe=Math.min(Oe+1,Se.length):he==="Delete"&&(xe=Oe);var Vt=0;he==="Delete"&&Oe===ut&&(Vt=1);var Ot=he==="ArrowLeft"||he==="ArrowRight";if(xe===void 0||Oe!==ut&&!Ot){f(ee),J(ne,Vt);return}var Nt=xe;if(Ot){var ln=he==="ArrowLeft"?"left":"right";Nt=V(Se,xe,ln),Nt!==xe&&ee.preventDefault()}else he==="Delete"&&!y(Se[xe])?Nt=V(Se,xe,"right"):he==="Backspace"&&!y(Se[xe])&&(Nt=V(Se,xe,"left"));Nt!==xe&&Z(ne,Nt,Se),f(ee),J(ne,Vt)},le=function(ee){var ne=ee.target,he=function(){var Oe=ne.selectionStart,ut=ne.selectionEnd,Se=ne.value;if(Se===void 0&&(Se=""),Oe===ut){var xe=V(Se,Oe);xe!==Oe&&Z(ne,xe,Se)}};he(),requestAnimationFrame(function(){he()}),g(ee),J(ne)},z=function(ee){ee.persist&&ee.persist();var ne=ee.target,he=ee.currentTarget;R.current=ne,O.current.focusTimeout=setTimeout(function(){var Oe=ne.selectionStart,ut=ne.selectionEnd,Se=ne.value;Se===void 0&&(Se="");var xe=V(Se,Oe);xe!==Oe&&!(Oe===0&&ut===Se.length)&&Z(ne,xe,Se),m(Object.assign(Object.assign({},ee),{currentTarget:he}))},0)},Ae=function(ee){R.current=null,clearTimeout(O.current.focusTimeout),clearTimeout(O.current.setCaretTimeout),p(ee)},Me=B&&zF()?"numeric":void 0,Xe=Object.assign({inputMode:Me},C,{type:t,value:D,onChange:re,onKeyDown:fe,onMouseUp:le,onFocus:z,onBlur:Ae});if(n==="text")return i?x.createElement(x.Fragment,null,i(D,C)||null):x.createElement("span",Object.assign({},C,{ref:a}),D);if(r){var qe=r;return x.createElement(qe,Object.assign({},Xe,{ref:a}))}return x.createElement("input",Object.assign({},Xe,{ref:a}))}function Um(e,t){var n=t.decimalScale,r=t.fixedDecimalScale,i=t.prefix;i===void 0&&(i="");var a=t.suffix;a===void 0&&(a="");var o=t.allowNegative,s=t.thousandsGroupStyle;if(s===void 0&&(s="thousand"),e===""||e==="-")return e;var l=yu(t),u=l.thousandSeparator,c=l.decimalSeparator,d=n!==0&&e.indexOf(".")!==-1||n&&r,h=qf(e,o),f=h.beforeDecimal,g=h.afterDecimal,m=h.addNegation;return n!==void 0&&(g=I4(g,n,!!r)),u&&(f=NF(f,u,s)),i&&(f=i+f),a&&(g=g+a),m&&(f="-"+f),e=f+(d&&c||"")+g,e}function yu(e){var t=e.decimalSeparator;t===void 0&&(t=".");var n=e.thousandSeparator,r=e.allowedDecimalSeparators;return n===!0&&(n=","),r||(r=[t,"."]),{decimalSeparator:t,thousandSeparator:n,allowedDecimalSeparators:r}}function JF(e,t){e===void 0&&(e="");var n=new RegExp("(-)"),r=new RegExp("(-)(.)*(-)"),i=n.test(e),a=r.test(e);return e=e.replace(/-/g,""),i&&!a&&t&&(e="-"+e),e}function KF(e,t){return new RegExp("(^-)|[0-9]|"+E4(e),"g")}function QF(e,t,n){return e===""?!0:!(t!=null&&t.match(/\d/))&&!(n!=null&&n.match(/\d/))&&typeof e=="string"&&!isNaN(Number(e))}function qF(e,t,n){var r;t===void 0&&(t=R4(e));var i=n.allowNegative,a=n.prefix;a===void 0&&(a="");var o=n.suffix;o===void 0&&(o="");var s=n.decimalScale,l=t.from,u=t.to,c=u.start,d=u.end,h=yu(n),f=h.allowedDecimalSeparators,g=h.decimalSeparator,m=e[d]===g;if(bi(e)&&(e===a||e===o)&&t.lastValue==="")return e;if(d-c===1&&f.indexOf(e[c])!==-1){var p=s===0?"":g;e=e.substring(0,c)+p+e.substring(c+1,e.length)}var b=function(R,O,H){var L=!1,Z=!1;a.startsWith("-")?L=!1:R.startsWith("--")?(L=!1,Z=!0):o.startsWith("-")&&R.length===o.length?L=!1:R[0]==="-"&&(L=!0);var V=L?1:0;return Z&&(V=2),V&&(R=R.substring(V),O-=V,H-=V),{value:R,start:O,end:H,hasNegation:L}},v=b(e,c,d),y=v.hasNegation;r=v,e=r.value,c=r.start,d=r.end;var w=b(t.lastValue,l.start,l.end),C=w.start,E=w.end,I=w.value,D=e.substring(c,d);e.length&&I.length&&(C>I.length-o.length||E<a.length)&&!(D&&o.startsWith(D))&&(e=I);var _=0;e.startsWith(a)?_+=a.length:c<a.length&&(_=c),e=e.substring(_),d-=_;var F=e.length,$=e.length-o.length;e.endsWith(o)?F=$:(d>$||d>e.length-o.length)&&(F=d),e=e.substring(0,F),e=JF(y?"-"+e:e,i),e=(e.match(KF(g))||[]).join("");var P=e.indexOf(g);e=e.replace(new RegExp(E4(g),"g"),function(R,O){return O===P?".":""});var M=qf(e,i),A=M.beforeDecimal,B=M.afterDecimal,T=M.addNegation;return u.end-u.start<l.end-l.start&&A===""&&m&&!parseFloat(B)&&(e=T?"-":""),e}function e7(e,t){var n=t.prefix;n===void 0&&(n="");var r=t.suffix;r===void 0&&(r="");var i=Array.from({length:e.length+1}).map(function(){return!0}),a=e[0]==="-";i.fill(!1,0,n.length+(a?1:0));var o=e.length;return i.fill(!1,o-r.length+1,o+1),i}function t7(e){var t=yu(e),n=t.thousandSeparator,r=t.decimalSeparator,i=e.prefix;i===void 0&&(i="");var a=e.allowNegative;if(a===void 0&&(a=!0),n===r)throw new Error(`
|
130
|
+
`,onClick:v,onMouseOver:()=>g(!0),onMouseOut:()=>g(!1),...l?l(u.slug):{},children:[x.isValidElement(u.svgIcon)&&S.jsx("div",{className:et["item-icon"],children:m||u.subs.length>0&&b||f?u.svgIconActive:u.svgIcon}),S.jsx("div",{className:et["item-label"],children:u.label}),u.subs.length>0&&n&&S.jsxs("div",{className:et["item-icon-subs"],children:[x.isValidElement(i)&&i,typeof i=="function"&&i()]})]}),u.parent===4&&!u.subs.length&&S.jsx("div",{className:et["divider-item-sidebar"]})]})),u.subs.length>0?S.jsxs("div",{className:`${n??b?"":"-mt-2"}`,children:[d,S.jsx("div",{className:`${et["item-subs-sidebar"]} ${!n||!b?et.hidden:""}`,children:u.subs.map(I=>x.createElement(w4,{...I,as:I.manualRoute?"div":I.subs.length>0?e:u.linkComponent,key:I.name,patch:r,iconSubs:i,show:t,open:n,variant:a,setShow:o}))}),[3,4].includes(u.parent)&&S.jsx("div",{className:et["divider-item-sidebar"]})]}):d):S.jsx(S.Fragment,{})},D4=x.forwardRef((e,t)=>{var B;const{as:n,children:r,patch:i="/",iconCompany:a,iconSubs:o,iconCollapse:s,iconCollapseClose:l,modules:u,toleranceWidthIconCompany:c=25,onClickItems:d,variant:h="payhere-brand-base-white",footer:f,withInheritance:g,...m}=e,p=x.useRef(null),b={withCuctomWidthIconCompany:["payhere-brand-base-white","payhere-brand-base-transparent"],variants:{"payhere-brand-base-white":dn["payhere-brand-base-white"],"payhere-brand-base-transparent":dn["payhere-brand-base-transparent"],"laba-white":dn["laba-white"]}},[v,y]=x.useState(null),[w,C]=x.useState(null),[E,I]=x.useState(""),[D,_]=x.useState(),[F,$]=x.useState(0),P=()=>{var O;let T=0;const R=document.getElementById("icon-company-sidebar");(O=R==null?void 0:R.childNodes)==null||O.forEach(H=>{T+=H.getBoundingClientRect().width??0}),_(T+c+"px")},k=()=>{$(window.innerWidth)},A=()=>{y(!w),w?_("auto"):setTimeout(()=>{P()},100)};return x.useEffect(()=>{F>=768?(y(!0),setTimeout(()=>{P()},100)):(y(!1),_("auto"))},[F]),x.useEffect(()=>{typeof v=="boolean"&&C(v)},[v]),x.useImperativeHandle(t,()=>({openSidebar:v,setOpenSidebar:y,handlerClickCollapse:A}),[v,w]),x.useEffect(()=>(i&&i.split("/").length>1&&I(i+"/"),P(),k(),window.addEventListener("resize",k),()=>window.removeEventListener("resize",k)),[]),S.jsxs("div",{className:b.variants[h],...m,ref:p,children:[S.jsxs("div",{id:"1ru-sidebar",className:`${dn.sidebar} ${typeof w=="boolean"&&w?dn["sidebar-open"]:""} ${typeof w=="boolean"&&!w?dn["sidebar-close"]:""}`,children:[x.isValidElement(s)&&S.jsxs("div",{className:dn["button-collaps-sidebar"],onClick:A,children:[v&&s,v?"":x.isValidElement(l)?l:s]}),S.jsx("div",{className:dn["container-icon-company-sidebar"],children:S.jsxs("div",{id:"icon-company-sidebar",className:dn["icon-company-sidebar"],style:{width:D&&b.withCuctomWidthIconCompany.includes(h)?D:"100%"},children:[x.isValidElement(a)&&a,typeof a=="function"&&a({openSidebar:w,setOpenSidebar:y})]})}),S.jsx("div",{className:dn["menu-sidebar"],onMouseOver:()=>{v||C(!0)},onMouseOut:()=>{v||C(!1)},children:u.map(T=>x.createElement(w4,{...T,as:T.manualRoute||T.subs.length>0?"div":n,linkComponent:n,key:T.name,show:E,open:w,patch:i,iconSubs:o,variant:h,setShow:I,onClickItems:d}))}),f&&S.jsxs("div",{className:w?"1ru-opacity-[1]":"1ru-opacity-0",children:[x.isValidElement(f)&&S.jsx("div",{children:f}),typeof f=="function"&&S.jsx("div",{children:f()})]})]}),v&&S.jsx("div",{className:dn["splace-screen"],onClick:A}),S.jsxs("div",{className:dn["content-sidebar"],children:[g&&((B=x.Children)==null?void 0:B.map(r,T=>S.jsx(S.Fragment,{children:x.isValidElement(T)&&S.jsx(S.Fragment,{children:x.cloneElement(T,{openSidebar:v,handlerClickCollapse:A})})}))),!g&&S.jsx(S.Fragment,{children:r})]})]})});D4.displayName="Sidebar";const IF="_collapse_gto9s_1",_F={collapse:IF},$F=({children:e,id:t="id-collapse-1mpacto-react-ui",open:n,className:r,maxCollapsedHeight:i="0px"})=>{const[a,o]=x.useState("1000vh"),s=()=>{var u;const l=((u=document==null?void 0:document.getElementById(t))==null?void 0:u.offsetHeight)??0;o(l||"1000vh")};return x.useEffect(()=>{const l=setTimeout(s,200);return window==null||window.addEventListener("resize",s),window==null||window.addEventListener("load",s),()=>{clearTimeout(l),window==null||window.removeEventListener("resize",s),window==null||window.removeEventListener("load",s)}},[]),S.jsx("div",{className:_F.collapse,style:{maxHeight:n?a:i},children:S.jsx("div",{id:t,className:r??"",children:e})})},RF="_modal_1j8ss_1",zr={"center-layout":"_center-layout_1j8ss_1",modal:RF,"modal-content":"_modal-content_1j8ss_1","with-overlay":"_with-overlay_1j8ss_14","modal-small":"_modal-small_1j8ss_24","modal-regular":"_modal-regular_1j8ss_28","modal-large":"_modal-large_1j8ss_32","modal-show":"_modal-show_1j8ss_36"},AF=({as:e,children:t,id:n="modal",idModal:r="1ru-modal",withOverlay:i=!0,show:a,size:o="regular",className:s,classNameContainer:l,onClose:u,...c})=>{const d=e??"div",h={size:{small:zr["modal-small"],regular:zr["modal-regular"],large:zr["modal-large"]}},f=()=>{typeof u=="function"&&u()};return S.jsx(S.Fragment,{children:a&&document.getElementById(r)&&To.createPortal(S.jsx("div",{id:n,onClick:f,className:`${zr.modal} ${i?zr["with-overlay"]:""} ${a?zr["modal-show"]:""} ${l??""}`,children:S.jsx(d,{onClick:g=>g.stopPropagation(),className:`${zr["modal-content"]} ${h.size[o]} ${s??""}`,...c,children:t})}),document.getElementById(r))})},FF="_dot_10oqk_31",Tn={"timeline-container":"_timeline-container_10oqk_1","no-time":"_no-time_10oqk_11","timeline-content":"_timeline-content_10oqk_15","left-content":"_left-content_10oqk_18","time-content":"_time-content_10oqk_24","text-time":"_text-time_10oqk_27",dot:FF,"right-content":"_right-content_10oqk_34"},PF=({children:e,noTime:t=!1})=>S.jsx("div",{className:`${Tn["timeline-container"]} ${t?Tn["no-time"]:""}`,children:e}),TF=({children:e,time:t,clasName:n,noTime:r=!1})=>S.jsxs("div",{className:Tn["timeline-content"],children:[S.jsx("div",{className:`${Tn["left-content"]} ${r?Tn["no-time"]:""}`,children:S.jsxs("div",{className:Tn["time-content"],children:[!r&&S.jsx("time",{className:Tn["text-time"],children:t??""}),S.jsx("div",{className:Tn.dot})]})}),S.jsx("div",{className:`${Tn["right-content"]} ${r?Tn["no-time"]:""} ${n??""}`,children:e})]}),kF=Object.assign(PF,{TimelineContent:TF}),Zm=(e,t,n)=>{if((t==null?void 0:t.length)>0){const r={};return t.forEach(i=>{e[i]&&(r[i]=e[i]),n&&e[`${n}${i}`]&&(r[`${n}${i}`]=e[`${n}${i}`])}),r}return e},MF=({children:e,onChange:t,prefixNativeValue:n="",defaultNativeValue:r,defaultValue:i,mountedExecuteChange:a=!0,keepKeys:o=[],resetPagination:s=!0,keyPageNumber:l="pageNumber"})=>{const u=s?{[l]:1}:{},[c,d]=x.useState(Zm(i??{},o,"")),[h,f]=x.useState(J2(n,Zm(r??{},o,n))),[g,m]=x.useState(!1),p=(C,E)=>C.map(I=>I[E]).join(","),b=(C,E)=>C.map(I=>I[E]),v=(C,E)=>{const I={};return Object.keys(E).forEach(D=>{I[`${C}${D}`]=E[D]}),I},y=(C,E,I,D)=>{let _=C;const F=v(n,{[E]:C});Array.isArray(C)&&(I==="array-of-object-to-array"?_=b(C,D):I==="array-of-object-to-string"?_=p(C,D):I==="array-to-string"&&(_=_.toString())),typeof t=="function"&&t({...c,[E]:_,...u},{...h,...F}),d($=>({...$,[E]:_})),f($=>({...$,...F}))},w=(C,E)=>{const D=v(n,{...E??C});typeof t=="function"&&t({...c,...C,...u},{...h,...D}),d(_=>({..._,...C})),f(_=>({..._,...D}))};return jo(()=>{!g&&typeof t=="function"&&a&&(t(c,h),m(!0))},[c,h,g,a]),S.jsx(S.Fragment,{children:e({handlerOnChange:y,handlerOnChangeNative:w,value:c,nativeValue:h})})};function Qf(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}var Io;(function(e){e.event="event",e.props="prop"})(Io||(Io={}));function nr(){}function BF(e){var t,n=void 0;return function(){for(var r=[],i=arguments.length;i--;)r[i]=arguments[i];return t&&r.length===t.length&&r.every(function(a,o){return a===t[o]})||(t=r,n=e.apply(void 0,r)),n}}function bi(e){return!!(e||"").match(/\d/)}function ui(e){return e==null}function VF(e){return typeof e=="number"&&isNaN(e)}function S4(e){return ui(e)||VF(e)||typeof e=="number"&&!isFinite(e)}function E4(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function OF(e){switch(e){case"lakh":return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case"wan":return/(\d)(?=(\d{4})+(?!\d))/g;case"thousand":default:return/(\d)(?=(\d{3})+(?!\d))/g}}function NF(e,t,n){var r=OF(n),i=e.search(/[1-9]/);return i=i===-1?e.length:i,e.substring(0,i)+e.substring(i,e.length).replace(r,"$1"+t)}function LF(e){var t=x.useRef(e);t.current=e;var n=x.useRef(function(){for(var r=[],i=arguments.length;i--;)r[i]=arguments[i];return t.current.apply(t,r)});return n.current}function qf(e,t){t===void 0&&(t=!0);var n=e[0]==="-",r=n&&t;e=e.replace("-","");var i=e.split("."),a=i[0],o=i[1]||"";return{beforeDecimal:a,afterDecimal:o,hasNegation:n,addNegation:r}}function jF(e){if(!e)return e;var t=e[0]==="-";t&&(e=e.substring(1,e.length));var n=e.split("."),r=n[0].replace(/^0+/,"")||"0",i=n[1]||"";return(t?"-":"")+r+(i?"."+i:"")}function I4(e,t,n){for(var r="",i=n?"0":"",a=0;a<=t-1;a++)r+=e[a]||i;return r}function Xm(e,t){return Array(t+1).join(e)}function _4(e){var t=e+"",n=t[0]==="-"?"-":"";n&&(t=t.substring(1));var r=t.split(/[eE]/g),i=r[0],a=r[1];if(a=Number(a),!a)return n+i;i=i.replace(".","");var o=1+a,s=i.length;return o<0?i="0."+Xm("0",Math.abs(o))+i:o>=s?i=i+Xm("0",o-s):i=(i.substring(0,o)||"0")+"."+i.substring(o),n+i}function Ym(e,t,n){if(["","-"].indexOf(e)!==-1)return e;var r=(e.indexOf(".")!==-1||n)&&t,i=qf(e),a=i.beforeDecimal,o=i.afterDecimal,s=i.hasNegation,l=parseFloat("0."+(o||"0")),u=o.length<=t?"0."+o:l.toFixed(t),c=u.split("."),d=a;a&&Number(c[0])&&(d=a.split("").reverse().reduce(function(m,p,b){return m.length>b?(Number(m[0])+Number(p)).toString()+m.substring(1,m.length):p+m},c[0]));var h=I4(c[1]||"",t,n),f=s?"-":"",g=r?".":"";return""+f+d+g+h}function Cr(e,t){if(e.value=e.value,e!==null){if(e.createTextRange){var n=e.createTextRange();return n.move("character",t),n.select(),!0}return e.selectionStart||e.selectionStart===0?(e.focus(),e.setSelectionRange(t,t),!0):(e.focus(),!1)}}var $4=BF(function(e,t){for(var n=0,r=0,i=e.length,a=t.length;e[n]===t[n]&&n<i;)n++;for(;e[i-1-r]===t[a-1-r]&&a-r>n&&i-r>n;)r++;return{from:{start:n,end:i-r},to:{start:n,end:a-r}}}),HF=function(e,t){var n=Math.min(e.selectionStart,t);return{from:{start:n,end:e.selectionEnd},to:{start:n,end:t}}};function WF(e,t,n){return Math.min(Math.max(e,t),n)}function bc(e){return Math.max(e.selectionStart,e.selectionEnd)}function zF(){return typeof navigator<"u"&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}function R4(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function A4(e,t){return e===void 0&&(e=" "),typeof e=="string"?e:e[t]||" "}function GF(e){var t=e.currentValue,n=e.formattedValue,r=e.currentValueIndex,i=e.formattedValueIndex;return t[r]===n[i]}function ZF(e,t,n,r,i,a,o){o===void 0&&(o=GF);var s=i.findIndex(function(w){return w}),l=e.slice(0,s);!t&&!n.startsWith(l)&&(t=l,n=l+n,r=r+l.length);for(var u=n.length,c=e.length,d={},h=new Array(u),f=0;f<u;f++){h[f]=-1;for(var g=0,m=c;g<m;g++){var p=o({currentValue:n,lastValue:t,formattedValue:e,currentValueIndex:f,formattedValueIndex:g});if(p&&d[g]!==!0){h[f]=g,d[g]=!0;break}}}for(var b=r;b<u&&(h[b]===-1||!a(n[b]));)b++;var v=b===u||h[b]===-1?c:h[b];for(b=r-1;b>0&&h[b]===-1;)b--;var y=b===-1||h[b]===-1?0:h[b]+1;return y>v?v:r-y<v-r?y:v}function Bl(e,t,n,r){var i=e.length;if(t=WF(t,0,i),r==="left"){for(;t>=0&&!n[t];)t--;t===-1&&(t=n.indexOf(!0))}else{for(;t<=i&&!n[t];)t++;t>i&&(t=n.lastIndexOf(!0))}return t===-1&&(t=i),t}function XF(e){for(var t=Array.from({length:e.length+1}).map(function(){return!0}),n=0,r=t.length;n<r;n++)t[n]=!!(bi(e[n])||bi(e[n-1]));return t}function F4(e,t,n,r,i,a){a===void 0&&(a=nr);var o=LF(function(g,m){var p,b;return S4(g)?(b="",p=""):typeof g=="number"||m?(b=typeof g=="number"?_4(g):g,p=r(b)):(b=i(g,void 0),p=r(b)),{formattedValue:p,numAsString:b}}),s=x.useState(function(){return o(ui(e)?t:e,n)}),l=s[0],u=s[1],c=function(g,m){g.formattedValue!==l.formattedValue&&u({formattedValue:g.formattedValue,numAsString:g.value}),a(g,m)},d=e,h=n;ui(e)&&(d=l.numAsString,h=!0);var f=o(d,h);return x.useMemo(function(){u(f)},[f.formattedValue]),[l,c]}function YF(e){return e.replace(/[^0-9]/g,"")}function UF(e){return e}function P4(e){var t=e.type;t===void 0&&(t="text");var n=e.displayType;n===void 0&&(n="input");var r=e.customInput,i=e.renderText,a=e.getInputRef,o=e.format;o===void 0&&(o=UF);var s=e.removeFormatting;s===void 0&&(s=YF);var l=e.defaultValue,u=e.valueIsNumericString,c=e.onValueChange,d=e.isAllowed,h=e.onChange;h===void 0&&(h=nr);var f=e.onKeyDown;f===void 0&&(f=nr);var g=e.onMouseUp;g===void 0&&(g=nr);var m=e.onFocus;m===void 0&&(m=nr);var p=e.onBlur;p===void 0&&(p=nr);var b=e.value,v=e.getCaretBoundary;v===void 0&&(v=XF);var y=e.isValidInputCharacter;y===void 0&&(y=bi);var w=e.isCharacterSame,C=Qf(e,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter","isCharacterSame"]),E=F4(b,l,!!u,o,s,c),I=E[0],D=I.formattedValue,_=I.numAsString,F=E[1],$=x.useRef(),P=x.useRef({formattedValue:D,numAsString:_}),k=function(ee,ne){P.current={formattedValue:ee.formattedValue,numAsString:ee.value},F(ee,ne)},A=x.useState(!1),B=A[0],T=A[1],R=x.useRef(null),O=x.useRef({setCaretTimeout:null,focusTimeout:null});x.useEffect(function(){return T(!0),function(){clearTimeout(O.current.setCaretTimeout),clearTimeout(O.current.focusTimeout)}},[]);var H=o,L=function(ee,ne){var he=parseFloat(ne);return{formattedValue:ee,value:ne,floatValue:isNaN(he)?void 0:he}},Z=function(ee,ne,he){ee.selectionStart===0&&ee.selectionEnd===ee.value.length||(Cr(ee,ne),O.current.setCaretTimeout=setTimeout(function(){ee.value===he&&ee.selectionStart!==ne&&Cr(ee,ne)},0))},V=function(ee,ne,he){return Bl(ee,ne,v(ee),he)},W=function(ee,ne,he){var Oe=v(ne),ut=ZF(ne,D,ee,he,Oe,y,w);return ut=Bl(ne,ut,Oe),ut},q=function(ee){var ne=ee.formattedValue;ne===void 0&&(ne="");var he=ee.input,Oe=ee.source,ut=ee.event,Se=ee.numAsString,xe;if(he){var Vt=ee.inputValue||he.value,Ot=bc(he);he.value=ne,xe=W(Vt,ne,Ot),xe!==void 0&&Z(he,xe,ne)}ne!==D&&k(L(ne,Se),{event:ut,source:Oe})};x.useEffect(function(){var ee=P.current,ne=ee.formattedValue,he=ee.numAsString;(D!==ne||_!==he)&&k(L(D,_),{event:void 0,source:Io.props})},[D,_]);var Y=R.current?bc(R.current):void 0,N=typeof window<"u"?x.useLayoutEffect:x.useEffect;N(function(){var ee=R.current;if(D!==P.current.formattedValue&&ee){var ne=W(P.current.formattedValue,D,Y);ee.value=D,Z(ee,ne,D)}},[D]);var G=function(ee,ne,he){var Oe=ne.target,ut=$.current?HF($.current,Oe.selectionEnd):$4(D,ee),Se=Object.assign(Object.assign({},ut),{lastValue:D}),xe=s(ee,Se),Vt=H(xe);if(xe=s(Vt,void 0),d&&!d(L(Vt,xe))){var Ot=ne.target,Nt=bc(Ot),ln=W(ee,D,Nt);return Ot.value=D,Z(Ot,ln,D),!1}return q({formattedValue:Vt,numAsString:xe,inputValue:ee,event:ne,source:he,input:ne.target}),!0},J=function(ee,ne){ne===void 0&&(ne=0);var he=ee.selectionStart,Oe=ee.selectionEnd;$.current={selectionStart:he,selectionEnd:Oe+ne}},re=function(ee){var ne=ee.target,he=ne.value,Oe=G(he,ee,Io.event);Oe&&h(ee),$.current=void 0},fe=function(ee){var ne=ee.target,he=ee.key,Oe=ne.selectionStart,ut=ne.selectionEnd,Se=ne.value;Se===void 0&&(Se="");var xe;he==="ArrowLeft"||he==="Backspace"?xe=Math.max(Oe-1,0):he==="ArrowRight"?xe=Math.min(Oe+1,Se.length):he==="Delete"&&(xe=Oe);var Vt=0;he==="Delete"&&Oe===ut&&(Vt=1);var Ot=he==="ArrowLeft"||he==="ArrowRight";if(xe===void 0||Oe!==ut&&!Ot){f(ee),J(ne,Vt);return}var Nt=xe;if(Ot){var ln=he==="ArrowLeft"?"left":"right";Nt=V(Se,xe,ln),Nt!==xe&&ee.preventDefault()}else he==="Delete"&&!y(Se[xe])?Nt=V(Se,xe,"right"):he==="Backspace"&&!y(Se[xe])&&(Nt=V(Se,xe,"left"));Nt!==xe&&Z(ne,Nt,Se),f(ee),J(ne,Vt)},le=function(ee){var ne=ee.target,he=function(){var Oe=ne.selectionStart,ut=ne.selectionEnd,Se=ne.value;if(Se===void 0&&(Se=""),Oe===ut){var xe=V(Se,Oe);xe!==Oe&&Z(ne,xe,Se)}};he(),requestAnimationFrame(function(){he()}),g(ee),J(ne)},z=function(ee){ee.persist&&ee.persist();var ne=ee.target,he=ee.currentTarget;R.current=ne,O.current.focusTimeout=setTimeout(function(){var Oe=ne.selectionStart,ut=ne.selectionEnd,Se=ne.value;Se===void 0&&(Se="");var xe=V(Se,Oe);xe!==Oe&&!(Oe===0&&ut===Se.length)&&Z(ne,xe,Se),m(Object.assign(Object.assign({},ee),{currentTarget:he}))},0)},Ae=function(ee){R.current=null,clearTimeout(O.current.focusTimeout),clearTimeout(O.current.setCaretTimeout),p(ee)},ke=B&&zF()?"numeric":void 0,Xe=Object.assign({inputMode:ke},C,{type:t,value:D,onChange:re,onKeyDown:fe,onMouseUp:le,onFocus:z,onBlur:Ae});if(n==="text")return i?x.createElement(x.Fragment,null,i(D,C)||null):x.createElement("span",Object.assign({},C,{ref:a}),D);if(r){var qe=r;return x.createElement(qe,Object.assign({},Xe,{ref:a}))}return x.createElement("input",Object.assign({},Xe,{ref:a}))}function Um(e,t){var n=t.decimalScale,r=t.fixedDecimalScale,i=t.prefix;i===void 0&&(i="");var a=t.suffix;a===void 0&&(a="");var o=t.allowNegative,s=t.thousandsGroupStyle;if(s===void 0&&(s="thousand"),e===""||e==="-")return e;var l=yu(t),u=l.thousandSeparator,c=l.decimalSeparator,d=n!==0&&e.indexOf(".")!==-1||n&&r,h=qf(e,o),f=h.beforeDecimal,g=h.afterDecimal,m=h.addNegation;return n!==void 0&&(g=I4(g,n,!!r)),u&&(f=NF(f,u,s)),i&&(f=i+f),a&&(g=g+a),m&&(f="-"+f),e=f+(d&&c||"")+g,e}function yu(e){var t=e.decimalSeparator;t===void 0&&(t=".");var n=e.thousandSeparator,r=e.allowedDecimalSeparators;return n===!0&&(n=","),r||(r=[t,"."]),{decimalSeparator:t,thousandSeparator:n,allowedDecimalSeparators:r}}function JF(e,t){e===void 0&&(e="");var n=new RegExp("(-)"),r=new RegExp("(-)(.)*(-)"),i=n.test(e),a=r.test(e);return e=e.replace(/-/g,""),i&&!a&&t&&(e="-"+e),e}function KF(e,t){return new RegExp("(^-)|[0-9]|"+E4(e),"g")}function QF(e,t,n){return e===""?!0:!(t!=null&&t.match(/\d/))&&!(n!=null&&n.match(/\d/))&&typeof e=="string"&&!isNaN(Number(e))}function qF(e,t,n){var r;t===void 0&&(t=R4(e));var i=n.allowNegative,a=n.prefix;a===void 0&&(a="");var o=n.suffix;o===void 0&&(o="");var s=n.decimalScale,l=t.from,u=t.to,c=u.start,d=u.end,h=yu(n),f=h.allowedDecimalSeparators,g=h.decimalSeparator,m=e[d]===g;if(bi(e)&&(e===a||e===o)&&t.lastValue==="")return e;if(d-c===1&&f.indexOf(e[c])!==-1){var p=s===0?"":g;e=e.substring(0,c)+p+e.substring(c+1,e.length)}var b=function(R,O,H){var L=!1,Z=!1;a.startsWith("-")?L=!1:R.startsWith("--")?(L=!1,Z=!0):o.startsWith("-")&&R.length===o.length?L=!1:R[0]==="-"&&(L=!0);var V=L?1:0;return Z&&(V=2),V&&(R=R.substring(V),O-=V,H-=V),{value:R,start:O,end:H,hasNegation:L}},v=b(e,c,d),y=v.hasNegation;r=v,e=r.value,c=r.start,d=r.end;var w=b(t.lastValue,l.start,l.end),C=w.start,E=w.end,I=w.value,D=e.substring(c,d);e.length&&I.length&&(C>I.length-o.length||E<a.length)&&!(D&&o.startsWith(D))&&(e=I);var _=0;e.startsWith(a)?_+=a.length:c<a.length&&(_=c),e=e.substring(_),d-=_;var F=e.length,$=e.length-o.length;e.endsWith(o)?F=$:(d>$||d>e.length-o.length)&&(F=d),e=e.substring(0,F),e=JF(y?"-"+e:e,i),e=(e.match(KF(g))||[]).join("");var P=e.indexOf(g);e=e.replace(new RegExp(E4(g),"g"),function(R,O){return O===P?".":""});var k=qf(e,i),A=k.beforeDecimal,B=k.afterDecimal,T=k.addNegation;return u.end-u.start<l.end-l.start&&A===""&&m&&!parseFloat(B)&&(e=T?"-":""),e}function e7(e,t){var n=t.prefix;n===void 0&&(n="");var r=t.suffix;r===void 0&&(r="");var i=Array.from({length:e.length+1}).map(function(){return!0}),a=e[0]==="-";i.fill(!1,0,n.length+(a?1:0));var o=e.length;return i.fill(!1,o-r.length+1,o+1),i}function t7(e){var t=yu(e),n=t.thousandSeparator,r=t.decimalSeparator,i=e.prefix;i===void 0&&(i="");var a=e.allowNegative;if(a===void 0&&(a=!0),n===r)throw new Error(`
|
131
131
|
Decimal separator can't be same as thousand separator.
|
132
132
|
thousandSeparator: `+n+` (thousandSeparator = {true} is same as thousandSeparator = ",")
|
133
133
|
decimalSeparator: `+r+` (default value for decimalSeparator is .)
|
@@ -135,7 +135,7 @@ You should wrap it with \`css\` like this:
|
|
135
135
|
Prefix can't start with '-' when allowNegative is true.
|
136
136
|
prefix: `+i+`
|
137
137
|
allowNegative: `+a+`
|
138
|
-
`),a=!1),Object.assign(Object.assign({},e),{allowNegative:a})}function n7(e){e=t7(e),e.decimalSeparator,e.allowedDecimalSeparators,e.thousandsGroupStyle;var t=e.suffix,n=e.allowNegative,r=e.allowLeadingZeros,i=e.onKeyDown;i===void 0&&(i=nr);var a=e.onBlur;a===void 0&&(a=nr);var o=e.thousandSeparator,s=e.decimalScale,l=e.fixedDecimalScale,u=e.prefix;u===void 0&&(u="");var c=e.defaultValue,d=e.value,h=e.valueIsNumericString,f=e.onValueChange,g=Qf(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),m=yu(e),p=m.decimalSeparator,b=m.allowedDecimalSeparators,v=function(T){return Um(T,e)},y=function(T,R){return qF(T,R,e)},w=ui(d)?c:d,C=h??QF(w,u,t);ui(d)?ui(c)||(C=C||typeof c=="number"):C=C||typeof d=="number";var E=function(T){return S4(T)?T:(typeof T=="number"&&(T=_4(T)),C&&typeof s=="number"?Ym(T,s,!!l):T)},I=F4(E(d),E(c),!!C,v,y,f),D=I[0],_=D.numAsString,F=D.formattedValue,$=I[1],P=function(T){var R=T.target,O=T.key,H=R.selectionStart,L=R.selectionEnd,Z=R.value;if(Z===void 0&&(Z=""),(O==="Backspace"||O==="Delete")&&L<u.length){T.preventDefault();return}if(H!==L){i(T);return}O==="Backspace"&&Z[0]==="-"&&H===u.length+1&&n&&Cr(R,1),s&&l&&(O==="Backspace"&&Z[H-1]===p?(Cr(R,H-1),T.preventDefault()):O==="Delete"&&Z[H]===p&&T.preventDefault()),b!=null&&b.includes(O)&&Z[H]===p&&Cr(R,H+1);var V=o===!0?",":o;O==="Backspace"&&Z[H-1]===V&&Cr(R,H-1),O==="Delete"&&Z[H]===V&&Cr(R,H+1),i(T)},M=function(T){var R=_;if(R.match(/\d/g)||(R=""),r||(R=jF(R)),l&&s&&(R=Ym(R,s,l)),R!==_){var O=Um(R,e);$({formattedValue:O,value:R,floatValue:parseFloat(R)},{event:T,source:Io.event})}a(T)},A=function(T){return T===p?!0:bi(T)},B=function(T){var R=T.currentValue,O=T.lastValue,H=T.formattedValue,L=T.currentValueIndex,Z=T.formattedValueIndex,V=R[L],W=H[Z],q=$4(O,R),Y=q.to;return L>=Y.start&&L<Y.end&&b&&b.includes(V)&&W===p?!0:V===W};return Object.assign(Object.assign({},g),{value:F,valueIsNumericString:!1,isValidInputCharacter:A,isCharacterSame:B,onValueChange:$,format:v,removeFormatting:y,getCaretBoundary:function(T){return e7(T,e)},onKeyDown:P,onBlur:M})}function r7(e){var t=n7(e);return x.createElement(P4,Object.assign({},t))}function i7(e,t){var n=t.format,r=t.allowEmptyFormatting,i=t.mask,a=t.patternChar;if(a===void 0&&(a="#"),e===""&&!r)return"";for(var o=0,s=n.split(""),l=0,u=n.length;l<u;l++)n[l]===a&&(s[l]=e[o]||A4(i,o),o+=1);return s.join("")}function a7(e,t,n){t===void 0&&(t=R4(e));var r=n.format,i=n.patternChar;i===void 0&&(i="#");var a=t.from,o=t.to,s=t.lastValue;s===void 0&&(s="");var l=function(p){return r[p]===i},u=function(p,b){for(var v="",y=0;y<p.length;y++)l(b+y)&&bi(p[y])&&(v+=p[y]);return v},c=function(p){return p.replace(/[^0-9]/g,"")};if(!r.match(/\d/))return c(e);if((s===""||a.end-a.start===s.length)&&e.length===r.length){for(var d="",h=0;h<e.length;h++)if(l(h))bi(e[h])&&(d+=e[h]);else if(e[h]!==r[h])return c(e);return d}var f=s.substring(0,a.start),g=e.substring(o.start,o.end),m=s.substring(a.end);return""+u(f,0)+c(g)+u(m,a.end)}function o7(e,t){var n=t.format,r=t.mask,i=t.patternChar;i===void 0&&(i="#");var a=Array.from({length:e.length+1}).map(function(){return!0}),o=0,s=-1,l={};n.split("").forEach(function(h,f){var g=void 0;h===i&&(o++,g=A4(r,o-1),s===-1&&e[f]===g&&(s=f)),l[f]=g});for(var u=function(h){return n[h]===i&&e[h]!==l[h]},c=0,d=a.length;c<d;c++)a[c]=c===s||u(c)||u(c-1);return a[n.indexOf(i)]=!0,a}function s7(e){var t=e.mask;if(t){var n=t==="string"?t:t.toString();if(n.match(/\d/g))throw new Error("Mask "+t+" should not contain numeric character;")}}function l7(e,t){return e===""?!0:!(t!=null&&t.match(/\d/))&&typeof e=="string"&&(!!e.match(/^\d+$/)||e==="")}function u7(e){e.mask,e.allowEmptyFormatting;var t=e.format,n=e.inputMode;n===void 0&&(n="numeric");var r=e.onKeyDown;r===void 0&&(r=nr);var i=e.patternChar;i===void 0&&(i="#");var a=e.value,o=e.defaultValue,s=e.valueIsNumericString,l=Qf(e,["mask","allowEmptyFormatting","format","inputMode","onKeyDown","patternChar","value","defaultValue","valueIsNumericString"]);s7(e);var u=function(g){return o7(g,e)},c=function(g){var m=g.key,p=g.target,b=p.selectionStart,v=p.selectionEnd,y=p.value;if(b!==v){r(g);return}var w=b;if(m==="Backspace"||m==="Delete"){var C="right";if(m==="Backspace"){for(;w>0&&t[w-1]!==i;)w--;C="left"}else{for(var E=t.length;w<E&&t[w]!==i;)w++;C="right"}w=Bl(y,w,u(y),C)}else t[w]!==i&&m!=="ArrowLeft"&&m!=="ArrowRight"&&(w=Bl(y,w+1,u(y),"right"));w!==b&&Cr(p,w),r(g)},d=ui(a)?o:a,h=s??l7(d,t),f=Object.assign(Object.assign({},e),{valueIsNumericString:h});return Object.assign(Object.assign({},l),{value:a,defaultValue:o,valueIsNumericString:h,inputMode:n,format:function(g){return i7(g,f)},removeFormatting:function(g,m){return a7(g,m,f)},getCaretBoundary:u,onKeyDown:c})}function c7(e){var t=u7(e);return x.createElement(P4,Object.assign({},t))}const d7=({max:e,min:t,selectedText:n="Rp0",onChange:r,onFocusInput:i,...a})=>S.jsx(r7,{isAllowed:o=>e!==void 0&&tl(e)&&Number(o.value)>e?(typeof r=="function"&&r({target:{value:e.toString()}}),!1):t!==void 0&&tl(t)&&Number(o.value)<t?(typeof r=="function"&&r({target:{value:t.toString()}}),!1):!0,onValueChange:(o,{source:s})=>{typeof r=="function"&&s.includes("event")&&r({target:{value:o.value}})},decimalSeparator:",",thousandSeparator:".",decimalScale:2,valueIsNumericString:!0,thousandsGroupStyle:"thousand",onFocus:o=>{var s;((s=o==null?void 0:o.target)==null?void 0:s.value)===n&&(typeof i=="function"?i(""):typeof r=="function"&&r({target:{value:""}}))},...a}),f7=({children:e,containerId:t="portal-root"})=>{const[n,r]=x.useState(null);return x.useEffect(()=>{let i=document.getElementById(t),a=!1;return i||(i=document.createElement("div"),i.id=t,document.body.appendChild(i),a=!0),r(i),()=>{a&&i&&document.body.removeChild(i)}},[t]),n?To.createPortal(e,n):null},h7={"button-remove":"_button-remove_1o2yg_1"},g7=()=>S.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:S.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.19544 6.19126C6.32045 6.06628 6.48999 5.99607 6.66677 5.99607C6.84354 5.99607 7.01308 6.06628 7.1381 6.19126L10.0001 9.05326L12.8621 6.19126C12.9236 6.12758 12.9972 6.0768 13.0785 6.04186C13.1598 6.00692 13.2473 5.98853 13.3358 5.98776C13.4244 5.98699 13.5121 6.00386 13.5941 6.03738C13.676 6.0709 13.7504 6.1204 13.813 6.18299C13.8756 6.24559 13.9251 6.32002 13.9587 6.40195C13.9922 6.48389 14.009 6.57167 14.0083 6.66019C14.0075 6.74871 13.9891 6.83619 13.9542 6.91753C13.9192 6.99886 13.8684 7.07243 13.8048 7.13392L10.9428 9.99592L13.8048 12.8579C13.9262 12.9837 13.9934 13.1521 13.9919 13.3269C13.9904 13.5017 13.9203 13.6689 13.7966 13.7925C13.673 13.9161 13.5058 13.9862 13.331 13.9877C13.1562 13.9892 12.9878 13.922 12.8621 13.8006L10.0001 10.9386L7.1381 13.8006C7.01237 13.922 6.84397 13.9892 6.66917 13.9877C6.49437 13.9862 6.32716 13.9161 6.20356 13.7925C6.07995 13.6689 6.00984 13.5017 6.00832 13.3269C6.0068 13.1521 6.074 12.9837 6.19544 12.8579L9.05744 9.99592L6.19544 7.13392C6.07045 7.00891 6.00024 6.83937 6.00024 6.66259C6.00024 6.48581 6.07045 6.31628 6.19544 6.19126Z",fill:"#212121"})}),m7=()=>S.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:S.jsx("path",{d:"M2 11.3334V4.66671C2 4.31309 2.14048 3.97395 2.39052 3.7239C2.64057 3.47385 2.97971 3.33337 3.33333 3.33337H7.33333L8.66667 4.66671H12.6667C13.0203 4.66671 13.3594 4.80718 13.6095 5.05723C13.8595 5.30728 14 5.64642 14 6.00004V11.3334C14 11.687 13.8595 12.0261 13.6095 12.2762C13.3594 12.5262 13.0203 12.6667 12.6667 12.6667H3.33333C2.97971 12.6667 2.64057 12.5262 2.39052 12.2762C2.14048 12.0261 2 11.687 2 11.3334Z",stroke:"#9E9E9E",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),T4=e=>{const t=x.useRef(null),{fileName:n,onChange:r,maxFile:i,maxSize:a=2,validateFile:o,error:s,label:l,inputProps:u}=e,c=o||["image/png","image/jpeg","image/jpg"],[d,h]=x.useState(""),f=p=>{if(p!=null&&p.length){const b=p[0],v=b.size/1024/1024;if(!c.some(y=>{var w;return(w=p[0].type)==null?void 0:w.includes(y)}))h("Berkas tidak didukung, silahkan pilih file kembali.");else if(v>a){const y=`${p.length>1?"Jumlah u":"U"}kuran berkas tidak boleh melebihi ${a}MB.`;h(y)}else{if(!(t!=null&&t.current))return;h(""),r(b),t.current.value=""}}},g=p=>{var b;p.preventDefault(),t!=null&&t.current&&((b=t.current)==null||b.click())},m=p=>{p.preventDefault(),t!=null&&t.current&&(r(null),t.current.value="")};return S.jsxs(S.Fragment,{children:[S.jsx("input",{accept:c==null?void 0:c.join(", "),ref:t,hidden:!0,type:"file",max:i,onChange:p=>{f(p.target.files)}}),S.jsx(Gd,{sizeInput:"medium",placeholder:"Pilih Berkas",label:l,value:n,readOnly:!0,onClick:p=>g(p),startIcon:S.jsx(m7,{}),endIcon:n&&S.jsx("div",{className:h7["button-remove"],onClick:p=>m(p),children:S.jsx(g7,{})}),error:s??d,...u})]})};T4.displayName="UploadFile";const p7=({children:e,initialVisibleCount:t,maxWidth:n,moreElement:r,style:i={},className:a,gap:o=0,gapStyle:s,...l})=>{const[u,c]=x.useState(e),[d,h]=x.useState(0),f=x.useRef(new Array(t).fill(null)),g=x.useRef(null),m=x.useCallback(()=>{var C;const v=((C=g.current)==null?void 0:C.offsetWidth)??0;let y=0,w=0;f.current.forEach((E,I)=>{E&&(y+=E.offsetWidth,I>0&&(y+=o),y<=v&&w++)}),c(x.Children.toArray(e).slice(0,w)),h(x.Children.count(e)-w)},[e,o]);x.useEffect(()=>(m(),window.addEventListener("resize",m),()=>{window.removeEventListener("resize",m)}),[m]);const p=x.useMemo(()=>x.Children.map(u,(v,y)=>x.cloneElement(v,{ref:w=>f.current[y]=w,key:`child-${y}`})),[u]),b={overflow:"hidden",display:"flex",flexWrap:"nowrap",gap:s??0,...i};return n&&(b.maxWidth=n),S.jsxs(S.Fragment,{children:[S.jsx("div",{ref:g,style:b,className:a??"",...l,children:p}),d>0&&S.jsx(S.Fragment,{children:r(d)})]})},b7="_container_1wopr_1",v7="_image_1wopr_5",Yn={container:b7,"image-content":"_image-content_1wopr_5",image:v7,"text-desc":"_text-desc_1wopr_13","action-content":"_action-content_1wopr_20","button-content":"_button-content_1wopr_24","text-error":"_text-error_1wopr_31"},y7=({className:e})=>S.jsx("svg",{viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",className:`1ru-h-5 1ru-w-5 1ru-text-red-600 ${e??""}`,fill:"currentColor",children:S.jsx("g",{id:"x",children:S.jsx("path",{id:"Vector",fillRule:"evenodd",clipRule:"evenodd",d:`M6.19544 6.19126C6.32045 6.06628 6.48999 5.99607 6.66677 5.99607C6.84354 5.99607 7.01308 6.06628 7.1381 \r
|
138
|
+
`),a=!1),Object.assign(Object.assign({},e),{allowNegative:a})}function n7(e){e=t7(e),e.decimalSeparator,e.allowedDecimalSeparators,e.thousandsGroupStyle;var t=e.suffix,n=e.allowNegative,r=e.allowLeadingZeros,i=e.onKeyDown;i===void 0&&(i=nr);var a=e.onBlur;a===void 0&&(a=nr);var o=e.thousandSeparator,s=e.decimalScale,l=e.fixedDecimalScale,u=e.prefix;u===void 0&&(u="");var c=e.defaultValue,d=e.value,h=e.valueIsNumericString,f=e.onValueChange,g=Qf(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),m=yu(e),p=m.decimalSeparator,b=m.allowedDecimalSeparators,v=function(T){return Um(T,e)},y=function(T,R){return qF(T,R,e)},w=ui(d)?c:d,C=h??QF(w,u,t);ui(d)?ui(c)||(C=C||typeof c=="number"):C=C||typeof d=="number";var E=function(T){return S4(T)?T:(typeof T=="number"&&(T=_4(T)),C&&typeof s=="number"?Ym(T,s,!!l):T)},I=F4(E(d),E(c),!!C,v,y,f),D=I[0],_=D.numAsString,F=D.formattedValue,$=I[1],P=function(T){var R=T.target,O=T.key,H=R.selectionStart,L=R.selectionEnd,Z=R.value;if(Z===void 0&&(Z=""),(O==="Backspace"||O==="Delete")&&L<u.length){T.preventDefault();return}if(H!==L){i(T);return}O==="Backspace"&&Z[0]==="-"&&H===u.length+1&&n&&Cr(R,1),s&&l&&(O==="Backspace"&&Z[H-1]===p?(Cr(R,H-1),T.preventDefault()):O==="Delete"&&Z[H]===p&&T.preventDefault()),b!=null&&b.includes(O)&&Z[H]===p&&Cr(R,H+1);var V=o===!0?",":o;O==="Backspace"&&Z[H-1]===V&&Cr(R,H-1),O==="Delete"&&Z[H]===V&&Cr(R,H+1),i(T)},k=function(T){var R=_;if(R.match(/\d/g)||(R=""),r||(R=jF(R)),l&&s&&(R=Ym(R,s,l)),R!==_){var O=Um(R,e);$({formattedValue:O,value:R,floatValue:parseFloat(R)},{event:T,source:Io.event})}a(T)},A=function(T){return T===p?!0:bi(T)},B=function(T){var R=T.currentValue,O=T.lastValue,H=T.formattedValue,L=T.currentValueIndex,Z=T.formattedValueIndex,V=R[L],W=H[Z],q=$4(O,R),Y=q.to;return L>=Y.start&&L<Y.end&&b&&b.includes(V)&&W===p?!0:V===W};return Object.assign(Object.assign({},g),{value:F,valueIsNumericString:!1,isValidInputCharacter:A,isCharacterSame:B,onValueChange:$,format:v,removeFormatting:y,getCaretBoundary:function(T){return e7(T,e)},onKeyDown:P,onBlur:k})}function r7(e){var t=n7(e);return x.createElement(P4,Object.assign({},t))}function i7(e,t){var n=t.format,r=t.allowEmptyFormatting,i=t.mask,a=t.patternChar;if(a===void 0&&(a="#"),e===""&&!r)return"";for(var o=0,s=n.split(""),l=0,u=n.length;l<u;l++)n[l]===a&&(s[l]=e[o]||A4(i,o),o+=1);return s.join("")}function a7(e,t,n){t===void 0&&(t=R4(e));var r=n.format,i=n.patternChar;i===void 0&&(i="#");var a=t.from,o=t.to,s=t.lastValue;s===void 0&&(s="");var l=function(p){return r[p]===i},u=function(p,b){for(var v="",y=0;y<p.length;y++)l(b+y)&&bi(p[y])&&(v+=p[y]);return v},c=function(p){return p.replace(/[^0-9]/g,"")};if(!r.match(/\d/))return c(e);if((s===""||a.end-a.start===s.length)&&e.length===r.length){for(var d="",h=0;h<e.length;h++)if(l(h))bi(e[h])&&(d+=e[h]);else if(e[h]!==r[h])return c(e);return d}var f=s.substring(0,a.start),g=e.substring(o.start,o.end),m=s.substring(a.end);return""+u(f,0)+c(g)+u(m,a.end)}function o7(e,t){var n=t.format,r=t.mask,i=t.patternChar;i===void 0&&(i="#");var a=Array.from({length:e.length+1}).map(function(){return!0}),o=0,s=-1,l={};n.split("").forEach(function(h,f){var g=void 0;h===i&&(o++,g=A4(r,o-1),s===-1&&e[f]===g&&(s=f)),l[f]=g});for(var u=function(h){return n[h]===i&&e[h]!==l[h]},c=0,d=a.length;c<d;c++)a[c]=c===s||u(c)||u(c-1);return a[n.indexOf(i)]=!0,a}function s7(e){var t=e.mask;if(t){var n=t==="string"?t:t.toString();if(n.match(/\d/g))throw new Error("Mask "+t+" should not contain numeric character;")}}function l7(e,t){return e===""?!0:!(t!=null&&t.match(/\d/))&&typeof e=="string"&&(!!e.match(/^\d+$/)||e==="")}function u7(e){e.mask,e.allowEmptyFormatting;var t=e.format,n=e.inputMode;n===void 0&&(n="numeric");var r=e.onKeyDown;r===void 0&&(r=nr);var i=e.patternChar;i===void 0&&(i="#");var a=e.value,o=e.defaultValue,s=e.valueIsNumericString,l=Qf(e,["mask","allowEmptyFormatting","format","inputMode","onKeyDown","patternChar","value","defaultValue","valueIsNumericString"]);s7(e);var u=function(g){return o7(g,e)},c=function(g){var m=g.key,p=g.target,b=p.selectionStart,v=p.selectionEnd,y=p.value;if(b!==v){r(g);return}var w=b;if(m==="Backspace"||m==="Delete"){var C="right";if(m==="Backspace"){for(;w>0&&t[w-1]!==i;)w--;C="left"}else{for(var E=t.length;w<E&&t[w]!==i;)w++;C="right"}w=Bl(y,w,u(y),C)}else t[w]!==i&&m!=="ArrowLeft"&&m!=="ArrowRight"&&(w=Bl(y,w+1,u(y),"right"));w!==b&&Cr(p,w),r(g)},d=ui(a)?o:a,h=s??l7(d,t),f=Object.assign(Object.assign({},e),{valueIsNumericString:h});return Object.assign(Object.assign({},l),{value:a,defaultValue:o,valueIsNumericString:h,inputMode:n,format:function(g){return i7(g,f)},removeFormatting:function(g,m){return a7(g,m,f)},getCaretBoundary:u,onKeyDown:c})}function c7(e){var t=u7(e);return x.createElement(P4,Object.assign({},t))}const d7=({max:e,min:t,selectedText:n="Rp0",onChange:r,onFocusInput:i,...a})=>S.jsx(r7,{isAllowed:o=>e!==void 0&&tl(e)&&Number(o.value)>e?(typeof r=="function"&&r({target:{value:e.toString()}}),!1):t!==void 0&&tl(t)&&Number(o.value)<t?(typeof r=="function"&&r({target:{value:t.toString()}}),!1):!0,onValueChange:(o,{source:s})=>{typeof r=="function"&&s.includes("event")&&r({target:{value:o.value}})},decimalSeparator:",",thousandSeparator:".",decimalScale:2,valueIsNumericString:!0,thousandsGroupStyle:"thousand",onFocus:o=>{var s;((s=o==null?void 0:o.target)==null?void 0:s.value)===n&&(typeof i=="function"?i(""):typeof r=="function"&&r({target:{value:""}}))},...a}),f7=({children:e,containerId:t="portal-root"})=>{const[n,r]=x.useState(null);return x.useEffect(()=>{let i=document.getElementById(t),a=!1;return i||(i=document.createElement("div"),i.id=t,document.body.appendChild(i),a=!0),r(i),()=>{a&&i&&document.body.removeChild(i)}},[t]),n?To.createPortal(e,n):null},h7={"button-remove":"_button-remove_1o2yg_1"},g7=()=>S.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:S.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.19544 6.19126C6.32045 6.06628 6.48999 5.99607 6.66677 5.99607C6.84354 5.99607 7.01308 6.06628 7.1381 6.19126L10.0001 9.05326L12.8621 6.19126C12.9236 6.12758 12.9972 6.0768 13.0785 6.04186C13.1598 6.00692 13.2473 5.98853 13.3358 5.98776C13.4244 5.98699 13.5121 6.00386 13.5941 6.03738C13.676 6.0709 13.7504 6.1204 13.813 6.18299C13.8756 6.24559 13.9251 6.32002 13.9587 6.40195C13.9922 6.48389 14.009 6.57167 14.0083 6.66019C14.0075 6.74871 13.9891 6.83619 13.9542 6.91753C13.9192 6.99886 13.8684 7.07243 13.8048 7.13392L10.9428 9.99592L13.8048 12.8579C13.9262 12.9837 13.9934 13.1521 13.9919 13.3269C13.9904 13.5017 13.9203 13.6689 13.7966 13.7925C13.673 13.9161 13.5058 13.9862 13.331 13.9877C13.1562 13.9892 12.9878 13.922 12.8621 13.8006L10.0001 10.9386L7.1381 13.8006C7.01237 13.922 6.84397 13.9892 6.66917 13.9877C6.49437 13.9862 6.32716 13.9161 6.20356 13.7925C6.07995 13.6689 6.00984 13.5017 6.00832 13.3269C6.0068 13.1521 6.074 12.9837 6.19544 12.8579L9.05744 9.99592L6.19544 7.13392C6.07045 7.00891 6.00024 6.83937 6.00024 6.66259C6.00024 6.48581 6.07045 6.31628 6.19544 6.19126Z",fill:"#212121"})}),m7=()=>S.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:S.jsx("path",{d:"M2 11.3334V4.66671C2 4.31309 2.14048 3.97395 2.39052 3.7239C2.64057 3.47385 2.97971 3.33337 3.33333 3.33337H7.33333L8.66667 4.66671H12.6667C13.0203 4.66671 13.3594 4.80718 13.6095 5.05723C13.8595 5.30728 14 5.64642 14 6.00004V11.3334C14 11.687 13.8595 12.0261 13.6095 12.2762C13.3594 12.5262 13.0203 12.6667 12.6667 12.6667H3.33333C2.97971 12.6667 2.64057 12.5262 2.39052 12.2762C2.14048 12.0261 2 11.687 2 11.3334Z",stroke:"#9E9E9E",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),T4=e=>{const t=x.useRef(null),{fileName:n,onChange:r,maxFile:i,maxSize:a=2,validateFile:o,error:s,label:l,inputProps:u}=e,c=o||["image/png","image/jpeg","image/jpg"],[d,h]=x.useState(""),f=p=>{if(p!=null&&p.length){const b=p[0],v=b.size/1024/1024;if(!c.some(y=>{var w;return(w=p[0].type)==null?void 0:w.includes(y)}))h("Berkas tidak didukung, silahkan pilih file kembali.");else if(v>a){const y=`${p.length>1?"Jumlah u":"U"}kuran berkas tidak boleh melebihi ${a}MB.`;h(y)}else{if(!(t!=null&&t.current))return;h(""),r(b),t.current.value=""}}},g=p=>{var b;p.preventDefault(),t!=null&&t.current&&((b=t.current)==null||b.click())},m=p=>{p.preventDefault(),t!=null&&t.current&&(r(null),t.current.value="")};return S.jsxs(S.Fragment,{children:[S.jsx("input",{accept:c==null?void 0:c.join(", "),ref:t,hidden:!0,type:"file",max:i,onChange:p=>{f(p.target.files)}}),S.jsx(Gd,{sizeInput:"medium",placeholder:"Pilih Berkas",label:l,value:n,readOnly:!0,onClick:p=>g(p),startIcon:S.jsx(m7,{}),endIcon:n&&S.jsx("div",{className:h7["button-remove"],onClick:p=>m(p),children:S.jsx(g7,{})}),error:s??d,...u})]})};T4.displayName="UploadFile";const p7=({children:e,initialVisibleCount:t,maxWidth:n,moreElement:r,style:i={},className:a,gap:o=0,gapStyle:s,...l})=>{const[u,c]=x.useState(e),[d,h]=x.useState(0),f=x.useRef(new Array(t).fill(null)),g=x.useRef(null),m=x.useCallback(()=>{var C;const v=((C=g.current)==null?void 0:C.offsetWidth)??0;let y=0,w=0;f.current.forEach((E,I)=>{E&&(y+=E.offsetWidth,I>0&&(y+=o),y<=v&&w++)}),c(x.Children.toArray(e).slice(0,w)),h(x.Children.count(e)-w)},[e,o]);x.useEffect(()=>(m(),window.addEventListener("resize",m),()=>{window.removeEventListener("resize",m)}),[m]);const p=x.useMemo(()=>x.Children.map(u,(v,y)=>x.cloneElement(v,{ref:w=>f.current[y]=w,key:`child-${y}`})),[u]),b={overflow:"hidden",display:"flex",flexWrap:"nowrap",gap:s??0,...i};return n&&(b.maxWidth=n),S.jsxs(S.Fragment,{children:[S.jsx("div",{ref:g,style:b,className:a??"",...l,children:p}),d>0&&S.jsx(S.Fragment,{children:r(d)})]})},b7="_container_1wopr_1",v7="_image_1wopr_5",Yn={container:b7,"image-content":"_image-content_1wopr_5",image:v7,"text-desc":"_text-desc_1wopr_13","action-content":"_action-content_1wopr_20","button-content":"_button-content_1wopr_24","text-error":"_text-error_1wopr_31"},y7=({className:e})=>S.jsx("svg",{viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",className:`1ru-h-5 1ru-w-5 1ru-text-red-600 ${e??""}`,fill:"currentColor",children:S.jsx("g",{id:"x",children:S.jsx("path",{id:"Vector",fillRule:"evenodd",clipRule:"evenodd",d:`M6.19544 6.19126C6.32045 6.06628 6.48999 5.99607 6.66677 5.99607C6.84354 5.99607 7.01308 6.06628 7.1381 \r
|
139
139
|
6.19126L10.0001 9.05326L12.8621 6.19126C12.9236 6.12758 12.9972 6.0768 13.0785 6.04186C13.1598 6.00692 13.2473 \r
|
140
140
|
5.98853 13.3358 5.98776C13.4244 5.98699 13.5121 6.00386 13.5941 6.03738C13.676 6.0709 13.7504 6.1204 13.813 \r
|
141
141
|
6.18299C13.8756 6.24559 13.9251 6.32002 13.9587 6.40195C13.9922 6.48389 14.009 6.57167 14.0083 6.66019C14.0075 \r
|
@@ -146,32 +146,32 @@ You should wrap it with \`css\` like this:
|
|
146
146
|
13.6689 6.00984 13.5017 6.00832 13.3269C6.0068 13.1521 6.074 12.9837 6.19544 12.8579L9.05744 9.99592L6.19544 \r
|
147
147
|
7.13392C6.07045 7.00891 6.00024 6.83937 6.00024 6.66259C6.00024 6.48581 6.07045 6.31628 6.19544 6.19126Z`})})}),x7=({className:e})=>S.jsx("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:`1ru-h-5 1ru-w-5 ${e??""}`,children:S.jsx("g",{id:"upload",children:S.jsx("path",{id:"Vector",d:`M3.83337 13.3333V14.1666C3.83337 14.8297 4.09677 15.4656 4.56561 15.9344C5.03445 16.4033 5.67033 \r
|
148
148
|
16.6666 6.33337 16.6666H14.6667C15.3297 16.6666 15.9656 16.4033 16.4345 15.9344C16.9033 15.4656 17.1667 \r
|
149
|
-
14.8297 17.1667 14.1666V13.3333M13.8334 6.66665L10.5 3.33331M10.5 3.33331L7.16671 6.66665M10.5 3.33331V13.3333`,stroke:"#1976D2",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}),C7=({onChange:e,valueUrl:t,validateFile:n,validateFileDesc:r="Max 2MB (.jpg, .jpeg, .png, .svg)",maxSize:i=2,icon:a,desc:o,classNameContainer:s,classNameImage:l,classNameAction:u})=>{const c=x.useRef(null),d=n||["image/png","image/jpeg","image/jpg"],[h,f]=x.useState(""),[g,m]=x.useState(""),p=y=>{if(y!=null&&y.length){const w=y[0],C=w.size/1024/1024;if(!d.some(E=>{var I;return(I=y[0].type)==null?void 0:I.includes(E)}))m("Berkas tidak didukung, silahkan pilih file kembali.");else if(C>i){const E=`${y.length>1?"Jumlah u":"U"}kuran berkas tidak boleh melebihi ${i}MB.`;m(E)}else{if(!(c!=null&&c.current))return;m(""),e(w),f(URL.createObjectURL(w)),c.current.value=""}}},b=y=>{y.preventDefault(),p(y.dataTransfer.files)},v=y=>{y.preventDefault(),c!=null&&c.current&&(typeof e=="function"&&e(null),f(""),c.current.value="")};return S.jsxs("div",{className:`${Yn.container} ${s}`,children:[S.jsx("input",{accept:d==null?void 0:d.join(", "),ref:c,hidden:!0,type:"file",multiple:!1,onChange:y=>{y.target.files&&p(y.target.files)}}),h||t?S.jsx("div",{className:`${Yn["image-content"]} ${l}`,onDrop:b,onDragOver:y=>y.preventDefault(),onDragLeave:y=>y.preventDefault(),children:S.jsx("img",{src:h||t,alt:"upload-image",className:`${Yn.image} ${l}`})}):S.jsxs("div",{className:`${Yn["image-content"]} ${l}`,onDrop:b,onDragOver:y=>y.preventDefault(),onDragLeave:y=>y.preventDefault(),children:[a,S.jsx("div",{className:Yn["text-desc"],children:typeof o=="function"?o():o})]}),S.jsxs("div",{className:Yn["action-content"],children:[S.jsxs("div",{className:`${Yn["button-content"]} ${u}`,children:[(h||t)&&S.jsx(Hn,{variants:"tertiary-red-600",size:"xs",startIcon:S.jsx(y7,{}),onClick:y=>v(y),children:"Hapus"}),S.jsxs(Hn,{variants:"tertiary-blue-700",size:"xs",onClick:()=>{var y;return(y=c.current)==null?void 0:y.click()},startIcon:S.jsx(x7,{}),children:[h||t?"Ganti":"Pilih"," Gambar"]})]}),S.jsx("p",{className:Yn["text-desc"],children:r}),g&&S.jsx("p",{className:Yn["text-error"],children:g})]})]})},w7="
|
149
|
+
14.8297 17.1667 14.1666V13.3333M13.8334 6.66665L10.5 3.33331M10.5 3.33331L7.16671 6.66665M10.5 3.33331V13.3333`,stroke:"#1976D2",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}),C7=({onChange:e,valueUrl:t,validateFile:n,validateFileDesc:r="Max 2MB (.jpg, .jpeg, .png, .svg)",maxSize:i=2,icon:a,desc:o,classNameContainer:s,classNameImage:l,classNameAction:u})=>{const c=x.useRef(null),d=n||["image/png","image/jpeg","image/jpg"],[h,f]=x.useState(""),[g,m]=x.useState(""),p=y=>{if(y!=null&&y.length){const w=y[0],C=w.size/1024/1024;if(!d.some(E=>{var I;return(I=y[0].type)==null?void 0:I.includes(E)}))m("Berkas tidak didukung, silahkan pilih file kembali.");else if(C>i){const E=`${y.length>1?"Jumlah u":"U"}kuran berkas tidak boleh melebihi ${i}MB.`;m(E)}else{if(!(c!=null&&c.current))return;m(""),e(w),f(URL.createObjectURL(w)),c.current.value=""}}},b=y=>{y.preventDefault(),p(y.dataTransfer.files)},v=y=>{y.preventDefault(),c!=null&&c.current&&(typeof e=="function"&&e(null),f(""),c.current.value="")};return S.jsxs("div",{className:`${Yn.container} ${s}`,children:[S.jsx("input",{accept:d==null?void 0:d.join(", "),ref:c,hidden:!0,type:"file",multiple:!1,onChange:y=>{y.target.files&&p(y.target.files)}}),h||t?S.jsx("div",{className:`${Yn["image-content"]} ${l}`,onDrop:b,onDragOver:y=>y.preventDefault(),onDragLeave:y=>y.preventDefault(),children:S.jsx("img",{src:h||t,alt:"upload-image",className:`${Yn.image} ${l}`})}):S.jsxs("div",{className:`${Yn["image-content"]} ${l}`,onDrop:b,onDragOver:y=>y.preventDefault(),onDragLeave:y=>y.preventDefault(),children:[a,S.jsx("div",{className:Yn["text-desc"],children:typeof o=="function"?o():o})]}),S.jsxs("div",{className:Yn["action-content"],children:[S.jsxs("div",{className:`${Yn["button-content"]} ${u}`,children:[(h||t)&&S.jsx(Hn,{variants:"tertiary-red-600",size:"xs",startIcon:S.jsx(y7,{}),onClick:y=>v(y),children:"Hapus"}),S.jsxs(Hn,{variants:"tertiary-blue-700",size:"xs",onClick:()=>{var y;return(y=c.current)==null?void 0:y.click()},startIcon:S.jsx(x7,{}),children:[h||t?"Ganti":"Pilih"," Gambar"]})]}),S.jsx("p",{className:Yn["text-desc"],children:r}),g&&S.jsx("p",{className:Yn["text-error"],children:g})]})]})},w7="_container_qyhmv_1",D7="_label_qyhmv_4",S7="_disabled_qyhmv_9",E7="_textarea_qyhmv_15",I7="_error_qyhmv_41",Et={container:w7,"size-medium":"_size-medium_qyhmv_1",label:D7,disabled:S7,"container-textarea":"_container-textarea_qyhmv_12",textarea:E7,error:I7,"label-error":"_label-error_qyhmv_49","size-medium-border-bottom":"_size-medium-border-bottom_qyhmv_57","size-m":"_size-m_qyhmv_1","solid-blue-300":"_solid-blue-300_qyhmv_169","dashed-blue-300":"_dashed-blue-300_qyhmv_182","solid-laba-blue-10":"_solid-laba-blue-10_qyhmv_192","dashed-laba-blue-10":"_dashed-laba-blue-10_qyhmv_205","border-bottom-laba-blue-08":"_border-bottom-laba-blue-08_qyhmv_215"},k4=x.forwardRef((e,t)=>{const{isRequired:n,classNameContainer:r,className:i,classNameLabel:a,classNameLabelError:o,name:s,id:l,label:u,error:c,height:d,minHeight:h=94,maxHeight:f=150,style:g,sizeInput:m="m",variant:p="solid-blue-300",...b}=e,v=x.useRef(null),y=d1(v,t),w={...g??{},maxHeight:f,height:d??h,minHeight:h},[C,E]=x.useState(!1),I={size:{m:Et["size-m"],medium:Et["size-medium"],"medium-border-bottom":Et["size-medium-border-bottom"]},variant:{"solid-blue-300":{border:0,style:Et["solid-blue-300"]},"dashed-blue-300":{border:3.7,style:Et["dashed-blue-300"]},"solid-laba-blue-10":{border:0,style:Et["solid-laba-blue-10"]},"dashed-laba-blue-10":{border:3.7,style:Et["dashed-laba-blue-10"]},"border-bottom-laba-blue-08":{border:1,style:Et["border-bottom-laba-blue-08"]}}},D=function($){var P;E(!0),(P=e.onFocus)==null||P.call(e,$)},_=function($){var P;E(!1),(P=e.onBlur)==null||P.call(e,$)},F=function($){const P=($==null?void 0:$.target)??v.current;P.style.height="0px",P.style.height=P.scrollHeight+I.variant[p].border+"px"};return c1(()=>(C&&v.current?v.current.addEventListener("input",F):F(),()=>{var $;($=v.current)==null||$.removeEventListener("input",F)}),[C]),S.jsxs("div",{className:`${Et.container}
|
150
150
|
${I.size[m]}
|
151
151
|
${I.variant[p].style}
|
152
152
|
${r??""}`,children:[u&&S.jsxs("label",{htmlFor:l??s,className:`${Et.label} ${b.disabled?Et.disabled:""} ${a??""}`,children:[u," ",n&&S.jsx("span",{className:"1ru-text-laba-red-08",children:"*"})]}),S.jsx("div",{className:`${Et["container-textarea"]}`,children:S.jsx("textarea",{id:l??s,className:` ${c?Et.error:""}
|
153
153
|
${Et.textarea}
|
154
154
|
${i??""}`,ref:y,style:w,...b,onFocus:D,onBlur:_})}),c&&S.jsx("label",{className:`${Et["label-error"]}
|
155
|
-
${b.disabled?Et.disabled:""} ${o??""}`,children:c})]})});
|
155
|
+
${b.disabled?Et.disabled:""} ${o??""}`,children:c})]})});k4.displayName="Textarea";/*!
|
156
156
|
* @kurkle/color v0.3.2
|
157
157
|
* https://github.com/kurkle/color#readme
|
158
158
|
* (c) 2023 Jukka Kurkela
|
159
159
|
* Released under the MIT License
|
160
|
-
*/function Uo(e){return e+.5|0}const Er=(e,t,n)=>Math.max(Math.min(e,n),t);function
|
160
|
+
*/function Uo(e){return e+.5|0}const Er=(e,t,n)=>Math.max(Math.min(e,n),t);function Ma(e){return Er(Uo(e*2.55),0,255)}function $r(e){return Er(Uo(e*255),0,255)}function qn(e){return Er(Uo(e/2.55)/100,0,1)}function Jm(e){return Er(Uo(e*100),0,100)}const fn={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},Dd=[..."0123456789ABCDEF"],_7=e=>Dd[e&15],$7=e=>Dd[(e&240)>>4]+Dd[e&15],xs=e=>(e&240)>>4===(e&15),R7=e=>xs(e.r)&&xs(e.g)&&xs(e.b)&&xs(e.a);function A7(e){var t=e.length,n;return e[0]==="#"&&(t===4||t===5?n={r:255&fn[e[1]]*17,g:255&fn[e[2]]*17,b:255&fn[e[3]]*17,a:t===5?fn[e[4]]*17:255}:(t===7||t===9)&&(n={r:fn[e[1]]<<4|fn[e[2]],g:fn[e[3]]<<4|fn[e[4]],b:fn[e[5]]<<4|fn[e[6]],a:t===9?fn[e[7]]<<4|fn[e[8]]:255})),n}const F7=(e,t)=>e<255?t(e):"";function P7(e){var t=R7(e)?_7:$7;return e?"#"+t(e.r)+t(e.g)+t(e.b)+F7(e.a,t):void 0}const T7=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function M4(e,t,n){const r=t*Math.min(n,1-n),i=(a,o=(a+e/30)%12)=>n-r*Math.max(Math.min(o-3,9-o,1),-1);return[i(0),i(8),i(4)]}function k7(e,t,n){const r=(i,a=(i+e/60)%6)=>n-n*t*Math.max(Math.min(a,4-a,1),0);return[r(5),r(3),r(1)]}function M7(e,t,n){const r=M4(e,1,.5);let i;for(t+n>1&&(i=1/(t+n),t*=i,n*=i),i=0;i<3;i++)r[i]*=1-t-n,r[i]+=t;return r}function B7(e,t,n,r,i){return e===i?(t-n)/r+(t<n?6:0):t===i?(n-e)/r+2:(e-t)/r+4}function eh(e){const n=e.r/255,r=e.g/255,i=e.b/255,a=Math.max(n,r,i),o=Math.min(n,r,i),s=(a+o)/2;let l,u,c;return a!==o&&(c=a-o,u=s>.5?c/(2-a-o):c/(a+o),l=B7(n,r,i,c,a),l=l*60+.5),[l|0,u||0,s]}function th(e,t,n,r){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,r)).map($r)}function nh(e,t,n){return th(M4,e,t,n)}function V7(e,t,n){return th(M7,e,t,n)}function O7(e,t,n){return th(k7,e,t,n)}function B4(e){return(e%360+360)%360}function N7(e){const t=T7.exec(e);let n=255,r;if(!t)return;t[5]!==r&&(n=t[6]?Ma(+t[5]):$r(+t[5]));const i=B4(+t[2]),a=+t[3]/100,o=+t[4]/100;return t[1]==="hwb"?r=V7(i,a,o):t[1]==="hsv"?r=O7(i,a,o):r=nh(i,a,o),{r:r[0],g:r[1],b:r[2],a:n}}function L7(e,t){var n=eh(e);n[0]=B4(n[0]+t),n=nh(n),e.r=n[0],e.g=n[1],e.b=n[2]}function j7(e){if(!e)return;const t=eh(e),n=t[0],r=Jm(t[1]),i=Jm(t[2]);return e.a<255?`hsla(${n}, ${r}%, ${i}%, ${qn(e.a)})`:`hsl(${n}, ${r}%, ${i}%)`}const Km={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},Qm={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function H7(){const e={},t=Object.keys(Qm),n=Object.keys(Km);let r,i,a,o,s;for(r=0;r<t.length;r++){for(o=s=t[r],i=0;i<n.length;i++)a=n[i],s=s.replace(a,Km[a]);a=parseInt(Qm[o],16),e[s]=[a>>16&255,a>>8&255,a&255]}return e}let Cs;function W7(e){Cs||(Cs=H7(),Cs.transparent=[0,0,0,0]);const t=Cs[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const z7=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function G7(e){const t=z7.exec(e);let n=255,r,i,a;if(t){if(t[7]!==r){const o=+t[7];n=t[8]?Ma(o):Er(o*255,0,255)}return r=+t[1],i=+t[3],a=+t[5],r=255&(t[2]?Ma(r):Er(r,0,255)),i=255&(t[4]?Ma(i):Er(i,0,255)),a=255&(t[6]?Ma(a):Er(a,0,255)),{r,g:i,b:a,a:n}}}function Z7(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${qn(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}const vc=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,Li=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function X7(e,t,n){const r=Li(qn(e.r)),i=Li(qn(e.g)),a=Li(qn(e.b));return{r:$r(vc(r+n*(Li(qn(t.r))-r))),g:$r(vc(i+n*(Li(qn(t.g))-i))),b:$r(vc(a+n*(Li(qn(t.b))-a))),a:e.a+n*(t.a-e.a)}}function ws(e,t,n){if(e){let r=eh(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*n,t===0?360:1)),r=nh(r),e.r=r[0],e.g=r[1],e.b=r[2]}}function V4(e,t){return e&&Object.assign(t||{},e)}function qm(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=$r(e[3]))):(t=V4(e,{r:0,g:0,b:0,a:1}),t.a=$r(t.a)),t}function Y7(e){return e.charAt(0)==="r"?G7(e):N7(e)}class _o{constructor(t){if(t instanceof _o)return t;const n=typeof t;let r;n==="object"?r=qm(t):n==="string"&&(r=A7(t)||W7(t)||Y7(t)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var t=V4(this._rgb);return t&&(t.a=qn(t.a)),t}set rgb(t){this._rgb=qm(t)}rgbString(){return this._valid?Z7(this._rgb):void 0}hexString(){return this._valid?P7(this._rgb):void 0}hslString(){return this._valid?j7(this._rgb):void 0}mix(t,n){if(t){const r=this.rgb,i=t.rgb;let a;const o=n===a?.5:n,s=2*o-1,l=r.a-i.a,u=((s*l===-1?s:(s+l)/(1+s*l))+1)/2;a=1-u,r.r=255&u*r.r+a*i.r+.5,r.g=255&u*r.g+a*i.g+.5,r.b=255&u*r.b+a*i.b+.5,r.a=o*r.a+(1-o)*i.a,this.rgb=r}return this}interpolate(t,n){return t&&(this._rgb=X7(this._rgb,t._rgb,n)),this}clone(){return new _o(this.rgb)}alpha(t){return this._rgb.a=$r(t),this}clearer(t){const n=this._rgb;return n.a*=1-t,this}greyscale(){const t=this._rgb,n=Uo(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=n,this}opaquer(t){const n=this._rgb;return n.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return ws(this._rgb,2,t),this}darken(t){return ws(this._rgb,2,-t),this}saturate(t){return ws(this._rgb,1,t),this}desaturate(t){return ws(this._rgb,1,-t),this}rotate(t){return L7(this._rgb,t),this}}/*!
|
161
161
|
* Chart.js v4.4.3
|
162
162
|
* https://www.chartjs.org
|
163
163
|
* (c) 2024 Chart.js Contributors
|
164
164
|
* Released under the MIT License
|
165
|
-
*/function Un(){}const U7=(()=>{let e=0;return()=>e++})();function Je(e){return e===null||typeof e>"u"}function at(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function Re(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function xt(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function Kt(e,t){return xt(e)?e:t}function Ce(e,t){return typeof e>"u"?t:e}const J7=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100:+e/t,O4=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function Ze(e,t,n){if(e&&typeof e.call=="function")return e.apply(n,t)}function He(e,t,n,r){let i,a,o;if(at(e))for(a=e.length,i=0;i<a;i++)t.call(n,e[i],i);else if(Re(e))for(o=Object.keys(e),a=o.length,i=0;i<a;i++)t.call(n,e[o[i]],o[i])}function Vl(e,t){let n,r,i,a;if(!e||!t||e.length!==t.length)return!1;for(n=0,r=e.length;n<r;++n)if(i=e[n],a=t[n],i.datasetIndex!==a.datasetIndex||i.index!==a.index)return!1;return!0}function Ol(e){if(at(e))return e.map(Ol);if(Re(e)){const t=Object.create(null),n=Object.keys(e),r=n.length;let i=0;for(;i<r;++i)t[n[i]]=Ol(e[n[i]]);return t}return e}function N4(e){return["__proto__","prototype","constructor"].indexOf(e)===-1}function K7(e,t,n,r){if(!N4(e))return;const i=t[e],a=n[e];Re(i)&&Re(a)?$o(i,a,r):t[e]=Ol(a)}function $o(e,t,n){const r=at(t)?t:[t],i=r.length;if(!Re(e))return e;n=n||{};const a=n.merger||K7;let o;for(let s=0;s<i;++s){if(o=r[s],!Re(o))continue;const l=Object.keys(o);for(let u=0,c=l.length;u<c;++u)a(l[u],e,o,n)}return e}function Ya(e,t){return $o(e,t,{merger:Q7})}function Q7(e,t,n){if(!N4(e))return;const r=t[e],i=n[e];Re(r)&&Re(i)?Ya(r,i):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=Ol(i))}const ep={"":e=>e,x:e=>e.x,y:e=>e.y};function q7(e){const t=e.split("."),n=[];let r="";for(const i of t)r+=i,r.endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}function eP(e){const t=q7(e);return n=>{for(const r of t){if(r==="")break;n=n&&n[r]}return n}}function Ro(e,t){return(ep[t]||(ep[t]=eP(t)))(e)}function rh(e){return e.charAt(0).toUpperCase()+e.slice(1)}const Nl=e=>typeof e<"u",Mr=e=>typeof e=="function",tp=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};function tP(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const Qe=Math.PI,Ke=2*Qe,nP=Ke+Qe,Ll=Number.POSITIVE_INFINITY,rP=Qe/180,dt=Qe/2,Gr=Qe/4,np=Qe*2/3,Ir=Math.log10,ca=Math.sign;function Ua(e,t,n){return Math.abs(e-t)<n}function rp(e){const t=Math.round(e);e=Ua(e,t,e/1e3)?t:e;const n=Math.pow(10,Math.floor(Ir(e))),r=e/n;return(r<=1?1:r<=2?2:r<=5?5:10)*n}function iP(e){const t=[],n=Math.sqrt(e);let r;for(r=1;r<n;r++)e%r===0&&(t.push(r),t.push(e/r));return n===(n|0)&&t.push(n),t.sort((i,a)=>i-a).pop(),t}function jl(e){return!isNaN(parseFloat(e))&&isFinite(e)}function aP(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}function L4(e,t,n){let r,i,a;for(r=0,i=e.length;r<i;r++)a=e[r][n],isNaN(a)||(t.min=Math.min(t.min,a),t.max=Math.max(t.max,a))}function Nn(e){return e*(Qe/180)}function ih(e){return e*(180/Qe)}function ip(e){if(!xt(e))return;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n++;return n}function j4(e,t){const n=t.x-e.x,r=t.y-e.y,i=Math.sqrt(n*n+r*r);let a=Math.atan2(r,n);return a<-.5*Qe&&(a+=Ke),{angle:a,distance:i}}function Sd(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function oP(e,t){return(e-t+nP)%Ke-Qe}function xn(e){return(e%Ke+Ke)%Ke}function Ao(e,t,n,r){const i=xn(e),a=xn(t),o=xn(n),s=xn(a-i),l=xn(o-i),u=xn(i-a),c=xn(i-o);return i===a||i===o||r&&a===o||s>l&&u<c}function en(e,t,n){return Math.max(t,Math.min(n,e))}function sP(e){return en(e,-32768,32767)}function Zi(e,t,n,r=1e-6){return e>=Math.min(t,n)-r&&e<=Math.max(t,n)+r}function ah(e,t,n){n=n||(o=>e[o]<t);let r=e.length-1,i=0,a;for(;r-i>1;)a=i+r>>1,n(a)?i=a:r=a;return{lo:i,hi:r}}const Ed=(e,t,n,r)=>ah(e,n,r?i=>{const a=e[i][t];return a<n||a===n&&e[i+1][t]===n}:i=>e[i][t]<n),lP=(e,t,n)=>ah(e,n,r=>e[r][t]>=n);function uP(e,t,n){let r=0,i=e.length;for(;r<i&&e[r]<t;)r++;for(;i>r&&e[i-1]>n;)i--;return r>0||i<e.length?e.slice(r,i):e}const H4=["push","pop","shift","splice","unshift"];function cP(e,t){if(e._chartjs){e._chartjs.listeners.push(t);return}Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),H4.forEach(n=>{const r="_onData"+rh(n),i=e[n];Object.defineProperty(e,n,{configurable:!0,enumerable:!1,value(...a){const o=i.apply(this,a);return e._chartjs.listeners.forEach(s=>{typeof s[r]=="function"&&s[r](...a)}),o}})})}function ap(e,t){const n=e._chartjs;if(!n)return;const r=n.listeners,i=r.indexOf(t);i!==-1&&r.splice(i,1),!(r.length>0)&&(H4.forEach(a=>{delete e[a]}),delete e._chartjs)}function dP(e){const t=new Set(e);return t.size===e.length?e:Array.from(t)}const W4=function(){return typeof window>"u"?function(e){return e()}:window.requestAnimationFrame}();function z4(e,t){let n=[],r=!1;return function(...i){n=i,r||(r=!0,W4.call(window,()=>{r=!1,e.apply(t,n)}))}}function fP(e,t){let n;return function(...r){return t?(clearTimeout(n),n=setTimeout(e,t,r)):e.apply(this,r),t}}const oh=e=>e==="start"?"left":e==="end"?"right":"center",_t=(e,t,n)=>e==="start"?t:e==="end"?n:(t+n)/2,hP=(e,t,n,r)=>e===(r?"left":"right")?n:e==="center"?(t+n)/2:t,Ds=e=>e===0||e===1,op=(e,t,n)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*Ke/n)),sp=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*Ke/n)+1,Ja={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*dt)+1,easeOutSine:e=>Math.sin(e*dt),easeInOutSine:e=>-.5*(Math.cos(Qe*e)-1),easeInExpo:e=>e===0?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>e===1?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>Ds(e)?e:e<.5?.5*Math.pow(2,10*(e*2-1)):.5*(-Math.pow(2,-10*(e*2-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>Ds(e)?e:op(e,.075,.3),easeOutElastic:e=>Ds(e)?e:sp(e,.075,.3),easeInOutElastic(e){return Ds(e)?e:e<.5?.5*op(e*2,.1125,.45):.5+.5*sp(e*2-1,.1125,.45)},easeInBack(e){return e*e*((1.70158+1)*e-1.70158)},easeOutBack(e){return(e-=1)*e*((1.70158+1)*e+1.70158)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-Ja.easeOutBounce(1-e),easeOutBounce(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:e=>e<.5?Ja.easeInBounce(e*2)*.5:Ja.easeOutBounce(e*2-1)*.5+.5};function sh(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function lp(e){return sh(e)?e:new _o(e)}function yc(e){return sh(e)?e:new _o(e).saturate(.5).darken(.1).hexString()}const gP=["x","y","borderWidth","radius","tension"],mP=["color","borderColor","backgroundColor"];function pP(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"}),e.set("animations",{colors:{type:"color",properties:mP},numbers:{type:"number",properties:gP}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>t|0}}}})}function bP(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const up=new Map;function vP(e,t){t=t||{};const n=e+JSON.stringify(t);let r=up.get(n);return r||(r=new Intl.NumberFormat(e,t),up.set(n,r)),r}function xu(e,t,n){return vP(t,n).format(e)}const G4={values(e){return at(e)?e:""+e},numeric(e,t,n){if(e===0)return"0";const r=this.chart.options.locale;let i,a=e;if(n.length>1){const u=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(u<1e-4||u>1e15)&&(i="scientific"),a=yP(e,n)}const o=Ir(Math.abs(a)),s=isNaN(o)?1:Math.max(Math.min(-1*Math.floor(o),20),0),l={notation:i,minimumFractionDigits:s,maximumFractionDigits:s};return Object.assign(l,this.options.ticks.format),xu(e,r,l)},logarithmic(e,t,n){if(e===0)return"0";const r=n[t].significand||e/Math.pow(10,Math.floor(Ir(e)));return[1,2,3,5,10,15].includes(r)||t>.8*n.length?G4.numeric.call(this,e,t,n):""}};function yP(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e)),n}var Cu={formatters:G4};function xP(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,n)=>n.lineWidth,tickColor:(t,n)=>n.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Cu.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"&&t!=="dash"}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"})}const yi=Object.create(null),Id=Object.create(null);function Ka(e,t){if(!t)return e;const n=t.split(".");for(let r=0,i=n.length;r<i;++r){const a=n[r];e=e[a]||(e[a]=Object.create(null))}return e}function xc(e,t,n){return typeof t=="string"?$o(Ka(e,t),n):$o(Ka(e,""),t)}class CP{constructor(t,n){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=r=>r.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(r,i)=>yc(i.backgroundColor),this.hoverBorderColor=(r,i)=>yc(i.borderColor),this.hoverColor=(r,i)=>yc(i.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(n)}set(t,n){return xc(this,t,n)}get(t){return Ka(this,t)}describe(t,n){return xc(Id,t,n)}override(t,n){return xc(yi,t,n)}route(t,n,r,i){const a=Ka(this,t),o=Ka(this,r),s="_"+n;Object.defineProperties(a,{[s]:{value:a[n],writable:!0},[n]:{enumerable:!0,get(){const l=this[s],u=o[i];return Re(l)?Object.assign({},u,l):Ce(l,u)},set(l){this[s]=l}}})}apply(t){t.forEach(n=>n(this))}}var ot=new CP({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[pP,bP,xP]);function wP(e){return!e||Je(e.size)||Je(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function Hl(e,t,n,r,i){let a=t[i];return a||(a=t[i]=e.measureText(i).width,n.push(i)),a>r&&(r=a),r}function DP(e,t,n,r){r=r||{};let i=r.data=r.data||{},a=r.garbageCollect=r.garbageCollect||[];r.font!==t&&(i=r.data={},a=r.garbageCollect=[],r.font=t),e.save(),e.font=t;let o=0;const s=n.length;let l,u,c,d,h;for(l=0;l<s;l++)if(d=n[l],d!=null&&!at(d))o=Hl(e,i,a,o,d);else if(at(d))for(u=0,c=d.length;u<c;u++)h=d[u],h!=null&&!at(h)&&(o=Hl(e,i,a,o,h));e.restore();const f=a.length/2;if(f>n.length){for(l=0;l<f;l++)delete i[a[l]];a.splice(0,f)}return o}function Zr(e,t,n){const r=e.currentDevicePixelRatio,i=n!==0?Math.max(n/2,.5):0;return Math.round((t-i)*r)/r+i}function cp(e,t){!t&&!e||(t=t||e.getContext("2d"),t.save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore())}function _d(e,t,n,r){Z4(e,t,n,r,null)}function Z4(e,t,n,r,i){let a,o,s,l,u,c,d,h;const f=t.pointStyle,g=t.rotation,m=t.radius;let p=(g||0)*rP;if(f&&typeof f=="object"&&(a=f.toString(),a==="[object HTMLImageElement]"||a==="[object HTMLCanvasElement]")){e.save(),e.translate(n,r),e.rotate(p),e.drawImage(f,-f.width/2,-f.height/2,f.width,f.height),e.restore();return}if(!(isNaN(m)||m<=0)){switch(e.beginPath(),f){default:i?e.ellipse(n,r,i/2,m,0,0,Ke):e.arc(n,r,m,0,Ke),e.closePath();break;case"triangle":c=i?i/2:m,e.moveTo(n+Math.sin(p)*c,r-Math.cos(p)*m),p+=np,e.lineTo(n+Math.sin(p)*c,r-Math.cos(p)*m),p+=np,e.lineTo(n+Math.sin(p)*c,r-Math.cos(p)*m),e.closePath();break;case"rectRounded":u=m*.516,l=m-u,o=Math.cos(p+Gr)*l,d=Math.cos(p+Gr)*(i?i/2-u:l),s=Math.sin(p+Gr)*l,h=Math.sin(p+Gr)*(i?i/2-u:l),e.arc(n-d,r-s,u,p-Qe,p-dt),e.arc(n+h,r-o,u,p-dt,p),e.arc(n+d,r+s,u,p,p+dt),e.arc(n-h,r+o,u,p+dt,p+Qe),e.closePath();break;case"rect":if(!g){l=Math.SQRT1_2*m,c=i?i/2:l,e.rect(n-c,r-l,2*c,2*l);break}p+=Gr;case"rectRot":d=Math.cos(p)*(i?i/2:m),o=Math.cos(p)*m,s=Math.sin(p)*m,h=Math.sin(p)*(i?i/2:m),e.moveTo(n-d,r-s),e.lineTo(n+h,r-o),e.lineTo(n+d,r+s),e.lineTo(n-h,r+o),e.closePath();break;case"crossRot":p+=Gr;case"cross":d=Math.cos(p)*(i?i/2:m),o=Math.cos(p)*m,s=Math.sin(p)*m,h=Math.sin(p)*(i?i/2:m),e.moveTo(n-d,r-s),e.lineTo(n+d,r+s),e.moveTo(n+h,r-o),e.lineTo(n-h,r+o);break;case"star":d=Math.cos(p)*(i?i/2:m),o=Math.cos(p)*m,s=Math.sin(p)*m,h=Math.sin(p)*(i?i/2:m),e.moveTo(n-d,r-s),e.lineTo(n+d,r+s),e.moveTo(n+h,r-o),e.lineTo(n-h,r+o),p+=Gr,d=Math.cos(p)*(i?i/2:m),o=Math.cos(p)*m,s=Math.sin(p)*m,h=Math.sin(p)*(i?i/2:m),e.moveTo(n-d,r-s),e.lineTo(n+d,r+s),e.moveTo(n+h,r-o),e.lineTo(n-h,r+o);break;case"line":o=i?i/2:Math.cos(p)*m,s=Math.sin(p)*m,e.moveTo(n-o,r-s),e.lineTo(n+o,r+s);break;case"dash":e.moveTo(n,r),e.lineTo(n+Math.cos(p)*(i?i/2:m),r+Math.sin(p)*m);break;case!1:e.closePath();break}e.fill(),t.borderWidth>0&&e.stroke()}}function sr(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.x<t.right+n&&e.y>t.top-n&&e.y<t.bottom+n}function lh(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function uh(e){e.restore()}function SP(e,t,n,r,i){if(!t)return e.lineTo(n.x,n.y);if(i==="middle"){const a=(t.x+n.x)/2;e.lineTo(a,t.y),e.lineTo(a,n.y)}else i==="after"!=!!r?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)}function EP(e,t,n,r){if(!t)return e.lineTo(n.x,n.y);e.bezierCurveTo(r?t.cp1x:t.cp2x,r?t.cp1y:t.cp2y,r?n.cp2x:n.cp1x,r?n.cp2y:n.cp1y,n.x,n.y)}function IP(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]),Je(t.rotation)||e.rotate(t.rotation),t.color&&(e.fillStyle=t.color),t.textAlign&&(e.textAlign=t.textAlign),t.textBaseline&&(e.textBaseline=t.textBaseline)}function _P(e,t,n,r,i){if(i.strikethrough||i.underline){const a=e.measureText(r),o=t-a.actualBoundingBoxLeft,s=t+a.actualBoundingBoxRight,l=n-a.actualBoundingBoxAscent,u=n+a.actualBoundingBoxDescent,c=i.strikethrough?(l+u)/2:u;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=i.decorationWidth||2,e.moveTo(o,c),e.lineTo(s,c),e.stroke()}}function $P(e,t){const n=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=n}function xi(e,t,n,r,i,a={}){const o=at(t)?t:[t],s=a.strokeWidth>0&&a.strokeColor!=="";let l,u;for(e.save(),e.font=i.string,IP(e,a),l=0;l<o.length;++l)u=o[l],a.backdrop&&$P(e,a.backdrop),s&&(a.strokeColor&&(e.strokeStyle=a.strokeColor),Je(a.strokeWidth)||(e.lineWidth=a.strokeWidth),e.strokeText(u,n,r,a.maxWidth)),e.fillText(u,n,r,a.maxWidth),_P(e,n,r,u,a),r+=Number(i.lineHeight);e.restore()}function Wl(e,t){const{x:n,y:r,w:i,h:a,radius:o}=t;e.arc(n+o.topLeft,r+o.topLeft,o.topLeft,1.5*Qe,Qe,!0),e.lineTo(n,r+a-o.bottomLeft),e.arc(n+o.bottomLeft,r+a-o.bottomLeft,o.bottomLeft,Qe,dt,!0),e.lineTo(n+i-o.bottomRight,r+a),e.arc(n+i-o.bottomRight,r+a-o.bottomRight,o.bottomRight,dt,0,!0),e.lineTo(n+i,r+o.topRight),e.arc(n+i-o.topRight,r+o.topRight,o.topRight,0,-dt,!0),e.lineTo(n+o.topLeft,r)}const RP=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,AP=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function FP(e,t){const n=(""+e).match(RP);if(!n||n[1]==="normal")return t*1.2;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100;break}return t*e}const PP=e=>+e||0;function ch(e,t){const n={},r=Re(t),i=r?Object.keys(t):t,a=Re(e)?r?o=>Ce(e[o],e[t[o]]):o=>e[o]:()=>e;for(const o of i)n[o]=PP(a(o));return n}function TP(e){return ch(e,{top:"y",right:"x",bottom:"y",left:"x"})}function ta(e){return ch(e,["topLeft","topRight","bottomLeft","bottomRight"])}function Ft(e){const t=TP(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function pt(e,t){e=e||{},t=t||ot.font;let n=Ce(e.size,t.size);typeof n=="string"&&(n=parseInt(n,10));let r=Ce(e.style,t.style);r&&!(""+r).match(AP)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const i={family:Ce(e.family,t.family),lineHeight:FP(Ce(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:Ce(e.weight,t.weight),string:""};return i.string=wP(i),i}function Ss(e,t,n,r){let i,a,o;for(i=0,a=e.length;i<a;++i)if(o=e[i],o!==void 0&&o!==void 0)return o}function MP(e,t,n){const{min:r,max:i}=e,a=O4(t,(i-r)/2),o=(s,l)=>n&&s===0?0:s+l;return{min:o(r,-Math.abs(a)),max:o(i,a)}}function Nr(e,t){return Object.assign(Object.create(e),t)}function dh(e,t=[""],n,r,i=()=>e[0]){const a=n||e;typeof r>"u"&&(r=J4("_fallback",e));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:a,_fallback:r,_getTarget:i,override:s=>dh([s,...e],t,a,r)};return new Proxy(o,{deleteProperty(s,l){return delete s[l],delete s._keys,delete e[0][l],!0},get(s,l){return Y4(s,l,()=>HP(l,t,e,s))},getOwnPropertyDescriptor(s,l){return Reflect.getOwnPropertyDescriptor(s._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(s,l){return fp(s).includes(l)},ownKeys(s){return fp(s)},set(s,l,u){const c=s._storage||(s._storage=i());return s[l]=c[l]=u,delete s._keys,!0}})}function da(e,t,n,r){const i={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:X4(e,r),setContext:a=>da(e,a,n,r),override:a=>da(e.override(a),t,n,r)};return new Proxy(i,{deleteProperty(a,o){return delete a[o],delete e[o],!0},get(a,o,s){return Y4(a,o,()=>BP(a,o,s))},getOwnPropertyDescriptor(a,o){return a._descriptors.allKeys?Reflect.has(e,o)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,o)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(a,o){return Reflect.has(e,o)},ownKeys(){return Reflect.ownKeys(e)},set(a,o,s){return e[o]=s,delete a[o],!0}})}function X4(e,t={scriptable:!0,indexable:!0}){const{_scriptable:n=t.scriptable,_indexable:r=t.indexable,_allKeys:i=t.allKeys}=e;return{allKeys:i,scriptable:n,indexable:r,isScriptable:Mr(n)?n:()=>n,isIndexable:Mr(r)?r:()=>r}}const kP=(e,t)=>e?e+rh(t):t,fh=(e,t)=>Re(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function Y4(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t)||t==="constructor")return e[t];const r=n();return e[t]=r,r}function BP(e,t,n){const{_proxy:r,_context:i,_subProxy:a,_descriptors:o}=e;let s=r[t];return Mr(s)&&o.isScriptable(t)&&(s=VP(t,s,e,n)),at(s)&&s.length&&(s=OP(t,s,e,o.isIndexable)),fh(t,s)&&(s=da(s,i,a&&a[t],o)),s}function VP(e,t,n,r){const{_proxy:i,_context:a,_subProxy:o,_stack:s}=n;if(s.has(e))throw new Error("Recursion detected: "+Array.from(s).join("->")+"->"+e);s.add(e);let l=t(a,o||r);return s.delete(e),fh(e,l)&&(l=hh(i._scopes,i,e,l)),l}function OP(e,t,n,r){const{_proxy:i,_context:a,_subProxy:o,_descriptors:s}=n;if(typeof a.index<"u"&&r(e))return t[a.index%t.length];if(Re(t[0])){const l=t,u=i._scopes.filter(c=>c!==l);t=[];for(const c of l){const d=hh(u,i,e,c);t.push(da(d,a,o&&o[e],s))}}return t}function U4(e,t,n){return Mr(e)?e(t,n):e}const NP=(e,t)=>e===!0?t:typeof e=="string"?Ro(t,e):void 0;function LP(e,t,n,r,i){for(const a of t){const o=NP(n,a);if(o){e.add(o);const s=U4(o._fallback,n,i);if(typeof s<"u"&&s!==n&&s!==r)return s}else if(o===!1&&typeof r<"u"&&n!==r)return null}return!1}function hh(e,t,n,r){const i=t._rootScopes,a=U4(t._fallback,n,r),o=[...e,...i],s=new Set;s.add(r);let l=dp(s,o,n,a||n,r);return l===null||typeof a<"u"&&a!==n&&(l=dp(s,o,a,l,r),l===null)?!1:dh(Array.from(s),[""],i,a,()=>jP(t,n,r))}function dp(e,t,n,r,i){for(;n;)n=LP(e,t,n,r,i);return n}function jP(e,t,n){const r=e._getTarget();t in r||(r[t]={});const i=r[t];return at(i)&&Re(n)?n:i||{}}function HP(e,t,n,r){let i;for(const a of t)if(i=J4(kP(a,e),n),typeof i<"u")return fh(e,i)?hh(n,r,e,i):i}function J4(e,t){for(const n of t){if(!n)continue;const r=n[e];if(typeof r<"u")return r}}function fp(e){let t=e._keys;return t||(t=e._keys=WP(e._scopes)),t}function WP(e){const t=new Set;for(const n of e)for(const r of Object.keys(n).filter(i=>!i.startsWith("_")))t.add(r);return Array.from(t)}const zP=Number.EPSILON||1e-14,fa=(e,t)=>t<e.length&&!e[t].skip&&e[t],K4=e=>e==="x"?"y":"x";function GP(e,t,n,r){const i=e.skip?t:e,a=t,o=n.skip?t:n,s=Sd(a,i),l=Sd(o,a);let u=s/(s+l),c=l/(s+l);u=isNaN(u)?0:u,c=isNaN(c)?0:c;const d=r*u,h=r*c;return{previous:{x:a.x-d*(o.x-i.x),y:a.y-d*(o.y-i.y)},next:{x:a.x+h*(o.x-i.x),y:a.y+h*(o.y-i.y)}}}function ZP(e,t,n){const r=e.length;let i,a,o,s,l,u=fa(e,0);for(let c=0;c<r-1;++c)if(l=u,u=fa(e,c+1),!(!l||!u)){if(Ua(t[c],0,zP)){n[c]=n[c+1]=0;continue}i=n[c]/t[c],a=n[c+1]/t[c],s=Math.pow(i,2)+Math.pow(a,2),!(s<=9)&&(o=3/Math.sqrt(s),n[c]=i*o*t[c],n[c+1]=a*o*t[c])}}function XP(e,t,n="x"){const r=K4(n),i=e.length;let a,o,s,l=fa(e,0);for(let u=0;u<i;++u){if(o=s,s=l,l=fa(e,u+1),!s)continue;const c=s[n],d=s[r];o&&(a=(c-o[n])/3,s[`cp1${n}`]=c-a,s[`cp1${r}`]=d-a*t[u]),l&&(a=(l[n]-c)/3,s[`cp2${n}`]=c+a,s[`cp2${r}`]=d+a*t[u])}}function YP(e,t="x"){const n=K4(t),r=e.length,i=Array(r).fill(0),a=Array(r);let o,s,l,u=fa(e,0);for(o=0;o<r;++o)if(s=l,l=u,u=fa(e,o+1),!!l){if(u){const c=u[t]-l[t];i[o]=c!==0?(u[n]-l[n])/c:0}a[o]=s?u?ca(i[o-1])!==ca(i[o])?0:(i[o-1]+i[o])/2:i[o-1]:i[o]}ZP(e,i,a),XP(e,a,t)}function Es(e,t,n){return Math.max(Math.min(e,n),t)}function UP(e,t){let n,r,i,a,o,s=sr(e[0],t);for(n=0,r=e.length;n<r;++n)o=a,a=s,s=n<r-1&&sr(e[n+1],t),a&&(i=e[n],o&&(i.cp1x=Es(i.cp1x,t.left,t.right),i.cp1y=Es(i.cp1y,t.top,t.bottom)),s&&(i.cp2x=Es(i.cp2x,t.left,t.right),i.cp2y=Es(i.cp2y,t.top,t.bottom)))}function JP(e,t,n,r,i){let a,o,s,l;if(t.spanGaps&&(e=e.filter(u=>!u.skip)),t.cubicInterpolationMode==="monotone")YP(e,i);else{let u=r?e[e.length-1]:e[0];for(a=0,o=e.length;a<o;++a)s=e[a],l=GP(u,s,e[Math.min(a+1,o-(r?0:1))%o],t.tension),s.cp1x=l.previous.x,s.cp1y=l.previous.y,s.cp2x=l.next.x,s.cp2y=l.next.y,u=s}t.capBezierPoints&&UP(e,n)}function gh(){return typeof window<"u"&&typeof document<"u"}function mh(e){let t=e.parentNode;return t&&t.toString()==="[object ShadowRoot]"&&(t=t.host),t}function zl(e,t,n){let r;return typeof e=="string"?(r=parseInt(e,10),e.indexOf("%")!==-1&&(r=r/100*t.parentNode[n])):r=e,r}const wu=e=>e.ownerDocument.defaultView.getComputedStyle(e,null);function KP(e,t){return wu(e).getPropertyValue(t)}const QP=["top","right","bottom","left"];function ci(e,t,n){const r={};n=n?"-"+n:"";for(let i=0;i<4;i++){const a=QP[i];r[a]=parseFloat(e[t+"-"+a+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const qP=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function eT(e,t){const n=e.touches,r=n&&n.length?n[0]:e,{offsetX:i,offsetY:a}=r;let o=!1,s,l;if(qP(i,a,e.target))s=i,l=a;else{const u=t.getBoundingClientRect();s=r.clientX-u.left,l=r.clientY-u.top,o=!0}return{x:s,y:l,box:o}}function Qr(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:r}=t,i=wu(n),a=i.boxSizing==="border-box",o=ci(i,"padding"),s=ci(i,"border","width"),{x:l,y:u,box:c}=eT(e,n),d=o.left+(c&&s.left),h=o.top+(c&&s.top);let{width:f,height:g}=t;return a&&(f-=o.width+s.width,g-=o.height+s.height),{x:Math.round((l-d)/f*n.width/r),y:Math.round((u-h)/g*n.height/r)}}function tT(e,t,n){let r,i;if(t===void 0||n===void 0){const a=e&&mh(e);if(!a)t=e.clientWidth,n=e.clientHeight;else{const o=a.getBoundingClientRect(),s=wu(a),l=ci(s,"border","width"),u=ci(s,"padding");t=o.width-u.width-l.width,n=o.height-u.height-l.height,r=zl(s.maxWidth,a,"clientWidth"),i=zl(s.maxHeight,a,"clientHeight")}}return{width:t,height:n,maxWidth:r||Ll,maxHeight:i||Ll}}const Is=e=>Math.round(e*10)/10;function nT(e,t,n,r){const i=wu(e),a=ci(i,"margin"),o=zl(i.maxWidth,e,"clientWidth")||Ll,s=zl(i.maxHeight,e,"clientHeight")||Ll,l=tT(e,t,n);let{width:u,height:c}=l;if(i.boxSizing==="content-box"){const h=ci(i,"border","width"),f=ci(i,"padding");u-=f.width+h.width,c-=f.height+h.height}return u=Math.max(0,u-a.width),c=Math.max(0,r?u/r:c-a.height),u=Is(Math.min(u,o,l.maxWidth)),c=Is(Math.min(c,s,l.maxHeight)),u&&!c&&(c=Is(u/2)),(t!==void 0||n!==void 0)&&r&&l.height&&c>l.height&&(c=l.height,u=Is(Math.floor(c*r))),{width:u,height:c}}function hp(e,t,n){const r=t||1,i=Math.floor(e.height*r),a=Math.floor(e.width*r);e.height=Math.floor(e.height),e.width=Math.floor(e.width);const o=e.canvas;return o.style&&(n||!o.style.height&&!o.style.width)&&(o.style.height=`${e.height}px`,o.style.width=`${e.width}px`),e.currentDevicePixelRatio!==r||o.height!==i||o.width!==a?(e.currentDevicePixelRatio=r,o.height=i,o.width=a,e.ctx.setTransform(r,0,0,r,0,0),!0):!1}const rT=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};gh()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch{}return e}();function gp(e,t){const n=KP(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function qr(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function iT(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:r==="middle"?n<.5?e.y:t.y:r==="after"?n<1?e.y:t.y:n>0?t.y:e.y}}function aT(e,t,n,r){const i={x:e.cp2x,y:e.cp2y},a={x:t.cp1x,y:t.cp1y},o=qr(e,i,n),s=qr(i,a,n),l=qr(a,t,n),u=qr(o,s,n),c=qr(s,l,n);return qr(u,c,n)}const oT=function(e,t){return{x(n){return e+e+t-n},setWidth(n){t=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,r){return n-r},leftForLtr(n,r){return n-r}}},sT=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function na(e,t,n){return e?oT(t,n):sT()}function Q4(e,t){let n,r;(t==="ltr"||t==="rtl")&&(n=e.canvas.style,r=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=r)}function q4(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function e3(e){return e==="angle"?{between:Ao,compare:oP,normalize:xn}:{between:Zi,compare:(t,n)=>t-n,normalize:t=>t}}function mp({start:e,end:t,count:n,loop:r,style:i}){return{start:e%n,end:t%n,loop:r&&(t-e+1)%n===0,style:i}}function lT(e,t,n){const{property:r,start:i,end:a}=n,{between:o,normalize:s}=e3(r),l=t.length;let{start:u,end:c,loop:d}=e,h,f;if(d){for(u+=l,c+=l,h=0,f=l;h<f&&o(s(t[u%l][r]),i,a);++h)u--,c--;u%=l,c%=l}return c<u&&(c+=l),{start:u,end:c,loop:d,style:e.style}}function uT(e,t,n){if(!n)return[e];const{property:r,start:i,end:a}=n,o=t.length,{compare:s,between:l,normalize:u}=e3(r),{start:c,end:d,loop:h,style:f}=lT(e,t,n),g=[];let m=!1,p=null,b,v,y;const w=()=>l(i,y,b)&&s(i,y)!==0,C=()=>s(a,b)===0||l(a,y,b),E=()=>m||w(),I=()=>!m||C();for(let D=c,_=c;D<=d;++D)v=t[D%o],!v.skip&&(b=u(v[r]),b!==y&&(m=l(b,i,a),p===null&&E()&&(p=s(b,i)===0?D:_),p!==null&&I()&&(g.push(mp({start:p,end:D,loop:h,count:o,style:f})),p=null),_=D,y=b));return p!==null&&g.push(mp({start:p,end:d,loop:h,count:o,style:f})),g}function cT(e,t){const n=[],r=e.segments;for(let i=0;i<r.length;i++){const a=uT(r[i],e.points,t);a.length&&n.push(...a)}return n}function dT(e,t,n,r){let i=0,a=t-1;if(n&&!r)for(;i<t&&!e[i].skip;)i++;for(;i<t&&e[i].skip;)i++;for(i%=t,n&&(a+=i);a>i&&e[a%t].skip;)a--;return a%=t,{start:i,end:a}}function fT(e,t,n,r){const i=e.length,a=[];let o=t,s=e[t],l;for(l=t+1;l<=n;++l){const u=e[l%i];u.skip||u.stop?s.skip||(r=!1,a.push({start:t%i,end:(l-1)%i,loop:r}),t=o=u.stop?l:null):(o=l,s.skip&&(t=l)),s=u}return o!==null&&a.push({start:t%i,end:o%i,loop:r}),a}function hT(e,t){const n=e.points,r=e.options.spanGaps,i=n.length;if(!i)return[];const a=!!e._loop,{start:o,end:s}=dT(n,i,a,r);if(r===!0)return pp(e,[{start:o,end:s,loop:a}],n,t);const l=s<o?s+i:s,u=!!e._fullLoop&&o===0&&s===i-1;return pp(e,fT(n,o,l,u),n,t)}function pp(e,t,n,r){return!r||!r.setContext||!n?t:gT(e,t,n,r)}function gT(e,t,n,r){const i=e._chart.getContext(),a=bp(e.options),{_datasetIndex:o,options:{spanGaps:s}}=e,l=n.length,u=[];let c=a,d=t[0].start,h=d;function f(g,m,p,b){const v=s?-1:1;if(g!==m){for(g+=l;n[g%l].skip;)g-=v;for(;n[m%l].skip;)m+=v;g%l!==m%l&&(u.push({start:g%l,end:m%l,loop:p,style:b}),c=b,d=m%l)}}for(const g of t){d=s?d:g.start;let m=n[d%l],p;for(h=d+1;h<=g.end;h++){const b=n[h%l];p=bp(r.setContext(Nr(i,{type:"segment",p0:m,p1:b,p0DataIndex:(h-1)%l,p1DataIndex:h%l,datasetIndex:o}))),mT(p,c)&&f(d,h-1,g.loop,c),m=b,c=p}d<h-1&&f(d,h-1,g.loop,c)}return u}function bp(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function mT(e,t){if(!t)return!1;const n=[],r=function(i,a){return sh(a)?(n.includes(a)||n.push(a),n.indexOf(a)):a};return JSON.stringify(e,r)!==JSON.stringify(t,r)}/*!
|
165
|
+
*/function Un(){}const U7=(()=>{let e=0;return()=>e++})();function Je(e){return e===null||typeof e>"u"}function at(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function Re(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function xt(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function Kt(e,t){return xt(e)?e:t}function Ce(e,t){return typeof e>"u"?t:e}const J7=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100:+e/t,O4=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function Ze(e,t,n){if(e&&typeof e.call=="function")return e.apply(n,t)}function He(e,t,n,r){let i,a,o;if(at(e))for(a=e.length,i=0;i<a;i++)t.call(n,e[i],i);else if(Re(e))for(o=Object.keys(e),a=o.length,i=0;i<a;i++)t.call(n,e[o[i]],o[i])}function Vl(e,t){let n,r,i,a;if(!e||!t||e.length!==t.length)return!1;for(n=0,r=e.length;n<r;++n)if(i=e[n],a=t[n],i.datasetIndex!==a.datasetIndex||i.index!==a.index)return!1;return!0}function Ol(e){if(at(e))return e.map(Ol);if(Re(e)){const t=Object.create(null),n=Object.keys(e),r=n.length;let i=0;for(;i<r;++i)t[n[i]]=Ol(e[n[i]]);return t}return e}function N4(e){return["__proto__","prototype","constructor"].indexOf(e)===-1}function K7(e,t,n,r){if(!N4(e))return;const i=t[e],a=n[e];Re(i)&&Re(a)?$o(i,a,r):t[e]=Ol(a)}function $o(e,t,n){const r=at(t)?t:[t],i=r.length;if(!Re(e))return e;n=n||{};const a=n.merger||K7;let o;for(let s=0;s<i;++s){if(o=r[s],!Re(o))continue;const l=Object.keys(o);for(let u=0,c=l.length;u<c;++u)a(l[u],e,o,n)}return e}function Ya(e,t){return $o(e,t,{merger:Q7})}function Q7(e,t,n){if(!N4(e))return;const r=t[e],i=n[e];Re(r)&&Re(i)?Ya(r,i):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=Ol(i))}const ep={"":e=>e,x:e=>e.x,y:e=>e.y};function q7(e){const t=e.split("."),n=[];let r="";for(const i of t)r+=i,r.endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}function eP(e){const t=q7(e);return n=>{for(const r of t){if(r==="")break;n=n&&n[r]}return n}}function Ro(e,t){return(ep[t]||(ep[t]=eP(t)))(e)}function rh(e){return e.charAt(0).toUpperCase()+e.slice(1)}const Nl=e=>typeof e<"u",kr=e=>typeof e=="function",tp=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};function tP(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const Qe=Math.PI,Ke=2*Qe,nP=Ke+Qe,Ll=Number.POSITIVE_INFINITY,rP=Qe/180,dt=Qe/2,Gr=Qe/4,np=Qe*2/3,Ir=Math.log10,ca=Math.sign;function Ua(e,t,n){return Math.abs(e-t)<n}function rp(e){const t=Math.round(e);e=Ua(e,t,e/1e3)?t:e;const n=Math.pow(10,Math.floor(Ir(e))),r=e/n;return(r<=1?1:r<=2?2:r<=5?5:10)*n}function iP(e){const t=[],n=Math.sqrt(e);let r;for(r=1;r<n;r++)e%r===0&&(t.push(r),t.push(e/r));return n===(n|0)&&t.push(n),t.sort((i,a)=>i-a).pop(),t}function jl(e){return!isNaN(parseFloat(e))&&isFinite(e)}function aP(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}function L4(e,t,n){let r,i,a;for(r=0,i=e.length;r<i;r++)a=e[r][n],isNaN(a)||(t.min=Math.min(t.min,a),t.max=Math.max(t.max,a))}function Nn(e){return e*(Qe/180)}function ih(e){return e*(180/Qe)}function ip(e){if(!xt(e))return;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n++;return n}function j4(e,t){const n=t.x-e.x,r=t.y-e.y,i=Math.sqrt(n*n+r*r);let a=Math.atan2(r,n);return a<-.5*Qe&&(a+=Ke),{angle:a,distance:i}}function Sd(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function oP(e,t){return(e-t+nP)%Ke-Qe}function xn(e){return(e%Ke+Ke)%Ke}function Ao(e,t,n,r){const i=xn(e),a=xn(t),o=xn(n),s=xn(a-i),l=xn(o-i),u=xn(i-a),c=xn(i-o);return i===a||i===o||r&&a===o||s>l&&u<c}function en(e,t,n){return Math.max(t,Math.min(n,e))}function sP(e){return en(e,-32768,32767)}function Zi(e,t,n,r=1e-6){return e>=Math.min(t,n)-r&&e<=Math.max(t,n)+r}function ah(e,t,n){n=n||(o=>e[o]<t);let r=e.length-1,i=0,a;for(;r-i>1;)a=i+r>>1,n(a)?i=a:r=a;return{lo:i,hi:r}}const Ed=(e,t,n,r)=>ah(e,n,r?i=>{const a=e[i][t];return a<n||a===n&&e[i+1][t]===n}:i=>e[i][t]<n),lP=(e,t,n)=>ah(e,n,r=>e[r][t]>=n);function uP(e,t,n){let r=0,i=e.length;for(;r<i&&e[r]<t;)r++;for(;i>r&&e[i-1]>n;)i--;return r>0||i<e.length?e.slice(r,i):e}const H4=["push","pop","shift","splice","unshift"];function cP(e,t){if(e._chartjs){e._chartjs.listeners.push(t);return}Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),H4.forEach(n=>{const r="_onData"+rh(n),i=e[n];Object.defineProperty(e,n,{configurable:!0,enumerable:!1,value(...a){const o=i.apply(this,a);return e._chartjs.listeners.forEach(s=>{typeof s[r]=="function"&&s[r](...a)}),o}})})}function ap(e,t){const n=e._chartjs;if(!n)return;const r=n.listeners,i=r.indexOf(t);i!==-1&&r.splice(i,1),!(r.length>0)&&(H4.forEach(a=>{delete e[a]}),delete e._chartjs)}function dP(e){const t=new Set(e);return t.size===e.length?e:Array.from(t)}const W4=function(){return typeof window>"u"?function(e){return e()}:window.requestAnimationFrame}();function z4(e,t){let n=[],r=!1;return function(...i){n=i,r||(r=!0,W4.call(window,()=>{r=!1,e.apply(t,n)}))}}function fP(e,t){let n;return function(...r){return t?(clearTimeout(n),n=setTimeout(e,t,r)):e.apply(this,r),t}}const oh=e=>e==="start"?"left":e==="end"?"right":"center",_t=(e,t,n)=>e==="start"?t:e==="end"?n:(t+n)/2,hP=(e,t,n,r)=>e===(r?"left":"right")?n:e==="center"?(t+n)/2:t,Ds=e=>e===0||e===1,op=(e,t,n)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*Ke/n)),sp=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*Ke/n)+1,Ja={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*dt)+1,easeOutSine:e=>Math.sin(e*dt),easeInOutSine:e=>-.5*(Math.cos(Qe*e)-1),easeInExpo:e=>e===0?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>e===1?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>Ds(e)?e:e<.5?.5*Math.pow(2,10*(e*2-1)):.5*(-Math.pow(2,-10*(e*2-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>Ds(e)?e:op(e,.075,.3),easeOutElastic:e=>Ds(e)?e:sp(e,.075,.3),easeInOutElastic(e){return Ds(e)?e:e<.5?.5*op(e*2,.1125,.45):.5+.5*sp(e*2-1,.1125,.45)},easeInBack(e){return e*e*((1.70158+1)*e-1.70158)},easeOutBack(e){return(e-=1)*e*((1.70158+1)*e+1.70158)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-Ja.easeOutBounce(1-e),easeOutBounce(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:e=>e<.5?Ja.easeInBounce(e*2)*.5:Ja.easeOutBounce(e*2-1)*.5+.5};function sh(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function lp(e){return sh(e)?e:new _o(e)}function yc(e){return sh(e)?e:new _o(e).saturate(.5).darken(.1).hexString()}const gP=["x","y","borderWidth","radius","tension"],mP=["color","borderColor","backgroundColor"];function pP(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"}),e.set("animations",{colors:{type:"color",properties:mP},numbers:{type:"number",properties:gP}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>t|0}}}})}function bP(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const up=new Map;function vP(e,t){t=t||{};const n=e+JSON.stringify(t);let r=up.get(n);return r||(r=new Intl.NumberFormat(e,t),up.set(n,r)),r}function xu(e,t,n){return vP(t,n).format(e)}const G4={values(e){return at(e)?e:""+e},numeric(e,t,n){if(e===0)return"0";const r=this.chart.options.locale;let i,a=e;if(n.length>1){const u=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(u<1e-4||u>1e15)&&(i="scientific"),a=yP(e,n)}const o=Ir(Math.abs(a)),s=isNaN(o)?1:Math.max(Math.min(-1*Math.floor(o),20),0),l={notation:i,minimumFractionDigits:s,maximumFractionDigits:s};return Object.assign(l,this.options.ticks.format),xu(e,r,l)},logarithmic(e,t,n){if(e===0)return"0";const r=n[t].significand||e/Math.pow(10,Math.floor(Ir(e)));return[1,2,3,5,10,15].includes(r)||t>.8*n.length?G4.numeric.call(this,e,t,n):""}};function yP(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e)),n}var Cu={formatters:G4};function xP(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,n)=>n.lineWidth,tickColor:(t,n)=>n.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Cu.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"&&t!=="dash"}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"})}const yi=Object.create(null),Id=Object.create(null);function Ka(e,t){if(!t)return e;const n=t.split(".");for(let r=0,i=n.length;r<i;++r){const a=n[r];e=e[a]||(e[a]=Object.create(null))}return e}function xc(e,t,n){return typeof t=="string"?$o(Ka(e,t),n):$o(Ka(e,""),t)}class CP{constructor(t,n){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=r=>r.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(r,i)=>yc(i.backgroundColor),this.hoverBorderColor=(r,i)=>yc(i.borderColor),this.hoverColor=(r,i)=>yc(i.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(n)}set(t,n){return xc(this,t,n)}get(t){return Ka(this,t)}describe(t,n){return xc(Id,t,n)}override(t,n){return xc(yi,t,n)}route(t,n,r,i){const a=Ka(this,t),o=Ka(this,r),s="_"+n;Object.defineProperties(a,{[s]:{value:a[n],writable:!0},[n]:{enumerable:!0,get(){const l=this[s],u=o[i];return Re(l)?Object.assign({},u,l):Ce(l,u)},set(l){this[s]=l}}})}apply(t){t.forEach(n=>n(this))}}var ot=new CP({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[pP,bP,xP]);function wP(e){return!e||Je(e.size)||Je(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function Hl(e,t,n,r,i){let a=t[i];return a||(a=t[i]=e.measureText(i).width,n.push(i)),a>r&&(r=a),r}function DP(e,t,n,r){r=r||{};let i=r.data=r.data||{},a=r.garbageCollect=r.garbageCollect||[];r.font!==t&&(i=r.data={},a=r.garbageCollect=[],r.font=t),e.save(),e.font=t;let o=0;const s=n.length;let l,u,c,d,h;for(l=0;l<s;l++)if(d=n[l],d!=null&&!at(d))o=Hl(e,i,a,o,d);else if(at(d))for(u=0,c=d.length;u<c;u++)h=d[u],h!=null&&!at(h)&&(o=Hl(e,i,a,o,h));e.restore();const f=a.length/2;if(f>n.length){for(l=0;l<f;l++)delete i[a[l]];a.splice(0,f)}return o}function Zr(e,t,n){const r=e.currentDevicePixelRatio,i=n!==0?Math.max(n/2,.5):0;return Math.round((t-i)*r)/r+i}function cp(e,t){!t&&!e||(t=t||e.getContext("2d"),t.save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore())}function _d(e,t,n,r){Z4(e,t,n,r,null)}function Z4(e,t,n,r,i){let a,o,s,l,u,c,d,h;const f=t.pointStyle,g=t.rotation,m=t.radius;let p=(g||0)*rP;if(f&&typeof f=="object"&&(a=f.toString(),a==="[object HTMLImageElement]"||a==="[object HTMLCanvasElement]")){e.save(),e.translate(n,r),e.rotate(p),e.drawImage(f,-f.width/2,-f.height/2,f.width,f.height),e.restore();return}if(!(isNaN(m)||m<=0)){switch(e.beginPath(),f){default:i?e.ellipse(n,r,i/2,m,0,0,Ke):e.arc(n,r,m,0,Ke),e.closePath();break;case"triangle":c=i?i/2:m,e.moveTo(n+Math.sin(p)*c,r-Math.cos(p)*m),p+=np,e.lineTo(n+Math.sin(p)*c,r-Math.cos(p)*m),p+=np,e.lineTo(n+Math.sin(p)*c,r-Math.cos(p)*m),e.closePath();break;case"rectRounded":u=m*.516,l=m-u,o=Math.cos(p+Gr)*l,d=Math.cos(p+Gr)*(i?i/2-u:l),s=Math.sin(p+Gr)*l,h=Math.sin(p+Gr)*(i?i/2-u:l),e.arc(n-d,r-s,u,p-Qe,p-dt),e.arc(n+h,r-o,u,p-dt,p),e.arc(n+d,r+s,u,p,p+dt),e.arc(n-h,r+o,u,p+dt,p+Qe),e.closePath();break;case"rect":if(!g){l=Math.SQRT1_2*m,c=i?i/2:l,e.rect(n-c,r-l,2*c,2*l);break}p+=Gr;case"rectRot":d=Math.cos(p)*(i?i/2:m),o=Math.cos(p)*m,s=Math.sin(p)*m,h=Math.sin(p)*(i?i/2:m),e.moveTo(n-d,r-s),e.lineTo(n+h,r-o),e.lineTo(n+d,r+s),e.lineTo(n-h,r+o),e.closePath();break;case"crossRot":p+=Gr;case"cross":d=Math.cos(p)*(i?i/2:m),o=Math.cos(p)*m,s=Math.sin(p)*m,h=Math.sin(p)*(i?i/2:m),e.moveTo(n-d,r-s),e.lineTo(n+d,r+s),e.moveTo(n+h,r-o),e.lineTo(n-h,r+o);break;case"star":d=Math.cos(p)*(i?i/2:m),o=Math.cos(p)*m,s=Math.sin(p)*m,h=Math.sin(p)*(i?i/2:m),e.moveTo(n-d,r-s),e.lineTo(n+d,r+s),e.moveTo(n+h,r-o),e.lineTo(n-h,r+o),p+=Gr,d=Math.cos(p)*(i?i/2:m),o=Math.cos(p)*m,s=Math.sin(p)*m,h=Math.sin(p)*(i?i/2:m),e.moveTo(n-d,r-s),e.lineTo(n+d,r+s),e.moveTo(n+h,r-o),e.lineTo(n-h,r+o);break;case"line":o=i?i/2:Math.cos(p)*m,s=Math.sin(p)*m,e.moveTo(n-o,r-s),e.lineTo(n+o,r+s);break;case"dash":e.moveTo(n,r),e.lineTo(n+Math.cos(p)*(i?i/2:m),r+Math.sin(p)*m);break;case!1:e.closePath();break}e.fill(),t.borderWidth>0&&e.stroke()}}function sr(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.x<t.right+n&&e.y>t.top-n&&e.y<t.bottom+n}function lh(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function uh(e){e.restore()}function SP(e,t,n,r,i){if(!t)return e.lineTo(n.x,n.y);if(i==="middle"){const a=(t.x+n.x)/2;e.lineTo(a,t.y),e.lineTo(a,n.y)}else i==="after"!=!!r?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)}function EP(e,t,n,r){if(!t)return e.lineTo(n.x,n.y);e.bezierCurveTo(r?t.cp1x:t.cp2x,r?t.cp1y:t.cp2y,r?n.cp2x:n.cp1x,r?n.cp2y:n.cp1y,n.x,n.y)}function IP(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]),Je(t.rotation)||e.rotate(t.rotation),t.color&&(e.fillStyle=t.color),t.textAlign&&(e.textAlign=t.textAlign),t.textBaseline&&(e.textBaseline=t.textBaseline)}function _P(e,t,n,r,i){if(i.strikethrough||i.underline){const a=e.measureText(r),o=t-a.actualBoundingBoxLeft,s=t+a.actualBoundingBoxRight,l=n-a.actualBoundingBoxAscent,u=n+a.actualBoundingBoxDescent,c=i.strikethrough?(l+u)/2:u;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=i.decorationWidth||2,e.moveTo(o,c),e.lineTo(s,c),e.stroke()}}function $P(e,t){const n=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=n}function xi(e,t,n,r,i,a={}){const o=at(t)?t:[t],s=a.strokeWidth>0&&a.strokeColor!=="";let l,u;for(e.save(),e.font=i.string,IP(e,a),l=0;l<o.length;++l)u=o[l],a.backdrop&&$P(e,a.backdrop),s&&(a.strokeColor&&(e.strokeStyle=a.strokeColor),Je(a.strokeWidth)||(e.lineWidth=a.strokeWidth),e.strokeText(u,n,r,a.maxWidth)),e.fillText(u,n,r,a.maxWidth),_P(e,n,r,u,a),r+=Number(i.lineHeight);e.restore()}function Wl(e,t){const{x:n,y:r,w:i,h:a,radius:o}=t;e.arc(n+o.topLeft,r+o.topLeft,o.topLeft,1.5*Qe,Qe,!0),e.lineTo(n,r+a-o.bottomLeft),e.arc(n+o.bottomLeft,r+a-o.bottomLeft,o.bottomLeft,Qe,dt,!0),e.lineTo(n+i-o.bottomRight,r+a),e.arc(n+i-o.bottomRight,r+a-o.bottomRight,o.bottomRight,dt,0,!0),e.lineTo(n+i,r+o.topRight),e.arc(n+i-o.topRight,r+o.topRight,o.topRight,0,-dt,!0),e.lineTo(n+o.topLeft,r)}const RP=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,AP=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function FP(e,t){const n=(""+e).match(RP);if(!n||n[1]==="normal")return t*1.2;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100;break}return t*e}const PP=e=>+e||0;function ch(e,t){const n={},r=Re(t),i=r?Object.keys(t):t,a=Re(e)?r?o=>Ce(e[o],e[t[o]]):o=>e[o]:()=>e;for(const o of i)n[o]=PP(a(o));return n}function TP(e){return ch(e,{top:"y",right:"x",bottom:"y",left:"x"})}function ta(e){return ch(e,["topLeft","topRight","bottomLeft","bottomRight"])}function Ft(e){const t=TP(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function pt(e,t){e=e||{},t=t||ot.font;let n=Ce(e.size,t.size);typeof n=="string"&&(n=parseInt(n,10));let r=Ce(e.style,t.style);r&&!(""+r).match(AP)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const i={family:Ce(e.family,t.family),lineHeight:FP(Ce(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:Ce(e.weight,t.weight),string:""};return i.string=wP(i),i}function Ss(e,t,n,r){let i,a,o;for(i=0,a=e.length;i<a;++i)if(o=e[i],o!==void 0&&o!==void 0)return o}function kP(e,t,n){const{min:r,max:i}=e,a=O4(t,(i-r)/2),o=(s,l)=>n&&s===0?0:s+l;return{min:o(r,-Math.abs(a)),max:o(i,a)}}function Nr(e,t){return Object.assign(Object.create(e),t)}function dh(e,t=[""],n,r,i=()=>e[0]){const a=n||e;typeof r>"u"&&(r=J4("_fallback",e));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:a,_fallback:r,_getTarget:i,override:s=>dh([s,...e],t,a,r)};return new Proxy(o,{deleteProperty(s,l){return delete s[l],delete s._keys,delete e[0][l],!0},get(s,l){return Y4(s,l,()=>HP(l,t,e,s))},getOwnPropertyDescriptor(s,l){return Reflect.getOwnPropertyDescriptor(s._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(s,l){return fp(s).includes(l)},ownKeys(s){return fp(s)},set(s,l,u){const c=s._storage||(s._storage=i());return s[l]=c[l]=u,delete s._keys,!0}})}function da(e,t,n,r){const i={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:X4(e,r),setContext:a=>da(e,a,n,r),override:a=>da(e.override(a),t,n,r)};return new Proxy(i,{deleteProperty(a,o){return delete a[o],delete e[o],!0},get(a,o,s){return Y4(a,o,()=>BP(a,o,s))},getOwnPropertyDescriptor(a,o){return a._descriptors.allKeys?Reflect.has(e,o)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,o)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(a,o){return Reflect.has(e,o)},ownKeys(){return Reflect.ownKeys(e)},set(a,o,s){return e[o]=s,delete a[o],!0}})}function X4(e,t={scriptable:!0,indexable:!0}){const{_scriptable:n=t.scriptable,_indexable:r=t.indexable,_allKeys:i=t.allKeys}=e;return{allKeys:i,scriptable:n,indexable:r,isScriptable:kr(n)?n:()=>n,isIndexable:kr(r)?r:()=>r}}const MP=(e,t)=>e?e+rh(t):t,fh=(e,t)=>Re(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function Y4(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t)||t==="constructor")return e[t];const r=n();return e[t]=r,r}function BP(e,t,n){const{_proxy:r,_context:i,_subProxy:a,_descriptors:o}=e;let s=r[t];return kr(s)&&o.isScriptable(t)&&(s=VP(t,s,e,n)),at(s)&&s.length&&(s=OP(t,s,e,o.isIndexable)),fh(t,s)&&(s=da(s,i,a&&a[t],o)),s}function VP(e,t,n,r){const{_proxy:i,_context:a,_subProxy:o,_stack:s}=n;if(s.has(e))throw new Error("Recursion detected: "+Array.from(s).join("->")+"->"+e);s.add(e);let l=t(a,o||r);return s.delete(e),fh(e,l)&&(l=hh(i._scopes,i,e,l)),l}function OP(e,t,n,r){const{_proxy:i,_context:a,_subProxy:o,_descriptors:s}=n;if(typeof a.index<"u"&&r(e))return t[a.index%t.length];if(Re(t[0])){const l=t,u=i._scopes.filter(c=>c!==l);t=[];for(const c of l){const d=hh(u,i,e,c);t.push(da(d,a,o&&o[e],s))}}return t}function U4(e,t,n){return kr(e)?e(t,n):e}const NP=(e,t)=>e===!0?t:typeof e=="string"?Ro(t,e):void 0;function LP(e,t,n,r,i){for(const a of t){const o=NP(n,a);if(o){e.add(o);const s=U4(o._fallback,n,i);if(typeof s<"u"&&s!==n&&s!==r)return s}else if(o===!1&&typeof r<"u"&&n!==r)return null}return!1}function hh(e,t,n,r){const i=t._rootScopes,a=U4(t._fallback,n,r),o=[...e,...i],s=new Set;s.add(r);let l=dp(s,o,n,a||n,r);return l===null||typeof a<"u"&&a!==n&&(l=dp(s,o,a,l,r),l===null)?!1:dh(Array.from(s),[""],i,a,()=>jP(t,n,r))}function dp(e,t,n,r,i){for(;n;)n=LP(e,t,n,r,i);return n}function jP(e,t,n){const r=e._getTarget();t in r||(r[t]={});const i=r[t];return at(i)&&Re(n)?n:i||{}}function HP(e,t,n,r){let i;for(const a of t)if(i=J4(MP(a,e),n),typeof i<"u")return fh(e,i)?hh(n,r,e,i):i}function J4(e,t){for(const n of t){if(!n)continue;const r=n[e];if(typeof r<"u")return r}}function fp(e){let t=e._keys;return t||(t=e._keys=WP(e._scopes)),t}function WP(e){const t=new Set;for(const n of e)for(const r of Object.keys(n).filter(i=>!i.startsWith("_")))t.add(r);return Array.from(t)}const zP=Number.EPSILON||1e-14,fa=(e,t)=>t<e.length&&!e[t].skip&&e[t],K4=e=>e==="x"?"y":"x";function GP(e,t,n,r){const i=e.skip?t:e,a=t,o=n.skip?t:n,s=Sd(a,i),l=Sd(o,a);let u=s/(s+l),c=l/(s+l);u=isNaN(u)?0:u,c=isNaN(c)?0:c;const d=r*u,h=r*c;return{previous:{x:a.x-d*(o.x-i.x),y:a.y-d*(o.y-i.y)},next:{x:a.x+h*(o.x-i.x),y:a.y+h*(o.y-i.y)}}}function ZP(e,t,n){const r=e.length;let i,a,o,s,l,u=fa(e,0);for(let c=0;c<r-1;++c)if(l=u,u=fa(e,c+1),!(!l||!u)){if(Ua(t[c],0,zP)){n[c]=n[c+1]=0;continue}i=n[c]/t[c],a=n[c+1]/t[c],s=Math.pow(i,2)+Math.pow(a,2),!(s<=9)&&(o=3/Math.sqrt(s),n[c]=i*o*t[c],n[c+1]=a*o*t[c])}}function XP(e,t,n="x"){const r=K4(n),i=e.length;let a,o,s,l=fa(e,0);for(let u=0;u<i;++u){if(o=s,s=l,l=fa(e,u+1),!s)continue;const c=s[n],d=s[r];o&&(a=(c-o[n])/3,s[`cp1${n}`]=c-a,s[`cp1${r}`]=d-a*t[u]),l&&(a=(l[n]-c)/3,s[`cp2${n}`]=c+a,s[`cp2${r}`]=d+a*t[u])}}function YP(e,t="x"){const n=K4(t),r=e.length,i=Array(r).fill(0),a=Array(r);let o,s,l,u=fa(e,0);for(o=0;o<r;++o)if(s=l,l=u,u=fa(e,o+1),!!l){if(u){const c=u[t]-l[t];i[o]=c!==0?(u[n]-l[n])/c:0}a[o]=s?u?ca(i[o-1])!==ca(i[o])?0:(i[o-1]+i[o])/2:i[o-1]:i[o]}ZP(e,i,a),XP(e,a,t)}function Es(e,t,n){return Math.max(Math.min(e,n),t)}function UP(e,t){let n,r,i,a,o,s=sr(e[0],t);for(n=0,r=e.length;n<r;++n)o=a,a=s,s=n<r-1&&sr(e[n+1],t),a&&(i=e[n],o&&(i.cp1x=Es(i.cp1x,t.left,t.right),i.cp1y=Es(i.cp1y,t.top,t.bottom)),s&&(i.cp2x=Es(i.cp2x,t.left,t.right),i.cp2y=Es(i.cp2y,t.top,t.bottom)))}function JP(e,t,n,r,i){let a,o,s,l;if(t.spanGaps&&(e=e.filter(u=>!u.skip)),t.cubicInterpolationMode==="monotone")YP(e,i);else{let u=r?e[e.length-1]:e[0];for(a=0,o=e.length;a<o;++a)s=e[a],l=GP(u,s,e[Math.min(a+1,o-(r?0:1))%o],t.tension),s.cp1x=l.previous.x,s.cp1y=l.previous.y,s.cp2x=l.next.x,s.cp2y=l.next.y,u=s}t.capBezierPoints&&UP(e,n)}function gh(){return typeof window<"u"&&typeof document<"u"}function mh(e){let t=e.parentNode;return t&&t.toString()==="[object ShadowRoot]"&&(t=t.host),t}function zl(e,t,n){let r;return typeof e=="string"?(r=parseInt(e,10),e.indexOf("%")!==-1&&(r=r/100*t.parentNode[n])):r=e,r}const wu=e=>e.ownerDocument.defaultView.getComputedStyle(e,null);function KP(e,t){return wu(e).getPropertyValue(t)}const QP=["top","right","bottom","left"];function ci(e,t,n){const r={};n=n?"-"+n:"";for(let i=0;i<4;i++){const a=QP[i];r[a]=parseFloat(e[t+"-"+a+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const qP=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function eT(e,t){const n=e.touches,r=n&&n.length?n[0]:e,{offsetX:i,offsetY:a}=r;let o=!1,s,l;if(qP(i,a,e.target))s=i,l=a;else{const u=t.getBoundingClientRect();s=r.clientX-u.left,l=r.clientY-u.top,o=!0}return{x:s,y:l,box:o}}function Qr(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:r}=t,i=wu(n),a=i.boxSizing==="border-box",o=ci(i,"padding"),s=ci(i,"border","width"),{x:l,y:u,box:c}=eT(e,n),d=o.left+(c&&s.left),h=o.top+(c&&s.top);let{width:f,height:g}=t;return a&&(f-=o.width+s.width,g-=o.height+s.height),{x:Math.round((l-d)/f*n.width/r),y:Math.round((u-h)/g*n.height/r)}}function tT(e,t,n){let r,i;if(t===void 0||n===void 0){const a=e&&mh(e);if(!a)t=e.clientWidth,n=e.clientHeight;else{const o=a.getBoundingClientRect(),s=wu(a),l=ci(s,"border","width"),u=ci(s,"padding");t=o.width-u.width-l.width,n=o.height-u.height-l.height,r=zl(s.maxWidth,a,"clientWidth"),i=zl(s.maxHeight,a,"clientHeight")}}return{width:t,height:n,maxWidth:r||Ll,maxHeight:i||Ll}}const Is=e=>Math.round(e*10)/10;function nT(e,t,n,r){const i=wu(e),a=ci(i,"margin"),o=zl(i.maxWidth,e,"clientWidth")||Ll,s=zl(i.maxHeight,e,"clientHeight")||Ll,l=tT(e,t,n);let{width:u,height:c}=l;if(i.boxSizing==="content-box"){const h=ci(i,"border","width"),f=ci(i,"padding");u-=f.width+h.width,c-=f.height+h.height}return u=Math.max(0,u-a.width),c=Math.max(0,r?u/r:c-a.height),u=Is(Math.min(u,o,l.maxWidth)),c=Is(Math.min(c,s,l.maxHeight)),u&&!c&&(c=Is(u/2)),(t!==void 0||n!==void 0)&&r&&l.height&&c>l.height&&(c=l.height,u=Is(Math.floor(c*r))),{width:u,height:c}}function hp(e,t,n){const r=t||1,i=Math.floor(e.height*r),a=Math.floor(e.width*r);e.height=Math.floor(e.height),e.width=Math.floor(e.width);const o=e.canvas;return o.style&&(n||!o.style.height&&!o.style.width)&&(o.style.height=`${e.height}px`,o.style.width=`${e.width}px`),e.currentDevicePixelRatio!==r||o.height!==i||o.width!==a?(e.currentDevicePixelRatio=r,o.height=i,o.width=a,e.ctx.setTransform(r,0,0,r,0,0),!0):!1}const rT=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};gh()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch{}return e}();function gp(e,t){const n=KP(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function qr(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function iT(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:r==="middle"?n<.5?e.y:t.y:r==="after"?n<1?e.y:t.y:n>0?t.y:e.y}}function aT(e,t,n,r){const i={x:e.cp2x,y:e.cp2y},a={x:t.cp1x,y:t.cp1y},o=qr(e,i,n),s=qr(i,a,n),l=qr(a,t,n),u=qr(o,s,n),c=qr(s,l,n);return qr(u,c,n)}const oT=function(e,t){return{x(n){return e+e+t-n},setWidth(n){t=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,r){return n-r},leftForLtr(n,r){return n-r}}},sT=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function na(e,t,n){return e?oT(t,n):sT()}function Q4(e,t){let n,r;(t==="ltr"||t==="rtl")&&(n=e.canvas.style,r=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=r)}function q4(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function e3(e){return e==="angle"?{between:Ao,compare:oP,normalize:xn}:{between:Zi,compare:(t,n)=>t-n,normalize:t=>t}}function mp({start:e,end:t,count:n,loop:r,style:i}){return{start:e%n,end:t%n,loop:r&&(t-e+1)%n===0,style:i}}function lT(e,t,n){const{property:r,start:i,end:a}=n,{between:o,normalize:s}=e3(r),l=t.length;let{start:u,end:c,loop:d}=e,h,f;if(d){for(u+=l,c+=l,h=0,f=l;h<f&&o(s(t[u%l][r]),i,a);++h)u--,c--;u%=l,c%=l}return c<u&&(c+=l),{start:u,end:c,loop:d,style:e.style}}function uT(e,t,n){if(!n)return[e];const{property:r,start:i,end:a}=n,o=t.length,{compare:s,between:l,normalize:u}=e3(r),{start:c,end:d,loop:h,style:f}=lT(e,t,n),g=[];let m=!1,p=null,b,v,y;const w=()=>l(i,y,b)&&s(i,y)!==0,C=()=>s(a,b)===0||l(a,y,b),E=()=>m||w(),I=()=>!m||C();for(let D=c,_=c;D<=d;++D)v=t[D%o],!v.skip&&(b=u(v[r]),b!==y&&(m=l(b,i,a),p===null&&E()&&(p=s(b,i)===0?D:_),p!==null&&I()&&(g.push(mp({start:p,end:D,loop:h,count:o,style:f})),p=null),_=D,y=b));return p!==null&&g.push(mp({start:p,end:d,loop:h,count:o,style:f})),g}function cT(e,t){const n=[],r=e.segments;for(let i=0;i<r.length;i++){const a=uT(r[i],e.points,t);a.length&&n.push(...a)}return n}function dT(e,t,n,r){let i=0,a=t-1;if(n&&!r)for(;i<t&&!e[i].skip;)i++;for(;i<t&&e[i].skip;)i++;for(i%=t,n&&(a+=i);a>i&&e[a%t].skip;)a--;return a%=t,{start:i,end:a}}function fT(e,t,n,r){const i=e.length,a=[];let o=t,s=e[t],l;for(l=t+1;l<=n;++l){const u=e[l%i];u.skip||u.stop?s.skip||(r=!1,a.push({start:t%i,end:(l-1)%i,loop:r}),t=o=u.stop?l:null):(o=l,s.skip&&(t=l)),s=u}return o!==null&&a.push({start:t%i,end:o%i,loop:r}),a}function hT(e,t){const n=e.points,r=e.options.spanGaps,i=n.length;if(!i)return[];const a=!!e._loop,{start:o,end:s}=dT(n,i,a,r);if(r===!0)return pp(e,[{start:o,end:s,loop:a}],n,t);const l=s<o?s+i:s,u=!!e._fullLoop&&o===0&&s===i-1;return pp(e,fT(n,o,l,u),n,t)}function pp(e,t,n,r){return!r||!r.setContext||!n?t:gT(e,t,n,r)}function gT(e,t,n,r){const i=e._chart.getContext(),a=bp(e.options),{_datasetIndex:o,options:{spanGaps:s}}=e,l=n.length,u=[];let c=a,d=t[0].start,h=d;function f(g,m,p,b){const v=s?-1:1;if(g!==m){for(g+=l;n[g%l].skip;)g-=v;for(;n[m%l].skip;)m+=v;g%l!==m%l&&(u.push({start:g%l,end:m%l,loop:p,style:b}),c=b,d=m%l)}}for(const g of t){d=s?d:g.start;let m=n[d%l],p;for(h=d+1;h<=g.end;h++){const b=n[h%l];p=bp(r.setContext(Nr(i,{type:"segment",p0:m,p1:b,p0DataIndex:(h-1)%l,p1DataIndex:h%l,datasetIndex:o}))),mT(p,c)&&f(d,h-1,g.loop,c),m=b,c=p}d<h-1&&f(d,h-1,g.loop,c)}return u}function bp(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function mT(e,t){if(!t)return!1;const n=[],r=function(i,a){return sh(a)?(n.includes(a)||n.push(a),n.indexOf(a)):a};return JSON.stringify(e,r)!==JSON.stringify(t,r)}/*!
|
166
166
|
* Chart.js v4.4.3
|
167
167
|
* https://www.chartjs.org
|
168
168
|
* (c) 2024 Chart.js Contributors
|
169
169
|
* Released under the MIT License
|
170
|
-
*/class pT{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,n,r,i){const a=n.listeners[i],o=n.duration;a.forEach(s=>s({chart:t,initial:n.initial,numSteps:o,currentStep:Math.min(r-n.start,o)}))}_refresh(){this._request||(this._running=!0,this._request=W4.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let n=0;this._charts.forEach((r,i)=>{if(!r.running||!r.items.length)return;const a=r.items;let o=a.length-1,s=!1,l;for(;o>=0;--o)l=a[o],l._active?(l._total>r.duration&&(r.duration=l._total),l.tick(t),s=!0):(a[o]=a[a.length-1],a.pop());s&&(i.draw(),this._notify(i,r,t,"progress")),a.length||(r.running=!1,this._notify(i,r,t,"complete"),r.initial=!1),n+=a.length}),this._lastDate=t,n===0&&(this._running=!1)}_getAnims(t){const n=this._charts;let r=n.get(t);return r||(r={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(t,r)),r}listen(t,n,r){this._getAnims(t).listeners[n].push(r)}add(t,n){!n||!n.length||this._getAnims(t).items.push(...n)}has(t){return this._getAnims(t).items.length>0}start(t){const n=this._charts.get(t);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((r,i)=>Math.max(r,i._duration),0),this._refresh())}running(t){if(!this._running)return!1;const n=this._charts.get(t);return!(!n||!n.running||!n.items.length)}stop(t){const n=this._charts.get(t);if(!n||!n.items.length)return;const r=n.items;let i=r.length-1;for(;i>=0;--i)r[i].cancel();n.items=[],this._notify(t,n,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var Jn=new pT;const vp="transparent",bT={boolean(e,t,n){return n>.5?t:e},color(e,t,n){const r=lp(e||vp),i=r.valid&&lp(t||vp);return i&&i.valid?i.mix(r,n).hexString():t},number(e,t,n){return e+(t-e)*n}};class vT{constructor(t,n,r,i){const a=n[r];i=Ss([t.to,i,a,t.from]);const o=Ss([t.from,a,i]);this._active=!0,this._fn=t.fn||bT[t.type||typeof o],this._easing=Ja[t.easing]||Ja.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=n,this._prop=r,this._from=o,this._to=i,this._promises=void 0}active(){return this._active}update(t,n,r){if(this._active){this._notify(!1);const i=this._target[this._prop],a=r-this._start,o=this._duration-a;this._start=r,this._duration=Math.floor(Math.max(o,t.duration)),this._total+=a,this._loop=!!t.loop,this._to=Ss([t.to,n,i,t.from]),this._from=Ss([t.from,i,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const n=t-this._start,r=this._duration,i=this._prop,a=this._from,o=this._loop,s=this._to;let l;if(this._active=a!==s&&(o||n<r),!this._active){this._target[i]=s,this._notify(!0);return}if(n<0){this._target[i]=a;return}l=n/r%2,l=o&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[i]=this._fn(a,s,l)}wait(){const t=this._promises||(this._promises=[]);return new Promise((n,r)=>{t.push({res:n,rej:r})})}_notify(t){const n=t?"res":"rej",r=this._promises||[];for(let i=0;i<r.length;i++)r[i][n]()}}class t3{constructor(t,n){this._chart=t,this._properties=new Map,this.configure(n)}configure(t){if(!Re(t))return;const n=Object.keys(ot.animation),r=this._properties;Object.getOwnPropertyNames(t).forEach(i=>{const a=t[i];if(!Re(a))return;const o={};for(const s of n)o[s]=a[s];(at(a.properties)&&a.properties||[i]).forEach(s=>{(s===i||!r.has(s))&&r.set(s,o)})})}_animateOptions(t,n){const r=n.options,i=xT(t,r);if(!i)return[];const a=this._createAnimations(i,r);return r.$shared&&yT(t.options.$animations,r).then(()=>{t.options=r},()=>{}),a}_createAnimations(t,n){const r=this._properties,i=[],a=t.$animations||(t.$animations={}),o=Object.keys(n),s=Date.now();let l;for(l=o.length-1;l>=0;--l){const u=o[l];if(u.charAt(0)==="$")continue;if(u==="options"){i.push(...this._animateOptions(t,n));continue}const c=n[u];let d=a[u];const h=r.get(u);if(d)if(h&&d.active()){d.update(h,c,s);continue}else d.cancel();if(!h||!h.duration){t[u]=c;continue}a[u]=d=new vT(h,t,u,c),i.push(d)}return i}update(t,n){if(this._properties.size===0){Object.assign(t,n);return}const r=this._createAnimations(t,n);if(r.length)return Jn.add(this._chart,r),!0}}function yT(e,t){const n=[],r=Object.keys(t);for(let i=0;i<r.length;i++){const a=e[r[i]];a&&a.active()&&n.push(a.wait())}return Promise.all(n)}function xT(e,t){if(!t)return;let n=e.options;if(!n){e.options=t;return}return n.$shared&&(e.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n}function yp(e,t){const n=e&&e.options||{},r=n.reverse,i=n.min===void 0?t:0,a=n.max===void 0?t:0;return{start:r?a:i,end:r?i:a}}function CT(e,t,n){if(n===!1)return!1;const r=yp(e,n),i=yp(t,n);return{top:i.end,right:r.end,bottom:i.start,left:r.start}}function wT(e){let t,n,r,i;return Re(e)?(t=e.top,n=e.right,r=e.bottom,i=e.left):t=n=r=i=e,{top:t,right:n,bottom:r,left:i,disabled:e===!1}}function n3(e,t){const n=[],r=e._getSortedDatasetMetas(t);let i,a;for(i=0,a=r.length;i<a;++i)n.push(r[i].index);return n}function xp(e,t,n,r={}){const i=e.keys,a=r.mode==="single";let o,s,l,u;if(t!==null){for(o=0,s=i.length;o<s;++o){if(l=+i[o],l===n){if(r.all)continue;break}u=e.values[l],xt(u)&&(a||t===0||ca(t)===ca(u))&&(t+=u)}return t}}function DT(e,t){const{iScale:n,vScale:r}=t,i=n.axis==="x"?"x":"y",a=r.axis==="x"?"x":"y",o=Object.keys(e),s=new Array(o.length);let l,u,c;for(l=0,u=o.length;l<u;++l)c=o[l],s[l]={[i]:c,[a]:e[c]};return s}function Cp(e,t){const n=e&&e.options.stacked;return n||n===void 0&&t.stack!==void 0}function ST(e,t,n){return`${e.id}.${t.id}.${n.stack||n.type}`}function ET(e){const{min:t,max:n,minDefined:r,maxDefined:i}=e.getUserBounds();return{min:r?t:Number.NEGATIVE_INFINITY,max:i?n:Number.POSITIVE_INFINITY}}function IT(e,t,n){const r=e[t]||(e[t]={});return r[n]||(r[n]={})}function wp(e,t,n,r){for(const i of t.getMatchingVisibleMetas(r).reverse()){const a=e[i.index];if(n&&a>0||!n&&a<0)return i.index}return null}function Dp(e,t){const{chart:n,_cachedMeta:r}=e,i=n._stacks||(n._stacks={}),{iScale:a,vScale:o,index:s}=r,l=a.axis,u=o.axis,c=ST(a,o,r),d=t.length;let h;for(let f=0;f<d;++f){const g=t[f],{[l]:m,[u]:p}=g,b=g._stacks||(g._stacks={});h=b[u]=IT(i,c,m),h[s]=p,h._top=wp(h,o,!0,r.type),h._bottom=wp(h,o,!1,r.type);const v=h._visualValues||(h._visualValues={});v[s]=p}}function Cc(e,t){const n=e.scales;return Object.keys(n).filter(r=>n[r].axis===t).shift()}function _T(e,t){return Nr(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function $T(e,t,n){return Nr(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}function Sa(e,t){const n=e.controller.index,r=e.vScale&&e.vScale.axis;if(r){t=t||e._parsed;for(const i of t){const a=i._stacks;if(!a||a[r]===void 0||a[r][n]===void 0)return;delete a[r][n],a[r]._visualValues!==void 0&&a[r]._visualValues[n]!==void 0&&delete a[r]._visualValues[n]}}}const wc=e=>e==="reset"||e==="none",Sp=(e,t)=>t?e:Object.assign({},e),RT=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:n3(n,!0),values:null};class Qa{constructor(t,n){this.chart=t,this._ctx=t.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=Cp(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&Sa(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,n=this._cachedMeta,r=this.getDataset(),i=(d,h,f,g)=>d==="x"?h:d==="r"?g:f,a=n.xAxisID=Ce(r.xAxisID,Cc(t,"x")),o=n.yAxisID=Ce(r.yAxisID,Cc(t,"y")),s=n.rAxisID=Ce(r.rAxisID,Cc(t,"r")),l=n.indexAxis,u=n.iAxisID=i(l,a,o,s),c=n.vAxisID=i(l,o,a,s);n.xScale=this.getScaleForId(a),n.yScale=this.getScaleForId(o),n.rScale=this.getScaleForId(s),n.iScale=this.getScaleForId(u),n.vScale=this.getScaleForId(c)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const n=this._cachedMeta;return t===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&ap(this._data,this),t._stacked&&Sa(t)}_dataCheck(){const t=this.getDataset(),n=t.data||(t.data=[]),r=this._data;if(Re(n)){const i=this._cachedMeta;this._data=DT(n,i)}else if(r!==n){if(r){ap(r,this);const i=this._cachedMeta;Sa(i),i._parsed=[]}n&&Object.isExtensible(n)&&cP(n,this),this._syncList=[],this._data=n}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const n=this._cachedMeta,r=this.getDataset();let i=!1;this._dataCheck();const a=n._stacked;n._stacked=Cp(n.vScale,n),n.stack!==r.stack&&(i=!0,Sa(n),n.stack=r.stack),this._resyncElements(t),(i||a!==n._stacked)&&Dp(this,n._parsed)}configure(){const t=this.chart.config,n=t.datasetScopeKeys(this._type),r=t.getOptionScopes(this.getDataset(),n,!0);this.options=t.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,n){const{_cachedMeta:r,_data:i}=this,{iScale:a,_stacked:o}=r,s=a.axis;let l=t===0&&n===i.length?!0:r._sorted,u=t>0&&r._parsed[t-1],c,d,h;if(this._parsing===!1)r._parsed=i,r._sorted=!0,h=i;else{at(i[t])?h=this.parseArrayData(r,i,t,n):Re(i[t])?h=this.parseObjectData(r,i,t,n):h=this.parsePrimitiveData(r,i,t,n);const f=()=>d[s]===null||u&&d[s]<u[s];for(c=0;c<n;++c)r._parsed[c+t]=d=h[c],l&&(f()&&(l=!1),u=d);r._sorted=l}o&&Dp(this,h)}parsePrimitiveData(t,n,r,i){const{iScale:a,vScale:o}=t,s=a.axis,l=o.axis,u=a.getLabels(),c=a===o,d=new Array(i);let h,f,g;for(h=0,f=i;h<f;++h)g=h+r,d[h]={[s]:c||a.parse(u[g],g),[l]:o.parse(n[g],g)};return d}parseArrayData(t,n,r,i){const{xScale:a,yScale:o}=t,s=new Array(i);let l,u,c,d;for(l=0,u=i;l<u;++l)c=l+r,d=n[c],s[l]={x:a.parse(d[0],c),y:o.parse(d[1],c)};return s}parseObjectData(t,n,r,i){const{xScale:a,yScale:o}=t,{xAxisKey:s="x",yAxisKey:l="y"}=this._parsing,u=new Array(i);let c,d,h,f;for(c=0,d=i;c<d;++c)h=c+r,f=n[h],u[c]={x:a.parse(Ro(f,s),h),y:o.parse(Ro(f,l),h)};return u}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,n,r){const i=this.chart,a=this._cachedMeta,o=n[t.axis],s={keys:n3(i,!0),values:n._stacks[t.axis]._visualValues};return xp(s,o,a.index,{mode:r})}updateRangeFromParsed(t,n,r,i){const a=r[n.axis];let o=a===null?NaN:a;const s=i&&r._stacks[n.axis];i&&s&&(i.values=s,o=xp(i,a,this._cachedMeta.index)),t.min=Math.min(t.min,o),t.max=Math.max(t.max,o)}getMinMax(t,n){const r=this._cachedMeta,i=r._parsed,a=r._sorted&&t===r.iScale,o=i.length,s=this._getOtherScale(t),l=RT(n,r,this.chart),u={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:c,max:d}=ET(s);let h,f;function g(){f=i[h];const m=f[s.axis];return!xt(f[t.axis])||c>m||d<m}for(h=0;h<o&&!(!g()&&(this.updateRangeFromParsed(u,t,f,l),a));++h);if(a){for(h=o-1;h>=0;--h)if(!g()){this.updateRangeFromParsed(u,t,f,l);break}}return u}getAllParsedValues(t){const n=this._cachedMeta._parsed,r=[];let i,a,o;for(i=0,a=n.length;i<a;++i)o=n[i][t.axis],xt(o)&&r.push(o);return r}getMaxOverflow(){return!1}getLabelAndValue(t){const n=this._cachedMeta,r=n.iScale,i=n.vScale,a=this.getParsed(t);return{label:r?""+r.getLabelForValue(a[r.axis]):"",value:i?""+i.getLabelForValue(a[i.axis]):""}}_update(t){const n=this._cachedMeta;this.update(t||"default"),n._clip=wT(Ce(this.options.clip,CT(n.xScale,n.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,n=this.chart,r=this._cachedMeta,i=r.data||[],a=n.chartArea,o=[],s=this._drawStart||0,l=this._drawCount||i.length-s,u=this.options.drawActiveElementsOnTop;let c;for(r.dataset&&r.dataset.draw(t,a,s,l),c=s;c<s+l;++c){const d=i[c];d.hidden||(d.active&&u?o.push(d):d.draw(t,a))}for(c=0;c<o.length;++c)o[c].draw(t,a)}getStyle(t,n){const r=n?"active":"default";return t===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(r):this.resolveDataElementOptions(t||0,r)}getContext(t,n,r){const i=this.getDataset();let a;if(t>=0&&t<this._cachedMeta.data.length){const o=this._cachedMeta.data[t];a=o.$context||(o.$context=$T(this.getContext(),t,o)),a.parsed=this.getParsed(t),a.raw=i.data[t],a.index=a.dataIndex=t}else a=this.$context||(this.$context=_T(this.chart.getContext(),this.index)),a.dataset=i,a.index=a.datasetIndex=this.index;return a.active=!!n,a.mode=r,a}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,n){return this._resolveElementOptions(this.dataElementType.id,n,t)}_resolveElementOptions(t,n="default",r){const i=n==="active",a=this._cachedDataOpts,o=t+"-"+n,s=a[o],l=this.enableOptionSharing&&Nl(r);if(s)return Sp(s,l);const u=this.chart.config,c=u.datasetElementScopeKeys(this._type,t),d=i?[`${t}Hover`,"hover",t,""]:[t,""],h=u.getOptionScopes(this.getDataset(),c),f=Object.keys(ot.elements[t]),g=()=>this.getContext(r,i,n),m=u.resolveNamedOptions(h,f,g,d);return m.$shared&&(m.$shared=l,a[o]=Object.freeze(Sp(m,l))),m}_resolveAnimations(t,n,r){const i=this.chart,a=this._cachedDataOpts,o=`animation-${n}`,s=a[o];if(s)return s;let l;if(i.options.animation!==!1){const c=this.chart.config,d=c.datasetAnimationScopeKeys(this._type,n),h=c.getOptionScopes(this.getDataset(),d);l=c.createResolver(h,this.getContext(t,r,n))}const u=new t3(i,l&&l.animations);return l&&l._cacheable&&(a[o]=Object.freeze(u)),u}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,n){return!n||wc(t)||this.chart._animationsDisabled}_getSharedOptions(t,n){const r=this.resolveDataElementOptions(t,n),i=this._sharedOptions,a=this.getSharedOptions(r),o=this.includeOptions(n,a)||a!==i;return this.updateSharedOptions(a,n,r),{sharedOptions:a,includeOptions:o}}updateElement(t,n,r,i){wc(i)?Object.assign(t,r):this._resolveAnimations(n,i).update(t,r)}updateSharedOptions(t,n,r){t&&!wc(n)&&this._resolveAnimations(void 0,n).update(t,r)}_setStyle(t,n,r,i){t.active=i;const a=this.getStyle(n,i);this._resolveAnimations(n,r,i).update(t,{options:!i&&this.getSharedOptions(a)||a})}removeHoverStyle(t,n,r){this._setStyle(t,r,"active",!1)}setHoverStyle(t,n,r){this._setStyle(t,r,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const n=this._data,r=this._cachedMeta.data;for(const[s,l,u]of this._syncList)this[s](l,u);this._syncList=[];const i=r.length,a=n.length,o=Math.min(a,i);o&&this.parse(0,o),a>i?this._insertElements(i,a-i,t):a<i&&this._removeElements(a,i-a)}_insertElements(t,n,r=!0){const i=this._cachedMeta,a=i.data,o=t+n;let s;const l=u=>{for(u.length+=n,s=u.length-1;s>=o;s--)u[s]=u[s-n]};for(l(a),s=t;s<o;++s)a[s]=new this.dataElementType;this._parsing&&l(i._parsed),this.parse(t,n),r&&this.updateElements(a,t,n,"reset")}updateElements(t,n,r,i){}_removeElements(t,n){const r=this._cachedMeta;if(this._parsing){const i=r._parsed.splice(t,n);r._stacked&&Sa(r,i)}r.data.splice(t,n)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[n,r,i]=t;this[n](r,i)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,n){n&&this._sync(["_removeElements",t,n]);const r=arguments.length-2;r&&this._sync(["_insertElements",t,r])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}ie(Qa,"defaults",{}),ie(Qa,"datasetElementType",null),ie(Qa,"dataElementType",null);function AT(e,t,n){let r=1,i=1,a=0,o=0;if(t<Ke){const s=e,l=s+t,u=Math.cos(s),c=Math.sin(s),d=Math.cos(l),h=Math.sin(l),f=(y,w,C)=>Ao(y,s,l,!0)?1:Math.max(w,w*n,C,C*n),g=(y,w,C)=>Ao(y,s,l,!0)?-1:Math.min(w,w*n,C,C*n),m=f(0,u,d),p=f(dt,c,h),b=g(Qe,u,d),v=g(Qe+dt,c,h);r=(m-b)/2,i=(p-v)/2,a=-(m+b)/2,o=-(p+v)/2}return{ratioX:r,ratioY:i,offsetX:a,offsetY:o}}class Ba extends Qa{constructor(t,n){super(t,n),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,n){const r=this.getDataset().data,i=this._cachedMeta;if(this._parsing===!1)i._parsed=r;else{let a=l=>+r[l];if(Re(r[t])){const{key:l="value"}=this._parsing;a=u=>+Ro(r[u],l)}let o,s;for(o=t,s=t+n;o<s;++o)i._parsed[o]=a(o)}}_getRotation(){return Nn(this.options.rotation-90)}_getCircumference(){return Nn(this.options.circumference)}_getRotationExtents(){let t=Ke,n=-Ke;for(let r=0;r<this.chart.data.datasets.length;++r)if(this.chart.isDatasetVisible(r)&&this.chart.getDatasetMeta(r).type===this._type){const i=this.chart.getDatasetMeta(r).controller,a=i._getRotation(),o=i._getCircumference();t=Math.min(t,a),n=Math.max(n,a+o)}return{rotation:t,circumference:n-t}}update(t){const n=this.chart,{chartArea:r}=n,i=this._cachedMeta,a=i.data,o=this.getMaxBorderWidth()+this.getMaxOffset(a)+this.options.spacing,s=Math.max((Math.min(r.width,r.height)-o)/2,0),l=Math.min(J7(this.options.cutout,s),1),u=this._getRingWeight(this.index),{circumference:c,rotation:d}=this._getRotationExtents(),{ratioX:h,ratioY:f,offsetX:g,offsetY:m}=AT(d,c,l),p=(r.width-o)/h,b=(r.height-o)/f,v=Math.max(Math.min(p,b)/2,0),y=O4(this.options.radius,v),w=Math.max(y*l,0),C=(y-w)/this._getVisibleDatasetWeightTotal();this.offsetX=g*y,this.offsetY=m*y,i.total=this.calculateTotal(),this.outerRadius=y-C*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-C*u,0),this.updateElements(a,0,a.length,t)}_circumference(t,n){const r=this.options,i=this._cachedMeta,a=this._getCircumference();return n&&r.animation.animateRotate||!this.chart.getDataVisibility(t)||i._parsed[t]===null||i.data[t].hidden?0:this.calculateCircumference(i._parsed[t]*a/Ke)}updateElements(t,n,r,i){const a=i==="reset",o=this.chart,s=o.chartArea,u=o.options.animation,c=(s.left+s.right)/2,d=(s.top+s.bottom)/2,h=a&&u.animateScale,f=h?0:this.innerRadius,g=h?0:this.outerRadius,{sharedOptions:m,includeOptions:p}=this._getSharedOptions(n,i);let b=this._getRotation(),v;for(v=0;v<n;++v)b+=this._circumference(v,a);for(v=n;v<n+r;++v){const y=this._circumference(v,a),w=t[v],C={x:c+this.offsetX,y:d+this.offsetY,startAngle:b,endAngle:b+y,circumference:y,outerRadius:g,innerRadius:f};p&&(C.options=m||this.resolveDataElementOptions(v,w.active?"active":i)),b+=y,this.updateElement(w,v,C,i)}}calculateTotal(){const t=this._cachedMeta,n=t.data;let r=0,i;for(i=0;i<n.length;i++){const a=t._parsed[i];a!==null&&!isNaN(a)&&this.chart.getDataVisibility(i)&&!n[i].hidden&&(r+=Math.abs(a))}return r}calculateCircumference(t){const n=this._cachedMeta.total;return n>0&&!isNaN(t)?Ke*(Math.abs(t)/n):0}getLabelAndValue(t){const n=this._cachedMeta,r=this.chart,i=r.data.labels||[],a=xu(n._parsed[t],r.options.locale);return{label:i[t]||"",value:a}}getMaxBorderWidth(t){let n=0;const r=this.chart;let i,a,o,s,l;if(!t){for(i=0,a=r.data.datasets.length;i<a;++i)if(r.isDatasetVisible(i)){o=r.getDatasetMeta(i),t=o.data,s=o.controller;break}}if(!t)return 0;for(i=0,a=t.length;i<a;++i)l=s.resolveDataElementOptions(i),l.borderAlign!=="inner"&&(n=Math.max(n,l.borderWidth||0,l.hoverBorderWidth||0));return n}getMaxOffset(t){let n=0;for(let r=0,i=t.length;r<i;++r){const a=this.resolveDataElementOptions(r);n=Math.max(n,a.offset||0,a.hoverOffset||0)}return n}_getRingWeightOffset(t){let n=0;for(let r=0;r<t;++r)this.chart.isDatasetVisible(r)&&(n+=this._getRingWeight(r));return n}_getRingWeight(t){return Math.max(Ce(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}ie(Ba,"id","doughnut"),ie(Ba,"defaults",{datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"}),ie(Ba,"descriptors",{_scriptable:t=>t!=="spacing",_indexable:t=>t!=="spacing"&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")}),ie(Ba,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const n=t.data;if(n.labels.length&&n.datasets.length){const{labels:{pointStyle:r,color:i}}=t.legend.options;return n.labels.map((a,o)=>{const l=t.getDatasetMeta(0).controller.getStyle(o);return{text:a,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:i,lineWidth:l.borderWidth,pointStyle:r,hidden:!t.getDataVisibility(o),index:o}})}return[]}},onClick(t,n,r){r.chart.toggleDataVisibility(n.index),r.chart.update()}}}});function Xr(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class ph{constructor(t){ie(this,"options");this.options=t||{}}static override(t){Object.assign(ph.prototype,t)}init(){}formats(){return Xr()}parse(){return Xr()}format(){return Xr()}add(){return Xr()}diff(){return Xr()}startOf(){return Xr()}endOf(){return Xr()}}var FT={_date:ph};function PT(e,t,n,r){const{controller:i,data:a,_sorted:o}=e,s=i._cachedMeta.iScale;if(s&&t===s.axis&&t!=="r"&&o&&a.length){const l=s._reversePixels?lP:Ed;if(r){if(i._sharedOptions){const u=a[0],c=typeof u.getRange=="function"&&u.getRange(t);if(c){const d=l(a,t,n-c),h=l(a,t,n+c);return{lo:d.lo,hi:h.hi}}}}else return l(a,t,n)}return{lo:0,hi:a.length-1}}function Jo(e,t,n,r,i){const a=e.getSortedVisibleDatasetMetas(),o=n[t];for(let s=0,l=a.length;s<l;++s){const{index:u,data:c}=a[s],{lo:d,hi:h}=PT(a[s],t,o,i);for(let f=d;f<=h;++f){const g=c[f];g.skip||r(g,u,f)}}}function TT(e){const t=e.indexOf("x")!==-1,n=e.indexOf("y")!==-1;return function(r,i){const a=t?Math.abs(r.x-i.x):0,o=n?Math.abs(r.y-i.y):0;return Math.sqrt(Math.pow(a,2)+Math.pow(o,2))}}function Dc(e,t,n,r,i){const a=[];return!i&&!e.isPointInArea(t)||Jo(e,n,t,function(s,l,u){!i&&!sr(s,e.chartArea,0)||s.inRange(t.x,t.y,r)&&a.push({element:s,datasetIndex:l,index:u})},!0),a}function MT(e,t,n,r){let i=[];function a(o,s,l){const{startAngle:u,endAngle:c}=o.getProps(["startAngle","endAngle"],r),{angle:d}=j4(o,{x:t.x,y:t.y});Ao(d,u,c)&&i.push({element:o,datasetIndex:s,index:l})}return Jo(e,n,t,a),i}function kT(e,t,n,r,i,a){let o=[];const s=TT(n);let l=Number.POSITIVE_INFINITY;function u(c,d,h){const f=c.inRange(t.x,t.y,i);if(r&&!f)return;const g=c.getCenterPoint(i);if(!(!!a||e.isPointInArea(g))&&!f)return;const p=s(t,g);p<l?(o=[{element:c,datasetIndex:d,index:h}],l=p):p===l&&o.push({element:c,datasetIndex:d,index:h})}return Jo(e,n,t,u),o}function Sc(e,t,n,r,i,a){return!a&&!e.isPointInArea(t)?[]:n==="r"&&!r?MT(e,t,n,i):kT(e,t,n,r,i,a)}function Ep(e,t,n,r,i){const a=[],o=n==="x"?"inXRange":"inYRange";let s=!1;return Jo(e,n,t,(l,u,c)=>{l[o](t[n],i)&&(a.push({element:l,datasetIndex:u,index:c}),s=s||l.inRange(t.x,t.y,i))}),r&&!s?[]:a}var BT={evaluateInteractionItems:Jo,modes:{index(e,t,n,r){const i=Qr(t,e),a=n.axis||"x",o=n.includeInvisible||!1,s=n.intersect?Dc(e,i,a,r,o):Sc(e,i,a,!1,r,o),l=[];return s.length?(e.getSortedVisibleDatasetMetas().forEach(u=>{const c=s[0].index,d=u.data[c];d&&!d.skip&&l.push({element:d,datasetIndex:u.index,index:c})}),l):[]},dataset(e,t,n,r){const i=Qr(t,e),a=n.axis||"xy",o=n.includeInvisible||!1;let s=n.intersect?Dc(e,i,a,r,o):Sc(e,i,a,!1,r,o);if(s.length>0){const l=s[0].datasetIndex,u=e.getDatasetMeta(l).data;s=[];for(let c=0;c<u.length;++c)s.push({element:u[c],datasetIndex:l,index:c})}return s},point(e,t,n,r){const i=Qr(t,e),a=n.axis||"xy",o=n.includeInvisible||!1;return Dc(e,i,a,r,o)},nearest(e,t,n,r){const i=Qr(t,e),a=n.axis||"xy",o=n.includeInvisible||!1;return Sc(e,i,a,n.intersect,r,o)},x(e,t,n,r){const i=Qr(t,e);return Ep(e,i,"x",n.intersect,r)},y(e,t,n,r){const i=Qr(t,e);return Ep(e,i,"y",n.intersect,r)}}};const r3=["left","top","right","bottom"];function Ea(e,t){return e.filter(n=>n.pos===t)}function Ip(e,t){return e.filter(n=>r3.indexOf(n.pos)===-1&&n.box.axis===t)}function Ia(e,t){return e.sort((n,r)=>{const i=t?r:n,a=t?n:r;return i.weight===a.weight?i.index-a.index:i.weight-a.weight})}function VT(e){const t=[];let n,r,i,a,o,s;for(n=0,r=(e||[]).length;n<r;++n)i=e[n],{position:a,options:{stack:o,stackWeight:s=1}}=i,t.push({index:n,box:i,pos:a,horizontal:i.isHorizontal(),weight:i.weight,stack:o&&a+o,stackWeight:s});return t}function OT(e){const t={};for(const n of e){const{stack:r,pos:i,stackWeight:a}=n;if(!r||!r3.includes(i))continue;const o=t[r]||(t[r]={count:0,placed:0,weight:0,size:0});o.count++,o.weight+=a}return t}function NT(e,t){const n=OT(e),{vBoxMaxWidth:r,hBoxMaxHeight:i}=t;let a,o,s;for(a=0,o=e.length;a<o;++a){s=e[a];const{fullSize:l}=s.box,u=n[s.stack],c=u&&s.stackWeight/u.weight;s.horizontal?(s.width=c?c*r:l&&t.availableWidth,s.height=i):(s.width=r,s.height=c?c*i:l&&t.availableHeight)}return n}function LT(e){const t=VT(e),n=Ia(t.filter(u=>u.box.fullSize),!0),r=Ia(Ea(t,"left"),!0),i=Ia(Ea(t,"right")),a=Ia(Ea(t,"top"),!0),o=Ia(Ea(t,"bottom")),s=Ip(t,"x"),l=Ip(t,"y");return{fullSize:n,leftAndTop:r.concat(a),rightAndBottom:i.concat(l).concat(o).concat(s),chartArea:Ea(t,"chartArea"),vertical:r.concat(i).concat(l),horizontal:a.concat(o).concat(s)}}function _p(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function i3(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function jT(e,t,n,r){const{pos:i,box:a}=n,o=e.maxPadding;if(!Re(i)){n.size&&(e[i]-=n.size);const d=r[n.stack]||{size:0,count:1};d.size=Math.max(d.size,n.horizontal?a.height:a.width),n.size=d.size/d.count,e[i]+=n.size}a.getPadding&&i3(o,a.getPadding());const s=Math.max(0,t.outerWidth-_p(o,e,"left","right")),l=Math.max(0,t.outerHeight-_p(o,e,"top","bottom")),u=s!==e.w,c=l!==e.h;return e.w=s,e.h=l,n.horizontal?{same:u,other:c}:{same:c,other:u}}function HT(e){const t=e.maxPadding;function n(r){const i=Math.max(t[r]-e[r],0);return e[r]+=i,i}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}function WT(e,t){const n=t.maxPadding;function r(i){const a={left:0,top:0,right:0,bottom:0};return i.forEach(o=>{a[o]=Math.max(t[o],n[o])}),a}return r(e?["left","right"]:["top","bottom"])}function Va(e,t,n,r){const i=[];let a,o,s,l,u,c;for(a=0,o=e.length,u=0;a<o;++a){s=e[a],l=s.box,l.update(s.width||t.w,s.height||t.h,WT(s.horizontal,t));const{same:d,other:h}=jT(t,n,s,r);u|=d&&i.length,c=c||h,l.fullSize||i.push(s)}return u&&Va(i,t,n,r)||c}function _s(e,t,n,r,i){e.top=n,e.left=t,e.right=t+r,e.bottom=n+i,e.width=r,e.height=i}function $p(e,t,n,r){const i=n.padding;let{x:a,y:o}=t;for(const s of e){const l=s.box,u=r[s.stack]||{count:1,placed:0,weight:1},c=s.stackWeight/u.weight||1;if(s.horizontal){const d=t.w*c,h=u.size||l.height;Nl(u.start)&&(o=u.start),l.fullSize?_s(l,i.left,o,n.outerWidth-i.right-i.left,h):_s(l,t.left+u.placed,o,d,h),u.start=o,u.placed+=d,o=l.bottom}else{const d=t.h*c,h=u.size||l.width;Nl(u.start)&&(a=u.start),l.fullSize?_s(l,a,i.top,h,n.outerHeight-i.bottom-i.top):_s(l,a,t.top+u.placed,h,d),u.start=a,u.placed+=d,a=l.right}}t.x=a,t.y=o}var pn={addBox(e,t){e.boxes||(e.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(n){t.draw(n)}}]},e.boxes.push(t)},removeBox(e,t){const n=e.boxes?e.boxes.indexOf(t):-1;n!==-1&&e.boxes.splice(n,1)},configure(e,t,n){t.fullSize=n.fullSize,t.position=n.position,t.weight=n.weight},update(e,t,n,r){if(!e)return;const i=Ft(e.options.layout.padding),a=Math.max(t-i.width,0),o=Math.max(n-i.height,0),s=LT(e.boxes),l=s.vertical,u=s.horizontal;He(e.boxes,m=>{typeof m.beforeLayout=="function"&&m.beforeLayout()});const c=l.reduce((m,p)=>p.box.options&&p.box.options.display===!1?m:m+1,0)||1,d=Object.freeze({outerWidth:t,outerHeight:n,padding:i,availableWidth:a,availableHeight:o,vBoxMaxWidth:a/2/c,hBoxMaxHeight:o/2}),h=Object.assign({},i);i3(h,Ft(r));const f=Object.assign({maxPadding:h,w:a,h:o,x:i.left,y:i.top},i),g=NT(l.concat(u),d);Va(s.fullSize,f,d,g),Va(l,f,d,g),Va(u,f,d,g)&&Va(l,f,d,g),HT(f),$p(s.leftAndTop,f,d,g),f.x+=f.w,f.y+=f.h,$p(s.rightAndBottom,f,d,g),e.chartArea={left:f.left,top:f.top,right:f.left+f.w,bottom:f.top+f.h,height:f.h,width:f.w},He(s.chartArea,m=>{const p=m.box;Object.assign(p,e.chartArea),p.update(f.w,f.h,{left:0,top:0,right:0,bottom:0})})}};class a3{acquireContext(t,n){}releaseContext(t){return!1}addEventListener(t,n,r){}removeEventListener(t,n,r){}getDevicePixelRatio(){return 1}getMaximumSize(t,n,r,i){return n=Math.max(0,n||t.width),r=r||t.height,{width:n,height:Math.max(0,i?Math.floor(n/i):r)}}isAttached(t){return!0}updateConfig(t){}}class zT extends a3{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const Ks="$chartjs",GT={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Rp=e=>e===null||e==="";function ZT(e,t){const n=e.style,r=e.getAttribute("height"),i=e.getAttribute("width");if(e[Ks]={initial:{height:r,width:i,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",Rp(i)){const a=gp(e,"width");a!==void 0&&(e.width=a)}if(Rp(r))if(e.style.height==="")e.height=e.width/(t||2);else{const a=gp(e,"height");a!==void 0&&(e.height=a)}return e}const o3=rT?{passive:!0}:!1;function XT(e,t,n){e&&e.addEventListener(t,n,o3)}function YT(e,t,n){e&&e.canvas&&e.canvas.removeEventListener(t,n,o3)}function UT(e,t){const n=GT[e.type]||e.type,{x:r,y:i}=Qr(e,t);return{type:n,chart:t,native:e,x:r!==void 0?r:null,y:i!==void 0?i:null}}function Gl(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function JT(e,t,n){const r=e.canvas,i=new MutationObserver(a=>{let o=!1;for(const s of a)o=o||Gl(s.addedNodes,r),o=o&&!Gl(s.removedNodes,r);o&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}function KT(e,t,n){const r=e.canvas,i=new MutationObserver(a=>{let o=!1;for(const s of a)o=o||Gl(s.removedNodes,r),o=o&&!Gl(s.addedNodes,r);o&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}const Fo=new Map;let Ap=0;function s3(){const e=window.devicePixelRatio;e!==Ap&&(Ap=e,Fo.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function QT(e,t){Fo.size||window.addEventListener("resize",s3),Fo.set(e,t)}function qT(e){Fo.delete(e),Fo.size||window.removeEventListener("resize",s3)}function eM(e,t,n){const r=e.canvas,i=r&&mh(r);if(!i)return;const a=z4((s,l)=>{const u=i.clientWidth;n(s,l),u<i.clientWidth&&n()},window),o=new ResizeObserver(s=>{const l=s[0],u=l.contentRect.width,c=l.contentRect.height;u===0&&c===0||a(u,c)});return o.observe(i),QT(e,a),o}function Ec(e,t,n){n&&n.disconnect(),t==="resize"&&qT(e)}function tM(e,t,n){const r=e.canvas,i=z4(a=>{e.ctx!==null&&n(UT(a,e))},e);return XT(r,t,i),i}class nM extends a3{acquireContext(t,n){const r=t&&t.getContext&&t.getContext("2d");return r&&r.canvas===t?(ZT(t,n),r):null}releaseContext(t){const n=t.canvas;if(!n[Ks])return!1;const r=n[Ks].initial;["height","width"].forEach(a=>{const o=r[a];Je(o)?n.removeAttribute(a):n.setAttribute(a,o)});const i=r.style||{};return Object.keys(i).forEach(a=>{n.style[a]=i[a]}),n.width=n.width,delete n[Ks],!0}addEventListener(t,n,r){this.removeEventListener(t,n);const i=t.$proxies||(t.$proxies={}),o={attach:JT,detach:KT,resize:eM}[n]||tM;i[n]=o(t,n,r)}removeEventListener(t,n){const r=t.$proxies||(t.$proxies={}),i=r[n];if(!i)return;({attach:Ec,detach:Ec,resize:Ec}[n]||YT)(t,n,i),r[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,n,r,i){return nT(t,n,r,i)}isAttached(t){const n=t&&mh(t);return!!(n&&n.isConnected)}}function rM(e){return!gh()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?zT:nM}var Bs;let Lr=(Bs=class{constructor(){ie(this,"x");ie(this,"y");ie(this,"active",!1);ie(this,"options");ie(this,"$animations")}tooltipPosition(t){const{x:n,y:r}=this.getProps(["x","y"],t);return{x:n,y:r}}hasValue(){return jl(this.x)&&jl(this.y)}getProps(t,n){const r=this.$animations;if(!n||!r)return this;const i={};return t.forEach(a=>{i[a]=r[a]&&r[a].active()?r[a]._to:this[a]}),i}},ie(Bs,"defaults",{}),ie(Bs,"defaultRoutes"),Bs);function iM(e,t){const n=e.options.ticks,r=aM(e),i=Math.min(n.maxTicksLimit||r,r),a=n.major.enabled?sM(t):[],o=a.length,s=a[0],l=a[o-1],u=[];if(o>i)return lM(t,u,a,o/i),u;const c=oM(a,t,i);if(o>0){let d,h;const f=o>1?Math.round((l-s)/(o-1)):null;for($s(t,u,c,Je(f)?0:s-f,s),d=0,h=o-1;d<h;d++)$s(t,u,c,a[d],a[d+1]);return $s(t,u,c,l,Je(f)?t.length:l+f),u}return $s(t,u,c),u}function aM(e){const t=e.options.offset,n=e._tickSize(),r=e._length/n+(t?0:1),i=e._maxLength/n;return Math.floor(Math.min(r,i))}function oM(e,t,n){const r=uM(e),i=t.length/n;if(!r)return Math.max(i,1);const a=iP(r);for(let o=0,s=a.length-1;o<s;o++){const l=a[o];if(l>i)return l}return Math.max(i,1)}function sM(e){const t=[];let n,r;for(n=0,r=e.length;n<r;n++)e[n].major&&t.push(n);return t}function lM(e,t,n,r){let i=0,a=n[0],o;for(r=Math.ceil(r),o=0;o<e.length;o++)o===a&&(t.push(e[o]),i++,a=n[i*r])}function $s(e,t,n,r,i){const a=Ce(r,0),o=Math.min(Ce(i,e.length),e.length);let s=0,l,u,c;for(n=Math.ceil(n),i&&(l=i-r,n=l/Math.floor(l/n)),c=a;c<0;)s++,c=Math.round(a+s*n);for(u=Math.max(a,0);u<o;u++)u===c&&(t.push(e[u]),s++,c=Math.round(a+s*n))}function uM(e){const t=e.length;let n,r;if(t<2)return!1;for(r=e[0],n=1;n<t;++n)if(e[n]-e[n-1]!==r)return!1;return r}const cM=e=>e==="left"?"right":e==="right"?"left":e,Fp=(e,t,n)=>t==="top"||t==="left"?e[t]+n:e[t]-n,Pp=(e,t)=>Math.min(t||e,e);function Tp(e,t){const n=[],r=e.length/t,i=e.length;let a=0;for(;a<i;a+=r)n.push(e[Math.floor(a)]);return n}function dM(e,t,n){const r=e.ticks.length,i=Math.min(t,r-1),a=e._startPixel,o=e._endPixel,s=1e-6;let l=e.getPixelForTick(i),u;if(!(n&&(r===1?u=Math.max(l-a,o-l):t===0?u=(e.getPixelForTick(1)-l)/2:u=(l-e.getPixelForTick(i-1))/2,l+=i<t?u:-u,l<a-s||l>o+s)))return l}function fM(e,t){He(e,n=>{const r=n.gc,i=r.length/2;let a;if(i>t){for(a=0;a<i;++a)delete n.data[r[a]];r.splice(0,i)}})}function _a(e){return e.drawTicks?e.tickLength:0}function Mp(e,t){if(!e.display)return 0;const n=pt(e.font,t),r=Ft(e.padding);return(at(e.text)?e.text.length:1)*n.lineHeight+r.height}function hM(e,t){return Nr(e,{scale:t,type:"scale"})}function gM(e,t,n){return Nr(e,{tick:n,index:t,type:"tick"})}function mM(e,t,n){let r=oh(e);return(n&&t!=="right"||!n&&t==="right")&&(r=cM(r)),r}function pM(e,t,n,r){const{top:i,left:a,bottom:o,right:s,chart:l}=e,{chartArea:u,scales:c}=l;let d=0,h,f,g;const m=o-i,p=s-a;if(e.isHorizontal()){if(f=_t(r,a,s),Re(n)){const b=Object.keys(n)[0],v=n[b];g=c[b].getPixelForValue(v)+m-t}else n==="center"?g=(u.bottom+u.top)/2+m-t:g=Fp(e,n,t);h=s-a}else{if(Re(n)){const b=Object.keys(n)[0],v=n[b];f=c[b].getPixelForValue(v)-p+t}else n==="center"?f=(u.left+u.right)/2-p+t:f=Fp(e,n,t);g=_t(r,o,i),d=n==="left"?-dt:dt}return{titleX:f,titleY:g,maxWidth:h,rotation:d}}class Ii extends Lr{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,n){return t}getUserBounds(){let{_userMin:t,_userMax:n,_suggestedMin:r,_suggestedMax:i}=this;return t=Kt(t,Number.POSITIVE_INFINITY),n=Kt(n,Number.NEGATIVE_INFINITY),r=Kt(r,Number.POSITIVE_INFINITY),i=Kt(i,Number.NEGATIVE_INFINITY),{min:Kt(t,r),max:Kt(n,i),minDefined:xt(t),maxDefined:xt(n)}}getMinMax(t){let{min:n,max:r,minDefined:i,maxDefined:a}=this.getUserBounds(),o;if(i&&a)return{min:n,max:r};const s=this.getMatchingVisibleMetas();for(let l=0,u=s.length;l<u;++l)o=s[l].controller.getMinMax(this,t),i||(n=Math.min(n,o.min)),a||(r=Math.max(r,o.max));return n=a&&n>r?r:n,r=i&&n>r?n:r,{min:Kt(n,Kt(r,n)),max:Kt(r,Kt(n,r))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Ze(this.options.beforeUpdate,[this])}update(t,n,r){const{beginAtZero:i,grace:a,ticks:o}=this.options,s=o.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=n,this._margins=r=Object.assign({left:0,right:0,top:0,bottom:0},r),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+r.left+r.right:this.height+r.top+r.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=MP(this,a,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=s<this.ticks.length;this._convertTicksToLabels(l?Tp(this.ticks,s):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),o.display&&(o.autoSkip||o.source==="auto")&&(this.ticks=iM(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),l&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t=this.options.reverse,n,r;this.isHorizontal()?(n=this.left,r=this.right):(n=this.top,r=this.bottom,t=!t),this._startPixel=n,this._endPixel=r,this._reversePixels=t,this._length=r-n,this._alignToPixels=this.options.alignToPixels}afterUpdate(){Ze(this.options.afterUpdate,[this])}beforeSetDimensions(){Ze(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){Ze(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),Ze(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){Ze(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const n=this.options.ticks;let r,i,a;for(r=0,i=t.length;r<i;r++)a=t[r],a.label=Ze(n.callback,[a.value,r,t],this)}afterTickToLabelConversion(){Ze(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){Ze(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,n=t.ticks,r=Pp(this.ticks.length,t.ticks.maxTicksLimit),i=n.minRotation||0,a=n.maxRotation;let o=i,s,l,u;if(!this._isVisible()||!n.display||i>=a||r<=1||!this.isHorizontal()){this.labelRotation=i;return}const c=this._getLabelSizes(),d=c.widest.width,h=c.highest.height,f=en(this.chart.width-d,0,this.maxWidth);s=t.offset?this.maxWidth/r:f/(r-1),d+6>s&&(s=f/(r-(t.offset?.5:1)),l=this.maxHeight-_a(t.grid)-n.padding-Mp(t.title,this.chart.options.font),u=Math.sqrt(d*d+h*h),o=ih(Math.min(Math.asin(en((c.highest.height+6)/s,-1,1)),Math.asin(en(l/u,-1,1))-Math.asin(en(h/u,-1,1)))),o=Math.max(i,Math.min(a,o))),this.labelRotation=o}afterCalculateLabelRotation(){Ze(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Ze(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:n,options:{ticks:r,title:i,grid:a}}=this,o=this._isVisible(),s=this.isHorizontal();if(o){const l=Mp(i,n.options.font);if(s?(t.width=this.maxWidth,t.height=_a(a)+l):(t.height=this.maxHeight,t.width=_a(a)+l),r.display&&this.ticks.length){const{first:u,last:c,widest:d,highest:h}=this._getLabelSizes(),f=r.padding*2,g=Nn(this.labelRotation),m=Math.cos(g),p=Math.sin(g);if(s){const b=r.mirror?0:p*d.width+m*h.height;t.height=Math.min(this.maxHeight,t.height+b+f)}else{const b=r.mirror?0:m*d.width+p*h.height;t.width=Math.min(this.maxWidth,t.width+b+f)}this._calculatePadding(u,c,p,m)}}this._handleMargins(),s?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,n,r,i){const{ticks:{align:a,padding:o},position:s}=this.options,l=this.labelRotation!==0,u=s!=="top"&&this.axis==="x";if(this.isHorizontal()){const c=this.getPixelForTick(0)-this.left,d=this.right-this.getPixelForTick(this.ticks.length-1);let h=0,f=0;l?u?(h=i*t.width,f=r*n.height):(h=r*t.height,f=i*n.width):a==="start"?f=n.width:a==="end"?h=t.width:a!=="inner"&&(h=t.width/2,f=n.width/2),this.paddingLeft=Math.max((h-c+o)*this.width/(this.width-c),0),this.paddingRight=Math.max((f-d+o)*this.width/(this.width-d),0)}else{let c=n.height/2,d=t.height/2;a==="start"?(c=0,d=t.height):a==="end"&&(c=n.height,d=0),this.paddingTop=c+o,this.paddingBottom=d+o}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){Ze(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:n}=this.options;return n==="top"||n==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let n,r;for(n=0,r=t.length;n<r;n++)Je(t[n].label)&&(t.splice(n,1),r--,n--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const n=this.options.ticks.sampleSize;let r=this.ticks;n<r.length&&(r=Tp(r,n)),this._labelSizes=t=this._computeLabelSizes(r,r.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,n,r){const{ctx:i,_longestTextCache:a}=this,o=[],s=[],l=Math.floor(n/Pp(n,r));let u=0,c=0,d,h,f,g,m,p,b,v,y,w,C;for(d=0;d<n;d+=l){if(g=t[d].label,m=this._resolveTickFontOptions(d),i.font=p=m.string,b=a[p]=a[p]||{data:{},gc:[]},v=m.lineHeight,y=w=0,!Je(g)&&!at(g))y=Hl(i,b.data,b.gc,y,g),w=v;else if(at(g))for(h=0,f=g.length;h<f;++h)C=g[h],!Je(C)&&!at(C)&&(y=Hl(i,b.data,b.gc,y,C),w+=v);o.push(y),s.push(w),u=Math.max(y,u),c=Math.max(w,c)}fM(a,n);const E=o.indexOf(u),I=s.indexOf(c),D=_=>({width:o[_]||0,height:s[_]||0});return{first:D(0),last:D(n-1),widest:D(E),highest:D(I),widths:o,heights:s}}getLabelForValue(t){return t}getPixelForValue(t,n){return NaN}getValueForPixel(t){}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const n=this._startPixel+t*this._length;return sP(this._alignToPixels?Zr(this.chart,n,0):n)}getDecimalForPixel(t){const n=(t-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:n}=this;return t<0&&n<0?n:t>0&&n>0?t:0}getContext(t){const n=this.ticks||[];if(t>=0&&t<n.length){const r=n[t];return r.$context||(r.$context=gM(this.getContext(),t,r))}return this.$context||(this.$context=hM(this.chart.getContext(),this))}_tickSize(){const t=this.options.ticks,n=Nn(this.labelRotation),r=Math.abs(Math.cos(n)),i=Math.abs(Math.sin(n)),a=this._getLabelSizes(),o=t.autoSkipPadding||0,s=a?a.widest.width+o:0,l=a?a.highest.height+o:0;return this.isHorizontal()?l*r>s*i?s/r:l/i:l*i<s*r?l/r:s/i}_isVisible(){const t=this.options.display;return t!=="auto"?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const n=this.axis,r=this.chart,i=this.options,{grid:a,position:o,border:s}=i,l=a.offset,u=this.isHorizontal(),d=this.ticks.length+(l?1:0),h=_a(a),f=[],g=s.setContext(this.getContext()),m=g.display?g.width:0,p=m/2,b=function(T){return Zr(r,T,m)};let v,y,w,C,E,I,D,_,F,$,P,M;if(o==="top")v=b(this.bottom),I=this.bottom-h,_=v-p,$=b(t.top)+p,M=t.bottom;else if(o==="bottom")v=b(this.top),$=t.top,M=b(t.bottom)-p,I=v+p,_=this.top+h;else if(o==="left")v=b(this.right),E=this.right-h,D=v-p,F=b(t.left)+p,P=t.right;else if(o==="right")v=b(this.left),F=t.left,P=b(t.right)-p,E=v+p,D=this.left+h;else if(n==="x"){if(o==="center")v=b((t.top+t.bottom)/2+.5);else if(Re(o)){const T=Object.keys(o)[0],R=o[T];v=b(this.chart.scales[T].getPixelForValue(R))}$=t.top,M=t.bottom,I=v+p,_=I+h}else if(n==="y"){if(o==="center")v=b((t.left+t.right)/2);else if(Re(o)){const T=Object.keys(o)[0],R=o[T];v=b(this.chart.scales[T].getPixelForValue(R))}E=v-p,D=E-h,F=t.left,P=t.right}const A=Ce(i.ticks.maxTicksLimit,d),B=Math.max(1,Math.ceil(d/A));for(y=0;y<d;y+=B){const T=this.getContext(y),R=a.setContext(T),O=s.setContext(T),H=R.lineWidth,L=R.color,Z=O.dash||[],V=O.dashOffset,W=R.tickWidth,q=R.tickColor,Y=R.tickBorderDash||[],N=R.tickBorderDashOffset;w=dM(this,y,l),w!==void 0&&(C=Zr(r,w,H),u?E=D=F=P=C:I=_=$=M=C,f.push({tx1:E,ty1:I,tx2:D,ty2:_,x1:F,y1:$,x2:P,y2:M,width:H,color:L,borderDash:Z,borderDashOffset:V,tickWidth:W,tickColor:q,tickBorderDash:Y,tickBorderDashOffset:N}))}return this._ticksLength=d,this._borderValue=v,f}_computeLabelItems(t){const n=this.axis,r=this.options,{position:i,ticks:a}=r,o=this.isHorizontal(),s=this.ticks,{align:l,crossAlign:u,padding:c,mirror:d}=a,h=_a(r.grid),f=h+c,g=d?-c:f,m=-Nn(this.labelRotation),p=[];let b,v,y,w,C,E,I,D,_,F,$,P,M="middle";if(i==="top")E=this.bottom-g,I=this._getXAxisLabelAlignment();else if(i==="bottom")E=this.top+g,I=this._getXAxisLabelAlignment();else if(i==="left"){const B=this._getYAxisLabelAlignment(h);I=B.textAlign,C=B.x}else if(i==="right"){const B=this._getYAxisLabelAlignment(h);I=B.textAlign,C=B.x}else if(n==="x"){if(i==="center")E=(t.top+t.bottom)/2+f;else if(Re(i)){const B=Object.keys(i)[0],T=i[B];E=this.chart.scales[B].getPixelForValue(T)+f}I=this._getXAxisLabelAlignment()}else if(n==="y"){if(i==="center")C=(t.left+t.right)/2-f;else if(Re(i)){const B=Object.keys(i)[0],T=i[B];C=this.chart.scales[B].getPixelForValue(T)}I=this._getYAxisLabelAlignment(h).textAlign}n==="y"&&(l==="start"?M="top":l==="end"&&(M="bottom"));const A=this._getLabelSizes();for(b=0,v=s.length;b<v;++b){y=s[b],w=y.label;const B=a.setContext(this.getContext(b));D=this.getPixelForTick(b)+a.labelOffset,_=this._resolveTickFontOptions(b),F=_.lineHeight,$=at(w)?w.length:1;const T=$/2,R=B.color,O=B.textStrokeColor,H=B.textStrokeWidth;let L=I;o?(C=D,I==="inner"&&(b===v-1?L=this.options.reverse?"left":"right":b===0?L=this.options.reverse?"right":"left":L="center"),i==="top"?u==="near"||m!==0?P=-$*F+F/2:u==="center"?P=-A.highest.height/2-T*F+F:P=-A.highest.height+F/2:u==="near"||m!==0?P=F/2:u==="center"?P=A.highest.height/2-T*F:P=A.highest.height-$*F,d&&(P*=-1),m!==0&&!B.showLabelBackdrop&&(C+=F/2*Math.sin(m))):(E=D,P=(1-$)*F/2);let Z;if(B.showLabelBackdrop){const V=Ft(B.backdropPadding),W=A.heights[b],q=A.widths[b];let Y=P-V.top,N=0-V.left;switch(M){case"middle":Y-=W/2;break;case"bottom":Y-=W;break}switch(I){case"center":N-=q/2;break;case"right":N-=q;break;case"inner":b===v-1?N-=q:b>0&&(N-=q/2);break}Z={left:N,top:Y,width:q+V.width,height:W+V.height,color:B.backdropColor}}p.push({label:w,font:_,textOffset:P,options:{rotation:m,color:R,strokeColor:O,strokeWidth:H,textAlign:L,textBaseline:M,translation:[C,E],backdrop:Z}})}return p}_getXAxisLabelAlignment(){const{position:t,ticks:n}=this.options;if(-Nn(this.labelRotation))return t==="top"?"left":"right";let i="center";return n.align==="start"?i="left":n.align==="end"?i="right":n.align==="inner"&&(i="inner"),i}_getYAxisLabelAlignment(t){const{position:n,ticks:{crossAlign:r,mirror:i,padding:a}}=this.options,o=this._getLabelSizes(),s=t+a,l=o.widest.width;let u,c;return n==="left"?i?(c=this.right+a,r==="near"?u="left":r==="center"?(u="center",c+=l/2):(u="right",c+=l)):(c=this.right-s,r==="near"?u="right":r==="center"?(u="center",c-=l/2):(u="left",c=this.left)):n==="right"?i?(c=this.left+a,r==="near"?u="right":r==="center"?(u="center",c-=l/2):(u="left",c-=l)):(c=this.left+s,r==="near"?u="left":r==="center"?(u="center",c+=l/2):(u="right",c=this.right)):u="right",{textAlign:u,x:c}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:t.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:t.width}}drawBackground(){const{ctx:t,options:{backgroundColor:n},left:r,top:i,width:a,height:o}=this;n&&(t.save(),t.fillStyle=n,t.fillRect(r,i,a,o),t.restore())}getLineWidthForValue(t){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const i=this.ticks.findIndex(a=>a.value===t);return i>=0?n.setContext(this.getContext(i)).lineWidth:0}drawGrid(t){const n=this.options.grid,r=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let a,o;const s=(l,u,c)=>{!c.width||!c.color||(r.save(),r.lineWidth=c.width,r.strokeStyle=c.color,r.setLineDash(c.borderDash||[]),r.lineDashOffset=c.borderDashOffset,r.beginPath(),r.moveTo(l.x,l.y),r.lineTo(u.x,u.y),r.stroke(),r.restore())};if(n.display)for(a=0,o=i.length;a<o;++a){const l=i[a];n.drawOnChartArea&&s({x:l.x1,y:l.y1},{x:l.x2,y:l.y2},l),n.drawTicks&&s({x:l.tx1,y:l.ty1},{x:l.tx2,y:l.ty2},{color:l.tickColor,width:l.tickWidth,borderDash:l.tickBorderDash,borderDashOffset:l.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:n,options:{border:r,grid:i}}=this,a=r.setContext(this.getContext()),o=r.display?a.width:0;if(!o)return;const s=i.setContext(this.getContext(0)).lineWidth,l=this._borderValue;let u,c,d,h;this.isHorizontal()?(u=Zr(t,this.left,o)-o/2,c=Zr(t,this.right,s)+s/2,d=h=l):(d=Zr(t,this.top,o)-o/2,h=Zr(t,this.bottom,s)+s/2,u=c=l),n.save(),n.lineWidth=a.width,n.strokeStyle=a.color,n.beginPath(),n.moveTo(u,d),n.lineTo(c,h),n.stroke(),n.restore()}drawLabels(t){if(!this.options.ticks.display)return;const r=this.ctx,i=this._computeLabelArea();i&&lh(r,i);const a=this.getLabelItems(t);for(const o of a){const s=o.options,l=o.font,u=o.label,c=o.textOffset;xi(r,u,0,c,l,s)}i&&uh(r)}drawTitle(){const{ctx:t,options:{position:n,title:r,reverse:i}}=this;if(!r.display)return;const a=pt(r.font),o=Ft(r.padding),s=r.align;let l=a.lineHeight/2;n==="bottom"||n==="center"||Re(n)?(l+=o.bottom,at(r.text)&&(l+=a.lineHeight*(r.text.length-1))):l+=o.top;const{titleX:u,titleY:c,maxWidth:d,rotation:h}=pM(this,l,n,s);xi(t,r.text,0,0,a,{color:r.color,maxWidth:d,rotation:h,textAlign:mM(s,n,i),textBaseline:"middle",translation:[u,c]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,n=t.ticks&&t.ticks.z||0,r=Ce(t.grid&&t.grid.z,-1),i=Ce(t.border&&t.border.z,0);return!this._isVisible()||this.draw!==Ii.prototype.draw?[{z:n,draw:a=>{this.draw(a)}}]:[{z:r,draw:a=>{this.drawBackground(),this.drawGrid(a),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:n,draw:a=>{this.drawLabels(a)}}]}getMatchingVisibleMetas(t){const n=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",i=[];let a,o;for(a=0,o=n.length;a<o;++a){const s=n[a];s[r]===this.id&&(!t||s.type===t)&&i.push(s)}return i}_resolveTickFontOptions(t){const n=this.options.ticks.setContext(this.getContext(t));return pt(n.font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class Rs{constructor(t,n,r){this.type=t,this.scope=n,this.override=r,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const n=Object.getPrototypeOf(t);let r;yM(n)&&(r=this.register(n));const i=this.items,a=t.id,o=this.scope+"."+a;if(!a)throw new Error("class does not have id: "+t);return a in i||(i[a]=t,bM(t,o,r),this.override&&ot.override(t.id,t.overrides)),o}get(t){return this.items[t]}unregister(t){const n=this.items,r=t.id,i=this.scope;r in n&&delete n[r],i&&r in ot[i]&&(delete ot[i][r],this.override&&delete yi[r])}}function bM(e,t,n){const r=$o(Object.create(null),[n?ot.get(n):{},ot.get(t),e.defaults]);ot.set(t,r),e.defaultRoutes&&vM(t,e.defaultRoutes),e.descriptors&&ot.describe(t,e.descriptors)}function vM(e,t){Object.keys(t).forEach(n=>{const r=n.split("."),i=r.pop(),a=[e].concat(r).join("."),o=t[n].split("."),s=o.pop(),l=o.join(".");ot.route(a,i,l,s)})}function yM(e){return"id"in e&&"defaults"in e}class xM{constructor(){this.controllers=new Rs(Qa,"datasets",!0),this.elements=new Rs(Lr,"elements"),this.plugins=new Rs(Object,"plugins"),this.scales=new Rs(Ii,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,n,r){[...n].forEach(i=>{const a=r||this._getRegistryForType(i);r||a.isForType(i)||a===this.plugins&&i.id?this._exec(t,a,i):He(i,o=>{const s=r||this._getRegistryForType(o);this._exec(t,s,o)})})}_exec(t,n,r){const i=rh(t);Ze(r["before"+i],[],r),n[t](r),Ze(r["after"+i],[],r)}_getRegistryForType(t){for(let n=0;n<this._typedRegistries.length;n++){const r=this._typedRegistries[n];if(r.isForType(t))return r}return this.plugins}_get(t,n,r){const i=n.get(t);if(i===void 0)throw new Error('"'+t+'" is not a registered '+r+".");return i}}var Mn=new xM;class CM{constructor(){this._init=[]}notify(t,n,r,i){n==="beforeInit"&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const a=i?this._descriptors(t).filter(i):this._descriptors(t),o=this._notify(a,t,n,r);return n==="afterDestroy"&&(this._notify(a,t,"stop"),this._notify(this._init,t,"uninstall")),o}_notify(t,n,r,i){i=i||{};for(const a of t){const o=a.plugin,s=o[r],l=[n,i,a.options];if(Ze(s,l,o)===!1&&i.cancelable)return!1}return!0}invalidate(){Je(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const n=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),n}_createDescriptors(t,n){const r=t&&t.config,i=Ce(r.options&&r.options.plugins,{}),a=wM(r);return i===!1&&!n?[]:SM(t,a,i,n)}_notifyStateChanges(t){const n=this._oldCache||[],r=this._cache,i=(a,o)=>a.filter(s=>!o.some(l=>s.plugin.id===l.plugin.id));this._notify(i(n,r),t,"stop"),this._notify(i(r,n),t,"start")}}function wM(e){const t={},n=[],r=Object.keys(Mn.plugins.items);for(let a=0;a<r.length;a++)n.push(Mn.getPlugin(r[a]));const i=e.plugins||[];for(let a=0;a<i.length;a++){const o=i[a];n.indexOf(o)===-1&&(n.push(o),t[o.id]=!0)}return{plugins:n,localIds:t}}function DM(e,t){return!t&&e===!1?null:e===!0?{}:e}function SM(e,{plugins:t,localIds:n},r,i){const a=[],o=e.getContext();for(const s of t){const l=s.id,u=DM(r[l],i);u!==null&&a.push({plugin:s,options:EM(e.config,{plugin:s,local:n[l]},u,o)})}return a}function EM(e,{plugin:t,local:n},r,i){const a=e.pluginScopeKeys(t),o=e.getOptionScopes(r,a);return n&&t.defaults&&o.push(t.defaults),e.createResolver(o,i,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function $d(e,t){const n=ot.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||n.indexAxis||"x"}function IM(e,t){let n=e;return e==="_index_"?n=t:e==="_value_"&&(n=t==="x"?"y":"x"),n}function _M(e,t){return e===t?"_index_":"_value_"}function kp(e){if(e==="x"||e==="y"||e==="r")return e}function $M(e){if(e==="top"||e==="bottom")return"x";if(e==="left"||e==="right")return"y"}function Rd(e,...t){if(kp(e))return e;for(const n of t){const r=n.axis||$M(n.position)||e.length>1&&kp(e[0].toLowerCase());if(r)return r}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function Bp(e,t,n){if(n[t+"AxisID"]===e)return{axis:t}}function RM(e,t){if(t.data&&t.data.datasets){const n=t.data.datasets.filter(r=>r.xAxisID===e||r.yAxisID===e);if(n.length)return Bp(e,"x",n[0])||Bp(e,"y",n[0])}return{}}function AM(e,t){const n=yi[e.type]||{scales:{}},r=t.scales||{},i=$d(e.type,t),a=Object.create(null);return Object.keys(r).forEach(o=>{const s=r[o];if(!Re(s))return console.error(`Invalid scale configuration for scale: ${o}`);if(s._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${o}`);const l=Rd(o,s,RM(o,e),ot.scales[s.type]),u=_M(l,i),c=n.scales||{};a[o]=Ya(Object.create(null),[{axis:l},s,c[l],c[u]])}),e.data.datasets.forEach(o=>{const s=o.type||e.type,l=o.indexAxis||$d(s,t),c=(yi[s]||{}).scales||{};Object.keys(c).forEach(d=>{const h=IM(d,l),f=o[h+"AxisID"]||h;a[f]=a[f]||Object.create(null),Ya(a[f],[{axis:h},r[f],c[d]])})}),Object.keys(a).forEach(o=>{const s=a[o];Ya(s,[ot.scales[s.type],ot.scale])}),a}function l3(e){const t=e.options||(e.options={});t.plugins=Ce(t.plugins,{}),t.scales=AM(e,t)}function u3(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function FM(e){return e=e||{},e.data=u3(e.data),l3(e),e}const Vp=new Map,c3=new Set;function As(e,t){let n=Vp.get(e);return n||(n=t(),Vp.set(e,n),c3.add(n)),n}const $a=(e,t,n)=>{const r=Ro(t,n);r!==void 0&&e.add(r)};class PM{constructor(t){this._config=FM(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=u3(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),l3(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return As(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,n){return As(`${t}.transition.${n}`,()=>[[`datasets.${t}.transitions.${n}`,`transitions.${n}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,n){return As(`${t}-${n}`,()=>[[`datasets.${t}.elements.${n}`,`datasets.${t}`,`elements.${n}`,""]])}pluginScopeKeys(t){const n=t.id,r=this.type;return As(`${r}-plugin-${n}`,()=>[[`plugins.${n}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,n){const r=this._scopeCache;let i=r.get(t);return(!i||n)&&(i=new Map,r.set(t,i)),i}getOptionScopes(t,n,r){const{options:i,type:a}=this,o=this._cachedScopes(t,r),s=o.get(n);if(s)return s;const l=new Set;n.forEach(c=>{t&&(l.add(t),c.forEach(d=>$a(l,t,d))),c.forEach(d=>$a(l,i,d)),c.forEach(d=>$a(l,yi[a]||{},d)),c.forEach(d=>$a(l,ot,d)),c.forEach(d=>$a(l,Id,d))});const u=Array.from(l);return u.length===0&&u.push(Object.create(null)),c3.has(n)&&o.set(n,u),u}chartOptionScopes(){const{options:t,type:n}=this;return[t,yi[n]||{},ot.datasets[n]||{},{type:n},ot,Id]}resolveNamedOptions(t,n,r,i=[""]){const a={$shared:!0},{resolver:o,subPrefixes:s}=Op(this._resolverCache,t,i);let l=o;if(MM(o,n)){a.$shared=!1,r=Mr(r)?r():r;const u=this.createResolver(t,r,s);l=da(o,r,u)}for(const u of n)a[u]=l[u];return a}createResolver(t,n,r=[""],i){const{resolver:a}=Op(this._resolverCache,t,r);return Re(n)?da(a,n,void 0,i):a}}function Op(e,t,n){let r=e.get(t);r||(r=new Map,e.set(t,r));const i=n.join();let a=r.get(i);return a||(a={resolver:dh(t,n),subPrefixes:n.filter(s=>!s.toLowerCase().includes("hover"))},r.set(i,a)),a}const TM=e=>Re(e)&&Object.getOwnPropertyNames(e).some(t=>Mr(e[t]));function MM(e,t){const{isScriptable:n,isIndexable:r}=X4(e);for(const i of t){const a=n(i),o=r(i),s=(o||a)&&e[i];if(a&&(Mr(s)||TM(s))||o&&at(s))return!0}return!1}var kM="4.4.3";const BM=["top","bottom","left","right","chartArea"];function Np(e,t){return e==="top"||e==="bottom"||BM.indexOf(e)===-1&&t==="x"}function Lp(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}function jp(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),Ze(n&&n.onComplete,[e],t)}function VM(e){const t=e.chart,n=t.options.animation;Ze(n&&n.onProgress,[e],t)}function d3(e){return gh()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const Qs={},Hp=e=>{const t=d3(e);return Object.values(Qs).filter(n=>n.canvas===t).pop()};function OM(e,t,n){const r=Object.keys(e);for(const i of r){const a=+i;if(a>=t){const o=e[i];delete e[i],(n>0||a>t)&&(e[a+n]=o)}}}function NM(e,t,n,r){return!n||e.type==="mouseout"?null:r?t:e}function Fs(e,t,n){return e.options.clip?e[n]:t[n]}function LM(e,t){const{xScale:n,yScale:r}=e;return n&&r?{left:Fs(n,t,"left"),right:Fs(n,t,"right"),top:Fs(r,t,"top"),bottom:Fs(r,t,"bottom")}:t}var pr;let Du=(pr=class{static register(...t){Mn.add(...t),Wp()}static unregister(...t){Mn.remove(...t),Wp()}constructor(t,n){const r=this.config=new PM(n),i=d3(t),a=Hp(i);if(a)throw new Error("Canvas is already in use. Chart with ID '"+a.id+"' must be destroyed before the canvas with ID '"+a.canvas.id+"' can be reused.");const o=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||rM(i)),this.platform.updateConfig(r);const s=this.platform.acquireContext(i,o.aspectRatio),l=s&&s.canvas,u=l&&l.height,c=l&&l.width;if(this.id=U7(),this.ctx=s,this.canvas=l,this.width=c,this.height=u,this._options=o,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new CM,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=fP(d=>this.update(d),o.resizeDelay||0),this._dataChanges=[],Qs[this.id]=this,!s||!l){console.error("Failed to create chart: can't acquire context from the given item");return}Jn.listen(this,"complete",jp),Jn.listen(this,"progress",VM),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:n},width:r,height:i,_aspectRatio:a}=this;return Je(t)?n&&a?a:i?r/i:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return Mn}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():hp(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return cp(this.canvas,this.ctx),this}stop(){return Jn.stop(this),this}resize(t,n){Jn.running(this)?this._resizeBeforeDraw={width:t,height:n}:this._resize(t,n)}_resize(t,n){const r=this.options,i=this.canvas,a=r.maintainAspectRatio&&this.aspectRatio,o=this.platform.getMaximumSize(i,t,n,a),s=r.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=o.width,this.height=o.height,this._aspectRatio=this.aspectRatio,hp(this,s,!0)&&(this.notifyPlugins("resize",{size:o}),Ze(r.onResize,[this,o],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};He(n,(r,i)=>{r.id=i})}buildOrUpdateScales(){const t=this.options,n=t.scales,r=this.scales,i=Object.keys(r).reduce((o,s)=>(o[s]=!1,o),{});let a=[];n&&(a=a.concat(Object.keys(n).map(o=>{const s=n[o],l=Rd(o,s),u=l==="r",c=l==="x";return{options:s,dposition:u?"chartArea":c?"bottom":"left",dtype:u?"radialLinear":c?"category":"linear"}}))),He(a,o=>{const s=o.options,l=s.id,u=Rd(l,s),c=Ce(s.type,o.dtype);(s.position===void 0||Np(s.position,u)!==Np(o.dposition))&&(s.position=o.dposition),i[l]=!0;let d=null;if(l in r&&r[l].type===c)d=r[l];else{const h=Mn.getScale(c);d=new h({id:l,type:c,ctx:this.ctx,chart:this}),r[d.id]=d}d.init(s,t)}),He(i,(o,s)=>{o||delete r[s]}),He(r,o=>{pn.configure(this,o,o.options),pn.addBox(this,o)})}_updateMetasets(){const t=this._metasets,n=this.data.datasets.length,r=t.length;if(t.sort((i,a)=>i.index-a.index),r>n){for(let i=n;i<r;++i)this._destroyDatasetMeta(i);t.splice(n,r-n)}this._sortedMetasets=t.slice(0).sort(Lp("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:n}}=this;t.length>n.length&&delete this._stacks,t.forEach((r,i)=>{n.filter(a=>a===r._dataset).length===0&&this._destroyDatasetMeta(i)})}buildOrUpdateControllers(){const t=[],n=this.data.datasets;let r,i;for(this._removeUnreferencedMetasets(),r=0,i=n.length;r<i;r++){const a=n[r];let o=this.getDatasetMeta(r);const s=a.type||this.config.type;if(o.type&&o.type!==s&&(this._destroyDatasetMeta(r),o=this.getDatasetMeta(r)),o.type=s,o.indexAxis=a.indexAxis||$d(s,this.options),o.order=a.order||0,o.index=r,o.label=""+a.label,o.visible=this.isDatasetVisible(r),o.controller)o.controller.updateIndex(r),o.controller.linkScales();else{const l=Mn.getController(s),{datasetElementType:u,dataElementType:c}=ot.datasets[s];Object.assign(l,{dataElementType:Mn.getElement(c),datasetElementType:u&&Mn.getElement(u)}),o.controller=new l(this,r),t.push(o.controller)}}return this._updateMetasets(),t}_resetElements(){He(this.data.datasets,(t,n)=>{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const n=this.config;n.update();const r=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const a=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let o=0;for(let u=0,c=this.data.datasets.length;u<c;u++){const{controller:d}=this.getDatasetMeta(u),h=!i&&a.indexOf(d)===-1;d.buildOrUpdateElements(h),o=Math.max(+d.getMaxOverflow(),o)}o=this._minPadding=r.layout.autoPadding?o:0,this._updateLayout(o),i||He(a,u=>{u.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(Lp("z","_idx"));const{_active:s,_lastEvent:l}=this;l?this._eventHandler(l,!0):s.length&&this._updateHoverStyles(s,s,!0),this.render()}_updateScales(){He(this.scales,t=>{pn.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,n=new Set(Object.keys(this._listeners)),r=new Set(t.events);(!tp(n,r)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,n=this._getUniformDataChanges()||[];for(const{method:r,start:i,count:a}of n){const o=r==="_removeElements"?-a:a;OM(t,i,o)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const n=this.data.datasets.length,r=a=>new Set(t.filter(o=>o[0]===a).map((o,s)=>s+","+o.splice(1).join(","))),i=r(0);for(let a=1;a<n;a++)if(!tp(i,r(a)))return;return Array.from(i).map(a=>a.split(",")).map(a=>({method:a[1],start:+a[2],count:+a[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;pn.update(this,this.width,this.height,t);const n=this.chartArea,r=n.width<=0||n.height<=0;this._layers=[],He(this.boxes,i=>{r&&i.position==="chartArea"||(i.configure&&i.configure(),this._layers.push(...i._layers()))},this),this._layers.forEach((i,a)=>{i._idx=a}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let n=0,r=this.data.datasets.length;n<r;++n)this.getDatasetMeta(n).controller.configure();for(let n=0,r=this.data.datasets.length;n<r;++n)this._updateDataset(n,Mr(t)?t({datasetIndex:n}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,n){const r=this.getDatasetMeta(t),i={meta:r,index:t,mode:n,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",i)!==!1&&(r.controller._update(n),i.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",i))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(Jn.has(this)?this.attached&&!Jn.running(this)&&Jn.start(this):(this.draw(),jp({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:r,height:i}=this._resizeBeforeDraw;this._resize(r,i),this._resizeBeforeDraw=null}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const n=this._layers;for(t=0;t<n.length&&n[t].z<=0;++t)n[t].draw(this.chartArea);for(this._drawDatasets();t<n.length;++t)n[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const n=this._sortedMetasets,r=[];let i,a;for(i=0,a=n.length;i<a;++i){const o=n[i];(!t||o.visible)&&r.push(o)}return r}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const t=this.getSortedVisibleDatasetMetas();for(let n=t.length-1;n>=0;--n)this._drawDataset(t[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const n=this.ctx,r=t._clip,i=!r.disabled,a=LM(t,this.chartArea),o={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",o)!==!1&&(i&&lh(n,{left:r.left===!1?0:a.left-r.left,right:r.right===!1?this.width:a.right+r.right,top:r.top===!1?0:a.top-r.top,bottom:r.bottom===!1?this.height:a.bottom+r.bottom}),t.controller.draw(),i&&uh(n),o.cancelable=!1,this.notifyPlugins("afterDatasetDraw",o))}isPointInArea(t){return sr(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,n,r,i){const a=BT.modes[n];return typeof a=="function"?a(this,t,r,i):[]}getDatasetMeta(t){const n=this.data.datasets[t],r=this._metasets;let i=r.filter(a=>a&&a._dataset===n).pop();return i||(i={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:t,_dataset:n,_parsed:[],_sorted:!1},r.push(i)),i}getContext(){return this.$context||(this.$context=Nr(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const n=this.data.datasets[t];if(!n)return!1;const r=this.getDatasetMeta(t);return typeof r.hidden=="boolean"?!r.hidden:!n.hidden}setDatasetVisibility(t,n){const r=this.getDatasetMeta(t);r.hidden=!n}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,n,r){const i=r?"show":"hide",a=this.getDatasetMeta(t),o=a.controller._resolveAnimations(void 0,i);Nl(n)?(a.data[n].hidden=!r,this.update()):(this.setDatasetVisibility(t,r),o.update(a,{visible:r}),this.update(s=>s.datasetIndex===t?i:void 0))}hide(t,n){this._updateVisibility(t,n,!1)}show(t,n){this._updateVisibility(t,n,!0)}_destroyDatasetMeta(t){const n=this._metasets[t];n&&n.controller&&n.controller._destroy(),delete this._metasets[t]}_stop(){let t,n;for(this.stop(),Jn.remove(this),t=0,n=this.data.datasets.length;t<n;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:n}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),cp(t,n),this.platform.releaseContext(n),this.canvas=null,this.ctx=null),delete Qs[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,n=this.platform,r=(a,o)=>{n.addEventListener(this,a,o),t[a]=o},i=(a,o,s)=>{a.offsetX=o,a.offsetY=s,this._eventHandler(a)};He(this.options.events,a=>r(a,i))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,n=this.platform,r=(l,u)=>{n.addEventListener(this,l,u),t[l]=u},i=(l,u)=>{t[l]&&(n.removeEventListener(this,l,u),delete t[l])},a=(l,u)=>{this.canvas&&this.resize(l,u)};let o;const s=()=>{i("attach",s),this.attached=!0,this.resize(),r("resize",a),r("detach",o)};o=()=>{this.attached=!1,i("resize",a),this._stop(),this._resize(0,0),r("attach",s)},n.isAttached(this.canvas)?s():o()}unbindEvents(){He(this._listeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._listeners={},He(this._responsiveListeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,n,r){const i=r?"set":"remove";let a,o,s,l;for(n==="dataset"&&(a=this.getDatasetMeta(t[0].datasetIndex),a.controller["_"+i+"DatasetHoverStyle"]()),s=0,l=t.length;s<l;++s){o=t[s];const u=o&&this.getDatasetMeta(o.datasetIndex).controller;u&&u[i+"HoverStyle"](o.element,o.datasetIndex,o.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const n=this._active||[],r=t.map(({datasetIndex:a,index:o})=>{const s=this.getDatasetMeta(a);if(!s)throw new Error("No dataset found at index "+a);return{datasetIndex:a,element:s.data[o],index:o}});!Vl(r,n)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,n))}notifyPlugins(t,n,r){return this._plugins.notify(this,t,n,r)}isPluginEnabled(t){return this._plugins._cache.filter(n=>n.plugin.id===t).length===1}_updateHoverStyles(t,n,r){const i=this.options.hover,a=(l,u)=>l.filter(c=>!u.some(d=>c.datasetIndex===d.datasetIndex&&c.index===d.index)),o=a(n,t),s=r?t:a(t,n);o.length&&this.updateHoverStyle(o,i.mode,!1),s.length&&i.mode&&this.updateHoverStyle(s,i.mode,!0)}_eventHandler(t,n){const r={event:t,replay:n,cancelable:!0,inChartArea:this.isPointInArea(t)},i=o=>(o.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",r,i)===!1)return;const a=this._handleEvent(t,n,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,i),(a||r.changed)&&this.render(),this}_handleEvent(t,n,r){const{_active:i=[],options:a}=this,o=n,s=this._getActiveElements(t,i,r,o),l=tP(t),u=NM(t,this._lastEvent,r,l);r&&(this._lastEvent=null,Ze(a.onHover,[t,s,this],this),l&&Ze(a.onClick,[t,s,this],this));const c=!Vl(s,i);return(c||n)&&(this._active=s,this._updateHoverStyles(s,i,n)),this._lastEvent=u,c}_getActiveElements(t,n,r,i){if(t.type==="mouseout")return[];if(!r)return n;const a=this.options.hover;return this.getElementsAtEventForMode(t,a.mode,a,i)}},ie(pr,"defaults",ot),ie(pr,"instances",Qs),ie(pr,"overrides",yi),ie(pr,"registry",Mn),ie(pr,"version",kM),ie(pr,"getChart",Hp),pr);function Wp(){return He(Du.instances,e=>e._plugins.invalidate())}function jM(e,t,n){const{startAngle:r,pixelMargin:i,x:a,y:o,outerRadius:s,innerRadius:l}=t;let u=i/s;e.beginPath(),e.arc(a,o,s,r-u,n+u),l>i?(u=i/l,e.arc(a,o,l,n+u,r-u,!0)):e.arc(a,o,i,n+dt,r-dt),e.closePath(),e.clip()}function HM(e){return ch(e,["outerStart","outerEnd","innerStart","innerEnd"])}function WM(e,t,n,r){const i=HM(e.options.borderRadius),a=(n-t)/2,o=Math.min(a,r*t/2),s=l=>{const u=(n-Math.min(a,l))*r/2;return en(l,0,Math.min(a,u))};return{outerStart:s(i.outerStart),outerEnd:s(i.outerEnd),innerStart:en(i.innerStart,0,o),innerEnd:en(i.innerEnd,0,o)}}function ji(e,t,n,r){return{x:n+e*Math.cos(t),y:r+e*Math.sin(t)}}function Zl(e,t,n,r,i,a){const{x:o,y:s,startAngle:l,pixelMargin:u,innerRadius:c}=t,d=Math.max(t.outerRadius+r+n-u,0),h=c>0?c+r+n+u:0;let f=0;const g=i-l;if(r){const B=c>0?c-r:0,T=d>0?d-r:0,R=(B+T)/2,O=R!==0?g*R/(R+r):g;f=(g-O)/2}const m=Math.max(.001,g*d-n/Qe)/d,p=(g-m)/2,b=l+p+f,v=i-p-f,{outerStart:y,outerEnd:w,innerStart:C,innerEnd:E}=WM(t,h,d,v-b),I=d-y,D=d-w,_=b+y/I,F=v-w/D,$=h+C,P=h+E,M=b+C/$,A=v-E/P;if(e.beginPath(),a){const B=(_+F)/2;if(e.arc(o,s,d,_,B),e.arc(o,s,d,B,F),w>0){const H=ji(D,F,o,s);e.arc(H.x,H.y,w,F,v+dt)}const T=ji(P,v,o,s);if(e.lineTo(T.x,T.y),E>0){const H=ji(P,A,o,s);e.arc(H.x,H.y,E,v+dt,A+Math.PI)}const R=(v-E/h+(b+C/h))/2;if(e.arc(o,s,h,v-E/h,R,!0),e.arc(o,s,h,R,b+C/h,!0),C>0){const H=ji($,M,o,s);e.arc(H.x,H.y,C,M+Math.PI,b-dt)}const O=ji(I,b,o,s);if(e.lineTo(O.x,O.y),y>0){const H=ji(I,_,o,s);e.arc(H.x,H.y,y,b-dt,_)}}else{e.moveTo(o,s);const B=Math.cos(_)*d+o,T=Math.sin(_)*d+s;e.lineTo(B,T);const R=Math.cos(F)*d+o,O=Math.sin(F)*d+s;e.lineTo(R,O)}e.closePath()}function zM(e,t,n,r,i){const{fullCircles:a,startAngle:o,circumference:s}=t;let l=t.endAngle;if(a){Zl(e,t,n,r,l,i);for(let u=0;u<a;++u)e.fill();isNaN(s)||(l=o+(s%Ke||Ke))}return Zl(e,t,n,r,l,i),e.fill(),l}function GM(e,t,n,r,i){const{fullCircles:a,startAngle:o,circumference:s,options:l}=t,{borderWidth:u,borderJoinStyle:c,borderDash:d,borderDashOffset:h}=l,f=l.borderAlign==="inner";if(!u)return;e.setLineDash(d||[]),e.lineDashOffset=h,f?(e.lineWidth=u*2,e.lineJoin=c||"round"):(e.lineWidth=u,e.lineJoin=c||"bevel");let g=t.endAngle;if(a){Zl(e,t,n,r,g,i);for(let m=0;m<a;++m)e.stroke();isNaN(s)||(g=o+(s%Ke||Ke))}f&&jM(e,t,g),a||(Zl(e,t,n,r,g,i),e.stroke())}class Oa extends Lr{constructor(n){super();ie(this,"circumference");ie(this,"endAngle");ie(this,"fullCircles");ie(this,"innerRadius");ie(this,"outerRadius");ie(this,"pixelMargin");ie(this,"startAngle");this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,n&&Object.assign(this,n)}inRange(n,r,i){const a=this.getProps(["x","y"],i),{angle:o,distance:s}=j4(a,{x:n,y:r}),{startAngle:l,endAngle:u,innerRadius:c,outerRadius:d,circumference:h}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],i),f=(this.options.spacing+this.options.borderWidth)/2,m=Ce(h,u-l)>=Ke||Ao(o,l,u),p=Zi(s,c+f,d+f);return m&&p}getCenterPoint(n){const{x:r,y:i,startAngle:a,endAngle:o,innerRadius:s,outerRadius:l}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],n),{offset:u,spacing:c}=this.options,d=(a+o)/2,h=(s+l+c+u)/2;return{x:r+Math.cos(d)*h,y:i+Math.sin(d)*h}}tooltipPosition(n){return this.getCenterPoint(n)}draw(n){const{options:r,circumference:i}=this,a=(r.offset||0)/4,o=(r.spacing||0)/2,s=r.circular;if(this.pixelMargin=r.borderAlign==="inner"?.33:0,this.fullCircles=i>Ke?Math.floor(i/Ke):0,i===0||this.innerRadius<0||this.outerRadius<0)return;n.save();const l=(this.startAngle+this.endAngle)/2;n.translate(Math.cos(l)*a,Math.sin(l)*a);const u=1-Math.sin(Math.min(Qe,i||0)),c=a*u;n.fillStyle=r.backgroundColor,n.strokeStyle=r.borderColor,zM(n,this,c,o,s),GM(n,this,c,o,s),n.restore()}}ie(Oa,"id","arc"),ie(Oa,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),ie(Oa,"defaultRoutes",{backgroundColor:"backgroundColor"}),ie(Oa,"descriptors",{_scriptable:!0,_indexable:n=>n!=="borderDash"});function f3(e,t,n=t){e.lineCap=Ce(n.borderCapStyle,t.borderCapStyle),e.setLineDash(Ce(n.borderDash,t.borderDash)),e.lineDashOffset=Ce(n.borderDashOffset,t.borderDashOffset),e.lineJoin=Ce(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=Ce(n.borderWidth,t.borderWidth),e.strokeStyle=Ce(n.borderColor,t.borderColor)}function ZM(e,t,n){e.lineTo(n.x,n.y)}function XM(e){return e.stepped?SP:e.tension||e.cubicInterpolationMode==="monotone"?EP:ZM}function h3(e,t,n={}){const r=e.length,{start:i=0,end:a=r-1}=n,{start:o,end:s}=t,l=Math.max(i,o),u=Math.min(a,s),c=i<o&&a<o||i>s&&a>s;return{count:r,start:l,loop:t.loop,ilen:u<l&&!c?r+u-l:u-l}}function YM(e,t,n,r){const{points:i,options:a}=t,{count:o,start:s,loop:l,ilen:u}=h3(i,n,r),c=XM(a);let{move:d=!0,reverse:h}=r||{},f,g,m;for(f=0;f<=u;++f)g=i[(s+(h?u-f:f))%o],!g.skip&&(d?(e.moveTo(g.x,g.y),d=!1):c(e,m,g,h,a.stepped),m=g);return l&&(g=i[(s+(h?u:0))%o],c(e,m,g,h,a.stepped)),!!l}function UM(e,t,n,r){const i=t.points,{count:a,start:o,ilen:s}=h3(i,n,r),{move:l=!0,reverse:u}=r||{};let c=0,d=0,h,f,g,m,p,b;const v=w=>(o+(u?s-w:w))%a,y=()=>{m!==p&&(e.lineTo(c,p),e.lineTo(c,m),e.lineTo(c,b))};for(l&&(f=i[v(0)],e.moveTo(f.x,f.y)),h=0;h<=s;++h){if(f=i[v(h)],f.skip)continue;const w=f.x,C=f.y,E=w|0;E===g?(C<m?m=C:C>p&&(p=C),c=(d*c+w)/++d):(y(),e.lineTo(w,C),g=E,d=0,m=p=C),b=C}y()}function Ad(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!n?UM:YM}function JM(e){return e.stepped?iT:e.tension||e.cubicInterpolationMode==="monotone"?aT:qr}function KM(e,t,n,r){let i=t._path;i||(i=t._path=new Path2D,t.path(i,n,r)&&i.closePath()),f3(e,t.options),e.stroke(i)}function QM(e,t,n,r){const{segments:i,options:a}=t,o=Ad(t);for(const s of i)f3(e,a,s.style),e.beginPath(),o(e,t,s,{start:n,end:n+r-1})&&e.closePath(),e.stroke()}const qM=typeof Path2D=="function";function ek(e,t,n,r){qM&&!t.options.segment?KM(e,t,n,r):QM(e,t,n,r)}class Na extends Lr{constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,n){const r=this.options;if((r.tension||r.cubicInterpolationMode==="monotone")&&!r.stepped&&!this._pointsUpdated){const i=r.spanGaps?this._loop:this._fullLoop;JP(this._points,r,t,i,n),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=hT(this,this.options.segment))}first(){const t=this.segments,n=this.points;return t.length&&n[t[0].start]}last(){const t=this.segments,n=this.points,r=t.length;return r&&n[t[r-1].end]}interpolate(t,n){const r=this.options,i=t[n],a=this.points,o=cT(this,{property:n,start:i,end:i});if(!o.length)return;const s=[],l=JM(r);let u,c;for(u=0,c=o.length;u<c;++u){const{start:d,end:h}=o[u],f=a[d],g=a[h];if(f===g){s.push(f);continue}const m=Math.abs((i-f[n])/(g[n]-f[n])),p=l(f,g,m,r.stepped);p[n]=t[n],s.push(p)}return s.length===1?s[0]:s}pathSegment(t,n,r){return Ad(this)(t,this,n,r)}path(t,n,r){const i=this.segments,a=Ad(this);let o=this._loop;n=n||0,r=r||this.points.length-n;for(const s of i)o&=a(t,this,s,{start:n,end:n+r-1});return!!o}draw(t,n,r,i){const a=this.options||{};(this.points||[]).length&&a.borderWidth&&(t.save(),ek(t,this,r,i),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}ie(Na,"id","line"),ie(Na,"defaults",{borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0}),ie(Na,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"}),ie(Na,"descriptors",{_scriptable:!0,_indexable:t=>t!=="borderDash"&&t!=="fill"});function zp(e,t,n,r){const i=e.options,{[n]:a}=e.getProps([n],r);return Math.abs(t-a)<i.radius+i.hitRadius}class qs extends Lr{constructor(n){super();ie(this,"parsed");ie(this,"skip");ie(this,"stop");this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,n&&Object.assign(this,n)}inRange(n,r,i){const a=this.options,{x:o,y:s}=this.getProps(["x","y"],i);return Math.pow(n-o,2)+Math.pow(r-s,2)<Math.pow(a.hitRadius+a.radius,2)}inXRange(n,r){return zp(this,n,"x",r)}inYRange(n,r){return zp(this,n,"y",r)}getCenterPoint(n){const{x:r,y:i}=this.getProps(["x","y"],n);return{x:r,y:i}}size(n){n=n||this.options||{};let r=n.radius||0;r=Math.max(r,r&&n.hoverRadius||0);const i=r&&n.borderWidth||0;return(r+i)*2}draw(n,r){const i=this.options;this.skip||i.radius<.1||!sr(this,r,this.size(i)/2)||(n.strokeStyle=i.borderColor,n.lineWidth=i.borderWidth,n.fillStyle=i.backgroundColor,_d(n,i,this.x,this.y))}getRange(){const n=this.options||{};return n.radius+n.hitRadius}}ie(qs,"id","point"),ie(qs,"defaults",{borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0}),ie(qs,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});const Gp=(e,t)=>{let{boxHeight:n=t,boxWidth:r=t}=e;return e.usePointStyle&&(n=Math.min(n,t),r=e.pointStyleWidth||Math.min(r,t)),{boxWidth:r,boxHeight:n,itemHeight:Math.max(t,n)}},tk=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class Zp extends Lr{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n,r){this.maxWidth=t,this.maxHeight=n,this._margins=r,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let n=Ze(t.generateLabels,[this.chart],this)||[];t.filter&&(n=n.filter(r=>t.filter(r,this.chart.data))),t.sort&&(n=n.sort((r,i)=>t.sort(r,i,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:t,ctx:n}=this;if(!t.display){this.width=this.height=0;return}const r=t.labels,i=pt(r.font),a=i.size,o=this._computeTitleHeight(),{boxWidth:s,itemHeight:l}=Gp(r,a);let u,c;n.font=i.string,this.isHorizontal()?(u=this.maxWidth,c=this._fitRows(o,a,s,l)+10):(c=this.maxHeight,u=this._fitCols(o,i,s,l)+10),this.width=Math.min(u,t.maxWidth||this.maxWidth),this.height=Math.min(c,t.maxHeight||this.maxHeight)}_fitRows(t,n,r,i){const{ctx:a,maxWidth:o,options:{labels:{padding:s}}}=this,l=this.legendHitBoxes=[],u=this.lineWidths=[0],c=i+s;let d=t;a.textAlign="left",a.textBaseline="middle";let h=-1,f=-c;return this.legendItems.forEach((g,m)=>{const p=r+n/2+a.measureText(g.text).width;(m===0||u[u.length-1]+p+2*s>o)&&(d+=c,u[u.length-(m>0?0:1)]=0,f+=c,h++),l[m]={left:0,top:f,row:h,width:p,height:i},u[u.length-1]+=p+s}),d}_fitCols(t,n,r,i){const{ctx:a,maxHeight:o,options:{labels:{padding:s}}}=this,l=this.legendHitBoxes=[],u=this.columnSizes=[],c=o-t;let d=s,h=0,f=0,g=0,m=0;return this.legendItems.forEach((p,b)=>{const{itemWidth:v,itemHeight:y}=nk(r,n,a,p,i);b>0&&f+y+2*s>c&&(d+=h+s,u.push({width:h,height:f}),g+=h+s,m++,h=f=0),l[b]={left:g,top:f,col:m,width:v,height:y},h=Math.max(h,v),f+=y+s}),d+=h,u.push({width:h,height:f}),d}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:r,labels:{padding:i},rtl:a}}=this,o=na(a,this.left,this.width);if(this.isHorizontal()){let s=0,l=_t(r,this.left+i,this.right-this.lineWidths[s]);for(const u of n)s!==u.row&&(s=u.row,l=_t(r,this.left+i,this.right-this.lineWidths[s])),u.top+=this.top+t+i,u.left=o.leftForLtr(o.x(l),u.width),l+=u.width+i}else{let s=0,l=_t(r,this.top+t+i,this.bottom-this.columnSizes[s].height);for(const u of n)u.col!==s&&(s=u.col,l=_t(r,this.top+t+i,this.bottom-this.columnSizes[s].height)),u.top=l,u.left+=this.left+i,u.left=o.leftForLtr(o.x(u.left),u.width),l+=u.height+i}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;lh(t,this),this._draw(),uh(t)}}_draw(){const{options:t,columnSizes:n,lineWidths:r,ctx:i}=this,{align:a,labels:o}=t,s=ot.color,l=na(t.rtl,this.left,this.width),u=pt(o.font),{padding:c}=o,d=u.size,h=d/2;let f;this.drawTitle(),i.textAlign=l.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=u.string;const{boxWidth:g,boxHeight:m,itemHeight:p}=Gp(o,d),b=function(E,I,D){if(isNaN(g)||g<=0||isNaN(m)||m<0)return;i.save();const _=Ce(D.lineWidth,1);if(i.fillStyle=Ce(D.fillStyle,s),i.lineCap=Ce(D.lineCap,"butt"),i.lineDashOffset=Ce(D.lineDashOffset,0),i.lineJoin=Ce(D.lineJoin,"miter"),i.lineWidth=_,i.strokeStyle=Ce(D.strokeStyle,s),i.setLineDash(Ce(D.lineDash,[])),o.usePointStyle){const F={radius:m*Math.SQRT2/2,pointStyle:D.pointStyle,rotation:D.rotation,borderWidth:_},$=l.xPlus(E,g/2),P=I+h;Z4(i,F,$,P,o.pointStyleWidth&&g)}else{const F=I+Math.max((d-m)/2,0),$=l.leftForLtr(E,g),P=ta(D.borderRadius);i.beginPath(),Object.values(P).some(M=>M!==0)?Wl(i,{x:$,y:F,w:g,h:m,radius:P}):i.rect($,F,g,m),i.fill(),_!==0&&i.stroke()}i.restore()},v=function(E,I,D){xi(i,D.text,E,I+p/2,u,{strikethrough:D.hidden,textAlign:l.textAlign(D.textAlign)})},y=this.isHorizontal(),w=this._computeTitleHeight();y?f={x:_t(a,this.left+c,this.right-r[0]),y:this.top+c+w,line:0}:f={x:this.left+c,y:_t(a,this.top+w+c,this.bottom-n[0].height),line:0},Q4(this.ctx,t.textDirection);const C=p+c;this.legendItems.forEach((E,I)=>{i.strokeStyle=E.fontColor,i.fillStyle=E.fontColor;const D=i.measureText(E.text).width,_=l.textAlign(E.textAlign||(E.textAlign=o.textAlign)),F=g+h+D;let $=f.x,P=f.y;l.setWidth(this.width),y?I>0&&$+F+c>this.right&&(P=f.y+=C,f.line++,$=f.x=_t(a,this.left+c,this.right-r[f.line])):I>0&&P+C>this.bottom&&($=f.x=$+n[f.line].width+c,f.line++,P=f.y=_t(a,this.top+w+c,this.bottom-n[f.line].height));const M=l.x($);if(b(M,P,E),$=hP(_,$+g+h,y?$+F:this.right,t.rtl),v(l.x($),P,E),y)f.x+=F+c;else if(typeof E.text!="string"){const A=u.lineHeight;f.y+=g3(E,A)+c}else f.y+=C}),q4(this.ctx,t.textDirection)}drawTitle(){const t=this.options,n=t.title,r=pt(n.font),i=Ft(n.padding);if(!n.display)return;const a=na(t.rtl,this.left,this.width),o=this.ctx,s=n.position,l=r.size/2,u=i.top+l;let c,d=this.left,h=this.width;if(this.isHorizontal())h=Math.max(...this.lineWidths),c=this.top+u,d=_t(t.align,d,this.right-h);else{const g=this.columnSizes.reduce((m,p)=>Math.max(m,p.height),0);c=u+_t(t.align,this.top,this.bottom-g-t.labels.padding-this._computeTitleHeight())}const f=_t(s,d,d+h);o.textAlign=a.textAlign(oh(s)),o.textBaseline="middle",o.strokeStyle=n.color,o.fillStyle=n.color,o.font=r.string,xi(o,n.text,f,c,r)}_computeTitleHeight(){const t=this.options.title,n=pt(t.font),r=Ft(t.padding);return t.display?n.lineHeight+r.height:0}_getLegendItemAt(t,n){let r,i,a;if(Zi(t,this.left,this.right)&&Zi(n,this.top,this.bottom)){for(a=this.legendHitBoxes,r=0;r<a.length;++r)if(i=a[r],Zi(t,i.left,i.left+i.width)&&Zi(n,i.top,i.top+i.height))return this.legendItems[r]}return null}handleEvent(t){const n=this.options;if(!ak(t.type,n))return;const r=this._getLegendItemAt(t.x,t.y);if(t.type==="mousemove"||t.type==="mouseout"){const i=this._hoveredItem,a=tk(i,r);i&&!a&&Ze(n.onLeave,[t,i,this],this),this._hoveredItem=r,r&&!a&&Ze(n.onHover,[t,r,this],this)}else r&&Ze(n.onClick,[t,r,this],this)}}function nk(e,t,n,r,i){const a=rk(r,e,t,n),o=ik(i,r,t.lineHeight);return{itemWidth:a,itemHeight:o}}function rk(e,t,n,r){let i=e.text;return i&&typeof i!="string"&&(i=i.reduce((a,o)=>a.length>o.length?a:o)),t+n.size/2+r.measureText(i).width}function ik(e,t,n){let r=e;return typeof t.text!="string"&&(r=g3(t,n)),r}function g3(e,t){const n=e.text?e.text.length:0;return t*n}function ak(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var ok={id:"legend",_element:Zp,start(e,t,n){const r=e.legend=new Zp({ctx:e.ctx,options:n,chart:e});pn.configure(e,r,n),pn.addBox(e,r)},stop(e){pn.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const r=e.legend;pn.configure(e,r,n),r.options=n},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){const r=t.datasetIndex,i=n.chart;i.isDatasetVisible(r)?(i.hide(r),t.hidden=!0):(i.show(r),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:r,textAlign:i,color:a,useBorderRadius:o,borderRadius:s}}=e.legend.options;return e._getSortedDatasetMetas().map(l=>{const u=l.controller.getStyle(n?0:void 0),c=Ft(u.borderWidth);return{text:t[l.index].label,fillStyle:u.backgroundColor,fontColor:a,hidden:!l.visible,lineCap:u.borderCapStyle,lineDash:u.borderDash,lineDashOffset:u.borderDashOffset,lineJoin:u.borderJoinStyle,lineWidth:(c.width+c.height)/4,strokeStyle:u.borderColor,pointStyle:r||u.pointStyle,rotation:u.rotation,textAlign:i||u.textAlign,borderRadius:o&&(s||u.borderRadius),datasetIndex:l.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class m3 extends Lr{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n){const r=this.options;if(this.left=0,this.top=0,!r.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=t,this.height=this.bottom=n;const i=at(r.text)?r.text.length:1;this._padding=Ft(r.padding);const a=i*pt(r.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=a:this.width=a}isHorizontal(){const t=this.options.position;return t==="top"||t==="bottom"}_drawArgs(t){const{top:n,left:r,bottom:i,right:a,options:o}=this,s=o.align;let l=0,u,c,d;return this.isHorizontal()?(c=_t(s,r,a),d=n+t,u=a-r):(o.position==="left"?(c=r+t,d=_t(s,i,n),l=Qe*-.5):(c=a-t,d=_t(s,n,i),l=Qe*.5),u=i-n),{titleX:c,titleY:d,maxWidth:u,rotation:l}}draw(){const t=this.ctx,n=this.options;if(!n.display)return;const r=pt(n.font),a=r.lineHeight/2+this._padding.top,{titleX:o,titleY:s,maxWidth:l,rotation:u}=this._drawArgs(a);xi(t,n.text,0,0,r,{color:n.color,maxWidth:l,rotation:u,textAlign:oh(n.align),textBaseline:"middle",translation:[o,s]})}}function sk(e,t){const n=new m3({ctx:e.ctx,options:t,chart:e});pn.configure(e,n,t),pn.addBox(e,n),e.titleBlock=n}var lk={id:"title",_element:m3,start(e,t,n){sk(e,n)},stop(e){const t=e.titleBlock;pn.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const r=e.titleBlock;pn.configure(e,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const La={average(e){if(!e.length)return!1;let t,n,r=new Set,i=0,a=0;for(t=0,n=e.length;t<n;++t){const s=e[t].element;if(s&&s.hasValue()){const l=s.tooltipPosition();r.add(l.x),i+=l.y,++a}}return{x:[...r].reduce((s,l)=>s+l)/r.size,y:i/a}},nearest(e,t){if(!e.length)return!1;let n=t.x,r=t.y,i=Number.POSITIVE_INFINITY,a,o,s;for(a=0,o=e.length;a<o;++a){const l=e[a].element;if(l&&l.hasValue()){const u=l.getCenterPoint(),c=Sd(t,u);c<i&&(i=c,s=l)}}if(s){const l=s.tooltipPosition();n=l.x,r=l.y}return{x:n,y:r}}};function Pn(e,t){return t&&(at(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function Kn(e){return(typeof e=="string"||e instanceof String)&&e.indexOf(`
|
170
|
+
*/class pT{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,n,r,i){const a=n.listeners[i],o=n.duration;a.forEach(s=>s({chart:t,initial:n.initial,numSteps:o,currentStep:Math.min(r-n.start,o)}))}_refresh(){this._request||(this._running=!0,this._request=W4.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let n=0;this._charts.forEach((r,i)=>{if(!r.running||!r.items.length)return;const a=r.items;let o=a.length-1,s=!1,l;for(;o>=0;--o)l=a[o],l._active?(l._total>r.duration&&(r.duration=l._total),l.tick(t),s=!0):(a[o]=a[a.length-1],a.pop());s&&(i.draw(),this._notify(i,r,t,"progress")),a.length||(r.running=!1,this._notify(i,r,t,"complete"),r.initial=!1),n+=a.length}),this._lastDate=t,n===0&&(this._running=!1)}_getAnims(t){const n=this._charts;let r=n.get(t);return r||(r={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(t,r)),r}listen(t,n,r){this._getAnims(t).listeners[n].push(r)}add(t,n){!n||!n.length||this._getAnims(t).items.push(...n)}has(t){return this._getAnims(t).items.length>0}start(t){const n=this._charts.get(t);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((r,i)=>Math.max(r,i._duration),0),this._refresh())}running(t){if(!this._running)return!1;const n=this._charts.get(t);return!(!n||!n.running||!n.items.length)}stop(t){const n=this._charts.get(t);if(!n||!n.items.length)return;const r=n.items;let i=r.length-1;for(;i>=0;--i)r[i].cancel();n.items=[],this._notify(t,n,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var Jn=new pT;const vp="transparent",bT={boolean(e,t,n){return n>.5?t:e},color(e,t,n){const r=lp(e||vp),i=r.valid&&lp(t||vp);return i&&i.valid?i.mix(r,n).hexString():t},number(e,t,n){return e+(t-e)*n}};class vT{constructor(t,n,r,i){const a=n[r];i=Ss([t.to,i,a,t.from]);const o=Ss([t.from,a,i]);this._active=!0,this._fn=t.fn||bT[t.type||typeof o],this._easing=Ja[t.easing]||Ja.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=n,this._prop=r,this._from=o,this._to=i,this._promises=void 0}active(){return this._active}update(t,n,r){if(this._active){this._notify(!1);const i=this._target[this._prop],a=r-this._start,o=this._duration-a;this._start=r,this._duration=Math.floor(Math.max(o,t.duration)),this._total+=a,this._loop=!!t.loop,this._to=Ss([t.to,n,i,t.from]),this._from=Ss([t.from,i,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const n=t-this._start,r=this._duration,i=this._prop,a=this._from,o=this._loop,s=this._to;let l;if(this._active=a!==s&&(o||n<r),!this._active){this._target[i]=s,this._notify(!0);return}if(n<0){this._target[i]=a;return}l=n/r%2,l=o&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[i]=this._fn(a,s,l)}wait(){const t=this._promises||(this._promises=[]);return new Promise((n,r)=>{t.push({res:n,rej:r})})}_notify(t){const n=t?"res":"rej",r=this._promises||[];for(let i=0;i<r.length;i++)r[i][n]()}}class t3{constructor(t,n){this._chart=t,this._properties=new Map,this.configure(n)}configure(t){if(!Re(t))return;const n=Object.keys(ot.animation),r=this._properties;Object.getOwnPropertyNames(t).forEach(i=>{const a=t[i];if(!Re(a))return;const o={};for(const s of n)o[s]=a[s];(at(a.properties)&&a.properties||[i]).forEach(s=>{(s===i||!r.has(s))&&r.set(s,o)})})}_animateOptions(t,n){const r=n.options,i=xT(t,r);if(!i)return[];const a=this._createAnimations(i,r);return r.$shared&&yT(t.options.$animations,r).then(()=>{t.options=r},()=>{}),a}_createAnimations(t,n){const r=this._properties,i=[],a=t.$animations||(t.$animations={}),o=Object.keys(n),s=Date.now();let l;for(l=o.length-1;l>=0;--l){const u=o[l];if(u.charAt(0)==="$")continue;if(u==="options"){i.push(...this._animateOptions(t,n));continue}const c=n[u];let d=a[u];const h=r.get(u);if(d)if(h&&d.active()){d.update(h,c,s);continue}else d.cancel();if(!h||!h.duration){t[u]=c;continue}a[u]=d=new vT(h,t,u,c),i.push(d)}return i}update(t,n){if(this._properties.size===0){Object.assign(t,n);return}const r=this._createAnimations(t,n);if(r.length)return Jn.add(this._chart,r),!0}}function yT(e,t){const n=[],r=Object.keys(t);for(let i=0;i<r.length;i++){const a=e[r[i]];a&&a.active()&&n.push(a.wait())}return Promise.all(n)}function xT(e,t){if(!t)return;let n=e.options;if(!n){e.options=t;return}return n.$shared&&(e.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n}function yp(e,t){const n=e&&e.options||{},r=n.reverse,i=n.min===void 0?t:0,a=n.max===void 0?t:0;return{start:r?a:i,end:r?i:a}}function CT(e,t,n){if(n===!1)return!1;const r=yp(e,n),i=yp(t,n);return{top:i.end,right:r.end,bottom:i.start,left:r.start}}function wT(e){let t,n,r,i;return Re(e)?(t=e.top,n=e.right,r=e.bottom,i=e.left):t=n=r=i=e,{top:t,right:n,bottom:r,left:i,disabled:e===!1}}function n3(e,t){const n=[],r=e._getSortedDatasetMetas(t);let i,a;for(i=0,a=r.length;i<a;++i)n.push(r[i].index);return n}function xp(e,t,n,r={}){const i=e.keys,a=r.mode==="single";let o,s,l,u;if(t!==null){for(o=0,s=i.length;o<s;++o){if(l=+i[o],l===n){if(r.all)continue;break}u=e.values[l],xt(u)&&(a||t===0||ca(t)===ca(u))&&(t+=u)}return t}}function DT(e,t){const{iScale:n,vScale:r}=t,i=n.axis==="x"?"x":"y",a=r.axis==="x"?"x":"y",o=Object.keys(e),s=new Array(o.length);let l,u,c;for(l=0,u=o.length;l<u;++l)c=o[l],s[l]={[i]:c,[a]:e[c]};return s}function Cp(e,t){const n=e&&e.options.stacked;return n||n===void 0&&t.stack!==void 0}function ST(e,t,n){return`${e.id}.${t.id}.${n.stack||n.type}`}function ET(e){const{min:t,max:n,minDefined:r,maxDefined:i}=e.getUserBounds();return{min:r?t:Number.NEGATIVE_INFINITY,max:i?n:Number.POSITIVE_INFINITY}}function IT(e,t,n){const r=e[t]||(e[t]={});return r[n]||(r[n]={})}function wp(e,t,n,r){for(const i of t.getMatchingVisibleMetas(r).reverse()){const a=e[i.index];if(n&&a>0||!n&&a<0)return i.index}return null}function Dp(e,t){const{chart:n,_cachedMeta:r}=e,i=n._stacks||(n._stacks={}),{iScale:a,vScale:o,index:s}=r,l=a.axis,u=o.axis,c=ST(a,o,r),d=t.length;let h;for(let f=0;f<d;++f){const g=t[f],{[l]:m,[u]:p}=g,b=g._stacks||(g._stacks={});h=b[u]=IT(i,c,m),h[s]=p,h._top=wp(h,o,!0,r.type),h._bottom=wp(h,o,!1,r.type);const v=h._visualValues||(h._visualValues={});v[s]=p}}function Cc(e,t){const n=e.scales;return Object.keys(n).filter(r=>n[r].axis===t).shift()}function _T(e,t){return Nr(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function $T(e,t,n){return Nr(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}function Sa(e,t){const n=e.controller.index,r=e.vScale&&e.vScale.axis;if(r){t=t||e._parsed;for(const i of t){const a=i._stacks;if(!a||a[r]===void 0||a[r][n]===void 0)return;delete a[r][n],a[r]._visualValues!==void 0&&a[r]._visualValues[n]!==void 0&&delete a[r]._visualValues[n]}}}const wc=e=>e==="reset"||e==="none",Sp=(e,t)=>t?e:Object.assign({},e),RT=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:n3(n,!0),values:null};class Qa{constructor(t,n){this.chart=t,this._ctx=t.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=Cp(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&Sa(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,n=this._cachedMeta,r=this.getDataset(),i=(d,h,f,g)=>d==="x"?h:d==="r"?g:f,a=n.xAxisID=Ce(r.xAxisID,Cc(t,"x")),o=n.yAxisID=Ce(r.yAxisID,Cc(t,"y")),s=n.rAxisID=Ce(r.rAxisID,Cc(t,"r")),l=n.indexAxis,u=n.iAxisID=i(l,a,o,s),c=n.vAxisID=i(l,o,a,s);n.xScale=this.getScaleForId(a),n.yScale=this.getScaleForId(o),n.rScale=this.getScaleForId(s),n.iScale=this.getScaleForId(u),n.vScale=this.getScaleForId(c)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const n=this._cachedMeta;return t===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&ap(this._data,this),t._stacked&&Sa(t)}_dataCheck(){const t=this.getDataset(),n=t.data||(t.data=[]),r=this._data;if(Re(n)){const i=this._cachedMeta;this._data=DT(n,i)}else if(r!==n){if(r){ap(r,this);const i=this._cachedMeta;Sa(i),i._parsed=[]}n&&Object.isExtensible(n)&&cP(n,this),this._syncList=[],this._data=n}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const n=this._cachedMeta,r=this.getDataset();let i=!1;this._dataCheck();const a=n._stacked;n._stacked=Cp(n.vScale,n),n.stack!==r.stack&&(i=!0,Sa(n),n.stack=r.stack),this._resyncElements(t),(i||a!==n._stacked)&&Dp(this,n._parsed)}configure(){const t=this.chart.config,n=t.datasetScopeKeys(this._type),r=t.getOptionScopes(this.getDataset(),n,!0);this.options=t.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,n){const{_cachedMeta:r,_data:i}=this,{iScale:a,_stacked:o}=r,s=a.axis;let l=t===0&&n===i.length?!0:r._sorted,u=t>0&&r._parsed[t-1],c,d,h;if(this._parsing===!1)r._parsed=i,r._sorted=!0,h=i;else{at(i[t])?h=this.parseArrayData(r,i,t,n):Re(i[t])?h=this.parseObjectData(r,i,t,n):h=this.parsePrimitiveData(r,i,t,n);const f=()=>d[s]===null||u&&d[s]<u[s];for(c=0;c<n;++c)r._parsed[c+t]=d=h[c],l&&(f()&&(l=!1),u=d);r._sorted=l}o&&Dp(this,h)}parsePrimitiveData(t,n,r,i){const{iScale:a,vScale:o}=t,s=a.axis,l=o.axis,u=a.getLabels(),c=a===o,d=new Array(i);let h,f,g;for(h=0,f=i;h<f;++h)g=h+r,d[h]={[s]:c||a.parse(u[g],g),[l]:o.parse(n[g],g)};return d}parseArrayData(t,n,r,i){const{xScale:a,yScale:o}=t,s=new Array(i);let l,u,c,d;for(l=0,u=i;l<u;++l)c=l+r,d=n[c],s[l]={x:a.parse(d[0],c),y:o.parse(d[1],c)};return s}parseObjectData(t,n,r,i){const{xScale:a,yScale:o}=t,{xAxisKey:s="x",yAxisKey:l="y"}=this._parsing,u=new Array(i);let c,d,h,f;for(c=0,d=i;c<d;++c)h=c+r,f=n[h],u[c]={x:a.parse(Ro(f,s),h),y:o.parse(Ro(f,l),h)};return u}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,n,r){const i=this.chart,a=this._cachedMeta,o=n[t.axis],s={keys:n3(i,!0),values:n._stacks[t.axis]._visualValues};return xp(s,o,a.index,{mode:r})}updateRangeFromParsed(t,n,r,i){const a=r[n.axis];let o=a===null?NaN:a;const s=i&&r._stacks[n.axis];i&&s&&(i.values=s,o=xp(i,a,this._cachedMeta.index)),t.min=Math.min(t.min,o),t.max=Math.max(t.max,o)}getMinMax(t,n){const r=this._cachedMeta,i=r._parsed,a=r._sorted&&t===r.iScale,o=i.length,s=this._getOtherScale(t),l=RT(n,r,this.chart),u={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:c,max:d}=ET(s);let h,f;function g(){f=i[h];const m=f[s.axis];return!xt(f[t.axis])||c>m||d<m}for(h=0;h<o&&!(!g()&&(this.updateRangeFromParsed(u,t,f,l),a));++h);if(a){for(h=o-1;h>=0;--h)if(!g()){this.updateRangeFromParsed(u,t,f,l);break}}return u}getAllParsedValues(t){const n=this._cachedMeta._parsed,r=[];let i,a,o;for(i=0,a=n.length;i<a;++i)o=n[i][t.axis],xt(o)&&r.push(o);return r}getMaxOverflow(){return!1}getLabelAndValue(t){const n=this._cachedMeta,r=n.iScale,i=n.vScale,a=this.getParsed(t);return{label:r?""+r.getLabelForValue(a[r.axis]):"",value:i?""+i.getLabelForValue(a[i.axis]):""}}_update(t){const n=this._cachedMeta;this.update(t||"default"),n._clip=wT(Ce(this.options.clip,CT(n.xScale,n.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,n=this.chart,r=this._cachedMeta,i=r.data||[],a=n.chartArea,o=[],s=this._drawStart||0,l=this._drawCount||i.length-s,u=this.options.drawActiveElementsOnTop;let c;for(r.dataset&&r.dataset.draw(t,a,s,l),c=s;c<s+l;++c){const d=i[c];d.hidden||(d.active&&u?o.push(d):d.draw(t,a))}for(c=0;c<o.length;++c)o[c].draw(t,a)}getStyle(t,n){const r=n?"active":"default";return t===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(r):this.resolveDataElementOptions(t||0,r)}getContext(t,n,r){const i=this.getDataset();let a;if(t>=0&&t<this._cachedMeta.data.length){const o=this._cachedMeta.data[t];a=o.$context||(o.$context=$T(this.getContext(),t,o)),a.parsed=this.getParsed(t),a.raw=i.data[t],a.index=a.dataIndex=t}else a=this.$context||(this.$context=_T(this.chart.getContext(),this.index)),a.dataset=i,a.index=a.datasetIndex=this.index;return a.active=!!n,a.mode=r,a}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,n){return this._resolveElementOptions(this.dataElementType.id,n,t)}_resolveElementOptions(t,n="default",r){const i=n==="active",a=this._cachedDataOpts,o=t+"-"+n,s=a[o],l=this.enableOptionSharing&&Nl(r);if(s)return Sp(s,l);const u=this.chart.config,c=u.datasetElementScopeKeys(this._type,t),d=i?[`${t}Hover`,"hover",t,""]:[t,""],h=u.getOptionScopes(this.getDataset(),c),f=Object.keys(ot.elements[t]),g=()=>this.getContext(r,i,n),m=u.resolveNamedOptions(h,f,g,d);return m.$shared&&(m.$shared=l,a[o]=Object.freeze(Sp(m,l))),m}_resolveAnimations(t,n,r){const i=this.chart,a=this._cachedDataOpts,o=`animation-${n}`,s=a[o];if(s)return s;let l;if(i.options.animation!==!1){const c=this.chart.config,d=c.datasetAnimationScopeKeys(this._type,n),h=c.getOptionScopes(this.getDataset(),d);l=c.createResolver(h,this.getContext(t,r,n))}const u=new t3(i,l&&l.animations);return l&&l._cacheable&&(a[o]=Object.freeze(u)),u}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,n){return!n||wc(t)||this.chart._animationsDisabled}_getSharedOptions(t,n){const r=this.resolveDataElementOptions(t,n),i=this._sharedOptions,a=this.getSharedOptions(r),o=this.includeOptions(n,a)||a!==i;return this.updateSharedOptions(a,n,r),{sharedOptions:a,includeOptions:o}}updateElement(t,n,r,i){wc(i)?Object.assign(t,r):this._resolveAnimations(n,i).update(t,r)}updateSharedOptions(t,n,r){t&&!wc(n)&&this._resolveAnimations(void 0,n).update(t,r)}_setStyle(t,n,r,i){t.active=i;const a=this.getStyle(n,i);this._resolveAnimations(n,r,i).update(t,{options:!i&&this.getSharedOptions(a)||a})}removeHoverStyle(t,n,r){this._setStyle(t,r,"active",!1)}setHoverStyle(t,n,r){this._setStyle(t,r,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const n=this._data,r=this._cachedMeta.data;for(const[s,l,u]of this._syncList)this[s](l,u);this._syncList=[];const i=r.length,a=n.length,o=Math.min(a,i);o&&this.parse(0,o),a>i?this._insertElements(i,a-i,t):a<i&&this._removeElements(a,i-a)}_insertElements(t,n,r=!0){const i=this._cachedMeta,a=i.data,o=t+n;let s;const l=u=>{for(u.length+=n,s=u.length-1;s>=o;s--)u[s]=u[s-n]};for(l(a),s=t;s<o;++s)a[s]=new this.dataElementType;this._parsing&&l(i._parsed),this.parse(t,n),r&&this.updateElements(a,t,n,"reset")}updateElements(t,n,r,i){}_removeElements(t,n){const r=this._cachedMeta;if(this._parsing){const i=r._parsed.splice(t,n);r._stacked&&Sa(r,i)}r.data.splice(t,n)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[n,r,i]=t;this[n](r,i)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,n){n&&this._sync(["_removeElements",t,n]);const r=arguments.length-2;r&&this._sync(["_insertElements",t,r])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}ie(Qa,"defaults",{}),ie(Qa,"datasetElementType",null),ie(Qa,"dataElementType",null);function AT(e,t,n){let r=1,i=1,a=0,o=0;if(t<Ke){const s=e,l=s+t,u=Math.cos(s),c=Math.sin(s),d=Math.cos(l),h=Math.sin(l),f=(y,w,C)=>Ao(y,s,l,!0)?1:Math.max(w,w*n,C,C*n),g=(y,w,C)=>Ao(y,s,l,!0)?-1:Math.min(w,w*n,C,C*n),m=f(0,u,d),p=f(dt,c,h),b=g(Qe,u,d),v=g(Qe+dt,c,h);r=(m-b)/2,i=(p-v)/2,a=-(m+b)/2,o=-(p+v)/2}return{ratioX:r,ratioY:i,offsetX:a,offsetY:o}}class Ba extends Qa{constructor(t,n){super(t,n),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,n){const r=this.getDataset().data,i=this._cachedMeta;if(this._parsing===!1)i._parsed=r;else{let a=l=>+r[l];if(Re(r[t])){const{key:l="value"}=this._parsing;a=u=>+Ro(r[u],l)}let o,s;for(o=t,s=t+n;o<s;++o)i._parsed[o]=a(o)}}_getRotation(){return Nn(this.options.rotation-90)}_getCircumference(){return Nn(this.options.circumference)}_getRotationExtents(){let t=Ke,n=-Ke;for(let r=0;r<this.chart.data.datasets.length;++r)if(this.chart.isDatasetVisible(r)&&this.chart.getDatasetMeta(r).type===this._type){const i=this.chart.getDatasetMeta(r).controller,a=i._getRotation(),o=i._getCircumference();t=Math.min(t,a),n=Math.max(n,a+o)}return{rotation:t,circumference:n-t}}update(t){const n=this.chart,{chartArea:r}=n,i=this._cachedMeta,a=i.data,o=this.getMaxBorderWidth()+this.getMaxOffset(a)+this.options.spacing,s=Math.max((Math.min(r.width,r.height)-o)/2,0),l=Math.min(J7(this.options.cutout,s),1),u=this._getRingWeight(this.index),{circumference:c,rotation:d}=this._getRotationExtents(),{ratioX:h,ratioY:f,offsetX:g,offsetY:m}=AT(d,c,l),p=(r.width-o)/h,b=(r.height-o)/f,v=Math.max(Math.min(p,b)/2,0),y=O4(this.options.radius,v),w=Math.max(y*l,0),C=(y-w)/this._getVisibleDatasetWeightTotal();this.offsetX=g*y,this.offsetY=m*y,i.total=this.calculateTotal(),this.outerRadius=y-C*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-C*u,0),this.updateElements(a,0,a.length,t)}_circumference(t,n){const r=this.options,i=this._cachedMeta,a=this._getCircumference();return n&&r.animation.animateRotate||!this.chart.getDataVisibility(t)||i._parsed[t]===null||i.data[t].hidden?0:this.calculateCircumference(i._parsed[t]*a/Ke)}updateElements(t,n,r,i){const a=i==="reset",o=this.chart,s=o.chartArea,u=o.options.animation,c=(s.left+s.right)/2,d=(s.top+s.bottom)/2,h=a&&u.animateScale,f=h?0:this.innerRadius,g=h?0:this.outerRadius,{sharedOptions:m,includeOptions:p}=this._getSharedOptions(n,i);let b=this._getRotation(),v;for(v=0;v<n;++v)b+=this._circumference(v,a);for(v=n;v<n+r;++v){const y=this._circumference(v,a),w=t[v],C={x:c+this.offsetX,y:d+this.offsetY,startAngle:b,endAngle:b+y,circumference:y,outerRadius:g,innerRadius:f};p&&(C.options=m||this.resolveDataElementOptions(v,w.active?"active":i)),b+=y,this.updateElement(w,v,C,i)}}calculateTotal(){const t=this._cachedMeta,n=t.data;let r=0,i;for(i=0;i<n.length;i++){const a=t._parsed[i];a!==null&&!isNaN(a)&&this.chart.getDataVisibility(i)&&!n[i].hidden&&(r+=Math.abs(a))}return r}calculateCircumference(t){const n=this._cachedMeta.total;return n>0&&!isNaN(t)?Ke*(Math.abs(t)/n):0}getLabelAndValue(t){const n=this._cachedMeta,r=this.chart,i=r.data.labels||[],a=xu(n._parsed[t],r.options.locale);return{label:i[t]||"",value:a}}getMaxBorderWidth(t){let n=0;const r=this.chart;let i,a,o,s,l;if(!t){for(i=0,a=r.data.datasets.length;i<a;++i)if(r.isDatasetVisible(i)){o=r.getDatasetMeta(i),t=o.data,s=o.controller;break}}if(!t)return 0;for(i=0,a=t.length;i<a;++i)l=s.resolveDataElementOptions(i),l.borderAlign!=="inner"&&(n=Math.max(n,l.borderWidth||0,l.hoverBorderWidth||0));return n}getMaxOffset(t){let n=0;for(let r=0,i=t.length;r<i;++r){const a=this.resolveDataElementOptions(r);n=Math.max(n,a.offset||0,a.hoverOffset||0)}return n}_getRingWeightOffset(t){let n=0;for(let r=0;r<t;++r)this.chart.isDatasetVisible(r)&&(n+=this._getRingWeight(r));return n}_getRingWeight(t){return Math.max(Ce(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}ie(Ba,"id","doughnut"),ie(Ba,"defaults",{datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"}),ie(Ba,"descriptors",{_scriptable:t=>t!=="spacing",_indexable:t=>t!=="spacing"&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")}),ie(Ba,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const n=t.data;if(n.labels.length&&n.datasets.length){const{labels:{pointStyle:r,color:i}}=t.legend.options;return n.labels.map((a,o)=>{const l=t.getDatasetMeta(0).controller.getStyle(o);return{text:a,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:i,lineWidth:l.borderWidth,pointStyle:r,hidden:!t.getDataVisibility(o),index:o}})}return[]}},onClick(t,n,r){r.chart.toggleDataVisibility(n.index),r.chart.update()}}}});function Xr(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class ph{constructor(t){ie(this,"options");this.options=t||{}}static override(t){Object.assign(ph.prototype,t)}init(){}formats(){return Xr()}parse(){return Xr()}format(){return Xr()}add(){return Xr()}diff(){return Xr()}startOf(){return Xr()}endOf(){return Xr()}}var FT={_date:ph};function PT(e,t,n,r){const{controller:i,data:a,_sorted:o}=e,s=i._cachedMeta.iScale;if(s&&t===s.axis&&t!=="r"&&o&&a.length){const l=s._reversePixels?lP:Ed;if(r){if(i._sharedOptions){const u=a[0],c=typeof u.getRange=="function"&&u.getRange(t);if(c){const d=l(a,t,n-c),h=l(a,t,n+c);return{lo:d.lo,hi:h.hi}}}}else return l(a,t,n)}return{lo:0,hi:a.length-1}}function Jo(e,t,n,r,i){const a=e.getSortedVisibleDatasetMetas(),o=n[t];for(let s=0,l=a.length;s<l;++s){const{index:u,data:c}=a[s],{lo:d,hi:h}=PT(a[s],t,o,i);for(let f=d;f<=h;++f){const g=c[f];g.skip||r(g,u,f)}}}function TT(e){const t=e.indexOf("x")!==-1,n=e.indexOf("y")!==-1;return function(r,i){const a=t?Math.abs(r.x-i.x):0,o=n?Math.abs(r.y-i.y):0;return Math.sqrt(Math.pow(a,2)+Math.pow(o,2))}}function Dc(e,t,n,r,i){const a=[];return!i&&!e.isPointInArea(t)||Jo(e,n,t,function(s,l,u){!i&&!sr(s,e.chartArea,0)||s.inRange(t.x,t.y,r)&&a.push({element:s,datasetIndex:l,index:u})},!0),a}function kT(e,t,n,r){let i=[];function a(o,s,l){const{startAngle:u,endAngle:c}=o.getProps(["startAngle","endAngle"],r),{angle:d}=j4(o,{x:t.x,y:t.y});Ao(d,u,c)&&i.push({element:o,datasetIndex:s,index:l})}return Jo(e,n,t,a),i}function MT(e,t,n,r,i,a){let o=[];const s=TT(n);let l=Number.POSITIVE_INFINITY;function u(c,d,h){const f=c.inRange(t.x,t.y,i);if(r&&!f)return;const g=c.getCenterPoint(i);if(!(!!a||e.isPointInArea(g))&&!f)return;const p=s(t,g);p<l?(o=[{element:c,datasetIndex:d,index:h}],l=p):p===l&&o.push({element:c,datasetIndex:d,index:h})}return Jo(e,n,t,u),o}function Sc(e,t,n,r,i,a){return!a&&!e.isPointInArea(t)?[]:n==="r"&&!r?kT(e,t,n,i):MT(e,t,n,r,i,a)}function Ep(e,t,n,r,i){const a=[],o=n==="x"?"inXRange":"inYRange";let s=!1;return Jo(e,n,t,(l,u,c)=>{l[o](t[n],i)&&(a.push({element:l,datasetIndex:u,index:c}),s=s||l.inRange(t.x,t.y,i))}),r&&!s?[]:a}var BT={evaluateInteractionItems:Jo,modes:{index(e,t,n,r){const i=Qr(t,e),a=n.axis||"x",o=n.includeInvisible||!1,s=n.intersect?Dc(e,i,a,r,o):Sc(e,i,a,!1,r,o),l=[];return s.length?(e.getSortedVisibleDatasetMetas().forEach(u=>{const c=s[0].index,d=u.data[c];d&&!d.skip&&l.push({element:d,datasetIndex:u.index,index:c})}),l):[]},dataset(e,t,n,r){const i=Qr(t,e),a=n.axis||"xy",o=n.includeInvisible||!1;let s=n.intersect?Dc(e,i,a,r,o):Sc(e,i,a,!1,r,o);if(s.length>0){const l=s[0].datasetIndex,u=e.getDatasetMeta(l).data;s=[];for(let c=0;c<u.length;++c)s.push({element:u[c],datasetIndex:l,index:c})}return s},point(e,t,n,r){const i=Qr(t,e),a=n.axis||"xy",o=n.includeInvisible||!1;return Dc(e,i,a,r,o)},nearest(e,t,n,r){const i=Qr(t,e),a=n.axis||"xy",o=n.includeInvisible||!1;return Sc(e,i,a,n.intersect,r,o)},x(e,t,n,r){const i=Qr(t,e);return Ep(e,i,"x",n.intersect,r)},y(e,t,n,r){const i=Qr(t,e);return Ep(e,i,"y",n.intersect,r)}}};const r3=["left","top","right","bottom"];function Ea(e,t){return e.filter(n=>n.pos===t)}function Ip(e,t){return e.filter(n=>r3.indexOf(n.pos)===-1&&n.box.axis===t)}function Ia(e,t){return e.sort((n,r)=>{const i=t?r:n,a=t?n:r;return i.weight===a.weight?i.index-a.index:i.weight-a.weight})}function VT(e){const t=[];let n,r,i,a,o,s;for(n=0,r=(e||[]).length;n<r;++n)i=e[n],{position:a,options:{stack:o,stackWeight:s=1}}=i,t.push({index:n,box:i,pos:a,horizontal:i.isHorizontal(),weight:i.weight,stack:o&&a+o,stackWeight:s});return t}function OT(e){const t={};for(const n of e){const{stack:r,pos:i,stackWeight:a}=n;if(!r||!r3.includes(i))continue;const o=t[r]||(t[r]={count:0,placed:0,weight:0,size:0});o.count++,o.weight+=a}return t}function NT(e,t){const n=OT(e),{vBoxMaxWidth:r,hBoxMaxHeight:i}=t;let a,o,s;for(a=0,o=e.length;a<o;++a){s=e[a];const{fullSize:l}=s.box,u=n[s.stack],c=u&&s.stackWeight/u.weight;s.horizontal?(s.width=c?c*r:l&&t.availableWidth,s.height=i):(s.width=r,s.height=c?c*i:l&&t.availableHeight)}return n}function LT(e){const t=VT(e),n=Ia(t.filter(u=>u.box.fullSize),!0),r=Ia(Ea(t,"left"),!0),i=Ia(Ea(t,"right")),a=Ia(Ea(t,"top"),!0),o=Ia(Ea(t,"bottom")),s=Ip(t,"x"),l=Ip(t,"y");return{fullSize:n,leftAndTop:r.concat(a),rightAndBottom:i.concat(l).concat(o).concat(s),chartArea:Ea(t,"chartArea"),vertical:r.concat(i).concat(l),horizontal:a.concat(o).concat(s)}}function _p(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function i3(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function jT(e,t,n,r){const{pos:i,box:a}=n,o=e.maxPadding;if(!Re(i)){n.size&&(e[i]-=n.size);const d=r[n.stack]||{size:0,count:1};d.size=Math.max(d.size,n.horizontal?a.height:a.width),n.size=d.size/d.count,e[i]+=n.size}a.getPadding&&i3(o,a.getPadding());const s=Math.max(0,t.outerWidth-_p(o,e,"left","right")),l=Math.max(0,t.outerHeight-_p(o,e,"top","bottom")),u=s!==e.w,c=l!==e.h;return e.w=s,e.h=l,n.horizontal?{same:u,other:c}:{same:c,other:u}}function HT(e){const t=e.maxPadding;function n(r){const i=Math.max(t[r]-e[r],0);return e[r]+=i,i}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}function WT(e,t){const n=t.maxPadding;function r(i){const a={left:0,top:0,right:0,bottom:0};return i.forEach(o=>{a[o]=Math.max(t[o],n[o])}),a}return r(e?["left","right"]:["top","bottom"])}function Va(e,t,n,r){const i=[];let a,o,s,l,u,c;for(a=0,o=e.length,u=0;a<o;++a){s=e[a],l=s.box,l.update(s.width||t.w,s.height||t.h,WT(s.horizontal,t));const{same:d,other:h}=jT(t,n,s,r);u|=d&&i.length,c=c||h,l.fullSize||i.push(s)}return u&&Va(i,t,n,r)||c}function _s(e,t,n,r,i){e.top=n,e.left=t,e.right=t+r,e.bottom=n+i,e.width=r,e.height=i}function $p(e,t,n,r){const i=n.padding;let{x:a,y:o}=t;for(const s of e){const l=s.box,u=r[s.stack]||{count:1,placed:0,weight:1},c=s.stackWeight/u.weight||1;if(s.horizontal){const d=t.w*c,h=u.size||l.height;Nl(u.start)&&(o=u.start),l.fullSize?_s(l,i.left,o,n.outerWidth-i.right-i.left,h):_s(l,t.left+u.placed,o,d,h),u.start=o,u.placed+=d,o=l.bottom}else{const d=t.h*c,h=u.size||l.width;Nl(u.start)&&(a=u.start),l.fullSize?_s(l,a,i.top,h,n.outerHeight-i.bottom-i.top):_s(l,a,t.top+u.placed,h,d),u.start=a,u.placed+=d,a=l.right}}t.x=a,t.y=o}var pn={addBox(e,t){e.boxes||(e.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(n){t.draw(n)}}]},e.boxes.push(t)},removeBox(e,t){const n=e.boxes?e.boxes.indexOf(t):-1;n!==-1&&e.boxes.splice(n,1)},configure(e,t,n){t.fullSize=n.fullSize,t.position=n.position,t.weight=n.weight},update(e,t,n,r){if(!e)return;const i=Ft(e.options.layout.padding),a=Math.max(t-i.width,0),o=Math.max(n-i.height,0),s=LT(e.boxes),l=s.vertical,u=s.horizontal;He(e.boxes,m=>{typeof m.beforeLayout=="function"&&m.beforeLayout()});const c=l.reduce((m,p)=>p.box.options&&p.box.options.display===!1?m:m+1,0)||1,d=Object.freeze({outerWidth:t,outerHeight:n,padding:i,availableWidth:a,availableHeight:o,vBoxMaxWidth:a/2/c,hBoxMaxHeight:o/2}),h=Object.assign({},i);i3(h,Ft(r));const f=Object.assign({maxPadding:h,w:a,h:o,x:i.left,y:i.top},i),g=NT(l.concat(u),d);Va(s.fullSize,f,d,g),Va(l,f,d,g),Va(u,f,d,g)&&Va(l,f,d,g),HT(f),$p(s.leftAndTop,f,d,g),f.x+=f.w,f.y+=f.h,$p(s.rightAndBottom,f,d,g),e.chartArea={left:f.left,top:f.top,right:f.left+f.w,bottom:f.top+f.h,height:f.h,width:f.w},He(s.chartArea,m=>{const p=m.box;Object.assign(p,e.chartArea),p.update(f.w,f.h,{left:0,top:0,right:0,bottom:0})})}};class a3{acquireContext(t,n){}releaseContext(t){return!1}addEventListener(t,n,r){}removeEventListener(t,n,r){}getDevicePixelRatio(){return 1}getMaximumSize(t,n,r,i){return n=Math.max(0,n||t.width),r=r||t.height,{width:n,height:Math.max(0,i?Math.floor(n/i):r)}}isAttached(t){return!0}updateConfig(t){}}class zT extends a3{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const Ks="$chartjs",GT={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Rp=e=>e===null||e==="";function ZT(e,t){const n=e.style,r=e.getAttribute("height"),i=e.getAttribute("width");if(e[Ks]={initial:{height:r,width:i,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",Rp(i)){const a=gp(e,"width");a!==void 0&&(e.width=a)}if(Rp(r))if(e.style.height==="")e.height=e.width/(t||2);else{const a=gp(e,"height");a!==void 0&&(e.height=a)}return e}const o3=rT?{passive:!0}:!1;function XT(e,t,n){e&&e.addEventListener(t,n,o3)}function YT(e,t,n){e&&e.canvas&&e.canvas.removeEventListener(t,n,o3)}function UT(e,t){const n=GT[e.type]||e.type,{x:r,y:i}=Qr(e,t);return{type:n,chart:t,native:e,x:r!==void 0?r:null,y:i!==void 0?i:null}}function Gl(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function JT(e,t,n){const r=e.canvas,i=new MutationObserver(a=>{let o=!1;for(const s of a)o=o||Gl(s.addedNodes,r),o=o&&!Gl(s.removedNodes,r);o&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}function KT(e,t,n){const r=e.canvas,i=new MutationObserver(a=>{let o=!1;for(const s of a)o=o||Gl(s.removedNodes,r),o=o&&!Gl(s.addedNodes,r);o&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}const Fo=new Map;let Ap=0;function s3(){const e=window.devicePixelRatio;e!==Ap&&(Ap=e,Fo.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function QT(e,t){Fo.size||window.addEventListener("resize",s3),Fo.set(e,t)}function qT(e){Fo.delete(e),Fo.size||window.removeEventListener("resize",s3)}function ek(e,t,n){const r=e.canvas,i=r&&mh(r);if(!i)return;const a=z4((s,l)=>{const u=i.clientWidth;n(s,l),u<i.clientWidth&&n()},window),o=new ResizeObserver(s=>{const l=s[0],u=l.contentRect.width,c=l.contentRect.height;u===0&&c===0||a(u,c)});return o.observe(i),QT(e,a),o}function Ec(e,t,n){n&&n.disconnect(),t==="resize"&&qT(e)}function tk(e,t,n){const r=e.canvas,i=z4(a=>{e.ctx!==null&&n(UT(a,e))},e);return XT(r,t,i),i}class nk extends a3{acquireContext(t,n){const r=t&&t.getContext&&t.getContext("2d");return r&&r.canvas===t?(ZT(t,n),r):null}releaseContext(t){const n=t.canvas;if(!n[Ks])return!1;const r=n[Ks].initial;["height","width"].forEach(a=>{const o=r[a];Je(o)?n.removeAttribute(a):n.setAttribute(a,o)});const i=r.style||{};return Object.keys(i).forEach(a=>{n.style[a]=i[a]}),n.width=n.width,delete n[Ks],!0}addEventListener(t,n,r){this.removeEventListener(t,n);const i=t.$proxies||(t.$proxies={}),o={attach:JT,detach:KT,resize:ek}[n]||tk;i[n]=o(t,n,r)}removeEventListener(t,n){const r=t.$proxies||(t.$proxies={}),i=r[n];if(!i)return;({attach:Ec,detach:Ec,resize:Ec}[n]||YT)(t,n,i),r[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,n,r,i){return nT(t,n,r,i)}isAttached(t){const n=t&&mh(t);return!!(n&&n.isConnected)}}function rk(e){return!gh()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?zT:nk}var Bs;let Lr=(Bs=class{constructor(){ie(this,"x");ie(this,"y");ie(this,"active",!1);ie(this,"options");ie(this,"$animations")}tooltipPosition(t){const{x:n,y:r}=this.getProps(["x","y"],t);return{x:n,y:r}}hasValue(){return jl(this.x)&&jl(this.y)}getProps(t,n){const r=this.$animations;if(!n||!r)return this;const i={};return t.forEach(a=>{i[a]=r[a]&&r[a].active()?r[a]._to:this[a]}),i}},ie(Bs,"defaults",{}),ie(Bs,"defaultRoutes"),Bs);function ik(e,t){const n=e.options.ticks,r=ak(e),i=Math.min(n.maxTicksLimit||r,r),a=n.major.enabled?sk(t):[],o=a.length,s=a[0],l=a[o-1],u=[];if(o>i)return lk(t,u,a,o/i),u;const c=ok(a,t,i);if(o>0){let d,h;const f=o>1?Math.round((l-s)/(o-1)):null;for($s(t,u,c,Je(f)?0:s-f,s),d=0,h=o-1;d<h;d++)$s(t,u,c,a[d],a[d+1]);return $s(t,u,c,l,Je(f)?t.length:l+f),u}return $s(t,u,c),u}function ak(e){const t=e.options.offset,n=e._tickSize(),r=e._length/n+(t?0:1),i=e._maxLength/n;return Math.floor(Math.min(r,i))}function ok(e,t,n){const r=uk(e),i=t.length/n;if(!r)return Math.max(i,1);const a=iP(r);for(let o=0,s=a.length-1;o<s;o++){const l=a[o];if(l>i)return l}return Math.max(i,1)}function sk(e){const t=[];let n,r;for(n=0,r=e.length;n<r;n++)e[n].major&&t.push(n);return t}function lk(e,t,n,r){let i=0,a=n[0],o;for(r=Math.ceil(r),o=0;o<e.length;o++)o===a&&(t.push(e[o]),i++,a=n[i*r])}function $s(e,t,n,r,i){const a=Ce(r,0),o=Math.min(Ce(i,e.length),e.length);let s=0,l,u,c;for(n=Math.ceil(n),i&&(l=i-r,n=l/Math.floor(l/n)),c=a;c<0;)s++,c=Math.round(a+s*n);for(u=Math.max(a,0);u<o;u++)u===c&&(t.push(e[u]),s++,c=Math.round(a+s*n))}function uk(e){const t=e.length;let n,r;if(t<2)return!1;for(r=e[0],n=1;n<t;++n)if(e[n]-e[n-1]!==r)return!1;return r}const ck=e=>e==="left"?"right":e==="right"?"left":e,Fp=(e,t,n)=>t==="top"||t==="left"?e[t]+n:e[t]-n,Pp=(e,t)=>Math.min(t||e,e);function Tp(e,t){const n=[],r=e.length/t,i=e.length;let a=0;for(;a<i;a+=r)n.push(e[Math.floor(a)]);return n}function dk(e,t,n){const r=e.ticks.length,i=Math.min(t,r-1),a=e._startPixel,o=e._endPixel,s=1e-6;let l=e.getPixelForTick(i),u;if(!(n&&(r===1?u=Math.max(l-a,o-l):t===0?u=(e.getPixelForTick(1)-l)/2:u=(l-e.getPixelForTick(i-1))/2,l+=i<t?u:-u,l<a-s||l>o+s)))return l}function fk(e,t){He(e,n=>{const r=n.gc,i=r.length/2;let a;if(i>t){for(a=0;a<i;++a)delete n.data[r[a]];r.splice(0,i)}})}function _a(e){return e.drawTicks?e.tickLength:0}function kp(e,t){if(!e.display)return 0;const n=pt(e.font,t),r=Ft(e.padding);return(at(e.text)?e.text.length:1)*n.lineHeight+r.height}function hk(e,t){return Nr(e,{scale:t,type:"scale"})}function gk(e,t,n){return Nr(e,{tick:n,index:t,type:"tick"})}function mk(e,t,n){let r=oh(e);return(n&&t!=="right"||!n&&t==="right")&&(r=ck(r)),r}function pk(e,t,n,r){const{top:i,left:a,bottom:o,right:s,chart:l}=e,{chartArea:u,scales:c}=l;let d=0,h,f,g;const m=o-i,p=s-a;if(e.isHorizontal()){if(f=_t(r,a,s),Re(n)){const b=Object.keys(n)[0],v=n[b];g=c[b].getPixelForValue(v)+m-t}else n==="center"?g=(u.bottom+u.top)/2+m-t:g=Fp(e,n,t);h=s-a}else{if(Re(n)){const b=Object.keys(n)[0],v=n[b];f=c[b].getPixelForValue(v)-p+t}else n==="center"?f=(u.left+u.right)/2-p+t:f=Fp(e,n,t);g=_t(r,o,i),d=n==="left"?-dt:dt}return{titleX:f,titleY:g,maxWidth:h,rotation:d}}class Ii extends Lr{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,n){return t}getUserBounds(){let{_userMin:t,_userMax:n,_suggestedMin:r,_suggestedMax:i}=this;return t=Kt(t,Number.POSITIVE_INFINITY),n=Kt(n,Number.NEGATIVE_INFINITY),r=Kt(r,Number.POSITIVE_INFINITY),i=Kt(i,Number.NEGATIVE_INFINITY),{min:Kt(t,r),max:Kt(n,i),minDefined:xt(t),maxDefined:xt(n)}}getMinMax(t){let{min:n,max:r,minDefined:i,maxDefined:a}=this.getUserBounds(),o;if(i&&a)return{min:n,max:r};const s=this.getMatchingVisibleMetas();for(let l=0,u=s.length;l<u;++l)o=s[l].controller.getMinMax(this,t),i||(n=Math.min(n,o.min)),a||(r=Math.max(r,o.max));return n=a&&n>r?r:n,r=i&&n>r?n:r,{min:Kt(n,Kt(r,n)),max:Kt(r,Kt(n,r))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Ze(this.options.beforeUpdate,[this])}update(t,n,r){const{beginAtZero:i,grace:a,ticks:o}=this.options,s=o.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=n,this._margins=r=Object.assign({left:0,right:0,top:0,bottom:0},r),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+r.left+r.right:this.height+r.top+r.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=kP(this,a,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=s<this.ticks.length;this._convertTicksToLabels(l?Tp(this.ticks,s):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),o.display&&(o.autoSkip||o.source==="auto")&&(this.ticks=ik(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),l&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t=this.options.reverse,n,r;this.isHorizontal()?(n=this.left,r=this.right):(n=this.top,r=this.bottom,t=!t),this._startPixel=n,this._endPixel=r,this._reversePixels=t,this._length=r-n,this._alignToPixels=this.options.alignToPixels}afterUpdate(){Ze(this.options.afterUpdate,[this])}beforeSetDimensions(){Ze(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){Ze(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),Ze(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){Ze(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const n=this.options.ticks;let r,i,a;for(r=0,i=t.length;r<i;r++)a=t[r],a.label=Ze(n.callback,[a.value,r,t],this)}afterTickToLabelConversion(){Ze(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){Ze(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,n=t.ticks,r=Pp(this.ticks.length,t.ticks.maxTicksLimit),i=n.minRotation||0,a=n.maxRotation;let o=i,s,l,u;if(!this._isVisible()||!n.display||i>=a||r<=1||!this.isHorizontal()){this.labelRotation=i;return}const c=this._getLabelSizes(),d=c.widest.width,h=c.highest.height,f=en(this.chart.width-d,0,this.maxWidth);s=t.offset?this.maxWidth/r:f/(r-1),d+6>s&&(s=f/(r-(t.offset?.5:1)),l=this.maxHeight-_a(t.grid)-n.padding-kp(t.title,this.chart.options.font),u=Math.sqrt(d*d+h*h),o=ih(Math.min(Math.asin(en((c.highest.height+6)/s,-1,1)),Math.asin(en(l/u,-1,1))-Math.asin(en(h/u,-1,1)))),o=Math.max(i,Math.min(a,o))),this.labelRotation=o}afterCalculateLabelRotation(){Ze(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Ze(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:n,options:{ticks:r,title:i,grid:a}}=this,o=this._isVisible(),s=this.isHorizontal();if(o){const l=kp(i,n.options.font);if(s?(t.width=this.maxWidth,t.height=_a(a)+l):(t.height=this.maxHeight,t.width=_a(a)+l),r.display&&this.ticks.length){const{first:u,last:c,widest:d,highest:h}=this._getLabelSizes(),f=r.padding*2,g=Nn(this.labelRotation),m=Math.cos(g),p=Math.sin(g);if(s){const b=r.mirror?0:p*d.width+m*h.height;t.height=Math.min(this.maxHeight,t.height+b+f)}else{const b=r.mirror?0:m*d.width+p*h.height;t.width=Math.min(this.maxWidth,t.width+b+f)}this._calculatePadding(u,c,p,m)}}this._handleMargins(),s?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,n,r,i){const{ticks:{align:a,padding:o},position:s}=this.options,l=this.labelRotation!==0,u=s!=="top"&&this.axis==="x";if(this.isHorizontal()){const c=this.getPixelForTick(0)-this.left,d=this.right-this.getPixelForTick(this.ticks.length-1);let h=0,f=0;l?u?(h=i*t.width,f=r*n.height):(h=r*t.height,f=i*n.width):a==="start"?f=n.width:a==="end"?h=t.width:a!=="inner"&&(h=t.width/2,f=n.width/2),this.paddingLeft=Math.max((h-c+o)*this.width/(this.width-c),0),this.paddingRight=Math.max((f-d+o)*this.width/(this.width-d),0)}else{let c=n.height/2,d=t.height/2;a==="start"?(c=0,d=t.height):a==="end"&&(c=n.height,d=0),this.paddingTop=c+o,this.paddingBottom=d+o}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){Ze(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:n}=this.options;return n==="top"||n==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let n,r;for(n=0,r=t.length;n<r;n++)Je(t[n].label)&&(t.splice(n,1),r--,n--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const n=this.options.ticks.sampleSize;let r=this.ticks;n<r.length&&(r=Tp(r,n)),this._labelSizes=t=this._computeLabelSizes(r,r.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,n,r){const{ctx:i,_longestTextCache:a}=this,o=[],s=[],l=Math.floor(n/Pp(n,r));let u=0,c=0,d,h,f,g,m,p,b,v,y,w,C;for(d=0;d<n;d+=l){if(g=t[d].label,m=this._resolveTickFontOptions(d),i.font=p=m.string,b=a[p]=a[p]||{data:{},gc:[]},v=m.lineHeight,y=w=0,!Je(g)&&!at(g))y=Hl(i,b.data,b.gc,y,g),w=v;else if(at(g))for(h=0,f=g.length;h<f;++h)C=g[h],!Je(C)&&!at(C)&&(y=Hl(i,b.data,b.gc,y,C),w+=v);o.push(y),s.push(w),u=Math.max(y,u),c=Math.max(w,c)}fk(a,n);const E=o.indexOf(u),I=s.indexOf(c),D=_=>({width:o[_]||0,height:s[_]||0});return{first:D(0),last:D(n-1),widest:D(E),highest:D(I),widths:o,heights:s}}getLabelForValue(t){return t}getPixelForValue(t,n){return NaN}getValueForPixel(t){}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const n=this._startPixel+t*this._length;return sP(this._alignToPixels?Zr(this.chart,n,0):n)}getDecimalForPixel(t){const n=(t-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:n}=this;return t<0&&n<0?n:t>0&&n>0?t:0}getContext(t){const n=this.ticks||[];if(t>=0&&t<n.length){const r=n[t];return r.$context||(r.$context=gk(this.getContext(),t,r))}return this.$context||(this.$context=hk(this.chart.getContext(),this))}_tickSize(){const t=this.options.ticks,n=Nn(this.labelRotation),r=Math.abs(Math.cos(n)),i=Math.abs(Math.sin(n)),a=this._getLabelSizes(),o=t.autoSkipPadding||0,s=a?a.widest.width+o:0,l=a?a.highest.height+o:0;return this.isHorizontal()?l*r>s*i?s/r:l/i:l*i<s*r?l/r:s/i}_isVisible(){const t=this.options.display;return t!=="auto"?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const n=this.axis,r=this.chart,i=this.options,{grid:a,position:o,border:s}=i,l=a.offset,u=this.isHorizontal(),d=this.ticks.length+(l?1:0),h=_a(a),f=[],g=s.setContext(this.getContext()),m=g.display?g.width:0,p=m/2,b=function(T){return Zr(r,T,m)};let v,y,w,C,E,I,D,_,F,$,P,k;if(o==="top")v=b(this.bottom),I=this.bottom-h,_=v-p,$=b(t.top)+p,k=t.bottom;else if(o==="bottom")v=b(this.top),$=t.top,k=b(t.bottom)-p,I=v+p,_=this.top+h;else if(o==="left")v=b(this.right),E=this.right-h,D=v-p,F=b(t.left)+p,P=t.right;else if(o==="right")v=b(this.left),F=t.left,P=b(t.right)-p,E=v+p,D=this.left+h;else if(n==="x"){if(o==="center")v=b((t.top+t.bottom)/2+.5);else if(Re(o)){const T=Object.keys(o)[0],R=o[T];v=b(this.chart.scales[T].getPixelForValue(R))}$=t.top,k=t.bottom,I=v+p,_=I+h}else if(n==="y"){if(o==="center")v=b((t.left+t.right)/2);else if(Re(o)){const T=Object.keys(o)[0],R=o[T];v=b(this.chart.scales[T].getPixelForValue(R))}E=v-p,D=E-h,F=t.left,P=t.right}const A=Ce(i.ticks.maxTicksLimit,d),B=Math.max(1,Math.ceil(d/A));for(y=0;y<d;y+=B){const T=this.getContext(y),R=a.setContext(T),O=s.setContext(T),H=R.lineWidth,L=R.color,Z=O.dash||[],V=O.dashOffset,W=R.tickWidth,q=R.tickColor,Y=R.tickBorderDash||[],N=R.tickBorderDashOffset;w=dk(this,y,l),w!==void 0&&(C=Zr(r,w,H),u?E=D=F=P=C:I=_=$=k=C,f.push({tx1:E,ty1:I,tx2:D,ty2:_,x1:F,y1:$,x2:P,y2:k,width:H,color:L,borderDash:Z,borderDashOffset:V,tickWidth:W,tickColor:q,tickBorderDash:Y,tickBorderDashOffset:N}))}return this._ticksLength=d,this._borderValue=v,f}_computeLabelItems(t){const n=this.axis,r=this.options,{position:i,ticks:a}=r,o=this.isHorizontal(),s=this.ticks,{align:l,crossAlign:u,padding:c,mirror:d}=a,h=_a(r.grid),f=h+c,g=d?-c:f,m=-Nn(this.labelRotation),p=[];let b,v,y,w,C,E,I,D,_,F,$,P,k="middle";if(i==="top")E=this.bottom-g,I=this._getXAxisLabelAlignment();else if(i==="bottom")E=this.top+g,I=this._getXAxisLabelAlignment();else if(i==="left"){const B=this._getYAxisLabelAlignment(h);I=B.textAlign,C=B.x}else if(i==="right"){const B=this._getYAxisLabelAlignment(h);I=B.textAlign,C=B.x}else if(n==="x"){if(i==="center")E=(t.top+t.bottom)/2+f;else if(Re(i)){const B=Object.keys(i)[0],T=i[B];E=this.chart.scales[B].getPixelForValue(T)+f}I=this._getXAxisLabelAlignment()}else if(n==="y"){if(i==="center")C=(t.left+t.right)/2-f;else if(Re(i)){const B=Object.keys(i)[0],T=i[B];C=this.chart.scales[B].getPixelForValue(T)}I=this._getYAxisLabelAlignment(h).textAlign}n==="y"&&(l==="start"?k="top":l==="end"&&(k="bottom"));const A=this._getLabelSizes();for(b=0,v=s.length;b<v;++b){y=s[b],w=y.label;const B=a.setContext(this.getContext(b));D=this.getPixelForTick(b)+a.labelOffset,_=this._resolveTickFontOptions(b),F=_.lineHeight,$=at(w)?w.length:1;const T=$/2,R=B.color,O=B.textStrokeColor,H=B.textStrokeWidth;let L=I;o?(C=D,I==="inner"&&(b===v-1?L=this.options.reverse?"left":"right":b===0?L=this.options.reverse?"right":"left":L="center"),i==="top"?u==="near"||m!==0?P=-$*F+F/2:u==="center"?P=-A.highest.height/2-T*F+F:P=-A.highest.height+F/2:u==="near"||m!==0?P=F/2:u==="center"?P=A.highest.height/2-T*F:P=A.highest.height-$*F,d&&(P*=-1),m!==0&&!B.showLabelBackdrop&&(C+=F/2*Math.sin(m))):(E=D,P=(1-$)*F/2);let Z;if(B.showLabelBackdrop){const V=Ft(B.backdropPadding),W=A.heights[b],q=A.widths[b];let Y=P-V.top,N=0-V.left;switch(k){case"middle":Y-=W/2;break;case"bottom":Y-=W;break}switch(I){case"center":N-=q/2;break;case"right":N-=q;break;case"inner":b===v-1?N-=q:b>0&&(N-=q/2);break}Z={left:N,top:Y,width:q+V.width,height:W+V.height,color:B.backdropColor}}p.push({label:w,font:_,textOffset:P,options:{rotation:m,color:R,strokeColor:O,strokeWidth:H,textAlign:L,textBaseline:k,translation:[C,E],backdrop:Z}})}return p}_getXAxisLabelAlignment(){const{position:t,ticks:n}=this.options;if(-Nn(this.labelRotation))return t==="top"?"left":"right";let i="center";return n.align==="start"?i="left":n.align==="end"?i="right":n.align==="inner"&&(i="inner"),i}_getYAxisLabelAlignment(t){const{position:n,ticks:{crossAlign:r,mirror:i,padding:a}}=this.options,o=this._getLabelSizes(),s=t+a,l=o.widest.width;let u,c;return n==="left"?i?(c=this.right+a,r==="near"?u="left":r==="center"?(u="center",c+=l/2):(u="right",c+=l)):(c=this.right-s,r==="near"?u="right":r==="center"?(u="center",c-=l/2):(u="left",c=this.left)):n==="right"?i?(c=this.left+a,r==="near"?u="right":r==="center"?(u="center",c-=l/2):(u="left",c-=l)):(c=this.left+s,r==="near"?u="left":r==="center"?(u="center",c+=l/2):(u="right",c=this.right)):u="right",{textAlign:u,x:c}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:t.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:t.width}}drawBackground(){const{ctx:t,options:{backgroundColor:n},left:r,top:i,width:a,height:o}=this;n&&(t.save(),t.fillStyle=n,t.fillRect(r,i,a,o),t.restore())}getLineWidthForValue(t){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const i=this.ticks.findIndex(a=>a.value===t);return i>=0?n.setContext(this.getContext(i)).lineWidth:0}drawGrid(t){const n=this.options.grid,r=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let a,o;const s=(l,u,c)=>{!c.width||!c.color||(r.save(),r.lineWidth=c.width,r.strokeStyle=c.color,r.setLineDash(c.borderDash||[]),r.lineDashOffset=c.borderDashOffset,r.beginPath(),r.moveTo(l.x,l.y),r.lineTo(u.x,u.y),r.stroke(),r.restore())};if(n.display)for(a=0,o=i.length;a<o;++a){const l=i[a];n.drawOnChartArea&&s({x:l.x1,y:l.y1},{x:l.x2,y:l.y2},l),n.drawTicks&&s({x:l.tx1,y:l.ty1},{x:l.tx2,y:l.ty2},{color:l.tickColor,width:l.tickWidth,borderDash:l.tickBorderDash,borderDashOffset:l.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:n,options:{border:r,grid:i}}=this,a=r.setContext(this.getContext()),o=r.display?a.width:0;if(!o)return;const s=i.setContext(this.getContext(0)).lineWidth,l=this._borderValue;let u,c,d,h;this.isHorizontal()?(u=Zr(t,this.left,o)-o/2,c=Zr(t,this.right,s)+s/2,d=h=l):(d=Zr(t,this.top,o)-o/2,h=Zr(t,this.bottom,s)+s/2,u=c=l),n.save(),n.lineWidth=a.width,n.strokeStyle=a.color,n.beginPath(),n.moveTo(u,d),n.lineTo(c,h),n.stroke(),n.restore()}drawLabels(t){if(!this.options.ticks.display)return;const r=this.ctx,i=this._computeLabelArea();i&&lh(r,i);const a=this.getLabelItems(t);for(const o of a){const s=o.options,l=o.font,u=o.label,c=o.textOffset;xi(r,u,0,c,l,s)}i&&uh(r)}drawTitle(){const{ctx:t,options:{position:n,title:r,reverse:i}}=this;if(!r.display)return;const a=pt(r.font),o=Ft(r.padding),s=r.align;let l=a.lineHeight/2;n==="bottom"||n==="center"||Re(n)?(l+=o.bottom,at(r.text)&&(l+=a.lineHeight*(r.text.length-1))):l+=o.top;const{titleX:u,titleY:c,maxWidth:d,rotation:h}=pk(this,l,n,s);xi(t,r.text,0,0,a,{color:r.color,maxWidth:d,rotation:h,textAlign:mk(s,n,i),textBaseline:"middle",translation:[u,c]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,n=t.ticks&&t.ticks.z||0,r=Ce(t.grid&&t.grid.z,-1),i=Ce(t.border&&t.border.z,0);return!this._isVisible()||this.draw!==Ii.prototype.draw?[{z:n,draw:a=>{this.draw(a)}}]:[{z:r,draw:a=>{this.drawBackground(),this.drawGrid(a),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:n,draw:a=>{this.drawLabels(a)}}]}getMatchingVisibleMetas(t){const n=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",i=[];let a,o;for(a=0,o=n.length;a<o;++a){const s=n[a];s[r]===this.id&&(!t||s.type===t)&&i.push(s)}return i}_resolveTickFontOptions(t){const n=this.options.ticks.setContext(this.getContext(t));return pt(n.font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class Rs{constructor(t,n,r){this.type=t,this.scope=n,this.override=r,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const n=Object.getPrototypeOf(t);let r;yk(n)&&(r=this.register(n));const i=this.items,a=t.id,o=this.scope+"."+a;if(!a)throw new Error("class does not have id: "+t);return a in i||(i[a]=t,bk(t,o,r),this.override&&ot.override(t.id,t.overrides)),o}get(t){return this.items[t]}unregister(t){const n=this.items,r=t.id,i=this.scope;r in n&&delete n[r],i&&r in ot[i]&&(delete ot[i][r],this.override&&delete yi[r])}}function bk(e,t,n){const r=$o(Object.create(null),[n?ot.get(n):{},ot.get(t),e.defaults]);ot.set(t,r),e.defaultRoutes&&vk(t,e.defaultRoutes),e.descriptors&&ot.describe(t,e.descriptors)}function vk(e,t){Object.keys(t).forEach(n=>{const r=n.split("."),i=r.pop(),a=[e].concat(r).join("."),o=t[n].split("."),s=o.pop(),l=o.join(".");ot.route(a,i,l,s)})}function yk(e){return"id"in e&&"defaults"in e}class xk{constructor(){this.controllers=new Rs(Qa,"datasets",!0),this.elements=new Rs(Lr,"elements"),this.plugins=new Rs(Object,"plugins"),this.scales=new Rs(Ii,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,n,r){[...n].forEach(i=>{const a=r||this._getRegistryForType(i);r||a.isForType(i)||a===this.plugins&&i.id?this._exec(t,a,i):He(i,o=>{const s=r||this._getRegistryForType(o);this._exec(t,s,o)})})}_exec(t,n,r){const i=rh(t);Ze(r["before"+i],[],r),n[t](r),Ze(r["after"+i],[],r)}_getRegistryForType(t){for(let n=0;n<this._typedRegistries.length;n++){const r=this._typedRegistries[n];if(r.isForType(t))return r}return this.plugins}_get(t,n,r){const i=n.get(t);if(i===void 0)throw new Error('"'+t+'" is not a registered '+r+".");return i}}var kn=new xk;class Ck{constructor(){this._init=[]}notify(t,n,r,i){n==="beforeInit"&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const a=i?this._descriptors(t).filter(i):this._descriptors(t),o=this._notify(a,t,n,r);return n==="afterDestroy"&&(this._notify(a,t,"stop"),this._notify(this._init,t,"uninstall")),o}_notify(t,n,r,i){i=i||{};for(const a of t){const o=a.plugin,s=o[r],l=[n,i,a.options];if(Ze(s,l,o)===!1&&i.cancelable)return!1}return!0}invalidate(){Je(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const n=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),n}_createDescriptors(t,n){const r=t&&t.config,i=Ce(r.options&&r.options.plugins,{}),a=wk(r);return i===!1&&!n?[]:Sk(t,a,i,n)}_notifyStateChanges(t){const n=this._oldCache||[],r=this._cache,i=(a,o)=>a.filter(s=>!o.some(l=>s.plugin.id===l.plugin.id));this._notify(i(n,r),t,"stop"),this._notify(i(r,n),t,"start")}}function wk(e){const t={},n=[],r=Object.keys(kn.plugins.items);for(let a=0;a<r.length;a++)n.push(kn.getPlugin(r[a]));const i=e.plugins||[];for(let a=0;a<i.length;a++){const o=i[a];n.indexOf(o)===-1&&(n.push(o),t[o.id]=!0)}return{plugins:n,localIds:t}}function Dk(e,t){return!t&&e===!1?null:e===!0?{}:e}function Sk(e,{plugins:t,localIds:n},r,i){const a=[],o=e.getContext();for(const s of t){const l=s.id,u=Dk(r[l],i);u!==null&&a.push({plugin:s,options:Ek(e.config,{plugin:s,local:n[l]},u,o)})}return a}function Ek(e,{plugin:t,local:n},r,i){const a=e.pluginScopeKeys(t),o=e.getOptionScopes(r,a);return n&&t.defaults&&o.push(t.defaults),e.createResolver(o,i,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function $d(e,t){const n=ot.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||n.indexAxis||"x"}function Ik(e,t){let n=e;return e==="_index_"?n=t:e==="_value_"&&(n=t==="x"?"y":"x"),n}function _k(e,t){return e===t?"_index_":"_value_"}function Mp(e){if(e==="x"||e==="y"||e==="r")return e}function $k(e){if(e==="top"||e==="bottom")return"x";if(e==="left"||e==="right")return"y"}function Rd(e,...t){if(Mp(e))return e;for(const n of t){const r=n.axis||$k(n.position)||e.length>1&&Mp(e[0].toLowerCase());if(r)return r}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function Bp(e,t,n){if(n[t+"AxisID"]===e)return{axis:t}}function Rk(e,t){if(t.data&&t.data.datasets){const n=t.data.datasets.filter(r=>r.xAxisID===e||r.yAxisID===e);if(n.length)return Bp(e,"x",n[0])||Bp(e,"y",n[0])}return{}}function Ak(e,t){const n=yi[e.type]||{scales:{}},r=t.scales||{},i=$d(e.type,t),a=Object.create(null);return Object.keys(r).forEach(o=>{const s=r[o];if(!Re(s))return console.error(`Invalid scale configuration for scale: ${o}`);if(s._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${o}`);const l=Rd(o,s,Rk(o,e),ot.scales[s.type]),u=_k(l,i),c=n.scales||{};a[o]=Ya(Object.create(null),[{axis:l},s,c[l],c[u]])}),e.data.datasets.forEach(o=>{const s=o.type||e.type,l=o.indexAxis||$d(s,t),c=(yi[s]||{}).scales||{};Object.keys(c).forEach(d=>{const h=Ik(d,l),f=o[h+"AxisID"]||h;a[f]=a[f]||Object.create(null),Ya(a[f],[{axis:h},r[f],c[d]])})}),Object.keys(a).forEach(o=>{const s=a[o];Ya(s,[ot.scales[s.type],ot.scale])}),a}function l3(e){const t=e.options||(e.options={});t.plugins=Ce(t.plugins,{}),t.scales=Ak(e,t)}function u3(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function Fk(e){return e=e||{},e.data=u3(e.data),l3(e),e}const Vp=new Map,c3=new Set;function As(e,t){let n=Vp.get(e);return n||(n=t(),Vp.set(e,n),c3.add(n)),n}const $a=(e,t,n)=>{const r=Ro(t,n);r!==void 0&&e.add(r)};class Pk{constructor(t){this._config=Fk(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=u3(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),l3(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return As(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,n){return As(`${t}.transition.${n}`,()=>[[`datasets.${t}.transitions.${n}`,`transitions.${n}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,n){return As(`${t}-${n}`,()=>[[`datasets.${t}.elements.${n}`,`datasets.${t}`,`elements.${n}`,""]])}pluginScopeKeys(t){const n=t.id,r=this.type;return As(`${r}-plugin-${n}`,()=>[[`plugins.${n}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,n){const r=this._scopeCache;let i=r.get(t);return(!i||n)&&(i=new Map,r.set(t,i)),i}getOptionScopes(t,n,r){const{options:i,type:a}=this,o=this._cachedScopes(t,r),s=o.get(n);if(s)return s;const l=new Set;n.forEach(c=>{t&&(l.add(t),c.forEach(d=>$a(l,t,d))),c.forEach(d=>$a(l,i,d)),c.forEach(d=>$a(l,yi[a]||{},d)),c.forEach(d=>$a(l,ot,d)),c.forEach(d=>$a(l,Id,d))});const u=Array.from(l);return u.length===0&&u.push(Object.create(null)),c3.has(n)&&o.set(n,u),u}chartOptionScopes(){const{options:t,type:n}=this;return[t,yi[n]||{},ot.datasets[n]||{},{type:n},ot,Id]}resolveNamedOptions(t,n,r,i=[""]){const a={$shared:!0},{resolver:o,subPrefixes:s}=Op(this._resolverCache,t,i);let l=o;if(kk(o,n)){a.$shared=!1,r=kr(r)?r():r;const u=this.createResolver(t,r,s);l=da(o,r,u)}for(const u of n)a[u]=l[u];return a}createResolver(t,n,r=[""],i){const{resolver:a}=Op(this._resolverCache,t,r);return Re(n)?da(a,n,void 0,i):a}}function Op(e,t,n){let r=e.get(t);r||(r=new Map,e.set(t,r));const i=n.join();let a=r.get(i);return a||(a={resolver:dh(t,n),subPrefixes:n.filter(s=>!s.toLowerCase().includes("hover"))},r.set(i,a)),a}const Tk=e=>Re(e)&&Object.getOwnPropertyNames(e).some(t=>kr(e[t]));function kk(e,t){const{isScriptable:n,isIndexable:r}=X4(e);for(const i of t){const a=n(i),o=r(i),s=(o||a)&&e[i];if(a&&(kr(s)||Tk(s))||o&&at(s))return!0}return!1}var Mk="4.4.3";const Bk=["top","bottom","left","right","chartArea"];function Np(e,t){return e==="top"||e==="bottom"||Bk.indexOf(e)===-1&&t==="x"}function Lp(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}function jp(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),Ze(n&&n.onComplete,[e],t)}function Vk(e){const t=e.chart,n=t.options.animation;Ze(n&&n.onProgress,[e],t)}function d3(e){return gh()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const Qs={},Hp=e=>{const t=d3(e);return Object.values(Qs).filter(n=>n.canvas===t).pop()};function Ok(e,t,n){const r=Object.keys(e);for(const i of r){const a=+i;if(a>=t){const o=e[i];delete e[i],(n>0||a>t)&&(e[a+n]=o)}}}function Nk(e,t,n,r){return!n||e.type==="mouseout"?null:r?t:e}function Fs(e,t,n){return e.options.clip?e[n]:t[n]}function Lk(e,t){const{xScale:n,yScale:r}=e;return n&&r?{left:Fs(n,t,"left"),right:Fs(n,t,"right"),top:Fs(r,t,"top"),bottom:Fs(r,t,"bottom")}:t}var pr;let Du=(pr=class{static register(...t){kn.add(...t),Wp()}static unregister(...t){kn.remove(...t),Wp()}constructor(t,n){const r=this.config=new Pk(n),i=d3(t),a=Hp(i);if(a)throw new Error("Canvas is already in use. Chart with ID '"+a.id+"' must be destroyed before the canvas with ID '"+a.canvas.id+"' can be reused.");const o=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||rk(i)),this.platform.updateConfig(r);const s=this.platform.acquireContext(i,o.aspectRatio),l=s&&s.canvas,u=l&&l.height,c=l&&l.width;if(this.id=U7(),this.ctx=s,this.canvas=l,this.width=c,this.height=u,this._options=o,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new Ck,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=fP(d=>this.update(d),o.resizeDelay||0),this._dataChanges=[],Qs[this.id]=this,!s||!l){console.error("Failed to create chart: can't acquire context from the given item");return}Jn.listen(this,"complete",jp),Jn.listen(this,"progress",Vk),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:n},width:r,height:i,_aspectRatio:a}=this;return Je(t)?n&&a?a:i?r/i:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return kn}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():hp(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return cp(this.canvas,this.ctx),this}stop(){return Jn.stop(this),this}resize(t,n){Jn.running(this)?this._resizeBeforeDraw={width:t,height:n}:this._resize(t,n)}_resize(t,n){const r=this.options,i=this.canvas,a=r.maintainAspectRatio&&this.aspectRatio,o=this.platform.getMaximumSize(i,t,n,a),s=r.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=o.width,this.height=o.height,this._aspectRatio=this.aspectRatio,hp(this,s,!0)&&(this.notifyPlugins("resize",{size:o}),Ze(r.onResize,[this,o],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};He(n,(r,i)=>{r.id=i})}buildOrUpdateScales(){const t=this.options,n=t.scales,r=this.scales,i=Object.keys(r).reduce((o,s)=>(o[s]=!1,o),{});let a=[];n&&(a=a.concat(Object.keys(n).map(o=>{const s=n[o],l=Rd(o,s),u=l==="r",c=l==="x";return{options:s,dposition:u?"chartArea":c?"bottom":"left",dtype:u?"radialLinear":c?"category":"linear"}}))),He(a,o=>{const s=o.options,l=s.id,u=Rd(l,s),c=Ce(s.type,o.dtype);(s.position===void 0||Np(s.position,u)!==Np(o.dposition))&&(s.position=o.dposition),i[l]=!0;let d=null;if(l in r&&r[l].type===c)d=r[l];else{const h=kn.getScale(c);d=new h({id:l,type:c,ctx:this.ctx,chart:this}),r[d.id]=d}d.init(s,t)}),He(i,(o,s)=>{o||delete r[s]}),He(r,o=>{pn.configure(this,o,o.options),pn.addBox(this,o)})}_updateMetasets(){const t=this._metasets,n=this.data.datasets.length,r=t.length;if(t.sort((i,a)=>i.index-a.index),r>n){for(let i=n;i<r;++i)this._destroyDatasetMeta(i);t.splice(n,r-n)}this._sortedMetasets=t.slice(0).sort(Lp("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:n}}=this;t.length>n.length&&delete this._stacks,t.forEach((r,i)=>{n.filter(a=>a===r._dataset).length===0&&this._destroyDatasetMeta(i)})}buildOrUpdateControllers(){const t=[],n=this.data.datasets;let r,i;for(this._removeUnreferencedMetasets(),r=0,i=n.length;r<i;r++){const a=n[r];let o=this.getDatasetMeta(r);const s=a.type||this.config.type;if(o.type&&o.type!==s&&(this._destroyDatasetMeta(r),o=this.getDatasetMeta(r)),o.type=s,o.indexAxis=a.indexAxis||$d(s,this.options),o.order=a.order||0,o.index=r,o.label=""+a.label,o.visible=this.isDatasetVisible(r),o.controller)o.controller.updateIndex(r),o.controller.linkScales();else{const l=kn.getController(s),{datasetElementType:u,dataElementType:c}=ot.datasets[s];Object.assign(l,{dataElementType:kn.getElement(c),datasetElementType:u&&kn.getElement(u)}),o.controller=new l(this,r),t.push(o.controller)}}return this._updateMetasets(),t}_resetElements(){He(this.data.datasets,(t,n)=>{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const n=this.config;n.update();const r=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const a=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let o=0;for(let u=0,c=this.data.datasets.length;u<c;u++){const{controller:d}=this.getDatasetMeta(u),h=!i&&a.indexOf(d)===-1;d.buildOrUpdateElements(h),o=Math.max(+d.getMaxOverflow(),o)}o=this._minPadding=r.layout.autoPadding?o:0,this._updateLayout(o),i||He(a,u=>{u.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(Lp("z","_idx"));const{_active:s,_lastEvent:l}=this;l?this._eventHandler(l,!0):s.length&&this._updateHoverStyles(s,s,!0),this.render()}_updateScales(){He(this.scales,t=>{pn.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,n=new Set(Object.keys(this._listeners)),r=new Set(t.events);(!tp(n,r)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,n=this._getUniformDataChanges()||[];for(const{method:r,start:i,count:a}of n){const o=r==="_removeElements"?-a:a;Ok(t,i,o)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const n=this.data.datasets.length,r=a=>new Set(t.filter(o=>o[0]===a).map((o,s)=>s+","+o.splice(1).join(","))),i=r(0);for(let a=1;a<n;a++)if(!tp(i,r(a)))return;return Array.from(i).map(a=>a.split(",")).map(a=>({method:a[1],start:+a[2],count:+a[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;pn.update(this,this.width,this.height,t);const n=this.chartArea,r=n.width<=0||n.height<=0;this._layers=[],He(this.boxes,i=>{r&&i.position==="chartArea"||(i.configure&&i.configure(),this._layers.push(...i._layers()))},this),this._layers.forEach((i,a)=>{i._idx=a}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let n=0,r=this.data.datasets.length;n<r;++n)this.getDatasetMeta(n).controller.configure();for(let n=0,r=this.data.datasets.length;n<r;++n)this._updateDataset(n,kr(t)?t({datasetIndex:n}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,n){const r=this.getDatasetMeta(t),i={meta:r,index:t,mode:n,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",i)!==!1&&(r.controller._update(n),i.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",i))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(Jn.has(this)?this.attached&&!Jn.running(this)&&Jn.start(this):(this.draw(),jp({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:r,height:i}=this._resizeBeforeDraw;this._resize(r,i),this._resizeBeforeDraw=null}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const n=this._layers;for(t=0;t<n.length&&n[t].z<=0;++t)n[t].draw(this.chartArea);for(this._drawDatasets();t<n.length;++t)n[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const n=this._sortedMetasets,r=[];let i,a;for(i=0,a=n.length;i<a;++i){const o=n[i];(!t||o.visible)&&r.push(o)}return r}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const t=this.getSortedVisibleDatasetMetas();for(let n=t.length-1;n>=0;--n)this._drawDataset(t[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const n=this.ctx,r=t._clip,i=!r.disabled,a=Lk(t,this.chartArea),o={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",o)!==!1&&(i&&lh(n,{left:r.left===!1?0:a.left-r.left,right:r.right===!1?this.width:a.right+r.right,top:r.top===!1?0:a.top-r.top,bottom:r.bottom===!1?this.height:a.bottom+r.bottom}),t.controller.draw(),i&&uh(n),o.cancelable=!1,this.notifyPlugins("afterDatasetDraw",o))}isPointInArea(t){return sr(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,n,r,i){const a=BT.modes[n];return typeof a=="function"?a(this,t,r,i):[]}getDatasetMeta(t){const n=this.data.datasets[t],r=this._metasets;let i=r.filter(a=>a&&a._dataset===n).pop();return i||(i={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:t,_dataset:n,_parsed:[],_sorted:!1},r.push(i)),i}getContext(){return this.$context||(this.$context=Nr(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const n=this.data.datasets[t];if(!n)return!1;const r=this.getDatasetMeta(t);return typeof r.hidden=="boolean"?!r.hidden:!n.hidden}setDatasetVisibility(t,n){const r=this.getDatasetMeta(t);r.hidden=!n}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,n,r){const i=r?"show":"hide",a=this.getDatasetMeta(t),o=a.controller._resolveAnimations(void 0,i);Nl(n)?(a.data[n].hidden=!r,this.update()):(this.setDatasetVisibility(t,r),o.update(a,{visible:r}),this.update(s=>s.datasetIndex===t?i:void 0))}hide(t,n){this._updateVisibility(t,n,!1)}show(t,n){this._updateVisibility(t,n,!0)}_destroyDatasetMeta(t){const n=this._metasets[t];n&&n.controller&&n.controller._destroy(),delete this._metasets[t]}_stop(){let t,n;for(this.stop(),Jn.remove(this),t=0,n=this.data.datasets.length;t<n;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:n}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),cp(t,n),this.platform.releaseContext(n),this.canvas=null,this.ctx=null),delete Qs[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,n=this.platform,r=(a,o)=>{n.addEventListener(this,a,o),t[a]=o},i=(a,o,s)=>{a.offsetX=o,a.offsetY=s,this._eventHandler(a)};He(this.options.events,a=>r(a,i))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,n=this.platform,r=(l,u)=>{n.addEventListener(this,l,u),t[l]=u},i=(l,u)=>{t[l]&&(n.removeEventListener(this,l,u),delete t[l])},a=(l,u)=>{this.canvas&&this.resize(l,u)};let o;const s=()=>{i("attach",s),this.attached=!0,this.resize(),r("resize",a),r("detach",o)};o=()=>{this.attached=!1,i("resize",a),this._stop(),this._resize(0,0),r("attach",s)},n.isAttached(this.canvas)?s():o()}unbindEvents(){He(this._listeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._listeners={},He(this._responsiveListeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,n,r){const i=r?"set":"remove";let a,o,s,l;for(n==="dataset"&&(a=this.getDatasetMeta(t[0].datasetIndex),a.controller["_"+i+"DatasetHoverStyle"]()),s=0,l=t.length;s<l;++s){o=t[s];const u=o&&this.getDatasetMeta(o.datasetIndex).controller;u&&u[i+"HoverStyle"](o.element,o.datasetIndex,o.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const n=this._active||[],r=t.map(({datasetIndex:a,index:o})=>{const s=this.getDatasetMeta(a);if(!s)throw new Error("No dataset found at index "+a);return{datasetIndex:a,element:s.data[o],index:o}});!Vl(r,n)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,n))}notifyPlugins(t,n,r){return this._plugins.notify(this,t,n,r)}isPluginEnabled(t){return this._plugins._cache.filter(n=>n.plugin.id===t).length===1}_updateHoverStyles(t,n,r){const i=this.options.hover,a=(l,u)=>l.filter(c=>!u.some(d=>c.datasetIndex===d.datasetIndex&&c.index===d.index)),o=a(n,t),s=r?t:a(t,n);o.length&&this.updateHoverStyle(o,i.mode,!1),s.length&&i.mode&&this.updateHoverStyle(s,i.mode,!0)}_eventHandler(t,n){const r={event:t,replay:n,cancelable:!0,inChartArea:this.isPointInArea(t)},i=o=>(o.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",r,i)===!1)return;const a=this._handleEvent(t,n,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,i),(a||r.changed)&&this.render(),this}_handleEvent(t,n,r){const{_active:i=[],options:a}=this,o=n,s=this._getActiveElements(t,i,r,o),l=tP(t),u=Nk(t,this._lastEvent,r,l);r&&(this._lastEvent=null,Ze(a.onHover,[t,s,this],this),l&&Ze(a.onClick,[t,s,this],this));const c=!Vl(s,i);return(c||n)&&(this._active=s,this._updateHoverStyles(s,i,n)),this._lastEvent=u,c}_getActiveElements(t,n,r,i){if(t.type==="mouseout")return[];if(!r)return n;const a=this.options.hover;return this.getElementsAtEventForMode(t,a.mode,a,i)}},ie(pr,"defaults",ot),ie(pr,"instances",Qs),ie(pr,"overrides",yi),ie(pr,"registry",kn),ie(pr,"version",Mk),ie(pr,"getChart",Hp),pr);function Wp(){return He(Du.instances,e=>e._plugins.invalidate())}function jk(e,t,n){const{startAngle:r,pixelMargin:i,x:a,y:o,outerRadius:s,innerRadius:l}=t;let u=i/s;e.beginPath(),e.arc(a,o,s,r-u,n+u),l>i?(u=i/l,e.arc(a,o,l,n+u,r-u,!0)):e.arc(a,o,i,n+dt,r-dt),e.closePath(),e.clip()}function Hk(e){return ch(e,["outerStart","outerEnd","innerStart","innerEnd"])}function Wk(e,t,n,r){const i=Hk(e.options.borderRadius),a=(n-t)/2,o=Math.min(a,r*t/2),s=l=>{const u=(n-Math.min(a,l))*r/2;return en(l,0,Math.min(a,u))};return{outerStart:s(i.outerStart),outerEnd:s(i.outerEnd),innerStart:en(i.innerStart,0,o),innerEnd:en(i.innerEnd,0,o)}}function ji(e,t,n,r){return{x:n+e*Math.cos(t),y:r+e*Math.sin(t)}}function Zl(e,t,n,r,i,a){const{x:o,y:s,startAngle:l,pixelMargin:u,innerRadius:c}=t,d=Math.max(t.outerRadius+r+n-u,0),h=c>0?c+r+n+u:0;let f=0;const g=i-l;if(r){const B=c>0?c-r:0,T=d>0?d-r:0,R=(B+T)/2,O=R!==0?g*R/(R+r):g;f=(g-O)/2}const m=Math.max(.001,g*d-n/Qe)/d,p=(g-m)/2,b=l+p+f,v=i-p-f,{outerStart:y,outerEnd:w,innerStart:C,innerEnd:E}=Wk(t,h,d,v-b),I=d-y,D=d-w,_=b+y/I,F=v-w/D,$=h+C,P=h+E,k=b+C/$,A=v-E/P;if(e.beginPath(),a){const B=(_+F)/2;if(e.arc(o,s,d,_,B),e.arc(o,s,d,B,F),w>0){const H=ji(D,F,o,s);e.arc(H.x,H.y,w,F,v+dt)}const T=ji(P,v,o,s);if(e.lineTo(T.x,T.y),E>0){const H=ji(P,A,o,s);e.arc(H.x,H.y,E,v+dt,A+Math.PI)}const R=(v-E/h+(b+C/h))/2;if(e.arc(o,s,h,v-E/h,R,!0),e.arc(o,s,h,R,b+C/h,!0),C>0){const H=ji($,k,o,s);e.arc(H.x,H.y,C,k+Math.PI,b-dt)}const O=ji(I,b,o,s);if(e.lineTo(O.x,O.y),y>0){const H=ji(I,_,o,s);e.arc(H.x,H.y,y,b-dt,_)}}else{e.moveTo(o,s);const B=Math.cos(_)*d+o,T=Math.sin(_)*d+s;e.lineTo(B,T);const R=Math.cos(F)*d+o,O=Math.sin(F)*d+s;e.lineTo(R,O)}e.closePath()}function zk(e,t,n,r,i){const{fullCircles:a,startAngle:o,circumference:s}=t;let l=t.endAngle;if(a){Zl(e,t,n,r,l,i);for(let u=0;u<a;++u)e.fill();isNaN(s)||(l=o+(s%Ke||Ke))}return Zl(e,t,n,r,l,i),e.fill(),l}function Gk(e,t,n,r,i){const{fullCircles:a,startAngle:o,circumference:s,options:l}=t,{borderWidth:u,borderJoinStyle:c,borderDash:d,borderDashOffset:h}=l,f=l.borderAlign==="inner";if(!u)return;e.setLineDash(d||[]),e.lineDashOffset=h,f?(e.lineWidth=u*2,e.lineJoin=c||"round"):(e.lineWidth=u,e.lineJoin=c||"bevel");let g=t.endAngle;if(a){Zl(e,t,n,r,g,i);for(let m=0;m<a;++m)e.stroke();isNaN(s)||(g=o+(s%Ke||Ke))}f&&jk(e,t,g),a||(Zl(e,t,n,r,g,i),e.stroke())}class Oa extends Lr{constructor(n){super();ie(this,"circumference");ie(this,"endAngle");ie(this,"fullCircles");ie(this,"innerRadius");ie(this,"outerRadius");ie(this,"pixelMargin");ie(this,"startAngle");this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,n&&Object.assign(this,n)}inRange(n,r,i){const a=this.getProps(["x","y"],i),{angle:o,distance:s}=j4(a,{x:n,y:r}),{startAngle:l,endAngle:u,innerRadius:c,outerRadius:d,circumference:h}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],i),f=(this.options.spacing+this.options.borderWidth)/2,m=Ce(h,u-l)>=Ke||Ao(o,l,u),p=Zi(s,c+f,d+f);return m&&p}getCenterPoint(n){const{x:r,y:i,startAngle:a,endAngle:o,innerRadius:s,outerRadius:l}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],n),{offset:u,spacing:c}=this.options,d=(a+o)/2,h=(s+l+c+u)/2;return{x:r+Math.cos(d)*h,y:i+Math.sin(d)*h}}tooltipPosition(n){return this.getCenterPoint(n)}draw(n){const{options:r,circumference:i}=this,a=(r.offset||0)/4,o=(r.spacing||0)/2,s=r.circular;if(this.pixelMargin=r.borderAlign==="inner"?.33:0,this.fullCircles=i>Ke?Math.floor(i/Ke):0,i===0||this.innerRadius<0||this.outerRadius<0)return;n.save();const l=(this.startAngle+this.endAngle)/2;n.translate(Math.cos(l)*a,Math.sin(l)*a);const u=1-Math.sin(Math.min(Qe,i||0)),c=a*u;n.fillStyle=r.backgroundColor,n.strokeStyle=r.borderColor,zk(n,this,c,o,s),Gk(n,this,c,o,s),n.restore()}}ie(Oa,"id","arc"),ie(Oa,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),ie(Oa,"defaultRoutes",{backgroundColor:"backgroundColor"}),ie(Oa,"descriptors",{_scriptable:!0,_indexable:n=>n!=="borderDash"});function f3(e,t,n=t){e.lineCap=Ce(n.borderCapStyle,t.borderCapStyle),e.setLineDash(Ce(n.borderDash,t.borderDash)),e.lineDashOffset=Ce(n.borderDashOffset,t.borderDashOffset),e.lineJoin=Ce(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=Ce(n.borderWidth,t.borderWidth),e.strokeStyle=Ce(n.borderColor,t.borderColor)}function Zk(e,t,n){e.lineTo(n.x,n.y)}function Xk(e){return e.stepped?SP:e.tension||e.cubicInterpolationMode==="monotone"?EP:Zk}function h3(e,t,n={}){const r=e.length,{start:i=0,end:a=r-1}=n,{start:o,end:s}=t,l=Math.max(i,o),u=Math.min(a,s),c=i<o&&a<o||i>s&&a>s;return{count:r,start:l,loop:t.loop,ilen:u<l&&!c?r+u-l:u-l}}function Yk(e,t,n,r){const{points:i,options:a}=t,{count:o,start:s,loop:l,ilen:u}=h3(i,n,r),c=Xk(a);let{move:d=!0,reverse:h}=r||{},f,g,m;for(f=0;f<=u;++f)g=i[(s+(h?u-f:f))%o],!g.skip&&(d?(e.moveTo(g.x,g.y),d=!1):c(e,m,g,h,a.stepped),m=g);return l&&(g=i[(s+(h?u:0))%o],c(e,m,g,h,a.stepped)),!!l}function Uk(e,t,n,r){const i=t.points,{count:a,start:o,ilen:s}=h3(i,n,r),{move:l=!0,reverse:u}=r||{};let c=0,d=0,h,f,g,m,p,b;const v=w=>(o+(u?s-w:w))%a,y=()=>{m!==p&&(e.lineTo(c,p),e.lineTo(c,m),e.lineTo(c,b))};for(l&&(f=i[v(0)],e.moveTo(f.x,f.y)),h=0;h<=s;++h){if(f=i[v(h)],f.skip)continue;const w=f.x,C=f.y,E=w|0;E===g?(C<m?m=C:C>p&&(p=C),c=(d*c+w)/++d):(y(),e.lineTo(w,C),g=E,d=0,m=p=C),b=C}y()}function Ad(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!n?Uk:Yk}function Jk(e){return e.stepped?iT:e.tension||e.cubicInterpolationMode==="monotone"?aT:qr}function Kk(e,t,n,r){let i=t._path;i||(i=t._path=new Path2D,t.path(i,n,r)&&i.closePath()),f3(e,t.options),e.stroke(i)}function Qk(e,t,n,r){const{segments:i,options:a}=t,o=Ad(t);for(const s of i)f3(e,a,s.style),e.beginPath(),o(e,t,s,{start:n,end:n+r-1})&&e.closePath(),e.stroke()}const qk=typeof Path2D=="function";function eM(e,t,n,r){qk&&!t.options.segment?Kk(e,t,n,r):Qk(e,t,n,r)}class Na extends Lr{constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,n){const r=this.options;if((r.tension||r.cubicInterpolationMode==="monotone")&&!r.stepped&&!this._pointsUpdated){const i=r.spanGaps?this._loop:this._fullLoop;JP(this._points,r,t,i,n),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=hT(this,this.options.segment))}first(){const t=this.segments,n=this.points;return t.length&&n[t[0].start]}last(){const t=this.segments,n=this.points,r=t.length;return r&&n[t[r-1].end]}interpolate(t,n){const r=this.options,i=t[n],a=this.points,o=cT(this,{property:n,start:i,end:i});if(!o.length)return;const s=[],l=Jk(r);let u,c;for(u=0,c=o.length;u<c;++u){const{start:d,end:h}=o[u],f=a[d],g=a[h];if(f===g){s.push(f);continue}const m=Math.abs((i-f[n])/(g[n]-f[n])),p=l(f,g,m,r.stepped);p[n]=t[n],s.push(p)}return s.length===1?s[0]:s}pathSegment(t,n,r){return Ad(this)(t,this,n,r)}path(t,n,r){const i=this.segments,a=Ad(this);let o=this._loop;n=n||0,r=r||this.points.length-n;for(const s of i)o&=a(t,this,s,{start:n,end:n+r-1});return!!o}draw(t,n,r,i){const a=this.options||{};(this.points||[]).length&&a.borderWidth&&(t.save(),eM(t,this,r,i),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}ie(Na,"id","line"),ie(Na,"defaults",{borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0}),ie(Na,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"}),ie(Na,"descriptors",{_scriptable:!0,_indexable:t=>t!=="borderDash"&&t!=="fill"});function zp(e,t,n,r){const i=e.options,{[n]:a}=e.getProps([n],r);return Math.abs(t-a)<i.radius+i.hitRadius}class qs extends Lr{constructor(n){super();ie(this,"parsed");ie(this,"skip");ie(this,"stop");this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,n&&Object.assign(this,n)}inRange(n,r,i){const a=this.options,{x:o,y:s}=this.getProps(["x","y"],i);return Math.pow(n-o,2)+Math.pow(r-s,2)<Math.pow(a.hitRadius+a.radius,2)}inXRange(n,r){return zp(this,n,"x",r)}inYRange(n,r){return zp(this,n,"y",r)}getCenterPoint(n){const{x:r,y:i}=this.getProps(["x","y"],n);return{x:r,y:i}}size(n){n=n||this.options||{};let r=n.radius||0;r=Math.max(r,r&&n.hoverRadius||0);const i=r&&n.borderWidth||0;return(r+i)*2}draw(n,r){const i=this.options;this.skip||i.radius<.1||!sr(this,r,this.size(i)/2)||(n.strokeStyle=i.borderColor,n.lineWidth=i.borderWidth,n.fillStyle=i.backgroundColor,_d(n,i,this.x,this.y))}getRange(){const n=this.options||{};return n.radius+n.hitRadius}}ie(qs,"id","point"),ie(qs,"defaults",{borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0}),ie(qs,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});const Gp=(e,t)=>{let{boxHeight:n=t,boxWidth:r=t}=e;return e.usePointStyle&&(n=Math.min(n,t),r=e.pointStyleWidth||Math.min(r,t)),{boxWidth:r,boxHeight:n,itemHeight:Math.max(t,n)}},tM=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class Zp extends Lr{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n,r){this.maxWidth=t,this.maxHeight=n,this._margins=r,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let n=Ze(t.generateLabels,[this.chart],this)||[];t.filter&&(n=n.filter(r=>t.filter(r,this.chart.data))),t.sort&&(n=n.sort((r,i)=>t.sort(r,i,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:t,ctx:n}=this;if(!t.display){this.width=this.height=0;return}const r=t.labels,i=pt(r.font),a=i.size,o=this._computeTitleHeight(),{boxWidth:s,itemHeight:l}=Gp(r,a);let u,c;n.font=i.string,this.isHorizontal()?(u=this.maxWidth,c=this._fitRows(o,a,s,l)+10):(c=this.maxHeight,u=this._fitCols(o,i,s,l)+10),this.width=Math.min(u,t.maxWidth||this.maxWidth),this.height=Math.min(c,t.maxHeight||this.maxHeight)}_fitRows(t,n,r,i){const{ctx:a,maxWidth:o,options:{labels:{padding:s}}}=this,l=this.legendHitBoxes=[],u=this.lineWidths=[0],c=i+s;let d=t;a.textAlign="left",a.textBaseline="middle";let h=-1,f=-c;return this.legendItems.forEach((g,m)=>{const p=r+n/2+a.measureText(g.text).width;(m===0||u[u.length-1]+p+2*s>o)&&(d+=c,u[u.length-(m>0?0:1)]=0,f+=c,h++),l[m]={left:0,top:f,row:h,width:p,height:i},u[u.length-1]+=p+s}),d}_fitCols(t,n,r,i){const{ctx:a,maxHeight:o,options:{labels:{padding:s}}}=this,l=this.legendHitBoxes=[],u=this.columnSizes=[],c=o-t;let d=s,h=0,f=0,g=0,m=0;return this.legendItems.forEach((p,b)=>{const{itemWidth:v,itemHeight:y}=nM(r,n,a,p,i);b>0&&f+y+2*s>c&&(d+=h+s,u.push({width:h,height:f}),g+=h+s,m++,h=f=0),l[b]={left:g,top:f,col:m,width:v,height:y},h=Math.max(h,v),f+=y+s}),d+=h,u.push({width:h,height:f}),d}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:r,labels:{padding:i},rtl:a}}=this,o=na(a,this.left,this.width);if(this.isHorizontal()){let s=0,l=_t(r,this.left+i,this.right-this.lineWidths[s]);for(const u of n)s!==u.row&&(s=u.row,l=_t(r,this.left+i,this.right-this.lineWidths[s])),u.top+=this.top+t+i,u.left=o.leftForLtr(o.x(l),u.width),l+=u.width+i}else{let s=0,l=_t(r,this.top+t+i,this.bottom-this.columnSizes[s].height);for(const u of n)u.col!==s&&(s=u.col,l=_t(r,this.top+t+i,this.bottom-this.columnSizes[s].height)),u.top=l,u.left+=this.left+i,u.left=o.leftForLtr(o.x(u.left),u.width),l+=u.height+i}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;lh(t,this),this._draw(),uh(t)}}_draw(){const{options:t,columnSizes:n,lineWidths:r,ctx:i}=this,{align:a,labels:o}=t,s=ot.color,l=na(t.rtl,this.left,this.width),u=pt(o.font),{padding:c}=o,d=u.size,h=d/2;let f;this.drawTitle(),i.textAlign=l.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=u.string;const{boxWidth:g,boxHeight:m,itemHeight:p}=Gp(o,d),b=function(E,I,D){if(isNaN(g)||g<=0||isNaN(m)||m<0)return;i.save();const _=Ce(D.lineWidth,1);if(i.fillStyle=Ce(D.fillStyle,s),i.lineCap=Ce(D.lineCap,"butt"),i.lineDashOffset=Ce(D.lineDashOffset,0),i.lineJoin=Ce(D.lineJoin,"miter"),i.lineWidth=_,i.strokeStyle=Ce(D.strokeStyle,s),i.setLineDash(Ce(D.lineDash,[])),o.usePointStyle){const F={radius:m*Math.SQRT2/2,pointStyle:D.pointStyle,rotation:D.rotation,borderWidth:_},$=l.xPlus(E,g/2),P=I+h;Z4(i,F,$,P,o.pointStyleWidth&&g)}else{const F=I+Math.max((d-m)/2,0),$=l.leftForLtr(E,g),P=ta(D.borderRadius);i.beginPath(),Object.values(P).some(k=>k!==0)?Wl(i,{x:$,y:F,w:g,h:m,radius:P}):i.rect($,F,g,m),i.fill(),_!==0&&i.stroke()}i.restore()},v=function(E,I,D){xi(i,D.text,E,I+p/2,u,{strikethrough:D.hidden,textAlign:l.textAlign(D.textAlign)})},y=this.isHorizontal(),w=this._computeTitleHeight();y?f={x:_t(a,this.left+c,this.right-r[0]),y:this.top+c+w,line:0}:f={x:this.left+c,y:_t(a,this.top+w+c,this.bottom-n[0].height),line:0},Q4(this.ctx,t.textDirection);const C=p+c;this.legendItems.forEach((E,I)=>{i.strokeStyle=E.fontColor,i.fillStyle=E.fontColor;const D=i.measureText(E.text).width,_=l.textAlign(E.textAlign||(E.textAlign=o.textAlign)),F=g+h+D;let $=f.x,P=f.y;l.setWidth(this.width),y?I>0&&$+F+c>this.right&&(P=f.y+=C,f.line++,$=f.x=_t(a,this.left+c,this.right-r[f.line])):I>0&&P+C>this.bottom&&($=f.x=$+n[f.line].width+c,f.line++,P=f.y=_t(a,this.top+w+c,this.bottom-n[f.line].height));const k=l.x($);if(b(k,P,E),$=hP(_,$+g+h,y?$+F:this.right,t.rtl),v(l.x($),P,E),y)f.x+=F+c;else if(typeof E.text!="string"){const A=u.lineHeight;f.y+=g3(E,A)+c}else f.y+=C}),q4(this.ctx,t.textDirection)}drawTitle(){const t=this.options,n=t.title,r=pt(n.font),i=Ft(n.padding);if(!n.display)return;const a=na(t.rtl,this.left,this.width),o=this.ctx,s=n.position,l=r.size/2,u=i.top+l;let c,d=this.left,h=this.width;if(this.isHorizontal())h=Math.max(...this.lineWidths),c=this.top+u,d=_t(t.align,d,this.right-h);else{const g=this.columnSizes.reduce((m,p)=>Math.max(m,p.height),0);c=u+_t(t.align,this.top,this.bottom-g-t.labels.padding-this._computeTitleHeight())}const f=_t(s,d,d+h);o.textAlign=a.textAlign(oh(s)),o.textBaseline="middle",o.strokeStyle=n.color,o.fillStyle=n.color,o.font=r.string,xi(o,n.text,f,c,r)}_computeTitleHeight(){const t=this.options.title,n=pt(t.font),r=Ft(t.padding);return t.display?n.lineHeight+r.height:0}_getLegendItemAt(t,n){let r,i,a;if(Zi(t,this.left,this.right)&&Zi(n,this.top,this.bottom)){for(a=this.legendHitBoxes,r=0;r<a.length;++r)if(i=a[r],Zi(t,i.left,i.left+i.width)&&Zi(n,i.top,i.top+i.height))return this.legendItems[r]}return null}handleEvent(t){const n=this.options;if(!aM(t.type,n))return;const r=this._getLegendItemAt(t.x,t.y);if(t.type==="mousemove"||t.type==="mouseout"){const i=this._hoveredItem,a=tM(i,r);i&&!a&&Ze(n.onLeave,[t,i,this],this),this._hoveredItem=r,r&&!a&&Ze(n.onHover,[t,r,this],this)}else r&&Ze(n.onClick,[t,r,this],this)}}function nM(e,t,n,r,i){const a=rM(r,e,t,n),o=iM(i,r,t.lineHeight);return{itemWidth:a,itemHeight:o}}function rM(e,t,n,r){let i=e.text;return i&&typeof i!="string"&&(i=i.reduce((a,o)=>a.length>o.length?a:o)),t+n.size/2+r.measureText(i).width}function iM(e,t,n){let r=e;return typeof t.text!="string"&&(r=g3(t,n)),r}function g3(e,t){const n=e.text?e.text.length:0;return t*n}function aM(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var oM={id:"legend",_element:Zp,start(e,t,n){const r=e.legend=new Zp({ctx:e.ctx,options:n,chart:e});pn.configure(e,r,n),pn.addBox(e,r)},stop(e){pn.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const r=e.legend;pn.configure(e,r,n),r.options=n},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){const r=t.datasetIndex,i=n.chart;i.isDatasetVisible(r)?(i.hide(r),t.hidden=!0):(i.show(r),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:r,textAlign:i,color:a,useBorderRadius:o,borderRadius:s}}=e.legend.options;return e._getSortedDatasetMetas().map(l=>{const u=l.controller.getStyle(n?0:void 0),c=Ft(u.borderWidth);return{text:t[l.index].label,fillStyle:u.backgroundColor,fontColor:a,hidden:!l.visible,lineCap:u.borderCapStyle,lineDash:u.borderDash,lineDashOffset:u.borderDashOffset,lineJoin:u.borderJoinStyle,lineWidth:(c.width+c.height)/4,strokeStyle:u.borderColor,pointStyle:r||u.pointStyle,rotation:u.rotation,textAlign:i||u.textAlign,borderRadius:o&&(s||u.borderRadius),datasetIndex:l.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class m3 extends Lr{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n){const r=this.options;if(this.left=0,this.top=0,!r.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=t,this.height=this.bottom=n;const i=at(r.text)?r.text.length:1;this._padding=Ft(r.padding);const a=i*pt(r.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=a:this.width=a}isHorizontal(){const t=this.options.position;return t==="top"||t==="bottom"}_drawArgs(t){const{top:n,left:r,bottom:i,right:a,options:o}=this,s=o.align;let l=0,u,c,d;return this.isHorizontal()?(c=_t(s,r,a),d=n+t,u=a-r):(o.position==="left"?(c=r+t,d=_t(s,i,n),l=Qe*-.5):(c=a-t,d=_t(s,n,i),l=Qe*.5),u=i-n),{titleX:c,titleY:d,maxWidth:u,rotation:l}}draw(){const t=this.ctx,n=this.options;if(!n.display)return;const r=pt(n.font),a=r.lineHeight/2+this._padding.top,{titleX:o,titleY:s,maxWidth:l,rotation:u}=this._drawArgs(a);xi(t,n.text,0,0,r,{color:n.color,maxWidth:l,rotation:u,textAlign:oh(n.align),textBaseline:"middle",translation:[o,s]})}}function sM(e,t){const n=new m3({ctx:e.ctx,options:t,chart:e});pn.configure(e,n,t),pn.addBox(e,n),e.titleBlock=n}var lM={id:"title",_element:m3,start(e,t,n){sM(e,n)},stop(e){const t=e.titleBlock;pn.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const r=e.titleBlock;pn.configure(e,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const La={average(e){if(!e.length)return!1;let t,n,r=new Set,i=0,a=0;for(t=0,n=e.length;t<n;++t){const s=e[t].element;if(s&&s.hasValue()){const l=s.tooltipPosition();r.add(l.x),i+=l.y,++a}}return{x:[...r].reduce((s,l)=>s+l)/r.size,y:i/a}},nearest(e,t){if(!e.length)return!1;let n=t.x,r=t.y,i=Number.POSITIVE_INFINITY,a,o,s;for(a=0,o=e.length;a<o;++a){const l=e[a].element;if(l&&l.hasValue()){const u=l.getCenterPoint(),c=Sd(t,u);c<i&&(i=c,s=l)}}if(s){const l=s.tooltipPosition();n=l.x,r=l.y}return{x:n,y:r}}};function Pn(e,t){return t&&(at(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function Kn(e){return(typeof e=="string"||e instanceof String)&&e.indexOf(`
|
171
171
|
`)>-1?e.split(`
|
172
|
-
`):e}function uk(e,t){const{element:n,datasetIndex:r,index:i}=t,a=e.getDatasetMeta(r).controller,{label:o,value:s}=a.getLabelAndValue(i);return{chart:e,label:o,parsed:a.getParsed(i),raw:e.data.datasets[r].data[i],formattedValue:s,dataset:a.getDataset(),dataIndex:i,datasetIndex:r,element:n}}function Xp(e,t){const n=e.chart.ctx,{body:r,footer:i,title:a}=e,{boxWidth:o,boxHeight:s}=t,l=pt(t.bodyFont),u=pt(t.titleFont),c=pt(t.footerFont),d=a.length,h=i.length,f=r.length,g=Ft(t.padding);let m=g.height,p=0,b=r.reduce((w,C)=>w+C.before.length+C.lines.length+C.after.length,0);if(b+=e.beforeBody.length+e.afterBody.length,d&&(m+=d*u.lineHeight+(d-1)*t.titleSpacing+t.titleMarginBottom),b){const w=t.displayColors?Math.max(s,l.lineHeight):l.lineHeight;m+=f*w+(b-f)*l.lineHeight+(b-1)*t.bodySpacing}h&&(m+=t.footerMarginTop+h*c.lineHeight+(h-1)*t.footerSpacing);let v=0;const y=function(w){p=Math.max(p,n.measureText(w).width+v)};return n.save(),n.font=u.string,He(e.title,y),n.font=l.string,He(e.beforeBody.concat(e.afterBody),y),v=t.displayColors?o+2+t.boxPadding:0,He(r,w=>{He(w.before,y),He(w.lines,y),He(w.after,y)}),v=0,n.font=c.string,He(e.footer,y),n.restore(),p+=g.width,{width:p,height:m}}function ck(e,t){const{y:n,height:r}=t;return n<r/2?"top":n>e.height-r/2?"bottom":"center"}function dk(e,t,n,r){const{x:i,width:a}=r,o=n.caretSize+n.caretPadding;if(e==="left"&&i+a+o>t.width||e==="right"&&i-a-o<0)return!0}function fk(e,t,n,r){const{x:i,width:a}=n,{width:o,chartArea:{left:s,right:l}}=e;let u="center";return r==="center"?u=i<=(s+l)/2?"left":"right":i<=a/2?u="left":i>=o-a/2&&(u="right"),dk(u,e,t,n)&&(u="center"),u}function Yp(e,t,n){const r=n.yAlign||t.yAlign||ck(e,n);return{xAlign:n.xAlign||t.xAlign||fk(e,t,n,r),yAlign:r}}function hk(e,t){let{x:n,width:r}=e;return t==="right"?n-=r:t==="center"&&(n-=r/2),n}function gk(e,t,n){let{y:r,height:i}=e;return t==="top"?r+=n:t==="bottom"?r-=i+n:r-=i/2,r}function Up(e,t,n,r){const{caretSize:i,caretPadding:a,cornerRadius:o}=e,{xAlign:s,yAlign:l}=n,u=i+a,{topLeft:c,topRight:d,bottomLeft:h,bottomRight:f}=ta(o);let g=hk(t,s);const m=gk(t,l,u);return l==="center"?s==="left"?g+=u:s==="right"&&(g-=u):s==="left"?g-=Math.max(c,h)+i:s==="right"&&(g+=Math.max(d,f)+i),{x:en(g,0,r.width-t.width),y:en(m,0,r.height-t.height)}}function Ps(e,t,n){const r=Ft(n.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-r.right:e.x+r.left}function Jp(e){return Pn([],Kn(e))}function mk(e,t,n){return Nr(e,{tooltip:t,tooltipItems:n,type:"tooltip"})}function Kp(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const p3={beforeTitle:Un,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,r=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(r>0&&t.dataIndex<r)return n[t.dataIndex]}return""},afterTitle:Un,beforeBody:Un,beforeLabel:Un,label(e){if(this&&this.options&&this.options.mode==="dataset")return e.label+": "+e.formattedValue||e.formattedValue;let t=e.dataset.label||"";t&&(t+=": ");const n=e.formattedValue;return Je(n)||(t+=n),t},labelColor(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:n.borderColor,backgroundColor:n.backgroundColor,borderWidth:n.borderWidth,borderDash:n.borderDash,borderDashOffset:n.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:n.pointStyle,rotation:n.rotation}},afterLabel:Un,afterBody:Un,beforeFooter:Un,footer:Un,afterFooter:Un};function Ht(e,t,n,r){const i=e[t].call(n,r);return typeof i>"u"?p3[t].call(n,r):i}class Fd extends Lr{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const n=this.chart,r=this.options.setContext(this.getContext()),i=r.enabled&&n.options.animation&&r.animations,a=new t3(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(a)),a}getContext(){return this.$context||(this.$context=mk(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,n){const{callbacks:r}=n,i=Ht(r,"beforeTitle",this,t),a=Ht(r,"title",this,t),o=Ht(r,"afterTitle",this,t);let s=[];return s=Pn(s,Kn(i)),s=Pn(s,Kn(a)),s=Pn(s,Kn(o)),s}getBeforeBody(t,n){return Jp(Ht(n.callbacks,"beforeBody",this,t))}getBody(t,n){const{callbacks:r}=n,i=[];return He(t,a=>{const o={before:[],lines:[],after:[]},s=Kp(r,a);Pn(o.before,Kn(Ht(s,"beforeLabel",this,a))),Pn(o.lines,Ht(s,"label",this,a)),Pn(o.after,Kn(Ht(s,"afterLabel",this,a))),i.push(o)}),i}getAfterBody(t,n){return Jp(Ht(n.callbacks,"afterBody",this,t))}getFooter(t,n){const{callbacks:r}=n,i=Ht(r,"beforeFooter",this,t),a=Ht(r,"footer",this,t),o=Ht(r,"afterFooter",this,t);let s=[];return s=Pn(s,Kn(i)),s=Pn(s,Kn(a)),s=Pn(s,Kn(o)),s}_createItems(t){const n=this._active,r=this.chart.data,i=[],a=[],o=[];let s=[],l,u;for(l=0,u=n.length;l<u;++l)s.push(uk(this.chart,n[l]));return t.filter&&(s=s.filter((c,d,h)=>t.filter(c,d,h,r))),t.itemSort&&(s=s.sort((c,d)=>t.itemSort(c,d,r))),He(s,c=>{const d=Kp(t.callbacks,c);i.push(Ht(d,"labelColor",this,c)),a.push(Ht(d,"labelPointStyle",this,c)),o.push(Ht(d,"labelTextColor",this,c))}),this.labelColors=i,this.labelPointStyles=a,this.labelTextColors=o,this.dataPoints=s,s}update(t,n){const r=this.options.setContext(this.getContext()),i=this._active;let a,o=[];if(!i.length)this.opacity!==0&&(a={opacity:0});else{const s=La[r.position].call(this,i,this._eventPosition);o=this._createItems(r),this.title=this.getTitle(o,r),this.beforeBody=this.getBeforeBody(o,r),this.body=this.getBody(o,r),this.afterBody=this.getAfterBody(o,r),this.footer=this.getFooter(o,r);const l=this._size=Xp(this,r),u=Object.assign({},s,l),c=Yp(this.chart,r,u),d=Up(r,u,c,this.chart);this.xAlign=c.xAlign,this.yAlign=c.yAlign,a={opacity:1,x:d.x,y:d.y,width:l.width,height:l.height,caretX:s.x,caretY:s.y}}this._tooltipItems=o,this.$context=void 0,a&&this._resolveAnimations().update(this,a),t&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(t,n,r,i){const a=this.getCaretPosition(t,r,i);n.lineTo(a.x1,a.y1),n.lineTo(a.x2,a.y2),n.lineTo(a.x3,a.y3)}getCaretPosition(t,n,r){const{xAlign:i,yAlign:a}=this,{caretSize:o,cornerRadius:s}=r,{topLeft:l,topRight:u,bottomLeft:c,bottomRight:d}=ta(s),{x:h,y:f}=t,{width:g,height:m}=n;let p,b,v,y,w,C;return a==="center"?(w=f+m/2,i==="left"?(p=h,b=p-o,y=w+o,C=w-o):(p=h+g,b=p+o,y=w-o,C=w+o),v=p):(i==="left"?b=h+Math.max(l,c)+o:i==="right"?b=h+g-Math.max(u,d)-o:b=this.caretX,a==="top"?(y=f,w=y-o,p=b-o,v=b+o):(y=f+m,w=y+o,p=b+o,v=b-o),C=y),{x1:p,x2:b,x3:v,y1:y,y2:w,y3:C}}drawTitle(t,n,r){const i=this.title,a=i.length;let o,s,l;if(a){const u=na(r.rtl,this.x,this.width);for(t.x=Ps(this,r.titleAlign,r),n.textAlign=u.textAlign(r.titleAlign),n.textBaseline="middle",o=pt(r.titleFont),s=r.titleSpacing,n.fillStyle=r.titleColor,n.font=o.string,l=0;l<a;++l)n.fillText(i[l],u.x(t.x),t.y+o.lineHeight/2),t.y+=o.lineHeight+s,l+1===a&&(t.y+=r.titleMarginBottom-s)}}_drawColorBox(t,n,r,i,a){const o=this.labelColors[r],s=this.labelPointStyles[r],{boxHeight:l,boxWidth:u}=a,c=pt(a.bodyFont),d=Ps(this,"left",a),h=i.x(d),f=l<c.lineHeight?(c.lineHeight-l)/2:0,g=n.y+f;if(a.usePointStyle){const m={radius:Math.min(u,l)/2,pointStyle:s.pointStyle,rotation:s.rotation,borderWidth:1},p=i.leftForLtr(h,u)+u/2,b=g+l/2;t.strokeStyle=a.multiKeyBackground,t.fillStyle=a.multiKeyBackground,_d(t,m,p,b),t.strokeStyle=o.borderColor,t.fillStyle=o.backgroundColor,_d(t,m,p,b)}else{t.lineWidth=Re(o.borderWidth)?Math.max(...Object.values(o.borderWidth)):o.borderWidth||1,t.strokeStyle=o.borderColor,t.setLineDash(o.borderDash||[]),t.lineDashOffset=o.borderDashOffset||0;const m=i.leftForLtr(h,u),p=i.leftForLtr(i.xPlus(h,1),u-2),b=ta(o.borderRadius);Object.values(b).some(v=>v!==0)?(t.beginPath(),t.fillStyle=a.multiKeyBackground,Wl(t,{x:m,y:g,w:u,h:l,radius:b}),t.fill(),t.stroke(),t.fillStyle=o.backgroundColor,t.beginPath(),Wl(t,{x:p,y:g+1,w:u-2,h:l-2,radius:b}),t.fill()):(t.fillStyle=a.multiKeyBackground,t.fillRect(m,g,u,l),t.strokeRect(m,g,u,l),t.fillStyle=o.backgroundColor,t.fillRect(p,g+1,u-2,l-2))}t.fillStyle=this.labelTextColors[r]}drawBody(t,n,r){const{body:i}=this,{bodySpacing:a,bodyAlign:o,displayColors:s,boxHeight:l,boxWidth:u,boxPadding:c}=r,d=pt(r.bodyFont);let h=d.lineHeight,f=0;const g=na(r.rtl,this.x,this.width),m=function(D){n.fillText(D,g.x(t.x+f),t.y+h/2),t.y+=h+a},p=g.textAlign(o);let b,v,y,w,C,E,I;for(n.textAlign=o,n.textBaseline="middle",n.font=d.string,t.x=Ps(this,p,r),n.fillStyle=r.bodyColor,He(this.beforeBody,m),f=s&&p!=="right"?o==="center"?u/2+c:u+2+c:0,w=0,E=i.length;w<E;++w){for(b=i[w],v=this.labelTextColors[w],n.fillStyle=v,He(b.before,m),y=b.lines,s&&y.length&&(this._drawColorBox(n,t,w,g,r),h=Math.max(d.lineHeight,l)),C=0,I=y.length;C<I;++C)m(y[C]),h=d.lineHeight;He(b.after,m)}f=0,h=d.lineHeight,He(this.afterBody,m),t.y-=a}drawFooter(t,n,r){const i=this.footer,a=i.length;let o,s;if(a){const l=na(r.rtl,this.x,this.width);for(t.x=Ps(this,r.footerAlign,r),t.y+=r.footerMarginTop,n.textAlign=l.textAlign(r.footerAlign),n.textBaseline="middle",o=pt(r.footerFont),n.fillStyle=r.footerColor,n.font=o.string,s=0;s<a;++s)n.fillText(i[s],l.x(t.x),t.y+o.lineHeight/2),t.y+=o.lineHeight+r.footerSpacing}}drawBackground(t,n,r,i){const{xAlign:a,yAlign:o}=this,{x:s,y:l}=t,{width:u,height:c}=r,{topLeft:d,topRight:h,bottomLeft:f,bottomRight:g}=ta(i.cornerRadius);n.fillStyle=i.backgroundColor,n.strokeStyle=i.borderColor,n.lineWidth=i.borderWidth,n.beginPath(),n.moveTo(s+d,l),o==="top"&&this.drawCaret(t,n,r,i),n.lineTo(s+u-h,l),n.quadraticCurveTo(s+u,l,s+u,l+h),o==="center"&&a==="right"&&this.drawCaret(t,n,r,i),n.lineTo(s+u,l+c-g),n.quadraticCurveTo(s+u,l+c,s+u-g,l+c),o==="bottom"&&this.drawCaret(t,n,r,i),n.lineTo(s+f,l+c),n.quadraticCurveTo(s,l+c,s,l+c-f),o==="center"&&a==="left"&&this.drawCaret(t,n,r,i),n.lineTo(s,l+d),n.quadraticCurveTo(s,l,s+d,l),n.closePath(),n.fill(),i.borderWidth>0&&n.stroke()}_updateAnimationTarget(t){const n=this.chart,r=this.$animations,i=r&&r.x,a=r&&r.y;if(i||a){const o=La[t.position].call(this,this._active,this._eventPosition);if(!o)return;const s=this._size=Xp(this,t),l=Object.assign({},o,this._size),u=Yp(n,t,l),c=Up(t,l,u,n);(i._to!==c.x||a._to!==c.y)&&(this.xAlign=u.xAlign,this.yAlign=u.yAlign,this.width=s.width,this.height=s.height,this.caretX=o.x,this.caretY=o.y,this._resolveAnimations().update(this,c))}}_willRender(){return!!this.opacity}draw(t){const n=this.options.setContext(this.getContext());let r=this.opacity;if(!r)return;this._updateAnimationTarget(n);const i={width:this.width,height:this.height},a={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const o=Ft(n.padding),s=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&s&&(t.save(),t.globalAlpha=r,this.drawBackground(a,t,i,n),Q4(t,n.textDirection),a.y+=o.top,this.drawTitle(a,t,n),this.drawBody(a,t,n),this.drawFooter(a,t,n),q4(t,n.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,n){const r=this._active,i=t.map(({datasetIndex:s,index:l})=>{const u=this.chart.getDatasetMeta(s);if(!u)throw new Error("Cannot find a dataset at index "+s);return{datasetIndex:s,element:u.data[l],index:l}}),a=!Vl(r,i),o=this._positionChanged(i,n);(a||o)&&(this._active=i,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,n,r=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const i=this.options,a=this._active||[],o=this._getActiveElements(t,a,n,r),s=this._positionChanged(o,t),l=n||!Vl(o,a)||s;return l&&(this._active=o,(i.enabled||i.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,n))),l}_getActiveElements(t,n,r,i){const a=this.options;if(t.type==="mouseout")return[];if(!i)return n.filter(s=>this.chart.data.datasets[s.datasetIndex]&&this.chart.getDatasetMeta(s.datasetIndex).controller.getParsed(s.index)!==void 0);const o=this.chart.getElementsAtEventForMode(t,a.mode,a,r);return a.reverse&&o.reverse(),o}_positionChanged(t,n){const{caretX:r,caretY:i,options:a}=this,o=La[a.position].call(this,t,n);return o!==!1&&(r!==o.x||i!==o.y)}}ie(Fd,"positioners",La);var pk={id:"tooltip",_element:Fd,positioners:La,afterInit(e,t,n){n&&(e.tooltip=new Fd({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(e.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:p3},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const bk=(e,t,n,r)=>(typeof t=="string"?(n=e.push(t)-1,r.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function vk(e,t,n,r){const i=e.indexOf(t);if(i===-1)return bk(e,t,n,r);const a=e.lastIndexOf(t);return i!==a?n:i}const yk=(e,t)=>e===null?null:en(Math.round(e),0,t);function Qp(e){const t=this.getLabels();return e>=0&&e<t.length?t[e]:e}class Pd extends Ii{constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const n=this._addedLabels;if(n.length){const r=this.getLabels();for(const{index:i,label:a}of n)r[i]===a&&r.splice(i,1);this._addedLabels=[]}super.init(t)}parse(t,n){if(Je(t))return null;const r=this.getLabels();return n=isFinite(n)&&r[n]===t?n:vk(r,t,Ce(n,t),this._addedLabels),yk(n,r.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let{min:r,max:i}=this.getMinMax(!0);this.options.bounds==="ticks"&&(t||(r=0),n||(i=this.getLabels().length-1)),this.min=r,this.max=i}buildTicks(){const t=this.min,n=this.max,r=this.options.offset,i=[];let a=this.getLabels();a=t===0&&n===a.length-1?a:a.slice(t,n+1),this._valueRange=Math.max(a.length-(r?0:1),1),this._startValue=this.min-(r?.5:0);for(let o=t;o<=n;o++)i.push({value:o});return i}getLabelForValue(t){return Qp.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return typeof t!="number"&&(t=this.parse(t)),t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}ie(Pd,"id","category"),ie(Pd,"defaults",{ticks:{callback:Qp}});function xk(e,t){const n=[],{bounds:i,step:a,min:o,max:s,precision:l,count:u,maxTicks:c,maxDigits:d,includeBounds:h}=e,f=a||1,g=c-1,{min:m,max:p}=t,b=!Je(o),v=!Je(s),y=!Je(u),w=(p-m)/(d+1);let C=rp((p-m)/g/f)*f,E,I,D,_;if(C<1e-14&&!b&&!v)return[{value:m},{value:p}];_=Math.ceil(p/C)-Math.floor(m/C),_>g&&(C=rp(_*C/g/f)*f),Je(l)||(E=Math.pow(10,l),C=Math.ceil(C*E)/E),i==="ticks"?(I=Math.floor(m/C)*C,D=Math.ceil(p/C)*C):(I=m,D=p),b&&v&&a&&aP((s-o)/a,C/1e3)?(_=Math.round(Math.min((s-o)/C,c)),C=(s-o)/_,I=o,D=s):y?(I=b?o:I,D=v?s:D,_=u-1,C=(D-I)/_):(_=(D-I)/C,Ua(_,Math.round(_),C/1e3)?_=Math.round(_):_=Math.ceil(_));const F=Math.max(ip(C),ip(I));E=Math.pow(10,Je(l)?F:l),I=Math.round(I*E)/E,D=Math.round(D*E)/E;let $=0;for(b&&(h&&I!==o?(n.push({value:o}),I<o&&$++,Ua(Math.round((I+$*C)*E)/E,o,qp(o,w,e))&&$++):I<o&&$++);$<_;++$){const P=Math.round((I+$*C)*E)/E;if(v&&P>s)break;n.push({value:P})}return v&&h&&D!==s?n.length&&Ua(n[n.length-1].value,s,qp(s,w,e))?n[n.length-1].value=s:n.push({value:s}):(!v||D===s)&&n.push({value:D}),n}function qp(e,t,{horizontal:n,minRotation:r}){const i=Nn(r),a=(n?Math.sin(i):Math.cos(i))||.001,o=.75*t*(""+e).length;return Math.min(t/a,o)}class Xl extends Ii{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,n){return Je(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:n,maxDefined:r}=this.getUserBounds();let{min:i,max:a}=this;const o=l=>i=n?i:l,s=l=>a=r?a:l;if(t){const l=ca(i),u=ca(a);l<0&&u<0?s(0):l>0&&u>0&&o(0)}if(i===a){let l=a===0?1:Math.abs(a*.05);s(a+l),t||o(i-l)}this.min=i,this.max=a}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:n,stepSize:r}=t,i;return r?(i=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,i>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${i} ticks. Limiting to 1000.`),i=1e3)):(i=this.computeTickLimit(),n=n||11),n&&(i=Math.min(n,i)),i}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,n=t.ticks;let r=this.getTickLimit();r=Math.max(2,r);const i={maxTicks:r,bounds:t.bounds,min:t.min,max:t.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},a=this._range||this,o=xk(i,a);return t.bounds==="ticks"&&L4(o,this,"value"),t.reverse?(o.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),o}configure(){const t=this.ticks;let n=this.min,r=this.max;if(super.configure(),this.options.offset&&t.length){const i=(r-n)/Math.max(t.length-1,1)/2;n-=i,r+=i}this._startValue=n,this._endValue=r,this._valueRange=r-n}getLabelForValue(t){return xu(t,this.chart.options.locale,this.options.ticks.format)}}class Td extends Xl{determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=xt(t)?t:0,this.max=xt(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),n=t?this.width:this.height,r=Nn(this.options.ticks.minRotation),i=(t?Math.sin(r):Math.cos(r))||.001,a=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,a.lineHeight/i))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}ie(Td,"id","linear"),ie(Td,"defaults",{ticks:{callback:Cu.formatters.numeric}});const Po=e=>Math.floor(Ir(e)),Yr=(e,t)=>Math.pow(10,Po(e)+t);function e0(e){return e/Math.pow(10,Po(e))===1}function t0(e,t,n){const r=Math.pow(10,n),i=Math.floor(e/r);return Math.ceil(t/r)-i}function Ck(e,t){const n=t-e;let r=Po(n);for(;t0(e,t,r)>10;)r++;for(;t0(e,t,r)<10;)r--;return Math.min(r,Po(e))}function wk(e,{min:t,max:n}){t=Kt(e.min,t);const r=[],i=Po(t);let a=Ck(t,n),o=a<0?Math.pow(10,Math.abs(a)):1;const s=Math.pow(10,a),l=i>a?Math.pow(10,i):0,u=Math.round((t-l)*o)/o,c=Math.floor((t-l)/s/10)*s*10;let d=Math.floor((u-c)/Math.pow(10,a)),h=Kt(e.min,Math.round((l+c+d*Math.pow(10,a))*o)/o);for(;h<n;)r.push({value:h,major:e0(h),significand:d}),d>=10?d=d<15?15:20:d++,d>=20&&(a++,d=2,o=a>=0?1:o),h=Math.round((l+c+d*Math.pow(10,a))*o)/o;const f=Kt(e.max,h);return r.push({value:f,major:e0(f),significand:d}),r}class n0 extends Ii{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,n){const r=Xl.prototype.parse.apply(this,[t,n]);if(r===0){this._zero=!0;return}return xt(r)&&r>0?r:null}determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=xt(t)?Math.max(0,t):null,this.max=xt(n)?Math.max(0,n):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!xt(this._userMin)&&(this.min=t===Yr(this.min,0)?Yr(this.min,-1):Yr(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let r=this.min,i=this.max;const a=s=>r=t?r:s,o=s=>i=n?i:s;r===i&&(r<=0?(a(1),o(10)):(a(Yr(r,-1)),o(Yr(i,1)))),r<=0&&a(Yr(i,-1)),i<=0&&o(Yr(r,1)),this.min=r,this.max=i}buildTicks(){const t=this.options,n={min:this._userMin,max:this._userMax},r=wk(n,this);return t.bounds==="ticks"&&L4(r,this,"value"),t.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}getLabelForValue(t){return t===void 0?"0":xu(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=Ir(t),this._valueRange=Ir(this.max)-Ir(t)}getPixelForValue(t){return(t===void 0||t===0)&&(t=this.min),t===null||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(Ir(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const n=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+n*this._valueRange)}}ie(n0,"id","logarithmic"),ie(n0,"defaults",{ticks:{callback:Cu.formatters.logarithmic,major:{enabled:!0}}});function Md(e){const t=e.ticks;if(t.display&&e.display){const n=Ft(t.backdropPadding);return Ce(t.font&&t.font.size,ot.font.size)+n.height}return 0}function Dk(e,t,n){return n=at(n)?n:[n],{w:DP(e,t.string,n),h:n.length*t.lineHeight}}function r0(e,t,n,r,i){return e===r||e===i?{start:t-n/2,end:t+n/2}:e<r||e>i?{start:t-n,end:t}:{start:t,end:t+n}}function Sk(e){const t={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},n=Object.assign({},t),r=[],i=[],a=e._pointLabels.length,o=e.options.pointLabels,s=o.centerPointLabels?Qe/a:0;for(let l=0;l<a;l++){const u=o.setContext(e.getPointLabelContext(l));i[l]=u.padding;const c=e.getPointPosition(l,e.drawingArea+i[l],s),d=pt(u.font),h=Dk(e.ctx,d,e._pointLabels[l]);r[l]=h;const f=xn(e.getIndexAngle(l)+s),g=Math.round(ih(f)),m=r0(g,c.x,h.w,0,180),p=r0(g,c.y,h.h,90,270);Ek(n,t,f,m,p)}e.setCenterPoint(t.l-n.l,n.r-t.r,t.t-n.t,n.b-t.b),e._pointLabelItems=$k(e,r,i)}function Ek(e,t,n,r,i){const a=Math.abs(Math.sin(n)),o=Math.abs(Math.cos(n));let s=0,l=0;r.start<t.l?(s=(t.l-r.start)/a,e.l=Math.min(e.l,t.l-s)):r.end>t.r&&(s=(r.end-t.r)/a,e.r=Math.max(e.r,t.r+s)),i.start<t.t?(l=(t.t-i.start)/o,e.t=Math.min(e.t,t.t-l)):i.end>t.b&&(l=(i.end-t.b)/o,e.b=Math.max(e.b,t.b+l))}function Ik(e,t,n){const r=e.drawingArea,{extra:i,additionalAngle:a,padding:o,size:s}=n,l=e.getPointPosition(t,r+i+o,a),u=Math.round(ih(xn(l.angle+dt))),c=Fk(l.y,s.h,u),d=Rk(u),h=Ak(l.x,s.w,d);return{visible:!0,x:l.x,y:c,textAlign:d,left:h,top:c,right:h+s.w,bottom:c+s.h}}function _k(e,t){if(!t)return!0;const{left:n,top:r,right:i,bottom:a}=e;return!(sr({x:n,y:r},t)||sr({x:n,y:a},t)||sr({x:i,y:r},t)||sr({x:i,y:a},t))}function $k(e,t,n){const r=[],i=e._pointLabels.length,a=e.options,{centerPointLabels:o,display:s}=a.pointLabels,l={extra:Md(a)/2,additionalAngle:o?Qe/i:0};let u;for(let c=0;c<i;c++){l.padding=n[c],l.size=t[c];const d=Ik(e,c,l);r.push(d),s==="auto"&&(d.visible=_k(d,u),d.visible&&(u=d))}return r}function Rk(e){return e===0||e===180?"center":e<180?"left":"right"}function Ak(e,t,n){return n==="right"?e-=t:n==="center"&&(e-=t/2),e}function Fk(e,t,n){return n===90||n===270?e-=t/2:(n>270||n<90)&&(e-=t),e}function Pk(e,t,n){const{left:r,top:i,right:a,bottom:o}=n,{backdropColor:s}=t;if(!Je(s)){const l=ta(t.borderRadius),u=Ft(t.backdropPadding);e.fillStyle=s;const c=r-u.left,d=i-u.top,h=a-r+u.width,f=o-i+u.height;Object.values(l).some(g=>g!==0)?(e.beginPath(),Wl(e,{x:c,y:d,w:h,h:f,radius:l}),e.fill()):e.fillRect(c,d,h,f)}}function Tk(e,t){const{ctx:n,options:{pointLabels:r}}=e;for(let i=t-1;i>=0;i--){const a=e._pointLabelItems[i];if(!a.visible)continue;const o=r.setContext(e.getPointLabelContext(i));Pk(n,o,a);const s=pt(o.font),{x:l,y:u,textAlign:c}=a;xi(n,e._pointLabels[i],l,u+s.lineHeight/2,s,{color:o.color,textAlign:c,textBaseline:"middle"})}}function b3(e,t,n,r){const{ctx:i}=e;if(n)i.arc(e.xCenter,e.yCenter,t,0,Ke);else{let a=e.getPointPosition(0,t);i.moveTo(a.x,a.y);for(let o=1;o<r;o++)a=e.getPointPosition(o,t),i.lineTo(a.x,a.y)}}function Mk(e,t,n,r,i){const a=e.ctx,o=t.circular,{color:s,lineWidth:l}=t;!o&&!r||!s||!l||n<0||(a.save(),a.strokeStyle=s,a.lineWidth=l,a.setLineDash(i.dash),a.lineDashOffset=i.dashOffset,a.beginPath(),b3(e,n,o,r),a.closePath(),a.stroke(),a.restore())}function kk(e,t,n){return Nr(e,{label:n,index:t,type:"pointLabel"})}class Ts extends Xl{constructor(t){super(t),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const t=this._padding=Ft(Md(this.options)/2),n=this.width=this.maxWidth-t.width,r=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+n/2+t.left),this.yCenter=Math.floor(this.top+r/2+t.top),this.drawingArea=Math.floor(Math.min(n,r)/2)}determineDataLimits(){const{min:t,max:n}=this.getMinMax(!1);this.min=xt(t)&&!isNaN(t)?t:0,this.max=xt(n)&&!isNaN(n)?n:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/Md(this.options))}generateTickLabels(t){Xl.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map((n,r)=>{const i=Ze(this.options.pointLabels.callback,[n,r],this);return i||i===0?i:""}).filter((n,r)=>this.chart.getDataVisibility(r))}fit(){const t=this.options;t.display&&t.pointLabels.display?Sk(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,n,r,i){this.xCenter+=Math.floor((t-n)/2),this.yCenter+=Math.floor((r-i)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,n,r,i))}getIndexAngle(t){const n=Ke/(this._pointLabels.length||1),r=this.options.startAngle||0;return xn(t*n+Nn(r))}getDistanceFromCenterForValue(t){if(Je(t))return NaN;const n=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*n:(t-this.min)*n}getValueForDistanceFromCenter(t){if(Je(t))return NaN;const n=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-n:this.min+n}getPointLabelContext(t){const n=this._pointLabels||[];if(t>=0&&t<n.length){const r=n[t];return kk(this.getContext(),t,r)}}getPointPosition(t,n,r=0){const i=this.getIndexAngle(t)-dt+r;return{x:Math.cos(i)*n+this.xCenter,y:Math.sin(i)*n+this.yCenter,angle:i}}getPointPositionForValue(t,n){return this.getPointPosition(t,this.getDistanceFromCenterForValue(n))}getBasePosition(t){return this.getPointPositionForValue(t||0,this.getBaseValue())}getPointLabelPosition(t){const{left:n,top:r,right:i,bottom:a}=this._pointLabelItems[t];return{left:n,top:r,right:i,bottom:a}}drawBackground(){const{backgroundColor:t,grid:{circular:n}}=this.options;if(t){const r=this.ctx;r.save(),r.beginPath(),b3(this,this.getDistanceFromCenterForValue(this._endValue),n,this._pointLabels.length),r.closePath(),r.fillStyle=t,r.fill(),r.restore()}}drawGrid(){const t=this.ctx,n=this.options,{angleLines:r,grid:i,border:a}=n,o=this._pointLabels.length;let s,l,u;if(n.pointLabels.display&&Tk(this,o),i.display&&this.ticks.forEach((c,d)=>{if(d!==0||d===0&&this.min<0){l=this.getDistanceFromCenterForValue(c.value);const h=this.getContext(d),f=i.setContext(h),g=a.setContext(h);Mk(this,f,l,o,g)}}),r.display){for(t.save(),s=o-1;s>=0;s--){const c=r.setContext(this.getPointLabelContext(s)),{color:d,lineWidth:h}=c;!h||!d||(t.lineWidth=h,t.strokeStyle=d,t.setLineDash(c.borderDash),t.lineDashOffset=c.borderDashOffset,l=this.getDistanceFromCenterForValue(n.ticks.reverse?this.min:this.max),u=this.getPointPosition(s,l),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(u.x,u.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,n=this.options,r=n.ticks;if(!r.display)return;const i=this.getIndexAngle(0);let a,o;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(i),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((s,l)=>{if(l===0&&this.min>=0&&!n.reverse)return;const u=r.setContext(this.getContext(l)),c=pt(u.font);if(a=this.getDistanceFromCenterForValue(this.ticks[l].value),u.showLabelBackdrop){t.font=c.string,o=t.measureText(s.label).width,t.fillStyle=u.backdropColor;const d=Ft(u.backdropPadding);t.fillRect(-o/2-d.left,-a-c.size/2-d.top,o+d.width,c.size+d.height)}xi(t,s.label,0,-a,c,{color:u.color,strokeColor:u.textStrokeColor,strokeWidth:u.textStrokeWidth})}),t.restore()}drawTitle(){}}ie(Ts,"id","radialLinear"),ie(Ts,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Cu.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(t){return t},padding:5,centerPointLabels:!1}}),ie(Ts,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),ie(Ts,"descriptors",{angleLines:{_fallback:"grid"}});const Su={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Wt=Object.keys(Su);function i0(e,t){return e-t}function a0(e,t){if(Je(t))return null;const n=e._adapter,{parser:r,round:i,isoWeekday:a}=e._parseOpts;let o=t;return typeof r=="function"&&(o=r(o)),xt(o)||(o=typeof r=="string"?n.parse(o,r):n.parse(o)),o===null?null:(i&&(o=i==="week"&&(jl(a)||a===!0)?n.startOf(o,"isoWeek",a):n.startOf(o,i)),+o)}function o0(e,t,n,r){const i=Wt.length;for(let a=Wt.indexOf(e);a<i-1;++a){const o=Su[Wt[a]],s=o.steps?o.steps:Number.MAX_SAFE_INTEGER;if(o.common&&Math.ceil((n-t)/(s*o.size))<=r)return Wt[a]}return Wt[i-1]}function Bk(e,t,n,r,i){for(let a=Wt.length-1;a>=Wt.indexOf(n);a--){const o=Wt[a];if(Su[o].common&&e._adapter.diff(i,r,o)>=t-1)return o}return Wt[n?Wt.indexOf(n):0]}function Vk(e){for(let t=Wt.indexOf(e)+1,n=Wt.length;t<n;++t)if(Su[Wt[t]].common)return Wt[t]}function s0(e,t,n){if(!n)e[t]=!0;else if(n.length){const{lo:r,hi:i}=ah(n,t),a=n[r]>=t?n[r]:n[i];e[a]=!0}}function Ok(e,t,n,r){const i=e._adapter,a=+i.startOf(t[0].value,r),o=t[t.length-1].value;let s,l;for(s=a;s<=o;s=+i.add(s,1,r))l=n[s],l>=0&&(t[l].major=!0);return t}function l0(e,t,n){const r=[],i={},a=t.length;let o,s;for(o=0;o<a;++o)s=t[o],i[s]=o,r.push({value:s,major:!1});return a===0||!n?r:Ok(e,r,i,n)}class Yl extends Ii{constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,n={}){const r=t.time||(t.time={}),i=this._adapter=new FT._date(t.adapters.date);i.init(n),Ya(r.displayFormats,i.formats()),this._parseOpts={parser:r.parser,round:r.round,isoWeekday:r.isoWeekday},super.init(t),this._normalized=n.normalized}parse(t,n){return t===void 0?null:a0(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,n=this._adapter,r=t.time.unit||"day";let{min:i,max:a,minDefined:o,maxDefined:s}=this.getUserBounds();function l(u){!o&&!isNaN(u.min)&&(i=Math.min(i,u.min)),!s&&!isNaN(u.max)&&(a=Math.max(a,u.max))}(!o||!s)&&(l(this._getLabelBounds()),(t.bounds!=="ticks"||t.ticks.source!=="labels")&&l(this.getMinMax(!1))),i=xt(i)&&!isNaN(i)?i:+n.startOf(Date.now(),r),a=xt(a)&&!isNaN(a)?a:+n.endOf(Date.now(),r)+1,this.min=Math.min(i,a-1),this.max=Math.max(i+1,a)}_getLabelBounds(){const t=this.getLabelTimestamps();let n=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;return t.length&&(n=t[0],r=t[t.length-1]),{min:n,max:r}}buildTicks(){const t=this.options,n=t.time,r=t.ticks,i=r.source==="labels"?this.getLabelTimestamps():this._generate();t.bounds==="ticks"&&i.length&&(this.min=this._userMin||i[0],this.max=this._userMax||i[i.length-1]);const a=this.min,o=this.max,s=uP(i,a,o);return this._unit=n.unit||(r.autoSkip?o0(n.minUnit,this.min,this.max,this._getLabelCapacity(a)):Bk(this,s.length,n.minUnit,this.min,this.max)),this._majorUnit=!r.major.enabled||this._unit==="year"?void 0:Vk(this._unit),this.initOffsets(i),t.reverse&&s.reverse(),l0(this,s,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t=[]){let n=0,r=0,i,a;this.options.offset&&t.length&&(i=this.getDecimalForValue(t[0]),t.length===1?n=1-i:n=(this.getDecimalForValue(t[1])-i)/2,a=this.getDecimalForValue(t[t.length-1]),t.length===1?r=a:r=(a-this.getDecimalForValue(t[t.length-2]))/2);const o=t.length<3?.5:.25;n=en(n,0,o),r=en(r,0,o),this._offsets={start:n,end:r,factor:1/(n+1+r)}}_generate(){const t=this._adapter,n=this.min,r=this.max,i=this.options,a=i.time,o=a.unit||o0(a.minUnit,n,r,this._getLabelCapacity(n)),s=Ce(i.ticks.stepSize,1),l=o==="week"?a.isoWeekday:!1,u=jl(l)||l===!0,c={};let d=n,h,f;if(u&&(d=+t.startOf(d,"isoWeek",l)),d=+t.startOf(d,u?"day":o),t.diff(r,n,o)>1e5*s)throw new Error(n+" and "+r+" are too far apart with stepSize of "+s+" "+o);const g=i.ticks.source==="data"&&this.getDataTimestamps();for(h=d,f=0;h<r;h=+t.add(h,s,o),f++)s0(c,h,g);return(h===r||i.bounds==="ticks"||f===1)&&s0(c,h,g),Object.keys(c).sort(i0).map(m=>+m)}getLabelForValue(t){const n=this._adapter,r=this.options.time;return r.tooltipFormat?n.format(t,r.tooltipFormat):n.format(t,r.displayFormats.datetime)}format(t,n){const i=this.options.time.displayFormats,a=this._unit,o=n||i[a];return this._adapter.format(t,o)}_tickFormatFunction(t,n,r,i){const a=this.options,o=a.ticks.callback;if(o)return Ze(o,[t,n,r],this);const s=a.time.displayFormats,l=this._unit,u=this._majorUnit,c=l&&s[l],d=u&&s[u],h=r[n],f=u&&d&&h&&h.major;return this._adapter.format(t,i||(f?d:c))}generateTickLabels(t){let n,r,i;for(n=0,r=t.length;n<r;++n)i=t[n],i.label=this._tickFormatFunction(i.value,n,t)}getDecimalForValue(t){return t===null?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const n=this._offsets,r=this.getDecimalForValue(t);return this.getPixelForDecimal((n.start+r)*n.factor)}getValueForPixel(t){const n=this._offsets,r=this.getDecimalForPixel(t)/n.factor-n.end;return this.min+r*(this.max-this.min)}_getLabelSize(t){const n=this.options.ticks,r=this.ctx.measureText(t).width,i=Nn(this.isHorizontal()?n.maxRotation:n.minRotation),a=Math.cos(i),o=Math.sin(i),s=this._resolveTickFontOptions(0).size;return{w:r*a+s*o,h:r*o+s*a}}_getLabelCapacity(t){const n=this.options.time,r=n.displayFormats,i=r[n.unit]||r.millisecond,a=this._tickFormatFunction(t,0,l0(this,[t],this._majorUnit),i),o=this._getLabelSize(a),s=Math.floor(this.isHorizontal()?this.width/o.w:this.height/o.h)-1;return s>0?s:1}getDataTimestamps(){let t=this._cache.data||[],n,r;if(t.length)return t;const i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(n=0,r=i.length;n<r;++n)t=t.concat(i[n].controller.getAllParsedValues(this));return this._cache.data=this.normalize(t)}getLabelTimestamps(){const t=this._cache.labels||[];let n,r;if(t.length)return t;const i=this.getLabels();for(n=0,r=i.length;n<r;++n)t.push(a0(this,i[n]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return dP(t.sort(i0))}}ie(Yl,"id","time"),ie(Yl,"defaults",{bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}});function Ms(e,t,n){let r=0,i=e.length-1,a,o,s,l;n?(t>=e[r].pos&&t<=e[i].pos&&({lo:r,hi:i}=Ed(e,"pos",t)),{pos:a,time:s}=e[r],{pos:o,time:l}=e[i]):(t>=e[r].time&&t<=e[i].time&&({lo:r,hi:i}=Ed(e,"time",t)),{time:a,pos:s}=e[r],{time:o,pos:l}=e[i]);const u=o-a;return u?s+(l-s)*(t-a)/u:s}class u0 extends Yl{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(t);this._minPos=Ms(n,this.min),this._tableRange=Ms(n,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:n,max:r}=this,i=[],a=[];let o,s,l,u,c;for(o=0,s=t.length;o<s;++o)u=t[o],u>=n&&u<=r&&i.push(u);if(i.length<2)return[{time:n,pos:0},{time:r,pos:1}];for(o=0,s=i.length;o<s;++o)c=i[o+1],l=i[o-1],u=i[o],Math.round((c+l)/2)!==u&&a.push({time:u,pos:o/(s-1)});return a}_generate(){const t=this.min,n=this.max;let r=super.getDataTimestamps();return(!r.includes(t)||!r.length)&&r.splice(0,0,t),(!r.includes(n)||r.length===1)&&r.push(n),r.sort((i,a)=>i-a)}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const n=this.getDataTimestamps(),r=this.getLabelTimestamps();return n.length&&r.length?t=this.normalize(n.concat(r)):t=n.length?n:r,t=this._cache.all=t,t}getDecimalForValue(t){return(Ms(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const n=this._offsets,r=this.getDecimalForPixel(t)/n.factor-n.end;return Ms(this._table,r*this._tableRange+this._minPos,!0)}}ie(u0,"id","timeseries"),ie(u0,"defaults",Yl.defaults);const v3="label";function c0(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Nk(e,t){const n=e.options;n&&t&&Object.assign(n,t)}function y3(e,t){e.labels=t}function x3(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:v3;const r=[];e.datasets=t.map(i=>{const a=e.datasets.find(o=>o[n]===i[n]);return!a||!i.data||r.includes(a)?{...i}:(r.push(a),Object.assign(a,i),a)})}function Lk(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:v3;const n={labels:[],datasets:[]};return y3(n,e.labels),x3(n,e.datasets,t),n}function jk(e,t){const{height:n=150,width:r=300,redraw:i=!1,datasetIdKey:a,type:o,data:s,options:l,plugins:u=[],fallbackContent:c,updateMode:d,...h}=e,f=x.useRef(null),g=x.useRef(),m=()=>{f.current&&(g.current=new Du(f.current,{type:o,data:Lk(s,a),options:l&&{...l},plugins:u}),c0(t,g.current))},p=()=>{c0(t,null),g.current&&(g.current.destroy(),g.current=null)};return x.useEffect(()=>{!i&&g.current&&l&&Nk(g.current,l)},[i,l]),x.useEffect(()=>{!i&&g.current&&y3(g.current.config.data,s.labels)},[i,s.labels]),x.useEffect(()=>{!i&&g.current&&s.datasets&&x3(g.current.config.data,s.datasets,a)},[i,s.datasets]),x.useEffect(()=>{g.current&&(i?(p(),setTimeout(m)):g.current.update(d))},[i,l,s.labels,s.datasets,d]),x.useEffect(()=>{g.current&&(p(),setTimeout(m))},[o]),x.useEffect(()=>(m(),()=>p()),[]),x.createElement("canvas",Object.assign({ref:f,role:"img",height:n,width:r},h),c)}const Hk=x.forwardRef(jk);function Wk(e,t){return Du.register(t),x.forwardRef((n,r)=>x.createElement(Hk,Object.assign({},n,{ref:r,type:e})))}const d0=Wk("doughnut",Ba);Du.register(Pd,Td,qs,Na,Oa,lk,pk,ok);const f0=(e,t)=>{var i,a,o,s;const n=e.getVisibleDatasetCount(),r=e.getDatasetMeta(n-1).data.at(0);if(r){const{innerRadius:l}=r.getProps(["innerRadius"]),{ctx:u}=e,c=()=>{var $;const w=[].concat(t),C=w.length,E=u.font;let I=0,D=0,_;for(_=0;_<C;++_)u.font=w[_].font,I=Math.max(u.measureText(w[_].text).width,I),D+=($=w[_].font)==null?void 0:$.lineHeight;return u.font=E,{height:D,width:I}},d=(w,C)=>{let E=document.createElement("div");document.body.appendChild(E),E.style.fontSize=`${C}px`,E.style.position="absolute",E.style.left="-10",E.style.top="-10",E.textContent=w;const I={width:E.clientWidth,height:E.clientHeight};return document.body.removeChild(E),E=null,I},h=c(),f=parseFloat(parseFloat(l).toFixed(2));u.textAlign="center",u.textBaseline="middle";const g=(e.chartArea.left+e.chartArea.right)/2,p=(e.chartArea.top+e.chartArea.bottom)/2-h.height/2;let b;const v=t.length;let y=0;for(b=0;b<v;++b){let w=(i=t[b].font)==null?void 0:i.size,C=(a=t[b].font)==null?void 0:a.lineHeight;const E=typeof t[b].text=="number"?t[b].text.toString():t[b].text;for(;d(E,w).width>f+(t[b].id==="value"?50:0);)w-=1,C=d(E,w).height;E.length>22&&C<14&&(C=18);const I=p+C/2+y,D=typeof t[b].text=="number"?new Intl.NumberFormat("id-ID",{style:"currency",currency:"IDR"}).format(t[b].text):t[b].text;let _=t[b].urlIconDesc?" ":"";if(t[b].percentage!==void 0?_+=`${t[b].percentage}% ${t[b].text}`:_+=D,u.fillStyle=t[b].color,u.font=`${w<10?10:w}px sans-serif`,y+=C,t[b].percentage!==void 0&&t[b].urlIconDesc){const F=((s=(o=t[b])==null?void 0:o.percentage)==null?void 0:s.length)??0,$=new Image;$.src=t[b].urlIconDesc,u.drawImage($,45-(F>6?F+2:F-2.5),I-8,16,14)}u.fillText(_,g,I)}u.restore(),u.save()}},zk=({labels:e,data:t,backgroundColor:n,options:r={},redraw:i,widthInnerDoughnut:a,innerLabels:o,open:s=!0,keyRemoveDataOpen:l="gap",keyLabel:u="title",keyValue:c="originalValue",keyBackground:d="backgroundColor",className:h})=>{const f={labels:e||t.map(m=>m[u]),datasets:[{data:t.map(m=>m[c]),backgroundColor:n||t.map(m=>m[d])}]},g={cutout:a,animation:{duration:i?400:0},plugins:{legend:{display:!1},tooltip:{external(m){let p=document.getElementById("chartjs-tooltip");p||(p=document.createElement("div"),p.id="chartjs-tooltip",p.innerHTML="<table></table>",document.body.appendChild(p));const b=m.tooltip;if(b.opacity===0){p.style.opacity="0";return}p.classList.remove("above","below","no-transform"),b.yAlign?p.classList.add(b.yAlign):p.classList.add("no-transform");const v=t.filter(I=>!I[u]),y=t.filter(I=>I[c]>0&&I[c]<1);if(v.length===1&&y.length===1)return;function w(I){return I.lines}if(b.body){const I=b.title||[];let D=b.body.map(w),_="<thead>";I.forEach($=>{let P="";P+="display: flex",P+="; justify-content: center",P+="; font-weight: 600",P+="; font-size: 14px",_+=`<tr><span style="${P}">${$}</span></tr>`}),_+="</thead><tbody>",D.length>1&&D[0][0]===D[1][0]&&(D=[D[0]]),D.forEach($=>{let P="";P+="color: #0163C8",P+="; padding: 20px",P+="; font-size: 14px";const M=`<span style="${P}">${$}</span>`;_+=`<tr><td>${M}</td></tr>`}),_+="</tbody>";const F=p.querySelector("table");F&&(F.innerHTML=_)}const C=m.chart.canvas.getBoundingClientRect(),E=C.top+window.pageYOffset+b.caretY;p.style.opacity="1",p.style.border="solid 1px #0163C8",p.style.background="white",p.style.height="fit-content",p.style.borderRadius="10px",p.style.position="absolute",p.style.zIndex="10",p.style.padding="4px 0",p.style.left=`${C.left+window.pageXOffset+b.caretX-80}px`,p.style.top=`${E>300&&!s?280:E}px`,p.style.pointerEvents="none"},displayColors:!0,enabled:!1,callbacks:{title(m){const p=t[m[0].dataIndex];return p==null?void 0:p[u]},label(m){const p=t==null?void 0:t[m.dataIndex];let b="Nilai: ";return p&&(b+=p.value),b}}}},elements:{arc:{borderWidth:0}}};return S.jsxs("div",{className:h??"",children:[!s&&S.jsx(d0,{data:f,redraw:i,plugins:[{id:"draw",beforeDraw(m){f0(m,o)}}],options:Object.keys(r).length>1?r:g}),s&&S.jsx(d0,{data:f,redraw:i,plugins:[{id:"draw",beforeDraw(m){f0(m,o.filter(p=>p.id!==l))}}],options:Object.keys(r).length>1?r:g})]})},ks=e=>{let t;const n=new Date(e??new Date);return e&&(t=Bf(new Date(n.setHours(n.getHours()+7)).toISOString().slice(0,10))),t},Gk=({month:e,year:t,type:n=["month","year"],activeType:r="month",minDate:i,maxDate:a,className:o,classNameButton:s,onChange:l,buttonClick:u,id:c="date-picker",idPopover:d="date-picker-popover",floatingOptions:h={},offsetPopover:f=5,zIndexPopper:g=1})=>{const{locale:m}=$n(),p=x.useRef(null),b=ks(i),v=ks(a),y=w=>{var C;typeof l=="function"&&(l({month:w.month,year:w.year}),(C=p.current)==null||C.setShow(!1))};return S.jsxs(S.Fragment,{children:[S.jsx("div",{id:c,onClick:w=>{var C;w.stopPropagation(),(C=p.current)==null||C.handlerShow(w)},className:s,children:typeof u=="function"?u({month:e,year:t}):"Pilih Tanggal"}),S.jsx("div",{className:o??"",children:S.jsx(Ci,{zIndex:g,ref:p,offset:f,id:d,floatingOptions:{placement:"bottom-end",...h},onClick:w=>w.stopPropagation(),children:S.jsx(Jf,{locale:"id-ID",children:S.jsx(bu,{minValue:b,maxValue:v,minDate:i,maxDate:a,activeType:n.length===1?n[0]:r,locale:m,value:ks(`${t}/${e}/1`),createCalendar:Zo,defaultValue:ks(`${t}/${e}/1`),onChange:y,handlerReset:()=>{},handlerSubmit:()=>{},withDateSelect:!1,type:n})})})})]})},Zk=({indeterminate:e,className:t="",classNameContainer:n,...r})=>{const i=x.useRef(null);return x.useEffect(()=>{typeof e=="boolean"&&(i.current.indeterminate=!r.checked&&e)},[i,e]),S.jsx("div",{className:`1ru-flex 1ru-items-center 1ru-h-full ${t??""}`,children:S.jsx(vu,{ref:i,label:"",variants:"blue-700",borderRadius:"full",className:"1ru-flex 1ru-items-center 1ru-h-full",classNameContainer:`1ru-flex 1ru-items-center 1ru-h-full ${n??""}}`,...r,onClick:a=>{a.stopPropagation(),typeof r.onClick=="function"&&r.onClick(a)},type:"checkbox"})})},Xk="_input_ezltz_7",Yk="_error_ezltz_32",vn={"container-xs":"_container-xs_ezltz_1","container-input":"_container-input_ezltz_4",input:Xk,error:Yk,"isset-right-icon":"_isset-right-icon_ezltz_41","isset-left-icon":"_isset-left-icon_ezltz_45","start-icon":"_start-icon_ezltz_49","end-icon":"_end-icon_ezltz_52","label-error":"_label-error_ezltz_55","container-s":"_container-s_ezltz_61"},bh=x.forwardRef(({name:e,classNameContainer:t,id:n,type:r="text",startIcon:i,endIcon:a,error:o,sizeInput:s="xs",classNameLabelError:l,className:u,...c},d)=>{const h={size:{s:vn["container-s"],xs:vn["container-xs"]},variant:{}},f=()=>typeof i=="function"||x.isValidElement(i),g=()=>typeof a=="function"||x.isValidElement(a);return S.jsxs("div",{className:`${h.size[s]} ${t}`,children:[S.jsxs("div",{className:`${vn["container-input"]}`,children:[S.jsxs("div",{className:vn["start-icon"],children:[typeof i=="function"&&i(),x.isValidElement(i)&&i]}),S.jsx("input",{id:n??e,className:`${vn.input} ${o?vn.error:""}
|
172
|
+
`):e}function uM(e,t){const{element:n,datasetIndex:r,index:i}=t,a=e.getDatasetMeta(r).controller,{label:o,value:s}=a.getLabelAndValue(i);return{chart:e,label:o,parsed:a.getParsed(i),raw:e.data.datasets[r].data[i],formattedValue:s,dataset:a.getDataset(),dataIndex:i,datasetIndex:r,element:n}}function Xp(e,t){const n=e.chart.ctx,{body:r,footer:i,title:a}=e,{boxWidth:o,boxHeight:s}=t,l=pt(t.bodyFont),u=pt(t.titleFont),c=pt(t.footerFont),d=a.length,h=i.length,f=r.length,g=Ft(t.padding);let m=g.height,p=0,b=r.reduce((w,C)=>w+C.before.length+C.lines.length+C.after.length,0);if(b+=e.beforeBody.length+e.afterBody.length,d&&(m+=d*u.lineHeight+(d-1)*t.titleSpacing+t.titleMarginBottom),b){const w=t.displayColors?Math.max(s,l.lineHeight):l.lineHeight;m+=f*w+(b-f)*l.lineHeight+(b-1)*t.bodySpacing}h&&(m+=t.footerMarginTop+h*c.lineHeight+(h-1)*t.footerSpacing);let v=0;const y=function(w){p=Math.max(p,n.measureText(w).width+v)};return n.save(),n.font=u.string,He(e.title,y),n.font=l.string,He(e.beforeBody.concat(e.afterBody),y),v=t.displayColors?o+2+t.boxPadding:0,He(r,w=>{He(w.before,y),He(w.lines,y),He(w.after,y)}),v=0,n.font=c.string,He(e.footer,y),n.restore(),p+=g.width,{width:p,height:m}}function cM(e,t){const{y:n,height:r}=t;return n<r/2?"top":n>e.height-r/2?"bottom":"center"}function dM(e,t,n,r){const{x:i,width:a}=r,o=n.caretSize+n.caretPadding;if(e==="left"&&i+a+o>t.width||e==="right"&&i-a-o<0)return!0}function fM(e,t,n,r){const{x:i,width:a}=n,{width:o,chartArea:{left:s,right:l}}=e;let u="center";return r==="center"?u=i<=(s+l)/2?"left":"right":i<=a/2?u="left":i>=o-a/2&&(u="right"),dM(u,e,t,n)&&(u="center"),u}function Yp(e,t,n){const r=n.yAlign||t.yAlign||cM(e,n);return{xAlign:n.xAlign||t.xAlign||fM(e,t,n,r),yAlign:r}}function hM(e,t){let{x:n,width:r}=e;return t==="right"?n-=r:t==="center"&&(n-=r/2),n}function gM(e,t,n){let{y:r,height:i}=e;return t==="top"?r+=n:t==="bottom"?r-=i+n:r-=i/2,r}function Up(e,t,n,r){const{caretSize:i,caretPadding:a,cornerRadius:o}=e,{xAlign:s,yAlign:l}=n,u=i+a,{topLeft:c,topRight:d,bottomLeft:h,bottomRight:f}=ta(o);let g=hM(t,s);const m=gM(t,l,u);return l==="center"?s==="left"?g+=u:s==="right"&&(g-=u):s==="left"?g-=Math.max(c,h)+i:s==="right"&&(g+=Math.max(d,f)+i),{x:en(g,0,r.width-t.width),y:en(m,0,r.height-t.height)}}function Ps(e,t,n){const r=Ft(n.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-r.right:e.x+r.left}function Jp(e){return Pn([],Kn(e))}function mM(e,t,n){return Nr(e,{tooltip:t,tooltipItems:n,type:"tooltip"})}function Kp(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const p3={beforeTitle:Un,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,r=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(r>0&&t.dataIndex<r)return n[t.dataIndex]}return""},afterTitle:Un,beforeBody:Un,beforeLabel:Un,label(e){if(this&&this.options&&this.options.mode==="dataset")return e.label+": "+e.formattedValue||e.formattedValue;let t=e.dataset.label||"";t&&(t+=": ");const n=e.formattedValue;return Je(n)||(t+=n),t},labelColor(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:n.borderColor,backgroundColor:n.backgroundColor,borderWidth:n.borderWidth,borderDash:n.borderDash,borderDashOffset:n.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:n.pointStyle,rotation:n.rotation}},afterLabel:Un,afterBody:Un,beforeFooter:Un,footer:Un,afterFooter:Un};function Ht(e,t,n,r){const i=e[t].call(n,r);return typeof i>"u"?p3[t].call(n,r):i}class Fd extends Lr{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const n=this.chart,r=this.options.setContext(this.getContext()),i=r.enabled&&n.options.animation&&r.animations,a=new t3(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(a)),a}getContext(){return this.$context||(this.$context=mM(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,n){const{callbacks:r}=n,i=Ht(r,"beforeTitle",this,t),a=Ht(r,"title",this,t),o=Ht(r,"afterTitle",this,t);let s=[];return s=Pn(s,Kn(i)),s=Pn(s,Kn(a)),s=Pn(s,Kn(o)),s}getBeforeBody(t,n){return Jp(Ht(n.callbacks,"beforeBody",this,t))}getBody(t,n){const{callbacks:r}=n,i=[];return He(t,a=>{const o={before:[],lines:[],after:[]},s=Kp(r,a);Pn(o.before,Kn(Ht(s,"beforeLabel",this,a))),Pn(o.lines,Ht(s,"label",this,a)),Pn(o.after,Kn(Ht(s,"afterLabel",this,a))),i.push(o)}),i}getAfterBody(t,n){return Jp(Ht(n.callbacks,"afterBody",this,t))}getFooter(t,n){const{callbacks:r}=n,i=Ht(r,"beforeFooter",this,t),a=Ht(r,"footer",this,t),o=Ht(r,"afterFooter",this,t);let s=[];return s=Pn(s,Kn(i)),s=Pn(s,Kn(a)),s=Pn(s,Kn(o)),s}_createItems(t){const n=this._active,r=this.chart.data,i=[],a=[],o=[];let s=[],l,u;for(l=0,u=n.length;l<u;++l)s.push(uM(this.chart,n[l]));return t.filter&&(s=s.filter((c,d,h)=>t.filter(c,d,h,r))),t.itemSort&&(s=s.sort((c,d)=>t.itemSort(c,d,r))),He(s,c=>{const d=Kp(t.callbacks,c);i.push(Ht(d,"labelColor",this,c)),a.push(Ht(d,"labelPointStyle",this,c)),o.push(Ht(d,"labelTextColor",this,c))}),this.labelColors=i,this.labelPointStyles=a,this.labelTextColors=o,this.dataPoints=s,s}update(t,n){const r=this.options.setContext(this.getContext()),i=this._active;let a,o=[];if(!i.length)this.opacity!==0&&(a={opacity:0});else{const s=La[r.position].call(this,i,this._eventPosition);o=this._createItems(r),this.title=this.getTitle(o,r),this.beforeBody=this.getBeforeBody(o,r),this.body=this.getBody(o,r),this.afterBody=this.getAfterBody(o,r),this.footer=this.getFooter(o,r);const l=this._size=Xp(this,r),u=Object.assign({},s,l),c=Yp(this.chart,r,u),d=Up(r,u,c,this.chart);this.xAlign=c.xAlign,this.yAlign=c.yAlign,a={opacity:1,x:d.x,y:d.y,width:l.width,height:l.height,caretX:s.x,caretY:s.y}}this._tooltipItems=o,this.$context=void 0,a&&this._resolveAnimations().update(this,a),t&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(t,n,r,i){const a=this.getCaretPosition(t,r,i);n.lineTo(a.x1,a.y1),n.lineTo(a.x2,a.y2),n.lineTo(a.x3,a.y3)}getCaretPosition(t,n,r){const{xAlign:i,yAlign:a}=this,{caretSize:o,cornerRadius:s}=r,{topLeft:l,topRight:u,bottomLeft:c,bottomRight:d}=ta(s),{x:h,y:f}=t,{width:g,height:m}=n;let p,b,v,y,w,C;return a==="center"?(w=f+m/2,i==="left"?(p=h,b=p-o,y=w+o,C=w-o):(p=h+g,b=p+o,y=w-o,C=w+o),v=p):(i==="left"?b=h+Math.max(l,c)+o:i==="right"?b=h+g-Math.max(u,d)-o:b=this.caretX,a==="top"?(y=f,w=y-o,p=b-o,v=b+o):(y=f+m,w=y+o,p=b+o,v=b-o),C=y),{x1:p,x2:b,x3:v,y1:y,y2:w,y3:C}}drawTitle(t,n,r){const i=this.title,a=i.length;let o,s,l;if(a){const u=na(r.rtl,this.x,this.width);for(t.x=Ps(this,r.titleAlign,r),n.textAlign=u.textAlign(r.titleAlign),n.textBaseline="middle",o=pt(r.titleFont),s=r.titleSpacing,n.fillStyle=r.titleColor,n.font=o.string,l=0;l<a;++l)n.fillText(i[l],u.x(t.x),t.y+o.lineHeight/2),t.y+=o.lineHeight+s,l+1===a&&(t.y+=r.titleMarginBottom-s)}}_drawColorBox(t,n,r,i,a){const o=this.labelColors[r],s=this.labelPointStyles[r],{boxHeight:l,boxWidth:u}=a,c=pt(a.bodyFont),d=Ps(this,"left",a),h=i.x(d),f=l<c.lineHeight?(c.lineHeight-l)/2:0,g=n.y+f;if(a.usePointStyle){const m={radius:Math.min(u,l)/2,pointStyle:s.pointStyle,rotation:s.rotation,borderWidth:1},p=i.leftForLtr(h,u)+u/2,b=g+l/2;t.strokeStyle=a.multiKeyBackground,t.fillStyle=a.multiKeyBackground,_d(t,m,p,b),t.strokeStyle=o.borderColor,t.fillStyle=o.backgroundColor,_d(t,m,p,b)}else{t.lineWidth=Re(o.borderWidth)?Math.max(...Object.values(o.borderWidth)):o.borderWidth||1,t.strokeStyle=o.borderColor,t.setLineDash(o.borderDash||[]),t.lineDashOffset=o.borderDashOffset||0;const m=i.leftForLtr(h,u),p=i.leftForLtr(i.xPlus(h,1),u-2),b=ta(o.borderRadius);Object.values(b).some(v=>v!==0)?(t.beginPath(),t.fillStyle=a.multiKeyBackground,Wl(t,{x:m,y:g,w:u,h:l,radius:b}),t.fill(),t.stroke(),t.fillStyle=o.backgroundColor,t.beginPath(),Wl(t,{x:p,y:g+1,w:u-2,h:l-2,radius:b}),t.fill()):(t.fillStyle=a.multiKeyBackground,t.fillRect(m,g,u,l),t.strokeRect(m,g,u,l),t.fillStyle=o.backgroundColor,t.fillRect(p,g+1,u-2,l-2))}t.fillStyle=this.labelTextColors[r]}drawBody(t,n,r){const{body:i}=this,{bodySpacing:a,bodyAlign:o,displayColors:s,boxHeight:l,boxWidth:u,boxPadding:c}=r,d=pt(r.bodyFont);let h=d.lineHeight,f=0;const g=na(r.rtl,this.x,this.width),m=function(D){n.fillText(D,g.x(t.x+f),t.y+h/2),t.y+=h+a},p=g.textAlign(o);let b,v,y,w,C,E,I;for(n.textAlign=o,n.textBaseline="middle",n.font=d.string,t.x=Ps(this,p,r),n.fillStyle=r.bodyColor,He(this.beforeBody,m),f=s&&p!=="right"?o==="center"?u/2+c:u+2+c:0,w=0,E=i.length;w<E;++w){for(b=i[w],v=this.labelTextColors[w],n.fillStyle=v,He(b.before,m),y=b.lines,s&&y.length&&(this._drawColorBox(n,t,w,g,r),h=Math.max(d.lineHeight,l)),C=0,I=y.length;C<I;++C)m(y[C]),h=d.lineHeight;He(b.after,m)}f=0,h=d.lineHeight,He(this.afterBody,m),t.y-=a}drawFooter(t,n,r){const i=this.footer,a=i.length;let o,s;if(a){const l=na(r.rtl,this.x,this.width);for(t.x=Ps(this,r.footerAlign,r),t.y+=r.footerMarginTop,n.textAlign=l.textAlign(r.footerAlign),n.textBaseline="middle",o=pt(r.footerFont),n.fillStyle=r.footerColor,n.font=o.string,s=0;s<a;++s)n.fillText(i[s],l.x(t.x),t.y+o.lineHeight/2),t.y+=o.lineHeight+r.footerSpacing}}drawBackground(t,n,r,i){const{xAlign:a,yAlign:o}=this,{x:s,y:l}=t,{width:u,height:c}=r,{topLeft:d,topRight:h,bottomLeft:f,bottomRight:g}=ta(i.cornerRadius);n.fillStyle=i.backgroundColor,n.strokeStyle=i.borderColor,n.lineWidth=i.borderWidth,n.beginPath(),n.moveTo(s+d,l),o==="top"&&this.drawCaret(t,n,r,i),n.lineTo(s+u-h,l),n.quadraticCurveTo(s+u,l,s+u,l+h),o==="center"&&a==="right"&&this.drawCaret(t,n,r,i),n.lineTo(s+u,l+c-g),n.quadraticCurveTo(s+u,l+c,s+u-g,l+c),o==="bottom"&&this.drawCaret(t,n,r,i),n.lineTo(s+f,l+c),n.quadraticCurveTo(s,l+c,s,l+c-f),o==="center"&&a==="left"&&this.drawCaret(t,n,r,i),n.lineTo(s,l+d),n.quadraticCurveTo(s,l,s+d,l),n.closePath(),n.fill(),i.borderWidth>0&&n.stroke()}_updateAnimationTarget(t){const n=this.chart,r=this.$animations,i=r&&r.x,a=r&&r.y;if(i||a){const o=La[t.position].call(this,this._active,this._eventPosition);if(!o)return;const s=this._size=Xp(this,t),l=Object.assign({},o,this._size),u=Yp(n,t,l),c=Up(t,l,u,n);(i._to!==c.x||a._to!==c.y)&&(this.xAlign=u.xAlign,this.yAlign=u.yAlign,this.width=s.width,this.height=s.height,this.caretX=o.x,this.caretY=o.y,this._resolveAnimations().update(this,c))}}_willRender(){return!!this.opacity}draw(t){const n=this.options.setContext(this.getContext());let r=this.opacity;if(!r)return;this._updateAnimationTarget(n);const i={width:this.width,height:this.height},a={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const o=Ft(n.padding),s=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&s&&(t.save(),t.globalAlpha=r,this.drawBackground(a,t,i,n),Q4(t,n.textDirection),a.y+=o.top,this.drawTitle(a,t,n),this.drawBody(a,t,n),this.drawFooter(a,t,n),q4(t,n.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,n){const r=this._active,i=t.map(({datasetIndex:s,index:l})=>{const u=this.chart.getDatasetMeta(s);if(!u)throw new Error("Cannot find a dataset at index "+s);return{datasetIndex:s,element:u.data[l],index:l}}),a=!Vl(r,i),o=this._positionChanged(i,n);(a||o)&&(this._active=i,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,n,r=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const i=this.options,a=this._active||[],o=this._getActiveElements(t,a,n,r),s=this._positionChanged(o,t),l=n||!Vl(o,a)||s;return l&&(this._active=o,(i.enabled||i.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,n))),l}_getActiveElements(t,n,r,i){const a=this.options;if(t.type==="mouseout")return[];if(!i)return n.filter(s=>this.chart.data.datasets[s.datasetIndex]&&this.chart.getDatasetMeta(s.datasetIndex).controller.getParsed(s.index)!==void 0);const o=this.chart.getElementsAtEventForMode(t,a.mode,a,r);return a.reverse&&o.reverse(),o}_positionChanged(t,n){const{caretX:r,caretY:i,options:a}=this,o=La[a.position].call(this,t,n);return o!==!1&&(r!==o.x||i!==o.y)}}ie(Fd,"positioners",La);var pM={id:"tooltip",_element:Fd,positioners:La,afterInit(e,t,n){n&&(e.tooltip=new Fd({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(e.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:p3},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const bM=(e,t,n,r)=>(typeof t=="string"?(n=e.push(t)-1,r.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function vM(e,t,n,r){const i=e.indexOf(t);if(i===-1)return bM(e,t,n,r);const a=e.lastIndexOf(t);return i!==a?n:i}const yM=(e,t)=>e===null?null:en(Math.round(e),0,t);function Qp(e){const t=this.getLabels();return e>=0&&e<t.length?t[e]:e}class Pd extends Ii{constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const n=this._addedLabels;if(n.length){const r=this.getLabels();for(const{index:i,label:a}of n)r[i]===a&&r.splice(i,1);this._addedLabels=[]}super.init(t)}parse(t,n){if(Je(t))return null;const r=this.getLabels();return n=isFinite(n)&&r[n]===t?n:vM(r,t,Ce(n,t),this._addedLabels),yM(n,r.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let{min:r,max:i}=this.getMinMax(!0);this.options.bounds==="ticks"&&(t||(r=0),n||(i=this.getLabels().length-1)),this.min=r,this.max=i}buildTicks(){const t=this.min,n=this.max,r=this.options.offset,i=[];let a=this.getLabels();a=t===0&&n===a.length-1?a:a.slice(t,n+1),this._valueRange=Math.max(a.length-(r?0:1),1),this._startValue=this.min-(r?.5:0);for(let o=t;o<=n;o++)i.push({value:o});return i}getLabelForValue(t){return Qp.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return typeof t!="number"&&(t=this.parse(t)),t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}ie(Pd,"id","category"),ie(Pd,"defaults",{ticks:{callback:Qp}});function xM(e,t){const n=[],{bounds:i,step:a,min:o,max:s,precision:l,count:u,maxTicks:c,maxDigits:d,includeBounds:h}=e,f=a||1,g=c-1,{min:m,max:p}=t,b=!Je(o),v=!Je(s),y=!Je(u),w=(p-m)/(d+1);let C=rp((p-m)/g/f)*f,E,I,D,_;if(C<1e-14&&!b&&!v)return[{value:m},{value:p}];_=Math.ceil(p/C)-Math.floor(m/C),_>g&&(C=rp(_*C/g/f)*f),Je(l)||(E=Math.pow(10,l),C=Math.ceil(C*E)/E),i==="ticks"?(I=Math.floor(m/C)*C,D=Math.ceil(p/C)*C):(I=m,D=p),b&&v&&a&&aP((s-o)/a,C/1e3)?(_=Math.round(Math.min((s-o)/C,c)),C=(s-o)/_,I=o,D=s):y?(I=b?o:I,D=v?s:D,_=u-1,C=(D-I)/_):(_=(D-I)/C,Ua(_,Math.round(_),C/1e3)?_=Math.round(_):_=Math.ceil(_));const F=Math.max(ip(C),ip(I));E=Math.pow(10,Je(l)?F:l),I=Math.round(I*E)/E,D=Math.round(D*E)/E;let $=0;for(b&&(h&&I!==o?(n.push({value:o}),I<o&&$++,Ua(Math.round((I+$*C)*E)/E,o,qp(o,w,e))&&$++):I<o&&$++);$<_;++$){const P=Math.round((I+$*C)*E)/E;if(v&&P>s)break;n.push({value:P})}return v&&h&&D!==s?n.length&&Ua(n[n.length-1].value,s,qp(s,w,e))?n[n.length-1].value=s:n.push({value:s}):(!v||D===s)&&n.push({value:D}),n}function qp(e,t,{horizontal:n,minRotation:r}){const i=Nn(r),a=(n?Math.sin(i):Math.cos(i))||.001,o=.75*t*(""+e).length;return Math.min(t/a,o)}class Xl extends Ii{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,n){return Je(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:n,maxDefined:r}=this.getUserBounds();let{min:i,max:a}=this;const o=l=>i=n?i:l,s=l=>a=r?a:l;if(t){const l=ca(i),u=ca(a);l<0&&u<0?s(0):l>0&&u>0&&o(0)}if(i===a){let l=a===0?1:Math.abs(a*.05);s(a+l),t||o(i-l)}this.min=i,this.max=a}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:n,stepSize:r}=t,i;return r?(i=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,i>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${i} ticks. Limiting to 1000.`),i=1e3)):(i=this.computeTickLimit(),n=n||11),n&&(i=Math.min(n,i)),i}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,n=t.ticks;let r=this.getTickLimit();r=Math.max(2,r);const i={maxTicks:r,bounds:t.bounds,min:t.min,max:t.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},a=this._range||this,o=xM(i,a);return t.bounds==="ticks"&&L4(o,this,"value"),t.reverse?(o.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),o}configure(){const t=this.ticks;let n=this.min,r=this.max;if(super.configure(),this.options.offset&&t.length){const i=(r-n)/Math.max(t.length-1,1)/2;n-=i,r+=i}this._startValue=n,this._endValue=r,this._valueRange=r-n}getLabelForValue(t){return xu(t,this.chart.options.locale,this.options.ticks.format)}}class Td extends Xl{determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=xt(t)?t:0,this.max=xt(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),n=t?this.width:this.height,r=Nn(this.options.ticks.minRotation),i=(t?Math.sin(r):Math.cos(r))||.001,a=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,a.lineHeight/i))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}ie(Td,"id","linear"),ie(Td,"defaults",{ticks:{callback:Cu.formatters.numeric}});const Po=e=>Math.floor(Ir(e)),Yr=(e,t)=>Math.pow(10,Po(e)+t);function e0(e){return e/Math.pow(10,Po(e))===1}function t0(e,t,n){const r=Math.pow(10,n),i=Math.floor(e/r);return Math.ceil(t/r)-i}function CM(e,t){const n=t-e;let r=Po(n);for(;t0(e,t,r)>10;)r++;for(;t0(e,t,r)<10;)r--;return Math.min(r,Po(e))}function wM(e,{min:t,max:n}){t=Kt(e.min,t);const r=[],i=Po(t);let a=CM(t,n),o=a<0?Math.pow(10,Math.abs(a)):1;const s=Math.pow(10,a),l=i>a?Math.pow(10,i):0,u=Math.round((t-l)*o)/o,c=Math.floor((t-l)/s/10)*s*10;let d=Math.floor((u-c)/Math.pow(10,a)),h=Kt(e.min,Math.round((l+c+d*Math.pow(10,a))*o)/o);for(;h<n;)r.push({value:h,major:e0(h),significand:d}),d>=10?d=d<15?15:20:d++,d>=20&&(a++,d=2,o=a>=0?1:o),h=Math.round((l+c+d*Math.pow(10,a))*o)/o;const f=Kt(e.max,h);return r.push({value:f,major:e0(f),significand:d}),r}class n0 extends Ii{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,n){const r=Xl.prototype.parse.apply(this,[t,n]);if(r===0){this._zero=!0;return}return xt(r)&&r>0?r:null}determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=xt(t)?Math.max(0,t):null,this.max=xt(n)?Math.max(0,n):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!xt(this._userMin)&&(this.min=t===Yr(this.min,0)?Yr(this.min,-1):Yr(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let r=this.min,i=this.max;const a=s=>r=t?r:s,o=s=>i=n?i:s;r===i&&(r<=0?(a(1),o(10)):(a(Yr(r,-1)),o(Yr(i,1)))),r<=0&&a(Yr(i,-1)),i<=0&&o(Yr(r,1)),this.min=r,this.max=i}buildTicks(){const t=this.options,n={min:this._userMin,max:this._userMax},r=wM(n,this);return t.bounds==="ticks"&&L4(r,this,"value"),t.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}getLabelForValue(t){return t===void 0?"0":xu(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=Ir(t),this._valueRange=Ir(this.max)-Ir(t)}getPixelForValue(t){return(t===void 0||t===0)&&(t=this.min),t===null||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(Ir(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const n=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+n*this._valueRange)}}ie(n0,"id","logarithmic"),ie(n0,"defaults",{ticks:{callback:Cu.formatters.logarithmic,major:{enabled:!0}}});function kd(e){const t=e.ticks;if(t.display&&e.display){const n=Ft(t.backdropPadding);return Ce(t.font&&t.font.size,ot.font.size)+n.height}return 0}function DM(e,t,n){return n=at(n)?n:[n],{w:DP(e,t.string,n),h:n.length*t.lineHeight}}function r0(e,t,n,r,i){return e===r||e===i?{start:t-n/2,end:t+n/2}:e<r||e>i?{start:t-n,end:t}:{start:t,end:t+n}}function SM(e){const t={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},n=Object.assign({},t),r=[],i=[],a=e._pointLabels.length,o=e.options.pointLabels,s=o.centerPointLabels?Qe/a:0;for(let l=0;l<a;l++){const u=o.setContext(e.getPointLabelContext(l));i[l]=u.padding;const c=e.getPointPosition(l,e.drawingArea+i[l],s),d=pt(u.font),h=DM(e.ctx,d,e._pointLabels[l]);r[l]=h;const f=xn(e.getIndexAngle(l)+s),g=Math.round(ih(f)),m=r0(g,c.x,h.w,0,180),p=r0(g,c.y,h.h,90,270);EM(n,t,f,m,p)}e.setCenterPoint(t.l-n.l,n.r-t.r,t.t-n.t,n.b-t.b),e._pointLabelItems=$M(e,r,i)}function EM(e,t,n,r,i){const a=Math.abs(Math.sin(n)),o=Math.abs(Math.cos(n));let s=0,l=0;r.start<t.l?(s=(t.l-r.start)/a,e.l=Math.min(e.l,t.l-s)):r.end>t.r&&(s=(r.end-t.r)/a,e.r=Math.max(e.r,t.r+s)),i.start<t.t?(l=(t.t-i.start)/o,e.t=Math.min(e.t,t.t-l)):i.end>t.b&&(l=(i.end-t.b)/o,e.b=Math.max(e.b,t.b+l))}function IM(e,t,n){const r=e.drawingArea,{extra:i,additionalAngle:a,padding:o,size:s}=n,l=e.getPointPosition(t,r+i+o,a),u=Math.round(ih(xn(l.angle+dt))),c=FM(l.y,s.h,u),d=RM(u),h=AM(l.x,s.w,d);return{visible:!0,x:l.x,y:c,textAlign:d,left:h,top:c,right:h+s.w,bottom:c+s.h}}function _M(e,t){if(!t)return!0;const{left:n,top:r,right:i,bottom:a}=e;return!(sr({x:n,y:r},t)||sr({x:n,y:a},t)||sr({x:i,y:r},t)||sr({x:i,y:a},t))}function $M(e,t,n){const r=[],i=e._pointLabels.length,a=e.options,{centerPointLabels:o,display:s}=a.pointLabels,l={extra:kd(a)/2,additionalAngle:o?Qe/i:0};let u;for(let c=0;c<i;c++){l.padding=n[c],l.size=t[c];const d=IM(e,c,l);r.push(d),s==="auto"&&(d.visible=_M(d,u),d.visible&&(u=d))}return r}function RM(e){return e===0||e===180?"center":e<180?"left":"right"}function AM(e,t,n){return n==="right"?e-=t:n==="center"&&(e-=t/2),e}function FM(e,t,n){return n===90||n===270?e-=t/2:(n>270||n<90)&&(e-=t),e}function PM(e,t,n){const{left:r,top:i,right:a,bottom:o}=n,{backdropColor:s}=t;if(!Je(s)){const l=ta(t.borderRadius),u=Ft(t.backdropPadding);e.fillStyle=s;const c=r-u.left,d=i-u.top,h=a-r+u.width,f=o-i+u.height;Object.values(l).some(g=>g!==0)?(e.beginPath(),Wl(e,{x:c,y:d,w:h,h:f,radius:l}),e.fill()):e.fillRect(c,d,h,f)}}function TM(e,t){const{ctx:n,options:{pointLabels:r}}=e;for(let i=t-1;i>=0;i--){const a=e._pointLabelItems[i];if(!a.visible)continue;const o=r.setContext(e.getPointLabelContext(i));PM(n,o,a);const s=pt(o.font),{x:l,y:u,textAlign:c}=a;xi(n,e._pointLabels[i],l,u+s.lineHeight/2,s,{color:o.color,textAlign:c,textBaseline:"middle"})}}function b3(e,t,n,r){const{ctx:i}=e;if(n)i.arc(e.xCenter,e.yCenter,t,0,Ke);else{let a=e.getPointPosition(0,t);i.moveTo(a.x,a.y);for(let o=1;o<r;o++)a=e.getPointPosition(o,t),i.lineTo(a.x,a.y)}}function kM(e,t,n,r,i){const a=e.ctx,o=t.circular,{color:s,lineWidth:l}=t;!o&&!r||!s||!l||n<0||(a.save(),a.strokeStyle=s,a.lineWidth=l,a.setLineDash(i.dash),a.lineDashOffset=i.dashOffset,a.beginPath(),b3(e,n,o,r),a.closePath(),a.stroke(),a.restore())}function MM(e,t,n){return Nr(e,{label:n,index:t,type:"pointLabel"})}class Ts extends Xl{constructor(t){super(t),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const t=this._padding=Ft(kd(this.options)/2),n=this.width=this.maxWidth-t.width,r=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+n/2+t.left),this.yCenter=Math.floor(this.top+r/2+t.top),this.drawingArea=Math.floor(Math.min(n,r)/2)}determineDataLimits(){const{min:t,max:n}=this.getMinMax(!1);this.min=xt(t)&&!isNaN(t)?t:0,this.max=xt(n)&&!isNaN(n)?n:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/kd(this.options))}generateTickLabels(t){Xl.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map((n,r)=>{const i=Ze(this.options.pointLabels.callback,[n,r],this);return i||i===0?i:""}).filter((n,r)=>this.chart.getDataVisibility(r))}fit(){const t=this.options;t.display&&t.pointLabels.display?SM(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,n,r,i){this.xCenter+=Math.floor((t-n)/2),this.yCenter+=Math.floor((r-i)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,n,r,i))}getIndexAngle(t){const n=Ke/(this._pointLabels.length||1),r=this.options.startAngle||0;return xn(t*n+Nn(r))}getDistanceFromCenterForValue(t){if(Je(t))return NaN;const n=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*n:(t-this.min)*n}getValueForDistanceFromCenter(t){if(Je(t))return NaN;const n=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-n:this.min+n}getPointLabelContext(t){const n=this._pointLabels||[];if(t>=0&&t<n.length){const r=n[t];return MM(this.getContext(),t,r)}}getPointPosition(t,n,r=0){const i=this.getIndexAngle(t)-dt+r;return{x:Math.cos(i)*n+this.xCenter,y:Math.sin(i)*n+this.yCenter,angle:i}}getPointPositionForValue(t,n){return this.getPointPosition(t,this.getDistanceFromCenterForValue(n))}getBasePosition(t){return this.getPointPositionForValue(t||0,this.getBaseValue())}getPointLabelPosition(t){const{left:n,top:r,right:i,bottom:a}=this._pointLabelItems[t];return{left:n,top:r,right:i,bottom:a}}drawBackground(){const{backgroundColor:t,grid:{circular:n}}=this.options;if(t){const r=this.ctx;r.save(),r.beginPath(),b3(this,this.getDistanceFromCenterForValue(this._endValue),n,this._pointLabels.length),r.closePath(),r.fillStyle=t,r.fill(),r.restore()}}drawGrid(){const t=this.ctx,n=this.options,{angleLines:r,grid:i,border:a}=n,o=this._pointLabels.length;let s,l,u;if(n.pointLabels.display&&TM(this,o),i.display&&this.ticks.forEach((c,d)=>{if(d!==0||d===0&&this.min<0){l=this.getDistanceFromCenterForValue(c.value);const h=this.getContext(d),f=i.setContext(h),g=a.setContext(h);kM(this,f,l,o,g)}}),r.display){for(t.save(),s=o-1;s>=0;s--){const c=r.setContext(this.getPointLabelContext(s)),{color:d,lineWidth:h}=c;!h||!d||(t.lineWidth=h,t.strokeStyle=d,t.setLineDash(c.borderDash),t.lineDashOffset=c.borderDashOffset,l=this.getDistanceFromCenterForValue(n.ticks.reverse?this.min:this.max),u=this.getPointPosition(s,l),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(u.x,u.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,n=this.options,r=n.ticks;if(!r.display)return;const i=this.getIndexAngle(0);let a,o;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(i),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((s,l)=>{if(l===0&&this.min>=0&&!n.reverse)return;const u=r.setContext(this.getContext(l)),c=pt(u.font);if(a=this.getDistanceFromCenterForValue(this.ticks[l].value),u.showLabelBackdrop){t.font=c.string,o=t.measureText(s.label).width,t.fillStyle=u.backdropColor;const d=Ft(u.backdropPadding);t.fillRect(-o/2-d.left,-a-c.size/2-d.top,o+d.width,c.size+d.height)}xi(t,s.label,0,-a,c,{color:u.color,strokeColor:u.textStrokeColor,strokeWidth:u.textStrokeWidth})}),t.restore()}drawTitle(){}}ie(Ts,"id","radialLinear"),ie(Ts,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Cu.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(t){return t},padding:5,centerPointLabels:!1}}),ie(Ts,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),ie(Ts,"descriptors",{angleLines:{_fallback:"grid"}});const Su={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Wt=Object.keys(Su);function i0(e,t){return e-t}function a0(e,t){if(Je(t))return null;const n=e._adapter,{parser:r,round:i,isoWeekday:a}=e._parseOpts;let o=t;return typeof r=="function"&&(o=r(o)),xt(o)||(o=typeof r=="string"?n.parse(o,r):n.parse(o)),o===null?null:(i&&(o=i==="week"&&(jl(a)||a===!0)?n.startOf(o,"isoWeek",a):n.startOf(o,i)),+o)}function o0(e,t,n,r){const i=Wt.length;for(let a=Wt.indexOf(e);a<i-1;++a){const o=Su[Wt[a]],s=o.steps?o.steps:Number.MAX_SAFE_INTEGER;if(o.common&&Math.ceil((n-t)/(s*o.size))<=r)return Wt[a]}return Wt[i-1]}function BM(e,t,n,r,i){for(let a=Wt.length-1;a>=Wt.indexOf(n);a--){const o=Wt[a];if(Su[o].common&&e._adapter.diff(i,r,o)>=t-1)return o}return Wt[n?Wt.indexOf(n):0]}function VM(e){for(let t=Wt.indexOf(e)+1,n=Wt.length;t<n;++t)if(Su[Wt[t]].common)return Wt[t]}function s0(e,t,n){if(!n)e[t]=!0;else if(n.length){const{lo:r,hi:i}=ah(n,t),a=n[r]>=t?n[r]:n[i];e[a]=!0}}function OM(e,t,n,r){const i=e._adapter,a=+i.startOf(t[0].value,r),o=t[t.length-1].value;let s,l;for(s=a;s<=o;s=+i.add(s,1,r))l=n[s],l>=0&&(t[l].major=!0);return t}function l0(e,t,n){const r=[],i={},a=t.length;let o,s;for(o=0;o<a;++o)s=t[o],i[s]=o,r.push({value:s,major:!1});return a===0||!n?r:OM(e,r,i,n)}class Yl extends Ii{constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,n={}){const r=t.time||(t.time={}),i=this._adapter=new FT._date(t.adapters.date);i.init(n),Ya(r.displayFormats,i.formats()),this._parseOpts={parser:r.parser,round:r.round,isoWeekday:r.isoWeekday},super.init(t),this._normalized=n.normalized}parse(t,n){return t===void 0?null:a0(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,n=this._adapter,r=t.time.unit||"day";let{min:i,max:a,minDefined:o,maxDefined:s}=this.getUserBounds();function l(u){!o&&!isNaN(u.min)&&(i=Math.min(i,u.min)),!s&&!isNaN(u.max)&&(a=Math.max(a,u.max))}(!o||!s)&&(l(this._getLabelBounds()),(t.bounds!=="ticks"||t.ticks.source!=="labels")&&l(this.getMinMax(!1))),i=xt(i)&&!isNaN(i)?i:+n.startOf(Date.now(),r),a=xt(a)&&!isNaN(a)?a:+n.endOf(Date.now(),r)+1,this.min=Math.min(i,a-1),this.max=Math.max(i+1,a)}_getLabelBounds(){const t=this.getLabelTimestamps();let n=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;return t.length&&(n=t[0],r=t[t.length-1]),{min:n,max:r}}buildTicks(){const t=this.options,n=t.time,r=t.ticks,i=r.source==="labels"?this.getLabelTimestamps():this._generate();t.bounds==="ticks"&&i.length&&(this.min=this._userMin||i[0],this.max=this._userMax||i[i.length-1]);const a=this.min,o=this.max,s=uP(i,a,o);return this._unit=n.unit||(r.autoSkip?o0(n.minUnit,this.min,this.max,this._getLabelCapacity(a)):BM(this,s.length,n.minUnit,this.min,this.max)),this._majorUnit=!r.major.enabled||this._unit==="year"?void 0:VM(this._unit),this.initOffsets(i),t.reverse&&s.reverse(),l0(this,s,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t=[]){let n=0,r=0,i,a;this.options.offset&&t.length&&(i=this.getDecimalForValue(t[0]),t.length===1?n=1-i:n=(this.getDecimalForValue(t[1])-i)/2,a=this.getDecimalForValue(t[t.length-1]),t.length===1?r=a:r=(a-this.getDecimalForValue(t[t.length-2]))/2);const o=t.length<3?.5:.25;n=en(n,0,o),r=en(r,0,o),this._offsets={start:n,end:r,factor:1/(n+1+r)}}_generate(){const t=this._adapter,n=this.min,r=this.max,i=this.options,a=i.time,o=a.unit||o0(a.minUnit,n,r,this._getLabelCapacity(n)),s=Ce(i.ticks.stepSize,1),l=o==="week"?a.isoWeekday:!1,u=jl(l)||l===!0,c={};let d=n,h,f;if(u&&(d=+t.startOf(d,"isoWeek",l)),d=+t.startOf(d,u?"day":o),t.diff(r,n,o)>1e5*s)throw new Error(n+" and "+r+" are too far apart with stepSize of "+s+" "+o);const g=i.ticks.source==="data"&&this.getDataTimestamps();for(h=d,f=0;h<r;h=+t.add(h,s,o),f++)s0(c,h,g);return(h===r||i.bounds==="ticks"||f===1)&&s0(c,h,g),Object.keys(c).sort(i0).map(m=>+m)}getLabelForValue(t){const n=this._adapter,r=this.options.time;return r.tooltipFormat?n.format(t,r.tooltipFormat):n.format(t,r.displayFormats.datetime)}format(t,n){const i=this.options.time.displayFormats,a=this._unit,o=n||i[a];return this._adapter.format(t,o)}_tickFormatFunction(t,n,r,i){const a=this.options,o=a.ticks.callback;if(o)return Ze(o,[t,n,r],this);const s=a.time.displayFormats,l=this._unit,u=this._majorUnit,c=l&&s[l],d=u&&s[u],h=r[n],f=u&&d&&h&&h.major;return this._adapter.format(t,i||(f?d:c))}generateTickLabels(t){let n,r,i;for(n=0,r=t.length;n<r;++n)i=t[n],i.label=this._tickFormatFunction(i.value,n,t)}getDecimalForValue(t){return t===null?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const n=this._offsets,r=this.getDecimalForValue(t);return this.getPixelForDecimal((n.start+r)*n.factor)}getValueForPixel(t){const n=this._offsets,r=this.getDecimalForPixel(t)/n.factor-n.end;return this.min+r*(this.max-this.min)}_getLabelSize(t){const n=this.options.ticks,r=this.ctx.measureText(t).width,i=Nn(this.isHorizontal()?n.maxRotation:n.minRotation),a=Math.cos(i),o=Math.sin(i),s=this._resolveTickFontOptions(0).size;return{w:r*a+s*o,h:r*o+s*a}}_getLabelCapacity(t){const n=this.options.time,r=n.displayFormats,i=r[n.unit]||r.millisecond,a=this._tickFormatFunction(t,0,l0(this,[t],this._majorUnit),i),o=this._getLabelSize(a),s=Math.floor(this.isHorizontal()?this.width/o.w:this.height/o.h)-1;return s>0?s:1}getDataTimestamps(){let t=this._cache.data||[],n,r;if(t.length)return t;const i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(n=0,r=i.length;n<r;++n)t=t.concat(i[n].controller.getAllParsedValues(this));return this._cache.data=this.normalize(t)}getLabelTimestamps(){const t=this._cache.labels||[];let n,r;if(t.length)return t;const i=this.getLabels();for(n=0,r=i.length;n<r;++n)t.push(a0(this,i[n]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return dP(t.sort(i0))}}ie(Yl,"id","time"),ie(Yl,"defaults",{bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}});function ks(e,t,n){let r=0,i=e.length-1,a,o,s,l;n?(t>=e[r].pos&&t<=e[i].pos&&({lo:r,hi:i}=Ed(e,"pos",t)),{pos:a,time:s}=e[r],{pos:o,time:l}=e[i]):(t>=e[r].time&&t<=e[i].time&&({lo:r,hi:i}=Ed(e,"time",t)),{time:a,pos:s}=e[r],{time:o,pos:l}=e[i]);const u=o-a;return u?s+(l-s)*(t-a)/u:s}class u0 extends Yl{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(t);this._minPos=ks(n,this.min),this._tableRange=ks(n,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:n,max:r}=this,i=[],a=[];let o,s,l,u,c;for(o=0,s=t.length;o<s;++o)u=t[o],u>=n&&u<=r&&i.push(u);if(i.length<2)return[{time:n,pos:0},{time:r,pos:1}];for(o=0,s=i.length;o<s;++o)c=i[o+1],l=i[o-1],u=i[o],Math.round((c+l)/2)!==u&&a.push({time:u,pos:o/(s-1)});return a}_generate(){const t=this.min,n=this.max;let r=super.getDataTimestamps();return(!r.includes(t)||!r.length)&&r.splice(0,0,t),(!r.includes(n)||r.length===1)&&r.push(n),r.sort((i,a)=>i-a)}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const n=this.getDataTimestamps(),r=this.getLabelTimestamps();return n.length&&r.length?t=this.normalize(n.concat(r)):t=n.length?n:r,t=this._cache.all=t,t}getDecimalForValue(t){return(ks(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const n=this._offsets,r=this.getDecimalForPixel(t)/n.factor-n.end;return ks(this._table,r*this._tableRange+this._minPos,!0)}}ie(u0,"id","timeseries"),ie(u0,"defaults",Yl.defaults);const v3="label";function c0(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function NM(e,t){const n=e.options;n&&t&&Object.assign(n,t)}function y3(e,t){e.labels=t}function x3(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:v3;const r=[];e.datasets=t.map(i=>{const a=e.datasets.find(o=>o[n]===i[n]);return!a||!i.data||r.includes(a)?{...i}:(r.push(a),Object.assign(a,i),a)})}function LM(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:v3;const n={labels:[],datasets:[]};return y3(n,e.labels),x3(n,e.datasets,t),n}function jM(e,t){const{height:n=150,width:r=300,redraw:i=!1,datasetIdKey:a,type:o,data:s,options:l,plugins:u=[],fallbackContent:c,updateMode:d,...h}=e,f=x.useRef(null),g=x.useRef(),m=()=>{f.current&&(g.current=new Du(f.current,{type:o,data:LM(s,a),options:l&&{...l},plugins:u}),c0(t,g.current))},p=()=>{c0(t,null),g.current&&(g.current.destroy(),g.current=null)};return x.useEffect(()=>{!i&&g.current&&l&&NM(g.current,l)},[i,l]),x.useEffect(()=>{!i&&g.current&&y3(g.current.config.data,s.labels)},[i,s.labels]),x.useEffect(()=>{!i&&g.current&&s.datasets&&x3(g.current.config.data,s.datasets,a)},[i,s.datasets]),x.useEffect(()=>{g.current&&(i?(p(),setTimeout(m)):g.current.update(d))},[i,l,s.labels,s.datasets,d]),x.useEffect(()=>{g.current&&(p(),setTimeout(m))},[o]),x.useEffect(()=>(m(),()=>p()),[]),x.createElement("canvas",Object.assign({ref:f,role:"img",height:n,width:r},h),c)}const HM=x.forwardRef(jM);function WM(e,t){return Du.register(t),x.forwardRef((n,r)=>x.createElement(HM,Object.assign({},n,{ref:r,type:e})))}const d0=WM("doughnut",Ba);Du.register(Pd,Td,qs,Na,Oa,lM,pM,oM);const f0=(e,t)=>{var i,a,o,s;const n=e.getVisibleDatasetCount(),r=e.getDatasetMeta(n-1).data.at(0);if(r){const{innerRadius:l}=r.getProps(["innerRadius"]),{ctx:u}=e,c=()=>{var $;const w=[].concat(t),C=w.length,E=u.font;let I=0,D=0,_;for(_=0;_<C;++_)u.font=w[_].font,I=Math.max(u.measureText(w[_].text).width,I),D+=($=w[_].font)==null?void 0:$.lineHeight;return u.font=E,{height:D,width:I}},d=(w,C)=>{let E=document.createElement("div");document.body.appendChild(E),E.style.fontSize=`${C}px`,E.style.position="absolute",E.style.left="-10",E.style.top="-10",E.textContent=w;const I={width:E.clientWidth,height:E.clientHeight};return document.body.removeChild(E),E=null,I},h=c(),f=parseFloat(parseFloat(l).toFixed(2));u.textAlign="center",u.textBaseline="middle";const g=(e.chartArea.left+e.chartArea.right)/2,p=(e.chartArea.top+e.chartArea.bottom)/2-h.height/2;let b;const v=t.length;let y=0;for(b=0;b<v;++b){let w=(i=t[b].font)==null?void 0:i.size,C=(a=t[b].font)==null?void 0:a.lineHeight;const E=typeof t[b].text=="number"?t[b].text.toString():t[b].text;for(;d(E,w).width>f+(t[b].id==="value"?50:0);)w-=1,C=d(E,w).height;E.length>22&&C<14&&(C=18);const I=p+C/2+y,D=typeof t[b].text=="number"?new Intl.NumberFormat("id-ID",{style:"currency",currency:"IDR"}).format(t[b].text):t[b].text;let _=t[b].urlIconDesc?" ":"";if(t[b].percentage!==void 0?_+=`${t[b].percentage}% ${t[b].text}`:_+=D,u.fillStyle=t[b].color,u.font=`${w<10?10:w}px sans-serif`,y+=C,t[b].percentage!==void 0&&t[b].urlIconDesc){const F=((s=(o=t[b])==null?void 0:o.percentage)==null?void 0:s.length)??0,$=new Image;$.src=t[b].urlIconDesc,u.drawImage($,45-(F>6?F+2:F-2.5),I-8,16,14)}u.fillText(_,g,I)}u.restore(),u.save()}},zM=({labels:e,data:t,backgroundColor:n,options:r={},redraw:i,widthInnerDoughnut:a,innerLabels:o,open:s=!0,keyRemoveDataOpen:l="gap",keyLabel:u="title",keyValue:c="originalValue",keyBackground:d="backgroundColor",className:h})=>{const f={labels:e||t.map(m=>m[u]),datasets:[{data:t.map(m=>m[c]),backgroundColor:n||t.map(m=>m[d])}]},g={cutout:a,animation:{duration:i?400:0},plugins:{legend:{display:!1},tooltip:{external(m){let p=document.getElementById("chartjs-tooltip");p||(p=document.createElement("div"),p.id="chartjs-tooltip",p.innerHTML="<table></table>",document.body.appendChild(p));const b=m.tooltip;if(b.opacity===0){p.style.opacity="0";return}p.classList.remove("above","below","no-transform"),b.yAlign?p.classList.add(b.yAlign):p.classList.add("no-transform");const v=t.filter(I=>!I[u]),y=t.filter(I=>I[c]>0&&I[c]<1);if(v.length===1&&y.length===1)return;function w(I){return I.lines}if(b.body){const I=b.title||[];let D=b.body.map(w),_="<thead>";I.forEach($=>{let P="";P+="display: flex",P+="; justify-content: center",P+="; font-weight: 600",P+="; font-size: 14px",_+=`<tr><span style="${P}">${$}</span></tr>`}),_+="</thead><tbody>",D.length>1&&D[0][0]===D[1][0]&&(D=[D[0]]),D.forEach($=>{let P="";P+="color: #0163C8",P+="; padding: 20px",P+="; font-size: 14px";const k=`<span style="${P}">${$}</span>`;_+=`<tr><td>${k}</td></tr>`}),_+="</tbody>";const F=p.querySelector("table");F&&(F.innerHTML=_)}const C=m.chart.canvas.getBoundingClientRect(),E=C.top+window.pageYOffset+b.caretY;p.style.opacity="1",p.style.border="solid 1px #0163C8",p.style.background="white",p.style.height="fit-content",p.style.borderRadius="10px",p.style.position="absolute",p.style.zIndex="10",p.style.padding="4px 0",p.style.left=`${C.left+window.pageXOffset+b.caretX-80}px`,p.style.top=`${E>300&&!s?280:E}px`,p.style.pointerEvents="none"},displayColors:!0,enabled:!1,callbacks:{title(m){const p=t[m[0].dataIndex];return p==null?void 0:p[u]},label(m){const p=t==null?void 0:t[m.dataIndex];let b="Nilai: ";return p&&(b+=p.value),b}}}},elements:{arc:{borderWidth:0}}};return S.jsxs("div",{className:h??"",children:[!s&&S.jsx(d0,{data:f,redraw:i,plugins:[{id:"draw",beforeDraw(m){f0(m,o)}}],options:Object.keys(r).length>1?r:g}),s&&S.jsx(d0,{data:f,redraw:i,plugins:[{id:"draw",beforeDraw(m){f0(m,o.filter(p=>p.id!==l))}}],options:Object.keys(r).length>1?r:g})]})},Ms=e=>{let t;const n=new Date(e??new Date);return e&&(t=Bf(new Date(n.setHours(n.getHours()+7)).toISOString().slice(0,10))),t},GM=({month:e,year:t,type:n=["month","year"],activeType:r="month",minDate:i,maxDate:a,className:o,classNameButton:s,onChange:l,buttonClick:u,id:c="date-picker",idPopover:d="date-picker-popover",floatingOptions:h={},offsetPopover:f=5,zIndexPopper:g=1})=>{const{locale:m}=$n(),p=x.useRef(null),b=Ms(i),v=Ms(a),y=w=>{var C;typeof l=="function"&&(l({month:w.month,year:w.year}),(C=p.current)==null||C.setShow(!1))};return S.jsxs(S.Fragment,{children:[S.jsx("div",{id:c,onClick:w=>{var C;w.stopPropagation(),(C=p.current)==null||C.handlerShow(w)},className:s,children:typeof u=="function"?u({month:e,year:t}):"Pilih Tanggal"}),S.jsx("div",{className:o??"",children:S.jsx(Ci,{zIndex:g,ref:p,offset:f,id:d,floatingOptions:{placement:"bottom-end",...h},onClick:w=>w.stopPropagation(),children:S.jsx(Jf,{locale:"id-ID",children:S.jsx(bu,{minValue:b,maxValue:v,minDate:i,maxDate:a,activeType:n.length===1?n[0]:r,locale:m,value:Ms(`${t}/${e}/1`),createCalendar:Zo,defaultValue:Ms(`${t}/${e}/1`),onChange:y,handlerReset:()=>{},handlerSubmit:()=>{},withDateSelect:!1,type:n})})})})]})},ZM=({indeterminate:e,className:t="",classNameContainer:n,...r})=>{const i=x.useRef(null);return x.useEffect(()=>{typeof e=="boolean"&&(i.current.indeterminate=!r.checked&&e)},[i,e]),S.jsx("div",{className:`1ru-flex 1ru-items-center 1ru-h-full ${t??""}`,children:S.jsx(vu,{ref:i,label:"",variants:"blue-700",borderRadius:"full",className:"1ru-flex 1ru-items-center 1ru-h-full",classNameContainer:`1ru-flex 1ru-items-center 1ru-h-full ${n??""}}`,...r,onClick:a=>{a.stopPropagation(),typeof r.onClick=="function"&&r.onClick(a)},type:"checkbox"})})},XM="_input_ezltz_7",YM="_error_ezltz_32",vn={"container-xs":"_container-xs_ezltz_1","container-input":"_container-input_ezltz_4",input:XM,error:YM,"isset-right-icon":"_isset-right-icon_ezltz_41","isset-left-icon":"_isset-left-icon_ezltz_45","start-icon":"_start-icon_ezltz_49","end-icon":"_end-icon_ezltz_52","label-error":"_label-error_ezltz_55","container-s":"_container-s_ezltz_61"},bh=x.forwardRef(({name:e,classNameContainer:t,id:n,type:r="text",startIcon:i,endIcon:a,error:o,sizeInput:s="xs",classNameLabelError:l,className:u,...c},d)=>{const h={size:{s:vn["container-s"],xs:vn["container-xs"]},variant:{}},f=()=>typeof i=="function"||x.isValidElement(i),g=()=>typeof a=="function"||x.isValidElement(a);return S.jsxs("div",{className:`${h.size[s]} ${t}`,children:[S.jsxs("div",{className:`${vn["container-input"]}`,children:[S.jsxs("div",{className:vn["start-icon"],children:[typeof i=="function"&&i(),x.isValidElement(i)&&i]}),S.jsx("input",{id:n??e,className:`${vn.input} ${o?vn.error:""}
|
173
173
|
${f()?vn["isset-left-icon"]:""}
|
174
174
|
${g()?vn["isset-right-icon"]:""}
|
175
175
|
${u??""}`,ref:d,type:r,...c}),S.jsxs("div",{className:vn["end-icon"],children:[typeof a=="function"&&a(),x.isValidElement(a)&&a]})]}),o&&S.jsx("label",{className:`${vn["label-error"]}
|
176
|
-
${c.disabled?vn.disabled:""} ${l??""}`,children:o})]})});bh.displayName="InputNative";const
|
176
|
+
${c.disabled?vn.disabled:""} ${l??""}`,children:o})]})});bh.displayName="InputNative";const UM="_container_1szxn_1",JM="_files_1szxn_4",KM="_file_1szxn_4",Hi={container:UM,files:JM,file:KM,"file-name-wrapper":"_file-name-wrapper_1szxn_10","file-name":"_file-name_1szxn_10","file-extension":"_file-extension_1szxn_13"},QM=({value:e,validateFile:t,classNameContainer:n,classNameButton:r,textUpload:i="Unggah Lampiran",buttonProps:a={},maxFile:o=1,maxSize:s=1,error:l,removeElement:u,onChange:c,handlerDownload:d})=>{const h={variants:"ghost-laba-blue-10",size:"small"},f=x.useRef(null),g=t||["image/png","image/jpeg","image/jpg"],[m,p]=x.useState(""),b=w=>{if(w!=null&&w.length){const C=Array.from(w).slice(0,o),E=C==null?void 0:C.filter(D=>!g.includes(D.type)),I=(C==null?void 0:C.reduce((D,_)=>D+_.size,0))/1024/1024;if(E.length>0)p("Berkas tidak didukung, silahkan pilih file kembali.");else if(I>s){const D=`${w.length>1?"Jumlah u":"U"}kuran berkas tidak boleh melebihi ${s}MB.`;p(D)}else{if(!(f!=null&&f.current))return;typeof c=="function"&&c(C),p(""),f.current.value=""}}},v=w=>{var C;w.preventDefault(),f!=null&&f.current&&((C=f.current)==null||C.click())};function y(w){if(typeof w!="string")throw new Error("Input harus berupa string");const C=w.split(".");if(C.length===1)return{filename:w,extension:""};const E="."+C[C.length-1];return{filename:C.slice(0,-1).join("."),extension:E}}return S.jsxs("div",{className:`${Hi.container} ${n??""}`,children:[S.jsx(Hn,{...h,...a,className:r??"",onClick:w=>v(w),children:i}),S.jsx(bh,{accept:g==null?void 0:g.join(", "),ref:f,type:"file",onChange:w=>b(w.target.files),error:l??m,multiple:o>1,hidden:!0}),S.jsx("div",{className:Hi.files,children:e==null?void 0:e.map((w,C)=>S.jsxs("div",{className:Hi.file,onClick:E=>{E.stopPropagation(),typeof d=="function"&&d(w)},children:[S.jsxs("div",{className:Hi["file-name-wrapper"],children:[S.jsx("span",{className:Hi["file-name"],children:y((w==null?void 0:w.name)??(w==null?void 0:w.originalName)??(w==null?void 0:w.fileName)??"").filename}),S.jsx("span",{className:Hi["file-extension"],children:y((w==null?void 0:w.name)??(w==null?void 0:w.originalName)??(w==null?void 0:w.fileName)??"").extension})]}),typeof u=="function"&&S.jsx(S.Fragment,{children:u(w)})]},C))})]})},h0={"error-payhere":"_error-payhere_1hkqz_1","error-laba":"_error-laba_1hkqz_5"},qM=({className:e,variants:t="laba",error:n})=>{const r={variants:{laba:h0["error-laba"],payhere:h0["error-payhere"]}};return S.jsx(S.Fragment,{children:n?S.jsx("span",{className:`${r.variants[t]} ${e??""}`,children:n}):S.jsx(S.Fragment,{})})};exports.AlertContainer=hw;exports.Badges=v4;exports.Breadcrumbs=DF;exports.Button=Hn;exports.ButtonIcon=b4;exports.Calendar=bu;exports.CalendarRange=m4;exports.CheckboxTable=ZM;exports.Chips=y4;exports.Collapse=$F;exports.ConfigColors=Dw;exports.ConfigTable=Ut;exports.DatePicker=iF;exports.DateRangePicker=p4;exports.DefaultCheckedChecboxIcon=x4;exports.DefaultRadioChecboxIcon=C4;exports.DoughnutChart=zM;exports.ErrorMessage=qM;exports.FilterContainer=MF;exports.FilterDate=aF;exports.InputFloatingInner=ab;exports.InputNative=bh;exports.InputReguler=Gd;exports.ListVirtualization=h1;exports.ModalDialog=AF;exports.MonthYearPicker=GM;exports.NumberFormat=d7;exports.Pagination=EI;exports.PatternFormat=c7;exports.Popover=Ci;exports.PortalComponent=f7;exports.RadioCheckbox=vu;exports.RadioCheckboxLabel=bF;exports.SelectDropdownContainer=rv;exports.SelectDropdownContainerComponents=G1;exports.Sidebar=D4;exports.Switch=sF;exports.TPublish=Iw;exports.TabPanel=bI;exports.Table=dI;exports.TableVirtualization=hf;exports.Tabs=pI;exports.Textarea=k4;exports.Timeline=kF;exports.TruncateComponent=p7;exports.UploadFile=T4;exports.UploadImage=C7;exports.UploadMultipleFile=QM;exports.configScreens=Ew;exports.configTypography=Sw;exports.configTypographyLabaBisnis=F0;exports.configTypographyPayhere=A0;exports.cookieStorage=q2;exports.deepCompareEquals=Vd;exports.formatDate=w0;exports.formatDateRange=Z2;exports.formatNumber=br;exports.groupByKey=D0;exports.isAccurateNumber=tl;exports.openAlert=gw;exports.parseDecimal=S0;exports.removeKeyObjectEmptyValue=Y2;exports.transformDataHistory=X2;exports.transformLatLong=U2;exports.transformSecondTime=K2;exports.useAsyncDebounce=tI;exports.useCombinedResizeObserver=nI;exports.useCountdown=eI;exports.useDeepCompareEffect=jo;exports.useDeepCompareMemoize=gf;exports.useElementOrWindowMediaQuery=qE;exports.useEventListener=oI;exports.useMergeRefs=d1;exports.useStateRef=rI;exports.utilTable=hS;
|
177
177
|
//# sourceMappingURL=index.cjs.map
|