diff --git a/assets/ArticlesView.0a2884b6.js b/assets/ArticlesView.a1f6f583.js similarity index 99% rename from assets/ArticlesView.0a2884b6.js rename to assets/ArticlesView.a1f6f583.js index 6e8b6d8..4803f81 100644 --- a/assets/ArticlesView.0a2884b6.js +++ b/assets/ArticlesView.a1f6f583.js @@ -1,4 +1,4 @@ -import{_ as KU,c as J2,g as GU,l as n7,f as r7,a as $U,b as VU,d as XU,o as ma,e as Ha,h as qe,i as c1,j as zU,t as WB,k as q2,A as tv,w as u1,v as Y3,m as i7,F as a7,r as WU,u as o7,s as xd,n as h1,p as jU,q as YU,x as ZU,y as JU,z as qU,B as tH,C as eH,D as nH,E as rH,G as iH,H as jB,I as YB,J as t9}from"./index.b2beee06.js";import{g as aH}from"./Translations.4c814af6.js";class Ws extends Error{}class oH{constructor(){this.base="TD:",this.failedToSetInvalidDate="Failed to set invalid date",this.failedToParseInput="Failed parse input field"}unexpectedOption(Q){const O=new Ws(`${this.base} Unexpected option: ${Q} does not match a known option.`);throw O.code=1,O}unexpectedOptions(Q){const O=new Ws(`${this.base}: ${Q.join(", ")}`);throw O.code=1,O}unexpectedOptionValue(Q,O,Y){const q=new Ws(`${this.base} Unexpected option value: ${Q} does not accept a value of "${O}". Valid values are: ${Y.join(", ")}`);throw q.code=2,q}typeMismatch(Q,O,Y){const q=new Ws(`${this.base} Mismatch types: ${Q} has a type of ${O} instead of the required ${Y}`);throw q.code=3,q}numbersOutOfRange(Q,O,Y){const q=new Ws(`${this.base} ${Q} expected an array of number between ${O} and ${Y}.`);throw q.code=4,q}failedToParseDate(Q,O,Y=!1){const q=new Ws(`${this.base} Could not correctly parse "${O}" to a date for ${Q}.`);if(q.code=5,!Y)throw q;console.warn(q)}mustProvideElement(){const Q=new Ws(`${this.base} No element was provided.`);throw Q.code=6,Q}subscribeMismatch(){const Q=new Ws(`${this.base} The subscribed events does not match the number of callbacks`);throw Q.code=7,Q}conflictingConfiguration(Q){const O=new Ws(`${this.base} A configuration value conflicts with another rule. ${Q}`);throw O.code=8,O}customDateFormatError(Q){const O=new Ws(`${this.base} Custom Date Format: ${Q}`);throw O.code=9,O}dateString(){console.warn(`${this.base} Using a string for date options is not recommended unless you specify an ISO string or use the customDateFormat plugin.`)}deprecatedWarning(Q,O){console.warn(`${this.base} Warning ${Q} is deprecated and will be removed in a future version. ${O}`)}throwError(Q){const O=new Ws(`${this.base} ${Q}`);throw O.code=9,O}}const s7="tempus-dominus",A7="td";class sH{constructor(){this.key=`.${A7}`,this.change=`change${this.key}`,this.update=`update${this.key}`,this.error=`error${this.key}`,this.show=`show${this.key}`,this.hide=`hide${this.key}`,this.blur=`blur${this.key}`,this.focus=`focus${this.key}`,this.keyup=`keyup${this.key}`,this.keydown=`keydown${this.key}`}}class AH{constructor(){this.widget=`${s7}-widget`,this.calendarHeader="calendar-header",this.switch="picker-switch",this.toolbar="toolbar",this.noHighlight="no-highlight",this.sideBySide="timepicker-sbs",this.previous="previous",this.next="next",this.disabled="disabled",this.old="old",this.new="new",this.active="active",this.dateContainer="date-container",this.decadesContainer=`${this.dateContainer}-decades`,this.decade="decade",this.yearsContainer=`${this.dateContainer}-years`,this.year="year",this.monthsContainer=`${this.dateContainer}-months`,this.month="month",this.daysContainer=`${this.dateContainer}-days`,this.day="day",this.calendarWeeks="cw",this.dayOfTheWeek="dow",this.today="today",this.weekend="weekend",this.rangeIn="range-in",this.rangeStart="range-start",this.rangeEnd="range-end",this.timeContainer="time-container",this.separator="separator",this.clockContainer=`${this.timeContainer}-clock`,this.hourContainer=`${this.timeContainer}-hour`,this.minuteContainer=`${this.timeContainer}-minute`,this.secondContainer=`${this.timeContainer}-second`,this.hour="hour",this.minute="minute",this.second="second",this.toggleMeridiem="toggleMeridiem",this.show="show",this.collapsing="td-collapsing",this.collapse="td-collapse",this.inline="inline",this.lightTheme="light",this.darkTheme="dark",this.isDarkPreferredQuery="(prefers-color-scheme: dark)"}}class Et{}Et.NAME=s7;Et.dataKey=A7;Et.events=new sH;Et.css=new AH;Et.errorMessages=new oH;const lH={dateFormats:{LTS:"h:mm:ss T",LT:"h:mm T",L:"MM/dd/yyyy",LL:"MMMM d, yyyy",LLL:"MMMM d, yyyy h:mm T",LLLL:"dddd, MMMM d, yyyy h:mm T"},format:"L LT",locale:"default",hourCycle:void 0,ordinal:Lt=>{const Q=["th","st","nd","rd"],O=Lt%100;return`[${Lt}${Q[(O-20)%10]||Q[O]||Q[0]}]`}};var As={...lH},Kt;(function(Lt){Lt.seconds="seconds",Lt.minutes="minutes",Lt.hours="hours",Lt.date="date",Lt.month="month",Lt.year="year"})(Kt||(Kt={}));const bm={month:"2-digit",day:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit"},ZB=Lt=>{switch(Lt){case"date":return{dateStyle:"short"};case"month":return{month:"numeric",year:"numeric"};case"year":return{year:"numeric"}}},l7=Lt=>{if(!Lt)return"h12";const Q={hour:"2-digit",minute:"2-digit",numberingSystem:"latn"},O=new sr().setLocalization({locale:Lt});O.hours=0;const Y=O.parts(void 0,Q).hour;if(Y==="12")return"h12";if(Y==="24")return"h24";O.hours=23;const q=O.parts(void 0,Q).hour;if(Y==="00"&&q==="11")return"h11";if(Y==="00"&&q==="23")return"h23";console.warn(`couldn't determine hour cycle for ${Lt}. start: ${Y}. end: ${q}`)};class sr extends Date{constructor(){super(...arguments),this.localization=As,this.nonLeapLadder=[0,31,59,90,120,151,181,212,243,273,304,334],this.leapLadder=[0,31,60,91,121,152,182,213,244,274,305,335],this.dateTimeRegex=/(\[[^[\]]*])|y{1,4}|M{1,4}|d{1,4}|H{1,2}|h{1,2}|t|T|m{1,2}|s{1,2}|f{3}/g,this.formattingTokens=/(\[[^[\]]*])|([-_:/.,()\s]+)|(T|t|yyyy|yy?|MM?M?M?|Do|dd?|hh?|HH?|mm?|ss?)/g,this.match2=/\d\d/,this.match3=/\d{3}/,this.match4=/\d{4}/,this.match1to2=/\d\d?/,this.matchSigned=/[+-]?\d+/,this.matchOffset=/[+-]\d\d:?(\d\d)?|Z/,this.matchWord=/[^\d_:/,\-()\s]+/,this.zoneExpressions=[this.matchOffset,(Q,O)=>{Q.offset=this.offsetFromString(O)}],this.expressions={t:{pattern:void 0,parser:(Q,O)=>{Q.afternoon=this.meridiemMatch(O)}},T:{pattern:void 0,parser:(Q,O)=>{Q.afternoon=this.meridiemMatch(O)}},fff:{pattern:this.match3,parser:(Q,O)=>{Q.milliseconds=+O}},s:{pattern:this.match1to2,parser:this.addInput("seconds")},ss:{pattern:this.match1to2,parser:this.addInput("seconds")},m:{pattern:this.match1to2,parser:this.addInput("minutes")},mm:{pattern:this.match1to2,parser:this.addInput("minutes")},H:{pattern:this.match1to2,parser:this.addInput("hours")},h:{pattern:this.match1to2,parser:this.addInput("hours")},HH:{pattern:this.match1to2,parser:this.addInput("hours")},hh:{pattern:this.match1to2,parser:this.addInput("hours")},d:{pattern:this.match1to2,parser:this.addInput("day")},dd:{pattern:this.match2,parser:this.addInput("day")},Do:{pattern:this.matchWord,parser:(Q,O)=>{if(Q.day=+(O.match(/\d+/)[0]||1),!!this.localization.ordinal)for(let Y=1;Y<=31;Y+=1)this.localization.ordinal(Y).replace(/[[\]]/g,"")===O&&(Q.day=Y)}},M:{pattern:this.match1to2,parser:this.addInput("month")},MM:{pattern:this.match2,parser:this.addInput("month")},MMM:{pattern:this.matchWord,parser:(Q,O)=>{const Y=this.getAllMonths(),gt=(this.getAllMonths("short")||Y.map(It=>It.slice(0,3))).indexOf(O)+1;if(gt<1)throw new Error;Q.month=gt%12||gt}},MMMM:{pattern:this.matchWord,parser:(Q,O)=>{const q=this.getAllMonths().indexOf(O)+1;if(q<1)throw new Error;Q.month=q%12||q}},y:{pattern:this.matchSigned,parser:this.addInput("year")},yy:{pattern:this.match2,parser:(Q,O)=>{Q.year=this.parseTwoDigitYear(+O)}},yyyy:{pattern:this.match4,parser:this.addInput("year")}}}setLocale(Q){return this.localization||(this.localization=As,this.localization.locale=Q),this}setLocalization(Q){return this.localization=Q,this}static convert(Q,O="default",Y=void 0){if(!Q)throw new Error("A date is required");return Y||(Y=As,Y.locale=O),new sr(Q.getFullYear(),Q.getMonth(),Q.getDate(),Q.getHours(),Q.getMinutes(),Q.getSeconds(),Q.getMilliseconds()).setLocalization(Y)}get clone(){return new sr(this.year,this.month,this.date,this.hours,this.minutes,this.seconds,this.getMilliseconds()).setLocalization(this.localization)}static isValid(Q){return Q===void 0||JSON.stringify(Q)==="null"?!1:Q.constructor.name===sr.name}startOf(Q,O=0){if(this[Q]===void 0)throw new Error(`Unit '${Q}' is not valid`);switch(Q){case"seconds":this.setMilliseconds(0);break;case"minutes":this.setSeconds(0,0);break;case"hours":this.setMinutes(0,0,0);break;case"date":this.setHours(0,0,0,0);break;case"weekDay":{if(this.startOf(Kt.date),this.weekDay===O)break;const Y=(this.weekDay-O+7)%7;this.manipulate(Y*-1,Kt.date);break}case"month":this.startOf(Kt.date),this.setDate(1);break;case"year":this.startOf(Kt.date),this.setMonth(0,1);break}return this}endOf(Q,O=0){if(this[Q]===void 0)throw new Error(`Unit '${Q}' is not valid`);switch(Q){case"seconds":this.setMilliseconds(999);break;case"minutes":this.setSeconds(59,999);break;case"hours":this.setMinutes(59,59,999);break;case"date":this.setHours(23,59,59,999);break;case"weekDay":{this.endOf(Kt.date);const Y=6+O;if(this.weekDay===Y)break;this.manipulate(Y-this.weekDay,Kt.date);break}case"month":this.endOf(Kt.date),this.manipulate(1,Kt.month),this.setDate(0);break;case"year":this.endOf(Kt.date),this.setMonth(11,31);break}return this}manipulate(Q,O){if(this[O]===void 0)throw new Error(`Unit '${O}' is not valid`);return this[O]+=Q,this}isBefore(Q,O){if(!sr.isValid(Q))return!1;if(!O)return this.valueOf()Q.valueOf();if(this[O]===void 0)throw new Error(`Unit '${O}' is not valid`);return this.clone.startOf(O).valueOf()>Q.clone.startOf(O).valueOf()}isSame(Q,O){if(!sr.isValid(Q))return!1;if(!O)return this.valueOf()===Q.valueOf();if(this[O]===void 0)throw new Error(`Unit '${O}' is not valid`);return Q=sr.convert(Q),this.clone.startOf(O).valueOf()===Q.startOf(O).valueOf()}isBetween(Q,O,Y,q="()"){if(!sr.isValid(Q)||!sr.isValid(O))return!1;if(Y&&this[Y]===void 0)throw new Error(`Unit '${Y}' is not valid`);const gt=q[0]==="(",It=q[1]===")",Yt=gt?this.isAfter(Q,Y):!this.isBefore(Q,Y),ae=It?this.isBefore(O,Y):!this.isAfter(O,Y);return Yt&&ae}parts(Q=this.localization.locale,O={dateStyle:"full",timeStyle:"long"}){const Y={};return new Intl.DateTimeFormat(Q,O).formatToParts(this).filter(q=>q.type!=="literal").forEach(q=>Y[q.type]=q.value),Y}get seconds(){return this.getSeconds()}set seconds(Q){this.setSeconds(Q)}get secondsFormatted(){return this.parts(void 0,bm).second}get minutes(){return this.getMinutes()}set minutes(Q){this.setMinutes(Q)}get minutesFormatted(){return this.parts(void 0,bm).minute}get hours(){return this.getHours()}set hours(Q){this.setHours(Q)}getHoursFormatted(Q="h12"){return this.parts(void 0,{...bm,hourCycle:Q}).hour}meridiem(Q=this.localization.locale){var O;return(O=new Intl.DateTimeFormat(Q,{hour:"numeric",hour12:!0}).formatToParts(this).find(Y=>Y.type==="dayPeriod"))==null?void 0:O.value}get date(){return this.getDate()}set date(Q){this.setDate(Q)}get dateFormatted(){return this.parts(void 0,bm).day}get weekDay(){return this.getDay()}get month(){return this.getMonth()}set month(Q){const O=new Date(this.year,Q+1);O.setDate(0);const Y=O.getDate();this.date>Y&&(this.date=Y),this.setMonth(Q)}get monthFormatted(){return this.parts(void 0,bm).month}get year(){return this.getFullYear()}set year(Q){this.setFullYear(Q)}get week(){const Q=this.computeOrdinal(),O=this.getUTCDay();let Y=Math.floor((Q-O+10)/7);return Y<1?Y=this.weeksInWeekYear():Y>this.weeksInWeekYear()&&(Y=1),Y}weeksInWeekYear(){const Q=(this.year+Math.floor(this.year/4)-Math.floor(this.year/100)+Math.floor(this.year/400))%7,O=this.year-1,Y=(O+Math.floor(O/4)-Math.floor(O/100)+Math.floor(O/400))%7;return Q===4||Y===3?53:52}get isLeapYear(){return this.year%4===0&&(this.year%100!==0||this.year%400===0)}computeOrdinal(){return this.date+(this.isLeapYear?this.leapLadder:this.nonLeapLadder)[this.month]}getAllMonths(Q="long"){const O=new Intl.DateTimeFormat(this.localization.locale,{month:Q}).format;return[...Array(12).keys()].map(Y=>O(new Date(2021,Y)))}replaceTokens(Q,O){return Q.replace(/(\[[^[\]]*])|(LTS?|l{1,4}|L{1,4})/g,(Y,q,gt)=>{const It=gt&>.toUpperCase();return q||O[It]||As.dateFormats[It]})}parseTwoDigitYear(Q){return Q+(Q>68?1900:2e3)}offsetFromString(Q){if(!Q||Q==="Z")return 0;const[O,Y,q]=Q.match(/([+-]|\d\d)/g),gt=+Y*60+(+q||0),It=O==="+"?-gt:gt;return gt===0?0:It}zoneInformation(Q,O){let Y=Q.parts(this.localization.locale,{timeZoneName:"longOffset"}).timeZoneName.replace("GMT","").replace(":","");const q=Y.includes("-");return Y=Y.replace("-",""),O==="z"?Y=Y.substring(1,2):O==="zz"&&(Y=Y.substring(0,2)),`${q?"-":""}${Y}`}addInput(Q){return(O,Y)=>{O[Q]=+Y}}getLocaleAfternoon(){var Q,O;return(O=(Q=new Intl.DateTimeFormat(this.localization.locale,{hour:"numeric",hour12:!0}).formatToParts(new Date(2022,3,4,13)).find(Y=>Y.type==="dayPeriod"))==null?void 0:Q.value)==null?void 0:O.replace(/\s+/g," ")}meridiemMatch(Q){return Q.toLowerCase()===this.getLocaleAfternoon().toLowerCase()}correctHours(Q){const{afternoon:O}=Q;if(O!==void 0){const{hours:Y}=Q;O?Y<12&&(Q.hours+=12):Y===12&&(Q.hours=0),delete Q.afternoon}}makeParser(Q){Q=this.replaceTokens(Q,this.localization.dateFormats);const O=Q.match(this.formattingTokens),{length:Y}=O,q=[];for(let gt=0;gt{const It={hours:0,minutes:0,seconds:0,milliseconds:0};for(let Yt=0,ae=0;Yt-1)return new sr((O.format==="X"?1e3:1)*+Q);Q=Q.replace(/\s+/g," ");const q=Y.makeParser(O.format),{year:gt,month:It,day:Yt,hours:ae,minutes:Dt,seconds:Pt,milliseconds:Ue,zone:er}=q(Q),Qi=Yt||(!gt&&!It?Y.getDate():1),Nn=gt||Y.getFullYear();let an=0;return gt&&!It||(an=It>0?It-1:Y.getMonth()),er?new sr(Date.UTC(Nn,an,Qi,ae,Dt,Pt,Ue+er.offset*60*1e3)):new sr(Nn,an,Qi,ae,Dt,Pt,Ue)}catch{Et.errorMessages.customDateFormatError(`Unable to parse provided input: ${Q}, format: ${O.format}`)}}format(Q,O=this.localization.locale){if(Q&&typeof Q=="object")return new Intl.DateTimeFormat(O,Q).format(this);const Y=this.replaceTokens(Q||this.localization.format||`${As.dateFormats.L}, ${As.dateFormats.LT}`,this.localization.dateFormats),q=ae=>new Intl.DateTimeFormat(this.localization.locale,ae).format(this);this.localization.hourCycle||(this.localization.hourCycle=l7(this.localization.locale));const gt=this.localization.hourCycle.startsWith("h1")?"h24":this.localization.hourCycle,It=this.localization.hourCycle.startsWith("h2")?"h12":this.localization.hourCycle,Yt={y:this.year,yy:q({year:"2-digit"}),yyyy:this.year,M:q({month:"numeric"}),MM:this.monthFormatted,MMM:this.getAllMonths("short")[this.getMonth()],MMMM:this.getAllMonths()[this.getMonth()],d:this.date,dd:this.dateFormatted,ddd:q({weekday:"short"}),dddd:q({weekday:"long"}),H:this.getHours(),HH:this.getHoursFormatted(gt),h:this.hours>12?this.hours-12:this.hours,hh:this.getHoursFormatted(It),t:this.meridiem(),T:this.meridiem().toUpperCase(),m:this.minutes,mm:this.minutesFormatted,s:this.seconds,ss:this.secondsFormatted,fff:this.getMilliseconds()};return Y.replace(this.dateTimeRegex,(ae,Dt)=>Dt||Yt[ae]).replace(/\[/g,"").replace(/]/g,"")}}class cH{constructor(){this.cache=new Map}locate(Q){const O=this.cache.get(Q);if(O)return O;const Y=new Q;return this.cache.set(Q,Y),Y}}const uH=()=>{An=new cH};let An;const Id=[{name:"calendar",className:Et.css.daysContainer,unit:Kt.month,step:1},{name:"months",className:Et.css.monthsContainer,unit:Kt.year,step:1},{name:"years",className:Et.css.yearsContainer,unit:Kt.year,step:10},{name:"decades",className:Et.css.decadesContainer,unit:Kt.year,step:100}];class xo{constructor(){this._currentCalendarViewMode=0,this._viewDate=new sr,this.minimumCalendarViewMode=0,this.currentView="calendar"}get currentCalendarViewMode(){return this._currentCalendarViewMode}set currentCalendarViewMode(Q){this._currentCalendarViewMode=Q,this.currentView=Id[Q].name}get viewDate(){return this._viewDate}set viewDate(Q){this._viewDate=Q,this.options&&(this.options.viewDate=Q)}refreshCurrentView(){this.currentView=Id[this.currentCalendarViewMode].name}get isTwelveHour(){return["h12","h11"].includes(this.options.localization.hourCycle)}}class js{constructor(){this.optionsStore=An.locate(xo)}isValid(Q,O){var Y,q;return!(!this._enabledDisabledDatesIsValid(O,Q)||O!==Kt.month&&O!==Kt.year&&((Y=this.optionsStore.options.restrictions.daysOfWeekDisabled)==null?void 0:Y.length)>0&&this.optionsStore.options.restrictions.daysOfWeekDisabled.indexOf(Q.weekDay)!==-1||!this._minMaxIsValid(O,Q)||(O===Kt.hours||O===Kt.minutes||O===Kt.seconds)&&(!this._enabledDisabledHoursIsValid(Q)||((q=this.optionsStore.options.restrictions.disabledTimeIntervals)==null?void 0:q.filter(gt=>Q.isBetween(gt.from,gt.to)).length)!==0))}_enabledDisabledDatesIsValid(Q,O){return Q!==Kt.date?!0:!(this.optionsStore.options.restrictions.disabledDates.length>0&&this._isInDisabledDates(O)||this.optionsStore.options.restrictions.enabledDates.length>0&&!this._isInEnabledDates(O))}_isInDisabledDates(Q){return!this.optionsStore.options.restrictions.disabledDates||this.optionsStore.options.restrictions.disabledDates.length===0?!1:!!this.optionsStore.options.restrictions.disabledDates.find(O=>O.isSame(Q,Kt.date))}_isInEnabledDates(Q){return!this.optionsStore.options.restrictions.enabledDates||this.optionsStore.options.restrictions.enabledDates.length===0?!0:!!this.optionsStore.options.restrictions.enabledDates.find(O=>O.isSame(Q,Kt.date))}_minMaxIsValid(Q,O){return!(this.optionsStore.options.restrictions.minDate&&O.isBefore(this.optionsStore.options.restrictions.minDate,Q)||this.optionsStore.options.restrictions.maxDate&&O.isAfter(this.optionsStore.options.restrictions.maxDate,Q))}_enabledDisabledHoursIsValid(Q){return!(this.optionsStore.options.restrictions.disabledHours.length>0&&this._isInDisabledHours(Q)||this.optionsStore.options.restrictions.enabledHours.length>0&&!this._isInEnabledHours(Q))}_isInDisabledHours(Q){if(!this.optionsStore.options.restrictions.disabledHours||this.optionsStore.options.restrictions.disabledHours.length===0)return!1;const O=Q.hours;return this.optionsStore.options.restrictions.disabledHours.includes(O)}_isInEnabledHours(Q){if(!this.optionsStore.options.restrictions.enabledHours||this.optionsStore.options.restrictions.enabledHours.length===0)return!0;const O=Q.hours;return this.optionsStore.options.restrictions.enabledHours.includes(O)}dateRangeIsValid(Q,O,Y){if(!this.optionsStore.options.dateRange||Q.length!==2&&O!==1)return!0;const q=Q[0].clone;if(q.isSame(Y,Kt.date))return!0;for(q.manipulate(1,Kt.date);!q.isSame(Y,Kt.date);){if(!this.isValid(q,Kt.date))return!1;q.manipulate(1,Kt.date)}return!0}}class Tm{constructor(){this.subscribers=[]}subscribe(Q){return this.subscribers.push(Q),this.unsubscribe.bind(this,this.subscribers.length-1)}unsubscribe(Q){this.subscribers.splice(Q,1)}emit(Q){this.subscribers.forEach(O=>{O(Q)})}destroy(){this.subscribers=null,this.subscribers=[]}}class ev{constructor(){this.triggerEvent=new Tm,this.viewUpdate=new Tm,this.updateDisplay=new Tm,this.action=new Tm,this.updateViewDate=new Tm}destroy(){this.triggerEvent.destroy(),this.viewUpdate.destroy(),this.updateDisplay.destroy(),this.action.destroy(),this.updateViewDate.destroy()}}const c7={clear:"Clear selection",close:"Close the picker",dateFormats:As.dateFormats,dayViewHeaderFormat:{month:"long",year:"2-digit"},decrementHour:"Decrement Hour",decrementMinute:"Decrement Minute",decrementSecond:"Decrement Second",format:As.format,hourCycle:As.hourCycle,incrementHour:"Increment Hour",incrementMinute:"Increment Minute",incrementSecond:"Increment Second",locale:As.locale,maxWeekdayLength:0,nextCentury:"Next Century",nextDecade:"Next Decade",nextMonth:"Next Month",nextYear:"Next Year",ordinal:As.ordinal,pickHour:"Pick Hour",pickMinute:"Pick Minute",pickSecond:"Pick Second",previousCentury:"Previous Century",previousDecade:"Previous Decade",previousMonth:"Previous Month",previousYear:"Previous Year",selectDate:"Select Date",selectDecade:"Select Decade",selectMonth:"Select Month",selectTime:"Select Time",selectYear:"Select Year",startOfTheWeek:0,today:"Go to today",toggleMeridiem:"Toggle Meridiem"},wm={allowInputToggle:!1,container:void 0,dateRange:!1,debug:!1,defaultDate:void 0,display:{icons:{type:"icons",time:"fa-solid fa-clock",date:"fa-solid fa-calendar",up:"fa-solid fa-arrow-up",down:"fa-solid fa-arrow-down",previous:"fa-solid fa-chevron-left",next:"fa-solid fa-chevron-right",today:"fa-solid fa-calendar-check",clear:"fa-solid fa-trash",close:"fa-solid fa-xmark"},sideBySide:!1,calendarWeeks:!1,viewMode:"calendar",toolbarPlacement:"bottom",keepOpen:!1,buttons:{today:!1,clear:!1,close:!1},components:{calendar:!0,date:!0,month:!0,year:!0,decades:!0,clock:!0,hours:!0,minutes:!0,seconds:!1,useTwentyfourHour:void 0},inline:!1,theme:"auto",placement:"bottom"},keepInvalid:!1,localization:c7,meta:{},multipleDates:!1,multipleDatesSeparator:"; ",promptTimeOnDateChange:!1,promptTimeOnDateChangeTransitionDelay:200,restrictions:{minDate:void 0,maxDate:void 0,disabledDates:[],enabledDates:[],daysOfWeekDisabled:[],disabledTimeIntervals:[],disabledHours:[],enabledHours:[]},stepping:1,useCurrent:!0,viewDate:new sr};({...c7});function u7(Lt,Q){if(!Lt)return null;if(Lt.constructor.name===sr.name)return Lt;if(Lt.constructor.name===Date.name)return sr.convert(Lt);if(typeof Lt=="string"){const O=sr.fromString(Lt,Q);return JSON.stringify(O)==="null"?null:O}return null}function nv(Lt,Q,O){typeof Lt=="string"&&Q!=="input"&&Et.errorMessages.dateString();const Y=u7(Lt,O);return Y||Et.errorMessages.failedToParseDate(Q,Lt,Q==="input"),Y}function h7(Lt,Q,O,Y=As){Array.isArray(Q)||Et.errorMessages.typeMismatch(Lt,O,"array of DateTime or Date");for(let q=0;qtypeof Y!="number"))&&Et.errorMessages.typeMismatch(Lt,O,"array of numbers")}function Z3(Lt){return({value:Q,providedType:O,localization:Y})=>{const q=nv(Q,Lt,Y);if(q!==void 0)return q.setLocalization(Y),q}}function JB(Lt){const Q=Z3(Lt);return O=>O.value===void 0?O.value:Q(O)}function f7(Lt,Q,O){return({value:Y,providedType:q})=>Y===void 0?[]:(d7(Lt,Y,q),Y.some(gt=>gtO)&&Et.errorMessages.numbersOutOfRange(Lt,Q,O),Y)}function qB(Lt){return f7(Lt,0,23)}function t7(Lt){return({value:Q,providedType:O,localization:Y})=>Q===void 0?[]:(h7(Lt,Q,O,Y),Q)}function kd(Lt){return({value:Q,path:O})=>(Lt.includes(Q)||Et.errorMessages.unexpectedOptionValue(O.substring(1),Q,Lt),Q)}const hH=Object.freeze({defaultDate:Z3("defaultDate"),viewDate:Z3("viewDate"),minDate:JB("restrictions.minDate"),maxDate:JB("restrictions.maxDate"),disabledHours:qB("restrictions.disabledHours"),enabledHours:qB("restrictions.enabledHours"),disabledDates:t7("restrictions.disabledDates"),enabledDates:t7("restrictions.enabledDates"),daysOfWeekDisabled:f7("restrictions.daysOfWeekDisabled",0,6),disabledTimeIntervals:({key:Lt,value:Q,providedType:O,localization:Y})=>{if(Q===void 0)return[];Array.isArray(Q)||Et.errorMessages.typeMismatch(Lt,O,"array of { from: DateTime|Date, to: DateTime|Date }");const q=Q;for(let gt=0;gt{const Yt=`${Lt}[${gt}].${It}`,ae=q[gt][It],Dt=nv(ae,Yt,Y);Dt.setLocalization(Y),q[gt][It]=Dt});return q},toolbarPlacement:kd(["top","bottom","default"]),type:kd(["icons","sprites"]),viewMode:kd(["clock","calendar","months","years","decades"]),theme:kd(["light","dark","auto"]),placement:kd(["top","bottom"]),meta:({value:Lt})=>Lt,dayViewHeaderFormat:({value:Lt})=>Lt,container:({value:Lt,path:Q})=>(Lt&&!(Lt instanceof HTMLElement||Lt instanceof Element||(Lt==null?void 0:Lt.appendChild))&&Et.errorMessages.typeMismatch(Q.substring(1),typeof Lt,"HTMLElement"),Lt),useTwentyfourHour:({value:Lt,path:Q,providedType:O,defaultType:Y})=>{if(Et.errorMessages.deprecatedWarning("useTwentyfourHour",'Please use "options.localization.hourCycle" instead'),Lt===void 0||O==="boolean")return Lt;Et.errorMessages.typeMismatch(Q,O,Y)},hourCycle:kd(["h11","h12","h23","h24"])}),dH=({value:Lt,defaultType:Q,providedType:O,path:Y})=>{switch(Q){case"boolean":return Lt==="true"||Lt===!0;case"number":return+Lt;case"string":return Lt.toString();case"object":return{};case"function":return Lt;default:Et.errorMessages.typeMismatch(Y,O,Q)}};function fH(Lt){return(hH[Lt.key]||dH)(Lt)}class Xi{static deepCopy(Q){const O={};return Object.keys(Q).forEach(Y=>{const q=Q[Y];if(q instanceof sr){O[Y]=q.clone;return}else if(q instanceof Date){O[Y]=new Date(q.valueOf());return}O[Y]=q,!(typeof q!="object"||q instanceof HTMLElement||q instanceof Element)&&(Array.isArray(q)||(O[Y]=Xi.deepCopy(q)))}),O}static objectPath(Q,O){return Q.charAt(0)==="."&&(Q=Q.slice(1)),Q?Q.split(".").reduce((Y,q)=>Xi.isValue(Y)||Xi.isValue(Y[q])?Y[q]:void 0,O):O}static spread(Q,O,Y,q=""){const gt=Xi.objectPath(q,wm),It=Object.keys(Q).filter(Yt=>!Object.keys(gt).includes(Yt));if(It.length>0){const Yt=Xi.getFlattenDefaultOptions(),ae=It.map(Dt=>{let Pt=`"${q}.${Dt}" in not a known option.`;const Ue=Yt.find(er=>er.includes(Dt));return Ue&&(Pt+=` Did you mean "${Ue}"?`),Pt});Et.errorMessages.unexpectedOptions(ae)}Object.keys(Q).filter(Yt=>Yt!=="__proto__"&&Yt!=="constructor").forEach(Yt=>{q+=`.${Yt}`,q.charAt(0)==="."&&(q=q.slice(1));const ae=gt[Yt],Dt=typeof Q[Yt],Pt=typeof ae,Ue=Q[Yt];if(Ue==null){O[Yt]=Ue,q=q.substring(0,q.lastIndexOf(`.${Yt}`));return}typeof ae=="object"&&!Array.isArray(Q[Yt])&&!(ae instanceof Date||Xi.ignoreProperties.includes(Yt))?Xi.spread(Q[Yt],O[Yt],Y,q):O[Yt]=Xi.processKey(Yt,Ue,Dt,Pt,q,Y),q=q.substring(0,q.lastIndexOf(`.${Yt}`))})}static processKey(Q,O,Y,q,gt,It){return fH({key:Q,value:O,providedType:Y,defaultType:q,path:gt,localization:It})}static _mergeOptions(Q,O){var gt;const Y=Xi.deepCopy(O),q=((gt=O.localization)==null?void 0:gt.locale)!=="default"?O.localization:(Q==null?void 0:Q.localization)||wm.localization;return Xi.spread(Q,Y,q,""),Y}static _dataToOptions(Q,O){const Y=JSON.parse(JSON.stringify(Q.dataset));if(Y!=null&&Y.tdTargetInput&&delete Y.tdTargetInput,Y!=null&&Y.tdTargetToggle&&delete Y.tdTargetToggle,!Y||Object.keys(Y).length===0||Y.constructor!==DOMStringMap)return O;const q={},gt=ae=>{const Dt={};return Object.keys(ae).forEach(Pt=>{Dt[Pt.toLowerCase()]=Pt}),Dt},It=this.normalizeObject(gt),Yt=gt(O);return Object.keys(Y).filter(ae=>ae.startsWith(Et.dataKey)).map(ae=>ae.substring(2)).forEach(ae=>{let Dt=Yt[ae.toLowerCase()];if(ae.includes("_")){const Pt=ae.split("_");Dt=Yt[Pt[0].toLowerCase()],Dt!==void 0&&O[Dt].constructor===Object&&(q[Dt]=It(Pt,1,O[Dt],Y[`td${ae}`]))}else Dt!==void 0&&(q[Dt]=Y[`td${ae}`])}),this._mergeOptions(q,O)}static normalizeObject(Q){const O=(Y,q,gt,It)=>{const ae=Q(gt)[Y[q].toLowerCase()],Dt={};return ae===void 0||(gt[ae].constructor===Object?(q++,Dt[ae]=O(Y,q,gt[ae],It)):Dt[ae]=It),Dt};return O}static _dateTypeCheck(Q,O){return u7(Q,O)}static _typeCheckDateArray(Q,O,Y,q){return h7(Q,O,Y,q)}static _typeCheckNumberArray(Q,O,Y){return d7(Q,O,Y)}static dateConversion(Q,O,Y){return nv(Q,O,Y)}static getFlattenDefaultOptions(){if(this._flattenDefaults)return this._flattenDefaults;const Q=(O,Y=[])=>Array.isArray(O)?[]:Object(O)===O?Object.entries(O).flatMap(([q,gt])=>Q(gt,[...Y,q])):Y.join(".");return this._flattenDefaults=Q(wm),this._flattenDefaults}static _validateConflicts(Q){Q.display.sideBySide&&(!Q.display.components.clock||!(Q.display.components.hours||Q.display.components.minutes||Q.display.components.seconds))&&Et.errorMessages.conflictingConfiguration("Cannot use side by side mode without the clock components"),Q.restrictions.minDate&&Q.restrictions.maxDate&&(Q.restrictions.minDate.isAfter(Q.restrictions.maxDate)&&Et.errorMessages.conflictingConfiguration("minDate is after maxDate"),Q.restrictions.maxDate.isBefore(Q.restrictions.minDate)&&Et.errorMessages.conflictingConfiguration("maxDate is before minDate")),Q.multipleDates&&Q.dateRange&&Et.errorMessages.conflictingConfiguration('Cannot uss option "multipleDates" with "dateRange"')}}Xi.ignoreProperties=["meta","dayViewHeaderFormat","container","dateForms","ordinal"];Xi.isValue=Lt=>Lt!=null;class El{constructor(){this._dates=[],this.optionsStore=An.locate(xo),this.validation=An.locate(js),this._eventEmitters=An.locate(ev)}get picked(){return[...this._dates]}get lastPicked(){var Q;return(Q=this._dates[this.lastPickedIndex])==null?void 0:Q.clone}get lastPickedIndex(){return this._dates.length===0?0:this._dates.length-1}formatInput(Q){return Q?(Q.localization=this.optionsStore.options.localization,Q.format()):""}parseInput(Q){return Xi.dateConversion(Q,"input",this.optionsStore.options.localization)}setFromInput(Q,O){if(!Q){this.setValue(void 0,O);return}const Y=this.parseInput(Q);Y&&(Y.setLocalization(this.optionsStore.options.localization),this.setValue(Y,O))}add(Q){this._dates.push(Q)}isPicked(Q,O){if(!sr.isValid(Q))return!1;if(!O)return this._dates.find(gt=>gt.isSame(Q))!==void 0;const Y=ZB(O),q=Q.format(Y);return this._dates.map(gt=>gt.format(Y)).find(gt=>gt===q)!==void 0}pickedIndex(Q,O){if(!sr.isValid(Q))return-1;if(!O)return this._dates.map(gt=>gt.valueOf()).indexOf(Q.valueOf());const Y=ZB(O),q=Q.format(Y);return this._dates.map(gt=>gt.format(Y)).indexOf(q)}clear(){this.optionsStore.unset=!0,this._eventEmitters.triggerEvent.emit({type:Et.events.change,date:void 0,oldDate:this.lastPicked,isClear:!0,isValid:!0}),this._dates=[],this.optionsStore.input&&(this.optionsStore.input.value=""),this._eventEmitters.updateDisplay.emit("all")}static getStartEndYear(Q,O){const Y=Q/10,q=Math.floor(O/Q)*Q,gt=q+Y*9,It=Math.floor(O/Y)*Y;return[q,gt,It]}updateInput(Q){if(!this.optionsStore.input)return;let O=this.formatInput(Q);(this.optionsStore.options.multipleDates||this.optionsStore.options.dateRange)&&(O=this._dates.map(Y=>this.formatInput(Y)).join(this.optionsStore.options.multipleDatesSeparator)),this.optionsStore.input.value!=O&&(this.optionsStore.input.value=O)}setValue(Q,O){var Yt;const Y=typeof O>"u",q=!Q&&Y;let gt=this.optionsStore.unset?null:(Yt=this._dates[O])==null?void 0:Yt.clone;if(!gt&&!this.optionsStore.unset&&Y&&q&&(gt=this.lastPicked),Q&&(gt==null?void 0:gt.isSame(Q))){this.updateInput(Q);return}if(!Q){this._setValueNull(q,O,gt);return}O=O||0,Q=Q.clone,this.optionsStore.options.stepping!==1&&(Q.minutes=Math.round(Q.minutes/this.optionsStore.options.stepping)*this.optionsStore.options.stepping,Q.startOf(Kt.minutes));const It=ae=>{this._dates[O]=Q,this._eventEmitters.updateViewDate.emit(Q.clone),this.updateInput(Q),this.optionsStore.unset=!1,this._eventEmitters.updateDisplay.emit("all"),this._eventEmitters.triggerEvent.emit({type:Et.events.change,date:Q,oldDate:gt,isClear:q,isValid:ae})};if(this.validation.isValid(Q)&&this.validation.dateRangeIsValid(this.picked,O,Q)){It(!0);return}this.optionsStore.options.keepInvalid&&It(!1),this._eventEmitters.triggerEvent.emit({type:Et.events.error,reason:Et.errorMessages.failedToSetInvalidDate,date:Q,oldDate:gt})}_setValueNull(Q,O,Y){!this.optionsStore.options.multipleDates||this._dates.length===1||Q?(this.optionsStore.unset=!0,this._dates=[]):this._dates.splice(O,1),this.updateInput(),this._eventEmitters.triggerEvent.emit({type:Et.events.change,date:void 0,oldDate:Y,isClear:Q,isValid:!0}),this._eventEmitters.updateDisplay.emit("all")}}var J3;(function(Lt){Lt.next="next",Lt.previous="previous",Lt.changeCalendarView="changeCalendarView",Lt.selectMonth="selectMonth",Lt.selectYear="selectYear",Lt.selectDecade="selectDecade",Lt.selectDay="selectDay",Lt.selectHour="selectHour",Lt.selectMinute="selectMinute",Lt.selectSecond="selectSecond",Lt.incrementHours="incrementHours",Lt.incrementMinutes="incrementMinutes",Lt.incrementSeconds="incrementSeconds",Lt.decrementHours="decrementHours",Lt.decrementMinutes="decrementMinutes",Lt.decrementSeconds="decrementSeconds",Lt.toggleMeridiem="toggleMeridiem",Lt.togglePicker="togglePicker",Lt.showClock="showClock",Lt.showHours="showHours",Lt.showMinutes="showMinutes",Lt.showSeconds="showSeconds",Lt.clear="clear",Lt.close="close",Lt.today="today"})(J3||(J3={}));var Ee=J3;class pH{constructor(){this.optionsStore=An.locate(xo),this.dates=An.locate(El),this.validation=An.locate(js)}getPicker(){const Q=document.createElement("div");if(Q.classList.add(Et.css.daysContainer),Q.append(...this._daysOfTheWeek()),this.optionsStore.options.display.calendarWeeks){const q=document.createElement("div");q.classList.add(Et.css.calendarWeeks,Et.css.noHighlight),Q.appendChild(q)}const{rangeHoverEvent:O,rangeHoverOutEvent:Y}=this.handleMouseEvents(Q);for(let q=0;q<42;q++){if(q!==0&&q%7===0&&this.optionsStore.options.display.calendarWeeks){const It=document.createElement("div");It.classList.add(Et.css.calendarWeeks,Et.css.noHighlight),Q.appendChild(It)}const gt=document.createElement("div");gt.setAttribute("data-action",Ee.selectDay),Q.appendChild(gt),matchMedia("(hover: hover)").matches&&this.optionsStore.options.dateRange&&(gt.addEventListener("mouseover",O),gt.addEventListener("mouseout",Y))}return Q}_update(Q,O){const Y=Q.getElementsByClassName(Et.css.daysContainer)[0];this._updateCalendarView(Y);const q=this.optionsStore.viewDate.clone.startOf(Kt.month).startOf("weekDay",this.optionsStore.options.localization.startOfTheWeek).manipulate(12,Kt.hours);this._handleCalendarWeeks(Y,q.clone),Y.querySelectorAll(`[data-action="${Ee.selectDay}"]`).forEach(gt=>{const It=[];It.push(Et.css.day),q.isBefore(this.optionsStore.viewDate,Kt.month)&&It.push(Et.css.old),q.isAfter(this.optionsStore.viewDate,Kt.month)&&It.push(Et.css.new),!this.optionsStore.unset&&!this.optionsStore.options.dateRange&&this.dates.isPicked(q,Kt.date)&&It.push(Et.css.active),this.validation.isValid(q,Kt.date)||It.push(Et.css.disabled),q.isSame(new sr,Kt.date)&&It.push(Et.css.today),(q.weekDay===0||q.weekDay===6)&&It.push(Et.css.weekend),this._handleDateRange(q,It),O(Kt.date,q,It,gt),gt.classList.remove(...gt.classList),gt.classList.add(...It),gt.setAttribute("data-value",this._dateToDataValue(q)),gt.setAttribute("data-day",`${q.date}`),gt.innerText=q.parts(void 0,{day:"numeric"}).day,q.manipulate(1,Kt.date)})}_dateToDataValue(Q){return sr.isValid(Q)?`${Q.year}-${Q.monthFormatted}-${Q.dateFormatted}`:""}_handleDateRange(Q,O){const Y=this.dates.picked[0],q=this.dates.picked[1];this.optionsStore.options.dateRange&&(Q.isBetween(Y,q,Kt.date)&&O.push(Et.css.rangeIn),Q.isSame(Y,Kt.date)&&O.push(Et.css.rangeStart),Q.isSame(q,Kt.date)&&O.push(Et.css.rangeEnd))}handleMouseEvents(Q){return{rangeHoverEvent:q=>{const gt=q==null?void 0:q.currentTarget;if(this.dates.picked.length!==1||gt.classList.contains(Et.css.disabled))return;const It=[...Q.querySelectorAll(".day")],Yt=gt.getAttribute("data-value"),ae=sr.fromString(Yt,{format:"yyyy-MM-dd"}),Dt=It.findIndex(so=>so.getAttribute("data-value")===Yt),Pt=this.dates.picked[0],Ue=this.dates.picked[1],er=this._dateToDataValue(Pt),Qi=It.findIndex(so=>so.getAttribute("data-value")===er),Nn=It[Qi];ae.isSame(Pt,Kt.date)||gt.classList.remove(Et.css.rangeStart),ae.isSame(Ue,Kt.date)||gt.classList.remove(Et.css.rangeEnd);let an;ae.isBefore(Pt)?(gt.classList.add(Et.css.rangeStart),Nn==null||Nn.classList.remove(Et.css.rangeStart),Nn==null||Nn.classList.add(Et.css.rangeEnd),an=(so,kA)=>kA>Dt&&kAkAQi),It.filter(an).forEach(so=>{so.classList.add(Et.css.rangeIn)})},rangeHoverOutEvent:q=>{const gt=[...Q.querySelectorAll(".day")];if(this.dates.picked.length===1&>.forEach(ae=>ae.classList.remove(Et.css.rangeIn)),this.dates.picked.length!==1)return;const It=q==null?void 0:q.currentTarget,Yt=new sr(It.getAttribute("data-value"));Yt.isSame(this.dates.picked[0],Kt.date)||It.classList.remove(Et.css.rangeStart),Yt.isSame(this.dates.picked[1],Kt.date)||It.classList.remove(Et.css.rangeEnd)}}}_updateCalendarView(Q){if(this.optionsStore.currentView!=="calendar")return;const[O,Y,q]=Q.parentElement.getElementsByClassName(Et.css.calendarHeader)[0].getElementsByTagName("div");Y.setAttribute(Et.css.daysContainer,this.optionsStore.viewDate.format(this.optionsStore.options.localization.dayViewHeaderFormat)),this.optionsStore.options.display.components.month?Y.classList.remove(Et.css.disabled):Y.classList.add(Et.css.disabled),this.validation.isValid(this.optionsStore.viewDate.clone.manipulate(-1,Kt.month),Kt.month)?O.classList.remove(Et.css.disabled):O.classList.add(Et.css.disabled),this.validation.isValid(this.optionsStore.viewDate.clone.manipulate(1,Kt.month),Kt.month)?q.classList.remove(Et.css.disabled):q.classList.add(Et.css.disabled)}_daysOfTheWeek(){const Q=this.optionsStore.viewDate.clone.startOf("weekDay",this.optionsStore.options.localization.startOfTheWeek).startOf(Kt.date),O=[];if(document.createElement("div"),this.optionsStore.options.display.calendarWeeks){const Y=document.createElement("div");Y.classList.add(Et.css.calendarWeeks,Et.css.noHighlight),Y.innerText="#",O.push(Y)}for(let Y=0;Y<7;Y++){const q=document.createElement("div");q.classList.add(Et.css.dayOfTheWeek,Et.css.noHighlight);let gt=Q.format({weekday:"short"});this.optionsStore.options.localization.maxWeekdayLength>0&&(gt=gt.substring(0,this.optionsStore.options.localization.maxWeekdayLength)),q.innerText=gt,Q.manipulate(1,Kt.date),O.push(q)}return O}_handleCalendarWeeks(Q,O){[...Q.querySelectorAll(`.${Et.css.calendarWeeks}`)].filter(Y=>Y.innerText!=="#").forEach(Y=>{Y.innerText=`${O.week}`,O.manipulate(7,Kt.date)})}}class mH{constructor(){this.optionsStore=An.locate(xo),this.dates=An.locate(El),this.validation=An.locate(js)}getPicker(){const Q=document.createElement("div");Q.classList.add(Et.css.monthsContainer);for(let O=0;O<12;O++){const Y=document.createElement("div");Y.setAttribute("data-action",Ee.selectMonth),Q.appendChild(Y)}return Q}_update(Q,O){const Y=Q.getElementsByClassName(Et.css.monthsContainer)[0];if(this.optionsStore.currentView==="months"){const[gt,It,Yt]=Y.parentElement.getElementsByClassName(Et.css.calendarHeader)[0].getElementsByTagName("div");It.setAttribute(Et.css.monthsContainer,this.optionsStore.viewDate.format({year:"numeric"})),this.optionsStore.options.display.components.year?It.classList.remove(Et.css.disabled):It.classList.add(Et.css.disabled),this.validation.isValid(this.optionsStore.viewDate.clone.manipulate(-1,Kt.year),Kt.year)?gt.classList.remove(Et.css.disabled):gt.classList.add(Et.css.disabled),this.validation.isValid(this.optionsStore.viewDate.clone.manipulate(1,Kt.year),Kt.year)?Yt.classList.remove(Et.css.disabled):Yt.classList.add(Et.css.disabled)}const q=this.optionsStore.viewDate.clone.startOf(Kt.year);Y.querySelectorAll(`[data-action="${Ee.selectMonth}"]`).forEach((gt,It)=>{const Yt=[];Yt.push(Et.css.month),!this.optionsStore.unset&&this.dates.isPicked(q,Kt.month)&&Yt.push(Et.css.active),this.validation.isValid(q,Kt.month)||Yt.push(Et.css.disabled),O(Kt.month,q,Yt,gt),gt.classList.remove(...gt.classList),gt.classList.add(...Yt),gt.setAttribute("data-value",`${It}`),gt.innerText=`${q.format({month:"short"})}`,q.manipulate(1,Kt.month)})}}class gH{constructor(){this.optionsStore=An.locate(xo),this.dates=An.locate(El),this.validation=An.locate(js)}getPicker(){const Q=document.createElement("div");Q.classList.add(Et.css.yearsContainer);for(let O=0;O<12;O++){const Y=document.createElement("div");Y.setAttribute("data-action",Ee.selectYear),Q.appendChild(Y)}return Q}_update(Q,O){this._startYear=this.optionsStore.viewDate.clone.manipulate(-1,Kt.year),this._endYear=this.optionsStore.viewDate.clone.manipulate(10,Kt.year);const Y=Q.getElementsByClassName(Et.css.yearsContainer)[0];if(this.optionsStore.currentView==="years"){const[gt,It,Yt]=Y.parentElement.getElementsByClassName(Et.css.calendarHeader)[0].getElementsByTagName("div");It.setAttribute(Et.css.yearsContainer,`${this._startYear.format({year:"numeric"})}-${this._endYear.format({year:"numeric"})}`),this.optionsStore.options.display.components.decades?It.classList.remove(Et.css.disabled):It.classList.add(Et.css.disabled),this.validation.isValid(this._startYear,Kt.year)?gt.classList.remove(Et.css.disabled):gt.classList.add(Et.css.disabled),this.validation.isValid(this._endYear,Kt.year)?Yt.classList.remove(Et.css.disabled):Yt.classList.add(Et.css.disabled)}const q=this.optionsStore.viewDate.clone.startOf(Kt.year).manipulate(-1,Kt.year);Y.querySelectorAll(`[data-action="${Ee.selectYear}"]`).forEach(gt=>{const It=[];It.push(Et.css.year),!this.optionsStore.unset&&this.dates.isPicked(q,Kt.year)&&It.push(Et.css.active),this.validation.isValid(q,Kt.year)||It.push(Et.css.disabled),O(Kt.year,q,It,gt),gt.classList.remove(...gt.classList),gt.classList.add(...It),gt.setAttribute("data-value",`${q.year}`),gt.innerText=q.format({year:"numeric"}),q.manipulate(1,Kt.year)})}}class vH{constructor(){this.optionsStore=An.locate(xo),this.dates=An.locate(El),this.validation=An.locate(js)}getPicker(){const Q=document.createElement("div");Q.classList.add(Et.css.decadesContainer);for(let O=0;O<12;O++){const Y=document.createElement("div");Y.setAttribute("data-action",Ee.selectDecade),Q.appendChild(Y)}return Q}_update(Q,O){const[Y,q]=El.getStartEndYear(100,this.optionsStore.viewDate.year);this._startDecade=this.optionsStore.viewDate.clone.startOf(Kt.year),this._startDecade.year=Y,this._endDecade=this.optionsStore.viewDate.clone.startOf(Kt.year),this._endDecade.year=q;const gt=Q.getElementsByClassName(Et.css.decadesContainer)[0],[It,Yt,ae]=gt.parentElement.getElementsByClassName(Et.css.calendarHeader)[0].getElementsByTagName("div");this.optionsStore.currentView==="decades"&&(Yt.setAttribute(Et.css.decadesContainer,`${this._startDecade.format({year:"numeric"})}-${this._endDecade.format({year:"numeric"})}`),this.validation.isValid(this._startDecade,Kt.year)?It.classList.remove(Et.css.disabled):It.classList.add(Et.css.disabled),this.validation.isValid(this._endDecade,Kt.year)?ae.classList.remove(Et.css.disabled):ae.classList.add(Et.css.disabled));const Dt=this.dates.picked.map(Pt=>Pt.year);gt.querySelectorAll(`[data-action="${Ee.selectDecade}"]`).forEach((Pt,Ue)=>{if(Ue===0)if(Pt.classList.add(Et.css.old),this._startDecade.year-10<0){Pt.textContent=" ",It.classList.add(Et.css.disabled),Pt.classList.add(Et.css.disabled),Pt.setAttribute("data-value","");return}else{Pt.innerText=this._startDecade.clone.manipulate(-10,Kt.year).format({year:"numeric"}),Pt.setAttribute("data-value",`${this._startDecade.year}`);return}const er=[];er.push(Et.css.decade);const Qi=this._startDecade.year,Nn=this._startDecade.year+9;!this.optionsStore.unset&&Dt.filter(an=>an>=Qi&&an<=Nn).length>0&&er.push(Et.css.active),O("decade",this._startDecade,er,Pt),Pt.classList.remove(...Pt.classList),Pt.classList.add(...er),Pt.setAttribute("data-value",`${this._startDecade.year}`),Pt.innerText=`${this._startDecade.format({year:"numeric"})}`,this._startDecade.manipulate(10,Kt.year)})}}class yH{constructor(){this._gridColumns="",this.optionsStore=An.locate(xo),this.dates=An.locate(El),this.validation=An.locate(js)}getPicker(Q){const O=document.createElement("div");return O.classList.add(Et.css.clockContainer),O.append(...this._grid(Q)),O}_update(Q){var q;const O=Q.getElementsByClassName(Et.css.clockContainer)[0];let Y=(q=this.dates.lastPicked)==null?void 0:q.clone;if(!Y&&this.optionsStore.options.useCurrent&&(Y=this.optionsStore.viewDate.clone),O.querySelectorAll(".disabled").forEach(gt=>gt.classList.remove(Et.css.disabled)),this.optionsStore.options.display.components.hours&&(this.validation.isValid(this.optionsStore.viewDate.clone.manipulate(1,Kt.hours),Kt.hours)||O.querySelector(`[data-action=${Ee.incrementHours}]`).classList.add(Et.css.disabled),this.validation.isValid(this.optionsStore.viewDate.clone.manipulate(-1,Kt.hours),Kt.hours)||O.querySelector(`[data-action=${Ee.decrementHours}]`).classList.add(Et.css.disabled),O.querySelector(`[data-time-component=${Kt.hours}]`).innerText=Y?Y.getHoursFormatted(this.optionsStore.options.localization.hourCycle):"--"),this.optionsStore.options.display.components.minutes&&(this.validation.isValid(this.optionsStore.viewDate.clone.manipulate(1,Kt.minutes),Kt.minutes)||O.querySelector(`[data-action=${Ee.incrementMinutes}]`).classList.add(Et.css.disabled),this.validation.isValid(this.optionsStore.viewDate.clone.manipulate(-1,Kt.minutes),Kt.minutes)||O.querySelector(`[data-action=${Ee.decrementMinutes}]`).classList.add(Et.css.disabled),O.querySelector(`[data-time-component=${Kt.minutes}]`).innerText=Y?Y.minutesFormatted:"--"),this.optionsStore.options.display.components.seconds&&(this.validation.isValid(this.optionsStore.viewDate.clone.manipulate(1,Kt.seconds),Kt.seconds)||O.querySelector(`[data-action=${Ee.incrementSeconds}]`).classList.add(Et.css.disabled),this.validation.isValid(this.optionsStore.viewDate.clone.manipulate(-1,Kt.seconds),Kt.seconds)||O.querySelector(`[data-action=${Ee.decrementSeconds}]`).classList.add(Et.css.disabled),O.querySelector(`[data-time-component=${Kt.seconds}]`).innerText=Y?Y.secondsFormatted:"--"),this.optionsStore.isTwelveHour){const gt=O.querySelector(`[data-action=${Ee.toggleMeridiem}]`),It=(Y||this.optionsStore.viewDate).clone;gt.innerText=It.meridiem(),this.validation.isValid(It.manipulate(It.hours>=12?-12:12,Kt.hours))?gt.classList.remove(Et.css.disabled):gt.classList.add(Et.css.disabled)}O.style.gridTemplateAreas=`"${this._gridColumns}"`}_grid(Q){this._gridColumns="";const O=[],Y=[],q=[],gt=document.createElement("div"),It=Q(this.optionsStore.options.display.icons.up),Yt=Q(this.optionsStore.options.display.icons.down);gt.classList.add(Et.css.separator,Et.css.noHighlight);const ae=gt.cloneNode(!0);ae.innerHTML=":";const Dt=(Pt=!1)=>Pt?ae.cloneNode(!0):gt.cloneNode(!0);if(this.optionsStore.options.display.components.hours){let Pt=document.createElement("div");Pt.setAttribute("title",this.optionsStore.options.localization.incrementHour),Pt.setAttribute("data-action",Ee.incrementHours),Pt.appendChild(It.cloneNode(!0)),O.push(Pt),Pt=document.createElement("div"),Pt.setAttribute("title",this.optionsStore.options.localization.pickHour),Pt.setAttribute("data-action",Ee.showHours),Pt.setAttribute("data-time-component",Kt.hours),Y.push(Pt),Pt=document.createElement("div"),Pt.setAttribute("title",this.optionsStore.options.localization.decrementHour),Pt.setAttribute("data-action",Ee.decrementHours),Pt.appendChild(Yt.cloneNode(!0)),q.push(Pt),this._gridColumns+="a"}if(this.optionsStore.options.display.components.minutes){this._gridColumns+=" a",this.optionsStore.options.display.components.hours&&(O.push(Dt()),Y.push(Dt(!0)),q.push(Dt()),this._gridColumns+=" a");let Pt=document.createElement("div");Pt.setAttribute("title",this.optionsStore.options.localization.incrementMinute),Pt.setAttribute("data-action",Ee.incrementMinutes),Pt.appendChild(It.cloneNode(!0)),O.push(Pt),Pt=document.createElement("div"),Pt.setAttribute("title",this.optionsStore.options.localization.pickMinute),Pt.setAttribute("data-action",Ee.showMinutes),Pt.setAttribute("data-time-component",Kt.minutes),Y.push(Pt),Pt=document.createElement("div"),Pt.setAttribute("title",this.optionsStore.options.localization.decrementMinute),Pt.setAttribute("data-action",Ee.decrementMinutes),Pt.appendChild(Yt.cloneNode(!0)),q.push(Pt)}if(this.optionsStore.options.display.components.seconds){this._gridColumns+=" a",this.optionsStore.options.display.components.minutes&&(O.push(Dt()),Y.push(Dt(!0)),q.push(Dt()),this._gridColumns+=" a");let Pt=document.createElement("div");Pt.setAttribute("title",this.optionsStore.options.localization.incrementSecond),Pt.setAttribute("data-action",Ee.incrementSeconds),Pt.appendChild(It.cloneNode(!0)),O.push(Pt),Pt=document.createElement("div"),Pt.setAttribute("title",this.optionsStore.options.localization.pickSecond),Pt.setAttribute("data-action",Ee.showSeconds),Pt.setAttribute("data-time-component",Kt.seconds),Y.push(Pt),Pt=document.createElement("div"),Pt.setAttribute("title",this.optionsStore.options.localization.decrementSecond),Pt.setAttribute("data-action",Ee.decrementSeconds),Pt.appendChild(Yt.cloneNode(!0)),q.push(Pt)}if(this.optionsStore.isTwelveHour){this._gridColumns+=" a";let Pt=Dt();O.push(Pt);const Ue=document.createElement("button");Ue.setAttribute("type","button"),Ue.setAttribute("title",this.optionsStore.options.localization.toggleMeridiem),Ue.setAttribute("data-action",Ee.toggleMeridiem),Ue.setAttribute("tabindex","-1"),Et.css.toggleMeridiem.includes(",")?Ue.classList.add(...Et.css.toggleMeridiem.split(",")):Ue.classList.add(Et.css.toggleMeridiem),Pt=document.createElement("div"),Pt.classList.add(Et.css.noHighlight),Pt.appendChild(Ue),Y.push(Pt),Pt=Dt(),q.push(Pt)}return this._gridColumns=this._gridColumns.trim(),[...O,...Y,...q]}}class bH{constructor(){this.optionsStore=An.locate(xo),this.validation=An.locate(js)}getPicker(){const Q=document.createElement("div");Q.classList.add(Et.css.hourContainer);for(let O=0;O<(this.optionsStore.isTwelveHour?12:24);O++){const Y=document.createElement("div");Y.setAttribute("data-action",Ee.selectHour),Q.appendChild(Y)}return Q}_update(Q,O){const Y=Q.getElementsByClassName(Et.css.hourContainer)[0],q=this.optionsStore.viewDate.clone.startOf(Kt.date);Y.querySelectorAll(`[data-action="${Ee.selectHour}"]`).forEach(gt=>{const It=[];It.push(Et.css.hour),this.validation.isValid(q,Kt.hours)||It.push(Et.css.disabled),O(Kt.hours,q,It,gt),gt.classList.remove(...gt.classList),gt.classList.add(...It),gt.setAttribute("data-value",`${q.hours}`),gt.innerText=q.getHoursFormatted(this.optionsStore.options.localization.hourCycle),q.manipulate(1,Kt.hours)})}}class TH{constructor(){this.optionsStore=An.locate(xo),this.validation=An.locate(js)}getPicker(){const Q=document.createElement("div");Q.classList.add(Et.css.minuteContainer);const O=this.optionsStore.options.stepping===1?5:this.optionsStore.options.stepping;for(let Y=0;Y<60/O;Y++){const q=document.createElement("div");q.setAttribute("data-action",Ee.selectMinute),Q.appendChild(q)}return Q}_update(Q,O){const Y=Q.getElementsByClassName(Et.css.minuteContainer)[0],q=this.optionsStore.viewDate.clone.startOf(Kt.hours),gt=this.optionsStore.options.stepping===1?5:this.optionsStore.options.stepping;Y.querySelectorAll(`[data-action="${Ee.selectMinute}"]`).forEach(It=>{const Yt=[];Yt.push(Et.css.minute),this.validation.isValid(q,Kt.minutes)||Yt.push(Et.css.disabled),O(Kt.minutes,q,Yt,It),It.classList.remove(...It.classList),It.classList.add(...Yt),It.setAttribute("data-value",`${q.minutes}`),It.innerText=q.minutesFormatted,q.manipulate(gt,Kt.minutes)})}}class wH{constructor(){this.optionsStore=An.locate(xo),this.validation=An.locate(js)}getPicker(){const Q=document.createElement("div");Q.classList.add(Et.css.secondContainer);for(let O=0;O<12;O++){const Y=document.createElement("div");Y.setAttribute("data-action",Ee.selectSecond),Q.appendChild(Y)}return Q}_update(Q,O){const Y=Q.getElementsByClassName(Et.css.secondContainer)[0],q=this.optionsStore.viewDate.clone.startOf(Kt.minutes);Y.querySelectorAll(`[data-action="${Ee.selectSecond}"]`).forEach(gt=>{const It=[];It.push(Et.css.second),this.validation.isValid(q,Kt.seconds)||It.push(Et.css.disabled),O(Kt.seconds,q,It,gt),gt.classList.remove(...gt.classList),gt.classList.add(...It),gt.setAttribute("data-value",`${q.seconds}`),gt.innerText=q.secondsFormatted,q.manipulate(5,Kt.seconds)})}}class SA{static toggle(Q){Q.classList.contains(Et.css.show)?this.hide(Q):this.show(Q)}static showImmediately(Q){Q.classList.remove(Et.css.collapsing),Q.classList.add(Et.css.collapse,Et.css.show),Q.style.height=""}static show(Q){if(Q.classList.contains(Et.css.collapsing)||Q.classList.contains(Et.css.show))return;const O=()=>{SA.showImmediately(Q)};Q.style.height="0",Q.classList.remove(Et.css.collapse),Q.classList.add(Et.css.collapsing),setTimeout(O,this.getTransitionDurationFromElement(Q)),Q.style.height=`${Q.scrollHeight}px`}static hideImmediately(Q){!Q||(Q.classList.remove(Et.css.collapsing,Et.css.show),Q.classList.add(Et.css.collapse))}static hide(Q){if(Q.classList.contains(Et.css.collapsing)||!Q.classList.contains(Et.css.show))return;const O=()=>{SA.hideImmediately(Q)};Q.style.height=`${Q.getBoundingClientRect().height}px`,(q=>q.offsetHeight)(Q),Q.classList.remove(Et.css.collapse,Et.css.show),Q.classList.add(Et.css.collapsing),Q.style.height="",setTimeout(O,this.getTransitionDurationFromElement(Q))}}SA.getTransitionDurationFromElement=Lt=>{if(!Lt)return 0;let{transitionDuration:Q,transitionDelay:O}=window.getComputedStyle(Lt);const Y=Number.parseFloat(Q),q=Number.parseFloat(O);return!Y&&!q?0:(Q=Q.split(",")[0],O=O.split(",")[0],(Number.parseFloat(Q)+Number.parseFloat(O))*1e3)};class p7{constructor(){this._isVisible=!1,this._documentClickEvent=Q=>{var O;this.optionsStore.options.debug||window.debug||this._isVisible&&!Q.composedPath().includes(this.widget)&&!((O=Q.composedPath())!=null&&O.includes(this.optionsStore.element))&&this.hide()},this._actionsClickEvent=Q=>{this._eventEmitters.action.emit({e:Q})},this.optionsStore=An.locate(xo),this.validation=An.locate(js),this.dates=An.locate(El),this.dateDisplay=An.locate(pH),this.monthDisplay=An.locate(mH),this.yearDisplay=An.locate(gH),this.decadeDisplay=An.locate(vH),this.timeDisplay=An.locate(yH),this.hourDisplay=An.locate(bH),this.minuteDisplay=An.locate(TH),this.secondDisplay=An.locate(wH),this._eventEmitters=An.locate(ev),this._widget=void 0,this._eventEmitters.updateDisplay.subscribe(Q=>{this._update(Q)})}get widget(){return this._widget}get dateContainer(){var Q;return(Q=this.widget)==null?void 0:Q.querySelector(`div.${Et.css.dateContainer}`)}get timeContainer(){var Q;return(Q=this.widget)==null?void 0:Q.querySelector(`div.${Et.css.timeContainer}`)}get isVisible(){return this._isVisible}_update(Q){if(!!this.widget)switch(Q){case Kt.seconds:this.secondDisplay._update(this.widget,this.paint);break;case Kt.minutes:this.minuteDisplay._update(this.widget,this.paint);break;case Kt.hours:this.hourDisplay._update(this.widget,this.paint);break;case Kt.date:this.dateDisplay._update(this.widget,this.paint);break;case Kt.month:this.monthDisplay._update(this.widget,this.paint);break;case Kt.year:this.yearDisplay._update(this.widget,this.paint);break;case"decade":this.decadeDisplay._update(this.widget,this.paint);break;case"clock":if(!this._hasTime)break;this.timeDisplay._update(this.widget),this._update(Kt.hours),this._update(Kt.minutes),this._update(Kt.seconds);break;case"calendar":this._update(Kt.date),this._update(Kt.year),this._update(Kt.month),this.decadeDisplay._update(this.widget,this.paint),this._updateCalendarHeader();break;case"all":this._hasTime&&this._update("clock"),this._hasDate&&this._update("calendar")}}paint(Q,O,Y,q){}show(){var Q,O,Y;if(this.widget==null){if(this._showSetDefaultIfNeeded(),this._buildWidget(),this._updateTheme(),this._showSetupViewMode(),this.optionsStore.options.display.inline)this.optionsStore.element.appendChild(this.widget);else{const q=((Q=this.optionsStore.options)==null?void 0:Q.container)||document.body,gt=((Y=(O=this.optionsStore.options)==null?void 0:O.display)==null?void 0:Y.placement)||"bottom";q.appendChild(this.widget),this.createPopup(this.optionsStore.element,this.widget,{modifiers:[{name:"eventListeners",enabled:!0}],placement:document.documentElement.dir==="rtl"?`${gt}-end`:`${gt}-start`}).then()}this.optionsStore.options.display.viewMode=="clock"&&this._eventEmitters.action.emit({e:null,action:Ee.showClock}),this.widget.querySelectorAll("[data-action]").forEach(q=>q.addEventListener("click",this._actionsClickEvent)),this._hasTime&&this.optionsStore.options.display.sideBySide&&(this.timeDisplay._update(this.widget),this.widget.getElementsByClassName(Et.css.clockContainer)[0].style.display="grid")}this.widget.classList.add(Et.css.show),this.optionsStore.options.display.inline||(this.updatePopup(),document.addEventListener("click",this._documentClickEvent)),this._eventEmitters.triggerEvent.emit({type:Et.events.show}),this._isVisible=!0}_showSetupViewMode(){const Q=this._hasTime&&!this._hasDate;Q?(this.optionsStore.currentView="clock",this._eventEmitters.action.emit({e:null,action:Ee.showClock})):this.optionsStore.currentCalendarViewMode||(this.optionsStore.currentCalendarViewMode=this.optionsStore.minimumCalendarViewMode),!Q&&this.optionsStore.options.display.viewMode!=="clock"&&(this._hasTime&&(this.optionsStore.options.display.sideBySide?SA.show(this.timeContainer):SA.hideImmediately(this.timeContainer)),SA.show(this.dateContainer)),this._hasDate&&this._showMode()}_showSetDefaultIfNeeded(){var Q;if(this.dates.picked.length==0){if(this.optionsStore.options.useCurrent&&!this.optionsStore.options.defaultDate){const O=new sr().setLocalization(this.optionsStore.options.localization);if(!this.optionsStore.options.keepInvalid){let Y=0,q=1;for((Q=this.optionsStore.options.restrictions.maxDate)!=null&&Q.isBefore(O)&&(q=-1);!this.validation.isValid(O)&&Y>31;)O.manipulate(q,Kt.date),Y++}this.dates.setValue(O)}this.optionsStore.options.defaultDate&&this.dates.setValue(this.optionsStore.options.defaultDate)}}async createPopup(Q,O,Y){var gt;let q;if(window!=null&&window.Popper)q=(gt=window==null?void 0:window.Popper)==null?void 0:gt.createPopper;else{const{createPopper:It}=await KU(()=>import("./index.30e94252.js"),[]);q=It}q&&(this._popperInstance=q(Q,O,Y))}updatePopup(){var Q;(Q=this._popperInstance)==null||Q.update()}_showMode(Q){if(!this.widget)return;if(Q){const q=Math.max(this.optionsStore.minimumCalendarViewMode,Math.min(3,this.optionsStore.currentCalendarViewMode+Q));if(this.optionsStore.currentCalendarViewMode==q)return;this.optionsStore.currentCalendarViewMode=q}this.widget.querySelectorAll(`.${Et.css.dateContainer} > div:not(.${Et.css.calendarHeader}), .${Et.css.timeContainer} > div:not(.${Et.css.clockContainer})`).forEach(q=>q.style.display="none");const O=Id[this.optionsStore.currentCalendarViewMode],Y=this.widget.querySelector(`.${O.className}`);switch(O.className){case Et.css.decadesContainer:this.decadeDisplay._update(this.widget,this.paint);break;case Et.css.yearsContainer:this.yearDisplay._update(this.widget,this.paint);break;case Et.css.monthsContainer:this.monthDisplay._update(this.widget,this.paint);break;case Et.css.daysContainer:this.dateDisplay._update(this.widget,this.paint);break}Y.style.display="grid",this.optionsStore.options.display.sideBySide&&(this.widget.querySelectorAll(`.${Et.css.clockContainer}`)[0].style.display="grid"),this._updateCalendarHeader(),this._eventEmitters.viewUpdate.emit()}_updateTheme(Q){if(!!this.widget){if(Q){if(this.optionsStore.options.display.theme===Q)return;this.optionsStore.options.display.theme=Q}this.widget.classList.remove("light","dark"),this.widget.classList.add(this._getThemeClass()),this.optionsStore.options.display.theme==="auto"?window.matchMedia(Et.css.isDarkPreferredQuery).addEventListener("change",()=>this._updateTheme()):window.matchMedia(Et.css.isDarkPreferredQuery).removeEventListener("change",()=>this._updateTheme())}}_getThemeClass(){const Q=this.optionsStore.options.display.theme||"auto",O=window.matchMedia&&window.matchMedia(Et.css.isDarkPreferredQuery).matches;switch(Q){case"light":return Et.css.lightTheme;case"dark":return Et.css.darkTheme;case"auto":return O?Et.css.darkTheme:Et.css.lightTheme}}_updateCalendarHeader(){if(!this._hasDate)return;const Q=[...this.widget.querySelector(`.${Et.css.dateContainer} div[style*="display: grid"]`).classList].find(gt=>gt.startsWith(Et.css.dateContainer)),[O,Y,q]=this.widget.getElementsByClassName(Et.css.calendarHeader)[0].getElementsByTagName("div");switch(Q){case Et.css.decadesContainer:O.setAttribute("title",this.optionsStore.options.localization.previousCentury),Y.setAttribute("title",""),q.setAttribute("title",this.optionsStore.options.localization.nextCentury);break;case Et.css.yearsContainer:O.setAttribute("title",this.optionsStore.options.localization.previousDecade),Y.setAttribute("title",this.optionsStore.options.localization.selectDecade),q.setAttribute("title",this.optionsStore.options.localization.nextDecade);break;case Et.css.monthsContainer:O.setAttribute("title",this.optionsStore.options.localization.previousYear),Y.setAttribute("title",this.optionsStore.options.localization.selectYear),q.setAttribute("title",this.optionsStore.options.localization.nextYear);break;case Et.css.daysContainer:O.setAttribute("title",this.optionsStore.options.localization.previousMonth),Y.setAttribute("title",this.optionsStore.options.localization.selectMonth),q.setAttribute("title",this.optionsStore.options.localization.nextMonth),Y.setAttribute(Q,this.optionsStore.viewDate.format(this.optionsStore.options.localization.dayViewHeaderFormat));break}Y.innerText=Y.getAttribute(Q)}hide(){var Q;!this.widget||!this._isVisible||(this.widget.classList.remove(Et.css.show),this._isVisible&&(this._eventEmitters.triggerEvent.emit({type:Et.events.hide,date:this.optionsStore.unset?null:(Q=this.dates.lastPicked)==null?void 0:Q.clone}),this._isVisible=!1),document.removeEventListener("click",this._documentClickEvent))}toggle(){return this._isVisible?this.hide():this.show()}_dispose(){document.removeEventListener("click",this._documentClickEvent),this.widget&&(this.widget.querySelectorAll("[data-action]").forEach(Q=>Q.removeEventListener("click",this._actionsClickEvent)),this.widget.parentNode.removeChild(this.widget),this._widget=void 0)}_buildWidget(){const Q=document.createElement("div");Q.classList.add(Et.css.widget);const O=document.createElement("div");O.classList.add(Et.css.dateContainer),O.append(this.getHeadTemplate(),this.decadeDisplay.getPicker(),this.yearDisplay.getPicker(),this.monthDisplay.getPicker(),this.dateDisplay.getPicker());const Y=document.createElement("div");Y.classList.add(Et.css.timeContainer),Y.appendChild(this.timeDisplay.getPicker(this._iconTag.bind(this))),Y.appendChild(this.hourDisplay.getPicker()),Y.appendChild(this.minuteDisplay.getPicker()),Y.appendChild(this.secondDisplay.getPicker());const q=document.createElement("div");if(q.classList.add(Et.css.toolbar),q.append(...this.getToolbarElements()),this.optionsStore.options.display.inline&&Q.classList.add(Et.css.inline),this.optionsStore.options.display.calendarWeeks&&Q.classList.add("calendarWeeks"),this.optionsStore.options.display.sideBySide&&this._hasDateAndTime){this._buildWidgetSideBySide(Q,O,Y,q);return}this.optionsStore.options.display.toolbarPlacement==="top"&&Q.appendChild(q);const gt=(Yt,ae,Dt,Pt)=>{!Yt||(ae&&(Dt.classList.add(Et.css.collapse),Pt&&Dt.classList.add(Et.css.show)),Q.appendChild(Dt))};gt(this._hasDate,this._hasTime,O,this.optionsStore.options.display.viewMode!=="clock"),gt(this._hasTime,this._hasDate,Y,this.optionsStore.options.display.viewMode==="clock"),this.optionsStore.options.display.toolbarPlacement==="bottom"&&Q.appendChild(q);const It=document.createElement("div");It.classList.add("arrow"),It.setAttribute("data-popper-arrow",""),Q.appendChild(It),this._widget=Q}_buildWidgetSideBySide(Q,O,Y,q){Q.classList.add(Et.css.sideBySide),this.optionsStore.options.display.toolbarPlacement==="top"&&Q.appendChild(q);const gt=document.createElement("div");gt.classList.add("td-row"),O.classList.add("td-half"),Y.classList.add("td-half"),gt.appendChild(O),gt.appendChild(Y),Q.appendChild(gt),this.optionsStore.options.display.toolbarPlacement==="bottom"&&Q.appendChild(q),this._widget=Q}get _hasTime(){return this.optionsStore.options.display.components.clock&&(this.optionsStore.options.display.components.hours||this.optionsStore.options.display.components.minutes||this.optionsStore.options.display.components.seconds)}get _hasDate(){return this.optionsStore.options.display.components.calendar&&(this.optionsStore.options.display.components.year||this.optionsStore.options.display.components.month||this.optionsStore.options.display.components.date)}get _hasDateAndTime(){return this._hasDate&&this._hasTime}getToolbarElements(){const Q=[];if(this.optionsStore.options.display.buttons.today){const O=document.createElement("div");O.setAttribute("data-action",Ee.today),O.setAttribute("title",this.optionsStore.options.localization.today),O.appendChild(this._iconTag(this.optionsStore.options.display.icons.today)),Q.push(O)}if(!this.optionsStore.options.display.sideBySide&&this._hasDate&&this._hasTime){let O,Y;this.optionsStore.options.display.viewMode==="clock"?(O=this.optionsStore.options.localization.selectDate,Y=this.optionsStore.options.display.icons.date):(O=this.optionsStore.options.localization.selectTime,Y=this.optionsStore.options.display.icons.time);const q=document.createElement("div");q.setAttribute("data-action",Ee.togglePicker),q.setAttribute("title",O),q.appendChild(this._iconTag(Y)),Q.push(q)}if(this.optionsStore.options.display.buttons.clear){const O=document.createElement("div");O.setAttribute("data-action",Ee.clear),O.setAttribute("title",this.optionsStore.options.localization.clear),O.appendChild(this._iconTag(this.optionsStore.options.display.icons.clear)),Q.push(O)}if(this.optionsStore.options.display.buttons.close){const O=document.createElement("div");O.setAttribute("data-action",Ee.close),O.setAttribute("title",this.optionsStore.options.localization.close),O.appendChild(this._iconTag(this.optionsStore.options.display.icons.close)),Q.push(O)}return Q}getHeadTemplate(){const Q=document.createElement("div");Q.classList.add(Et.css.calendarHeader);const O=document.createElement("div");O.classList.add(Et.css.previous),O.setAttribute("data-action",Ee.previous),O.appendChild(this._iconTag(this.optionsStore.options.display.icons.previous));const Y=document.createElement("div");Y.classList.add(Et.css.switch),Y.setAttribute("data-action",Ee.changeCalendarView);const q=document.createElement("div");return q.classList.add(Et.css.next),q.setAttribute("data-action",Ee.next),q.appendChild(this._iconTag(this.optionsStore.options.display.icons.next)),Q.append(O,Y,q),Q}_iconTag(Q){if(this.optionsStore.options.display.icons.type==="sprites"){const Y=document.createElementNS("http://www.w3.org/2000/svg","svg"),q=document.createElementNS("http://www.w3.org/2000/svg","use");return q.setAttribute("xlink:href",Q),q.setAttribute("href",Q),Y.appendChild(q),Y}const O=document.createElement("i");return O.classList.add(...Q.split(" ")),O}_rebuild(){const Q=this._isVisible;this._dispose(),Q&&this.show()}refreshCurrentView(){switch(this._isVisible||this._dispose(),this.optionsStore.currentView){case"clock":this._update("clock");break;case"calendar":this._update(Kt.date);break;case"months":this._update(Kt.month);break;case"years":this._update(Kt.year);break;case"decades":this._update("decade");break}}}class EH{constructor(){this.optionsStore=An.locate(xo),this.dates=An.locate(El),this.validation=An.locate(js),this.display=An.locate(p7),this._eventEmitters=An.locate(ev),this._eventEmitters.action.subscribe(Q=>{this.do(Q.e,Q.action)})}do(Q,O){var gt,It;const Y=Q==null?void 0:Q.currentTarget;if((gt=Y==null?void 0:Y.classList)!=null&>.contains(Et.css.disabled))return;O=O||((It=Y==null?void 0:Y.dataset)==null?void 0:It.action);const q=(this.dates.lastPicked||this.optionsStore.viewDate).clone;switch(O){case Ee.next:case Ee.previous:this.handleNextPrevious(O);break;case Ee.changeCalendarView:this.display._showMode(1),this.display._updateCalendarHeader();break;case Ee.selectMonth:case Ee.selectYear:case Ee.selectDecade:this.handleSelectCalendarMode(O,Y);break;case Ee.selectDay:this.handleSelectDay(Y);break;case Ee.selectHour:{let Yt=+Y.dataset.value;q.hours>=12&&this.optionsStore.isTwelveHour&&(Yt+=12),q.hours=Yt,this.dates.setValue(q,this.dates.lastPickedIndex),this.hideOrClock(Q);break}case Ee.selectMinute:{q.minutes=+Y.dataset.value,this.dates.setValue(q,this.dates.lastPickedIndex),this.hideOrClock(Q);break}case Ee.selectSecond:{q.seconds=+Y.dataset.value,this.dates.setValue(q,this.dates.lastPickedIndex),this.hideOrClock(Q);break}case Ee.incrementHours:this.manipulateAndSet(q,Kt.hours);break;case Ee.incrementMinutes:this.manipulateAndSet(q,Kt.minutes,this.optionsStore.options.stepping);break;case Ee.incrementSeconds:this.manipulateAndSet(q,Kt.seconds);break;case Ee.decrementHours:this.manipulateAndSet(q,Kt.hours,-1);break;case Ee.decrementMinutes:this.manipulateAndSet(q,Kt.minutes,this.optionsStore.options.stepping*-1);break;case Ee.decrementSeconds:this.manipulateAndSet(q,Kt.seconds,-1);break;case Ee.toggleMeridiem:this.manipulateAndSet(q,Kt.hours,this.dates.lastPicked.hours>=12?-12:12);break;case Ee.togglePicker:this.handleToggle(Y);break;case Ee.showClock:case Ee.showHours:case Ee.showMinutes:case Ee.showSeconds:!this.optionsStore.options.display.sideBySide&&this.optionsStore.currentView!=="clock"&&(SA.hideImmediately(this.display.dateContainer),SA.showImmediately(this.display.timeContainer)),this.handleShowClockContainers(O);break;case Ee.clear:this.dates.setValue(null),this.display._updateCalendarHeader();break;case Ee.close:this.display.hide();break;case Ee.today:{const Yt=new sr().setLocalization(this.optionsStore.options.localization);this._eventEmitters.updateViewDate.emit(Yt),this.validation.isValid(Yt,Kt.date)&&this.dates.setValue(Yt,this.dates.lastPickedIndex);break}}}handleShowClockContainers(Q){if(!this.display._hasTime){Et.errorMessages.throwError("Cannot show clock containers when time is disabled.");return}this.optionsStore.currentView="clock",this.display.widget.querySelectorAll(`.${Et.css.timeContainer} > div`).forEach(Y=>Y.style.display="none");let O="";switch(Q){case Ee.showClock:O=Et.css.clockContainer,this.display._update("clock");break;case Ee.showHours:O=Et.css.hourContainer,this.display._update(Kt.hours);break;case Ee.showMinutes:O=Et.css.minuteContainer,this.display._update(Kt.minutes);break;case Ee.showSeconds:O=Et.css.secondContainer,this.display._update(Kt.seconds);break}this.display.widget.getElementsByClassName(O)[0].style.display="grid"}handleNextPrevious(Q){const{unit:O,step:Y}=Id[this.optionsStore.currentCalendarViewMode];Q===Ee.next?this.optionsStore.viewDate.manipulate(Y,O):this.optionsStore.viewDate.manipulate(Y*-1,O),this._eventEmitters.viewUpdate.emit(),this.display._showMode()}hideOrClock(Q){!this.optionsStore.isTwelveHour&&!this.optionsStore.options.display.components.minutes&&!this.optionsStore.options.display.keepOpen&&!this.optionsStore.options.display.inline?this.display.hide():this.do(Q,Ee.showClock)}manipulateAndSet(Q,O,Y=1){const q=Q.manipulate(Y,O);this.validation.isValid(q,O)&&this.dates.setValue(q,this.dates.lastPickedIndex)}handleSelectCalendarMode(Q,O){const Y=+O.dataset.value;switch(Q){case Ee.selectMonth:this.optionsStore.viewDate.month=Y;break;case Ee.selectYear:case Ee.selectDecade:this.optionsStore.viewDate.year=Y;break}this.optionsStore.currentCalendarViewMode===this.optionsStore.minimumCalendarViewMode?(this.dates.setValue(this.optionsStore.viewDate,this.dates.lastPickedIndex),this.optionsStore.options.display.inline||this.display.hide()):this.display._showMode(-1)}handleToggle(Q){Q.getAttribute("title")===this.optionsStore.options.localization.selectDate?(Q.setAttribute("title",this.optionsStore.options.localization.selectTime),Q.innerHTML=this.display._iconTag(this.optionsStore.options.display.icons.time).outerHTML,this.display._updateCalendarHeader(),this.optionsStore.refreshCurrentView()):(Q.setAttribute("title",this.optionsStore.options.localization.selectDate),Q.innerHTML=this.display._iconTag(this.optionsStore.options.display.icons.date).outerHTML,this.display._hasTime&&(this.handleShowClockContainers(Ee.showClock),this.display._update("clock"))),this.display.widget.querySelectorAll(`.${Et.css.dateContainer}, .${Et.css.timeContainer}`).forEach(O=>SA.toggle(O)),this._eventEmitters.viewUpdate.emit()}handleSelectDay(Q){const O=this.optionsStore.viewDate.clone;Q.classList.contains(Et.css.old)&&O.manipulate(-1,Kt.month),Q.classList.contains(Et.css.new)&&O.manipulate(1,Kt.month),O.date=+Q.dataset.day,this.optionsStore.options.dateRange?this.handleDateRange(O):this.optionsStore.options.multipleDates?this.handleMultiDate(O):this.dates.setValue(O,this.dates.lastPickedIndex),!this.display._hasTime&&!this.optionsStore.options.display.keepOpen&&!this.optionsStore.options.display.inline&&!this.optionsStore.options.multipleDates&&!this.optionsStore.options.dateRange&&this.display.hide()}handleMultiDate(Q){let O=this.dates.pickedIndex(Q,Kt.date);console.log(O),O!==-1?this.dates.setValue(null,O):(O=this.dates.lastPickedIndex+1,this.dates.picked.length===0&&(O=0),this.dates.setValue(Q,O))}handleDateRange(Q){switch(this.dates.picked.length){case 2:{this.dates.clear();break}case 1:{const O=this.dates.picked[0];if(Q.getTime()===O.getTime()){this.dates.clear();break}if(Q.isBefore(O)){this.dates.setValue(Q,0),this.dates.setValue(O,1);return}else{this.dates.setValue(Q,1);return}}}this.dates.setValue(Q,0)}}class e7{constructor(Q,O={}){this._subscribers={},this._isDisabled=!1,this._inputChangeEvent=Y=>{if(Y==null?void 0:Y.detail)return;const gt=()=>{this.dates.lastPicked&&(this.optionsStore.viewDate=this.dates.lastPicked.clone)},It=this.optionsStore.input.value;if(this.optionsStore.options.multipleDates||this.optionsStore.options.dateRange)try{const Yt=It.split(this.optionsStore.options.multipleDatesSeparator);for(let ae=0;ae{var Y,q,gt;((Y=this.optionsStore.element)==null?void 0:Y.disabled)||((q=this.optionsStore.input)==null?void 0:q.disabled)||this._toggle.nodeName==="INPUT"&&((gt=this._toggle)==null?void 0:gt.type)==="text"&&this.optionsStore.options.allowInputToggle||this.toggle()},this._openClickEvent=()=>{var Y,q;((Y=this.optionsStore.element)==null?void 0:Y.disabled)||((q=this.optionsStore.input)==null?void 0:q.disabled)||this.display.isVisible||this.show()},uH(),this._eventEmitters=An.locate(ev),this.optionsStore=An.locate(xo),this.display=An.locate(p7),this.dates=An.locate(El),this.actions=An.locate(EH),Q||Et.errorMessages.mustProvideElement(),this.optionsStore.element=Q,this._initializeOptions(O,wm,!0),this.optionsStore.viewDate.setLocalization(this.optionsStore.options.localization),this.optionsStore.unset=!0,this._initializeInput(),this._initializeToggle(),this.optionsStore.options.display.inline&&this.display.show(),this._eventEmitters.triggerEvent.subscribe(Y=>{this._triggerEvent(Y)}),this._eventEmitters.viewUpdate.subscribe(()=>{this._viewUpdate()}),this._eventEmitters.updateViewDate.subscribe(Y=>{this.viewDate=Y})}get viewDate(){return this.optionsStore.viewDate}set viewDate(Q){this.optionsStore.viewDate=Q,this.optionsStore.viewDate.setLocalization(this.optionsStore.options.localization),this.display._update(this.optionsStore.currentView==="clock"?"clock":"calendar")}updateOptions(Q,O=!1){O?this._initializeOptions(Q,wm):this._initializeOptions(Q,this.optionsStore.options),this.optionsStore.viewDate.setLocalization(this.optionsStore.options.localization),this.display.refreshCurrentView()}toggle(){this._isDisabled||this.display.toggle()}show(){this._isDisabled||this.display.show()}hide(){this.display.hide()}disable(){var Q;this._isDisabled=!0,(Q=this.optionsStore.input)==null||Q.setAttribute("disabled","disabled"),this.display.hide()}enable(){var Q;this._isDisabled=!1,(Q=this.optionsStore.input)==null||Q.removeAttribute("disabled")}clear(){this.optionsStore.input.value="",this.dates.clear()}subscribe(Q,O){typeof Q=="string"&&(Q=[Q]);let Y;Array.isArray(O)?Y=O:Y=[O],Q.length!==Y.length&&Et.errorMessages.subscribeMismatch();const q=[];for(let gt=0;gt{O(Q)})}_viewUpdate(){this._triggerEvent({type:Et.events.update,viewDate:this.optionsStore.viewDate.clone})}_unsubscribe(Q,O){this._subscribers[Q].splice(O,1)}_initializeOptions(Q,O,Y=!1){var gt;let q=Xi.deepCopy(Q);q=Xi._mergeOptions(q,O),Y&&(q=Xi._dataToOptions(this.optionsStore.element,q)),Xi._validateConflicts(q),q.viewDate=q.viewDate.setLocalization(q.localization),this.optionsStore.viewDate.isSame(q.viewDate)||(this.optionsStore.viewDate=q.viewDate),q.display.components.year&&(this.optionsStore.minimumCalendarViewMode=2),q.display.components.month&&(this.optionsStore.minimumCalendarViewMode=1),q.display.components.date&&(this.optionsStore.minimumCalendarViewMode=0),this.optionsStore.currentCalendarViewMode=Math.max(this.optionsStore.minimumCalendarViewMode,this.optionsStore.currentCalendarViewMode),Id[this.optionsStore.currentCalendarViewMode].name!==q.display.viewMode&&(this.optionsStore.currentCalendarViewMode=Math.max(Id.findIndex(It=>It.name===q.display.viewMode),this.optionsStore.minimumCalendarViewMode)),(gt=this.display)!=null&>.isVisible&&this.display._update("all"),q.display.components.useTwentyfourHour&&q.localization.hourCycle===void 0?q.localization.hourCycle="h24":q.localization.hourCycle===void 0&&(q.localization.hourCycle=l7(q.localization.locale)),this.optionsStore.options=q,q.restrictions.maxDate&&this.viewDate.isAfter(q.restrictions.maxDate)&&(this.viewDate=q.restrictions.maxDate),q.restrictions.minDate&&this.viewDate.isBefore(q.restrictions.minDate)&&(this.viewDate=q.restrictions.minDate)}_initializeInput(){if(this.optionsStore.element.tagName=="INPUT")this.optionsStore.input=this.optionsStore.element;else{const Q=this.optionsStore.element.dataset.tdTargetInput;Q==null||Q=="nearest"?this.optionsStore.input=this.optionsStore.element.querySelector("input"):this.optionsStore.input=this.optionsStore.element.querySelector(Q)}!this.optionsStore.input||(!this.optionsStore.input.value&&this.optionsStore.options.defaultDate&&(this.optionsStore.input.value=this.dates.formatInput(this.optionsStore.options.defaultDate)),this.optionsStore.input.addEventListener("change",this._inputChangeEvent),this.optionsStore.options.allowInputToggle&&(this.optionsStore.input.addEventListener("click",this._openClickEvent),this.optionsStore.input.addEventListener("focus",this._openClickEvent)),this.optionsStore.input.value&&this._inputChangeEvent())}_initializeToggle(){if(this.optionsStore.options.display.inline)return;let Q=this.optionsStore.element.dataset.tdTargetToggle;Q=="nearest"&&(Q='[data-td-toggle="datetimepicker"]'),this._toggle=Q==null?this.optionsStore.element:this.optionsStore.element.querySelector(Q),this._toggle.addEventListener("click",this._toggleClickEvent)}_handleAfterChangeEvent(Q){var O,Y;!this.optionsStore.options.promptTimeOnDateChange||this.optionsStore.options.multipleDates||this.optionsStore.options.display.inline||this.optionsStore.options.display.sideBySide||!this.display._hasTime||((O=this.display.widget)==null?void 0:O.getElementsByClassName(Et.css.show)[0].classList.contains(Et.css.timeContainer))||!Q.oldDate&&this.optionsStore.options.useCurrent||Q.oldDate&&((Y=Q.date)==null?void 0:Y.isSame(Q.oldDate))||(clearTimeout(this._currentPromptTimeTimeout),this._currentPromptTimeTimeout=setTimeout(()=>{this.display.widget&&this._eventEmitters.action.emit({e:{currentTarget:this.display.widget.querySelector('[data-action="togglePicker"]')},action:Ee.togglePicker})},this.optionsStore.options.promptTimeOnDateChangeTransitionDelay))}}const CH={};var Em={exports:{}};/* @preserve +import{_ as KU,c as J2,g as GU,l as n7,f as r7,a as $U,b as VU,d as XU,o as ma,e as Ha,h as qe,i as c1,j as zU,t as WB,k as q2,A as tv,w as u1,v as Y3,m as i7,F as a7,r as WU,u as o7,s as xd,n as h1,p as jU,q as YU,x as ZU,y as JU,z as qU,B as tH,C as eH,D as nH,E as rH,G as iH,H as jB,I as YB,J as t9}from"./index.fe4d9eff.js";import{g as aH}from"./Translations.4c814af6.js";class Ws extends Error{}class oH{constructor(){this.base="TD:",this.failedToSetInvalidDate="Failed to set invalid date",this.failedToParseInput="Failed parse input field"}unexpectedOption(Q){const O=new Ws(`${this.base} Unexpected option: ${Q} does not match a known option.`);throw O.code=1,O}unexpectedOptions(Q){const O=new Ws(`${this.base}: ${Q.join(", ")}`);throw O.code=1,O}unexpectedOptionValue(Q,O,Y){const q=new Ws(`${this.base} Unexpected option value: ${Q} does not accept a value of "${O}". Valid values are: ${Y.join(", ")}`);throw q.code=2,q}typeMismatch(Q,O,Y){const q=new Ws(`${this.base} Mismatch types: ${Q} has a type of ${O} instead of the required ${Y}`);throw q.code=3,q}numbersOutOfRange(Q,O,Y){const q=new Ws(`${this.base} ${Q} expected an array of number between ${O} and ${Y}.`);throw q.code=4,q}failedToParseDate(Q,O,Y=!1){const q=new Ws(`${this.base} Could not correctly parse "${O}" to a date for ${Q}.`);if(q.code=5,!Y)throw q;console.warn(q)}mustProvideElement(){const Q=new Ws(`${this.base} No element was provided.`);throw Q.code=6,Q}subscribeMismatch(){const Q=new Ws(`${this.base} The subscribed events does not match the number of callbacks`);throw Q.code=7,Q}conflictingConfiguration(Q){const O=new Ws(`${this.base} A configuration value conflicts with another rule. ${Q}`);throw O.code=8,O}customDateFormatError(Q){const O=new Ws(`${this.base} Custom Date Format: ${Q}`);throw O.code=9,O}dateString(){console.warn(`${this.base} Using a string for date options is not recommended unless you specify an ISO string or use the customDateFormat plugin.`)}deprecatedWarning(Q,O){console.warn(`${this.base} Warning ${Q} is deprecated and will be removed in a future version. ${O}`)}throwError(Q){const O=new Ws(`${this.base} ${Q}`);throw O.code=9,O}}const s7="tempus-dominus",A7="td";class sH{constructor(){this.key=`.${A7}`,this.change=`change${this.key}`,this.update=`update${this.key}`,this.error=`error${this.key}`,this.show=`show${this.key}`,this.hide=`hide${this.key}`,this.blur=`blur${this.key}`,this.focus=`focus${this.key}`,this.keyup=`keyup${this.key}`,this.keydown=`keydown${this.key}`}}class AH{constructor(){this.widget=`${s7}-widget`,this.calendarHeader="calendar-header",this.switch="picker-switch",this.toolbar="toolbar",this.noHighlight="no-highlight",this.sideBySide="timepicker-sbs",this.previous="previous",this.next="next",this.disabled="disabled",this.old="old",this.new="new",this.active="active",this.dateContainer="date-container",this.decadesContainer=`${this.dateContainer}-decades`,this.decade="decade",this.yearsContainer=`${this.dateContainer}-years`,this.year="year",this.monthsContainer=`${this.dateContainer}-months`,this.month="month",this.daysContainer=`${this.dateContainer}-days`,this.day="day",this.calendarWeeks="cw",this.dayOfTheWeek="dow",this.today="today",this.weekend="weekend",this.rangeIn="range-in",this.rangeStart="range-start",this.rangeEnd="range-end",this.timeContainer="time-container",this.separator="separator",this.clockContainer=`${this.timeContainer}-clock`,this.hourContainer=`${this.timeContainer}-hour`,this.minuteContainer=`${this.timeContainer}-minute`,this.secondContainer=`${this.timeContainer}-second`,this.hour="hour",this.minute="minute",this.second="second",this.toggleMeridiem="toggleMeridiem",this.show="show",this.collapsing="td-collapsing",this.collapse="td-collapse",this.inline="inline",this.lightTheme="light",this.darkTheme="dark",this.isDarkPreferredQuery="(prefers-color-scheme: dark)"}}class Et{}Et.NAME=s7;Et.dataKey=A7;Et.events=new sH;Et.css=new AH;Et.errorMessages=new oH;const lH={dateFormats:{LTS:"h:mm:ss T",LT:"h:mm T",L:"MM/dd/yyyy",LL:"MMMM d, yyyy",LLL:"MMMM d, yyyy h:mm T",LLLL:"dddd, MMMM d, yyyy h:mm T"},format:"L LT",locale:"default",hourCycle:void 0,ordinal:Lt=>{const Q=["th","st","nd","rd"],O=Lt%100;return`[${Lt}${Q[(O-20)%10]||Q[O]||Q[0]}]`}};var As={...lH},Kt;(function(Lt){Lt.seconds="seconds",Lt.minutes="minutes",Lt.hours="hours",Lt.date="date",Lt.month="month",Lt.year="year"})(Kt||(Kt={}));const bm={month:"2-digit",day:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit"},ZB=Lt=>{switch(Lt){case"date":return{dateStyle:"short"};case"month":return{month:"numeric",year:"numeric"};case"year":return{year:"numeric"}}},l7=Lt=>{if(!Lt)return"h12";const Q={hour:"2-digit",minute:"2-digit",numberingSystem:"latn"},O=new sr().setLocalization({locale:Lt});O.hours=0;const Y=O.parts(void 0,Q).hour;if(Y==="12")return"h12";if(Y==="24")return"h24";O.hours=23;const q=O.parts(void 0,Q).hour;if(Y==="00"&&q==="11")return"h11";if(Y==="00"&&q==="23")return"h23";console.warn(`couldn't determine hour cycle for ${Lt}. start: ${Y}. end: ${q}`)};class sr extends Date{constructor(){super(...arguments),this.localization=As,this.nonLeapLadder=[0,31,59,90,120,151,181,212,243,273,304,334],this.leapLadder=[0,31,60,91,121,152,182,213,244,274,305,335],this.dateTimeRegex=/(\[[^[\]]*])|y{1,4}|M{1,4}|d{1,4}|H{1,2}|h{1,2}|t|T|m{1,2}|s{1,2}|f{3}/g,this.formattingTokens=/(\[[^[\]]*])|([-_:/.,()\s]+)|(T|t|yyyy|yy?|MM?M?M?|Do|dd?|hh?|HH?|mm?|ss?)/g,this.match2=/\d\d/,this.match3=/\d{3}/,this.match4=/\d{4}/,this.match1to2=/\d\d?/,this.matchSigned=/[+-]?\d+/,this.matchOffset=/[+-]\d\d:?(\d\d)?|Z/,this.matchWord=/[^\d_:/,\-()\s]+/,this.zoneExpressions=[this.matchOffset,(Q,O)=>{Q.offset=this.offsetFromString(O)}],this.expressions={t:{pattern:void 0,parser:(Q,O)=>{Q.afternoon=this.meridiemMatch(O)}},T:{pattern:void 0,parser:(Q,O)=>{Q.afternoon=this.meridiemMatch(O)}},fff:{pattern:this.match3,parser:(Q,O)=>{Q.milliseconds=+O}},s:{pattern:this.match1to2,parser:this.addInput("seconds")},ss:{pattern:this.match1to2,parser:this.addInput("seconds")},m:{pattern:this.match1to2,parser:this.addInput("minutes")},mm:{pattern:this.match1to2,parser:this.addInput("minutes")},H:{pattern:this.match1to2,parser:this.addInput("hours")},h:{pattern:this.match1to2,parser:this.addInput("hours")},HH:{pattern:this.match1to2,parser:this.addInput("hours")},hh:{pattern:this.match1to2,parser:this.addInput("hours")},d:{pattern:this.match1to2,parser:this.addInput("day")},dd:{pattern:this.match2,parser:this.addInput("day")},Do:{pattern:this.matchWord,parser:(Q,O)=>{if(Q.day=+(O.match(/\d+/)[0]||1),!!this.localization.ordinal)for(let Y=1;Y<=31;Y+=1)this.localization.ordinal(Y).replace(/[[\]]/g,"")===O&&(Q.day=Y)}},M:{pattern:this.match1to2,parser:this.addInput("month")},MM:{pattern:this.match2,parser:this.addInput("month")},MMM:{pattern:this.matchWord,parser:(Q,O)=>{const Y=this.getAllMonths(),gt=(this.getAllMonths("short")||Y.map(It=>It.slice(0,3))).indexOf(O)+1;if(gt<1)throw new Error;Q.month=gt%12||gt}},MMMM:{pattern:this.matchWord,parser:(Q,O)=>{const q=this.getAllMonths().indexOf(O)+1;if(q<1)throw new Error;Q.month=q%12||q}},y:{pattern:this.matchSigned,parser:this.addInput("year")},yy:{pattern:this.match2,parser:(Q,O)=>{Q.year=this.parseTwoDigitYear(+O)}},yyyy:{pattern:this.match4,parser:this.addInput("year")}}}setLocale(Q){return this.localization||(this.localization=As,this.localization.locale=Q),this}setLocalization(Q){return this.localization=Q,this}static convert(Q,O="default",Y=void 0){if(!Q)throw new Error("A date is required");return Y||(Y=As,Y.locale=O),new sr(Q.getFullYear(),Q.getMonth(),Q.getDate(),Q.getHours(),Q.getMinutes(),Q.getSeconds(),Q.getMilliseconds()).setLocalization(Y)}get clone(){return new sr(this.year,this.month,this.date,this.hours,this.minutes,this.seconds,this.getMilliseconds()).setLocalization(this.localization)}static isValid(Q){return Q===void 0||JSON.stringify(Q)==="null"?!1:Q.constructor.name===sr.name}startOf(Q,O=0){if(this[Q]===void 0)throw new Error(`Unit '${Q}' is not valid`);switch(Q){case"seconds":this.setMilliseconds(0);break;case"minutes":this.setSeconds(0,0);break;case"hours":this.setMinutes(0,0,0);break;case"date":this.setHours(0,0,0,0);break;case"weekDay":{if(this.startOf(Kt.date),this.weekDay===O)break;const Y=(this.weekDay-O+7)%7;this.manipulate(Y*-1,Kt.date);break}case"month":this.startOf(Kt.date),this.setDate(1);break;case"year":this.startOf(Kt.date),this.setMonth(0,1);break}return this}endOf(Q,O=0){if(this[Q]===void 0)throw new Error(`Unit '${Q}' is not valid`);switch(Q){case"seconds":this.setMilliseconds(999);break;case"minutes":this.setSeconds(59,999);break;case"hours":this.setMinutes(59,59,999);break;case"date":this.setHours(23,59,59,999);break;case"weekDay":{this.endOf(Kt.date);const Y=6+O;if(this.weekDay===Y)break;this.manipulate(Y-this.weekDay,Kt.date);break}case"month":this.endOf(Kt.date),this.manipulate(1,Kt.month),this.setDate(0);break;case"year":this.endOf(Kt.date),this.setMonth(11,31);break}return this}manipulate(Q,O){if(this[O]===void 0)throw new Error(`Unit '${O}' is not valid`);return this[O]+=Q,this}isBefore(Q,O){if(!sr.isValid(Q))return!1;if(!O)return this.valueOf()Q.valueOf();if(this[O]===void 0)throw new Error(`Unit '${O}' is not valid`);return this.clone.startOf(O).valueOf()>Q.clone.startOf(O).valueOf()}isSame(Q,O){if(!sr.isValid(Q))return!1;if(!O)return this.valueOf()===Q.valueOf();if(this[O]===void 0)throw new Error(`Unit '${O}' is not valid`);return Q=sr.convert(Q),this.clone.startOf(O).valueOf()===Q.startOf(O).valueOf()}isBetween(Q,O,Y,q="()"){if(!sr.isValid(Q)||!sr.isValid(O))return!1;if(Y&&this[Y]===void 0)throw new Error(`Unit '${Y}' is not valid`);const gt=q[0]==="(",It=q[1]===")",Yt=gt?this.isAfter(Q,Y):!this.isBefore(Q,Y),ae=It?this.isBefore(O,Y):!this.isAfter(O,Y);return Yt&&ae}parts(Q=this.localization.locale,O={dateStyle:"full",timeStyle:"long"}){const Y={};return new Intl.DateTimeFormat(Q,O).formatToParts(this).filter(q=>q.type!=="literal").forEach(q=>Y[q.type]=q.value),Y}get seconds(){return this.getSeconds()}set seconds(Q){this.setSeconds(Q)}get secondsFormatted(){return this.parts(void 0,bm).second}get minutes(){return this.getMinutes()}set minutes(Q){this.setMinutes(Q)}get minutesFormatted(){return this.parts(void 0,bm).minute}get hours(){return this.getHours()}set hours(Q){this.setHours(Q)}getHoursFormatted(Q="h12"){return this.parts(void 0,{...bm,hourCycle:Q}).hour}meridiem(Q=this.localization.locale){var O;return(O=new Intl.DateTimeFormat(Q,{hour:"numeric",hour12:!0}).formatToParts(this).find(Y=>Y.type==="dayPeriod"))==null?void 0:O.value}get date(){return this.getDate()}set date(Q){this.setDate(Q)}get dateFormatted(){return this.parts(void 0,bm).day}get weekDay(){return this.getDay()}get month(){return this.getMonth()}set month(Q){const O=new Date(this.year,Q+1);O.setDate(0);const Y=O.getDate();this.date>Y&&(this.date=Y),this.setMonth(Q)}get monthFormatted(){return this.parts(void 0,bm).month}get year(){return this.getFullYear()}set year(Q){this.setFullYear(Q)}get week(){const Q=this.computeOrdinal(),O=this.getUTCDay();let Y=Math.floor((Q-O+10)/7);return Y<1?Y=this.weeksInWeekYear():Y>this.weeksInWeekYear()&&(Y=1),Y}weeksInWeekYear(){const Q=(this.year+Math.floor(this.year/4)-Math.floor(this.year/100)+Math.floor(this.year/400))%7,O=this.year-1,Y=(O+Math.floor(O/4)-Math.floor(O/100)+Math.floor(O/400))%7;return Q===4||Y===3?53:52}get isLeapYear(){return this.year%4===0&&(this.year%100!==0||this.year%400===0)}computeOrdinal(){return this.date+(this.isLeapYear?this.leapLadder:this.nonLeapLadder)[this.month]}getAllMonths(Q="long"){const O=new Intl.DateTimeFormat(this.localization.locale,{month:Q}).format;return[...Array(12).keys()].map(Y=>O(new Date(2021,Y)))}replaceTokens(Q,O){return Q.replace(/(\[[^[\]]*])|(LTS?|l{1,4}|L{1,4})/g,(Y,q,gt)=>{const It=gt&>.toUpperCase();return q||O[It]||As.dateFormats[It]})}parseTwoDigitYear(Q){return Q+(Q>68?1900:2e3)}offsetFromString(Q){if(!Q||Q==="Z")return 0;const[O,Y,q]=Q.match(/([+-]|\d\d)/g),gt=+Y*60+(+q||0),It=O==="+"?-gt:gt;return gt===0?0:It}zoneInformation(Q,O){let Y=Q.parts(this.localization.locale,{timeZoneName:"longOffset"}).timeZoneName.replace("GMT","").replace(":","");const q=Y.includes("-");return Y=Y.replace("-",""),O==="z"?Y=Y.substring(1,2):O==="zz"&&(Y=Y.substring(0,2)),`${q?"-":""}${Y}`}addInput(Q){return(O,Y)=>{O[Q]=+Y}}getLocaleAfternoon(){var Q,O;return(O=(Q=new Intl.DateTimeFormat(this.localization.locale,{hour:"numeric",hour12:!0}).formatToParts(new Date(2022,3,4,13)).find(Y=>Y.type==="dayPeriod"))==null?void 0:Q.value)==null?void 0:O.replace(/\s+/g," ")}meridiemMatch(Q){return Q.toLowerCase()===this.getLocaleAfternoon().toLowerCase()}correctHours(Q){const{afternoon:O}=Q;if(O!==void 0){const{hours:Y}=Q;O?Y<12&&(Q.hours+=12):Y===12&&(Q.hours=0),delete Q.afternoon}}makeParser(Q){Q=this.replaceTokens(Q,this.localization.dateFormats);const O=Q.match(this.formattingTokens),{length:Y}=O,q=[];for(let gt=0;gt{const It={hours:0,minutes:0,seconds:0,milliseconds:0};for(let Yt=0,ae=0;Yt-1)return new sr((O.format==="X"?1e3:1)*+Q);Q=Q.replace(/\s+/g," ");const q=Y.makeParser(O.format),{year:gt,month:It,day:Yt,hours:ae,minutes:Dt,seconds:Pt,milliseconds:Ue,zone:er}=q(Q),Qi=Yt||(!gt&&!It?Y.getDate():1),Nn=gt||Y.getFullYear();let an=0;return gt&&!It||(an=It>0?It-1:Y.getMonth()),er?new sr(Date.UTC(Nn,an,Qi,ae,Dt,Pt,Ue+er.offset*60*1e3)):new sr(Nn,an,Qi,ae,Dt,Pt,Ue)}catch{Et.errorMessages.customDateFormatError(`Unable to parse provided input: ${Q}, format: ${O.format}`)}}format(Q,O=this.localization.locale){if(Q&&typeof Q=="object")return new Intl.DateTimeFormat(O,Q).format(this);const Y=this.replaceTokens(Q||this.localization.format||`${As.dateFormats.L}, ${As.dateFormats.LT}`,this.localization.dateFormats),q=ae=>new Intl.DateTimeFormat(this.localization.locale,ae).format(this);this.localization.hourCycle||(this.localization.hourCycle=l7(this.localization.locale));const gt=this.localization.hourCycle.startsWith("h1")?"h24":this.localization.hourCycle,It=this.localization.hourCycle.startsWith("h2")?"h12":this.localization.hourCycle,Yt={y:this.year,yy:q({year:"2-digit"}),yyyy:this.year,M:q({month:"numeric"}),MM:this.monthFormatted,MMM:this.getAllMonths("short")[this.getMonth()],MMMM:this.getAllMonths()[this.getMonth()],d:this.date,dd:this.dateFormatted,ddd:q({weekday:"short"}),dddd:q({weekday:"long"}),H:this.getHours(),HH:this.getHoursFormatted(gt),h:this.hours>12?this.hours-12:this.hours,hh:this.getHoursFormatted(It),t:this.meridiem(),T:this.meridiem().toUpperCase(),m:this.minutes,mm:this.minutesFormatted,s:this.seconds,ss:this.secondsFormatted,fff:this.getMilliseconds()};return Y.replace(this.dateTimeRegex,(ae,Dt)=>Dt||Yt[ae]).replace(/\[/g,"").replace(/]/g,"")}}class cH{constructor(){this.cache=new Map}locate(Q){const O=this.cache.get(Q);if(O)return O;const Y=new Q;return this.cache.set(Q,Y),Y}}const uH=()=>{An=new cH};let An;const Id=[{name:"calendar",className:Et.css.daysContainer,unit:Kt.month,step:1},{name:"months",className:Et.css.monthsContainer,unit:Kt.year,step:1},{name:"years",className:Et.css.yearsContainer,unit:Kt.year,step:10},{name:"decades",className:Et.css.decadesContainer,unit:Kt.year,step:100}];class xo{constructor(){this._currentCalendarViewMode=0,this._viewDate=new sr,this.minimumCalendarViewMode=0,this.currentView="calendar"}get currentCalendarViewMode(){return this._currentCalendarViewMode}set currentCalendarViewMode(Q){this._currentCalendarViewMode=Q,this.currentView=Id[Q].name}get viewDate(){return this._viewDate}set viewDate(Q){this._viewDate=Q,this.options&&(this.options.viewDate=Q)}refreshCurrentView(){this.currentView=Id[this.currentCalendarViewMode].name}get isTwelveHour(){return["h12","h11"].includes(this.options.localization.hourCycle)}}class js{constructor(){this.optionsStore=An.locate(xo)}isValid(Q,O){var Y,q;return!(!this._enabledDisabledDatesIsValid(O,Q)||O!==Kt.month&&O!==Kt.year&&((Y=this.optionsStore.options.restrictions.daysOfWeekDisabled)==null?void 0:Y.length)>0&&this.optionsStore.options.restrictions.daysOfWeekDisabled.indexOf(Q.weekDay)!==-1||!this._minMaxIsValid(O,Q)||(O===Kt.hours||O===Kt.minutes||O===Kt.seconds)&&(!this._enabledDisabledHoursIsValid(Q)||((q=this.optionsStore.options.restrictions.disabledTimeIntervals)==null?void 0:q.filter(gt=>Q.isBetween(gt.from,gt.to)).length)!==0))}_enabledDisabledDatesIsValid(Q,O){return Q!==Kt.date?!0:!(this.optionsStore.options.restrictions.disabledDates.length>0&&this._isInDisabledDates(O)||this.optionsStore.options.restrictions.enabledDates.length>0&&!this._isInEnabledDates(O))}_isInDisabledDates(Q){return!this.optionsStore.options.restrictions.disabledDates||this.optionsStore.options.restrictions.disabledDates.length===0?!1:!!this.optionsStore.options.restrictions.disabledDates.find(O=>O.isSame(Q,Kt.date))}_isInEnabledDates(Q){return!this.optionsStore.options.restrictions.enabledDates||this.optionsStore.options.restrictions.enabledDates.length===0?!0:!!this.optionsStore.options.restrictions.enabledDates.find(O=>O.isSame(Q,Kt.date))}_minMaxIsValid(Q,O){return!(this.optionsStore.options.restrictions.minDate&&O.isBefore(this.optionsStore.options.restrictions.minDate,Q)||this.optionsStore.options.restrictions.maxDate&&O.isAfter(this.optionsStore.options.restrictions.maxDate,Q))}_enabledDisabledHoursIsValid(Q){return!(this.optionsStore.options.restrictions.disabledHours.length>0&&this._isInDisabledHours(Q)||this.optionsStore.options.restrictions.enabledHours.length>0&&!this._isInEnabledHours(Q))}_isInDisabledHours(Q){if(!this.optionsStore.options.restrictions.disabledHours||this.optionsStore.options.restrictions.disabledHours.length===0)return!1;const O=Q.hours;return this.optionsStore.options.restrictions.disabledHours.includes(O)}_isInEnabledHours(Q){if(!this.optionsStore.options.restrictions.enabledHours||this.optionsStore.options.restrictions.enabledHours.length===0)return!0;const O=Q.hours;return this.optionsStore.options.restrictions.enabledHours.includes(O)}dateRangeIsValid(Q,O,Y){if(!this.optionsStore.options.dateRange||Q.length!==2&&O!==1)return!0;const q=Q[0].clone;if(q.isSame(Y,Kt.date))return!0;for(q.manipulate(1,Kt.date);!q.isSame(Y,Kt.date);){if(!this.isValid(q,Kt.date))return!1;q.manipulate(1,Kt.date)}return!0}}class Tm{constructor(){this.subscribers=[]}subscribe(Q){return this.subscribers.push(Q),this.unsubscribe.bind(this,this.subscribers.length-1)}unsubscribe(Q){this.subscribers.splice(Q,1)}emit(Q){this.subscribers.forEach(O=>{O(Q)})}destroy(){this.subscribers=null,this.subscribers=[]}}class ev{constructor(){this.triggerEvent=new Tm,this.viewUpdate=new Tm,this.updateDisplay=new Tm,this.action=new Tm,this.updateViewDate=new Tm}destroy(){this.triggerEvent.destroy(),this.viewUpdate.destroy(),this.updateDisplay.destroy(),this.action.destroy(),this.updateViewDate.destroy()}}const c7={clear:"Clear selection",close:"Close the picker",dateFormats:As.dateFormats,dayViewHeaderFormat:{month:"long",year:"2-digit"},decrementHour:"Decrement Hour",decrementMinute:"Decrement Minute",decrementSecond:"Decrement Second",format:As.format,hourCycle:As.hourCycle,incrementHour:"Increment Hour",incrementMinute:"Increment Minute",incrementSecond:"Increment Second",locale:As.locale,maxWeekdayLength:0,nextCentury:"Next Century",nextDecade:"Next Decade",nextMonth:"Next Month",nextYear:"Next Year",ordinal:As.ordinal,pickHour:"Pick Hour",pickMinute:"Pick Minute",pickSecond:"Pick Second",previousCentury:"Previous Century",previousDecade:"Previous Decade",previousMonth:"Previous Month",previousYear:"Previous Year",selectDate:"Select Date",selectDecade:"Select Decade",selectMonth:"Select Month",selectTime:"Select Time",selectYear:"Select Year",startOfTheWeek:0,today:"Go to today",toggleMeridiem:"Toggle Meridiem"},wm={allowInputToggle:!1,container:void 0,dateRange:!1,debug:!1,defaultDate:void 0,display:{icons:{type:"icons",time:"fa-solid fa-clock",date:"fa-solid fa-calendar",up:"fa-solid fa-arrow-up",down:"fa-solid fa-arrow-down",previous:"fa-solid fa-chevron-left",next:"fa-solid fa-chevron-right",today:"fa-solid fa-calendar-check",clear:"fa-solid fa-trash",close:"fa-solid fa-xmark"},sideBySide:!1,calendarWeeks:!1,viewMode:"calendar",toolbarPlacement:"bottom",keepOpen:!1,buttons:{today:!1,clear:!1,close:!1},components:{calendar:!0,date:!0,month:!0,year:!0,decades:!0,clock:!0,hours:!0,minutes:!0,seconds:!1,useTwentyfourHour:void 0},inline:!1,theme:"auto",placement:"bottom"},keepInvalid:!1,localization:c7,meta:{},multipleDates:!1,multipleDatesSeparator:"; ",promptTimeOnDateChange:!1,promptTimeOnDateChangeTransitionDelay:200,restrictions:{minDate:void 0,maxDate:void 0,disabledDates:[],enabledDates:[],daysOfWeekDisabled:[],disabledTimeIntervals:[],disabledHours:[],enabledHours:[]},stepping:1,useCurrent:!0,viewDate:new sr};({...c7});function u7(Lt,Q){if(!Lt)return null;if(Lt.constructor.name===sr.name)return Lt;if(Lt.constructor.name===Date.name)return sr.convert(Lt);if(typeof Lt=="string"){const O=sr.fromString(Lt,Q);return JSON.stringify(O)==="null"?null:O}return null}function nv(Lt,Q,O){typeof Lt=="string"&&Q!=="input"&&Et.errorMessages.dateString();const Y=u7(Lt,O);return Y||Et.errorMessages.failedToParseDate(Q,Lt,Q==="input"),Y}function h7(Lt,Q,O,Y=As){Array.isArray(Q)||Et.errorMessages.typeMismatch(Lt,O,"array of DateTime or Date");for(let q=0;qtypeof Y!="number"))&&Et.errorMessages.typeMismatch(Lt,O,"array of numbers")}function Z3(Lt){return({value:Q,providedType:O,localization:Y})=>{const q=nv(Q,Lt,Y);if(q!==void 0)return q.setLocalization(Y),q}}function JB(Lt){const Q=Z3(Lt);return O=>O.value===void 0?O.value:Q(O)}function f7(Lt,Q,O){return({value:Y,providedType:q})=>Y===void 0?[]:(d7(Lt,Y,q),Y.some(gt=>gtO)&&Et.errorMessages.numbersOutOfRange(Lt,Q,O),Y)}function qB(Lt){return f7(Lt,0,23)}function t7(Lt){return({value:Q,providedType:O,localization:Y})=>Q===void 0?[]:(h7(Lt,Q,O,Y),Q)}function kd(Lt){return({value:Q,path:O})=>(Lt.includes(Q)||Et.errorMessages.unexpectedOptionValue(O.substring(1),Q,Lt),Q)}const hH=Object.freeze({defaultDate:Z3("defaultDate"),viewDate:Z3("viewDate"),minDate:JB("restrictions.minDate"),maxDate:JB("restrictions.maxDate"),disabledHours:qB("restrictions.disabledHours"),enabledHours:qB("restrictions.enabledHours"),disabledDates:t7("restrictions.disabledDates"),enabledDates:t7("restrictions.enabledDates"),daysOfWeekDisabled:f7("restrictions.daysOfWeekDisabled",0,6),disabledTimeIntervals:({key:Lt,value:Q,providedType:O,localization:Y})=>{if(Q===void 0)return[];Array.isArray(Q)||Et.errorMessages.typeMismatch(Lt,O,"array of { from: DateTime|Date, to: DateTime|Date }");const q=Q;for(let gt=0;gt{const Yt=`${Lt}[${gt}].${It}`,ae=q[gt][It],Dt=nv(ae,Yt,Y);Dt.setLocalization(Y),q[gt][It]=Dt});return q},toolbarPlacement:kd(["top","bottom","default"]),type:kd(["icons","sprites"]),viewMode:kd(["clock","calendar","months","years","decades"]),theme:kd(["light","dark","auto"]),placement:kd(["top","bottom"]),meta:({value:Lt})=>Lt,dayViewHeaderFormat:({value:Lt})=>Lt,container:({value:Lt,path:Q})=>(Lt&&!(Lt instanceof HTMLElement||Lt instanceof Element||(Lt==null?void 0:Lt.appendChild))&&Et.errorMessages.typeMismatch(Q.substring(1),typeof Lt,"HTMLElement"),Lt),useTwentyfourHour:({value:Lt,path:Q,providedType:O,defaultType:Y})=>{if(Et.errorMessages.deprecatedWarning("useTwentyfourHour",'Please use "options.localization.hourCycle" instead'),Lt===void 0||O==="boolean")return Lt;Et.errorMessages.typeMismatch(Q,O,Y)},hourCycle:kd(["h11","h12","h23","h24"])}),dH=({value:Lt,defaultType:Q,providedType:O,path:Y})=>{switch(Q){case"boolean":return Lt==="true"||Lt===!0;case"number":return+Lt;case"string":return Lt.toString();case"object":return{};case"function":return Lt;default:Et.errorMessages.typeMismatch(Y,O,Q)}};function fH(Lt){return(hH[Lt.key]||dH)(Lt)}class Xi{static deepCopy(Q){const O={};return Object.keys(Q).forEach(Y=>{const q=Q[Y];if(q instanceof sr){O[Y]=q.clone;return}else if(q instanceof Date){O[Y]=new Date(q.valueOf());return}O[Y]=q,!(typeof q!="object"||q instanceof HTMLElement||q instanceof Element)&&(Array.isArray(q)||(O[Y]=Xi.deepCopy(q)))}),O}static objectPath(Q,O){return Q.charAt(0)==="."&&(Q=Q.slice(1)),Q?Q.split(".").reduce((Y,q)=>Xi.isValue(Y)||Xi.isValue(Y[q])?Y[q]:void 0,O):O}static spread(Q,O,Y,q=""){const gt=Xi.objectPath(q,wm),It=Object.keys(Q).filter(Yt=>!Object.keys(gt).includes(Yt));if(It.length>0){const Yt=Xi.getFlattenDefaultOptions(),ae=It.map(Dt=>{let Pt=`"${q}.${Dt}" in not a known option.`;const Ue=Yt.find(er=>er.includes(Dt));return Ue&&(Pt+=` Did you mean "${Ue}"?`),Pt});Et.errorMessages.unexpectedOptions(ae)}Object.keys(Q).filter(Yt=>Yt!=="__proto__"&&Yt!=="constructor").forEach(Yt=>{q+=`.${Yt}`,q.charAt(0)==="."&&(q=q.slice(1));const ae=gt[Yt],Dt=typeof Q[Yt],Pt=typeof ae,Ue=Q[Yt];if(Ue==null){O[Yt]=Ue,q=q.substring(0,q.lastIndexOf(`.${Yt}`));return}typeof ae=="object"&&!Array.isArray(Q[Yt])&&!(ae instanceof Date||Xi.ignoreProperties.includes(Yt))?Xi.spread(Q[Yt],O[Yt],Y,q):O[Yt]=Xi.processKey(Yt,Ue,Dt,Pt,q,Y),q=q.substring(0,q.lastIndexOf(`.${Yt}`))})}static processKey(Q,O,Y,q,gt,It){return fH({key:Q,value:O,providedType:Y,defaultType:q,path:gt,localization:It})}static _mergeOptions(Q,O){var gt;const Y=Xi.deepCopy(O),q=((gt=O.localization)==null?void 0:gt.locale)!=="default"?O.localization:(Q==null?void 0:Q.localization)||wm.localization;return Xi.spread(Q,Y,q,""),Y}static _dataToOptions(Q,O){const Y=JSON.parse(JSON.stringify(Q.dataset));if(Y!=null&&Y.tdTargetInput&&delete Y.tdTargetInput,Y!=null&&Y.tdTargetToggle&&delete Y.tdTargetToggle,!Y||Object.keys(Y).length===0||Y.constructor!==DOMStringMap)return O;const q={},gt=ae=>{const Dt={};return Object.keys(ae).forEach(Pt=>{Dt[Pt.toLowerCase()]=Pt}),Dt},It=this.normalizeObject(gt),Yt=gt(O);return Object.keys(Y).filter(ae=>ae.startsWith(Et.dataKey)).map(ae=>ae.substring(2)).forEach(ae=>{let Dt=Yt[ae.toLowerCase()];if(ae.includes("_")){const Pt=ae.split("_");Dt=Yt[Pt[0].toLowerCase()],Dt!==void 0&&O[Dt].constructor===Object&&(q[Dt]=It(Pt,1,O[Dt],Y[`td${ae}`]))}else Dt!==void 0&&(q[Dt]=Y[`td${ae}`])}),this._mergeOptions(q,O)}static normalizeObject(Q){const O=(Y,q,gt,It)=>{const ae=Q(gt)[Y[q].toLowerCase()],Dt={};return ae===void 0||(gt[ae].constructor===Object?(q++,Dt[ae]=O(Y,q,gt[ae],It)):Dt[ae]=It),Dt};return O}static _dateTypeCheck(Q,O){return u7(Q,O)}static _typeCheckDateArray(Q,O,Y,q){return h7(Q,O,Y,q)}static _typeCheckNumberArray(Q,O,Y){return d7(Q,O,Y)}static dateConversion(Q,O,Y){return nv(Q,O,Y)}static getFlattenDefaultOptions(){if(this._flattenDefaults)return this._flattenDefaults;const Q=(O,Y=[])=>Array.isArray(O)?[]:Object(O)===O?Object.entries(O).flatMap(([q,gt])=>Q(gt,[...Y,q])):Y.join(".");return this._flattenDefaults=Q(wm),this._flattenDefaults}static _validateConflicts(Q){Q.display.sideBySide&&(!Q.display.components.clock||!(Q.display.components.hours||Q.display.components.minutes||Q.display.components.seconds))&&Et.errorMessages.conflictingConfiguration("Cannot use side by side mode without the clock components"),Q.restrictions.minDate&&Q.restrictions.maxDate&&(Q.restrictions.minDate.isAfter(Q.restrictions.maxDate)&&Et.errorMessages.conflictingConfiguration("minDate is after maxDate"),Q.restrictions.maxDate.isBefore(Q.restrictions.minDate)&&Et.errorMessages.conflictingConfiguration("maxDate is before minDate")),Q.multipleDates&&Q.dateRange&&Et.errorMessages.conflictingConfiguration('Cannot uss option "multipleDates" with "dateRange"')}}Xi.ignoreProperties=["meta","dayViewHeaderFormat","container","dateForms","ordinal"];Xi.isValue=Lt=>Lt!=null;class El{constructor(){this._dates=[],this.optionsStore=An.locate(xo),this.validation=An.locate(js),this._eventEmitters=An.locate(ev)}get picked(){return[...this._dates]}get lastPicked(){var Q;return(Q=this._dates[this.lastPickedIndex])==null?void 0:Q.clone}get lastPickedIndex(){return this._dates.length===0?0:this._dates.length-1}formatInput(Q){return Q?(Q.localization=this.optionsStore.options.localization,Q.format()):""}parseInput(Q){return Xi.dateConversion(Q,"input",this.optionsStore.options.localization)}setFromInput(Q,O){if(!Q){this.setValue(void 0,O);return}const Y=this.parseInput(Q);Y&&(Y.setLocalization(this.optionsStore.options.localization),this.setValue(Y,O))}add(Q){this._dates.push(Q)}isPicked(Q,O){if(!sr.isValid(Q))return!1;if(!O)return this._dates.find(gt=>gt.isSame(Q))!==void 0;const Y=ZB(O),q=Q.format(Y);return this._dates.map(gt=>gt.format(Y)).find(gt=>gt===q)!==void 0}pickedIndex(Q,O){if(!sr.isValid(Q))return-1;if(!O)return this._dates.map(gt=>gt.valueOf()).indexOf(Q.valueOf());const Y=ZB(O),q=Q.format(Y);return this._dates.map(gt=>gt.format(Y)).indexOf(q)}clear(){this.optionsStore.unset=!0,this._eventEmitters.triggerEvent.emit({type:Et.events.change,date:void 0,oldDate:this.lastPicked,isClear:!0,isValid:!0}),this._dates=[],this.optionsStore.input&&(this.optionsStore.input.value=""),this._eventEmitters.updateDisplay.emit("all")}static getStartEndYear(Q,O){const Y=Q/10,q=Math.floor(O/Q)*Q,gt=q+Y*9,It=Math.floor(O/Y)*Y;return[q,gt,It]}updateInput(Q){if(!this.optionsStore.input)return;let O=this.formatInput(Q);(this.optionsStore.options.multipleDates||this.optionsStore.options.dateRange)&&(O=this._dates.map(Y=>this.formatInput(Y)).join(this.optionsStore.options.multipleDatesSeparator)),this.optionsStore.input.value!=O&&(this.optionsStore.input.value=O)}setValue(Q,O){var Yt;const Y=typeof O>"u",q=!Q&&Y;let gt=this.optionsStore.unset?null:(Yt=this._dates[O])==null?void 0:Yt.clone;if(!gt&&!this.optionsStore.unset&&Y&&q&&(gt=this.lastPicked),Q&&(gt==null?void 0:gt.isSame(Q))){this.updateInput(Q);return}if(!Q){this._setValueNull(q,O,gt);return}O=O||0,Q=Q.clone,this.optionsStore.options.stepping!==1&&(Q.minutes=Math.round(Q.minutes/this.optionsStore.options.stepping)*this.optionsStore.options.stepping,Q.startOf(Kt.minutes));const It=ae=>{this._dates[O]=Q,this._eventEmitters.updateViewDate.emit(Q.clone),this.updateInput(Q),this.optionsStore.unset=!1,this._eventEmitters.updateDisplay.emit("all"),this._eventEmitters.triggerEvent.emit({type:Et.events.change,date:Q,oldDate:gt,isClear:q,isValid:ae})};if(this.validation.isValid(Q)&&this.validation.dateRangeIsValid(this.picked,O,Q)){It(!0);return}this.optionsStore.options.keepInvalid&&It(!1),this._eventEmitters.triggerEvent.emit({type:Et.events.error,reason:Et.errorMessages.failedToSetInvalidDate,date:Q,oldDate:gt})}_setValueNull(Q,O,Y){!this.optionsStore.options.multipleDates||this._dates.length===1||Q?(this.optionsStore.unset=!0,this._dates=[]):this._dates.splice(O,1),this.updateInput(),this._eventEmitters.triggerEvent.emit({type:Et.events.change,date:void 0,oldDate:Y,isClear:Q,isValid:!0}),this._eventEmitters.updateDisplay.emit("all")}}var J3;(function(Lt){Lt.next="next",Lt.previous="previous",Lt.changeCalendarView="changeCalendarView",Lt.selectMonth="selectMonth",Lt.selectYear="selectYear",Lt.selectDecade="selectDecade",Lt.selectDay="selectDay",Lt.selectHour="selectHour",Lt.selectMinute="selectMinute",Lt.selectSecond="selectSecond",Lt.incrementHours="incrementHours",Lt.incrementMinutes="incrementMinutes",Lt.incrementSeconds="incrementSeconds",Lt.decrementHours="decrementHours",Lt.decrementMinutes="decrementMinutes",Lt.decrementSeconds="decrementSeconds",Lt.toggleMeridiem="toggleMeridiem",Lt.togglePicker="togglePicker",Lt.showClock="showClock",Lt.showHours="showHours",Lt.showMinutes="showMinutes",Lt.showSeconds="showSeconds",Lt.clear="clear",Lt.close="close",Lt.today="today"})(J3||(J3={}));var Ee=J3;class pH{constructor(){this.optionsStore=An.locate(xo),this.dates=An.locate(El),this.validation=An.locate(js)}getPicker(){const Q=document.createElement("div");if(Q.classList.add(Et.css.daysContainer),Q.append(...this._daysOfTheWeek()),this.optionsStore.options.display.calendarWeeks){const q=document.createElement("div");q.classList.add(Et.css.calendarWeeks,Et.css.noHighlight),Q.appendChild(q)}const{rangeHoverEvent:O,rangeHoverOutEvent:Y}=this.handleMouseEvents(Q);for(let q=0;q<42;q++){if(q!==0&&q%7===0&&this.optionsStore.options.display.calendarWeeks){const It=document.createElement("div");It.classList.add(Et.css.calendarWeeks,Et.css.noHighlight),Q.appendChild(It)}const gt=document.createElement("div");gt.setAttribute("data-action",Ee.selectDay),Q.appendChild(gt),matchMedia("(hover: hover)").matches&&this.optionsStore.options.dateRange&&(gt.addEventListener("mouseover",O),gt.addEventListener("mouseout",Y))}return Q}_update(Q,O){const Y=Q.getElementsByClassName(Et.css.daysContainer)[0];this._updateCalendarView(Y);const q=this.optionsStore.viewDate.clone.startOf(Kt.month).startOf("weekDay",this.optionsStore.options.localization.startOfTheWeek).manipulate(12,Kt.hours);this._handleCalendarWeeks(Y,q.clone),Y.querySelectorAll(`[data-action="${Ee.selectDay}"]`).forEach(gt=>{const It=[];It.push(Et.css.day),q.isBefore(this.optionsStore.viewDate,Kt.month)&&It.push(Et.css.old),q.isAfter(this.optionsStore.viewDate,Kt.month)&&It.push(Et.css.new),!this.optionsStore.unset&&!this.optionsStore.options.dateRange&&this.dates.isPicked(q,Kt.date)&&It.push(Et.css.active),this.validation.isValid(q,Kt.date)||It.push(Et.css.disabled),q.isSame(new sr,Kt.date)&&It.push(Et.css.today),(q.weekDay===0||q.weekDay===6)&&It.push(Et.css.weekend),this._handleDateRange(q,It),O(Kt.date,q,It,gt),gt.classList.remove(...gt.classList),gt.classList.add(...It),gt.setAttribute("data-value",this._dateToDataValue(q)),gt.setAttribute("data-day",`${q.date}`),gt.innerText=q.parts(void 0,{day:"numeric"}).day,q.manipulate(1,Kt.date)})}_dateToDataValue(Q){return sr.isValid(Q)?`${Q.year}-${Q.monthFormatted}-${Q.dateFormatted}`:""}_handleDateRange(Q,O){const Y=this.dates.picked[0],q=this.dates.picked[1];this.optionsStore.options.dateRange&&(Q.isBetween(Y,q,Kt.date)&&O.push(Et.css.rangeIn),Q.isSame(Y,Kt.date)&&O.push(Et.css.rangeStart),Q.isSame(q,Kt.date)&&O.push(Et.css.rangeEnd))}handleMouseEvents(Q){return{rangeHoverEvent:q=>{const gt=q==null?void 0:q.currentTarget;if(this.dates.picked.length!==1||gt.classList.contains(Et.css.disabled))return;const It=[...Q.querySelectorAll(".day")],Yt=gt.getAttribute("data-value"),ae=sr.fromString(Yt,{format:"yyyy-MM-dd"}),Dt=It.findIndex(so=>so.getAttribute("data-value")===Yt),Pt=this.dates.picked[0],Ue=this.dates.picked[1],er=this._dateToDataValue(Pt),Qi=It.findIndex(so=>so.getAttribute("data-value")===er),Nn=It[Qi];ae.isSame(Pt,Kt.date)||gt.classList.remove(Et.css.rangeStart),ae.isSame(Ue,Kt.date)||gt.classList.remove(Et.css.rangeEnd);let an;ae.isBefore(Pt)?(gt.classList.add(Et.css.rangeStart),Nn==null||Nn.classList.remove(Et.css.rangeStart),Nn==null||Nn.classList.add(Et.css.rangeEnd),an=(so,kA)=>kA>Dt&&kAkAQi),It.filter(an).forEach(so=>{so.classList.add(Et.css.rangeIn)})},rangeHoverOutEvent:q=>{const gt=[...Q.querySelectorAll(".day")];if(this.dates.picked.length===1&>.forEach(ae=>ae.classList.remove(Et.css.rangeIn)),this.dates.picked.length!==1)return;const It=q==null?void 0:q.currentTarget,Yt=new sr(It.getAttribute("data-value"));Yt.isSame(this.dates.picked[0],Kt.date)||It.classList.remove(Et.css.rangeStart),Yt.isSame(this.dates.picked[1],Kt.date)||It.classList.remove(Et.css.rangeEnd)}}}_updateCalendarView(Q){if(this.optionsStore.currentView!=="calendar")return;const[O,Y,q]=Q.parentElement.getElementsByClassName(Et.css.calendarHeader)[0].getElementsByTagName("div");Y.setAttribute(Et.css.daysContainer,this.optionsStore.viewDate.format(this.optionsStore.options.localization.dayViewHeaderFormat)),this.optionsStore.options.display.components.month?Y.classList.remove(Et.css.disabled):Y.classList.add(Et.css.disabled),this.validation.isValid(this.optionsStore.viewDate.clone.manipulate(-1,Kt.month),Kt.month)?O.classList.remove(Et.css.disabled):O.classList.add(Et.css.disabled),this.validation.isValid(this.optionsStore.viewDate.clone.manipulate(1,Kt.month),Kt.month)?q.classList.remove(Et.css.disabled):q.classList.add(Et.css.disabled)}_daysOfTheWeek(){const Q=this.optionsStore.viewDate.clone.startOf("weekDay",this.optionsStore.options.localization.startOfTheWeek).startOf(Kt.date),O=[];if(document.createElement("div"),this.optionsStore.options.display.calendarWeeks){const Y=document.createElement("div");Y.classList.add(Et.css.calendarWeeks,Et.css.noHighlight),Y.innerText="#",O.push(Y)}for(let Y=0;Y<7;Y++){const q=document.createElement("div");q.classList.add(Et.css.dayOfTheWeek,Et.css.noHighlight);let gt=Q.format({weekday:"short"});this.optionsStore.options.localization.maxWeekdayLength>0&&(gt=gt.substring(0,this.optionsStore.options.localization.maxWeekdayLength)),q.innerText=gt,Q.manipulate(1,Kt.date),O.push(q)}return O}_handleCalendarWeeks(Q,O){[...Q.querySelectorAll(`.${Et.css.calendarWeeks}`)].filter(Y=>Y.innerText!=="#").forEach(Y=>{Y.innerText=`${O.week}`,O.manipulate(7,Kt.date)})}}class mH{constructor(){this.optionsStore=An.locate(xo),this.dates=An.locate(El),this.validation=An.locate(js)}getPicker(){const Q=document.createElement("div");Q.classList.add(Et.css.monthsContainer);for(let O=0;O<12;O++){const Y=document.createElement("div");Y.setAttribute("data-action",Ee.selectMonth),Q.appendChild(Y)}return Q}_update(Q,O){const Y=Q.getElementsByClassName(Et.css.monthsContainer)[0];if(this.optionsStore.currentView==="months"){const[gt,It,Yt]=Y.parentElement.getElementsByClassName(Et.css.calendarHeader)[0].getElementsByTagName("div");It.setAttribute(Et.css.monthsContainer,this.optionsStore.viewDate.format({year:"numeric"})),this.optionsStore.options.display.components.year?It.classList.remove(Et.css.disabled):It.classList.add(Et.css.disabled),this.validation.isValid(this.optionsStore.viewDate.clone.manipulate(-1,Kt.year),Kt.year)?gt.classList.remove(Et.css.disabled):gt.classList.add(Et.css.disabled),this.validation.isValid(this.optionsStore.viewDate.clone.manipulate(1,Kt.year),Kt.year)?Yt.classList.remove(Et.css.disabled):Yt.classList.add(Et.css.disabled)}const q=this.optionsStore.viewDate.clone.startOf(Kt.year);Y.querySelectorAll(`[data-action="${Ee.selectMonth}"]`).forEach((gt,It)=>{const Yt=[];Yt.push(Et.css.month),!this.optionsStore.unset&&this.dates.isPicked(q,Kt.month)&&Yt.push(Et.css.active),this.validation.isValid(q,Kt.month)||Yt.push(Et.css.disabled),O(Kt.month,q,Yt,gt),gt.classList.remove(...gt.classList),gt.classList.add(...Yt),gt.setAttribute("data-value",`${It}`),gt.innerText=`${q.format({month:"short"})}`,q.manipulate(1,Kt.month)})}}class gH{constructor(){this.optionsStore=An.locate(xo),this.dates=An.locate(El),this.validation=An.locate(js)}getPicker(){const Q=document.createElement("div");Q.classList.add(Et.css.yearsContainer);for(let O=0;O<12;O++){const Y=document.createElement("div");Y.setAttribute("data-action",Ee.selectYear),Q.appendChild(Y)}return Q}_update(Q,O){this._startYear=this.optionsStore.viewDate.clone.manipulate(-1,Kt.year),this._endYear=this.optionsStore.viewDate.clone.manipulate(10,Kt.year);const Y=Q.getElementsByClassName(Et.css.yearsContainer)[0];if(this.optionsStore.currentView==="years"){const[gt,It,Yt]=Y.parentElement.getElementsByClassName(Et.css.calendarHeader)[0].getElementsByTagName("div");It.setAttribute(Et.css.yearsContainer,`${this._startYear.format({year:"numeric"})}-${this._endYear.format({year:"numeric"})}`),this.optionsStore.options.display.components.decades?It.classList.remove(Et.css.disabled):It.classList.add(Et.css.disabled),this.validation.isValid(this._startYear,Kt.year)?gt.classList.remove(Et.css.disabled):gt.classList.add(Et.css.disabled),this.validation.isValid(this._endYear,Kt.year)?Yt.classList.remove(Et.css.disabled):Yt.classList.add(Et.css.disabled)}const q=this.optionsStore.viewDate.clone.startOf(Kt.year).manipulate(-1,Kt.year);Y.querySelectorAll(`[data-action="${Ee.selectYear}"]`).forEach(gt=>{const It=[];It.push(Et.css.year),!this.optionsStore.unset&&this.dates.isPicked(q,Kt.year)&&It.push(Et.css.active),this.validation.isValid(q,Kt.year)||It.push(Et.css.disabled),O(Kt.year,q,It,gt),gt.classList.remove(...gt.classList),gt.classList.add(...It),gt.setAttribute("data-value",`${q.year}`),gt.innerText=q.format({year:"numeric"}),q.manipulate(1,Kt.year)})}}class vH{constructor(){this.optionsStore=An.locate(xo),this.dates=An.locate(El),this.validation=An.locate(js)}getPicker(){const Q=document.createElement("div");Q.classList.add(Et.css.decadesContainer);for(let O=0;O<12;O++){const Y=document.createElement("div");Y.setAttribute("data-action",Ee.selectDecade),Q.appendChild(Y)}return Q}_update(Q,O){const[Y,q]=El.getStartEndYear(100,this.optionsStore.viewDate.year);this._startDecade=this.optionsStore.viewDate.clone.startOf(Kt.year),this._startDecade.year=Y,this._endDecade=this.optionsStore.viewDate.clone.startOf(Kt.year),this._endDecade.year=q;const gt=Q.getElementsByClassName(Et.css.decadesContainer)[0],[It,Yt,ae]=gt.parentElement.getElementsByClassName(Et.css.calendarHeader)[0].getElementsByTagName("div");this.optionsStore.currentView==="decades"&&(Yt.setAttribute(Et.css.decadesContainer,`${this._startDecade.format({year:"numeric"})}-${this._endDecade.format({year:"numeric"})}`),this.validation.isValid(this._startDecade,Kt.year)?It.classList.remove(Et.css.disabled):It.classList.add(Et.css.disabled),this.validation.isValid(this._endDecade,Kt.year)?ae.classList.remove(Et.css.disabled):ae.classList.add(Et.css.disabled));const Dt=this.dates.picked.map(Pt=>Pt.year);gt.querySelectorAll(`[data-action="${Ee.selectDecade}"]`).forEach((Pt,Ue)=>{if(Ue===0)if(Pt.classList.add(Et.css.old),this._startDecade.year-10<0){Pt.textContent=" ",It.classList.add(Et.css.disabled),Pt.classList.add(Et.css.disabled),Pt.setAttribute("data-value","");return}else{Pt.innerText=this._startDecade.clone.manipulate(-10,Kt.year).format({year:"numeric"}),Pt.setAttribute("data-value",`${this._startDecade.year}`);return}const er=[];er.push(Et.css.decade);const Qi=this._startDecade.year,Nn=this._startDecade.year+9;!this.optionsStore.unset&&Dt.filter(an=>an>=Qi&&an<=Nn).length>0&&er.push(Et.css.active),O("decade",this._startDecade,er,Pt),Pt.classList.remove(...Pt.classList),Pt.classList.add(...er),Pt.setAttribute("data-value",`${this._startDecade.year}`),Pt.innerText=`${this._startDecade.format({year:"numeric"})}`,this._startDecade.manipulate(10,Kt.year)})}}class yH{constructor(){this._gridColumns="",this.optionsStore=An.locate(xo),this.dates=An.locate(El),this.validation=An.locate(js)}getPicker(Q){const O=document.createElement("div");return O.classList.add(Et.css.clockContainer),O.append(...this._grid(Q)),O}_update(Q){var q;const O=Q.getElementsByClassName(Et.css.clockContainer)[0];let Y=(q=this.dates.lastPicked)==null?void 0:q.clone;if(!Y&&this.optionsStore.options.useCurrent&&(Y=this.optionsStore.viewDate.clone),O.querySelectorAll(".disabled").forEach(gt=>gt.classList.remove(Et.css.disabled)),this.optionsStore.options.display.components.hours&&(this.validation.isValid(this.optionsStore.viewDate.clone.manipulate(1,Kt.hours),Kt.hours)||O.querySelector(`[data-action=${Ee.incrementHours}]`).classList.add(Et.css.disabled),this.validation.isValid(this.optionsStore.viewDate.clone.manipulate(-1,Kt.hours),Kt.hours)||O.querySelector(`[data-action=${Ee.decrementHours}]`).classList.add(Et.css.disabled),O.querySelector(`[data-time-component=${Kt.hours}]`).innerText=Y?Y.getHoursFormatted(this.optionsStore.options.localization.hourCycle):"--"),this.optionsStore.options.display.components.minutes&&(this.validation.isValid(this.optionsStore.viewDate.clone.manipulate(1,Kt.minutes),Kt.minutes)||O.querySelector(`[data-action=${Ee.incrementMinutes}]`).classList.add(Et.css.disabled),this.validation.isValid(this.optionsStore.viewDate.clone.manipulate(-1,Kt.minutes),Kt.minutes)||O.querySelector(`[data-action=${Ee.decrementMinutes}]`).classList.add(Et.css.disabled),O.querySelector(`[data-time-component=${Kt.minutes}]`).innerText=Y?Y.minutesFormatted:"--"),this.optionsStore.options.display.components.seconds&&(this.validation.isValid(this.optionsStore.viewDate.clone.manipulate(1,Kt.seconds),Kt.seconds)||O.querySelector(`[data-action=${Ee.incrementSeconds}]`).classList.add(Et.css.disabled),this.validation.isValid(this.optionsStore.viewDate.clone.manipulate(-1,Kt.seconds),Kt.seconds)||O.querySelector(`[data-action=${Ee.decrementSeconds}]`).classList.add(Et.css.disabled),O.querySelector(`[data-time-component=${Kt.seconds}]`).innerText=Y?Y.secondsFormatted:"--"),this.optionsStore.isTwelveHour){const gt=O.querySelector(`[data-action=${Ee.toggleMeridiem}]`),It=(Y||this.optionsStore.viewDate).clone;gt.innerText=It.meridiem(),this.validation.isValid(It.manipulate(It.hours>=12?-12:12,Kt.hours))?gt.classList.remove(Et.css.disabled):gt.classList.add(Et.css.disabled)}O.style.gridTemplateAreas=`"${this._gridColumns}"`}_grid(Q){this._gridColumns="";const O=[],Y=[],q=[],gt=document.createElement("div"),It=Q(this.optionsStore.options.display.icons.up),Yt=Q(this.optionsStore.options.display.icons.down);gt.classList.add(Et.css.separator,Et.css.noHighlight);const ae=gt.cloneNode(!0);ae.innerHTML=":";const Dt=(Pt=!1)=>Pt?ae.cloneNode(!0):gt.cloneNode(!0);if(this.optionsStore.options.display.components.hours){let Pt=document.createElement("div");Pt.setAttribute("title",this.optionsStore.options.localization.incrementHour),Pt.setAttribute("data-action",Ee.incrementHours),Pt.appendChild(It.cloneNode(!0)),O.push(Pt),Pt=document.createElement("div"),Pt.setAttribute("title",this.optionsStore.options.localization.pickHour),Pt.setAttribute("data-action",Ee.showHours),Pt.setAttribute("data-time-component",Kt.hours),Y.push(Pt),Pt=document.createElement("div"),Pt.setAttribute("title",this.optionsStore.options.localization.decrementHour),Pt.setAttribute("data-action",Ee.decrementHours),Pt.appendChild(Yt.cloneNode(!0)),q.push(Pt),this._gridColumns+="a"}if(this.optionsStore.options.display.components.minutes){this._gridColumns+=" a",this.optionsStore.options.display.components.hours&&(O.push(Dt()),Y.push(Dt(!0)),q.push(Dt()),this._gridColumns+=" a");let Pt=document.createElement("div");Pt.setAttribute("title",this.optionsStore.options.localization.incrementMinute),Pt.setAttribute("data-action",Ee.incrementMinutes),Pt.appendChild(It.cloneNode(!0)),O.push(Pt),Pt=document.createElement("div"),Pt.setAttribute("title",this.optionsStore.options.localization.pickMinute),Pt.setAttribute("data-action",Ee.showMinutes),Pt.setAttribute("data-time-component",Kt.minutes),Y.push(Pt),Pt=document.createElement("div"),Pt.setAttribute("title",this.optionsStore.options.localization.decrementMinute),Pt.setAttribute("data-action",Ee.decrementMinutes),Pt.appendChild(Yt.cloneNode(!0)),q.push(Pt)}if(this.optionsStore.options.display.components.seconds){this._gridColumns+=" a",this.optionsStore.options.display.components.minutes&&(O.push(Dt()),Y.push(Dt(!0)),q.push(Dt()),this._gridColumns+=" a");let Pt=document.createElement("div");Pt.setAttribute("title",this.optionsStore.options.localization.incrementSecond),Pt.setAttribute("data-action",Ee.incrementSeconds),Pt.appendChild(It.cloneNode(!0)),O.push(Pt),Pt=document.createElement("div"),Pt.setAttribute("title",this.optionsStore.options.localization.pickSecond),Pt.setAttribute("data-action",Ee.showSeconds),Pt.setAttribute("data-time-component",Kt.seconds),Y.push(Pt),Pt=document.createElement("div"),Pt.setAttribute("title",this.optionsStore.options.localization.decrementSecond),Pt.setAttribute("data-action",Ee.decrementSeconds),Pt.appendChild(Yt.cloneNode(!0)),q.push(Pt)}if(this.optionsStore.isTwelveHour){this._gridColumns+=" a";let Pt=Dt();O.push(Pt);const Ue=document.createElement("button");Ue.setAttribute("type","button"),Ue.setAttribute("title",this.optionsStore.options.localization.toggleMeridiem),Ue.setAttribute("data-action",Ee.toggleMeridiem),Ue.setAttribute("tabindex","-1"),Et.css.toggleMeridiem.includes(",")?Ue.classList.add(...Et.css.toggleMeridiem.split(",")):Ue.classList.add(Et.css.toggleMeridiem),Pt=document.createElement("div"),Pt.classList.add(Et.css.noHighlight),Pt.appendChild(Ue),Y.push(Pt),Pt=Dt(),q.push(Pt)}return this._gridColumns=this._gridColumns.trim(),[...O,...Y,...q]}}class bH{constructor(){this.optionsStore=An.locate(xo),this.validation=An.locate(js)}getPicker(){const Q=document.createElement("div");Q.classList.add(Et.css.hourContainer);for(let O=0;O<(this.optionsStore.isTwelveHour?12:24);O++){const Y=document.createElement("div");Y.setAttribute("data-action",Ee.selectHour),Q.appendChild(Y)}return Q}_update(Q,O){const Y=Q.getElementsByClassName(Et.css.hourContainer)[0],q=this.optionsStore.viewDate.clone.startOf(Kt.date);Y.querySelectorAll(`[data-action="${Ee.selectHour}"]`).forEach(gt=>{const It=[];It.push(Et.css.hour),this.validation.isValid(q,Kt.hours)||It.push(Et.css.disabled),O(Kt.hours,q,It,gt),gt.classList.remove(...gt.classList),gt.classList.add(...It),gt.setAttribute("data-value",`${q.hours}`),gt.innerText=q.getHoursFormatted(this.optionsStore.options.localization.hourCycle),q.manipulate(1,Kt.hours)})}}class TH{constructor(){this.optionsStore=An.locate(xo),this.validation=An.locate(js)}getPicker(){const Q=document.createElement("div");Q.classList.add(Et.css.minuteContainer);const O=this.optionsStore.options.stepping===1?5:this.optionsStore.options.stepping;for(let Y=0;Y<60/O;Y++){const q=document.createElement("div");q.setAttribute("data-action",Ee.selectMinute),Q.appendChild(q)}return Q}_update(Q,O){const Y=Q.getElementsByClassName(Et.css.minuteContainer)[0],q=this.optionsStore.viewDate.clone.startOf(Kt.hours),gt=this.optionsStore.options.stepping===1?5:this.optionsStore.options.stepping;Y.querySelectorAll(`[data-action="${Ee.selectMinute}"]`).forEach(It=>{const Yt=[];Yt.push(Et.css.minute),this.validation.isValid(q,Kt.minutes)||Yt.push(Et.css.disabled),O(Kt.minutes,q,Yt,It),It.classList.remove(...It.classList),It.classList.add(...Yt),It.setAttribute("data-value",`${q.minutes}`),It.innerText=q.minutesFormatted,q.manipulate(gt,Kt.minutes)})}}class wH{constructor(){this.optionsStore=An.locate(xo),this.validation=An.locate(js)}getPicker(){const Q=document.createElement("div");Q.classList.add(Et.css.secondContainer);for(let O=0;O<12;O++){const Y=document.createElement("div");Y.setAttribute("data-action",Ee.selectSecond),Q.appendChild(Y)}return Q}_update(Q,O){const Y=Q.getElementsByClassName(Et.css.secondContainer)[0],q=this.optionsStore.viewDate.clone.startOf(Kt.minutes);Y.querySelectorAll(`[data-action="${Ee.selectSecond}"]`).forEach(gt=>{const It=[];It.push(Et.css.second),this.validation.isValid(q,Kt.seconds)||It.push(Et.css.disabled),O(Kt.seconds,q,It,gt),gt.classList.remove(...gt.classList),gt.classList.add(...It),gt.setAttribute("data-value",`${q.seconds}`),gt.innerText=q.secondsFormatted,q.manipulate(5,Kt.seconds)})}}class SA{static toggle(Q){Q.classList.contains(Et.css.show)?this.hide(Q):this.show(Q)}static showImmediately(Q){Q.classList.remove(Et.css.collapsing),Q.classList.add(Et.css.collapse,Et.css.show),Q.style.height=""}static show(Q){if(Q.classList.contains(Et.css.collapsing)||Q.classList.contains(Et.css.show))return;const O=()=>{SA.showImmediately(Q)};Q.style.height="0",Q.classList.remove(Et.css.collapse),Q.classList.add(Et.css.collapsing),setTimeout(O,this.getTransitionDurationFromElement(Q)),Q.style.height=`${Q.scrollHeight}px`}static hideImmediately(Q){!Q||(Q.classList.remove(Et.css.collapsing,Et.css.show),Q.classList.add(Et.css.collapse))}static hide(Q){if(Q.classList.contains(Et.css.collapsing)||!Q.classList.contains(Et.css.show))return;const O=()=>{SA.hideImmediately(Q)};Q.style.height=`${Q.getBoundingClientRect().height}px`,(q=>q.offsetHeight)(Q),Q.classList.remove(Et.css.collapse,Et.css.show),Q.classList.add(Et.css.collapsing),Q.style.height="",setTimeout(O,this.getTransitionDurationFromElement(Q))}}SA.getTransitionDurationFromElement=Lt=>{if(!Lt)return 0;let{transitionDuration:Q,transitionDelay:O}=window.getComputedStyle(Lt);const Y=Number.parseFloat(Q),q=Number.parseFloat(O);return!Y&&!q?0:(Q=Q.split(",")[0],O=O.split(",")[0],(Number.parseFloat(Q)+Number.parseFloat(O))*1e3)};class p7{constructor(){this._isVisible=!1,this._documentClickEvent=Q=>{var O;this.optionsStore.options.debug||window.debug||this._isVisible&&!Q.composedPath().includes(this.widget)&&!((O=Q.composedPath())!=null&&O.includes(this.optionsStore.element))&&this.hide()},this._actionsClickEvent=Q=>{this._eventEmitters.action.emit({e:Q})},this.optionsStore=An.locate(xo),this.validation=An.locate(js),this.dates=An.locate(El),this.dateDisplay=An.locate(pH),this.monthDisplay=An.locate(mH),this.yearDisplay=An.locate(gH),this.decadeDisplay=An.locate(vH),this.timeDisplay=An.locate(yH),this.hourDisplay=An.locate(bH),this.minuteDisplay=An.locate(TH),this.secondDisplay=An.locate(wH),this._eventEmitters=An.locate(ev),this._widget=void 0,this._eventEmitters.updateDisplay.subscribe(Q=>{this._update(Q)})}get widget(){return this._widget}get dateContainer(){var Q;return(Q=this.widget)==null?void 0:Q.querySelector(`div.${Et.css.dateContainer}`)}get timeContainer(){var Q;return(Q=this.widget)==null?void 0:Q.querySelector(`div.${Et.css.timeContainer}`)}get isVisible(){return this._isVisible}_update(Q){if(!!this.widget)switch(Q){case Kt.seconds:this.secondDisplay._update(this.widget,this.paint);break;case Kt.minutes:this.minuteDisplay._update(this.widget,this.paint);break;case Kt.hours:this.hourDisplay._update(this.widget,this.paint);break;case Kt.date:this.dateDisplay._update(this.widget,this.paint);break;case Kt.month:this.monthDisplay._update(this.widget,this.paint);break;case Kt.year:this.yearDisplay._update(this.widget,this.paint);break;case"decade":this.decadeDisplay._update(this.widget,this.paint);break;case"clock":if(!this._hasTime)break;this.timeDisplay._update(this.widget),this._update(Kt.hours),this._update(Kt.minutes),this._update(Kt.seconds);break;case"calendar":this._update(Kt.date),this._update(Kt.year),this._update(Kt.month),this.decadeDisplay._update(this.widget,this.paint),this._updateCalendarHeader();break;case"all":this._hasTime&&this._update("clock"),this._hasDate&&this._update("calendar")}}paint(Q,O,Y,q){}show(){var Q,O,Y;if(this.widget==null){if(this._showSetDefaultIfNeeded(),this._buildWidget(),this._updateTheme(),this._showSetupViewMode(),this.optionsStore.options.display.inline)this.optionsStore.element.appendChild(this.widget);else{const q=((Q=this.optionsStore.options)==null?void 0:Q.container)||document.body,gt=((Y=(O=this.optionsStore.options)==null?void 0:O.display)==null?void 0:Y.placement)||"bottom";q.appendChild(this.widget),this.createPopup(this.optionsStore.element,this.widget,{modifiers:[{name:"eventListeners",enabled:!0}],placement:document.documentElement.dir==="rtl"?`${gt}-end`:`${gt}-start`}).then()}this.optionsStore.options.display.viewMode=="clock"&&this._eventEmitters.action.emit({e:null,action:Ee.showClock}),this.widget.querySelectorAll("[data-action]").forEach(q=>q.addEventListener("click",this._actionsClickEvent)),this._hasTime&&this.optionsStore.options.display.sideBySide&&(this.timeDisplay._update(this.widget),this.widget.getElementsByClassName(Et.css.clockContainer)[0].style.display="grid")}this.widget.classList.add(Et.css.show),this.optionsStore.options.display.inline||(this.updatePopup(),document.addEventListener("click",this._documentClickEvent)),this._eventEmitters.triggerEvent.emit({type:Et.events.show}),this._isVisible=!0}_showSetupViewMode(){const Q=this._hasTime&&!this._hasDate;Q?(this.optionsStore.currentView="clock",this._eventEmitters.action.emit({e:null,action:Ee.showClock})):this.optionsStore.currentCalendarViewMode||(this.optionsStore.currentCalendarViewMode=this.optionsStore.minimumCalendarViewMode),!Q&&this.optionsStore.options.display.viewMode!=="clock"&&(this._hasTime&&(this.optionsStore.options.display.sideBySide?SA.show(this.timeContainer):SA.hideImmediately(this.timeContainer)),SA.show(this.dateContainer)),this._hasDate&&this._showMode()}_showSetDefaultIfNeeded(){var Q;if(this.dates.picked.length==0){if(this.optionsStore.options.useCurrent&&!this.optionsStore.options.defaultDate){const O=new sr().setLocalization(this.optionsStore.options.localization);if(!this.optionsStore.options.keepInvalid){let Y=0,q=1;for((Q=this.optionsStore.options.restrictions.maxDate)!=null&&Q.isBefore(O)&&(q=-1);!this.validation.isValid(O)&&Y>31;)O.manipulate(q,Kt.date),Y++}this.dates.setValue(O)}this.optionsStore.options.defaultDate&&this.dates.setValue(this.optionsStore.options.defaultDate)}}async createPopup(Q,O,Y){var gt;let q;if(window!=null&&window.Popper)q=(gt=window==null?void 0:window.Popper)==null?void 0:gt.createPopper;else{const{createPopper:It}=await KU(()=>import("./index.30e94252.js"),[]);q=It}q&&(this._popperInstance=q(Q,O,Y))}updatePopup(){var Q;(Q=this._popperInstance)==null||Q.update()}_showMode(Q){if(!this.widget)return;if(Q){const q=Math.max(this.optionsStore.minimumCalendarViewMode,Math.min(3,this.optionsStore.currentCalendarViewMode+Q));if(this.optionsStore.currentCalendarViewMode==q)return;this.optionsStore.currentCalendarViewMode=q}this.widget.querySelectorAll(`.${Et.css.dateContainer} > div:not(.${Et.css.calendarHeader}), .${Et.css.timeContainer} > div:not(.${Et.css.clockContainer})`).forEach(q=>q.style.display="none");const O=Id[this.optionsStore.currentCalendarViewMode],Y=this.widget.querySelector(`.${O.className}`);switch(O.className){case Et.css.decadesContainer:this.decadeDisplay._update(this.widget,this.paint);break;case Et.css.yearsContainer:this.yearDisplay._update(this.widget,this.paint);break;case Et.css.monthsContainer:this.monthDisplay._update(this.widget,this.paint);break;case Et.css.daysContainer:this.dateDisplay._update(this.widget,this.paint);break}Y.style.display="grid",this.optionsStore.options.display.sideBySide&&(this.widget.querySelectorAll(`.${Et.css.clockContainer}`)[0].style.display="grid"),this._updateCalendarHeader(),this._eventEmitters.viewUpdate.emit()}_updateTheme(Q){if(!!this.widget){if(Q){if(this.optionsStore.options.display.theme===Q)return;this.optionsStore.options.display.theme=Q}this.widget.classList.remove("light","dark"),this.widget.classList.add(this._getThemeClass()),this.optionsStore.options.display.theme==="auto"?window.matchMedia(Et.css.isDarkPreferredQuery).addEventListener("change",()=>this._updateTheme()):window.matchMedia(Et.css.isDarkPreferredQuery).removeEventListener("change",()=>this._updateTheme())}}_getThemeClass(){const Q=this.optionsStore.options.display.theme||"auto",O=window.matchMedia&&window.matchMedia(Et.css.isDarkPreferredQuery).matches;switch(Q){case"light":return Et.css.lightTheme;case"dark":return Et.css.darkTheme;case"auto":return O?Et.css.darkTheme:Et.css.lightTheme}}_updateCalendarHeader(){if(!this._hasDate)return;const Q=[...this.widget.querySelector(`.${Et.css.dateContainer} div[style*="display: grid"]`).classList].find(gt=>gt.startsWith(Et.css.dateContainer)),[O,Y,q]=this.widget.getElementsByClassName(Et.css.calendarHeader)[0].getElementsByTagName("div");switch(Q){case Et.css.decadesContainer:O.setAttribute("title",this.optionsStore.options.localization.previousCentury),Y.setAttribute("title",""),q.setAttribute("title",this.optionsStore.options.localization.nextCentury);break;case Et.css.yearsContainer:O.setAttribute("title",this.optionsStore.options.localization.previousDecade),Y.setAttribute("title",this.optionsStore.options.localization.selectDecade),q.setAttribute("title",this.optionsStore.options.localization.nextDecade);break;case Et.css.monthsContainer:O.setAttribute("title",this.optionsStore.options.localization.previousYear),Y.setAttribute("title",this.optionsStore.options.localization.selectYear),q.setAttribute("title",this.optionsStore.options.localization.nextYear);break;case Et.css.daysContainer:O.setAttribute("title",this.optionsStore.options.localization.previousMonth),Y.setAttribute("title",this.optionsStore.options.localization.selectMonth),q.setAttribute("title",this.optionsStore.options.localization.nextMonth),Y.setAttribute(Q,this.optionsStore.viewDate.format(this.optionsStore.options.localization.dayViewHeaderFormat));break}Y.innerText=Y.getAttribute(Q)}hide(){var Q;!this.widget||!this._isVisible||(this.widget.classList.remove(Et.css.show),this._isVisible&&(this._eventEmitters.triggerEvent.emit({type:Et.events.hide,date:this.optionsStore.unset?null:(Q=this.dates.lastPicked)==null?void 0:Q.clone}),this._isVisible=!1),document.removeEventListener("click",this._documentClickEvent))}toggle(){return this._isVisible?this.hide():this.show()}_dispose(){document.removeEventListener("click",this._documentClickEvent),this.widget&&(this.widget.querySelectorAll("[data-action]").forEach(Q=>Q.removeEventListener("click",this._actionsClickEvent)),this.widget.parentNode.removeChild(this.widget),this._widget=void 0)}_buildWidget(){const Q=document.createElement("div");Q.classList.add(Et.css.widget);const O=document.createElement("div");O.classList.add(Et.css.dateContainer),O.append(this.getHeadTemplate(),this.decadeDisplay.getPicker(),this.yearDisplay.getPicker(),this.monthDisplay.getPicker(),this.dateDisplay.getPicker());const Y=document.createElement("div");Y.classList.add(Et.css.timeContainer),Y.appendChild(this.timeDisplay.getPicker(this._iconTag.bind(this))),Y.appendChild(this.hourDisplay.getPicker()),Y.appendChild(this.minuteDisplay.getPicker()),Y.appendChild(this.secondDisplay.getPicker());const q=document.createElement("div");if(q.classList.add(Et.css.toolbar),q.append(...this.getToolbarElements()),this.optionsStore.options.display.inline&&Q.classList.add(Et.css.inline),this.optionsStore.options.display.calendarWeeks&&Q.classList.add("calendarWeeks"),this.optionsStore.options.display.sideBySide&&this._hasDateAndTime){this._buildWidgetSideBySide(Q,O,Y,q);return}this.optionsStore.options.display.toolbarPlacement==="top"&&Q.appendChild(q);const gt=(Yt,ae,Dt,Pt)=>{!Yt||(ae&&(Dt.classList.add(Et.css.collapse),Pt&&Dt.classList.add(Et.css.show)),Q.appendChild(Dt))};gt(this._hasDate,this._hasTime,O,this.optionsStore.options.display.viewMode!=="clock"),gt(this._hasTime,this._hasDate,Y,this.optionsStore.options.display.viewMode==="clock"),this.optionsStore.options.display.toolbarPlacement==="bottom"&&Q.appendChild(q);const It=document.createElement("div");It.classList.add("arrow"),It.setAttribute("data-popper-arrow",""),Q.appendChild(It),this._widget=Q}_buildWidgetSideBySide(Q,O,Y,q){Q.classList.add(Et.css.sideBySide),this.optionsStore.options.display.toolbarPlacement==="top"&&Q.appendChild(q);const gt=document.createElement("div");gt.classList.add("td-row"),O.classList.add("td-half"),Y.classList.add("td-half"),gt.appendChild(O),gt.appendChild(Y),Q.appendChild(gt),this.optionsStore.options.display.toolbarPlacement==="bottom"&&Q.appendChild(q),this._widget=Q}get _hasTime(){return this.optionsStore.options.display.components.clock&&(this.optionsStore.options.display.components.hours||this.optionsStore.options.display.components.minutes||this.optionsStore.options.display.components.seconds)}get _hasDate(){return this.optionsStore.options.display.components.calendar&&(this.optionsStore.options.display.components.year||this.optionsStore.options.display.components.month||this.optionsStore.options.display.components.date)}get _hasDateAndTime(){return this._hasDate&&this._hasTime}getToolbarElements(){const Q=[];if(this.optionsStore.options.display.buttons.today){const O=document.createElement("div");O.setAttribute("data-action",Ee.today),O.setAttribute("title",this.optionsStore.options.localization.today),O.appendChild(this._iconTag(this.optionsStore.options.display.icons.today)),Q.push(O)}if(!this.optionsStore.options.display.sideBySide&&this._hasDate&&this._hasTime){let O,Y;this.optionsStore.options.display.viewMode==="clock"?(O=this.optionsStore.options.localization.selectDate,Y=this.optionsStore.options.display.icons.date):(O=this.optionsStore.options.localization.selectTime,Y=this.optionsStore.options.display.icons.time);const q=document.createElement("div");q.setAttribute("data-action",Ee.togglePicker),q.setAttribute("title",O),q.appendChild(this._iconTag(Y)),Q.push(q)}if(this.optionsStore.options.display.buttons.clear){const O=document.createElement("div");O.setAttribute("data-action",Ee.clear),O.setAttribute("title",this.optionsStore.options.localization.clear),O.appendChild(this._iconTag(this.optionsStore.options.display.icons.clear)),Q.push(O)}if(this.optionsStore.options.display.buttons.close){const O=document.createElement("div");O.setAttribute("data-action",Ee.close),O.setAttribute("title",this.optionsStore.options.localization.close),O.appendChild(this._iconTag(this.optionsStore.options.display.icons.close)),Q.push(O)}return Q}getHeadTemplate(){const Q=document.createElement("div");Q.classList.add(Et.css.calendarHeader);const O=document.createElement("div");O.classList.add(Et.css.previous),O.setAttribute("data-action",Ee.previous),O.appendChild(this._iconTag(this.optionsStore.options.display.icons.previous));const Y=document.createElement("div");Y.classList.add(Et.css.switch),Y.setAttribute("data-action",Ee.changeCalendarView);const q=document.createElement("div");return q.classList.add(Et.css.next),q.setAttribute("data-action",Ee.next),q.appendChild(this._iconTag(this.optionsStore.options.display.icons.next)),Q.append(O,Y,q),Q}_iconTag(Q){if(this.optionsStore.options.display.icons.type==="sprites"){const Y=document.createElementNS("http://www.w3.org/2000/svg","svg"),q=document.createElementNS("http://www.w3.org/2000/svg","use");return q.setAttribute("xlink:href",Q),q.setAttribute("href",Q),Y.appendChild(q),Y}const O=document.createElement("i");return O.classList.add(...Q.split(" ")),O}_rebuild(){const Q=this._isVisible;this._dispose(),Q&&this.show()}refreshCurrentView(){switch(this._isVisible||this._dispose(),this.optionsStore.currentView){case"clock":this._update("clock");break;case"calendar":this._update(Kt.date);break;case"months":this._update(Kt.month);break;case"years":this._update(Kt.year);break;case"decades":this._update("decade");break}}}class EH{constructor(){this.optionsStore=An.locate(xo),this.dates=An.locate(El),this.validation=An.locate(js),this.display=An.locate(p7),this._eventEmitters=An.locate(ev),this._eventEmitters.action.subscribe(Q=>{this.do(Q.e,Q.action)})}do(Q,O){var gt,It;const Y=Q==null?void 0:Q.currentTarget;if((gt=Y==null?void 0:Y.classList)!=null&>.contains(Et.css.disabled))return;O=O||((It=Y==null?void 0:Y.dataset)==null?void 0:It.action);const q=(this.dates.lastPicked||this.optionsStore.viewDate).clone;switch(O){case Ee.next:case Ee.previous:this.handleNextPrevious(O);break;case Ee.changeCalendarView:this.display._showMode(1),this.display._updateCalendarHeader();break;case Ee.selectMonth:case Ee.selectYear:case Ee.selectDecade:this.handleSelectCalendarMode(O,Y);break;case Ee.selectDay:this.handleSelectDay(Y);break;case Ee.selectHour:{let Yt=+Y.dataset.value;q.hours>=12&&this.optionsStore.isTwelveHour&&(Yt+=12),q.hours=Yt,this.dates.setValue(q,this.dates.lastPickedIndex),this.hideOrClock(Q);break}case Ee.selectMinute:{q.minutes=+Y.dataset.value,this.dates.setValue(q,this.dates.lastPickedIndex),this.hideOrClock(Q);break}case Ee.selectSecond:{q.seconds=+Y.dataset.value,this.dates.setValue(q,this.dates.lastPickedIndex),this.hideOrClock(Q);break}case Ee.incrementHours:this.manipulateAndSet(q,Kt.hours);break;case Ee.incrementMinutes:this.manipulateAndSet(q,Kt.minutes,this.optionsStore.options.stepping);break;case Ee.incrementSeconds:this.manipulateAndSet(q,Kt.seconds);break;case Ee.decrementHours:this.manipulateAndSet(q,Kt.hours,-1);break;case Ee.decrementMinutes:this.manipulateAndSet(q,Kt.minutes,this.optionsStore.options.stepping*-1);break;case Ee.decrementSeconds:this.manipulateAndSet(q,Kt.seconds,-1);break;case Ee.toggleMeridiem:this.manipulateAndSet(q,Kt.hours,this.dates.lastPicked.hours>=12?-12:12);break;case Ee.togglePicker:this.handleToggle(Y);break;case Ee.showClock:case Ee.showHours:case Ee.showMinutes:case Ee.showSeconds:!this.optionsStore.options.display.sideBySide&&this.optionsStore.currentView!=="clock"&&(SA.hideImmediately(this.display.dateContainer),SA.showImmediately(this.display.timeContainer)),this.handleShowClockContainers(O);break;case Ee.clear:this.dates.setValue(null),this.display._updateCalendarHeader();break;case Ee.close:this.display.hide();break;case Ee.today:{const Yt=new sr().setLocalization(this.optionsStore.options.localization);this._eventEmitters.updateViewDate.emit(Yt),this.validation.isValid(Yt,Kt.date)&&this.dates.setValue(Yt,this.dates.lastPickedIndex);break}}}handleShowClockContainers(Q){if(!this.display._hasTime){Et.errorMessages.throwError("Cannot show clock containers when time is disabled.");return}this.optionsStore.currentView="clock",this.display.widget.querySelectorAll(`.${Et.css.timeContainer} > div`).forEach(Y=>Y.style.display="none");let O="";switch(Q){case Ee.showClock:O=Et.css.clockContainer,this.display._update("clock");break;case Ee.showHours:O=Et.css.hourContainer,this.display._update(Kt.hours);break;case Ee.showMinutes:O=Et.css.minuteContainer,this.display._update(Kt.minutes);break;case Ee.showSeconds:O=Et.css.secondContainer,this.display._update(Kt.seconds);break}this.display.widget.getElementsByClassName(O)[0].style.display="grid"}handleNextPrevious(Q){const{unit:O,step:Y}=Id[this.optionsStore.currentCalendarViewMode];Q===Ee.next?this.optionsStore.viewDate.manipulate(Y,O):this.optionsStore.viewDate.manipulate(Y*-1,O),this._eventEmitters.viewUpdate.emit(),this.display._showMode()}hideOrClock(Q){!this.optionsStore.isTwelveHour&&!this.optionsStore.options.display.components.minutes&&!this.optionsStore.options.display.keepOpen&&!this.optionsStore.options.display.inline?this.display.hide():this.do(Q,Ee.showClock)}manipulateAndSet(Q,O,Y=1){const q=Q.manipulate(Y,O);this.validation.isValid(q,O)&&this.dates.setValue(q,this.dates.lastPickedIndex)}handleSelectCalendarMode(Q,O){const Y=+O.dataset.value;switch(Q){case Ee.selectMonth:this.optionsStore.viewDate.month=Y;break;case Ee.selectYear:case Ee.selectDecade:this.optionsStore.viewDate.year=Y;break}this.optionsStore.currentCalendarViewMode===this.optionsStore.minimumCalendarViewMode?(this.dates.setValue(this.optionsStore.viewDate,this.dates.lastPickedIndex),this.optionsStore.options.display.inline||this.display.hide()):this.display._showMode(-1)}handleToggle(Q){Q.getAttribute("title")===this.optionsStore.options.localization.selectDate?(Q.setAttribute("title",this.optionsStore.options.localization.selectTime),Q.innerHTML=this.display._iconTag(this.optionsStore.options.display.icons.time).outerHTML,this.display._updateCalendarHeader(),this.optionsStore.refreshCurrentView()):(Q.setAttribute("title",this.optionsStore.options.localization.selectDate),Q.innerHTML=this.display._iconTag(this.optionsStore.options.display.icons.date).outerHTML,this.display._hasTime&&(this.handleShowClockContainers(Ee.showClock),this.display._update("clock"))),this.display.widget.querySelectorAll(`.${Et.css.dateContainer}, .${Et.css.timeContainer}`).forEach(O=>SA.toggle(O)),this._eventEmitters.viewUpdate.emit()}handleSelectDay(Q){const O=this.optionsStore.viewDate.clone;Q.classList.contains(Et.css.old)&&O.manipulate(-1,Kt.month),Q.classList.contains(Et.css.new)&&O.manipulate(1,Kt.month),O.date=+Q.dataset.day,this.optionsStore.options.dateRange?this.handleDateRange(O):this.optionsStore.options.multipleDates?this.handleMultiDate(O):this.dates.setValue(O,this.dates.lastPickedIndex),!this.display._hasTime&&!this.optionsStore.options.display.keepOpen&&!this.optionsStore.options.display.inline&&!this.optionsStore.options.multipleDates&&!this.optionsStore.options.dateRange&&this.display.hide()}handleMultiDate(Q){let O=this.dates.pickedIndex(Q,Kt.date);console.log(O),O!==-1?this.dates.setValue(null,O):(O=this.dates.lastPickedIndex+1,this.dates.picked.length===0&&(O=0),this.dates.setValue(Q,O))}handleDateRange(Q){switch(this.dates.picked.length){case 2:{this.dates.clear();break}case 1:{const O=this.dates.picked[0];if(Q.getTime()===O.getTime()){this.dates.clear();break}if(Q.isBefore(O)){this.dates.setValue(Q,0),this.dates.setValue(O,1);return}else{this.dates.setValue(Q,1);return}}}this.dates.setValue(Q,0)}}class e7{constructor(Q,O={}){this._subscribers={},this._isDisabled=!1,this._inputChangeEvent=Y=>{if(Y==null?void 0:Y.detail)return;const gt=()=>{this.dates.lastPicked&&(this.optionsStore.viewDate=this.dates.lastPicked.clone)},It=this.optionsStore.input.value;if(this.optionsStore.options.multipleDates||this.optionsStore.options.dateRange)try{const Yt=It.split(this.optionsStore.options.multipleDatesSeparator);for(let ae=0;ae{var Y,q,gt;((Y=this.optionsStore.element)==null?void 0:Y.disabled)||((q=this.optionsStore.input)==null?void 0:q.disabled)||this._toggle.nodeName==="INPUT"&&((gt=this._toggle)==null?void 0:gt.type)==="text"&&this.optionsStore.options.allowInputToggle||this.toggle()},this._openClickEvent=()=>{var Y,q;((Y=this.optionsStore.element)==null?void 0:Y.disabled)||((q=this.optionsStore.input)==null?void 0:q.disabled)||this.display.isVisible||this.show()},uH(),this._eventEmitters=An.locate(ev),this.optionsStore=An.locate(xo),this.display=An.locate(p7),this.dates=An.locate(El),this.actions=An.locate(EH),Q||Et.errorMessages.mustProvideElement(),this.optionsStore.element=Q,this._initializeOptions(O,wm,!0),this.optionsStore.viewDate.setLocalization(this.optionsStore.options.localization),this.optionsStore.unset=!0,this._initializeInput(),this._initializeToggle(),this.optionsStore.options.display.inline&&this.display.show(),this._eventEmitters.triggerEvent.subscribe(Y=>{this._triggerEvent(Y)}),this._eventEmitters.viewUpdate.subscribe(()=>{this._viewUpdate()}),this._eventEmitters.updateViewDate.subscribe(Y=>{this.viewDate=Y})}get viewDate(){return this.optionsStore.viewDate}set viewDate(Q){this.optionsStore.viewDate=Q,this.optionsStore.viewDate.setLocalization(this.optionsStore.options.localization),this.display._update(this.optionsStore.currentView==="clock"?"clock":"calendar")}updateOptions(Q,O=!1){O?this._initializeOptions(Q,wm):this._initializeOptions(Q,this.optionsStore.options),this.optionsStore.viewDate.setLocalization(this.optionsStore.options.localization),this.display.refreshCurrentView()}toggle(){this._isDisabled||this.display.toggle()}show(){this._isDisabled||this.display.show()}hide(){this.display.hide()}disable(){var Q;this._isDisabled=!0,(Q=this.optionsStore.input)==null||Q.setAttribute("disabled","disabled"),this.display.hide()}enable(){var Q;this._isDisabled=!1,(Q=this.optionsStore.input)==null||Q.removeAttribute("disabled")}clear(){this.optionsStore.input.value="",this.dates.clear()}subscribe(Q,O){typeof Q=="string"&&(Q=[Q]);let Y;Array.isArray(O)?Y=O:Y=[O],Q.length!==Y.length&&Et.errorMessages.subscribeMismatch();const q=[];for(let gt=0;gt{O(Q)})}_viewUpdate(){this._triggerEvent({type:Et.events.update,viewDate:this.optionsStore.viewDate.clone})}_unsubscribe(Q,O){this._subscribers[Q].splice(O,1)}_initializeOptions(Q,O,Y=!1){var gt;let q=Xi.deepCopy(Q);q=Xi._mergeOptions(q,O),Y&&(q=Xi._dataToOptions(this.optionsStore.element,q)),Xi._validateConflicts(q),q.viewDate=q.viewDate.setLocalization(q.localization),this.optionsStore.viewDate.isSame(q.viewDate)||(this.optionsStore.viewDate=q.viewDate),q.display.components.year&&(this.optionsStore.minimumCalendarViewMode=2),q.display.components.month&&(this.optionsStore.minimumCalendarViewMode=1),q.display.components.date&&(this.optionsStore.minimumCalendarViewMode=0),this.optionsStore.currentCalendarViewMode=Math.max(this.optionsStore.minimumCalendarViewMode,this.optionsStore.currentCalendarViewMode),Id[this.optionsStore.currentCalendarViewMode].name!==q.display.viewMode&&(this.optionsStore.currentCalendarViewMode=Math.max(Id.findIndex(It=>It.name===q.display.viewMode),this.optionsStore.minimumCalendarViewMode)),(gt=this.display)!=null&>.isVisible&&this.display._update("all"),q.display.components.useTwentyfourHour&&q.localization.hourCycle===void 0?q.localization.hourCycle="h24":q.localization.hourCycle===void 0&&(q.localization.hourCycle=l7(q.localization.locale)),this.optionsStore.options=q,q.restrictions.maxDate&&this.viewDate.isAfter(q.restrictions.maxDate)&&(this.viewDate=q.restrictions.maxDate),q.restrictions.minDate&&this.viewDate.isBefore(q.restrictions.minDate)&&(this.viewDate=q.restrictions.minDate)}_initializeInput(){if(this.optionsStore.element.tagName=="INPUT")this.optionsStore.input=this.optionsStore.element;else{const Q=this.optionsStore.element.dataset.tdTargetInput;Q==null||Q=="nearest"?this.optionsStore.input=this.optionsStore.element.querySelector("input"):this.optionsStore.input=this.optionsStore.element.querySelector(Q)}!this.optionsStore.input||(!this.optionsStore.input.value&&this.optionsStore.options.defaultDate&&(this.optionsStore.input.value=this.dates.formatInput(this.optionsStore.options.defaultDate)),this.optionsStore.input.addEventListener("change",this._inputChangeEvent),this.optionsStore.options.allowInputToggle&&(this.optionsStore.input.addEventListener("click",this._openClickEvent),this.optionsStore.input.addEventListener("focus",this._openClickEvent)),this.optionsStore.input.value&&this._inputChangeEvent())}_initializeToggle(){if(this.optionsStore.options.display.inline)return;let Q=this.optionsStore.element.dataset.tdTargetToggle;Q=="nearest"&&(Q='[data-td-toggle="datetimepicker"]'),this._toggle=Q==null?this.optionsStore.element:this.optionsStore.element.querySelector(Q),this._toggle.addEventListener("click",this._toggleClickEvent)}_handleAfterChangeEvent(Q){var O,Y;!this.optionsStore.options.promptTimeOnDateChange||this.optionsStore.options.multipleDates||this.optionsStore.options.display.inline||this.optionsStore.options.display.sideBySide||!this.display._hasTime||((O=this.display.widget)==null?void 0:O.getElementsByClassName(Et.css.show)[0].classList.contains(Et.css.timeContainer))||!Q.oldDate&&this.optionsStore.options.useCurrent||Q.oldDate&&((Y=Q.date)==null?void 0:Y.isSame(Q.oldDate))||(clearTimeout(this._currentPromptTimeTimeout),this._currentPromptTimeTimeout=setTimeout(()=>{this.display.widget&&this._eventEmitters.action.emit({e:{currentTarget:this.display.widget.querySelector('[data-action="togglePicker"]')},action:Ee.togglePicker})},this.optionsStore.options.promptTimeOnDateChangeTransitionDelay))}}const CH={};var Em={exports:{}};/* @preserve * Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com * (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade */(function(Lt,Q){(function(O,Y){Y(Q)})(J2,function(O){var Y="1.9.4";function q(s){var d,T,k,R;for(T=1,k=arguments.length;T"u"||!L||!L.Mixin)){s=Ao(s)?s:[s];for(var d=0;d0?Math.floor(s):Math.ceil(s)};ln.prototype={clone:function(){return new ln(this.x,this.y)},add:function(s){return this.clone()._add(Ve(s))},_add:function(s){return this.x+=s.x,this.y+=s.y,this},subtract:function(s){return this.clone()._subtract(Ve(s))},_subtract:function(s){return this.x-=s.x,this.y-=s.y,this},divideBy:function(s){return this.clone()._divideBy(s)},_divideBy:function(s){return this.x/=s,this.y/=s,this},multiplyBy:function(s){return this.clone()._multiplyBy(s)},_multiplyBy:function(s){return this.x*=s,this.y*=s,this},scaleBy:function(s){return new ln(this.x*s.x,this.y*s.y)},unscaleBy:function(s){return new ln(this.x/s.x,this.y/s.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=Cm(this.x),this.y=Cm(this.y),this},distanceTo:function(s){s=Ve(s);var d=s.x-this.x,T=s.y-this.y;return Math.sqrt(d*d+T*T)},equals:function(s){return s=Ve(s),s.x===this.x&&s.y===this.y},contains:function(s){return s=Ve(s),Math.abs(s.x)<=Math.abs(this.x)&&Math.abs(s.y)<=Math.abs(this.y)},toString:function(){return"Point("+er(this.x)+", "+er(this.y)+")"}};function Ve(s,d,T){return s instanceof ln?s:Ao(s)?new ln(s[0],s[1]):s==null?s:typeof s=="object"&&"x"in s&&"y"in s?new ln(s.x,s.y):new ln(s,d,T)}function Sn(s,d){if(!!s)for(var T=d?[s,d]:s,k=0,R=T.length;k=this.min.x&&T.x<=this.max.x&&d.y>=this.min.y&&T.y<=this.max.y},intersects:function(s){s=wn(s);var d=this.min,T=this.max,k=s.min,R=s.max,et=R.x>=d.x&&k.x<=T.x,yt=R.y>=d.y&&k.y<=T.y;return et&&yt},overlaps:function(s){s=wn(s);var d=this.min,T=this.max,k=s.min,R=s.max,et=R.x>d.x&&k.xd.y&&k.y=d.lat&&R.lat<=T.lat&&k.lng>=d.lng&&R.lng<=T.lng},intersects:function(s){s=Vr(s);var d=this._southWest,T=this._northEast,k=s.getSouthWest(),R=s.getNorthEast(),et=R.lat>=d.lat&&k.lat<=T.lat,yt=R.lng>=d.lng&&k.lng<=T.lng;return et&&yt},overlaps:function(s){s=Vr(s);var d=this._southWest,T=this._northEast,k=s.getSouthWest(),R=s.getNorthEast(),et=R.lat>d.lat&&k.latd.lng&&k.lng1,Mm=function(){var s=!1;try{var d=Object.defineProperty({},"passive",{get:function(){s=!0}});window.addEventListener("testPassiveEventSupport",Ue,d),window.removeEventListener("testPassiveEventSupport",Ue,d)}catch{}return s}(),Nm=function(){return!!document.createElement("canvas").getContext}(),Pa=!!(document.createElementNS&&_m("svg").createSVGRect),lv=!!Pa&&function(){var s=document.createElement("div");return s.innerHTML="",(s.firstChild&&s.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),Fc=!Pa&&function(){try{var s=document.createElement("div");s.innerHTML='';var d=s.firstChild;return d.style.behavior="url(#default#VML)",d&&typeof d.adj=="object"}catch{return!1}}(),cv=navigator.platform.indexOf("Mac")===0,uv=navigator.platform.indexOf("Linux")===0;function Qo(s){return navigator.userAgent.toLowerCase().indexOf(s)>=0}var He={ie:Ys,ielt9:iv,edge:kn,webkit:Cl,android:Bm,android23:Sm,androidStock:Zs,opera:Lo,chrome:xm,gecko:ia,safari:av,phantom:We,opera12:Im,win:ov,ie3d:Lm,webkit3d:IA,gecko3d:_l,any3d:LA,mobile:Bl,mobileWebkit:sv,mobileWebkit3d:ur,msPointer:Qm,pointer:Dm,touch:QA,touchNative:Fm,mobileOpera:Md,mobileGecko:Av,retina:g1,passiveEvents:Mm,canvas:Nm,svg:Pa,vml:Fc,inlineSvg:lv,mac:cv,linux:uv},Nd=He.msPointer?"MSPointerDown":"pointerdown",Om=He.msPointer?"MSPointerMove":"pointermove",Xr=He.msPointer?"MSPointerUp":"pointerup",Od=He.msPointer?"MSPointerCancel":"pointercancel",Ud={touchstart:Nd,touchmove:Om,touchend:Xr,touchcancel:Od},Um={touchstart:Di,touchmove:fi,touchend:fi,touchcancel:fi},mn={},Hm=!1;function Hd(s,d,T){return d==="touchstart"&&dv(),Um[d]?(T=Um[d].bind(this,T),s.addEventListener(Ud[d],T,!1),T):(console.warn("wrong event specified:",d),Ue)}function hv(s,d,T){if(!Ud[d]){console.warn("wrong event specified:",d);return}s.removeEventListener(Ud[d],T,!1)}function Rd(s){mn[s.pointerId]=s}function Pd(s){mn[s.pointerId]&&(mn[s.pointerId]=s)}function v1(s){delete mn[s.pointerId]}function dv(){Hm||(document.addEventListener(Nd,Rd,!0),document.addEventListener(Om,Pd,!0),document.addEventListener(Xr,v1,!0),document.addEventListener(Od,v1,!0),Hm=!0)}function fi(s,d){if(d.pointerType!==(d.MSPOINTER_TYPE_MOUSE||"mouse")){d.touches=[];for(var T in mn)d.touches.push(mn[T]);d.changedTouches=[d],s(d)}}function Di(s,d){d.MSPOINTER_TYPE_TOUCH&&d.pointerType===d.MSPOINTER_TYPE_TOUCH&&ci(d),fi(s,d)}function fv(s){var d={},T,k;for(k in s)T=s[k],d[k]=T&&T.bind?T.bind(s):T;return s=d,d.type="dblclick",d.detail=2,d.isTrusted=!1,d._simulated=!0,d}var pv=200;function de(s,d){s.addEventListener("dblclick",d);var T=0,k;function R(et){if(et.detail!==1){k=et.detail;return}if(!(et.pointerType==="mouse"||et.sourceCapabilities&&!et.sourceCapabilities.firesTouchEvents)){var yt=Yd(et);if(!(yt.some(function(Ut){return Ut instanceof HTMLLabelElement&&Ut.attributes.for})&&!yt.some(function(Ut){return Ut instanceof HTMLInputElement||Ut instanceof HTMLSelectElement}))){var Qt=Date.now();Qt-T<=pv?(k++,k===2&&d(fv(et))):k=1,T=Qt}}}return s.addEventListener("click",R),{dblclick:d,simDblclick:R}}function Js(s,d){s.removeEventListener("dblclick",d.dblclick),s.removeEventListener("click",d.simDblclick)}var y1=C1(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Mc=C1(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),Rm=Mc==="webkitTransition"||Mc==="OTransition"?Mc+"End":"transitionend";function b1(s){return typeof s=="string"?document.getElementById(s):s}function DA(s,d){var T=s.style[d]||s.currentStyle&&s.currentStyle[d];if((!T||T==="auto")&&document.defaultView){var k=document.defaultView.getComputedStyle(s,null);T=k?k[d]:null}return T==="auto"?null:T}function Un(s,d,T){var k=document.createElement(s);return k.className=d||"",T&&T.appendChild(k),k}function hr(s){var d=s.parentNode;d&&d.removeChild(s)}function T1(s){for(;s.firstChild;)s.removeChild(s.firstChild)}function Sl(s){var d=s.parentNode;d&&d.lastChild!==s&&d.appendChild(s)}function kl(s){var d=s.parentNode;d&&d.firstChild!==s&&d.insertBefore(s,d.firstChild)}function us(s,d){if(s.classList!==void 0)return s.classList.contains(d);var T=E1(s);return T.length>0&&new RegExp("(^|\\s)"+d+"(\\s|$)").test(T)}function Tn(s,d){if(s.classList!==void 0)for(var T=Nn(d),k=0,R=T.length;k0?2*window.devicePixelRatio:1;function x1(s){return He.edge?s.wheelDeltaY/2:s.deltaY&&s.deltaMode===0?-s.deltaY/Zd:s.deltaY&&s.deltaMode===1?-s.deltaY*20:s.deltaY&&s.deltaMode===2?-s.deltaY*60:s.deltaX||s.deltaZ?0:s.wheelDelta?(s.wheelDeltaY||s.wheelDelta)/2:s.detail&&Math.abs(s.detail)<32765?-s.detail*20:s.detail?s.detail/-32765*60:0}function I1(s,d){var T=d.relatedTarget;if(!T)return!0;try{for(;T&&T!==s;)T=T.parentNode}catch{return!1}return T!==s}var Jd={__proto__:null,on:Pe,off:nr,stopPropagation:Fo,disableScrollPropagation:co,disableClickPropagation:Nc,preventDefault:ci,stop:ds,getPropagationPath:Yd,getMousePosition:Oc,getWheelDelta:x1,isExternalTarget:I1,addListener:Pe,removeListener:nr},qd=Dc.extend({run:function(s,d,T,k){this.stop(),this._el=s,this._inProgress=!0,this._duration=T||.25,this._easeOutPower=1/Math.max(k||.5,.2),this._startPos=qs(s),this._offset=d.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){!this._inProgress||(this._step(!0),this._complete())},_animate:function(){this._animId=di(this._animate,this),this._step()},_step:function(s){var d=+new Date-this._startTime,T=this._duration*1e3;dthis.options.maxZoom)?this.setZoom(s):this},panInsideBounds:function(s,d){this._enforcingBounds=!0;var T=this.getCenter(),k=this._limitCenter(T,this._zoom,Vr(s));return T.equals(k)||this.panTo(k,d),this._enforcingBounds=!1,this},panInside:function(s,d){d=d||{};var T=Ve(d.paddingTopLeft||d.padding||[0,0]),k=Ve(d.paddingBottomRight||d.padding||[0,0]),R=this.project(this.getCenter()),et=this.project(s),yt=this.getPixelBounds(),Qt=wn([yt.min.add(T),yt.max.subtract(k)]),Ut=Qt.getSize();if(!Qt.contains(et)){this._enforcingBounds=!0;var ee=et.subtract(Qt.getCenter()),Be=Qt.extend(et).getSize().subtract(Ut);R.x+=ee.x<0?-Be.x:Be.x,R.y+=ee.y<0?-Be.y:Be.y,this.panTo(this.unproject(R),d),this._enforcingBounds=!1}return this},invalidateSize:function(s){if(!this._loaded)return this;s=q({animate:!1,pan:!0},s===!0?{animate:!0}:s);var d=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var T=this.getSize(),k=d.divideBy(2).round(),R=T.divideBy(2).round(),et=k.subtract(R);return!et.x&&!et.y?this:(s.animate&&s.pan?this.panBy(et):(s.pan&&this._rawPanBy(et),this.fire("move"),s.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(It(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:d,newSize:T}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(s){if(s=this._locateOptions=q({timeout:1e4,watch:!1},s),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var d=It(this._handleGeolocationResponse,this),T=It(this._handleGeolocationError,this);return s.watch?this._locationWatchId=navigator.geolocation.watchPosition(d,T,s):navigator.geolocation.getCurrentPosition(d,T,s),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(s){if(!!this._container._leaflet_id){var d=s.code,T=s.message||(d===1?"permission denied":d===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:d,message:"Geolocation error: "+T+"."})}},_handleGeolocationResponse:function(s){if(!!this._container._leaflet_id){var d=s.coords.latitude,T=s.coords.longitude,k=new cn(d,T),R=k.toBounds(s.coords.accuracy*2),et=this._locateOptions;if(et.setView){var yt=this.getBoundsZoom(R);this.setView(k,et.maxZoom?Math.min(yt,et.maxZoom):yt)}var Qt={latlng:k,bounds:R,timestamp:s.timestamp};for(var Ut in s.coords)typeof s.coords[Ut]=="number"&&(Qt[Ut]=s.coords[Ut]);this.fire("locationfound",Qt)}},addHandler:function(s,d){if(!d)return this;var T=this[s]=new d(this);return this._handlers.push(T),this.options[s]&&T.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch{this._container._leaflet_id=void 0,this._containerId=void 0}this._locationWatchId!==void 0&&this.stopLocate(),this._stop(),hr(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(gr(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var s;for(s in this._layers)this._layers[s].remove();for(s in this._panes)hr(this._panes[s]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(s,d){var T="leaflet-pane"+(s?" leaflet-"+s.replace("Pane","")+"-pane":""),k=Un("div",T,d||this._mapPane);return s&&(this._panes[s]=k),k},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var s=this.getPixelBounds(),d=this.unproject(s.getBottomLeft()),T=this.unproject(s.getTopRight());return new Re(d,T)},getMinZoom:function(){return this.options.minZoom===void 0?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===void 0?this._layersMaxZoom===void 0?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(s,d,T){s=Vr(s),T=Ve(T||[0,0]);var k=this.getZoom()||0,R=this.getMinZoom(),et=this.getMaxZoom(),yt=s.getNorthWest(),Qt=s.getSouthEast(),Ut=this.getSize().subtract(T),ee=wn(this.project(Qt,k),this.project(yt,k)).getSize(),Be=He.any3d?this.options.zoomSnap:1,je=Ut.x/ee.x,En=Ut.y/ee.y,Mi=d?Math.max(je,En):Math.min(je,En);return k=this.getScaleZoom(Mi,k),Be&&(k=Math.round(k/(Be/100))*(Be/100),k=d?Math.ceil(k/Be)*Be:Math.floor(k/Be)*Be),Math.max(R,Math.min(et,k))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new ln(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(s,d){var T=this._getTopLeftPoint(s,d);return new Sn(T,T.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(s){return this.options.crs.getProjectedBounds(s===void 0?this.getZoom():s)},getPane:function(s){return typeof s=="string"?this._panes[s]:s},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(s,d){var T=this.options.crs;return d=d===void 0?this._zoom:d,T.scale(s)/T.scale(d)},getScaleZoom:function(s,d){var T=this.options.crs;d=d===void 0?this._zoom:d;var k=T.zoom(s*T.scale(d));return isNaN(k)?1/0:k},project:function(s,d){return d=d===void 0?this._zoom:d,this.options.crs.latLngToPoint(Fe(s),d)},unproject:function(s,d){return d=d===void 0?this._zoom:d,this.options.crs.pointToLatLng(Ve(s),d)},layerPointToLatLng:function(s){var d=Ve(s).add(this.getPixelOrigin());return this.unproject(d)},latLngToLayerPoint:function(s){var d=this.project(Fe(s))._round();return d._subtract(this.getPixelOrigin())},wrapLatLng:function(s){return this.options.crs.wrapLatLng(Fe(s))},wrapLatLngBounds:function(s){return this.options.crs.wrapLatLngBounds(Vr(s))},distance:function(s,d){return this.options.crs.distance(Fe(s),Fe(d))},containerPointToLayerPoint:function(s){return Ve(s).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(s){return Ve(s).add(this._getMapPanePos())},containerPointToLatLng:function(s){var d=this.containerPointToLayerPoint(Ve(s));return this.layerPointToLatLng(d)},latLngToContainerPoint:function(s){return this.layerPointToContainerPoint(this.latLngToLayerPoint(Fe(s)))},mouseEventToContainerPoint:function(s){return Oc(s,this._container)},mouseEventToLayerPoint:function(s){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(s))},mouseEventToLatLng:function(s){return this.layerPointToLatLng(this.mouseEventToLayerPoint(s))},_initContainer:function(s){var d=this._container=b1(s);if(d){if(d._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");Pe(d,"scroll",this._onScroll,this),this._containerId=ae(d)},_initLayout:function(){var s=this._container;this._fadeAnimated=this.options.fadeAnimation&&He.any3d,Tn(s,"leaflet-container"+(He.touch?" leaflet-touch":"")+(He.retina?" leaflet-retina":"")+(He.ielt9?" leaflet-oldie":"")+(He.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var d=DA(s,"position");d!=="absolute"&&d!=="relative"&&d!=="fixed"&&d!=="sticky"&&(s.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var s=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),vr(this._mapPane,new ln(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(Tn(s.markerPane,"leaflet-zoom-hide"),Tn(s.shadowPane,"leaflet-zoom-hide"))},_resetView:function(s,d,T){vr(this._mapPane,new ln(0,0));var k=!this._loaded;this._loaded=!0,d=this._limitZoom(d),this.fire("viewprereset");var R=this._zoom!==d;this._moveStart(R,T)._move(s,d)._moveEnd(R),this.fire("viewreset"),k&&this.fire("load")},_moveStart:function(s,d){return s&&this.fire("zoomstart"),d||this.fire("movestart"),this},_move:function(s,d,T,k){d===void 0&&(d=this._zoom);var R=this._zoom!==d;return this._zoom=d,this._lastCenter=s,this._pixelOrigin=this._getNewPixelOrigin(s),k?T&&T.pinch&&this.fire("zoom",T):((R||T&&T.pinch)&&this.fire("zoom",T),this.fire("move",T)),this},_moveEnd:function(s){return s&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return gr(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(s){vr(this._mapPane,this._getMapPanePos().subtract(s))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(s){this._targets={},this._targets[ae(this._container)]=this;var d=s?nr:Pe;d(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&d(window,"resize",this._onResize,this),He.any3d&&this.options.transform3DLimit&&(s?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){gr(this._resizeRequest),this._resizeRequest=di(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var s=this._getMapPanePos();Math.max(Math.abs(s.x),Math.abs(s.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(s,d){for(var T=[],k,R=d==="mouseout"||d==="mouseover",et=s.target||s.srcElement,yt=!1;et;){if(k=this._targets[ae(et)],k&&(d==="click"||d==="preclick")&&this._draggableMoved(k)){yt=!0;break}if(k&&k.listens(d,!0)&&(R&&!I1(et,s)||(T.push(k),R))||et===this._container)break;et=et.parentNode}return!T.length&&!yt&&!R&&this.listens(d,!0)&&(T=[this]),T},_isClickDisabled:function(s){for(;s&&s!==this._container;){if(s._leaflet_disable_click)return!0;s=s.parentNode}},_handleDOMEvent:function(s){var d=s.target||s.srcElement;if(!(!this._loaded||d._leaflet_disable_events||s.type==="click"&&this._isClickDisabled(d))){var T=s.type;T==="mousedown"&&Xd(d),this._fireDOMEvent(s,T)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(s,d,T){if(s.type==="click"){var k=q({},s);k.type="preclick",this._fireDOMEvent(k,k.type,T)}var R=this._findEventTargets(s,d);if(T){for(var et=[],yt=0;yt0?Math.round(s-d)/2:Math.max(0,Math.ceil(s))-Math.max(0,Math.floor(d))},_limitZoom:function(s){var d=this.getMinZoom(),T=this.getMaxZoom(),k=He.any3d?this.options.zoomSnap:1;return k&&(s=Math.round(s/k)*k),Math.max(d,Math.min(T,s))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){kr(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(s,d){var T=this._getCenterOffset(s)._trunc();return(d&&d.animate)!==!0&&!this.getSize().contains(T)?!1:(this.panBy(T,d),!0)},_createAnimProxy:function(){var s=this._proxy=Un("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(s),this.on("zoomanim",function(d){var T=y1,k=this._proxy.style[T];FA(this._proxy,this.project(d.center,d.zoom),this.getZoomScale(d.zoom,1)),k===this._proxy.style[T]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){hr(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var s=this.getCenter(),d=this.getZoom();FA(this._proxy,this.project(s,d),this.getZoomScale(d,1))},_catchTransitionEnd:function(s){this._animatingZoom&&s.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(s,d,T){if(this._animatingZoom)return!0;if(T=T||{},!this._zoomAnimated||T.animate===!1||this._nothingToAnimate()||Math.abs(d-this._zoom)>this.options.zoomAnimationThreshold)return!1;var k=this.getZoomScale(d),R=this._getCenterOffset(s)._divideBy(1-1/k);return T.animate!==!0&&!this.getSize().contains(R)?!1:(di(function(){this._moveStart(!0,T.noMoveStart||!1)._animateZoom(s,d,!0)},this),!0)},_animateZoom:function(s,d,T,k){!this._mapPane||(T&&(this._animatingZoom=!0,this._animateToCenter=s,this._animateToZoom=d,Tn(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:s,zoom:d,noUpdate:k}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(It(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){!this._animatingZoom||(this._mapPane&&kr(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function L1(s,d){return new Dn(s,d)}var xr=ls.extend({options:{position:"topright"},initialize:function(s){an(this,s)},getPosition:function(){return this.options.position},setPosition:function(s){var d=this._map;return d&&d.removeControl(this),this.options.position=s,d&&d.addControl(this),this},getContainer:function(){return this._container},addTo:function(s){this.remove(),this._map=s;var d=this._container=this.onAdd(s),T=this.getPosition(),k=s._controlCorners[T];return Tn(d,"leaflet-control"),T.indexOf("bottom")!==-1?k.insertBefore(d,k.firstChild):k.appendChild(d),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(hr(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(s){this._map&&s&&s.screenX>0&&s.screenY>0&&this._map.getContainer().focus()}}),NA=function(s){return new xr(s)};Dn.include({addControl:function(s){return s.addTo(this),this},removeControl:function(s){return s.remove(),this},_initControlPos:function(){var s=this._controlCorners={},d="leaflet-",T=this._controlContainer=Un("div",d+"control-container",this._container);function k(R,et){var yt=d+R+" "+d+et;s[R+et]=Un("div",yt,T)}k("top","left"),k("top","right"),k("bottom","left"),k("bottom","right")},_clearControlPos:function(){for(var s in this._controlCorners)hr(this._controlCorners[s]);hr(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var Pm=xr.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(s,d,T,k){return T1,this._baseLayersList.style.display=s?"":"none"),this._separator.style.display=d&&s?"":"none",this},_onLayerChange:function(s){this._handlingClick||this._update();var d=this._getLayer(ae(s.target)),T=d.overlay?s.type==="add"?"overlayadd":"overlayremove":s.type==="add"?"baselayerchange":null;T&&this._map.fire(T,d)},_createRadioElement:function(s,d){var T='",k=document.createElement("div");return k.innerHTML=T,k.firstChild},_addItem:function(s){var d=document.createElement("label"),T=this._map.hasLayer(s.layer),k;s.overlay?(k=document.createElement("input"),k.type="checkbox",k.className="leaflet-control-layers-selector",k.defaultChecked=T):k=this._createRadioElement("leaflet-base-layers_"+ae(this),T),this._layerControlInputs.push(k),k.layerId=ae(s.layer),Pe(k,"click",this._onInputClick,this);var R=document.createElement("span");R.innerHTML=" "+s.name;var et=document.createElement("span");d.appendChild(et),et.appendChild(k),et.appendChild(R);var yt=s.overlay?this._overlaysList:this._baseLayersList;return yt.appendChild(d),this._checkDisabledLayers(),d},_onInputClick:function(){if(!this._preventClick){var s=this._layerControlInputs,d,T,k=[],R=[];this._handlingClick=!0;for(var et=s.length-1;et>=0;et--)d=s[et],T=this._getLayer(d.layerId).layer,d.checked?k.push(T):d.checked||R.push(T);for(et=0;et=0;R--)d=s[R],T=this._getLayer(d.layerId).layer,d.disabled=T.options.minZoom!==void 0&&kT.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var s=this._section;this._preventClick=!0,Pe(s,"click",ci),this.expand();var d=this;setTimeout(function(){nr(s,"click",ci),d._preventClick=!1})}}),mv=function(s,d,T){return new Pm(s,d,T)},Q1=xr.extend({options:{position:"topleft",zoomInText:'',zoomInTitle:"Zoom in",zoomOutText:'',zoomOutTitle:"Zoom out"},onAdd:function(s){var d="leaflet-control-zoom",T=Un("div",d+" leaflet-bar"),k=this.options;return this._zoomInButton=this._createButton(k.zoomInText,k.zoomInTitle,d+"-in",T,this._zoomIn),this._zoomOutButton=this._createButton(k.zoomOutText,k.zoomOutTitle,d+"-out",T,this._zoomOut),this._updateDisabled(),s.on("zoomend zoomlevelschange",this._updateDisabled,this),T},onRemove:function(s){s.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(s){!this._disabled&&this._map._zoomthis._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(s.shiftKey?3:1))},_createButton:function(s,d,T,k,R){var et=Un("a",T,k);return et.innerHTML=s,et.href="#",et.title=d,et.setAttribute("role","button"),et.setAttribute("aria-label",d),Nc(et),Pe(et,"click",ds),Pe(et,"click",R,this),Pe(et,"click",this._refocusOnMap,this),et},_updateDisabled:function(){var s=this._map,d="leaflet-disabled";kr(this._zoomInButton,d),kr(this._zoomOutButton,d),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||s._zoom===s.getMinZoom())&&(Tn(this._zoomOutButton,d),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||s._zoom===s.getMaxZoom())&&(Tn(this._zoomInButton,d),this._zoomInButton.setAttribute("aria-disabled","true"))}});Dn.mergeOptions({zoomControl:!0}),Dn.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new Q1,this.addControl(this.zoomControl))});var Km=function(s){return new Q1(s)},tf=xr.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(s){var d="leaflet-control-scale",T=Un("div",d),k=this.options;return this._addScales(k,d+"-line",T),s.on(k.updateWhenIdle?"moveend":"move",this._update,this),s.whenReady(this._update,this),T},onRemove:function(s){s.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(s,d,T){s.metric&&(this._mScale=Un("div",d,T)),s.imperial&&(this._iScale=Un("div",d,T))},_update:function(){var s=this._map,d=s.getSize().y/2,T=s.distance(s.containerPointToLatLng([0,d]),s.containerPointToLatLng([this.options.maxWidth,d]));this._updateScales(T)},_updateScales:function(s){this.options.metric&&s&&this._updateMetric(s),this.options.imperial&&s&&this._updateImperial(s)},_updateMetric:function(s){var d=this._getRoundNum(s),T=d<1e3?d+" m":d/1e3+" km";this._updateScale(this._mScale,T,d/s)},_updateImperial:function(s){var d=s*3.2808399,T,k,R;d>5280?(T=d/5280,k=this._getRoundNum(T),this._updateScale(this._iScale,k+" mi",k/T)):(R=this._getRoundNum(d),this._updateScale(this._iScale,R+" ft",R/d))},_updateScale:function(s,d,T){s.style.width=Math.round(this.options.maxWidth*T)+"px",s.innerHTML=d},_getRoundNum:function(s){var d=Math.pow(10,(Math.floor(s)+"").length-1),T=s/d;return T=T>=10?10:T>=5?5:T>=3?3:T>=2?2:1,d*T}}),Gm=function(s){return new tf(s)},tt='',ef=xr.extend({options:{position:"bottomright",prefix:''+(He.inlineSvg?tt+" ":"")+"Leaflet"},initialize:function(s){an(this,s),this._attributions={}},onAdd:function(s){s.attributionControl=this,this._container=Un("div","leaflet-control-attribution"),Nc(this._container);for(var d in s._layers)s._layers[d].getAttribution&&this.addAttribution(s._layers[d].getAttribution());return this._update(),s.on("layeradd",this._addAttribution,this),this._container},onRemove:function(s){s.off("layeradd",this._addAttribution,this)},_addAttribution:function(s){s.layer.getAttribution&&(this.addAttribution(s.layer.getAttribution()),s.layer.once("remove",function(){this.removeAttribution(s.layer.getAttribution())},this))},setPrefix:function(s){return this.options.prefix=s,this._update(),this},addAttribution:function(s){return s?(this._attributions[s]||(this._attributions[s]=0),this._attributions[s]++,this._update(),this):this},removeAttribution:function(s){return s?(this._attributions[s]&&(this._attributions[s]--,this._update()),this):this},_update:function(){if(!!this._map){var s=[];for(var d in this._attributions)this._attributions[d]&&s.push(d);var T=[];this.options.prefix&&T.push(this.options.prefix),s.length&&T.push(s.join(", ")),this._container.innerHTML=T.join(' ')}}});Dn.mergeOptions({attributionControl:!0}),Dn.addInitHook(function(){this.options.attributionControl&&new ef().addTo(this)});var D1=function(s){return new ef(s)};xr.Layers=Pm,xr.Zoom=Q1,xr.Scale=tf,xr.Attribution=ef,NA.layers=mv,NA.zoom=Km,NA.scale=Gm,NA.attribution=D1;var aa=ls.extend({initialize:function(s){this._map=s},enable:function(){return this._enabled?this:(this._enabled=!0,this.addHooks(),this)},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});aa.addTo=function(s,d){return s.addHandler(d,this),this};var F1={Events:zi},nf=He.touch?"touchstart mousedown":"mousedown",gn=Dc.extend({options:{clickTolerance:3},initialize:function(s,d,T,k){an(this,k),this._element=s,this._dragStartTarget=d||s,this._preventOutline=T},enable:function(){this._enabled||(Pe(this._dragStartTarget,nf,this._onDown,this),this._enabled=!0)},disable:function(){!this._enabled||(gn._dragging===this&&this.finishDrag(!0),nr(this._dragStartTarget,nf,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(s){if(!!this._enabled&&(this._moved=!1,!us(this._element,"leaflet-zoom-anim"))){if(s.touches&&s.touches.length!==1){gn._dragging===this&&this.finishDrag();return}if(!(gn._dragging||s.shiftKey||s.which!==1&&s.button!==1&&!s.touches)&&(gn._dragging=this,this._preventOutline&&Xd(this._element),$d(),tA(),!this._moving)){this.fire("down");var d=s.touches?s.touches[0]:s,T=Do(this._element);this._startPoint=new ln(d.clientX,d.clientY),this._startPos=qs(this._element),this._parentScale=zd(T);var k=s.type==="mousedown";Pe(document,k?"mousemove":"touchmove",this._onMove,this),Pe(document,k?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(s){if(!!this._enabled){if(s.touches&&s.touches.length>1){this._moved=!0;return}var d=s.touches&&s.touches.length===1?s.touches[0]:s,T=new ln(d.clientX,d.clientY)._subtract(this._startPoint);!T.x&&!T.y||Math.abs(T.x)+Math.abs(T.y)et&&(yt=Qt,et=Ut);et>T&&(d[yt]=1,M1(s,d,T,k,yt),M1(s,d,T,yt,R))}function Xm(s,d){for(var T=[s[0]],k=1,R=0,et=s.length;kd&&(T.push(s[k]),R=k);return Rd.max.x&&(T|=2),s.yd.max.y&&(T|=8),T}function vv(s,d){var T=d.x-s.x,k=d.y-s.y;return T*T+k*k}function dr(s,d,T,k){var R=d.x,et=d.y,yt=T.x-R,Qt=T.y-et,Ut=yt*yt+Qt*Qt,ee;return Ut>0&&(ee=((s.x-R)*yt+(s.y-et)*Qt)/Ut,ee>1?(R=T.x,et=T.y):ee>0&&(R+=yt*ee,et+=Qt*ee)),yt=s.x-R,Qt=s.y-et,k?yt*yt+Qt*Qt:new ln(R,et)}function va(s){return!Ao(s[0])||typeof s[0][0]!="object"&&typeof s[0][0]<"u"}function zm(s){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),va(s)}function Wm(s,d){var T,k,R,et,yt,Qt,Ut,ee;if(!s||s.length===0)throw new Error("latlngs not passed");va(s)||(console.warn("latlngs are not flat! Only the first ring will be used"),s=s[0]);var Be=Fe([0,0]),je=Vr(s),En=je.getNorthWest().distanceTo(je.getSouthWest())*je.getNorthEast().distanceTo(je.getNorthWest());En<1700&&(Be=rf(s));var Mi=s.length,ei=[];for(T=0;Tk){Ut=(et-k)/R,ee=[Qt.x-Ut*(Qt.x-yt.x),Qt.y-Ut*(Qt.y-yt.y)];break}var ni=d.unproject(Ve(ee));return Fe([ni.lat+Be.lat,ni.lng+Be.lng])}var jm={__proto__:null,simplify:fs,pointToSegmentDistance:Vm,closestPointOnSegment:gv,clipSegment:xl,_getEdgeIntersection:wi,_getBitCode:ps,_sqClosestPointOnSegment:dr,isFlat:va,_flat:zm,polylineCenter:Wm},uo={project:function(s){return new ln(s.lng,s.lat)},unproject:function(s){return new cn(s.y,s.x)},bounds:new Sn([-180,-90],[180,90])},O1={R:6378137,R_MINOR:6356752314245179e-9,bounds:new Sn([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(s){var d=Math.PI/180,T=this.R,k=s.lat*d,R=this.R_MINOR/T,et=Math.sqrt(1-R*R),yt=et*Math.sin(k),Qt=Math.tan(Math.PI/4-k/2)/Math.pow((1-yt)/(1+yt),et/2);return k=-T*Math.log(Math.max(Qt,1e-10)),new ln(s.lng*d*T,k)},unproject:function(s){for(var d=180/Math.PI,T=this.R,k=this.R_MINOR/T,R=Math.sqrt(1-k*k),et=Math.exp(-s.y/T),yt=Math.PI/2-2*Math.atan(et),Qt=0,Ut=.1,ee;Qt<15&&Math.abs(Ut)>1e-7;Qt++)ee=R*Math.sin(yt),ee=Math.pow((1-ee)/(1+ee),R/2),Ut=Math.PI/2-2*Math.atan(et*ee)-yt,yt+=Ut;return new cn(yt*d,s.x*d/T)}},yv={__proto__:null,LonLat:uo,Mercator:O1,SphericalMercator:p1},Ym=q({},cs,{code:"EPSG:3395",projection:O1,transformation:function(){var s=.5/(Math.PI*O1.R);return Ra(s,.5,-s,.5)}()}),U1=q({},cs,{code:"EPSG:4326",projection:uo,transformation:Ra(1/180,1,-1/180,.5)}),bv=q({},Wi,{projection:uo,transformation:Ra(1,0,-1,0),scale:function(s){return Math.pow(2,s)},zoom:function(s){return Math.log(s)/Math.LN2},distance:function(s,d){var T=d.lng-s.lng,k=d.lat-s.lat;return Math.sqrt(T*T+k*k)},infinite:!0});Wi.Earth=cs,Wi.EPSG3395=Ym,Wi.EPSG3857=ra,Wi.EPSG900913=Dd,Wi.EPSG4326=U1,Wi.Simple=bv;var Ei=Dc.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(s){return s.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(s){return s&&s.removeLayer(this),this},getPane:function(s){return this._map.getPane(s?this.options[s]||s:this.options.pane)},addInteractiveTarget:function(s){return this._map._targets[ae(s)]=this,this},removeInteractiveTarget:function(s){return delete this._map._targets[ae(s)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(s){var d=s.target;if(!!d.hasLayer(this)){if(this._map=d,this._zoomAnimated=d._zoomAnimated,this.getEvents){var T=this.getEvents();d.on(T,this),this.once("remove",function(){d.off(T,this)},this)}this.onAdd(d),this.fire("add"),d.fire("layeradd",{layer:this})}}});Dn.include({addLayer:function(s){if(!s._layerAdd)throw new Error("The provided object is not a Layer.");var d=ae(s);return this._layers[d]?this:(this._layers[d]=s,s._mapToAdd=this,s.beforeAdd&&s.beforeAdd(this),this.whenReady(s._layerAdd,s),this)},removeLayer:function(s){var d=ae(s);return this._layers[d]?(this._loaded&&s.onRemove(this),delete this._layers[d],this._loaded&&(this.fire("layerremove",{layer:s}),s.fire("remove")),s._map=s._mapToAdd=null,this):this},hasLayer:function(s){return ae(s)in this._layers},eachLayer:function(s,d){for(var T in this._layers)s.call(d,this._layers[T]);return this},_addLayers:function(s){s=s?Ao(s)?s:[s]:[];for(var d=0,T=s.length;dthis._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()=2&&d[0]instanceof cn&&d[0].equals(d[T-1])&&d.pop(),d},_setLatLngs:function(s){ya.prototype._setLatLngs.call(this,s),va(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return va(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var s=this._renderer._bounds,d=this.options.weight,T=new ln(d,d);if(s=new Sn(s.min.subtract(T),s.max.add(T)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(s))){if(this.options.noClip){this._parts=this._rings;return}for(var k=0,R=this._rings.length,et;ks.y!=R.y>s.y&&s.x<(R.x-k.x)*(s.y-k.y)/(R.y-k.y)+k.x&&(d=!d);return d||ya.prototype._containsPoint.call(this,s,!0)}});function ho(s,d){return new UA(s,d)}var Yi=ms.extend({initialize:function(s,d){an(this,d),this._layers={},s&&this.addData(s)},addData:function(s){var d=Ao(s)?s:s.features,T,k,R;if(d){for(T=0,k=d.length;T0&&R.push(R[0].slice()),R}function Ql(s,d){return s.feature?q({},s.feature,{geometry:d}):Gc(d)}function Gc(s){return s.type==="Feature"||s.type==="FeatureCollection"?s:{type:"Feature",properties:{},geometry:s}}var fo={toGeoJSON:function(s){return Ql(this,{type:"Point",coordinates:Mo(this.getLatLng(),s)})}};OA.include(fo),Fi.include(fo),Ka.include(fo),ya.include({toGeoJSON:function(s){var d=!va(this._latlngs),T=Kc(this._latlngs,d?1:0,!1,s);return Ql(this,{type:(d?"Multi":"")+"LineString",coordinates:T})}}),UA.include({toGeoJSON:function(s){var d=!va(this._latlngs),T=d&&!va(this._latlngs[0]),k=Kc(this._latlngs,T?2:d?1:0,!0,s);return d||(k=[k]),Ql(this,{type:(T?"Multi":"")+"Polygon",coordinates:k})}}),Il.include({toMultiPoint:function(s){var d=[];return this.eachLayer(function(T){d.push(T.toGeoJSON(s).geometry.coordinates)}),Ql(this,{type:"MultiPoint",coordinates:d})},toGeoJSON:function(s){var d=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(d==="MultiPoint")return this.toMultiPoint(s);var T=d==="GeometryCollection",k=[];return this.eachLayer(function(R){if(R.toGeoJSON){var et=R.toGeoJSON(s);if(T)k.push(et.geometry);else{var yt=Gc(et);yt.type==="FeatureCollection"?k.push.apply(k,yt.features):k.push(yt)}}}),T?Ql(this,{geometries:k,type:"GeometryCollection"}):{type:"FeatureCollection",features:k}}});function Dl(s,d){return new Yi(s,d)}var wv=Dl,Fl=Ei.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(s,d,T){this._url=s,this._bounds=Vr(d),an(this,T)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(Tn(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){hr(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(s){return this.options.opacity=s,this._image&&this._updateOpacity(),this},setStyle:function(s){return s.opacity&&this.setOpacity(s.opacity),this},bringToFront:function(){return this._map&&Sl(this._image),this},bringToBack:function(){return this._map&&kl(this._image),this},setUrl:function(s){return this._url=s,this._image&&(this._image.src=s),this},setBounds:function(s){return this._bounds=Vr(s),this._map&&this._reset(),this},getEvents:function(){var s={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(s.zoomanim=this._animateZoom),s},setZIndex:function(s){return this.options.zIndex=s,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var s=this._url.tagName==="IMG",d=this._image=s?this._url:Un("img");if(Tn(d,"leaflet-image-layer"),this._zoomAnimated&&Tn(d,"leaflet-zoom-animated"),this.options.className&&Tn(d,this.options.className),d.onselectstart=Ue,d.onmousemove=Ue,d.onload=It(this.fire,this,"load"),d.onerror=It(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(d.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),s){this._url=d.src;return}d.src=this._url,d.alt=this.options.alt},_animateZoom:function(s){var d=this._map.getZoomScale(s.zoom),T=this._map._latLngBoundsToNewLayerBounds(this._bounds,s.zoom,s.center).min;FA(this._image,T,d)},_reset:function(){var s=this._image,d=new Sn(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),T=d.getSize();vr(s,d.min),s.style.width=T.x+"px",s.style.height=T.y+"px"},_updateOpacity:function(){ga(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var s=this.options.errorOverlayUrl;s&&this._url!==s&&(this._url=s,this._image.src=s)},getCenter:function(){return this._bounds.getCenter()}}),of=function(s,d,T){return new Fl(s,d,T)},P1=Fl.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var s=this._url.tagName==="VIDEO",d=this._image=s?this._url:Un("video");if(Tn(d,"leaflet-image-layer"),this._zoomAnimated&&Tn(d,"leaflet-zoom-animated"),this.options.className&&Tn(d,this.options.className),d.onselectstart=Ue,d.onmousemove=Ue,d.onloadeddata=It(this.fire,this,"load"),s){for(var T=d.getElementsByTagName("source"),k=[],R=0;R0?k:[d.src];return}Ao(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(d.style,"objectFit")&&(d.style.objectFit="fill"),d.autoplay=!!this.options.autoplay,d.loop=!!this.options.loop,d.muted=!!this.options.muted,d.playsInline=!!this.options.playsInline;for(var et=0;etR?(d.height=R+"px",Tn(s,et)):kr(s,et),this._containerWidth=this._container.offsetWidth},_animateZoom:function(s){var d=this._map._latLngToNewLayerPoint(this._latlng,s.zoom,s.center),T=this._getAnchor();vr(this._container,d.add(T))},_adjustPan:function(){if(!!this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var s=this._map,d=parseInt(DA(this._container,"marginBottom"),10)||0,T=this._container.offsetHeight+d,k=this._containerWidth,R=new ln(this._containerLeft,-T-this._containerBottom);R._add(qs(this._container));var et=s.layerPointToContainerPoint(R),yt=Ve(this.options.autoPanPadding),Qt=Ve(this.options.autoPanPaddingTopLeft||yt),Ut=Ve(this.options.autoPanPaddingBottomRight||yt),ee=s.getSize(),Be=0,je=0;et.x+k+Ut.x>ee.x&&(Be=et.x+k-ee.x+Ut.x),et.x-Be-Qt.x<0&&(Be=et.x-Qt.x),et.y+T+Ut.y>ee.y&&(je=et.y+T-ee.y+Ut.y),et.y-je-Qt.y<0&&(je=et.y-Qt.y),(Be||je)&&(this.options.keepInView&&(this._autopanning=!0),s.fire("autopanstart").panBy([Be,je]))}},_getAnchor:function(){return Ve(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),eg=function(s,d){return new $c(s,d)};Dn.mergeOptions({closePopupOnClick:!0}),Dn.include({openPopup:function(s,d,T){return this._initOverlay($c,s,d,T).openOn(this),this},closePopup:function(s){return s=arguments.length?s:this._popup,s&&s.close(),this}}),Ei.include({bindPopup:function(s,d){return this._popup=this._initOverlay($c,this._popup,s,d),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(s){return this._popup&&(this instanceof ms||(this._popup._source=this),this._popup._prepareOpen(s||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return this._popup?this._popup.isOpen():!1},setPopupContent:function(s){return this._popup&&this._popup.setContent(s),this},getPopup:function(){return this._popup},_openPopup:function(s){if(!(!this._popup||!this._map)){ds(s);var d=s.layer||s.target;if(this._popup._source===d&&!(d instanceof ji)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(s.latlng);return}this._popup._source=d,this.openPopup(s.latlng)}},_movePopup:function(s){this._popup.setLatLng(s.latlng)},_onKeyPress:function(s){s.originalEvent.keyCode===13&&this._openPopup(s)}});var Vc=po.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(s){po.prototype.onAdd.call(this,s),this.setOpacity(this.options.opacity),s.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(s){po.prototype.onRemove.call(this,s),s.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var s=po.prototype.getEvents.call(this);return this.options.permanent||(s.preclick=this.close),s},_initLayout:function(){var s="leaflet-tooltip",d=s+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=Un("div",d),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+ae(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(s){var d,T,k=this._map,R=this._container,et=k.latLngToContainerPoint(k.getCenter()),yt=k.layerPointToContainerPoint(s),Qt=this.options.direction,Ut=R.offsetWidth,ee=R.offsetHeight,Be=Ve(this.options.offset),je=this._getAnchor();Qt==="top"?(d=Ut/2,T=ee):Qt==="bottom"?(d=Ut/2,T=0):Qt==="center"?(d=Ut/2,T=ee/2):Qt==="right"?(d=0,T=ee/2):Qt==="left"?(d=Ut,T=ee/2):yt.xthis.options.maxZoom||Tk?this._retainParent(R,et,yt,k):!1)},_retainChildren:function(s,d,T,k){for(var R=2*s;R<2*s+2;R++)for(var et=2*d;et<2*d+2;et++){var yt=new ln(R,et);yt.z=T+1;var Qt=this._tileCoordsToKey(yt),Ut=this._tiles[Qt];if(Ut&&Ut.active){Ut.retain=!0;continue}else Ut&&Ut.loaded&&(Ut.retain=!0);T+1this.options.maxZoom||this.options.minZoom!==void 0&&R1){this._setView(s,T);return}for(var je=R.min.y;je<=R.max.y;je++)for(var En=R.min.x;En<=R.max.x;En++){var Mi=new ln(En,je);if(Mi.z=this._tileZoom,!!this._isValidTile(Mi)){var ei=this._tiles[this._tileCoordsToKey(Mi)];ei?ei.current=!0:yt.push(Mi)}}if(yt.sort(function(ni,iA){return ni.distanceTo(et)-iA.distanceTo(et)}),yt.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var $a=document.createDocumentFragment();for(En=0;EnT.max.x)||!d.wrapLat&&(s.yT.max.y))return!1}if(!this.options.bounds)return!0;var k=this._tileCoordsToBounds(s);return Vr(this.options.bounds).overlaps(k)},_keyToBounds:function(s){return this._tileCoordsToBounds(this._keyToTileCoords(s))},_tileCoordsToNwSe:function(s){var d=this._map,T=this.getTileSize(),k=s.scaleBy(T),R=k.add(T),et=d.unproject(k,s.z),yt=d.unproject(R,s.z);return[et,yt]},_tileCoordsToBounds:function(s){var d=this._tileCoordsToNwSe(s),T=new Re(d[0],d[1]);return this.options.noWrap||(T=this._map.wrapLatLngBounds(T)),T},_tileCoordsToKey:function(s){return s.x+":"+s.y+":"+s.z},_keyToTileCoords:function(s){var d=s.split(":"),T=new ln(+d[0],+d[1]);return T.z=+d[2],T},_removeTile:function(s){var d=this._tiles[s];!d||(hr(d.el),delete this._tiles[s],this.fire("tileunload",{tile:d.el,coords:this._keyToTileCoords(s)}))},_initTile:function(s){Tn(s,"leaflet-tile");var d=this.getTileSize();s.style.width=d.x+"px",s.style.height=d.y+"px",s.onselectstart=Ue,s.onmousemove=Ue,He.ielt9&&this.options.opacity<1&&ga(s,this.options.opacity)},_addTile:function(s,d){var T=this._getTilePos(s),k=this._tileCoordsToKey(s),R=this.createTile(this._wrapCoords(s),It(this._tileReady,this,s));this._initTile(R),this.createTile.length<2&&di(It(this._tileReady,this,s,null,R)),vr(R,T),this._tiles[k]={el:R,coords:s,current:!0},d.appendChild(R),this.fire("tileloadstart",{tile:R,coords:s})},_tileReady:function(s,d,T){d&&this.fire("tileerror",{error:d,tile:T,coords:s});var k=this._tileCoordsToKey(s);T=this._tiles[k],T&&(T.loaded=+new Date,this._map._fadeAnimated?(ga(T.el,0),gr(this._fadeFrame),this._fadeFrame=di(this._updateOpacity,this)):(T.active=!0,this._pruneTiles()),d||(Tn(T.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:T.el,coords:s})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),He.ielt9||!this._map._fadeAnimated?di(this._pruneTiles,this):setTimeout(It(this._pruneTiles,this),250)))},_getTilePos:function(s){return s.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(s){var d=new ln(this._wrapX?Pt(s.x,this._wrapX):s.x,this._wrapY?Pt(s.y,this._wrapY):s.y);return d.z=s.z,d},_pxBoundsToTileRange:function(s){var d=this.getTileSize();return new Sn(s.min.unscaleBy(d).floor(),s.max.unscaleBy(d).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var s in this._tiles)if(!this._tiles[s].loaded)return!1;return!0}});function $1(s){return new Ga(s)}var HA=Ga.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(s,d){this._url=s,d=an(this,d),d.detectRetina&&He.retina&&d.maxZoom>0?(d.tileSize=Math.floor(d.tileSize/2),d.zoomReverse?(d.zoomOffset--,d.minZoom=Math.min(d.maxZoom,d.minZoom+1)):(d.zoomOffset++,d.maxZoom=Math.max(d.minZoom,d.maxZoom-1)),d.minZoom=Math.max(0,d.minZoom)):d.zoomReverse?d.minZoom=Math.min(d.maxZoom,d.minZoom):d.maxZoom=Math.max(d.minZoom,d.maxZoom),typeof d.subdomains=="string"&&(d.subdomains=d.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(s,d){return this._url===s&&d===void 0&&(d=!0),this._url=s,d||this.redraw(),this},createTile:function(s,d){var T=document.createElement("img");return Pe(T,"load",It(this._tileOnLoad,this,d,T)),Pe(T,"error",It(this._tileOnError,this,d,T)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(T.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(T.referrerPolicy=this.options.referrerPolicy),T.alt="",T.src=this.getTileUrl(s),T},getTileUrl:function(s){var d={r:He.retina?"@2x":"",s:this._getSubdomain(s),x:s.x,y:s.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var T=this._globalTileRange.max.y-s.y;this.options.tms&&(d.y=T),d["-y"]=T}return d1(this._url,q(d,this.options))},_tileOnLoad:function(s,d){He.ielt9?setTimeout(It(s,this,null,d),0):s(null,d)},_tileOnError:function(s,d,T){var k=this.options.errorTileUrl;k&&d.getAttribute("src")!==k&&(d.src=k),s(T,d)},_onTileRemove:function(s){s.tile.onload=null},_getZoomForUrl:function(){var s=this._tileZoom,d=this.options.maxZoom,T=this.options.zoomReverse,k=this.options.zoomOffset;return T&&(s=d-s),s+k},_getSubdomain:function(s){var d=Math.abs(s.x+s.y)%this.options.subdomains.length;return this.options.subdomains[d]},_abortLoading:function(){var s,d;for(s in this._tiles)if(this._tiles[s].coords.z!==this._tileZoom&&(d=this._tiles[s].el,d.onload=Ue,d.onerror=Ue,!d.complete)){d.src=_n;var T=this._tiles[s].coords;hr(d),delete this._tiles[s],this.fire("tileabort",{tile:d,coords:T})}},_removeTile:function(s){var d=this._tiles[s];if(!!d)return d.el.setAttribute("src",_n),Ga.prototype._removeTile.call(this,s)},_tileReady:function(s,d,T){if(!(!this._map||T&&T.getAttribute("src")===_n))return Ga.prototype._tileReady.call(this,s,d,T)}});function ig(s,d){return new HA(s,d)}var ag=HA.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(s,d){this._url=s;var T=q({},this.defaultWmsParams);for(var k in d)k in this.options||(T[k]=d[k]);d=an(this,d);var R=d.detectRetina&&He.retina?2:1,et=this.getTileSize();T.width=et.x*R,T.height=et.y*R,this.wmsParams=T},onAdd:function(s){this._crs=this.options.crs||s.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var d=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[d]=this._crs.code,HA.prototype.onAdd.call(this,s)},getTileUrl:function(s){var d=this._tileCoordsToNwSe(s),T=this._crs,k=wn(T.project(d[0]),T.project(d[1])),R=k.min,et=k.max,yt=(this._wmsVersion>=1.3&&this._crs===U1?[R.y,R.x,et.y,et.x]:[R.x,R.y,et.x,et.y]).join(","),Qt=HA.prototype.getTileUrl.call(this,s);return Qt+so(this.wmsParams,Qt,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+yt},setParams:function(s,d){return q(this.wmsParams,s),d||this.redraw(),this}});function Ev(s,d){return new ag(s,d)}HA.WMS=ag,ig.wms=Ev;var vs=Ei.extend({options:{padding:.1},initialize:function(s){an(this,s),ae(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),Tn(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var s={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(s.zoomanim=this._onAnimZoom),s},_onAnimZoom:function(s){this._updateTransform(s.center,s.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(s,d){var T=this._map.getZoomScale(d,this._zoom),k=this._map.getSize().multiplyBy(.5+this.options.padding),R=this._map.project(this._center,d),et=k.multiplyBy(-T).add(R).subtract(this._map._getNewPixelOrigin(s,d));He.any3d?FA(this._container,et,T):vr(this._container,et)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var s in this._layers)this._layers[s]._reset()},_onZoomEnd:function(){for(var s in this._layers)this._layers[s]._project()},_updatePaths:function(){for(var s in this._layers)this._layers[s]._update()},_update:function(){var s=this.options.padding,d=this._map.getSize(),T=this._map.containerPointToLayerPoint(d.multiplyBy(-s)).round();this._bounds=new Sn(T,T.add(d.multiplyBy(1+s*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),Af=vs.extend({options:{tolerance:0},getEvents:function(){var s=vs.prototype.getEvents.call(this);return s.viewprereset=this._onViewPreReset,s},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){vs.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var s=this._container=document.createElement("canvas");Pe(s,"mousemove",this._onMouseMove,this),Pe(s,"click dblclick mousedown mouseup contextmenu",this._onClick,this),Pe(s,"mouseout",this._handleMouseOut,this),s._leaflet_disable_events=!0,this._ctx=s.getContext("2d")},_destroyContainer:function(){gr(this._redrawRequest),delete this._ctx,hr(this._container),nr(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var s;this._redrawBounds=null;for(var d in this._layers)s=this._layers[d],s._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){vs.prototype._update.call(this);var s=this._bounds,d=this._container,T=s.getSize(),k=He.retina?2:1;vr(d,s.min),d.width=k*T.x,d.height=k*T.y,d.style.width=T.x+"px",d.style.height=T.y+"px",He.retina&&this._ctx.scale(2,2),this._ctx.translate(-s.min.x,-s.min.y),this.fire("update")}},_reset:function(){vs.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(s){this._updateDashArray(s),this._layers[ae(s)]=s;var d=s._order={layer:s,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=d),this._drawLast=d,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(s){this._requestRedraw(s)},_removePath:function(s){var d=s._order,T=d.next,k=d.prev;T?T.prev=k:this._drawLast=k,k?k.next=T:this._drawFirst=T,delete s._order,delete this._layers[ae(s)],this._requestRedraw(s)},_updatePath:function(s){this._extendRedrawBounds(s),s._project(),s._update(),this._requestRedraw(s)},_updateStyle:function(s){this._updateDashArray(s),this._requestRedraw(s)},_updateDashArray:function(s){if(typeof s.options.dashArray=="string"){var d=s.options.dashArray.split(/[, ]+/),T=[],k,R;for(R=0;R')}}catch{}return function(s){return document.createElement("<"+s+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),og={_initContainer:function(){this._container=Un("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(vs.prototype._update.call(this),this.fire("update"))},_initPath:function(s){var d=s._container=Ml("shape");Tn(d,"leaflet-vml-shape "+(this.options.className||"")),d.coordsize="1 1",s._path=Ml("path"),d.appendChild(s._path),this._updateStyle(s),this._layers[ae(s)]=s},_addPath:function(s){var d=s._container;this._container.appendChild(d),s.options.interactive&&s.addInteractiveTarget(d)},_removePath:function(s){var d=s._container;hr(d),s.removeInteractiveTarget(d),delete this._layers[ae(s)]},_updateStyle:function(s){var d=s._stroke,T=s._fill,k=s.options,R=s._container;R.stroked=!!k.stroke,R.filled=!!k.fill,k.stroke?(d||(d=s._stroke=Ml("stroke")),R.appendChild(d),d.weight=k.weight+"px",d.color=k.color,d.opacity=k.opacity,k.dashArray?d.dashStyle=Ao(k.dashArray)?k.dashArray.join(" "):k.dashArray.replace(/( *, *)/g," "):d.dashStyle="",d.endcap=k.lineCap.replace("butt","flat"),d.joinstyle=k.lineJoin):d&&(R.removeChild(d),s._stroke=null),k.fill?(T||(T=s._fill=Ml("fill")),R.appendChild(T),T.color=k.fillColor||k.color,T.opacity=k.fillOpacity):T&&(R.removeChild(T),s._fill=null)},_updateCircle:function(s){var d=s._point.round(),T=Math.round(s._radius),k=Math.round(s._radiusY||T);this._setPath(s,s._empty()?"M0 0":"AL "+d.x+","+d.y+" "+T+","+k+" 0,"+65535*360)},_setPath:function(s,d){s._path.v=d},_bringToFront:function(s){Sl(s._container)},_bringToBack:function(s){kl(s._container)}},V1=He.vml?Ml:_m,Xc=vs.extend({_initContainer:function(){this._container=V1("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=V1("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){hr(this._container),nr(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){vs.prototype._update.call(this);var s=this._bounds,d=s.getSize(),T=this._container;(!this._svgSize||!this._svgSize.equals(d))&&(this._svgSize=d,T.setAttribute("width",d.x),T.setAttribute("height",d.y)),vr(T,s.min),T.setAttribute("viewBox",[s.min.x,s.min.y,d.x,d.y].join(" ")),this.fire("update")}},_initPath:function(s){var d=s._path=V1("path");s.options.className&&Tn(d,s.options.className),s.options.interactive&&Tn(d,"leaflet-interactive"),this._updateStyle(s),this._layers[ae(s)]=s},_addPath:function(s){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(s._path),s.addInteractiveTarget(s._path)},_removePath:function(s){hr(s._path),s.removeInteractiveTarget(s._path),delete this._layers[ae(s)]},_updatePath:function(s){s._project(),s._update()},_updateStyle:function(s){var d=s._path,T=s.options;!d||(T.stroke?(d.setAttribute("stroke",T.color),d.setAttribute("stroke-opacity",T.opacity),d.setAttribute("stroke-width",T.weight),d.setAttribute("stroke-linecap",T.lineCap),d.setAttribute("stroke-linejoin",T.lineJoin),T.dashArray?d.setAttribute("stroke-dasharray",T.dashArray):d.removeAttribute("stroke-dasharray"),T.dashOffset?d.setAttribute("stroke-dashoffset",T.dashOffset):d.removeAttribute("stroke-dashoffset")):d.setAttribute("stroke","none"),T.fill?(d.setAttribute("fill",T.fillColor||T.color),d.setAttribute("fill-opacity",T.fillOpacity),d.setAttribute("fill-rule",T.fillRule||"evenodd")):d.setAttribute("fill","none"))},_updatePoly:function(s,d){this._setPath(s,xA(s._parts,d))},_updateCircle:function(s){var d=s._point,T=Math.max(Math.round(s._radius),1),k=Math.max(Math.round(s._radiusY),1)||T,R="a"+T+","+k+" 0 1,0 ",et=s._empty()?"M0 0":"M"+(d.x-T)+","+d.y+R+T*2+",0 "+R+-T*2+",0 ";this._setPath(s,et)},_setPath:function(s,d){s._path.setAttribute("d",d)},_bringToFront:function(s){Sl(s._path)},_bringToBack:function(s){kl(s._path)}});He.vml&&Xc.include(og);function sg(s){return He.svg||He.vml?new Xc(s):null}Dn.include({getRenderer:function(s){var d=s.options.renderer||this._getPaneRenderer(s.options.pane)||this.options.renderer||this._renderer;return d||(d=this._renderer=this._createRenderer()),this.hasLayer(d)||this.addLayer(d),d},_getPaneRenderer:function(s){if(s==="overlayPane"||s===void 0)return!1;var d=this._paneRenderers[s];return d===void 0&&(d=this._createRenderer({pane:s}),this._paneRenderers[s]=d),d},_createRenderer:function(s){return this.options.preferCanvas&&lf(s)||sg(s)}});var cf=UA.extend({initialize:function(s,d){UA.prototype.initialize.call(this,this._boundsToLatLngs(s),d)},setBounds:function(s){return this.setLatLngs(this._boundsToLatLngs(s))},_boundsToLatLngs:function(s){return s=Vr(s),[s.getSouthWest(),s.getNorthWest(),s.getNorthEast(),s.getSouthEast()]}});function Hr(s,d){return new cf(s,d)}Xc.create=V1,Xc.pointsToPath=xA,Yi.geometryToLayer=rA,Yi.coordsToLatLng=Rc,Yi.coordsToLatLngs=Pc,Yi.latLngToCoords=Mo,Yi.latLngsToCoords=Kc,Yi.getFeature=Ql,Yi.asFeature=Gc,Dn.mergeOptions({boxZoom:!0});var Ag=aa.extend({initialize:function(s){this._map=s,this._container=s._container,this._pane=s._panes.overlayPane,this._resetStateTimeout=0,s.on("unload",this._destroy,this)},addHooks:function(){Pe(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){nr(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){hr(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){this._resetStateTimeout!==0&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(s){if(!s.shiftKey||s.which!==1&&s.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),tA(),$d(),this._startPoint=this._map.mouseEventToContainerPoint(s),Pe(document,{contextmenu:ds,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(s){this._moved||(this._moved=!0,this._box=Un("div","leaflet-zoom-box",this._container),Tn(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(s);var d=new Sn(this._point,this._startPoint),T=d.getSize();vr(this._box,d.min),this._box.style.width=T.x+"px",this._box.style.height=T.y+"px"},_finish:function(){this._moved&&(hr(this._box),kr(this._container,"leaflet-crosshair")),eA(),Vd(),nr(document,{contextmenu:ds,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(s){if(!(s.which!==1&&s.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(It(this._resetState,this),0);var d=new Re(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(d).fire("boxzoomend",{boxZoomBounds:d})}},_onKeyDown:function(s){s.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});Dn.addInitHook("addHandler","boxZoom",Ag),Dn.mergeOptions({doubleClickZoom:!0});var Nl=aa.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(s){var d=this._map,T=d.getZoom(),k=d.options.zoomDelta,R=s.originalEvent.shiftKey?T-k:T+k;d.options.doubleClickZoom==="center"?d.setZoom(R):d.setZoomAround(s.containerPoint,R)}});Dn.addInitHook("addHandler","doubleClickZoom",Nl),Dn.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var lg=aa.extend({addHooks:function(){if(!this._draggable){var s=this._map;this._draggable=new gn(s._mapPane,s._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),s.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),s.on("zoomend",this._onZoomEnd,this),s.whenReady(this._onZoomEnd,this))}Tn(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){kr(this._map._container,"leaflet-grab"),kr(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var s=this._map;if(s._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var d=Vr(this._map.options.maxBounds);this._offsetLimit=wn(this._map.latLngToContainerPoint(d.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(d.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;s.fire("movestart").fire("dragstart"),s.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(s){if(this._map.options.inertia){var d=this._lastTime=+new Date,T=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(T),this._times.push(d),this._prunePositions(d)}this._map.fire("move",s).fire("drag",s)},_prunePositions:function(s){for(;this._positions.length>1&&s-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var s=this._map.getSize().divideBy(2),d=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=d.subtract(s).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(s,d){return s-(s-d)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var s=this._draggable._newPos.subtract(this._draggable._startPos),d=this._offsetLimit;s.xd.max.x&&(s.x=this._viscousLimit(s.x,d.max.x)),s.y>d.max.y&&(s.y=this._viscousLimit(s.y,d.max.y)),this._draggable._newPos=this._draggable._startPos.add(s)}},_onPreDragWrap:function(){var s=this._worldWidth,d=Math.round(s/2),T=this._initialWorldOffset,k=this._draggable._newPos.x,R=(k-d+T)%s+d-T,et=(k+d+T)%s-d-T,yt=Math.abs(R+T)0?et:-et))-d;this._delta=0,this._startTime=null,yt&&(s.options.scrollWheelZoom==="center"?s.setZoom(d+yt):s.setZoomAround(this._lastMousePos,d+yt))}});Dn.addInitHook("addHandler","scrollWheelZoom",fr);var Cv=600;Dn.mergeOptions({tapHold:He.touchNative&&He.safari&&He.mobile,tapTolerance:15});var X1=aa.extend({addHooks:function(){Pe(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){nr(this._map._container,"touchstart",this._onDown,this)},_onDown:function(s){if(clearTimeout(this._holdTimeout),s.touches.length===1){var d=s.touches[0];this._startPos=this._newPos=new ln(d.clientX,d.clientY),this._holdTimeout=setTimeout(It(function(){this._cancel(),this._isTapValid()&&(Pe(document,"touchend",ci),Pe(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",d))},this),Cv),Pe(document,"touchend touchcancel contextmenu",this._cancel,this),Pe(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function s(){nr(document,"touchend",ci),nr(document,"touchend touchcancel",s)},_cancel:function(){clearTimeout(this._holdTimeout),nr(document,"touchend touchcancel contextmenu",this._cancel,this),nr(document,"touchmove",this._onMove,this)},_onMove:function(s){var d=s.touches[0];this._newPos=new ln(d.clientX,d.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(s,d){var T=new MouseEvent(s,{bubbles:!0,cancelable:!0,view:window,screenX:d.screenX,screenY:d.screenY,clientX:d.clientX,clientY:d.clientY});T._simulated=!0,d.target.dispatchEvent(T)}});Dn.addInitHook("addHandler","tapHold",X1),Dn.mergeOptions({touchZoom:He.touch,bounceAtZoomLimits:!0});var Ir=aa.extend({addHooks:function(){Tn(this._map._container,"leaflet-touch-zoom"),Pe(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){kr(this._map._container,"leaflet-touch-zoom"),nr(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(s){var d=this._map;if(!(!s.touches||s.touches.length!==2||d._animatingZoom||this._zooming)){var T=d.mouseEventToContainerPoint(s.touches[0]),k=d.mouseEventToContainerPoint(s.touches[1]);this._centerPoint=d.getSize()._divideBy(2),this._startLatLng=d.containerPointToLatLng(this._centerPoint),d.options.touchZoom!=="center"&&(this._pinchStartLatLng=d.containerPointToLatLng(T.add(k)._divideBy(2))),this._startDist=T.distanceTo(k),this._startZoom=d.getZoom(),this._moved=!1,this._zooming=!0,d._stop(),Pe(document,"touchmove",this._onTouchMove,this),Pe(document,"touchend touchcancel",this._onTouchEnd,this),ci(s)}},_onTouchMove:function(s){if(!(!s.touches||s.touches.length!==2||!this._zooming)){var d=this._map,T=d.mouseEventToContainerPoint(s.touches[0]),k=d.mouseEventToContainerPoint(s.touches[1]),R=T.distanceTo(k)/this._startDist;if(this._zoom=d.getScaleZoom(R,this._startZoom),!d.options.bounceAtZoomLimits&&(this._zoomd.getMaxZoom()&&R>1)&&(this._zoom=d._limitZoom(this._zoom)),d.options.touchZoom==="center"){if(this._center=this._startLatLng,R===1)return}else{var et=T._add(k)._divideBy(2)._subtract(this._centerPoint);if(R===1&&et.x===0&&et.y===0)return;this._center=d.unproject(d.project(this._pinchStartLatLng,this._zoom).subtract(et),this._zoom)}this._moved||(d._moveStart(!0,!1),this._moved=!0),gr(this._animRequest);var yt=It(d._move,d,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=di(yt,this,!0),ci(s)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,gr(this._animRequest),nr(document,"touchmove",this._onTouchMove,this),nr(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))}});Dn.addInitHook("addHandler","touchZoom",Ir),Dn.BoxZoom=Ag,Dn.DoubleClickZoom=Nl,Dn.Drag=lg,Dn.Keyboard=cg,Dn.ScrollWheelZoom=fr,Dn.TapHold=X1,Dn.TouchZoom=Ir,O.Bounds=Sn,O.Browser=He,O.CRS=Wi,O.Canvas=Af,O.Circle=Fi,O.CircleMarker=Ka,O.Class=ls,O.Control=xr,O.DivIcon=ng,O.DivOverlay=po,O.DomEvent=Jd,O.DomUtil=Wd,O.Draggable=gn,O.Evented=Dc,O.FeatureGroup=ms,O.GeoJSON=Yi,O.GridLayer=Ga,O.Handler=aa,O.Icon=Ur,O.ImageOverlay=Fl,O.LatLng=cn,O.LatLngBounds=Re,O.Layer=Ei,O.LayerGroup=Il,O.LineUtil=jm,O.Map=Dn,O.Marker=OA,O.Mixin=F1,O.Path=ji,O.Point=ln,O.PolyUtil=Uc,O.Polygon=UA,O.Polyline=ya,O.Popup=$c,O.PosAnimation=qd,O.Projection=yv,O.Rectangle=cf,O.Renderer=vs,O.SVG=Xc,O.SVGOverlay=G1,O.TileLayer=HA,O.Tooltip=Vc,O.Transformation=m1,O.Util=rv,O.VideoOverlay=P1,O.bind=It,O.bounds=wn,O.canvas=lf,O.circle=R1,O.circleMarker=H1,O.control=NA,O.divIcon=rg,O.extend=q,O.featureGroup=Ll,O.geoJSON=Dl,O.geoJson=wv,O.gridLayer=$1,O.icon=gs,O.imageOverlay=of,O.latLng=Fe,O.latLngBounds=Vr,O.layerGroup=Zm,O.map=L1,O.marker=Jm,O.point=Ve,O.polygon=ho,O.polyline=Tv,O.popup=eg,O.rectangle=Hr,O.setOptions=an,O.stamp=ae,O.svg=sg,O.svgOverlay=tg,O.tileLayer=ig,O.tooltip=sf,O.transformation=Ra,O.version=Y,O.videoOverlay=K1;var ug=window.L;O.noConflict=function(){return window.L=ug,this},window.L=O})})(Em,Em.exports);const j3=Em.exports,_H="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKLIsJyv1w/kqw9Ch2MYdB++12Onxee/QMwvf4/Dk/Lfp/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg/Fm91siTra0f9on5sQr9INejH6CUUUpavjFNq1B+Oadhxmnfa8RfEmN8VNAsQhPqF55xHkMzz3jSmChWU6f7/XZKNH+9+hBLOHYozuKQPxyMPUKkrX/K0uWnfFaJGS1QPRtZsOPtr3NsW0uyh6NNCOkU3Yz+bXbT3I8G3xE5EXLXtCXbbqwCO9zPQYPRTZ5vIDXD7U+w7rFDEoUUf7ibHIR4y6bLVPXrz8JVZEql13trxwue/uDivd3fkWRbS6/IA2bID4uk0UpF1N8qLlbBlXs4Ee7HLTfV1j54APvODnSfOWBqtKVvjgLKzF5YdEk5ewRkGlK0i33Eofffc7HT56jD7/6U+qH3Cx7SBLNntH5YIPvODnyfIXZYRVDPqgHtLs5ABHD3YzLuespb7t79FY34DjMwrVrcTuwlT55YMPvOBnRrJ4VXTdNnYug5ucHLBjEpt30701A3Ts+HEa73u6dT3FNWwflY86eMHPk+Yu+i6pzUpRrW7SNDg5JHR4KapmM5Wv2E8Tfcb1HoqqHMHU+uWDD7zg54mz5/2BSnizi9T1Dg4QQXLToGNCkb6tb1NU+QAlGr1++eADrzhn/u8Q2YZhQVlZ5+CAOtqfbhmaUCS1ezNFVm2imDbPmPng5wmz+gwh+oHDce0eUtQ6OGDIyR0uUhUsoO3vfDmmgOezH0mZN59x7MBi++WDL1g/eEiU3avlidO671bkLfwbw5XV2P8Pzo0ydy4t2/0eu33xYSOMOD8hTf4CrBtGMSoXfPLchX+J0ruSePw3LZeK0juPJbYzrhkH0io7B3k164hiGvawhOKMLkrQLyVpZg8rHFW7E2uHOL888IBPlNZ1FPzstSJM694fWr6RwpvcJK60+0HCILTBzZLFNdtAzJaohze60T8qBzyh5ZuOg5e7uwQppofEmf2++DYvmySqGBuKaicF1blQjhuHdvCIMvp8whTTfZzI7RldpwtSzL+F1+wkdZ2TBOW2gIF88PBTzD/gpeREAMEbxnJcaJHNHrpzji0gQCS6hdkEeYt9DF/2qPcEC8RM28Hwmr3sdNyht00byAut2k3gufWNtgtOEOFGUwcXWNDbdNbpgBGxEvKkOQsxivJx33iow0Vw5S6SVTrpVq11ysA2Rp7gTfPfktc6zhtXBBC+adRLshf6sG2RfHPZ5EAc4sVZ83yCN00Fk/4kggu40ZTvIEm5g24qtU4KjBrx/BTTH8ifVASAG7gKrnWxJDcU7x8X6Ecczhm3o6YicvsLXWfh3Ch1W0k8x0nXF+0fFxgt4phz8QvypiwCCFKMqXCnqXExjq10beH+UUA7+nG6mdG/Pu0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII=",BH="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAABSCAMAAAAhFXfZAAAC91BMVEVMaXEzeak2f7I4g7g3g7cua5gzeKg8hJo3grY4g7c3grU0gLI2frE0daAubJc2gbQwd6QzeKk2gLMtd5sxdKIua5g1frA2f7IydaM0e6w2fq41fK01eqo3grgubJgta5cxdKI1f7AydaQydaMxc6EubJgvbJkwcZ4ubZkwcJwubZgubJcydqUydKIxapgubJctbJcubZcubJcvbJYubJcvbZkubJctbJctbZcubJg2f7AubJcrbZcubJcubJcua5g3grY0fq8ubJcubJdEkdEwhsw6i88vhswuhcsuhMtBjMgthMsrg8srgss6is8qgcs8i9A9iMYtg8spgcoogMo7hcMngMonf8olfso4gr8kfck5iM8jfMk4iM8he8k1fro7itAgesk2hs8eecgzfLcofssdeMg0hc4cd8g2hcsxeLQbdsgZdcgxeLImfcszhM0vda4xgckzhM4xg84wf8Yxgs4udKsvfcQucqhUndROmdM1fK0wcZ8vb5w0eqpQm9MzeKhXoNVcpdYydKNWn9VZotVKltJFjsIwcJ1Rms9OlslLmtH///8+kc9epdYzd6dbo9VHkMM2f7FHmNBClM8ydqVcpNY9hro3gLM9hLczealQmcw3fa46f7A8gLMxc6I3eagyc6FIldJMl9JSnNRSntNNl9JPnNJFi75UnM9ZodVKksg8kM45jc09e6ZHltFBk883gbRBh7pDk9EwcaBzn784g7dKkcY2i81Om9M7j85Llc81is09g7Q4grY/j9A0eqxKmdFFltBEjcXf6fFImdBCiLxJl9FGlNFBi78yiMxVndEvbpo6js74+vx+psPP3+o/ks5HkcpGmNCjwdZCkNDM3ehYoNJEls+lxNkxh8xHks0+jdC1zd5Lg6r+/v/H2ufz9/o3jM3t8/edvdM/k89Th61OiLBSjbZklbaTt9BfptdjmL1AicBHj8hGk9FAgK1dkLNTjLRekrdClc/k7fM0icy0y9tgp9c4jc2NtM9Dlc8zicxeXZn3AAAAQ3RSTlMAHDdTb4yPA+LtnEQmC4L2EmHqB7XA0d0sr478x4/Yd5i1zOfyPkf1sLVq4Nh3FvjxopQ2/STNuFzUwFIwxKaejILpIBEV9wAABhVJREFUeF6s1NdyFEcYBeBeoQIhRAkLlRDGrhIgY3BJL8CVeKzuyXFzzjkn5ZxzzuScg3PO8cKzu70JkO0LfxdTU//pM9vTu7Xgf6KqOVTb9X7toRrVEfBf1HTVjZccrT/2by1VV928Yty9ZbVuucdz90frG8DBjl9pVApbOstvmMuvVgaNXSfAAd6pGxpy6yxf5ph43pS/4f3uoaGm2rdu72S9xzOvMymkZFq/ptDrk90mhW7e4zl7HLzhxGWPR20xmSxJ/VqldG5m9XhaVOA1DadsNh3Pu5L2N6QtPO/32JpqQBVVk20oy/Pi2s23WEvyfHbe1thadVQttvm7Llf65gGmXK67XtupyoM7HQhmXdLS8oGWJNeOJ3C5fG5XCEJnkez3/oFdsvgJ4l2ANZwhrJKk/7OSXa+3Vw2WJMlKnGkobouYk6T0TyX30klOUnTD9HJ5qpckL3EW/w4XF3Xd0FGywXUrstrclVsqz5Pd/sXFYyDnPdrLcQODmGOK47IZb4CmibmMn+MYRzFZ5jg33ZL/EJrWcszHmANy3ARBK/IXtciJy8VsitPSdE3uuHxzougojcUdr8/32atnz/ev3f/K5wtpxUTpcaI45zusVDpYtZi+jg0oU9b3x74h7+n9ABvYEZeKaVq0sh0AtLKsFtqNBdeT0MrSzwwlq9+x6xAO4tgOtSzbCjrNQQiNvQUbUEubvzBUeGw26yDCsRHCoLkTHDa7IdOLIThs/gHvChszh2CimE8peRs47cxANI0lYNB5y1DljpOF0IhzBDPOZnDOqYYbeGKECbPzWnXludPphw5c2YBq5zlwXphIbO4VDCZ0gnPfUO1TwZoYwAs2ExPCedAu9DAjfQUjzITQb3jNj0KG2Sgt6BHaQUdYzWz+XmBktOHwanXjaSTcwwziBcuMOtwBmqPrTOxFQR/DRKKPqyur0aiW6cULYsx6tBm0jXpR/AUWR6HRq9WVW6MRhIq5jLyjbaCTDCijyYJNpCajdyobP/eTw0iexBAKkJ3gA5KcQb2zBXsIBckn+xVv8jkZSaEFHE+jFEleAEfayRU0MouNoBmB/L50Ai/HSLIHxcrpCvnhSQAuakKp2C/YbCylJjXRVy/z3+Kv/RrNcCo+WUzlVEhzKffnTQnxeN9fWF88fiNCUdSTsaufaChKWInHeysygfpIqagoakW+vV20J8uyl6TyNKEZWV4oRSPyCkWpgOLSbkCObT8o2r6tlG58HQquf6O0v50tB7JM7F4EORd2dx/K0w/KHsVkLPaoYrwgP/y7krr3SSMA4zj+OBgmjYkxcdIJQyQRKgg2viX9Hddi9UBb29LrKR7CVVEEEXWojUkXNyfTNDE14W9gbHJNuhjDettN3ZvbOvdOqCD3Jp/9l+/wJE+9PkYGjx/fqkys3S2rMozM/o2106rfMUINo6hVqz+eu/hd1c4xTg0TAfy5kV+4UG6+IthHTU9woWmxuKNbTfuCSfovBCxq7EtHqvYL4Sm6F8GVxsSXHMQ07TOi1DKtZxjWaaIyi4CXWjxPccUw8WVbMYY5wxC1mzEyXMJWkllpRloi+Kkoq69sxBTlElF6aAxYUbjXNlhlDZilDnM4U5SlN5biRsRHnbx3mbeWjEh4mEyiuJDl5XcWVmX5GvNkFgLWZM5qwsop4/AWfLhU1cR7k1VVvcYCWRkOI6Xy5gmnphCYIkvzuNYzHzosq2oNk2RtSs8khfUOfHIDgR6ysYBaMpl4uEgk2U/oJTs9AaTSwma7dT69geAE2ZpEjUsn2ieJNHeKfrI3EcAGJ2ZaNgVuC8EBctCLc57P5u5led6IOBkIYkuQMrmmjChs4VkfOerHqSBkPzZlhe06RslZ3zMjk2sscqKwY0RcjKK+LWbzd7KiHhkncs/siFJ+V5eXxD34B8nVuJEpGJNmxN2gH3vSvp7J70tF+D1Ej8qUJD1TkErAND2GZwTFg/LubvmgiBG3SOvdlsqFQrkEzJCL1rstlnVFROixZoDDSuXQFHESwVGlcuQcMb/b42NgjLowh5MTDFE3vNB5qStRIErdCQEh6pLPR92anSUb/wAIhldAaDMpGgAAAABJRU5ErkJggg==",SH="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACkAAAApCAQAAAACach9AAACMUlEQVR4Ae3ShY7jQBAE0Aoz/f9/HTMzhg1zrdKUrJbdx+Kd2nD8VNudfsL/Th///dyQN2TH6f3y/BGpC379rV+S+qqetBOxImNQXL8JCAr2V4iMQXHGNJxeCfZXhSRBcQMfvkOWUdtfzlLgAENmZDcmo2TVmt8OSM2eXxBp3DjHSMFutqS7SbmemzBiR+xpKCNUIRkdkkYxhAkyGoBvyQFEJEefwSmmvBfJuJ6aKqKWnAkvGZOaZXTUgFqYULWNSHUckZuR1HIIimUExutRxwzOLROIG4vKmCKQt364mIlhSyzAf1m9lHZHJZrlAOMMztRRiKimp/rpdJDc9Awry5xTZCte7FHtuS8wJgeYGrex28xNTd086Dik7vUMscQOa8y4DoGtCCSkAKlNwpgNtphjrC6MIHUkR6YWxxs6Sc5xqn222mmCRFzIt8lEdKx+ikCtg91qS2WpwVfBelJCiQJwvzixfI9cxZQWgiSJelKnwBElKYtDOb2MFbhmUigbReQBV0Cg4+qMXSxXSyGUn4UbF8l+7qdSGnTC0XLCmahIgUHLhLOhpVCtw4CzYXvLQWQbJNmxoCsOKAxSgBJno75avolkRw8iIAFcsdc02e9iyCd8tHwmeSSoKTowIgvscSGZUOA7PuCN5b2BX9mQM7S0wYhMNU74zgsPBj3HU7wguAfnxxjFQGBE6pwN+GjME9zHY7zGp8wVxMShYX9NXvEWD3HbwJf4giO4CFIQxXScH1/TM+04kkBiAAAAAElFTkSuQmCC";var q3={exports:{}};(function(Lt,Q){(function(O,Y){Y(Q)})(J2,function(O){var Y=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof J2<"u"?J2:typeof self<"u"?self:{};function q(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function gt(t,e){return t(e={exports:{}},e.exports),e.exports}var It,Yt,ae=function(t){return t&&t.Math==Math&&t},Dt=ae(typeof globalThis=="object"&&globalThis)||ae(typeof window=="object"&&window)||ae(typeof self=="object"&&self)||ae(typeof Y=="object"&&Y)||function(){return this}()||Function("return this")(),Pt=function(t){try{return!!t()}catch{return!0}},Ue=!Pt(function(){var t=function(){}.bind();return typeof t!="function"||t.hasOwnProperty("prototype")}),er=Function.prototype,Qi=er.apply,Nn=er.call,an=typeof Reflect=="object"&&Reflect.apply||(Ue?Nn.bind(Qi):function(){return Nn.apply(Qi,arguments)}),so=Function.prototype,kA=so.bind,d1=so.call,Ao=Ue&&kA.bind(d1,d1),be=Ue?function(t){return t&&Ao(t)}:function(t){return t&&function(){return d1.apply(t,arguments)}},_n=function(t){return typeof t=="function"},Bn=!Pt(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Qc=Function.prototype.call,$e=Ue?Qc.bind(Qc):function(){return Qc.apply(Qc,arguments)},f1={}.propertyIsEnumerable,Ld=Object.getOwnPropertyDescriptor,di={f:Ld&&!f1.call({1:2},1)?function(t){var e=Ld(this,t);return!!e&&e.enumerable}:f1},gr=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},rv=be({}.toString),ls=be("".slice),Io=function(t){return ls(rv(t),8,-1)},zi=Dt.Object,Dc=be("".split),ln=Pt(function(){return!zi("z").propertyIsEnumerable(0)})?function(t){return Io(t)=="String"?Dc(t,""):zi(t)}:zi,Cm=Dt.TypeError,Ve=function(t){if(t==null)throw Cm("Can't call method on "+t);return t},Sn=function(t){return ln(Ve(t))},wn=function(t){return typeof t=="object"?t!==null:_n(t)},Re={},Vr=function(t){return _n(t)?t:void 0},cn=function(t,e){return arguments.length<2?Vr(Re[t])||Vr(Dt[t]):Re[t]&&Re[t][e]||Dt[t]&&Dt[t][e]},Fe=be({}.isPrototypeOf),Wi=cn("navigator","userAgent")||"",cs=Dt.process,Qd=Dt.Deno,p1=cs&&cs.versions||Qd&&Qd.version,m1=p1&&p1.v8;m1&&(Yt=(It=m1.split("."))[0]>0&&It[0]<4?1:+(It[0]+It[1])),!Yt&&Wi&&(!(It=Wi.match(/Edge\/(\d+)/))||It[1]>=74)&&(It=Wi.match(/Chrome\/(\d+)/))&&(Yt=+It[1]);var Ra=Yt,ra=!!Object.getOwnPropertySymbols&&!Pt(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&Ra&&Ra<41}),Dd=ra&&!Symbol.sham&&typeof Symbol.iterator=="symbol",_m=Dt.Object,xA=Dd?function(t){return typeof t=="symbol"}:function(t){var e=cn("Symbol");return _n(e)&&Fe(e.prototype,_m(t))},Fd=Dt.String,Ys=function(t){try{return Fd(t)}catch{return"Object"}},iv=Dt.TypeError,kn=function(t){if(_n(t))return t;throw iv(Ys(t)+" is not a function")},Cl=function(t,e){var n=t[e];return n==null?void 0:kn(n)},Bm=Dt.TypeError,Sm=Object.defineProperty,km="__core-js_shared__",Zs=Dt[km]||function(t,e){try{Sm(Dt,t,{value:e,configurable:!0,writable:!0})}catch{Dt[t]=e}return e}(km,{}),Lo=gt(function(t){(t.exports=function(e,n){return Zs[e]||(Zs[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.22.6",mode:"pure",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.22.6/LICENSE",source:"https://github.com/zloirock/core-js"})}),xm=Dt.Object,ia=function(t){return xm(Ve(t))},av=be({}.hasOwnProperty),We=Object.hasOwn||function(t,e){return av(ia(t),e)},Im=0,ov=Math.random(),Lm=be(1 .toString),IA=function(t){return"Symbol("+(t===void 0?"":t)+")_"+Lm(++Im+ov,36)},_l=Lo("wks"),LA=Dt.Symbol,Bl=LA&&LA.for,sv=Dd?LA:LA&&LA.withoutSetter||IA,ur=function(t){if(!We(_l,t)||!ra&&typeof _l[t]!="string"){var e="Symbol."+t;ra&&We(LA,t)?_l[t]=LA[t]:_l[t]=Dd&&Bl?Bl(e):sv(e)}return _l[t]},Qm=Dt.TypeError,Dm=ur("toPrimitive"),Fm=function(t,e){if(!wn(t)||xA(t))return t;var n,r=Cl(t,Dm);if(r){if(e===void 0&&(e="default"),n=$e(r,t,e),!wn(n)||xA(n))return n;throw Qm("Can't convert object to primitive value")}return e===void 0&&(e="number"),function(i,o){var A,u;if(o==="string"&&_n(A=i.toString)&&!wn(u=$e(A,i))||_n(A=i.valueOf)&&!wn(u=$e(A,i))||o!=="string"&&_n(A=i.toString)&&!wn(u=$e(A,i)))return u;throw Bm("Can't convert object to primitive value")}(t,e)},QA=function(t){var e=Fm(t,"string");return xA(e)?e:e+""},Md=Dt.document,Av=wn(Md)&&wn(Md.createElement),g1=function(t){return Av?Md.createElement(t):{}},Mm=!Bn&&!Pt(function(){return Object.defineProperty(g1("div"),"a",{get:function(){return 7}}).a!=7}),Nm=Object.getOwnPropertyDescriptor,Pa={f:Bn?Nm:function(t,e){if(t=Sn(t),e=QA(e),Mm)try{return Nm(t,e)}catch{}if(We(t,e))return gr(!$e(di.f,t,e),t[e])}},lv=/#|\.prototype\./,Fc=function(t,e){var n=uv[cv(t)];return n==He||n!=Qo&&(_n(e)?Pt(e):!!e)},cv=Fc.normalize=function(t){return String(t).replace(lv,".").toLowerCase()},uv=Fc.data={},Qo=Fc.NATIVE="N",He=Fc.POLYFILL="P",Nd=Fc,Om=be(be.bind),Xr=function(t,e){return kn(t),e===void 0?t:Ue?Om(t,e):function(){return t.apply(e,arguments)}},Od=Bn&&Pt(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42}),Ud=Dt.String,Um=Dt.TypeError,mn=function(t){if(wn(t))return t;throw Um(Ud(t)+" is not an object")},Hm=Dt.TypeError,Hd=Object.defineProperty,hv=Object.getOwnPropertyDescriptor,Rd="enumerable",Pd="configurable",v1="writable",dv=Bn?Od?function(t,e,n){if(mn(t),e=QA(e),mn(n),typeof t=="function"&&e==="prototype"&&"value"in n&&v1 in n&&!n[v1]){var r=hv(t,e);r&&r[v1]&&(t[e]=n.value,n={configurable:Pd in n?n[Pd]:r[Pd],enumerable:Rd in n?n[Rd]:r[Rd],writable:!1})}return Hd(t,e,n)}:Hd:function(t,e,n){if(mn(t),e=QA(e),mn(n),Mm)try{return Hd(t,e,n)}catch{}if("get"in n||"set"in n)throw Hm("Accessors not supported");return"value"in n&&(t[e]=n.value),t},fi={f:dv},Di=Bn?function(t,e,n){return fi.f(t,e,gr(1,n))}:function(t,e,n){return t[e]=n,t},fv=Pa.f,pv=function(t){var e=function(n,r,i){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,r)}return new t(n,r,i)}return an(t,this,arguments)};return e.prototype=t.prototype,e},de=function(t,e){var n,r,i,o,A,u,c,p,g=t.target,y=t.global,C=t.stat,B=t.proto,x=y?Dt:C?Dt[g]:(Dt[g]||{}).prototype,P=y?Re:Re[g]||Di(Re,g,{})[g],H=P.prototype;for(i in e)n=!Nd(y?i:g+(C?".":"#")+i,t.forced)&&x&&We(x,i),A=P[i],n&&(u=t.dontCallGetSet?(p=fv(x,i))&&p.value:x[i]),o=n&&u?u:e[i],n&&typeof A==typeof o||(c=t.bind&&n?Xr(o,Dt):t.wrap&&n?pv(o):B&&_n(o)?be(o):o,(t.sham||o&&o.sham||A&&A.sham)&&Di(c,"sham",!0),Di(P,i,c),B&&(We(Re,r=g+"Prototype")||Di(Re,r,{}),Di(Re[r],i,o),t.real&&H&&!H[i]&&Di(H,i,o)))},Js=be([].slice),y1=Dt.Function,Mc=be([].concat),Rm=be([].join),b1={},DA=Ue?y1.bind:function(t){var e=kn(this),n=e.prototype,r=Js(arguments,1),i=function(){var o=Mc(r,Js(arguments));return this instanceof i?function(A,u,c){if(!We(b1,u)){for(var p=[],g=0;g0?Vd:$d)(e)},hs=function(t){var e=+t;return e!=e||e===0?0:_1(e)},Xd=Math.max,B1=Math.min,Do=function(t,e){var n=hs(t);return n<0?Xd(n+e,0):B1(n,e)},zd=Math.min,Wd=function(t){return t>0?zd(hs(t),9007199254740991):0},Pe=function(t){return Wd(t.length)},lo=function(t){return function(e,n,r){var i,o=Sn(e),A=Pe(o),u=Do(r,A);if(t&&n!=n){for(;A>u;)if((i=o[u++])!=i)return!0}else for(;A>u;u++)if((t||u in o)&&o[u]===n)return t||u||0;return!t&&-1}},nr={includes:lo(!0),indexOf:lo(!1)},MA={},jd=nr.indexOf,S1=be([].push),k1=function(t,e){var n,r=Sn(t),i=0,o=[];for(n in r)!We(MA,n)&&We(r,n)&&S1(o,n);for(;e.length>i;)We(r,n=e[i++])&&(~jd(o,n)||S1(o,n));return o},Fo=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],co=Object.keys||function(t){return k1(t,Fo)},Nc=Bn&&!Od?Object.defineProperties:function(t,e){mn(t);for(var n,r=Sn(e),i=co(e),o=i.length,A=0;o>A;)fi.f(t,n=i[A++],r[n]);return t},ci={f:Nc},ds=cn("document","documentElement"),Yd=Lo("keys"),Oc=function(t){return Yd[t]||(Yd[t]=IA(t))},Zd="prototype",x1="script",I1=Oc("IE_PROTO"),Jd=function(){},qd=function(t){return"<"+x1+">"+t+""},Dn=function(t){t.write(qd("")),t.close();var e=t.parentWindow.Object;return t=null,e},L1=function(){try{tA=new ActiveXObject("htmlfile")}catch{}var t,e,n;L1=typeof document<"u"?document.domain&&tA?Dn(tA):(e=g1("iframe"),n="java"+x1+":",e.style.display="none",ds.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(qd("document.F=Object")),t.close(),t.F):Dn(tA);for(var r=Fo.length;r--;)delete L1[Zd][Fo[r]];return L1()};MA[I1]=!0;var xr=Object.create||function(t,e){var n;return t!==null?(Jd[Zd]=mn(t),n=new Jd,Jd[Zd]=null,n[I1]=t):n=L1(),e===void 0?n:ci.f(n,e)},NA=cn("Reflect","construct"),Pm=Object.prototype,mv=[].push,Q1=Pt(function(){function t(){}return!(NA(function(){},[],t)instanceof t)}),Km=!Pt(function(){NA(function(){})}),tf=Q1||Km;de({target:"Reflect",stat:!0,forced:tf,sham:tf},{construct:function(t,e){nA(t),mn(e);var n=arguments.length<3?t:nA(arguments[2]);if(Km&&!Q1)return NA(t,e,n);if(t==n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var r=[null];return an(mv,r,e),new(an(DA,t,r))}var i=n.prototype,o=xr(wn(i)?i:Pm),A=an(t,o,e);return wn(A)?A:o}});var Gm=Re.Reflect.construct,tt=Gm,ef=Pt(function(){co(1)});de({target:"Object",stat:!0,forced:ef},{keys:function(t){return co(ia(t))}});var D1,aa,F1,nf=Re.Object.keys,gn=nf,$m=Dt.String,Cn=function(t){if(us(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return $m(t)},rf=Fo.concat("length","prototype"),Uc={f:Object.getOwnPropertyNames||function(t){return k1(t,rf)}},fs=function(t,e,n){var r=QA(e);r in t?fi.f(t,r,gr(0,n)):t[r]=n},Vm=Dt.Array,gv=Math.max,oa=function(t,e,n){for(var r=Pe(t),i=Do(e,r),o=Do(n===void 0?r:n,r),A=Vm(gv(o-i,0)),u=0;iN;N++)if((u||N in P)&&(B=H(C=P[N],N,x),t))if(e)D[N]=B;else if(B)switch(t){case 3:return!0;case 5:return C;case 6:return N;case 2:Jm(D,C)}else switch(t){case 4:return!1;case 7:Jm(D,C)}return o?-1:r||i?i:D}},Ka={forEach:ji(0),map:ji(1),filter:ji(2),some:ji(3),every:ji(4),find:ji(5),findIndex:ji(6),filterReject:ji(7)},H1=Ka.forEach,Fi=Oc("hidden"),R1="Symbol",ya="prototype",Tv=Ur.set,UA=Ur.getterFor(R1),ho=Object[ya],Yi=Dt.Symbol,rA=Yi&&Yi[ya],qm=Dt.TypeError,Rc=Dt.QObject,Pc=Pa.f,Mo=fi.f,Kc=N1.f,Ql=di.f,Gc=be([].push),fo=Lo("symbols"),Dl=Lo("op-symbols"),wv=Lo("wks"),Fl=!Rc||!Rc[ya]||!Rc[ya].findChild,of=Bn&&Pt(function(){return xr(Mo({},"a",{get:function(){return Mo(this,"a",{value:7}).a}})).a!=7})?function(t,e,n){var r=Pc(ho,e);r&&delete ho[e],Mo(t,e,n),r&&t!==ho&&Mo(ho,e,r)}:Mo,P1=function(t,e){var n=fo[t]=xr(rA);return Tv(n,{type:R1,tag:t,description:e}),Bn||(n.description=e),n},K1=function(t,e,n){t===ho&&K1(Dl,e,n),mn(t);var r=QA(e);return mn(n),We(fo,r)?(n.enumerable?(We(t,Fi)&&t[Fi][r]&&(t[Fi][r]=!1),n=xr(n,{enumerable:gr(0,!1)})):(We(t,Fi)||Mo(t,Fi,gr(1,{})),t[Fi][r]=!0),of(t,r,n)):Mo(t,r,n)},G1=function(t,e){mn(t);var n=Sn(e),r=co(n).concat(eg(n));return H1(r,function(i){Bn&&!$e(tg,n,i)||K1(t,i,n[i])}),t},tg=function(t){var e=QA(t),n=$e(Ql,this,e);return!(this===ho&&We(fo,e)&&!We(Dl,e))&&(!(n||!We(this,e)||!We(fo,e)||We(this,Fi)&&this[Fi][e])||n)},po=function(t,e){var n=Sn(t),r=QA(e);if(n!==ho||!We(fo,r)||We(Dl,r)){var i=Pc(n,r);return!i||!We(fo,r)||We(n,Fi)&&n[Fi][r]||(i.enumerable=!0),i}},$c=function(t){var e=Kc(Sn(t)),n=[];return H1(e,function(r){We(fo,r)||We(MA,r)||Gc(n,r)}),n},eg=function(t){var e=t===ho,n=Kc(e?Dl:Sn(t)),r=[];return H1(n,function(i){!We(fo,i)||e&&!We(ho,i)||Gc(r,fo[i])}),r};ra||(Yi=function(){if(Fe(rA,this))throw qm("Symbol is not a constructor");var t=arguments.length&&arguments[0]!==void 0?Cn(arguments[0]):void 0,e=IA(t),n=function(r){this===ho&&$e(n,Dl,r),We(this,Fi)&&We(this[Fi],e)&&(this[Fi][e]=!1),of(this,e,gr(1,r))};return Bn&&Fl&&of(ho,e,{configurable:!0,set:n}),P1(e,t)},rA=Yi[ya],wi(rA,"toString",function(){return UA(this).tag}),wi(Yi,"withoutSetter",function(t){return P1(IA(t),t)}),di.f=tg,fi.f=K1,ci.f=G1,Pa.f=po,Uc.f=N1.f=$c,xl.f=eg,ps.f=function(t){return P1(ur(t),t)},Bn&&Mo(rA,"description",{configurable:!0,get:function(){return UA(this).description}})),de({global:!0,constructor:!0,wrap:!0,forced:!ra,sham:!ra},{Symbol:Yi}),H1(co(wv),function(t){dr(t)}),de({target:R1,stat:!0,forced:!ra},{useSetter:function(){Fl=!0},useSimple:function(){Fl=!1}}),de({target:"Object",stat:!0,forced:!ra,sham:!Bn},{create:function(t,e){return e===void 0?xr(t):G1(xr(t),e)},defineProperty:K1,defineProperties:G1,getOwnPropertyDescriptor:po}),de({target:"Object",stat:!0,forced:!ra},{getOwnPropertyNames:$c}),va(),uo(Yi,R1),MA[Fi]=!0;var Vc=ra&&!!Symbol.for&&!!Symbol.keyFor,sf=Lo("string-to-symbol-registry"),ng=Lo("symbol-to-string-registry");de({target:"Symbol",stat:!0,forced:!Vc},{for:function(t){var e=Cn(t);if(We(sf,e))return sf[e];var n=cn("Symbol")(e);return sf[e]=n,ng[n]=e,n}});var rg=Lo("symbol-to-string-registry");de({target:"Symbol",stat:!0,forced:!Vc},{keyFor:function(t){if(!xA(t))throw TypeError(Ys(t)+" is not a symbol");if(We(rg,t))return rg[t]}});var Ga=cn("JSON","stringify"),$1=be(/./.exec),HA=be("".charAt),ig=be("".charCodeAt),ag=be("".replace),Ev=be(1 .toString),vs=/[\uD800-\uDFFF]/g,Af=/^[\uD800-\uDBFF]$/,lf=/^[\uDC00-\uDFFF]$/,Ml=!ra||Pt(function(){var t=cn("Symbol")();return Ga([t])!="[null]"||Ga({a:t})!="{}"||Ga(Object(t))!="{}"}),og=Pt(function(){return Ga("\uDF06\uD834")!=='"\\udf06\\ud834"'||Ga("\uDEAD")!=='"\\udead"'}),V1=function(t,e){var n=Js(arguments),r=e;if((wn(e)||t!==void 0)&&!xA(t))return gs(e)||(e=function(i,o){if(_n(r)&&(o=$e(r,this,i,o)),!xA(o))return o}),n[1]=e,an(Ga,null,n)},Xc=function(t,e,n){var r=HA(n,e-1),i=HA(n,e+1);return $1(Af,t)&&!$1(lf,i)||$1(lf,t)&&!$1(Af,r)?"\\u"+Ev(ig(t,0),16):t};Ga&&de({target:"JSON",stat:!0,arity:3,forced:Ml||og},{stringify:function(t,e,n){var r=Js(arguments),i=an(Ml?V1:Ga,null,r);return og&&typeof i=="string"?ag(i,vs,Xc):i}});var sg=!ra||Pt(function(){xl.f(1)});de({target:"Object",stat:!0,forced:sg},{getOwnPropertySymbols:function(t){var e=xl.f;return e?e(ia(t)):[]}});var cf=Re.Object.getOwnPropertySymbols,Hr=cf,Ag=ur("species"),Nl=function(t){return Ra>=51||!Pt(function(){var e=[];return(e.constructor={})[Ag]=function(){return{foo:1}},e[t](Boolean).foo!==1})},lg=Ka.filter,cg=Nl("filter");de({target:"Array",proto:!0,forced:!cg},{filter:function(t){return lg(this,t,arguments.length>1?arguments[1]:void 0)}});var fr=function(t){return Re[t+"Prototype"]},Cv=fr("Array").filter,X1=Array.prototype,Ir=function(t){var e=t.filter;return t===X1||Fe(X1,t)&&e===X1.filter?Cv:e},ug=Pa.f,s=Pt(function(){ug(1)});de({target:"Object",stat:!0,forced:!Bn||s,sham:!Bn},{getOwnPropertyDescriptor:function(t,e){return ug(Sn(t),e)}});var d,T,k,R=gt(function(t){var e=Re.Object,n=t.exports=function(r,i){return e.getOwnPropertyDescriptor(r,i)};e.getOwnPropertyDescriptor.sham&&(n.sham=!0)}),et=R,yt=et,Qt={},Ut=Function.prototype,ee=Bn&&Object.getOwnPropertyDescriptor,Be=We(Ut,"name"),je={EXISTS:Be,PROPER:Be&&function(){}.name==="something",CONFIGURABLE:Be&&(!Bn||Bn&&ee(Ut,"name").configurable)},En=!Pt(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),Mi=Oc("IE_PROTO"),ei=Dt.Object,$a=ei.prototype,ni=En?ei.getPrototypeOf:function(t){var e=ia(t);if(We(e,Mi))return e[Mi];var n=e.constructor;return _n(n)&&e instanceof n?n.prototype:e instanceof ei?$a:null},iA=ur("iterator"),hg=!1;[].keys&&("next"in(k=[].keys())?(T=ni(ni(k)))!==Object.prototype&&(d=T):hg=!0);var _v=d==null||Pt(function(){var t={};return d[iA].call(t)!==t});d=_v?{}:xr(d),_n(d[iA])||wi(d,iA,function(){return this});var dg={IteratorPrototype:d,BUGGY_SAFARI_ITERATORS:hg},fg=dg.IteratorPrototype,Bv=function(){return this},uf=function(t,e,n,r){var i=e+" Iterator";return t.prototype=xr(fg,{next:gr(+!r,n)}),uo(t,i,!1,!0),Qt[i]=Bv,t},ri=Dt.String,z1=Dt.TypeError,zc=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=be(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch{}return function(r,i){return mn(r),function(o){if(typeof o=="object"||_n(o))return o;throw z1("Can't set "+ri(o)+" as a prototype")}(i),e?t(r,i):r.__proto__=i,r}}():void 0),Sv=je.PROPER,W1=dg.BUGGY_SAFARI_ITERATORS,Wc=ur("iterator"),hf="keys",j1="values",e9="entries",v7=function(){return this},kv=function(t,e,n,r,i,o,A){uf(n,e,r);var u,c,p,g=function(I){if(I===i&&P)return P;if(!W1&&I in B)return B[I];switch(I){case hf:case j1:case e9:return function(){return new n(this,I)}}return function(){return new n(this)}},y=e+" Iterator",C=!1,B=t.prototype,x=B[Wc]||B["@@iterator"]||i&&B[i],P=!W1&&x||g(i),H=e=="Array"&&B.entries||x;if(H&&(u=ni(H.call(new t)))!==Object.prototype&&u.next&&(uo(u,y,!0,!0),Qt[y]=v7),Sv&&i==j1&&x&&x.name!==j1&&(C=!0,P=function(){return $e(x,this)}),i)if(c={values:g(j1),keys:o?P:g(hf),entries:g(e9)},A)for(p in c)(W1||C||!(p in B))&&wi(B,p,c[p]);else de({target:e,proto:!0,forced:W1||C},c);return A&&B[Wc]!==P&&wi(B,Wc,P,{name:i}),Qt[e]=P,c};fi.f;var n9="Array Iterator",y7=Ur.set,b7=Ur.getterFor(n9);kv(Array,"Array",function(t,e){y7(this,{type:n9,target:Sn(t),index:0,kind:e})},function(){var t=b7(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}},"values"),Qt.Arguments=Qt.Array;var r9=ur("toStringTag");for(var xv in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var i9=Dt[xv],Iv=i9&&i9.prototype;Iv&&us(Iv)!==r9&&Di(Iv,r9,xv),Qt[xv]=Qt.Array}var Y1=function(t,e){var n=[][t];return!!n&&Pt(function(){n.call(null,e||function(){return 1},1)})},T7=Ka.forEach,a9=Y1("forEach")?[].forEach:function(t){return T7(this,t,arguments.length>1?arguments[1]:void 0)};de({target:"Array",proto:!0,forced:[].forEach!=a9},{forEach:a9});var w7=fr("Array").forEach,Lv=Array.prototype,E7={DOMTokenList:!0,NodeList:!0},o9=function(t){var e=t.forEach;return t===Lv||Fe(Lv,t)&&e===Lv.forEach||We(E7,us(t))?w7:e},ve=o9,C7=be([].concat),s9=cn("Reflect","ownKeys")||function(t){var e=Uc.f(mn(t)),n=xl.f;return n?C7(e,n(t)):e};de({target:"Object",stat:!0,sham:!Bn},{getOwnPropertyDescriptors:function(t){for(var e,n,r=Sn(t),i=Pa.f,o=s9(r),A={},u=0;o.length>u;)(n=i(r,e=o[u++]))!==void 0&&fs(A,e,n);return A}});var ii=Re.Object.getOwnPropertyDescriptors,A9=ci.f;de({target:"Object",stat:!0,forced:Object.defineProperties!==A9,sham:!Bn},{defineProperties:A9});var _7=gt(function(t){var e=Re.Object,n=t.exports=function(r,i){return e.defineProperties(r,i)};e.defineProperties.sham&&(n.sham=!0)}),ys=_7,l9=fi.f;de({target:"Object",stat:!0,forced:Object.defineProperty!==l9,sham:!Bn},{defineProperty:l9});var c9=gt(function(t){var e=Re.Object,n=t.exports=function(r,i,o){return e.defineProperty(r,i,o)};e.defineProperty.sham&&(n.sham=!0)}),Va=c9;function zt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var df=c9;function u9(t,e){for(var n=0;n=51||!Pt(function(){var t=[];return t[d9]=!1,t.concat()[0]!==t}),k7=Nl("concat"),x7=function(t){if(!wn(t))return!1;var e=t[d9];return e!==void 0?!!e:gs(t)};de({target:"Array",proto:!0,arity:1,forced:!S7||!k7},{concat:function(t){var e,n,r,i,o,A=ia(this),u=OA(A,0),c=0;for(e=-1,r=arguments.length;ef9)throw m9(p9);for(n=0;n=f9)throw m9(p9);fs(u,c++,o)}return u.length=c,u}}),dr("asyncIterator"),dr("hasInstance"),dr("isConcatSpreadable"),dr("iterator"),dr("match"),dr("matchAll"),dr("replace"),dr("search"),dr("species"),dr("split"),dr("toPrimitive"),va(),dr("toStringTag"),uo(cn("Symbol"),"Symbol"),dr("unscopables"),uo(Dt.JSON,"JSON",!0);var g9=Re.Symbol,I7=g9;dr("asyncDispose"),dr("dispose"),dr("matcher"),dr("metadata"),dr("observable"),dr("patternMatch"),dr("replaceAll");var No=I7,L7=be("".charAt),v9=be("".charCodeAt),Q7=be("".slice),y9=function(t){return function(e,n){var r,i,o=Cn(Ve(e)),A=hs(n),u=o.length;return A<0||A>=u?t?"":void 0:(r=v9(o,A))<55296||r>56319||A+1===u||(i=v9(o,A+1))<56320||i>57343?t?L7(o,A):r:t?Q7(o,A,A+2):i-56320+(r-55296<<10)+65536}},b9={codeAt:y9(!1),charAt:y9(!0)},D7=b9.charAt,T9="String Iterator",F7=Ur.set,M7=Ur.getterFor(T9);kv(String,"String",function(t){F7(this,{type:T9,string:Cn(t),index:0})},function(){var t,e=M7(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=D7(n,r),e.index+=t.length,{value:t,done:!1})});var w9=ps.f("iterator");function Ni(t){return Ni=typeof No=="function"&&typeof w9=="symbol"?function(e){return typeof e}:function(e){return e&&typeof No=="function"&&e.constructor===No&&e!==No.prototype?"symbol":typeof e},Ni(t)}function se(t,e){if(e&&(Ni(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Oe(t)}var N7=Pt(function(){ni(1)});de({target:"Object",stat:!0,forced:N7,sham:!En},{getPrototypeOf:function(t){return ni(ia(t))}});var mf=Re.Object.getPrototypeOf;function _t(t){return _t=pg?mf:function(e){return e.__proto__||mf(e)},_t(t)}function te(t,e,n){return e in t?df(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var O7=fr("Array").concat,Qv=Array.prototype,nt=function(t){var e=t.concat;return t===Qv||Fe(Qv,t)&&e===Qv.concat?O7:e};de({target:"Function",proto:!0,forced:Function.bind!==DA},{bind:DA});var U7=fr("Function").bind,Dv=Function.prototype,E9=function(t){var e=t.bind;return t===Dv||Fe(Dv,t)&&e===Dv.bind?U7:e},Te=E9,H7=Dt.TypeError,RA=function(t,e){if(t2,i=_n(e)?e:P7(e),o=r?Js(arguments,2):void 0;return t(r?function(){an(i,this,o)}:i,n)}:t},_9={setTimeout:C9(Dt.setTimeout),setInterval:C9(Dt.setInterval)},B9=_9.setInterval;de({global:!0,bind:!0,forced:Dt.setInterval!==B9},{setInterval:B9});var S9=_9.setTimeout;de({global:!0,bind:!0,forced:Dt.setTimeout!==S9},{setTimeout:S9});var Xa=Re.setTimeout,K7=function(){this.__data__=[],this.size=0},mg=function(t,e){return t===e||t!=t&&e!=e},gg=function(t,e){for(var n=t.length;n--;)if(mg(t[n][0],e))return n;return-1},G7=Array.prototype.splice,$7=function(t){var e=this.__data__,n=gg(e,t);return!(n<0)&&(n==e.length-1?e.pop():G7.call(e,n,1),--this.size,!0)},V7=function(t){var e=this.__data__,n=gg(e,t);return n<0?void 0:e[n][1]},X7=function(t){return gg(this.__data__,t)>-1},z7=function(t,e){var n=this.__data__,r=gg(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};function Z1(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e-1&&t%1==0&&t<=9007199254740991},Tg=function(t){return t!=null&&G9(t.length)&&!Fv(t)},O8=function(t){return Ul(t)&&Tg(t)},U8=function(){return!1},Kv=gt(function(t,e){var n=e&&!e.nodeType&&e,r=n&&t&&!t.nodeType&&t,i=r&&r.exports===n?bs.Buffer:void 0,o=(i?i.isBuffer:void 0)||U8;t.exports=o}),H8=Function.prototype,R8=Object.prototype,$9=H8.toString,P8=R8.hasOwnProperty,K8=$9.call(Object),G8=function(t){if(!Ul(t)||jc(t)!="[object Object]")return!1;var e=Hv(t);if(e===null)return!0;var n=P8.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&$9.call(n)==K8},Lr={};Lr["[object Float32Array]"]=Lr["[object Float64Array]"]=Lr["[object Int8Array]"]=Lr["[object Int16Array]"]=Lr["[object Int32Array]"]=Lr["[object Uint8Array]"]=Lr["[object Uint8ClampedArray]"]=Lr["[object Uint16Array]"]=Lr["[object Uint32Array]"]=!0,Lr["[object Arguments]"]=Lr["[object Array]"]=Lr["[object ArrayBuffer]"]=Lr["[object Boolean]"]=Lr["[object DataView]"]=Lr["[object Date]"]=Lr["[object Error]"]=Lr["[object Function]"]=Lr["[object Map]"]=Lr["[object Number]"]=Lr["[object Object]"]=Lr["[object RegExp]"]=Lr["[object Set]"]=Lr["[object String]"]=Lr["[object WeakMap]"]=!1;var $8=function(t){return Ul(t)&&G9(t.length)&&!!Lr[jc(t)]},Gv=function(t){return function(e){return t(e)}},nh=gt(function(t,e){var n=e&&!e.nodeType&&e,r=n&&t&&!t.nodeType&&t,i=r&&r.exports===n&&k9.process,o=function(){try{var A=r&&r.require&&r.require("util").types;return A||i&&i.binding&&i.binding("util")}catch{}}();t.exports=o}),V9=nh&&nh.isTypedArray,X9=V9?Gv(V9):$8,$v=function(t,e){if((e!=="constructor"||typeof t[e]!="function")&&e!="__proto__")return t[e]},V8=Object.prototype.hasOwnProperty,z9=function(t,e,n){var r=t[e];V8.call(t,e)&&mg(r,n)&&(n!==void 0||e in t)||Nv(t,e,n)},bf=function(t,e,n,r){var i=!n;n||(n={});for(var o=-1,A=e.length;++o-1&&t%1==0&&t0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}},AS=sS(aS),lS=function(t,e){return AS(nS(t,e,Y9),t+"")},cS=function(t,e,n){if(!Ts(n))return!1;var r=typeof e;return!!(r=="number"?Tg(n)&&W9(e,n.length):r=="string"&&e in n)&&mg(n[e],t)},uS=function(t){return lS(function(e,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,A=i>2?n[2]:void 0;for(o=t.length>3&&typeof o=="function"?(i--,o):void 0,A&&cS(n[0],n[1],A)&&(o=i<3?void 0:o,i=1),e=Object(e);++r1?arguments[1]:void 0;return q9?Vv(this,t,e)||0:fS(this,t,e)}});var mS=fr("Array").indexOf,Xv=Array.prototype,tb=function(t){var e=t.indexOf;return t===Xv||Fe(Xv,t)&&e===Xv.indexOf?mS:e},zv=tb,gS=nf;function vS(t,e){if(t==null)return{};var n,r,i=function(A,u){if(A==null)return{};var c,p,g={},y=gS(A);for(p=0;p=0||(g[c]=A[c]);return g}(t,e);if(J9){var o=J9(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}var rh=Object.assign,eb=Object.defineProperty,yS=be([].concat),wf=!rh||Pt(function(){if(Bn&&rh({b:1},rh(eb({},"a",{enumerable:!0,get:function(){eb(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(i){e[i]=i}),rh({},t)[n]!=7||co(rh({},e)).join("")!=r})?function(t,e){for(var n=ia(t),r=arguments.length,i=1,o=xl.f,A=di.f;r>i;)for(var u,c=ln(arguments[i++]),p=o?yS(co(c),o(c)):co(c),g=p.length,y=0;g>y;)u=p[y++],Bn&&!$e(A,c,u)||(n[u]=c[u]);return n}:rh;de({target:"Object",stat:!0,arity:2,forced:Object.assign!==wf},{assign:wf});var nb=Re.Object.assign,Hl=nb;Re.JSON||(Re.JSON={stringify:JSON.stringify});var bS=function(t,e,n){return an(Re.JSON.stringify,null,arguments)},rb=bS,TS=Ka.find,ib="find",ab=!0;ib in[]&&Array(1)[ib](function(){ab=!1}),de({target:"Array",proto:!0,forced:ab},{find:function(t){return TS(this,t,arguments.length>1?arguments[1]:void 0)}});var Ef,wS=fr("Array").find,Wv=Array.prototype,Cf=function(t){var e=t.find;return t===Wv||Fe(Wv,t)&&e===Wv.find?wS:e},ih=` diff --git a/assets/PermissionsView.9c2e5753.js b/assets/PermissionsView.17fce729.js similarity index 99% rename from assets/PermissionsView.9c2e5753.js rename to assets/PermissionsView.17fce729.js index 0ea225c..f7c651b 100644 --- a/assets/PermissionsView.9c2e5753.js +++ b/assets/PermissionsView.17fce729.js @@ -1 +1 @@ -import{l as y,K as k,L as w,M as S,N as T,o as a,e as l,h as s,t as m,O as x,k as g,A as f,n as u,s as _,q as C,P as q,Q as I,u as A,E as N,G as B,i as b,w as p,m as v,F as h,r as L,R as E,j as P,p as M}from"./index.b2beee06.js";import{g as O}from"./Translations.4c814af6.js";const U=["","Politecnico di Milano","PoliNetwork"],d={authors:U},z={class:"border rounded"},V={class:"row"},D={class:"col-8"},H={class:"col ms-2 mt-1 text-truncate","data-bs-toggle":"tooltip","data-bs-placement":"top","data-bs-title":"a"},R=s("i",{class:"fas fa-user"},null,-1),F={key:0},G={key:1},K={class:"col-4"},Q={class:"btn-group float-end"},X=s("i",{class:"fas fa-xmark"},null,-1),J=[X],W={mounted(){var e=this.$el.querySelector("h5");console.log(d[this.grant]?d[this.grant][this.objectid]:null),e.setAttribute("data-bs-title",O("permission_"+this.grant,d[this.grant]?d[this.grant][this.objectid]:null)),[...document.querySelectorAll('[data-bs-toggle="tooltip"]')].map(r=>new bootstrap.Tooltip(r))},methods:{remove(){var r;var e=this.$el.querySelector("#btn-remove");if(e.classList.contains("pending")){e.classList.add("disabled"),e.classList.add("btn-list-item-action"),e.innerHTML='';var t={grant:this.grant,object_id:(r=this.objectid)!=null?r:null};g.delete(f+"/accounts/"+this.userid+"/permissions",{headers:{"Content-Type":"application/json",Authorization:"Bearer "+localStorage.getItem("polifemo_access_token")},data:t}).then(()=>{this.emitter.emit("permission-deleted",t)}).catch(n=>{u.mainLogger.error("permessi","Error while revoking permission:"),u.mainLogger.error("permessi",n),_("Errore nella revoca del permesso: "+n.response.data.error,"error")}).finally(()=>{e.classList.remove("disabled"),e.classList.remove("pending"),e.classList.add("btn-list-item-action"),e.innerHTML=''})}else e.classList.add("pending"),e.classList.remove("btn-list-item-action"),e.innerHTML="Sicuro?",setTimeout(()=>{this.stopPendingDeletion()},5e3)},stopPendingDeletion(){var e=this.$el.querySelector("#btn-remove");e.classList.remove("pending"),e.classList.add("btn-list-item-action"),e.innerHTML=''}}},Y=Object.assign(W,{__name:"PermissionListItem",props:{userid:{type:String,required:!0},objectid:{type:Number,required:!1},grant:{type:String,required:!0}},setup(e){return y.add(k,w,S,T),(t,r)=>(a(),l("div",z,[s("div",V,[s("div",D,[s("h5",H,[R,e.objectid?(a(),l("span",G," \xA0"+m(e.grant)+" \u2022 "+m(x(d)[e.grant][e.objectid]),1)):(a(),l("span",F,"\xA0 "+m(e.grant),1))])]),s("div",K,[s("div",Q,[s("button",{type:"button",id:"btn-remove",onClick:r[0]||(r[0]=(...n)=>t.remove&&t.remove(...n)),class:"btn btn-danger rounded-end btn-list-item-action"},J)])])])]))}});y.add(q,k,I);const Z={components:{PermissionListItem:Y},data(){return{tempPermList:{},autofill:{},filled:{},store:A()}},mounted(){this.autofill=d,this.emitter.on("permissions-refreshed",()=>{N("permissions")||(this.$router.push("/"),_("Non hai i permessi per accedere alla pagina richiesta. Sei stato portato alla home.","error"))}),this.emitter.on("permission-deleted",e=>{this.tempPermList=this.tempPermList.filter(t=>t.grant!==e.grant&&t.object_id!==e.object_id)})},methods:{getPermissionsOfUser(){this.tempPermList=[],$("#permissions-loading").removeClass("d-none"),g.get(f+"/accounts/"+this.filled.userid+"/permissions",{headers:{Authorization:"Bearer "+localStorage.getItem("polifemo_access_token")}}).then(e=>{this.tempPermList=e.data.permissions}).catch(e=>{u.mainLogger.error("permissions",e),this.tempPermList=[]}).finally(()=>{$("#permissions-loading").addClass("d-none"),$("#new-perm-form").removeClass("d-none")})},addPermission(){$("#addpermbutton").html('');const e=$("#added-perm").val();var t={grant:e};if(this.autofill.hasOwnProperty(e)){var r=0;d[e].forEach(n=>{n==$("#added-objid").val()?t.object_id=r:r++})}g.post(f+"/accounts/"+this.filled.userid+"/permissions",t,{headers:{Authorization:"Bearer "+localStorage.getItem("polifemo_access_token")}}).then(n=>{this.tempPermList.push(t)}).catch(n=>{u.mainLogger.error("permissions",n),_("Errore nell'aggiunta del permesso: "+n.response.data.error,"error")}).finally(()=>{$("#addpermbutton").html('')})}}},ee=s("header",null,[s("meta",{charset:"utf-8"}),s("meta",{name:"viewport",content:"width=device-width, initial-scale=1"})],-1),se={class:"container mt-5"},te=s("div",{class:"alert alert-info",role:"alert"},[s("span",null,[s("i",{class:"fas fa-lg fa-circle-info"}),P(" Per la lista completa dei permessi e la loro descrizione, visita la "),s("a",{href:"https://google.com"},"documentazione"),P(". ")])],-1),ie={key:0,class:"alert alert-danger",role:"alert"},oe=s("h4",{class:"alert-heading"},"Attenzione!",-1),re=s("span",null,"Stai modificando i tuoi stessi permessi. Rimuovere quelli sbagliati potrebbe impedirti di accedere ad alcune pagine. ",-1),ne=[oe,re],ae={class:"row"},le={class:"col-5"},de={class:"input-group mb-3"},ce=s("span",{class:"input-group-text",id:"basic-addon1"},[s("i",{class:"fas fa-lg fa-user"})],-1),me={class:"col-7"},ue=s("div",{id:"permissions-loading",class:"spinner-border text-primary d-none",role:"status"},[s("span",{class:"visually-hidden"},"Loading...")],-1),pe={key:0,class:"mt-3"},he={class:"input-group d-none",id:"new-perm-form"},ge={id:"added-objid",class:"form-control",placeholder:"id..."},fe=s("i",{class:"fas fa-plus"},null,-1),_e=[fe];function be(e,t,r,n,o,c){const j=B("PermissionListItem");return a(),l(h,null,[ee,s("div",se,[te,o.filled.userid==this.store.userid?(a(),l("div",ie,ne)):b("",!0),s("div",ae,[s("div",le,[s("div",de,[ce,p(s("input",{id:"user-selected",type:"text",class:"form-control",placeholder:"ID utente","onUpdate:modelValue":t[0]||(t[0]=i=>o.filled.userid=i),required:""},null,512),[[v,o.filled.userid]]),s("button",{class:"btn btn-secondary rounded-end",type:"button",onClick:t[1]||(t[1]=(...i)=>c.getPermissionsOfUser&&c.getPermissionsOfUser(...i))}," Cerca ")])]),s("div",me,[ue,(a(!0),l(h,null,L(o.tempPermList,i=>(a(),M(j,{key:i.id,objectid:i.object_id,grant:i.grant,userid:o.filled.userid},null,8,["objectid","grant","userid"]))),128)),o.tempPermList.length!=0?(a(),l("div",pe)):b("",!0),s("div",he,[p(s("input",{id:"added-perm",type:"text","onUpdate:modelValue":t[2]||(t[2]=i=>o.filled.grant=i),class:"form-control",placeholder:"Nuovo permesso"},null,512),[[v,o.filled.grant]]),p(s("select",ge,[(a(!0),l(h,null,L(o.autofill[o.filled.grant],i=>(a(),l("option",null,m(i),1))),256))],512),[[E,o.autofill.hasOwnProperty(o.filled.grant)]]),s("button",{id:"addpermbutton",class:"btn btn-success btn-list-item-action rounded-end",type:"button",onClick:t[3]||(t[3]=(...i)=>c.addPermission&&c.addPermission(...i))},_e)])])])])],64)}const Pe=C(Z,[["render",be]]);export{Pe as default}; +import{l as y,K as k,L as w,M as S,N as T,o as a,e as l,h as s,t as m,O as x,k as g,A as f,n as u,s as _,q as C,P as q,Q as I,u as A,E as N,G as B,i as b,w as p,m as v,F as h,r as L,R as E,j as P,p as M}from"./index.fe4d9eff.js";import{g as O}from"./Translations.4c814af6.js";const U=["","Politecnico di Milano","PoliNetwork"],d={authors:U},z={class:"border rounded"},V={class:"row"},D={class:"col-8"},H={class:"col ms-2 mt-1 text-truncate","data-bs-toggle":"tooltip","data-bs-placement":"top","data-bs-title":"a"},R=s("i",{class:"fas fa-user"},null,-1),F={key:0},G={key:1},K={class:"col-4"},Q={class:"btn-group float-end"},X=s("i",{class:"fas fa-xmark"},null,-1),J=[X],W={mounted(){var e=this.$el.querySelector("h5");console.log(d[this.grant]?d[this.grant][this.objectid]:null),e.setAttribute("data-bs-title",O("permission_"+this.grant,d[this.grant]?d[this.grant][this.objectid]:null)),[...document.querySelectorAll('[data-bs-toggle="tooltip"]')].map(r=>new bootstrap.Tooltip(r))},methods:{remove(){var r;var e=this.$el.querySelector("#btn-remove");if(e.classList.contains("pending")){e.classList.add("disabled"),e.classList.add("btn-list-item-action"),e.innerHTML='';var t={grant:this.grant,object_id:(r=this.objectid)!=null?r:null};g.delete(f+"/accounts/"+this.userid+"/permissions",{headers:{"Content-Type":"application/json",Authorization:"Bearer "+localStorage.getItem("polifemo_access_token")},data:t}).then(()=>{this.emitter.emit("permission-deleted",t)}).catch(n=>{u.mainLogger.error("permessi","Error while revoking permission:"),u.mainLogger.error("permessi",n),_("Errore nella revoca del permesso: "+n.response.data.error,"error")}).finally(()=>{e.classList.remove("disabled"),e.classList.remove("pending"),e.classList.add("btn-list-item-action"),e.innerHTML=''})}else e.classList.add("pending"),e.classList.remove("btn-list-item-action"),e.innerHTML="Sicuro?",setTimeout(()=>{this.stopPendingDeletion()},5e3)},stopPendingDeletion(){var e=this.$el.querySelector("#btn-remove");e.classList.remove("pending"),e.classList.add("btn-list-item-action"),e.innerHTML=''}}},Y=Object.assign(W,{__name:"PermissionListItem",props:{userid:{type:String,required:!0},objectid:{type:Number,required:!1},grant:{type:String,required:!0}},setup(e){return y.add(k,w,S,T),(t,r)=>(a(),l("div",z,[s("div",V,[s("div",D,[s("h5",H,[R,e.objectid?(a(),l("span",G," \xA0"+m(e.grant)+" \u2022 "+m(x(d)[e.grant][e.objectid]),1)):(a(),l("span",F,"\xA0 "+m(e.grant),1))])]),s("div",K,[s("div",Q,[s("button",{type:"button",id:"btn-remove",onClick:r[0]||(r[0]=(...n)=>t.remove&&t.remove(...n)),class:"btn btn-danger rounded-end btn-list-item-action"},J)])])])]))}});y.add(q,k,I);const Z={components:{PermissionListItem:Y},data(){return{tempPermList:{},autofill:{},filled:{},store:A()}},mounted(){this.autofill=d,this.emitter.on("permissions-refreshed",()=>{N("permissions")||(this.$router.push("/"),_("Non hai i permessi per accedere alla pagina richiesta. Sei stato portato alla home.","error"))}),this.emitter.on("permission-deleted",e=>{this.tempPermList=this.tempPermList.filter(t=>t.grant!==e.grant&&t.object_id!==e.object_id)})},methods:{getPermissionsOfUser(){this.tempPermList=[],$("#permissions-loading").removeClass("d-none"),g.get(f+"/accounts/"+this.filled.userid+"/permissions",{headers:{Authorization:"Bearer "+localStorage.getItem("polifemo_access_token")}}).then(e=>{this.tempPermList=e.data.permissions}).catch(e=>{u.mainLogger.error("permissions",e),this.tempPermList=[]}).finally(()=>{$("#permissions-loading").addClass("d-none"),$("#new-perm-form").removeClass("d-none")})},addPermission(){$("#addpermbutton").html('');const e=$("#added-perm").val();var t={grant:e};if(this.autofill.hasOwnProperty(e)){var r=0;d[e].forEach(n=>{n==$("#added-objid").val()?t.object_id=r:r++})}g.post(f+"/accounts/"+this.filled.userid+"/permissions",t,{headers:{Authorization:"Bearer "+localStorage.getItem("polifemo_access_token")}}).then(n=>{this.tempPermList.push(t)}).catch(n=>{u.mainLogger.error("permissions",n),_("Errore nell'aggiunta del permesso: "+n.response.data.error,"error")}).finally(()=>{$("#addpermbutton").html('')})}}},ee=s("header",null,[s("meta",{charset:"utf-8"}),s("meta",{name:"viewport",content:"width=device-width, initial-scale=1"})],-1),se={class:"container mt-5"},te=s("div",{class:"alert alert-info",role:"alert"},[s("span",null,[s("i",{class:"fas fa-lg fa-circle-info"}),P(" Per la lista completa dei permessi e la loro descrizione, visita la "),s("a",{href:"https://google.com"},"documentazione"),P(". ")])],-1),ie={key:0,class:"alert alert-danger",role:"alert"},oe=s("h4",{class:"alert-heading"},"Attenzione!",-1),re=s("span",null,"Stai modificando i tuoi stessi permessi. Rimuovere quelli sbagliati potrebbe impedirti di accedere ad alcune pagine. ",-1),ne=[oe,re],ae={class:"row"},le={class:"col-5"},de={class:"input-group mb-3"},ce=s("span",{class:"input-group-text",id:"basic-addon1"},[s("i",{class:"fas fa-lg fa-user"})],-1),me={class:"col-7"},ue=s("div",{id:"permissions-loading",class:"spinner-border text-primary d-none",role:"status"},[s("span",{class:"visually-hidden"},"Loading...")],-1),pe={key:0,class:"mt-3"},he={class:"input-group d-none",id:"new-perm-form"},ge={id:"added-objid",class:"form-control",placeholder:"id..."},fe=s("i",{class:"fas fa-plus"},null,-1),_e=[fe];function be(e,t,r,n,o,c){const j=B("PermissionListItem");return a(),l(h,null,[ee,s("div",se,[te,o.filled.userid==this.store.userid?(a(),l("div",ie,ne)):b("",!0),s("div",ae,[s("div",le,[s("div",de,[ce,p(s("input",{id:"user-selected",type:"text",class:"form-control",placeholder:"ID utente","onUpdate:modelValue":t[0]||(t[0]=i=>o.filled.userid=i),required:""},null,512),[[v,o.filled.userid]]),s("button",{class:"btn btn-secondary rounded-end",type:"button",onClick:t[1]||(t[1]=(...i)=>c.getPermissionsOfUser&&c.getPermissionsOfUser(...i))}," Cerca ")])]),s("div",me,[ue,(a(!0),l(h,null,L(o.tempPermList,i=>(a(),M(j,{key:i.id,objectid:i.object_id,grant:i.grant,userid:o.filled.userid},null,8,["objectid","grant","userid"]))),128)),o.tempPermList.length!=0?(a(),l("div",pe)):b("",!0),s("div",he,[p(s("input",{id:"added-perm",type:"text","onUpdate:modelValue":t[2]||(t[2]=i=>o.filled.grant=i),class:"form-control",placeholder:"Nuovo permesso"},null,512),[[v,o.filled.grant]]),p(s("select",ge,[(a(!0),l(h,null,L(o.autofill[o.filled.grant],i=>(a(),l("option",null,m(i),1))),256))],512),[[E,o.autofill.hasOwnProperty(o.filled.grant)]]),s("button",{id:"addpermbutton",class:"btn btn-success btn-list-item-action rounded-end",type:"button",onClick:t[3]||(t[3]=(...i)=>c.addPermission&&c.addPermission(...i))},_e)])])])])],64)}const Pe=C(Z,[["render",be]]);export{Pe as default}; diff --git a/assets/index.b2beee06.js b/assets/index.fe4d9eff.js similarity index 78% rename from assets/index.b2beee06.js rename to assets/index.fe4d9eff.js index 7ec69bd..b3f6ce4 100644 --- a/assets/index.b2beee06.js +++ b/assets/index.fe4d9eff.js @@ -1,8 +1,8 @@ -(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerpolicy&&(s.referrerPolicy=i.referrerpolicy),i.crossorigin==="use-credentials"?s.credentials="include":i.crossorigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();function hs(e,t){const n=Object.create(null),r=e.split(",");for(let i=0;i!!n[i.toLowerCase()]:i=>!!n[i]}const ae={},nn=[],Ue=()=>{},lf=()=>!1,cf=/^on[^a-z]/,Wr=e=>cf.test(e),gs=e=>e.startsWith("onUpdate:"),_e=Object.assign,vs=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},ff=Object.prototype.hasOwnProperty,Q=(e,t)=>ff.call(e,t),B=Array.isArray,rn=e=>er(e)==="[object Map]",Kr=e=>er(e)==="[object Set]",ao=e=>er(e)==="[object Date]",V=e=>typeof e=="function",be=e=>typeof e=="string",an=e=>typeof e=="symbol",se=e=>e!==null&&typeof e=="object",qa=e=>(se(e)||V(e))&&V(e.then)&&V(e.catch),Va=Object.prototype.toString,er=e=>Va.call(e),uf=e=>er(e).slice(8,-1),Wa=e=>er(e)==="[object Object]",bs=e=>be(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,kr=hs(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Yr=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},df=/-(\w)/g,nt=Yr(e=>e.replace(df,(t,n)=>n?n.toUpperCase():"")),mf=/\B([A-Z])/g,vn=Yr(e=>e.replace(mf,"-$1").toLowerCase()),Jr=Yr(e=>e.charAt(0).toUpperCase()+e.slice(1)),bi=Yr(e=>e?`on${Jr(e)}`:""),qt=(e,t)=>!Object.is(e,t),Ar=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Fr=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let lo;const Mi=()=>lo||(lo=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function ys(e){if(B(e)){const t={};for(let n=0;n{if(n){const r=n.split(hf);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function tr(e){let t="";if(be(e))t=e;else if(B(e))for(let n=0;nln(n,t))}const ws=e=>be(e)?e:e==null?"":B(e)||se(e)&&(e.toString===Va||!V(e.toString))?JSON.stringify(e,Ya,2):String(e),Ya=(e,t)=>t&&t.__v_isRef?Ya(e,t.value):rn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,i])=>(n[`${r} =>`]=i,n),{})}:Kr(t)?{[`Set(${t.size})`]:[...t.values()]}:se(t)&&!B(t)&&!Wa(t)?String(t):t;let Te;class Ja{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Te,!t&&Te&&(this.index=(Te.scopes||(Te.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Te;try{return Te=this,t()}finally{Te=n}}}on(){Te=this}off(){Te=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n{const t=new Set(e);return t.w=0,t.n=0,t},Qa=e=>(e.w&Pt)>0,Za=e=>(e.n&Pt)>0,kf=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r{(c==="length"||!an(c)&&c>=l)&&a.push(f)})}else switch(n!==void 0&&a.push(o.get(n)),t){case"add":B(e)?bs(n)&&a.push(o.get("length")):(a.push(o.get(Bt)),rn(e)&&a.push(o.get(Fi)));break;case"delete":B(e)||(a.push(o.get(Bt)),rn(e)&&a.push(o.get(Fi)));break;case"set":rn(e)&&a.push(o.get(Bt));break}if(a.length===1)a[0]&&ji(a[0]);else{const l=[];for(const f of a)f&&l.push(...f);ji(_s(l))}}function ji(e,t){const n=B(e)?e:[...e];for(const r of n)r.computed&&fo(r);for(const r of n)r.computed||fo(r)}function fo(e,t){(e!==ze||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function Sf(e,t){var n;return(n=jr.get(e))==null?void 0:n.get(t)}const Of=hs("__proto__,__v_isRef,__isVue"),nl=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(an)),uo=Cf();function Cf(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=G(this);for(let s=0,o=this.length;s{e[t]=function(...n){bn();const r=G(this)[t].apply(this,n);return yn(),r}}),e}function Rf(e){const t=G(this);return Ce(t,"has",e),t.hasOwnProperty(e)}class rl{constructor(t=!1,n=!1){this._isReadonly=t,this._shallow=n}get(t,n,r){const i=this._isReadonly,s=this._shallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return s;if(n==="__v_raw"&&r===(i?s?Bf:al:s?ol:sl).get(t))return t;const o=B(t);if(!i){if(o&&Q(uo,n))return Reflect.get(uo,n,r);if(n==="hasOwnProperty")return Rf}const a=Reflect.get(t,n,r);return(an(n)?nl.has(n):Of(n))||(i||Ce(t,"get",n),s)?a:me(a)?o&&bs(n)?a:a.value:se(a)?i?cl(a):nr(a):a}}class il extends rl{constructor(t=!1){super(!1,t)}set(t,n,r,i){let s=t[n];if(cn(s)&&me(s)&&!me(r))return!1;if(!this._shallow&&(!Dr(r)&&!cn(r)&&(s=G(s),r=G(r)),!B(t)&&me(s)&&!me(r)))return s.value=r,!0;const o=B(t)&&bs(n)?Number(n)e,Xr=e=>Reflect.getPrototypeOf(e);function cr(e,t,n=!1,r=!1){e=e.__v_raw;const i=G(e),s=G(t);n||(qt(t,s)&&Ce(i,"get",t),Ce(i,"get",s));const{has:o}=Xr(i),a=r?Es:n?Ss:$n;if(o.call(i,t))return a(e.get(t));if(o.call(i,s))return a(e.get(s));e!==i&&e.get(t)}function fr(e,t=!1){const n=this.__v_raw,r=G(n),i=G(e);return t||(qt(e,i)&&Ce(r,"has",e),Ce(r,"has",i)),e===i?n.has(e):n.has(e)||n.has(i)}function ur(e,t=!1){return e=e.__v_raw,!t&&Ce(G(e),"iterate",Bt),Reflect.get(e,"size",e)}function mo(e){e=G(e);const t=G(this);return Xr(t).has.call(t,e)||(t.add(e),lt(t,"add",e,e)),this}function po(e,t){t=G(t);const n=G(this),{has:r,get:i}=Xr(n);let s=r.call(n,e);s||(e=G(e),s=r.call(n,e));const o=i.call(n,e);return n.set(e,t),s?qt(t,o)&<(n,"set",e,t):lt(n,"add",e,t),this}function ho(e){const t=G(this),{has:n,get:r}=Xr(t);let i=n.call(t,e);i||(e=G(e),i=n.call(t,e)),r&&r.call(t,e);const s=t.delete(e);return i&<(t,"delete",e,void 0),s}function go(){const e=G(this),t=e.size!==0,n=e.clear();return t&<(e,"clear",void 0,void 0),n}function dr(e,t){return function(r,i){const s=this,o=s.__v_raw,a=G(o),l=t?Es:e?Ss:$n;return!e&&Ce(a,"iterate",Bt),o.forEach((f,c)=>r.call(i,l(f),l(c),s))}}function mr(e,t,n){return function(...r){const i=this.__v_raw,s=G(i),o=rn(s),a=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,f=i[e](...r),c=n?Es:t?Ss:$n;return!t&&Ce(s,"iterate",l?Fi:Bt),{next(){const{value:u,done:m}=f.next();return m?{value:u,done:m}:{value:a?[c(u[0]),c(u[1])]:c(u),done:m}},[Symbol.iterator](){return this}}}}function wt(e){return function(...t){return e==="delete"?!1:this}}function Mf(){const e={get(s){return cr(this,s)},get size(){return ur(this)},has:fr,add:mo,set:po,delete:ho,clear:go,forEach:dr(!1,!1)},t={get(s){return cr(this,s,!1,!0)},get size(){return ur(this)},has:fr,add:mo,set:po,delete:ho,clear:go,forEach:dr(!1,!0)},n={get(s){return cr(this,s,!0)},get size(){return ur(this,!0)},has(s){return fr.call(this,s,!0)},add:wt("add"),set:wt("set"),delete:wt("delete"),clear:wt("clear"),forEach:dr(!0,!1)},r={get(s){return cr(this,s,!0,!0)},get size(){return ur(this,!0)},has(s){return fr.call(this,s,!0)},add:wt("add"),set:wt("set"),delete:wt("delete"),clear:wt("clear"),forEach:dr(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{e[s]=mr(s,!1,!1),n[s]=mr(s,!0,!1),t[s]=mr(s,!1,!0),r[s]=mr(s,!0,!0)}),[e,n,t,r]}const[Lf,Ff,jf,Df]=Mf();function ks(e,t){const n=t?e?Df:jf:e?Ff:Lf;return(r,i,s)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?r:Reflect.get(Q(n,i)&&i in r?n:r,i,s)}const $f={get:ks(!1,!1)},zf={get:ks(!1,!0)},Hf={get:ks(!0,!1)},sl=new WeakMap,ol=new WeakMap,al=new WeakMap,Bf=new WeakMap;function Uf(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function qf(e){return e.__v_skip||!Object.isExtensible(e)?0:Uf(uf(e))}function nr(e){return cn(e)?e:As(e,!1,Tf,$f,sl)}function ll(e){return As(e,!1,Nf,zf,ol)}function cl(e){return As(e,!0,If,Hf,al)}function As(e,t,n,r,i){if(!se(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=i.get(e);if(s)return s;const o=qf(e);if(o===0)return e;const a=new Proxy(e,o===2?r:n);return i.set(e,a),a}function ct(e){return cn(e)?ct(e.__v_raw):!!(e&&e.__v_isReactive)}function cn(e){return!!(e&&e.__v_isReadonly)}function Dr(e){return!!(e&&e.__v_isShallow)}function fl(e){return ct(e)||cn(e)}function G(e){const t=e&&e.__v_raw;return t?G(t):e}function Gr(e){return Lr(e,"__v_skip",!0),e}const $n=e=>se(e)?nr(e):e,Ss=e=>se(e)?cl(e):e;function ul(e){Ct&&ze&&(e=G(e),tl(e.dep||(e.dep=_s())))}function dl(e,t){e=G(e);const n=e.dep;n&&ji(n)}function me(e){return!!(e&&e.__v_isRef===!0)}function Qr(e){return ml(e,!1)}function Vf(e){return ml(e,!0)}function ml(e,t){return me(e)?e:new Wf(e,t)}class Wf{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:G(t),this._value=n?t:$n(t)}get value(){return ul(this),this._value}set value(t){const n=this.__v_isShallow||Dr(t)||cn(t);t=n?t:G(t),qt(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:$n(t),dl(this))}}function ft(e){return me(e)?e.value:e}const Kf={get:(e,t,n)=>ft(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const i=e[t];return me(i)&&!me(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function pl(e){return ct(e)?e:new Proxy(e,Kf)}function hl(e){const t=B(e)?new Array(e.length):{};for(const n in e)t[n]=gl(e,n);return t}class Yf{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return Sf(G(this._object),this._key)}}class Jf{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function Xf(e,t,n){return me(e)?e:V(e)?new Jf(e):se(e)&&arguments.length>1?gl(e,t,n):Qr(e)}function gl(e,t,n){const r=e[t];return me(r)?r:new Yf(e,t,n)}class Gf{constructor(t,n,r,i){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new xs(t,()=>{this._dirty||(this._dirty=!0,dl(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=r}get value(){const t=G(this);return ul(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function Qf(e,t,n=!1){let r,i;const s=V(e);return s?(r=e,i=Ue):(r=e.get,i=e.set),new Gf(r,i,s||!i,n)}function Rt(e,t,n,r){let i;try{i=r?e(...r):e()}catch(s){Zr(s,t,n)}return i}function qe(e,t,n,r){if(V(e)){const s=Rt(e,t,n,r);return s&&qa(s)&&s.catch(o=>{Zr(o,t,n)}),s}const i=[];for(let s=0;s>>1,i=ke[r],s=Hn(i);sGe&&ke.splice(t,1)}function nu(e){B(e)?sn.push(...e):(!at||!at.includes(e,e.allowRecurse?jt+1:jt))&&sn.push(e),bl()}function vo(e,t=zn?Ge+1:0){for(;tHn(n)-Hn(r)),jt=0;jte.id==null?1/0:e.id,ru=(e,t)=>{const n=Hn(e)-Hn(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function wl(e){Di=!1,zn=!0,ke.sort(ru);const t=Ue;try{for(Ge=0;Gebe(h)?h.trim():h)),u&&(i=n.map(Fr))}let a,l=r[a=bi(t)]||r[a=bi(nt(t))];!l&&s&&(l=r[a=bi(vn(t))]),l&&qe(l,e,6,i);const f=r[a+"Once"];if(f){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,qe(f,e,6,i)}}function _l(e,t,n=!1){const r=t.emitsCache,i=r.get(e);if(i!==void 0)return i;const s=e.emits;let o={},a=!1;if(!V(e)){const l=f=>{const c=_l(f,t,!0);c&&(a=!0,_e(o,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!s&&!a?(se(e)&&r.set(e,null),null):(B(s)?s.forEach(l=>o[l]=null):_e(o,s),se(e)&&r.set(e,o),o)}function ei(e,t){return!e||!Wr(t)?!1:(t=t.slice(2).replace(/Once$/,""),Q(e,t[0].toLowerCase()+t.slice(1))||Q(e,vn(t))||Q(e,t))}let Ie=null,xl=null;function $r(e){const t=Ie;return Ie=e,xl=e&&e.type.__scopeId||null,t}function El(e,t=Ie,n){if(!t||e._n)return e;const r=(...i)=>{r._d&&Co(-1);const s=$r(t);let o;try{o=e(...i)}finally{$r(s),r._d&&Co(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function yi(e){const{type:t,vnode:n,proxy:r,withProxy:i,props:s,propsOptions:[o],slots:a,attrs:l,emit:f,render:c,renderCache:u,data:m,setupState:h,ctx:v,inheritAttrs:y}=e;let O,P;const S=$r(e);try{if(n.shapeFlag&4){const M=i||r;O=Xe(c.call(M,M,u,s,h,m,v)),P=l}else{const M=t;O=Xe(M.length>1?M(s,{attrs:l,slots:a,emit:f}):M(s,null)),P=t.props?l:su(l)}}catch(M){Nn.length=0,Zr(M,e,1),O=ge(Vt)}let D=O;if(P&&y!==!1){const M=Object.keys(P),{shapeFlag:K}=D;M.length&&K&7&&(o&&M.some(gs)&&(P=ou(P,o)),D=fn(D,P))}return n.dirs&&(D=fn(D),D.dirs=D.dirs?D.dirs.concat(n.dirs):n.dirs),n.transition&&(D.transition=n.transition),O=D,$r(S),O}const su=e=>{let t;for(const n in e)(n==="class"||n==="style"||Wr(n))&&((t||(t={}))[n]=e[n]);return t},ou=(e,t)=>{const n={};for(const r in e)(!gs(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function au(e,t,n){const{props:r,children:i,component:s}=e,{props:o,children:a,patchFlag:l}=t,f=s.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?bo(r,o,f):!!o;if(l&8){const c=t.dynamicProps;for(let u=0;ue.__isSuspense;function du(e,t){t&&t.pendingBranch?B(e)?t.effects.push(...e):t.effects.push(e):nu(e)}const pr={};function Tn(e,t,n){return Sl(e,t,n)}function Sl(e,t,{immediate:n,deep:r,flush:i,onTrack:s,onTrigger:o}=ae){var a;const l=Ga()===((a=we)==null?void 0:a.scope)?we:null;let f,c=!1,u=!1;if(me(e)?(f=()=>e.value,c=Dr(e)):ct(e)?(f=()=>e,r=!0):B(e)?(u=!0,c=e.some(M=>ct(M)||Dr(M)),f=()=>e.map(M=>{if(me(M))return M.value;if(ct(M))return $t(M);if(V(M))return Rt(M,l,2)})):V(e)?t?f=()=>Rt(e,l,2):f=()=>{if(!(l&&l.isUnmounted))return m&&m(),qe(e,l,3,[h])}:f=Ue,t&&r){const M=f;f=()=>$t(M())}let m,h=M=>{m=S.onStop=()=>{Rt(M,l,4)}},v;if(Vn)if(h=Ue,t?n&&qe(t,l,3,[f(),u?[]:void 0,h]):f(),i==="sync"){const M=sd();v=M.__watcherHandles||(M.__watcherHandles=[])}else return Ue;let y=u?new Array(e.length).fill(pr):pr;const O=()=>{if(!!S.active)if(t){const M=S.run();(r||c||(u?M.some((K,fe)=>qt(K,y[fe])):qt(M,y)))&&(m&&m(),qe(t,l,3,[M,y===pr?void 0:u&&y[0]===pr?[]:y,h]),y=M)}else S.run()};O.allowRecurse=!!t;let P;i==="sync"?P=O:i==="post"?P=()=>Oe(O,l&&l.suspense):(O.pre=!0,l&&(O.id=l.uid),P=()=>Rs(O));const S=new xs(f,P);t?n?O():y=S.run():i==="post"?Oe(S.run.bind(S),l&&l.suspense):S.run();const D=()=>{S.stop(),l&&l.scope&&vs(l.scope.effects,S)};return v&&v.push(D),D}function mu(e,t,n){const r=this.proxy,i=be(e)?e.includes(".")?Ol(r,e):()=>r[e]:e.bind(r,r);let s;V(t)?s=t:(s=t.handler,n=t);const o=we;un(this);const a=Sl(i,s.bind(r),n);return o?un(o):Ut(),a}function Ol(e,t){const n=t.split(".");return()=>{let r=e;for(let i=0;i{$t(n,t)});else if(Wa(e))for(const n in e)$t(e[n],t);return e}function f0(e,t){const n=Ie;if(n===null)return e;const r=ii(n)||n.proxy,i=e.dirs||(e.dirs=[]);for(let s=0;s_e({name:e.name},t,{setup:e}))():e}const Sr=e=>!!e.type.__asyncLoader,Rl=e=>e.type.__isKeepAlive;function pu(e,t){Pl(e,"a",t)}function hu(e,t){Pl(e,"da",t)}function Pl(e,t,n=we){const r=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(ti(t,r,n),n){let i=n.parent;for(;i&&i.parent;)Rl(i.parent.vnode)&&gu(r,t,n,i),i=i.parent}}function gu(e,t,n,r){const i=ti(t,e,r,!0);Tl(()=>{vs(r[t],i)},n)}function ti(e,t,n=we,r=!1){if(n){const i=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...o)=>{if(n.isUnmounted)return;bn(),un(n);const a=qe(t,n,e,o);return Ut(),yn(),a});return r?i.unshift(s):i.push(s),s}}const vt=e=>(t,n=we)=>(!Vn||e==="sp")&&ti(e,(...r)=>t(...r),n),vu=vt("bm"),bu=vt("m"),yu=vt("bu"),wu=vt("u"),_u=vt("bum"),Tl=vt("um"),xu=vt("sp"),Eu=vt("rtg"),ku=vt("rtc");function Au(e,t=we){ti("ec",e,t)}function u0(e,t,n,r){let i;const s=n&&n[r];if(B(e)||be(e)){i=new Array(e.length);for(let o=0,a=e.length;ot(o,a,void 0,s&&s[a]));else{const o=Object.keys(e);i=new Array(o.length);for(let a=0,l=o.length;ae?Bl(e)?ii(e)||e.proxy:$i(e.parent):null,In=_e(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>$i(e.parent),$root:e=>$i(e.root),$emit:e=>e.emit,$options:e=>Ps(e),$forceUpdate:e=>e.f||(e.f=()=>Rs(e.update)),$nextTick:e=>e.n||(e.n=Cs.bind(e.proxy)),$watch:e=>mu.bind(e)}),wi=(e,t)=>e!==ae&&!e.__isScriptSetup&&Q(e,t),Su={get({_:e},t){const{ctx:n,setupState:r,data:i,props:s,accessCache:o,type:a,appContext:l}=e;let f;if(t[0]!=="$"){const h=o[t];if(h!==void 0)switch(h){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return s[t]}else{if(wi(r,t))return o[t]=1,r[t];if(i!==ae&&Q(i,t))return o[t]=2,i[t];if((f=e.propsOptions[0])&&Q(f,t))return o[t]=3,s[t];if(n!==ae&&Q(n,t))return o[t]=4,n[t];zi&&(o[t]=0)}}const c=In[t];let u,m;if(c)return t==="$attrs"&&Ce(e,"get",t),c(e);if((u=a.__cssModules)&&(u=u[t]))return u;if(n!==ae&&Q(n,t))return o[t]=4,n[t];if(m=l.config.globalProperties,Q(m,t))return m[t]},set({_:e},t,n){const{data:r,setupState:i,ctx:s}=e;return wi(i,t)?(i[t]=n,!0):r!==ae&&Q(r,t)?(r[t]=n,!0):Q(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(s[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:s}},o){let a;return!!n[o]||e!==ae&&Q(e,o)||wi(t,o)||(a=s[0])&&Q(a,o)||Q(r,o)||Q(In,o)||Q(i.config.globalProperties,o)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Q(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function wo(e){return B(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let zi=!0;function Ou(e){const t=Ps(e),n=e.proxy,r=e.ctx;zi=!1,t.beforeCreate&&_o(t.beforeCreate,e,"bc");const{data:i,computed:s,methods:o,watch:a,provide:l,inject:f,created:c,beforeMount:u,mounted:m,beforeUpdate:h,updated:v,activated:y,deactivated:O,beforeDestroy:P,beforeUnmount:S,destroyed:D,unmounted:M,render:K,renderTracked:fe,renderTriggered:ue,errorCaptured:Y,serverPrefetch:W,expose:de,inheritAttrs:xe,components:Re,directives:Me,filters:Mt}=t;if(f&&Cu(f,r,null),o)for(const ie in o){const ee=o[ie];V(ee)&&(r[ie]=ee.bind(n))}if(i){const ie=i.call(n,n);se(ie)&&(e.data=nr(ie))}if(zi=!0,s)for(const ie in s){const ee=s[ie],st=V(ee)?ee.bind(n,n):V(ee.get)?ee.get.bind(n,n):Ue,yt=!V(ee)&&V(ee.set)?ee.set.bind(n):Ue,We=Fe({get:st,set:yt});Object.defineProperty(r,ie,{enumerable:!0,configurable:!0,get:()=>We.value,set:Se=>We.value=Se})}if(a)for(const ie in a)Il(a[ie],r,n,ie);if(l){const ie=V(l)?l.call(n):l;Reflect.ownKeys(ie).forEach(ee=>{Or(ee,ie[ee])})}c&&_o(c,e,"c");function Z(ie,ee){B(ee)?ee.forEach(st=>ie(st.bind(n))):ee&&ie(ee.bind(n))}if(Z(vu,u),Z(bu,m),Z(yu,h),Z(wu,v),Z(pu,y),Z(hu,O),Z(Au,Y),Z(ku,fe),Z(Eu,ue),Z(_u,S),Z(Tl,M),Z(xu,W),B(de))if(de.length){const ie=e.exposed||(e.exposed={});de.forEach(ee=>{Object.defineProperty(ie,ee,{get:()=>n[ee],set:st=>n[ee]=st})})}else e.exposed||(e.exposed={});K&&e.render===Ue&&(e.render=K),xe!=null&&(e.inheritAttrs=xe),Re&&(e.components=Re),Me&&(e.directives=Me)}function Cu(e,t,n=Ue){B(e)&&(e=Hi(e));for(const r in e){const i=e[r];let s;se(i)?"default"in i?s=et(i.from||r,i.default,!0):s=et(i.from||r):s=et(i),me(s)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>s.value,set:o=>s.value=o}):t[r]=s}}function _o(e,t,n){qe(B(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Il(e,t,n,r){const i=r.includes(".")?Ol(n,r):()=>n[r];if(be(e)){const s=t[e];V(s)&&Tn(i,s)}else if(V(e))Tn(i,e.bind(n));else if(se(e))if(B(e))e.forEach(s=>Il(s,t,n,r));else{const s=V(e.handler)?e.handler.bind(n):t[e.handler];V(s)&&Tn(i,s,e)}}function Ps(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:s,config:{optionMergeStrategies:o}}=e.appContext,a=s.get(t);let l;return a?l=a:!i.length&&!n&&!r?l=t:(l={},i.length&&i.forEach(f=>zr(l,f,o,!0)),zr(l,t,o)),se(t)&&s.set(t,l),l}function zr(e,t,n,r=!1){const{mixins:i,extends:s}=t;s&&zr(e,s,n,!0),i&&i.forEach(o=>zr(e,o,n,!0));for(const o in t)if(!(r&&o==="expose")){const a=Ru[o]||n&&n[o];e[o]=a?a(e[o],t[o]):t[o]}return e}const Ru={data:xo,props:Eo,emits:Eo,methods:Rn,computed:Rn,beforeCreate:Ae,created:Ae,beforeMount:Ae,mounted:Ae,beforeUpdate:Ae,updated:Ae,beforeDestroy:Ae,beforeUnmount:Ae,destroyed:Ae,unmounted:Ae,activated:Ae,deactivated:Ae,errorCaptured:Ae,serverPrefetch:Ae,components:Rn,directives:Rn,watch:Tu,provide:xo,inject:Pu};function xo(e,t){return t?e?function(){return _e(V(e)?e.call(this,this):e,V(t)?t.call(this,this):t)}:t:e}function Pu(e,t){return Rn(Hi(e),Hi(t))}function Hi(e){if(B(e)){const t={};for(let n=0;n1)return n&&V(t)?t.call(r&&r.proxy):t}}function Mu(){return!!(we||Ie||Bn)}function Lu(e,t,n,r=!1){const i={},s={};Lr(s,ri,1),e.propsDefaults=Object.create(null),Ml(e,t,i,s);for(const o in e.propsOptions[0])o in i||(i[o]=void 0);n?e.props=r?i:ll(i):e.type.props?e.props=i:e.props=s,e.attrs=s}function Fu(e,t,n,r){const{props:i,attrs:s,vnode:{patchFlag:o}}=e,a=G(i),[l]=e.propsOptions;let f=!1;if((r||o>0)&&!(o&16)){if(o&8){const c=e.vnode.dynamicProps;for(let u=0;u{l=!0;const[m,h]=Ll(u,t,!0);_e(o,m),h&&a.push(...h)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!s&&!l)return se(e)&&r.set(e,nn),nn;if(B(s))for(let c=0;c-1,h[1]=y<0||v-1||Q(h,"default"))&&a.push(u)}}}const f=[o,a];return se(e)&&r.set(e,f),f}function ko(e){return e[0]!=="$"}function Ao(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function So(e,t){return Ao(e)===Ao(t)}function Oo(e,t){return B(t)?t.findIndex(n=>So(n,e)):V(t)&&So(t,e)?0:-1}const Fl=e=>e[0]==="_"||e==="$stable",Ts=e=>B(e)?e.map(Xe):[Xe(e)],ju=(e,t,n)=>{if(t._n)return t;const r=El((...i)=>Ts(t(...i)),n);return r._c=!1,r},jl=(e,t,n)=>{const r=e._ctx;for(const i in e){if(Fl(i))continue;const s=e[i];if(V(s))t[i]=ju(i,s,r);else if(s!=null){const o=Ts(s);t[i]=()=>o}}},Dl=(e,t)=>{const n=Ts(t);e.slots.default=()=>n},Du=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=G(t),Lr(t,"_",n)):jl(t,e.slots={})}else e.slots={},t&&Dl(e,t);Lr(e.slots,ri,1)},$u=(e,t,n)=>{const{vnode:r,slots:i}=e;let s=!0,o=ae;if(r.shapeFlag&32){const a=t._;a?n&&a===1?s=!1:(_e(i,t),!n&&a===1&&delete i._):(s=!t.$stable,jl(t,i)),o=t}else t&&(Dl(e,t),o={default:1});if(s)for(const a in i)!Fl(a)&&o[a]==null&&delete i[a]};function Ui(e,t,n,r,i=!1){if(B(e)){e.forEach((m,h)=>Ui(m,t&&(B(t)?t[h]:t),n,r,i));return}if(Sr(r)&&!i)return;const s=r.shapeFlag&4?ii(r.component)||r.component.proxy:r.el,o=i?null:s,{i:a,r:l}=e,f=t&&t.r,c=a.refs===ae?a.refs={}:a.refs,u=a.setupState;if(f!=null&&f!==l&&(be(f)?(c[f]=null,Q(u,f)&&(u[f]=null)):me(f)&&(f.value=null)),V(l))Rt(l,a,12,[o,c]);else{const m=be(l),h=me(l);if(m||h){const v=()=>{if(e.f){const y=m?Q(u,l)?u[l]:c[l]:l.value;i?B(y)&&vs(y,s):B(y)?y.includes(s)||y.push(s):m?(c[l]=[s],Q(u,l)&&(u[l]=c[l])):(l.value=[s],e.k&&(c[e.k]=l.value))}else m?(c[l]=o,Q(u,l)&&(u[l]=o)):h&&(l.value=o,e.k&&(c[e.k]=o))};o?(v.id=-1,Oe(v,n)):v()}}}const Oe=du;function zu(e){return Hu(e)}function Hu(e,t){const n=Mi();n.__VUE__=!0;const{insert:r,remove:i,patchProp:s,createElement:o,createText:a,createComment:l,setText:f,setElementText:c,parentNode:u,nextSibling:m,setScopeId:h=Ue,insertStaticContent:v}=e,y=(d,p,g,b=null,x=null,E=null,T=!1,A=null,C=!!p.dynamicChildren)=>{if(d===p)return;d&&!kn(d,p)&&(b=_(d),Se(d,x,E,!0),d=null),p.patchFlag===-2&&(C=!1,p.dynamicChildren=null);const{type:k,ref:z,shapeFlag:L}=p;switch(k){case ni:O(d,p,g,b);break;case Vt:P(d,p,g,b);break;case Cr:d==null&&S(p,g,b,T);break;case Je:Re(d,p,g,b,x,E,T,A,C);break;default:L&1?K(d,p,g,b,x,E,T,A,C):L&6?Me(d,p,g,b,x,E,T,A,C):(L&64||L&128)&&k.process(d,p,g,b,x,E,T,A,C,R)}z!=null&&x&&Ui(z,d&&d.ref,E,p||d,!p)},O=(d,p,g,b)=>{if(d==null)r(p.el=a(p.children),g,b);else{const x=p.el=d.el;p.children!==d.children&&f(x,p.children)}},P=(d,p,g,b)=>{d==null?r(p.el=l(p.children||""),g,b):p.el=d.el},S=(d,p,g,b)=>{[d.el,d.anchor]=v(d.children,p,g,b,d.el,d.anchor)},D=({el:d,anchor:p},g,b)=>{let x;for(;d&&d!==p;)x=m(d),r(d,g,b),d=x;r(p,g,b)},M=({el:d,anchor:p})=>{let g;for(;d&&d!==p;)g=m(d),i(d),d=g;i(p)},K=(d,p,g,b,x,E,T,A,C)=>{T=T||p.type==="svg",d==null?fe(p,g,b,x,E,T,A,C):W(d,p,x,E,T,A,C)},fe=(d,p,g,b,x,E,T,A)=>{let C,k;const{type:z,props:L,shapeFlag:H,transition:q,dirs:J}=d;if(C=d.el=o(d.type,E,L&&L.is,L),H&8?c(C,d.children):H&16&&Y(d.children,C,null,b,x,E&&z!=="foreignObject",T,A),J&&Lt(d,null,b,"created"),ue(C,d,d.scopeId,T,b),L){for(const re in L)re!=="value"&&!kr(re)&&s(C,re,null,L[re],E,d.children,b,x,Ee);"value"in L&&s(C,"value",null,L.value),(k=L.onVnodeBeforeMount)&&Ye(k,b,d)}J&&Lt(d,null,b,"beforeMount");const oe=Bu(x,q);oe&&q.beforeEnter(C),r(C,p,g),((k=L&&L.onVnodeMounted)||oe||J)&&Oe(()=>{k&&Ye(k,b,d),oe&&q.enter(C),J&&Lt(d,null,b,"mounted")},x)},ue=(d,p,g,b,x)=>{if(g&&h(d,g),b)for(let E=0;E{for(let k=C;k{const A=p.el=d.el;let{patchFlag:C,dynamicChildren:k,dirs:z}=p;C|=d.patchFlag&16;const L=d.props||ae,H=p.props||ae;let q;g&&Ft(g,!1),(q=H.onVnodeBeforeUpdate)&&Ye(q,g,p,d),z&&Lt(p,d,g,"beforeUpdate"),g&&Ft(g,!0);const J=x&&p.type!=="foreignObject";if(k?de(d.dynamicChildren,k,A,g,b,J,E):T||ee(d,p,A,null,g,b,J,E,!1),C>0){if(C&16)xe(A,p,L,H,g,b,x);else if(C&2&&L.class!==H.class&&s(A,"class",null,H.class,x),C&4&&s(A,"style",L.style,H.style,x),C&8){const oe=p.dynamicProps;for(let re=0;re{q&&Ye(q,g,p,d),z&&Lt(p,d,g,"updated")},b)},de=(d,p,g,b,x,E,T)=>{for(let A=0;A{if(g!==b){if(g!==ae)for(const A in g)!kr(A)&&!(A in b)&&s(d,A,g[A],null,T,p.children,x,E,Ee);for(const A in b){if(kr(A))continue;const C=b[A],k=g[A];C!==k&&A!=="value"&&s(d,A,k,C,T,p.children,x,E,Ee)}"value"in b&&s(d,"value",g.value,b.value)}},Re=(d,p,g,b,x,E,T,A,C)=>{const k=p.el=d?d.el:a(""),z=p.anchor=d?d.anchor:a("");let{patchFlag:L,dynamicChildren:H,slotScopeIds:q}=p;q&&(A=A?A.concat(q):q),d==null?(r(k,g,b),r(z,g,b),Y(p.children,g,z,x,E,T,A,C)):L>0&&L&64&&H&&d.dynamicChildren?(de(d.dynamicChildren,H,g,x,E,T,A),(p.key!=null||x&&p===x.subTree)&&$l(d,p,!0)):ee(d,p,g,z,x,E,T,A,C)},Me=(d,p,g,b,x,E,T,A,C)=>{p.slotScopeIds=A,d==null?p.shapeFlag&512?x.ctx.activate(p,g,b,T,C):Mt(p,g,b,x,E,T,C):Le(d,p,C)},Mt=(d,p,g,b,x,E,T)=>{const A=d.component=Gu(d,b,x);if(Rl(d)&&(A.ctx.renderer=R),Qu(A),A.asyncDep){if(x&&x.registerDep(A,Z),!d.el){const C=A.subTree=ge(Vt);P(null,C,p,g)}return}Z(A,d,p,g,x,E,T)},Le=(d,p,g)=>{const b=p.component=d.component;if(au(d,p,g))if(b.asyncDep&&!b.asyncResolved){ie(b,p,g);return}else b.next=p,tu(b.update),b.update();else p.el=d.el,b.vnode=p},Z=(d,p,g,b,x,E,T)=>{const A=()=>{if(d.isMounted){let{next:z,bu:L,u:H,parent:q,vnode:J}=d,oe=z,re;Ft(d,!1),z?(z.el=J.el,ie(d,z,T)):z=J,L&&Ar(L),(re=z.props&&z.props.onVnodeBeforeUpdate)&&Ye(re,q,z,J),Ft(d,!0);const he=yi(d),$e=d.subTree;d.subTree=he,y($e,he,u($e.el),_($e),d,x,E),z.el=he.el,oe===null&&lu(d,he.el),H&&Oe(H,x),(re=z.props&&z.props.onVnodeUpdated)&&Oe(()=>Ye(re,q,z,J),x)}else{let z;const{el:L,props:H}=p,{bm:q,m:J,parent:oe}=d,re=Sr(p);if(Ft(d,!1),q&&Ar(q),!re&&(z=H&&H.onVnodeBeforeMount)&&Ye(z,oe,p),Ft(d,!0),L&&te){const he=()=>{d.subTree=yi(d),te(L,d.subTree,d,x,null)};re?p.type.__asyncLoader().then(()=>!d.isUnmounted&&he()):he()}else{const he=d.subTree=yi(d);y(null,he,g,b,d,x,E),p.el=he.el}if(J&&Oe(J,x),!re&&(z=H&&H.onVnodeMounted)){const he=p;Oe(()=>Ye(z,oe,he),x)}(p.shapeFlag&256||oe&&Sr(oe.vnode)&&oe.vnode.shapeFlag&256)&&d.a&&Oe(d.a,x),d.isMounted=!0,p=g=b=null}},C=d.effect=new xs(A,()=>Rs(k),d.scope),k=d.update=()=>C.run();k.id=d.uid,Ft(d,!0),k()},ie=(d,p,g)=>{p.component=d;const b=d.vnode.props;d.vnode=p,d.next=null,Fu(d,p.props,b,g),$u(d,p.children,g),bn(),vo(),yn()},ee=(d,p,g,b,x,E,T,A,C=!1)=>{const k=d&&d.children,z=d?d.shapeFlag:0,L=p.children,{patchFlag:H,shapeFlag:q}=p;if(H>0){if(H&128){yt(k,L,g,b,x,E,T,A,C);return}else if(H&256){st(k,L,g,b,x,E,T,A,C);return}}q&8?(z&16&&Ee(k,x,E),L!==k&&c(g,L)):z&16?q&16?yt(k,L,g,b,x,E,T,A,C):Ee(k,x,E,!0):(z&8&&c(g,""),q&16&&Y(L,g,b,x,E,T,A,C))},st=(d,p,g,b,x,E,T,A,C)=>{d=d||nn,p=p||nn;const k=d.length,z=p.length,L=Math.min(k,z);let H;for(H=0;Hz?Ee(d,x,E,!0,!1,L):Y(p,g,b,x,E,T,A,C,L)},yt=(d,p,g,b,x,E,T,A,C)=>{let k=0;const z=p.length;let L=d.length-1,H=z-1;for(;k<=L&&k<=H;){const q=d[k],J=p[k]=C?At(p[k]):Xe(p[k]);if(kn(q,J))y(q,J,g,null,x,E,T,A,C);else break;k++}for(;k<=L&&k<=H;){const q=d[L],J=p[H]=C?At(p[H]):Xe(p[H]);if(kn(q,J))y(q,J,g,null,x,E,T,A,C);else break;L--,H--}if(k>L){if(k<=H){const q=H+1,J=qH)for(;k<=L;)Se(d[k],x,E,!0),k++;else{const q=k,J=k,oe=new Map;for(k=J;k<=H;k++){const Pe=p[k]=C?At(p[k]):Xe(p[k]);Pe.key!=null&&oe.set(Pe.key,k)}let re,he=0;const $e=H-J+1;let Xt=!1,io=0;const En=new Array($e);for(k=0;k<$e;k++)En[k]=0;for(k=q;k<=L;k++){const Pe=d[k];if(he>=$e){Se(Pe,x,E,!0);continue}let Ke;if(Pe.key!=null)Ke=oe.get(Pe.key);else for(re=J;re<=H;re++)if(En[re-J]===0&&kn(Pe,p[re])){Ke=re;break}Ke===void 0?Se(Pe,x,E,!0):(En[Ke-J]=k+1,Ke>=io?io=Ke:Xt=!0,y(Pe,p[Ke],g,null,x,E,T,A,C),he++)}const so=Xt?Uu(En):nn;for(re=so.length-1,k=$e-1;k>=0;k--){const Pe=J+k,Ke=p[Pe],oo=Pe+1{const{el:E,type:T,transition:A,children:C,shapeFlag:k}=d;if(k&6){We(d.component.subTree,p,g,b);return}if(k&128){d.suspense.move(p,g,b);return}if(k&64){T.move(d,p,g,R);return}if(T===Je){r(E,p,g);for(let L=0;LA.enter(E),x);else{const{leave:L,delayLeave:H,afterLeave:q}=A,J=()=>r(E,p,g),oe=()=>{L(E,()=>{J(),q&&q()})};H?H(E,J,oe):oe()}else r(E,p,g)},Se=(d,p,g,b=!1,x=!1)=>{const{type:E,props:T,ref:A,children:C,dynamicChildren:k,shapeFlag:z,patchFlag:L,dirs:H}=d;if(A!=null&&Ui(A,null,g,d,!0),z&256){p.ctx.deactivate(d);return}const q=z&1&&H,J=!Sr(d);let oe;if(J&&(oe=T&&T.onVnodeBeforeUnmount)&&Ye(oe,p,d),z&6)lr(d.component,g,b);else{if(z&128){d.suspense.unmount(g,b);return}q&&Lt(d,null,p,"beforeUnmount"),z&64?d.type.remove(d,p,g,x,R,b):k&&(E!==Je||L>0&&L&64)?Ee(k,p,g,!1,!0):(E===Je&&L&384||!x&&z&16)&&Ee(C,p,g),b&&Yt(d)}(J&&(oe=T&&T.onVnodeUnmounted)||q)&&Oe(()=>{oe&&Ye(oe,p,d),q&&Lt(d,null,p,"unmounted")},g)},Yt=d=>{const{type:p,el:g,anchor:b,transition:x}=d;if(p===Je){Jt(g,b);return}if(p===Cr){M(d);return}const E=()=>{i(g),x&&!x.persisted&&x.afterLeave&&x.afterLeave()};if(d.shapeFlag&1&&x&&!x.persisted){const{leave:T,delayLeave:A}=x,C=()=>T(g,E);A?A(d.el,E,C):C()}else E()},Jt=(d,p)=>{let g;for(;d!==p;)g=m(d),i(d),d=g;i(p)},lr=(d,p,g)=>{const{bum:b,scope:x,update:E,subTree:T,um:A}=d;b&&Ar(b),x.stop(),E&&(E.active=!1,Se(T,d,p,g)),A&&Oe(A,p),Oe(()=>{d.isUnmounted=!0},p),p&&p.pendingBranch&&!p.isUnmounted&&d.asyncDep&&!d.asyncResolved&&d.suspenseId===p.pendingId&&(p.deps--,p.deps===0&&p.resolve())},Ee=(d,p,g,b=!1,x=!1,E=0)=>{for(let T=E;Td.shapeFlag&6?_(d.component.subTree):d.shapeFlag&128?d.suspense.next():m(d.anchor||d.el),N=(d,p,g)=>{d==null?p._vnode&&Se(p._vnode,null,null,!0):y(p._vnode||null,d,p,null,null,null,g),vo(),yl(),p._vnode=d},R={p:y,um:Se,m:We,r:Yt,mt:Mt,mc:Y,pc:ee,pbc:de,n:_,o:e};let j,te;return t&&([j,te]=t(R)),{render:N,hydrate:j,createApp:Nu(N,j)}}function Ft({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Bu(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function $l(e,t,n=!1){const r=e.children,i=t.children;if(B(r)&&B(i))for(let s=0;s>1,e[n[a]]0&&(t[r]=n[s-1]),n[s]=r)}}for(s=n.length,o=n[s-1];s-- >0;)n[s]=o,o=t[o];return n}const qu=e=>e.__isTeleport,Je=Symbol.for("v-fgt"),ni=Symbol.for("v-txt"),Vt=Symbol.for("v-cmt"),Cr=Symbol.for("v-stc"),Nn=[];let He=null;function je(e=!1){Nn.push(He=e?null:[])}function Vu(){Nn.pop(),He=Nn[Nn.length-1]||null}let Un=1;function Co(e){Un+=e}function zl(e){return e.dynamicChildren=Un>0?He||nn:null,Vu(),Un>0&&He&&He.push(e),e}function ut(e,t,n,r,i,s){return zl(U(e,t,n,r,i,s,!0))}function qi(e,t,n,r,i){return zl(ge(e,t,n,r,i,!0))}function Vi(e){return e?e.__v_isVNode===!0:!1}function kn(e,t){return e.type===t.type&&e.key===t.key}const ri="__vInternal",Hl=({key:e})=>e!=null?e:null,Rr=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?be(e)||me(e)||V(e)?{i:Ie,r:e,k:t,f:!!n}:e:null);function U(e,t=null,n=null,r=0,i=null,s=e===Je?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Hl(t),ref:t&&Rr(t),scopeId:xl,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Ie};return a?(Is(l,n),s&128&&e.normalize(l)):n&&(l.shapeFlag|=be(n)?8:16),Un>0&&!o&&He&&(l.patchFlag>0||s&6)&&l.patchFlag!==32&&He.push(l),l}const ge=Wu;function Wu(e,t=null,n=null,r=0,i=null,s=!1){if((!e||e===cu)&&(e=Vt),Vi(e)){const a=fn(e,t,!0);return n&&Is(a,n),Un>0&&!s&&He&&(a.shapeFlag&6?He[He.indexOf(e)]=a:He.push(a)),a.patchFlag|=-2,a}if(rd(e)&&(e=e.__vccOpts),t){t=Ku(t);let{class:a,style:l}=t;a&&!be(a)&&(t.class=tr(a)),se(l)&&(fl(l)&&!B(l)&&(l=_e({},l)),t.style=ys(l))}const o=be(e)?1:uu(e)?128:qu(e)?64:se(e)?4:V(e)?2:0;return U(e,t,n,r,i,o,s,!0)}function Ku(e){return e?fl(e)||ri in e?_e({},e):e:null}function fn(e,t,n=!1){const{props:r,ref:i,patchFlag:s,children:o}=e,a=t?Yu(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&Hl(a),ref:t&&t.ref?n&&i?B(i)?i.concat(Rr(t)):[i,Rr(t)]:Rr(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Je?s===-1?16:s|16:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&fn(e.ssContent),ssFallback:e.ssFallback&&fn(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function qn(e=" ",t=0){return ge(ni,null,e,t)}function d0(e,t){const n=ge(Cr,null,e);return n.staticCount=t,n}function Wi(e="",t=!1){return t?(je(),qi(Vt,null,e)):ge(Vt,null,e)}function Xe(e){return e==null||typeof e=="boolean"?ge(Vt):B(e)?ge(Je,null,e.slice()):typeof e=="object"?At(e):ge(ni,null,String(e))}function At(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:fn(e)}function Is(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(B(t))n=16;else if(typeof t=="object")if(r&65){const i=t.default;i&&(i._c&&(i._d=!1),Is(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!(ri in t)?t._ctx=Ie:i===3&&Ie&&(Ie.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else V(t)?(t={default:t,_ctx:Ie},n=32):(t=String(t),r&64?(n=16,t=[qn(t)]):n=8);e.children=t,e.shapeFlag|=n}function Yu(...e){const t={};for(let n=0;nwe=e),Ns=e=>{Gt.length>1?Gt.forEach(t=>t(e)):Gt[0](e)};const un=e=>{Ns(e),e.scope.on()},Ut=()=>{we&&we.scope.off(),Ns(null)};function Bl(e){return e.vnode.shapeFlag&4}let Vn=!1;function Qu(e,t=!1){Vn=t;const{props:n,children:r}=e.vnode,i=Bl(e);Lu(e,n,i,t),Du(e,r);const s=i?Zu(e,t):void 0;return Vn=!1,s}function Zu(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Gr(new Proxy(e.ctx,Su));const{setup:r}=n;if(r){const i=e.setupContext=r.length>1?td(e):null;un(e),bn();const s=Rt(r,e,0,[e.props,i]);if(yn(),Ut(),qa(s)){if(s.then(Ut,Ut),t)return s.then(o=>{Po(e,o,t)}).catch(o=>{Zr(o,e,0)});e.asyncDep=s}else Po(e,s,t)}else Ul(e,t)}function Po(e,t,n){V(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:se(t)&&(e.setupState=pl(t)),Ul(e,n)}let To;function Ul(e,t,n){const r=e.type;if(!e.render){if(!t&&To&&!r.render){const i=r.template||Ps(e).template;if(i){const{isCustomElement:s,compilerOptions:o}=e.appContext.config,{delimiters:a,compilerOptions:l}=r,f=_e(_e({isCustomElement:s,delimiters:a},o),l);r.render=To(i,f)}}e.render=r.render||Ue}{un(e),bn();try{Ou(e)}finally{yn(),Ut()}}}function ed(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return Ce(e,"get","$attrs"),t[n]}}))}function td(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return ed(e)},slots:e.slots,emit:e.emit,expose:t}}function ii(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(pl(Gr(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in In)return In[n](e)},has(t,n){return n in t||n in In}}))}function nd(e,t=!0){return V(e)?e.displayName||e.name:e.name||t&&e.__name}function rd(e){return V(e)&&"__vccOpts"in e}const Fe=(e,t)=>Qf(e,t,Vn);function ql(e,t,n){const r=arguments.length;return r===2?se(t)&&!B(t)?Vi(t)?ge(e,null,[t]):ge(e,t):ge(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Vi(n)&&(n=[n]),ge(e,t,n))}const id=Symbol.for("v-scx"),sd=()=>et(id),od="3.3.8",ad="http://www.w3.org/2000/svg",Dt=typeof document<"u"?document:null,Io=Dt&&Dt.createElement("template"),ld={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const i=t?Dt.createElementNS(ad,e):Dt.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&i.setAttribute("multiple",r.multiple),i},createText:e=>Dt.createTextNode(e),createComment:e=>Dt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Dt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,i,s){const o=n?n.previousSibling:t.lastChild;if(i&&(i===s||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===s||!(i=i.nextSibling)););else{Io.innerHTML=r?`${e}`:e;const a=Io.content;if(r){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},cd=Symbol("_vtc");function fd(e,t,n){const r=e[cd];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Ms=Symbol("_vod"),m0={beforeMount(e,{value:t},{transition:n}){e[Ms]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):An(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),An(e,!0),r.enter(e)):r.leave(e,()=>{An(e,!1)}):An(e,t))},beforeUnmount(e,{value:t}){An(e,t)}};function An(e,t){e.style.display=t?e[Ms]:"none"}function ud(e,t,n){const r=e.style,i=be(n);if(n&&!i){if(t&&!be(t))for(const s in t)n[s]==null&&Ki(r,s,"");for(const s in n)Ki(r,s,n[s])}else{const s=r.display;i?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),Ms in e&&(r.display=s)}}const No=/\s*!important$/;function Ki(e,t,n){if(B(n))n.forEach(r=>Ki(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=dd(e,t);No.test(n)?e.setProperty(vn(r),n.replace(No,""),"important"):e[r]=n}}const Mo=["Webkit","Moz","ms"],_i={};function dd(e,t){const n=_i[t];if(n)return n;let r=nt(t);if(r!=="filter"&&r in e)return _i[t]=r;r=Jr(r);for(let i=0;ixi||(bd.then(()=>xi=0),xi=Date.now());function wd(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;qe(_d(r,n.value),t,5,[r])};return n.value=e,n.attached=yd(),n}function _d(e,t){if(B(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>i=>!i._stopped&&r&&r(i))}else return t}const Do=/^on[a-z]/,xd=(e,t,n,r,i=!1,s,o,a,l)=>{t==="class"?fd(e,r,i):t==="style"?ud(e,n,r):Wr(t)?gs(t)||gd(e,t,n,r,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Ed(e,t,r,i))?pd(e,t,r,s,o,a,l):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),md(e,t,r,i))};function Ed(e,t,n,r){return r?!!(t==="innerHTML"||t==="textContent"||t in e&&Do.test(t)&&V(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Do.test(t)&&be(n)?!1:t in e}const dn=e=>{const t=e.props["onUpdate:modelValue"]||!1;return B(t)?n=>Ar(t,n):t};function kd(e){e.target.composing=!0}function $o(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const dt=Symbol("_assign"),p0={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e[dt]=dn(i);const s=r||i.props&&i.props.type==="number";Ot(e,t?"change":"input",o=>{if(o.target.composing)return;let a=e.value;n&&(a=a.trim()),s&&(a=Fr(a)),e[dt](a)}),n&&Ot(e,"change",()=>{e.value=e.value.trim()}),t||(Ot(e,"compositionstart",kd),Ot(e,"compositionend",$o),Ot(e,"change",$o))},mounted(e,{value:t}){e.value=t==null?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:i}},s){if(e[dt]=dn(s),e.composing||document.activeElement===e&&e.type!=="range"&&(n||r&&e.value.trim()===t||(i||e.type==="number")&&Fr(e.value)===t))return;const o=t==null?"":t;e.value!==o&&(e.value=o)}},h0={created(e,{value:t},n){e.checked=ln(t,n.props.value),e[dt]=dn(n),Ot(e,"change",()=>{e[dt](Wn(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[dt]=dn(r),t!==n&&(e.checked=ln(t,r.props.value))}},g0={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const i=Kr(t);Ot(e,"change",()=>{const s=Array.prototype.filter.call(e.options,o=>o.selected).map(o=>n?Fr(Wn(o)):Wn(o));e[dt](e.multiple?i?new Set(s):s:s[0])}),e[dt]=dn(r)},mounted(e,{value:t}){zo(e,t)},beforeUpdate(e,t,n){e[dt]=dn(n)},updated(e,{value:t}){zo(e,t)}};function zo(e,t){const n=e.multiple;if(!(n&&!B(t)&&!Kr(t))){for(let r=0,i=e.options.length;r-1:s.selected=t.has(o);else if(ln(Wn(s),t)){e.selectedIndex!==r&&(e.selectedIndex=r);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Wn(e){return"_value"in e?e._value:e.value}const Ad=_e({patchProp:xd},ld);let Ho;function Sd(){return Ho||(Ho=zu(Ad))}const Od=(...e)=>{const t=Sd().createApp(...e),{mount:n}=t;return t.mount=r=>{const i=Cd(r);if(!i)return;const s=t._component;!V(s)&&!s.render&&!s.template&&(s.template=i.innerHTML),i.innerHTML="";const o=n(i,!1,i instanceof SVGElement);return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),o},t};function Cd(e){return be(e)?document.querySelector(e):e}var Vl=!1;/*! +(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerpolicy&&(s.referrerPolicy=i.referrerpolicy),i.crossorigin==="use-credentials"?s.credentials="include":i.crossorigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();function hs(e,t){const n=Object.create(null),r=e.split(",");for(let i=0;i!!n[i.toLowerCase()]:i=>!!n[i]}const ae={},nn=[],Ue=()=>{},lf=()=>!1,cf=/^on[^a-z]/,Wr=e=>cf.test(e),gs=e=>e.startsWith("onUpdate:"),_e=Object.assign,vs=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},ff=Object.prototype.hasOwnProperty,Q=(e,t)=>ff.call(e,t),B=Array.isArray,rn=e=>er(e)==="[object Map]",Kr=e=>er(e)==="[object Set]",ao=e=>er(e)==="[object Date]",V=e=>typeof e=="function",be=e=>typeof e=="string",an=e=>typeof e=="symbol",se=e=>e!==null&&typeof e=="object",qa=e=>(se(e)||V(e))&&V(e.then)&&V(e.catch),Va=Object.prototype.toString,er=e=>Va.call(e),uf=e=>er(e).slice(8,-1),Wa=e=>er(e)==="[object Object]",bs=e=>be(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,kr=hs(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Yr=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},df=/-(\w)/g,nt=Yr(e=>e.replace(df,(t,n)=>n?n.toUpperCase():"")),mf=/\B([A-Z])/g,vn=Yr(e=>e.replace(mf,"-$1").toLowerCase()),Jr=Yr(e=>e.charAt(0).toUpperCase()+e.slice(1)),bi=Yr(e=>e?`on${Jr(e)}`:""),qt=(e,t)=>!Object.is(e,t),Ar=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Fr=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let lo;const Mi=()=>lo||(lo=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function ys(e){if(B(e)){const t={};for(let n=0;n{if(n){const r=n.split(hf);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function tr(e){let t="";if(be(e))t=e;else if(B(e))for(let n=0;nln(n,t))}const ws=e=>be(e)?e:e==null?"":B(e)||se(e)&&(e.toString===Va||!V(e.toString))?JSON.stringify(e,Ya,2):String(e),Ya=(e,t)=>t&&t.__v_isRef?Ya(e,t.value):rn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,i])=>(n[`${r} =>`]=i,n),{})}:Kr(t)?{[`Set(${t.size})`]:[...t.values()]}:se(t)&&!B(t)&&!Wa(t)?String(t):t;let Te;class Ja{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Te,!t&&Te&&(this.index=(Te.scopes||(Te.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Te;try{return Te=this,t()}finally{Te=n}}}on(){Te=this}off(){Te=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n{const t=new Set(e);return t.w=0,t.n=0,t},Qa=e=>(e.w&Pt)>0,Za=e=>(e.n&Pt)>0,kf=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r{(c==="length"||!an(c)&&c>=l)&&a.push(f)})}else switch(n!==void 0&&a.push(o.get(n)),t){case"add":B(e)?bs(n)&&a.push(o.get("length")):(a.push(o.get(Bt)),rn(e)&&a.push(o.get(Fi)));break;case"delete":B(e)||(a.push(o.get(Bt)),rn(e)&&a.push(o.get(Fi)));break;case"set":rn(e)&&a.push(o.get(Bt));break}if(a.length===1)a[0]&&ji(a[0]);else{const l=[];for(const f of a)f&&l.push(...f);ji(_s(l))}}function ji(e,t){const n=B(e)?e:[...e];for(const r of n)r.computed&&fo(r);for(const r of n)r.computed||fo(r)}function fo(e,t){(e!==ze||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function Sf(e,t){var n;return(n=jr.get(e))==null?void 0:n.get(t)}const Of=hs("__proto__,__v_isRef,__isVue"),nl=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(an)),uo=Cf();function Cf(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=G(this);for(let s=0,o=this.length;s{e[t]=function(...n){bn();const r=G(this)[t].apply(this,n);return yn(),r}}),e}function Rf(e){const t=G(this);return Ce(t,"has",e),t.hasOwnProperty(e)}class rl{constructor(t=!1,n=!1){this._isReadonly=t,this._shallow=n}get(t,n,r){const i=this._isReadonly,s=this._shallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return s;if(n==="__v_raw"&&r===(i?s?Bf:al:s?ol:sl).get(t))return t;const o=B(t);if(!i){if(o&&Q(uo,n))return Reflect.get(uo,n,r);if(n==="hasOwnProperty")return Rf}const a=Reflect.get(t,n,r);return(an(n)?nl.has(n):Of(n))||(i||Ce(t,"get",n),s)?a:me(a)?o&&bs(n)?a:a.value:se(a)?i?cl(a):nr(a):a}}class il extends rl{constructor(t=!1){super(!1,t)}set(t,n,r,i){let s=t[n];if(cn(s)&&me(s)&&!me(r))return!1;if(!this._shallow&&(!Dr(r)&&!cn(r)&&(s=G(s),r=G(r)),!B(t)&&me(s)&&!me(r)))return s.value=r,!0;const o=B(t)&&bs(n)?Number(n)e,Xr=e=>Reflect.getPrototypeOf(e);function cr(e,t,n=!1,r=!1){e=e.__v_raw;const i=G(e),s=G(t);n||(qt(t,s)&&Ce(i,"get",t),Ce(i,"get",s));const{has:o}=Xr(i),a=r?Es:n?Ss:$n;if(o.call(i,t))return a(e.get(t));if(o.call(i,s))return a(e.get(s));e!==i&&e.get(t)}function fr(e,t=!1){const n=this.__v_raw,r=G(n),i=G(e);return t||(qt(e,i)&&Ce(r,"has",e),Ce(r,"has",i)),e===i?n.has(e):n.has(e)||n.has(i)}function ur(e,t=!1){return e=e.__v_raw,!t&&Ce(G(e),"iterate",Bt),Reflect.get(e,"size",e)}function mo(e){e=G(e);const t=G(this);return Xr(t).has.call(t,e)||(t.add(e),lt(t,"add",e,e)),this}function po(e,t){t=G(t);const n=G(this),{has:r,get:i}=Xr(n);let s=r.call(n,e);s||(e=G(e),s=r.call(n,e));const o=i.call(n,e);return n.set(e,t),s?qt(t,o)&<(n,"set",e,t):lt(n,"add",e,t),this}function ho(e){const t=G(this),{has:n,get:r}=Xr(t);let i=n.call(t,e);i||(e=G(e),i=n.call(t,e)),r&&r.call(t,e);const s=t.delete(e);return i&<(t,"delete",e,void 0),s}function go(){const e=G(this),t=e.size!==0,n=e.clear();return t&<(e,"clear",void 0,void 0),n}function dr(e,t){return function(r,i){const s=this,o=s.__v_raw,a=G(o),l=t?Es:e?Ss:$n;return!e&&Ce(a,"iterate",Bt),o.forEach((f,c)=>r.call(i,l(f),l(c),s))}}function mr(e,t,n){return function(...r){const i=this.__v_raw,s=G(i),o=rn(s),a=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,f=i[e](...r),c=n?Es:t?Ss:$n;return!t&&Ce(s,"iterate",l?Fi:Bt),{next(){const{value:u,done:m}=f.next();return m?{value:u,done:m}:{value:a?[c(u[0]),c(u[1])]:c(u),done:m}},[Symbol.iterator](){return this}}}}function wt(e){return function(...t){return e==="delete"?!1:this}}function Mf(){const e={get(s){return cr(this,s)},get size(){return ur(this)},has:fr,add:mo,set:po,delete:ho,clear:go,forEach:dr(!1,!1)},t={get(s){return cr(this,s,!1,!0)},get size(){return ur(this)},has:fr,add:mo,set:po,delete:ho,clear:go,forEach:dr(!1,!0)},n={get(s){return cr(this,s,!0)},get size(){return ur(this,!0)},has(s){return fr.call(this,s,!0)},add:wt("add"),set:wt("set"),delete:wt("delete"),clear:wt("clear"),forEach:dr(!0,!1)},r={get(s){return cr(this,s,!0,!0)},get size(){return ur(this,!0)},has(s){return fr.call(this,s,!0)},add:wt("add"),set:wt("set"),delete:wt("delete"),clear:wt("clear"),forEach:dr(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{e[s]=mr(s,!1,!1),n[s]=mr(s,!0,!1),t[s]=mr(s,!1,!0),r[s]=mr(s,!0,!0)}),[e,n,t,r]}const[Lf,Ff,jf,Df]=Mf();function ks(e,t){const n=t?e?Df:jf:e?Ff:Lf;return(r,i,s)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?r:Reflect.get(Q(n,i)&&i in r?n:r,i,s)}const $f={get:ks(!1,!1)},zf={get:ks(!1,!0)},Hf={get:ks(!0,!1)},sl=new WeakMap,ol=new WeakMap,al=new WeakMap,Bf=new WeakMap;function Uf(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function qf(e){return e.__v_skip||!Object.isExtensible(e)?0:Uf(uf(e))}function nr(e){return cn(e)?e:As(e,!1,Tf,$f,sl)}function ll(e){return As(e,!1,Nf,zf,ol)}function cl(e){return As(e,!0,If,Hf,al)}function As(e,t,n,r,i){if(!se(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=i.get(e);if(s)return s;const o=qf(e);if(o===0)return e;const a=new Proxy(e,o===2?r:n);return i.set(e,a),a}function ct(e){return cn(e)?ct(e.__v_raw):!!(e&&e.__v_isReactive)}function cn(e){return!!(e&&e.__v_isReadonly)}function Dr(e){return!!(e&&e.__v_isShallow)}function fl(e){return ct(e)||cn(e)}function G(e){const t=e&&e.__v_raw;return t?G(t):e}function Gr(e){return Lr(e,"__v_skip",!0),e}const $n=e=>se(e)?nr(e):e,Ss=e=>se(e)?cl(e):e;function ul(e){Ct&&ze&&(e=G(e),tl(e.dep||(e.dep=_s())))}function dl(e,t){e=G(e);const n=e.dep;n&&ji(n)}function me(e){return!!(e&&e.__v_isRef===!0)}function Qr(e){return ml(e,!1)}function Vf(e){return ml(e,!0)}function ml(e,t){return me(e)?e:new Wf(e,t)}class Wf{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:G(t),this._value=n?t:$n(t)}get value(){return ul(this),this._value}set value(t){const n=this.__v_isShallow||Dr(t)||cn(t);t=n?t:G(t),qt(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:$n(t),dl(this))}}function ft(e){return me(e)?e.value:e}const Kf={get:(e,t,n)=>ft(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const i=e[t];return me(i)&&!me(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function pl(e){return ct(e)?e:new Proxy(e,Kf)}function hl(e){const t=B(e)?new Array(e.length):{};for(const n in e)t[n]=gl(e,n);return t}class Yf{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return Sf(G(this._object),this._key)}}class Jf{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function Xf(e,t,n){return me(e)?e:V(e)?new Jf(e):se(e)&&arguments.length>1?gl(e,t,n):Qr(e)}function gl(e,t,n){const r=e[t];return me(r)?r:new Yf(e,t,n)}class Gf{constructor(t,n,r,i){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new xs(t,()=>{this._dirty||(this._dirty=!0,dl(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=r}get value(){const t=G(this);return ul(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function Qf(e,t,n=!1){let r,i;const s=V(e);return s?(r=e,i=Ue):(r=e.get,i=e.set),new Gf(r,i,s||!i,n)}function Rt(e,t,n,r){let i;try{i=r?e(...r):e()}catch(s){Zr(s,t,n)}return i}function qe(e,t,n,r){if(V(e)){const s=Rt(e,t,n,r);return s&&qa(s)&&s.catch(o=>{Zr(o,t,n)}),s}const i=[];for(let s=0;s>>1,i=ke[r],s=Hn(i);sGe&&ke.splice(t,1)}function nu(e){B(e)?sn.push(...e):(!at||!at.includes(e,e.allowRecurse?jt+1:jt))&&sn.push(e),bl()}function vo(e,t=zn?Ge+1:0){for(;tHn(n)-Hn(r)),jt=0;jte.id==null?1/0:e.id,ru=(e,t)=>{const n=Hn(e)-Hn(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function wl(e){Di=!1,zn=!0,ke.sort(ru);const t=Ue;try{for(Ge=0;Gebe(h)?h.trim():h)),u&&(i=n.map(Fr))}let a,l=r[a=bi(t)]||r[a=bi(nt(t))];!l&&s&&(l=r[a=bi(vn(t))]),l&&qe(l,e,6,i);const f=r[a+"Once"];if(f){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,qe(f,e,6,i)}}function _l(e,t,n=!1){const r=t.emitsCache,i=r.get(e);if(i!==void 0)return i;const s=e.emits;let o={},a=!1;if(!V(e)){const l=f=>{const c=_l(f,t,!0);c&&(a=!0,_e(o,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!s&&!a?(se(e)&&r.set(e,null),null):(B(s)?s.forEach(l=>o[l]=null):_e(o,s),se(e)&&r.set(e,o),o)}function ei(e,t){return!e||!Wr(t)?!1:(t=t.slice(2).replace(/Once$/,""),Q(e,t[0].toLowerCase()+t.slice(1))||Q(e,vn(t))||Q(e,t))}let Ie=null,xl=null;function $r(e){const t=Ie;return Ie=e,xl=e&&e.type.__scopeId||null,t}function El(e,t=Ie,n){if(!t||e._n)return e;const r=(...i)=>{r._d&&Co(-1);const s=$r(t);let o;try{o=e(...i)}finally{$r(s),r._d&&Co(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function yi(e){const{type:t,vnode:n,proxy:r,withProxy:i,props:s,propsOptions:[o],slots:a,attrs:l,emit:f,render:c,renderCache:u,data:m,setupState:h,ctx:v,inheritAttrs:b}=e;let O,S;const C=$r(e);try{if(n.shapeFlag&4){const M=i||r;O=Xe(c.call(M,M,u,s,h,m,v)),S=l}else{const M=t;O=Xe(M.length>1?M(s,{attrs:l,slots:a,emit:f}):M(s,null)),S=t.props?l:su(l)}}catch(M){Nn.length=0,Zr(M,e,1),O=ge(Vt)}let j=O;if(S&&b!==!1){const M=Object.keys(S),{shapeFlag:K}=j;M.length&&K&7&&(o&&M.some(gs)&&(S=ou(S,o)),j=fn(j,S))}return n.dirs&&(j=fn(j),j.dirs=j.dirs?j.dirs.concat(n.dirs):n.dirs),n.transition&&(j.transition=n.transition),O=j,$r(C),O}const su=e=>{let t;for(const n in e)(n==="class"||n==="style"||Wr(n))&&((t||(t={}))[n]=e[n]);return t},ou=(e,t)=>{const n={};for(const r in e)(!gs(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function au(e,t,n){const{props:r,children:i,component:s}=e,{props:o,children:a,patchFlag:l}=t,f=s.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?bo(r,o,f):!!o;if(l&8){const c=t.dynamicProps;for(let u=0;ue.__isSuspense;function du(e,t){t&&t.pendingBranch?B(e)?t.effects.push(...e):t.effects.push(e):nu(e)}const pr={};function Tn(e,t,n){return Sl(e,t,n)}function Sl(e,t,{immediate:n,deep:r,flush:i,onTrack:s,onTrigger:o}=ae){var a;const l=Ga()===((a=we)==null?void 0:a.scope)?we:null;let f,c=!1,u=!1;if(me(e)?(f=()=>e.value,c=Dr(e)):ct(e)?(f=()=>e,r=!0):B(e)?(u=!0,c=e.some(M=>ct(M)||Dr(M)),f=()=>e.map(M=>{if(me(M))return M.value;if(ct(M))return $t(M);if(V(M))return Rt(M,l,2)})):V(e)?t?f=()=>Rt(e,l,2):f=()=>{if(!(l&&l.isUnmounted))return m&&m(),qe(e,l,3,[h])}:f=Ue,t&&r){const M=f;f=()=>$t(M())}let m,h=M=>{m=C.onStop=()=>{Rt(M,l,4)}},v;if(Vn)if(h=Ue,t?n&&qe(t,l,3,[f(),u?[]:void 0,h]):f(),i==="sync"){const M=sd();v=M.__watcherHandles||(M.__watcherHandles=[])}else return Ue;let b=u?new Array(e.length).fill(pr):pr;const O=()=>{if(!!C.active)if(t){const M=C.run();(r||c||(u?M.some((K,fe)=>qt(K,b[fe])):qt(M,b)))&&(m&&m(),qe(t,l,3,[M,b===pr?void 0:u&&b[0]===pr?[]:b,h]),b=M)}else C.run()};O.allowRecurse=!!t;let S;i==="sync"?S=O:i==="post"?S=()=>Oe(O,l&&l.suspense):(O.pre=!0,l&&(O.id=l.uid),S=()=>Rs(O));const C=new xs(f,S);t?n?O():b=C.run():i==="post"?Oe(C.run.bind(C),l&&l.suspense):C.run();const j=()=>{C.stop(),l&&l.scope&&vs(l.scope.effects,C)};return v&&v.push(j),j}function mu(e,t,n){const r=this.proxy,i=be(e)?e.includes(".")?Ol(r,e):()=>r[e]:e.bind(r,r);let s;V(t)?s=t:(s=t.handler,n=t);const o=we;un(this);const a=Sl(i,s.bind(r),n);return o?un(o):Ut(),a}function Ol(e,t){const n=t.split(".");return()=>{let r=e;for(let i=0;i{$t(n,t)});else if(Wa(e))for(const n in e)$t(e[n],t);return e}function f0(e,t){const n=Ie;if(n===null)return e;const r=ii(n)||n.proxy,i=e.dirs||(e.dirs=[]);for(let s=0;s_e({name:e.name},t,{setup:e}))():e}const Sr=e=>!!e.type.__asyncLoader,Rl=e=>e.type.__isKeepAlive;function pu(e,t){Pl(e,"a",t)}function hu(e,t){Pl(e,"da",t)}function Pl(e,t,n=we){const r=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(ti(t,r,n),n){let i=n.parent;for(;i&&i.parent;)Rl(i.parent.vnode)&&gu(r,t,n,i),i=i.parent}}function gu(e,t,n,r){const i=ti(t,e,r,!0);Tl(()=>{vs(r[t],i)},n)}function ti(e,t,n=we,r=!1){if(n){const i=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...o)=>{if(n.isUnmounted)return;bn(),un(n);const a=qe(t,n,e,o);return Ut(),yn(),a});return r?i.unshift(s):i.push(s),s}}const vt=e=>(t,n=we)=>(!Vn||e==="sp")&&ti(e,(...r)=>t(...r),n),vu=vt("bm"),bu=vt("m"),yu=vt("bu"),wu=vt("u"),_u=vt("bum"),Tl=vt("um"),xu=vt("sp"),Eu=vt("rtg"),ku=vt("rtc");function Au(e,t=we){ti("ec",e,t)}function u0(e,t,n,r){let i;const s=n&&n[r];if(B(e)||be(e)){i=new Array(e.length);for(let o=0,a=e.length;ot(o,a,void 0,s&&s[a]));else{const o=Object.keys(e);i=new Array(o.length);for(let a=0,l=o.length;ae?Bl(e)?ii(e)||e.proxy:$i(e.parent):null,In=_e(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>$i(e.parent),$root:e=>$i(e.root),$emit:e=>e.emit,$options:e=>Ps(e),$forceUpdate:e=>e.f||(e.f=()=>Rs(e.update)),$nextTick:e=>e.n||(e.n=Cs.bind(e.proxy)),$watch:e=>mu.bind(e)}),wi=(e,t)=>e!==ae&&!e.__isScriptSetup&&Q(e,t),Su={get({_:e},t){const{ctx:n,setupState:r,data:i,props:s,accessCache:o,type:a,appContext:l}=e;let f;if(t[0]!=="$"){const h=o[t];if(h!==void 0)switch(h){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return s[t]}else{if(wi(r,t))return o[t]=1,r[t];if(i!==ae&&Q(i,t))return o[t]=2,i[t];if((f=e.propsOptions[0])&&Q(f,t))return o[t]=3,s[t];if(n!==ae&&Q(n,t))return o[t]=4,n[t];zi&&(o[t]=0)}}const c=In[t];let u,m;if(c)return t==="$attrs"&&Ce(e,"get",t),c(e);if((u=a.__cssModules)&&(u=u[t]))return u;if(n!==ae&&Q(n,t))return o[t]=4,n[t];if(m=l.config.globalProperties,Q(m,t))return m[t]},set({_:e},t,n){const{data:r,setupState:i,ctx:s}=e;return wi(i,t)?(i[t]=n,!0):r!==ae&&Q(r,t)?(r[t]=n,!0):Q(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(s[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:s}},o){let a;return!!n[o]||e!==ae&&Q(e,o)||wi(t,o)||(a=s[0])&&Q(a,o)||Q(r,o)||Q(In,o)||Q(i.config.globalProperties,o)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Q(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function wo(e){return B(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let zi=!0;function Ou(e){const t=Ps(e),n=e.proxy,r=e.ctx;zi=!1,t.beforeCreate&&_o(t.beforeCreate,e,"bc");const{data:i,computed:s,methods:o,watch:a,provide:l,inject:f,created:c,beforeMount:u,mounted:m,beforeUpdate:h,updated:v,activated:b,deactivated:O,beforeDestroy:S,beforeUnmount:C,destroyed:j,unmounted:M,render:K,renderTracked:fe,renderTriggered:ue,errorCaptured:Y,serverPrefetch:W,expose:de,inheritAttrs:xe,components:Re,directives:Me,filters:Mt}=t;if(f&&Cu(f,r,null),o)for(const ie in o){const ee=o[ie];V(ee)&&(r[ie]=ee.bind(n))}if(i){const ie=i.call(n,n);se(ie)&&(e.data=nr(ie))}if(zi=!0,s)for(const ie in s){const ee=s[ie],st=V(ee)?ee.bind(n,n):V(ee.get)?ee.get.bind(n,n):Ue,yt=!V(ee)&&V(ee.set)?ee.set.bind(n):Ue,We=Fe({get:st,set:yt});Object.defineProperty(r,ie,{enumerable:!0,configurable:!0,get:()=>We.value,set:Se=>We.value=Se})}if(a)for(const ie in a)Il(a[ie],r,n,ie);if(l){const ie=V(l)?l.call(n):l;Reflect.ownKeys(ie).forEach(ee=>{Or(ee,ie[ee])})}c&&_o(c,e,"c");function Z(ie,ee){B(ee)?ee.forEach(st=>ie(st.bind(n))):ee&&ie(ee.bind(n))}if(Z(vu,u),Z(bu,m),Z(yu,h),Z(wu,v),Z(pu,b),Z(hu,O),Z(Au,Y),Z(ku,fe),Z(Eu,ue),Z(_u,C),Z(Tl,M),Z(xu,W),B(de))if(de.length){const ie=e.exposed||(e.exposed={});de.forEach(ee=>{Object.defineProperty(ie,ee,{get:()=>n[ee],set:st=>n[ee]=st})})}else e.exposed||(e.exposed={});K&&e.render===Ue&&(e.render=K),xe!=null&&(e.inheritAttrs=xe),Re&&(e.components=Re),Me&&(e.directives=Me)}function Cu(e,t,n=Ue){B(e)&&(e=Hi(e));for(const r in e){const i=e[r];let s;se(i)?"default"in i?s=et(i.from||r,i.default,!0):s=et(i.from||r):s=et(i),me(s)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>s.value,set:o=>s.value=o}):t[r]=s}}function _o(e,t,n){qe(B(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Il(e,t,n,r){const i=r.includes(".")?Ol(n,r):()=>n[r];if(be(e)){const s=t[e];V(s)&&Tn(i,s)}else if(V(e))Tn(i,e.bind(n));else if(se(e))if(B(e))e.forEach(s=>Il(s,t,n,r));else{const s=V(e.handler)?e.handler.bind(n):t[e.handler];V(s)&&Tn(i,s,e)}}function Ps(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:s,config:{optionMergeStrategies:o}}=e.appContext,a=s.get(t);let l;return a?l=a:!i.length&&!n&&!r?l=t:(l={},i.length&&i.forEach(f=>zr(l,f,o,!0)),zr(l,t,o)),se(t)&&s.set(t,l),l}function zr(e,t,n,r=!1){const{mixins:i,extends:s}=t;s&&zr(e,s,n,!0),i&&i.forEach(o=>zr(e,o,n,!0));for(const o in t)if(!(r&&o==="expose")){const a=Ru[o]||n&&n[o];e[o]=a?a(e[o],t[o]):t[o]}return e}const Ru={data:xo,props:Eo,emits:Eo,methods:Rn,computed:Rn,beforeCreate:Ae,created:Ae,beforeMount:Ae,mounted:Ae,beforeUpdate:Ae,updated:Ae,beforeDestroy:Ae,beforeUnmount:Ae,destroyed:Ae,unmounted:Ae,activated:Ae,deactivated:Ae,errorCaptured:Ae,serverPrefetch:Ae,components:Rn,directives:Rn,watch:Tu,provide:xo,inject:Pu};function xo(e,t){return t?e?function(){return _e(V(e)?e.call(this,this):e,V(t)?t.call(this,this):t)}:t:e}function Pu(e,t){return Rn(Hi(e),Hi(t))}function Hi(e){if(B(e)){const t={};for(let n=0;n1)return n&&V(t)?t.call(r&&r.proxy):t}}function Mu(){return!!(we||Ie||Bn)}function Lu(e,t,n,r=!1){const i={},s={};Lr(s,ri,1),e.propsDefaults=Object.create(null),Ml(e,t,i,s);for(const o in e.propsOptions[0])o in i||(i[o]=void 0);n?e.props=r?i:ll(i):e.type.props?e.props=i:e.props=s,e.attrs=s}function Fu(e,t,n,r){const{props:i,attrs:s,vnode:{patchFlag:o}}=e,a=G(i),[l]=e.propsOptions;let f=!1;if((r||o>0)&&!(o&16)){if(o&8){const c=e.vnode.dynamicProps;for(let u=0;u{l=!0;const[m,h]=Ll(u,t,!0);_e(o,m),h&&a.push(...h)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!s&&!l)return se(e)&&r.set(e,nn),nn;if(B(s))for(let c=0;c-1,h[1]=b<0||v-1||Q(h,"default"))&&a.push(u)}}}const f=[o,a];return se(e)&&r.set(e,f),f}function ko(e){return e[0]!=="$"}function Ao(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function So(e,t){return Ao(e)===Ao(t)}function Oo(e,t){return B(t)?t.findIndex(n=>So(n,e)):V(t)&&So(t,e)?0:-1}const Fl=e=>e[0]==="_"||e==="$stable",Ts=e=>B(e)?e.map(Xe):[Xe(e)],ju=(e,t,n)=>{if(t._n)return t;const r=El((...i)=>Ts(t(...i)),n);return r._c=!1,r},jl=(e,t,n)=>{const r=e._ctx;for(const i in e){if(Fl(i))continue;const s=e[i];if(V(s))t[i]=ju(i,s,r);else if(s!=null){const o=Ts(s);t[i]=()=>o}}},Dl=(e,t)=>{const n=Ts(t);e.slots.default=()=>n},Du=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=G(t),Lr(t,"_",n)):jl(t,e.slots={})}else e.slots={},t&&Dl(e,t);Lr(e.slots,ri,1)},$u=(e,t,n)=>{const{vnode:r,slots:i}=e;let s=!0,o=ae;if(r.shapeFlag&32){const a=t._;a?n&&a===1?s=!1:(_e(i,t),!n&&a===1&&delete i._):(s=!t.$stable,jl(t,i)),o=t}else t&&(Dl(e,t),o={default:1});if(s)for(const a in i)!Fl(a)&&o[a]==null&&delete i[a]};function Ui(e,t,n,r,i=!1){if(B(e)){e.forEach((m,h)=>Ui(m,t&&(B(t)?t[h]:t),n,r,i));return}if(Sr(r)&&!i)return;const s=r.shapeFlag&4?ii(r.component)||r.component.proxy:r.el,o=i?null:s,{i:a,r:l}=e,f=t&&t.r,c=a.refs===ae?a.refs={}:a.refs,u=a.setupState;if(f!=null&&f!==l&&(be(f)?(c[f]=null,Q(u,f)&&(u[f]=null)):me(f)&&(f.value=null)),V(l))Rt(l,a,12,[o,c]);else{const m=be(l),h=me(l);if(m||h){const v=()=>{if(e.f){const b=m?Q(u,l)?u[l]:c[l]:l.value;i?B(b)&&vs(b,s):B(b)?b.includes(s)||b.push(s):m?(c[l]=[s],Q(u,l)&&(u[l]=c[l])):(l.value=[s],e.k&&(c[e.k]=l.value))}else m?(c[l]=o,Q(u,l)&&(u[l]=o)):h&&(l.value=o,e.k&&(c[e.k]=o))};o?(v.id=-1,Oe(v,n)):v()}}}const Oe=du;function zu(e){return Hu(e)}function Hu(e,t){const n=Mi();n.__VUE__=!0;const{insert:r,remove:i,patchProp:s,createElement:o,createText:a,createComment:l,setText:f,setElementText:c,parentNode:u,nextSibling:m,setScopeId:h=Ue,insertStaticContent:v}=e,b=(d,p,g,y=null,x=null,E=null,T=!1,A=null,R=!!p.dynamicChildren)=>{if(d===p)return;d&&!kn(d,p)&&(y=_(d),Se(d,x,E,!0),d=null),p.patchFlag===-2&&(R=!1,p.dynamicChildren=null);const{type:k,ref:z,shapeFlag:L}=p;switch(k){case ni:O(d,p,g,y);break;case Vt:S(d,p,g,y);break;case Cr:d==null&&C(p,g,y,T);break;case Je:Re(d,p,g,y,x,E,T,A,R);break;default:L&1?K(d,p,g,y,x,E,T,A,R):L&6?Me(d,p,g,y,x,E,T,A,R):(L&64||L&128)&&k.process(d,p,g,y,x,E,T,A,R,P)}z!=null&&x&&Ui(z,d&&d.ref,E,p||d,!p)},O=(d,p,g,y)=>{if(d==null)r(p.el=a(p.children),g,y);else{const x=p.el=d.el;p.children!==d.children&&f(x,p.children)}},S=(d,p,g,y)=>{d==null?r(p.el=l(p.children||""),g,y):p.el=d.el},C=(d,p,g,y)=>{[d.el,d.anchor]=v(d.children,p,g,y,d.el,d.anchor)},j=({el:d,anchor:p},g,y)=>{let x;for(;d&&d!==p;)x=m(d),r(d,g,y),d=x;r(p,g,y)},M=({el:d,anchor:p})=>{let g;for(;d&&d!==p;)g=m(d),i(d),d=g;i(p)},K=(d,p,g,y,x,E,T,A,R)=>{T=T||p.type==="svg",d==null?fe(p,g,y,x,E,T,A,R):W(d,p,x,E,T,A,R)},fe=(d,p,g,y,x,E,T,A)=>{let R,k;const{type:z,props:L,shapeFlag:H,transition:q,dirs:J}=d;if(R=d.el=o(d.type,E,L&&L.is,L),H&8?c(R,d.children):H&16&&Y(d.children,R,null,y,x,E&&z!=="foreignObject",T,A),J&&Lt(d,null,y,"created"),ue(R,d,d.scopeId,T,y),L){for(const re in L)re!=="value"&&!kr(re)&&s(R,re,null,L[re],E,d.children,y,x,Ee);"value"in L&&s(R,"value",null,L.value),(k=L.onVnodeBeforeMount)&&Ye(k,y,d)}J&&Lt(d,null,y,"beforeMount");const oe=Bu(x,q);oe&&q.beforeEnter(R),r(R,p,g),((k=L&&L.onVnodeMounted)||oe||J)&&Oe(()=>{k&&Ye(k,y,d),oe&&q.enter(R),J&&Lt(d,null,y,"mounted")},x)},ue=(d,p,g,y,x)=>{if(g&&h(d,g),y)for(let E=0;E{for(let k=R;k{const A=p.el=d.el;let{patchFlag:R,dynamicChildren:k,dirs:z}=p;R|=d.patchFlag&16;const L=d.props||ae,H=p.props||ae;let q;g&&Ft(g,!1),(q=H.onVnodeBeforeUpdate)&&Ye(q,g,p,d),z&&Lt(p,d,g,"beforeUpdate"),g&&Ft(g,!0);const J=x&&p.type!=="foreignObject";if(k?de(d.dynamicChildren,k,A,g,y,J,E):T||ee(d,p,A,null,g,y,J,E,!1),R>0){if(R&16)xe(A,p,L,H,g,y,x);else if(R&2&&L.class!==H.class&&s(A,"class",null,H.class,x),R&4&&s(A,"style",L.style,H.style,x),R&8){const oe=p.dynamicProps;for(let re=0;re{q&&Ye(q,g,p,d),z&&Lt(p,d,g,"updated")},y)},de=(d,p,g,y,x,E,T)=>{for(let A=0;A{if(g!==y){if(g!==ae)for(const A in g)!kr(A)&&!(A in y)&&s(d,A,g[A],null,T,p.children,x,E,Ee);for(const A in y){if(kr(A))continue;const R=y[A],k=g[A];R!==k&&A!=="value"&&s(d,A,k,R,T,p.children,x,E,Ee)}"value"in y&&s(d,"value",g.value,y.value)}},Re=(d,p,g,y,x,E,T,A,R)=>{const k=p.el=d?d.el:a(""),z=p.anchor=d?d.anchor:a("");let{patchFlag:L,dynamicChildren:H,slotScopeIds:q}=p;q&&(A=A?A.concat(q):q),d==null?(r(k,g,y),r(z,g,y),Y(p.children,g,z,x,E,T,A,R)):L>0&&L&64&&H&&d.dynamicChildren?(de(d.dynamicChildren,H,g,x,E,T,A),(p.key!=null||x&&p===x.subTree)&&$l(d,p,!0)):ee(d,p,g,z,x,E,T,A,R)},Me=(d,p,g,y,x,E,T,A,R)=>{p.slotScopeIds=A,d==null?p.shapeFlag&512?x.ctx.activate(p,g,y,T,R):Mt(p,g,y,x,E,T,R):Le(d,p,R)},Mt=(d,p,g,y,x,E,T)=>{const A=d.component=Gu(d,y,x);if(Rl(d)&&(A.ctx.renderer=P),Qu(A),A.asyncDep){if(x&&x.registerDep(A,Z),!d.el){const R=A.subTree=ge(Vt);S(null,R,p,g)}return}Z(A,d,p,g,x,E,T)},Le=(d,p,g)=>{const y=p.component=d.component;if(au(d,p,g))if(y.asyncDep&&!y.asyncResolved){ie(y,p,g);return}else y.next=p,tu(y.update),y.update();else p.el=d.el,y.vnode=p},Z=(d,p,g,y,x,E,T)=>{const A=()=>{if(d.isMounted){let{next:z,bu:L,u:H,parent:q,vnode:J}=d,oe=z,re;Ft(d,!1),z?(z.el=J.el,ie(d,z,T)):z=J,L&&Ar(L),(re=z.props&&z.props.onVnodeBeforeUpdate)&&Ye(re,q,z,J),Ft(d,!0);const he=yi(d),$e=d.subTree;d.subTree=he,b($e,he,u($e.el),_($e),d,x,E),z.el=he.el,oe===null&&lu(d,he.el),H&&Oe(H,x),(re=z.props&&z.props.onVnodeUpdated)&&Oe(()=>Ye(re,q,z,J),x)}else{let z;const{el:L,props:H}=p,{bm:q,m:J,parent:oe}=d,re=Sr(p);if(Ft(d,!1),q&&Ar(q),!re&&(z=H&&H.onVnodeBeforeMount)&&Ye(z,oe,p),Ft(d,!0),L&&te){const he=()=>{d.subTree=yi(d),te(L,d.subTree,d,x,null)};re?p.type.__asyncLoader().then(()=>!d.isUnmounted&&he()):he()}else{const he=d.subTree=yi(d);b(null,he,g,y,d,x,E),p.el=he.el}if(J&&Oe(J,x),!re&&(z=H&&H.onVnodeMounted)){const he=p;Oe(()=>Ye(z,oe,he),x)}(p.shapeFlag&256||oe&&Sr(oe.vnode)&&oe.vnode.shapeFlag&256)&&d.a&&Oe(d.a,x),d.isMounted=!0,p=g=y=null}},R=d.effect=new xs(A,()=>Rs(k),d.scope),k=d.update=()=>R.run();k.id=d.uid,Ft(d,!0),k()},ie=(d,p,g)=>{p.component=d;const y=d.vnode.props;d.vnode=p,d.next=null,Fu(d,p.props,y,g),$u(d,p.children,g),bn(),vo(),yn()},ee=(d,p,g,y,x,E,T,A,R=!1)=>{const k=d&&d.children,z=d?d.shapeFlag:0,L=p.children,{patchFlag:H,shapeFlag:q}=p;if(H>0){if(H&128){yt(k,L,g,y,x,E,T,A,R);return}else if(H&256){st(k,L,g,y,x,E,T,A,R);return}}q&8?(z&16&&Ee(k,x,E),L!==k&&c(g,L)):z&16?q&16?yt(k,L,g,y,x,E,T,A,R):Ee(k,x,E,!0):(z&8&&c(g,""),q&16&&Y(L,g,y,x,E,T,A,R))},st=(d,p,g,y,x,E,T,A,R)=>{d=d||nn,p=p||nn;const k=d.length,z=p.length,L=Math.min(k,z);let H;for(H=0;Hz?Ee(d,x,E,!0,!1,L):Y(p,g,y,x,E,T,A,R,L)},yt=(d,p,g,y,x,E,T,A,R)=>{let k=0;const z=p.length;let L=d.length-1,H=z-1;for(;k<=L&&k<=H;){const q=d[k],J=p[k]=R?At(p[k]):Xe(p[k]);if(kn(q,J))b(q,J,g,null,x,E,T,A,R);else break;k++}for(;k<=L&&k<=H;){const q=d[L],J=p[H]=R?At(p[H]):Xe(p[H]);if(kn(q,J))b(q,J,g,null,x,E,T,A,R);else break;L--,H--}if(k>L){if(k<=H){const q=H+1,J=qH)for(;k<=L;)Se(d[k],x,E,!0),k++;else{const q=k,J=k,oe=new Map;for(k=J;k<=H;k++){const Pe=p[k]=R?At(p[k]):Xe(p[k]);Pe.key!=null&&oe.set(Pe.key,k)}let re,he=0;const $e=H-J+1;let Xt=!1,io=0;const En=new Array($e);for(k=0;k<$e;k++)En[k]=0;for(k=q;k<=L;k++){const Pe=d[k];if(he>=$e){Se(Pe,x,E,!0);continue}let Ke;if(Pe.key!=null)Ke=oe.get(Pe.key);else for(re=J;re<=H;re++)if(En[re-J]===0&&kn(Pe,p[re])){Ke=re;break}Ke===void 0?Se(Pe,x,E,!0):(En[Ke-J]=k+1,Ke>=io?io=Ke:Xt=!0,b(Pe,p[Ke],g,null,x,E,T,A,R),he++)}const so=Xt?Uu(En):nn;for(re=so.length-1,k=$e-1;k>=0;k--){const Pe=J+k,Ke=p[Pe],oo=Pe+1{const{el:E,type:T,transition:A,children:R,shapeFlag:k}=d;if(k&6){We(d.component.subTree,p,g,y);return}if(k&128){d.suspense.move(p,g,y);return}if(k&64){T.move(d,p,g,P);return}if(T===Je){r(E,p,g);for(let L=0;LA.enter(E),x);else{const{leave:L,delayLeave:H,afterLeave:q}=A,J=()=>r(E,p,g),oe=()=>{L(E,()=>{J(),q&&q()})};H?H(E,J,oe):oe()}else r(E,p,g)},Se=(d,p,g,y=!1,x=!1)=>{const{type:E,props:T,ref:A,children:R,dynamicChildren:k,shapeFlag:z,patchFlag:L,dirs:H}=d;if(A!=null&&Ui(A,null,g,d,!0),z&256){p.ctx.deactivate(d);return}const q=z&1&&H,J=!Sr(d);let oe;if(J&&(oe=T&&T.onVnodeBeforeUnmount)&&Ye(oe,p,d),z&6)lr(d.component,g,y);else{if(z&128){d.suspense.unmount(g,y);return}q&&Lt(d,null,p,"beforeUnmount"),z&64?d.type.remove(d,p,g,x,P,y):k&&(E!==Je||L>0&&L&64)?Ee(k,p,g,!1,!0):(E===Je&&L&384||!x&&z&16)&&Ee(R,p,g),y&&Yt(d)}(J&&(oe=T&&T.onVnodeUnmounted)||q)&&Oe(()=>{oe&&Ye(oe,p,d),q&&Lt(d,null,p,"unmounted")},g)},Yt=d=>{const{type:p,el:g,anchor:y,transition:x}=d;if(p===Je){Jt(g,y);return}if(p===Cr){M(d);return}const E=()=>{i(g),x&&!x.persisted&&x.afterLeave&&x.afterLeave()};if(d.shapeFlag&1&&x&&!x.persisted){const{leave:T,delayLeave:A}=x,R=()=>T(g,E);A?A(d.el,E,R):R()}else E()},Jt=(d,p)=>{let g;for(;d!==p;)g=m(d),i(d),d=g;i(p)},lr=(d,p,g)=>{const{bum:y,scope:x,update:E,subTree:T,um:A}=d;y&&Ar(y),x.stop(),E&&(E.active=!1,Se(T,d,p,g)),A&&Oe(A,p),Oe(()=>{d.isUnmounted=!0},p),p&&p.pendingBranch&&!p.isUnmounted&&d.asyncDep&&!d.asyncResolved&&d.suspenseId===p.pendingId&&(p.deps--,p.deps===0&&p.resolve())},Ee=(d,p,g,y=!1,x=!1,E=0)=>{for(let T=E;Td.shapeFlag&6?_(d.component.subTree):d.shapeFlag&128?d.suspense.next():m(d.anchor||d.el),N=(d,p,g)=>{d==null?p._vnode&&Se(p._vnode,null,null,!0):b(p._vnode||null,d,p,null,null,null,g),vo(),yl(),p._vnode=d},P={p:b,um:Se,m:We,r:Yt,mt:Mt,mc:Y,pc:ee,pbc:de,n:_,o:e};let D,te;return t&&([D,te]=t(P)),{render:N,hydrate:D,createApp:Nu(N,D)}}function Ft({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Bu(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function $l(e,t,n=!1){const r=e.children,i=t.children;if(B(r)&&B(i))for(let s=0;s>1,e[n[a]]0&&(t[r]=n[s-1]),n[s]=r)}}for(s=n.length,o=n[s-1];s-- >0;)n[s]=o,o=t[o];return n}const qu=e=>e.__isTeleport,Je=Symbol.for("v-fgt"),ni=Symbol.for("v-txt"),Vt=Symbol.for("v-cmt"),Cr=Symbol.for("v-stc"),Nn=[];let He=null;function je(e=!1){Nn.push(He=e?null:[])}function Vu(){Nn.pop(),He=Nn[Nn.length-1]||null}let Un=1;function Co(e){Un+=e}function zl(e){return e.dynamicChildren=Un>0?He||nn:null,Vu(),Un>0&&He&&He.push(e),e}function ut(e,t,n,r,i,s){return zl(U(e,t,n,r,i,s,!0))}function qi(e,t,n,r,i){return zl(ge(e,t,n,r,i,!0))}function Vi(e){return e?e.__v_isVNode===!0:!1}function kn(e,t){return e.type===t.type&&e.key===t.key}const ri="__vInternal",Hl=({key:e})=>e!=null?e:null,Rr=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?be(e)||me(e)||V(e)?{i:Ie,r:e,k:t,f:!!n}:e:null);function U(e,t=null,n=null,r=0,i=null,s=e===Je?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Hl(t),ref:t&&Rr(t),scopeId:xl,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Ie};return a?(Is(l,n),s&128&&e.normalize(l)):n&&(l.shapeFlag|=be(n)?8:16),Un>0&&!o&&He&&(l.patchFlag>0||s&6)&&l.patchFlag!==32&&He.push(l),l}const ge=Wu;function Wu(e,t=null,n=null,r=0,i=null,s=!1){if((!e||e===cu)&&(e=Vt),Vi(e)){const a=fn(e,t,!0);return n&&Is(a,n),Un>0&&!s&&He&&(a.shapeFlag&6?He[He.indexOf(e)]=a:He.push(a)),a.patchFlag|=-2,a}if(rd(e)&&(e=e.__vccOpts),t){t=Ku(t);let{class:a,style:l}=t;a&&!be(a)&&(t.class=tr(a)),se(l)&&(fl(l)&&!B(l)&&(l=_e({},l)),t.style=ys(l))}const o=be(e)?1:uu(e)?128:qu(e)?64:se(e)?4:V(e)?2:0;return U(e,t,n,r,i,o,s,!0)}function Ku(e){return e?fl(e)||ri in e?_e({},e):e:null}function fn(e,t,n=!1){const{props:r,ref:i,patchFlag:s,children:o}=e,a=t?Yu(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&Hl(a),ref:t&&t.ref?n&&i?B(i)?i.concat(Rr(t)):[i,Rr(t)]:Rr(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Je?s===-1?16:s|16:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&fn(e.ssContent),ssFallback:e.ssFallback&&fn(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function qn(e=" ",t=0){return ge(ni,null,e,t)}function d0(e,t){const n=ge(Cr,null,e);return n.staticCount=t,n}function Wi(e="",t=!1){return t?(je(),qi(Vt,null,e)):ge(Vt,null,e)}function Xe(e){return e==null||typeof e=="boolean"?ge(Vt):B(e)?ge(Je,null,e.slice()):typeof e=="object"?At(e):ge(ni,null,String(e))}function At(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:fn(e)}function Is(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(B(t))n=16;else if(typeof t=="object")if(r&65){const i=t.default;i&&(i._c&&(i._d=!1),Is(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!(ri in t)?t._ctx=Ie:i===3&&Ie&&(Ie.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else V(t)?(t={default:t,_ctx:Ie},n=32):(t=String(t),r&64?(n=16,t=[qn(t)]):n=8);e.children=t,e.shapeFlag|=n}function Yu(...e){const t={};for(let n=0;nwe=e),Ns=e=>{Gt.length>1?Gt.forEach(t=>t(e)):Gt[0](e)};const un=e=>{Ns(e),e.scope.on()},Ut=()=>{we&&we.scope.off(),Ns(null)};function Bl(e){return e.vnode.shapeFlag&4}let Vn=!1;function Qu(e,t=!1){Vn=t;const{props:n,children:r}=e.vnode,i=Bl(e);Lu(e,n,i,t),Du(e,r);const s=i?Zu(e,t):void 0;return Vn=!1,s}function Zu(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Gr(new Proxy(e.ctx,Su));const{setup:r}=n;if(r){const i=e.setupContext=r.length>1?td(e):null;un(e),bn();const s=Rt(r,e,0,[e.props,i]);if(yn(),Ut(),qa(s)){if(s.then(Ut,Ut),t)return s.then(o=>{Po(e,o,t)}).catch(o=>{Zr(o,e,0)});e.asyncDep=s}else Po(e,s,t)}else Ul(e,t)}function Po(e,t,n){V(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:se(t)&&(e.setupState=pl(t)),Ul(e,n)}let To;function Ul(e,t,n){const r=e.type;if(!e.render){if(!t&&To&&!r.render){const i=r.template||Ps(e).template;if(i){const{isCustomElement:s,compilerOptions:o}=e.appContext.config,{delimiters:a,compilerOptions:l}=r,f=_e(_e({isCustomElement:s,delimiters:a},o),l);r.render=To(i,f)}}e.render=r.render||Ue}{un(e),bn();try{Ou(e)}finally{yn(),Ut()}}}function ed(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return Ce(e,"get","$attrs"),t[n]}}))}function td(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return ed(e)},slots:e.slots,emit:e.emit,expose:t}}function ii(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(pl(Gr(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in In)return In[n](e)},has(t,n){return n in t||n in In}}))}function nd(e,t=!0){return V(e)?e.displayName||e.name:e.name||t&&e.__name}function rd(e){return V(e)&&"__vccOpts"in e}const Fe=(e,t)=>Qf(e,t,Vn);function ql(e,t,n){const r=arguments.length;return r===2?se(t)&&!B(t)?Vi(t)?ge(e,null,[t]):ge(e,t):ge(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Vi(n)&&(n=[n]),ge(e,t,n))}const id=Symbol.for("v-scx"),sd=()=>et(id),od="3.3.8",ad="http://www.w3.org/2000/svg",Dt=typeof document<"u"?document:null,Io=Dt&&Dt.createElement("template"),ld={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const i=t?Dt.createElementNS(ad,e):Dt.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&i.setAttribute("multiple",r.multiple),i},createText:e=>Dt.createTextNode(e),createComment:e=>Dt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Dt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,i,s){const o=n?n.previousSibling:t.lastChild;if(i&&(i===s||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===s||!(i=i.nextSibling)););else{Io.innerHTML=r?`${e}`:e;const a=Io.content;if(r){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},cd=Symbol("_vtc");function fd(e,t,n){const r=e[cd];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Ms=Symbol("_vod"),m0={beforeMount(e,{value:t},{transition:n}){e[Ms]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):An(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),An(e,!0),r.enter(e)):r.leave(e,()=>{An(e,!1)}):An(e,t))},beforeUnmount(e,{value:t}){An(e,t)}};function An(e,t){e.style.display=t?e[Ms]:"none"}function ud(e,t,n){const r=e.style,i=be(n);if(n&&!i){if(t&&!be(t))for(const s in t)n[s]==null&&Ki(r,s,"");for(const s in n)Ki(r,s,n[s])}else{const s=r.display;i?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),Ms in e&&(r.display=s)}}const No=/\s*!important$/;function Ki(e,t,n){if(B(n))n.forEach(r=>Ki(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=dd(e,t);No.test(n)?e.setProperty(vn(r),n.replace(No,""),"important"):e[r]=n}}const Mo=["Webkit","Moz","ms"],_i={};function dd(e,t){const n=_i[t];if(n)return n;let r=nt(t);if(r!=="filter"&&r in e)return _i[t]=r;r=Jr(r);for(let i=0;ixi||(bd.then(()=>xi=0),xi=Date.now());function wd(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;qe(_d(r,n.value),t,5,[r])};return n.value=e,n.attached=yd(),n}function _d(e,t){if(B(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>i=>!i._stopped&&r&&r(i))}else return t}const Do=/^on[a-z]/,xd=(e,t,n,r,i=!1,s,o,a,l)=>{t==="class"?fd(e,r,i):t==="style"?ud(e,n,r):Wr(t)?gs(t)||gd(e,t,n,r,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Ed(e,t,r,i))?pd(e,t,r,s,o,a,l):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),md(e,t,r,i))};function Ed(e,t,n,r){return r?!!(t==="innerHTML"||t==="textContent"||t in e&&Do.test(t)&&V(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Do.test(t)&&be(n)?!1:t in e}const dn=e=>{const t=e.props["onUpdate:modelValue"]||!1;return B(t)?n=>Ar(t,n):t};function kd(e){e.target.composing=!0}function $o(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const dt=Symbol("_assign"),p0={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e[dt]=dn(i);const s=r||i.props&&i.props.type==="number";Ot(e,t?"change":"input",o=>{if(o.target.composing)return;let a=e.value;n&&(a=a.trim()),s&&(a=Fr(a)),e[dt](a)}),n&&Ot(e,"change",()=>{e.value=e.value.trim()}),t||(Ot(e,"compositionstart",kd),Ot(e,"compositionend",$o),Ot(e,"change",$o))},mounted(e,{value:t}){e.value=t==null?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:i}},s){if(e[dt]=dn(s),e.composing||document.activeElement===e&&e.type!=="range"&&(n||r&&e.value.trim()===t||(i||e.type==="number")&&Fr(e.value)===t))return;const o=t==null?"":t;e.value!==o&&(e.value=o)}},h0={created(e,{value:t},n){e.checked=ln(t,n.props.value),e[dt]=dn(n),Ot(e,"change",()=>{e[dt](Wn(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[dt]=dn(r),t!==n&&(e.checked=ln(t,r.props.value))}},g0={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const i=Kr(t);Ot(e,"change",()=>{const s=Array.prototype.filter.call(e.options,o=>o.selected).map(o=>n?Fr(Wn(o)):Wn(o));e[dt](e.multiple?i?new Set(s):s:s[0])}),e[dt]=dn(r)},mounted(e,{value:t}){zo(e,t)},beforeUpdate(e,t,n){e[dt]=dn(n)},updated(e,{value:t}){zo(e,t)}};function zo(e,t){const n=e.multiple;if(!(n&&!B(t)&&!Kr(t))){for(let r=0,i=e.options.length;r-1:s.selected=t.has(o);else if(ln(Wn(s),t)){e.selectedIndex!==r&&(e.selectedIndex=r);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Wn(e){return"_value"in e?e._value:e.value}const Ad=_e({patchProp:xd},ld);let Ho;function Sd(){return Ho||(Ho=zu(Ad))}const Od=(...e)=>{const t=Sd().createApp(...e),{mount:n}=t;return t.mount=r=>{const i=Cd(r);if(!i)return;const s=t._component;!V(s)&&!s.render&&!s.template&&(s.template=i.innerHTML),i.innerHTML="";const o=n(i,!1,i instanceof SVGElement);return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),o},t};function Cd(e){return be(e)?document.querySelector(e):e}var Vl=!1;/*! * pinia v2.1.7 * (c) 2023 Eduardo San Martin Morote * @license MIT - */let Wl;const si=e=>Wl=e,Kl=Symbol();function Yi(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Mn;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Mn||(Mn={}));function Rd(){const e=Xa(!0),t=e.run(()=>Qr({}));let n=[],r=[];const i=Gr({install(s){si(i),i._a=s,s.provide(Kl,i),s.config.globalProperties.$pinia=i,r.forEach(o=>n.push(o)),r=[]},use(s){return!this._a&&!Vl?r.push(s):n.push(s),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return i}const Yl=()=>{};function Bo(e,t,n,r=Yl){e.push(t);const i=()=>{const s=e.indexOf(t);s>-1&&(e.splice(s,1),r())};return!n&&Ga()&&Ef(i),i}function Qt(e,...t){e.slice().forEach(n=>{n(...t)})}const Pd=e=>e();function Ji(e,t){e instanceof Map&&t instanceof Map&&t.forEach((n,r)=>e.set(r,n)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],i=e[n];Yi(i)&&Yi(r)&&e.hasOwnProperty(n)&&!me(r)&&!ct(r)?e[n]=Ji(i,r):e[n]=r}return e}const Td=Symbol();function Id(e){return!Yi(e)||!e.hasOwnProperty(Td)}const{assign:kt}=Object;function Nd(e){return!!(me(e)&&e.effect)}function Md(e,t,n,r){const{state:i,actions:s,getters:o}=t,a=n.state.value[e];let l;function f(){a||(n.state.value[e]=i?i():{});const c=hl(n.state.value[e]);return kt(c,s,Object.keys(o||{}).reduce((u,m)=>(u[m]=Gr(Fe(()=>{si(n);const h=n._s.get(e);return o[m].call(h,h)})),u),{}))}return l=Jl(e,f,t,n,r,!0),l}function Jl(e,t,n={},r,i,s){let o;const a=kt({actions:{}},n),l={deep:!0};let f,c,u=[],m=[],h;const v=r.state.value[e];!s&&!v&&(r.state.value[e]={}),Qr({});let y;function O(Y){let W;f=c=!1,typeof Y=="function"?(Y(r.state.value[e]),W={type:Mn.patchFunction,storeId:e,events:h}):(Ji(r.state.value[e],Y),W={type:Mn.patchObject,payload:Y,storeId:e,events:h});const de=y=Symbol();Cs().then(()=>{y===de&&(f=!0)}),c=!0,Qt(u,W,r.state.value[e])}const P=s?function(){const{state:W}=n,de=W?W():{};this.$patch(xe=>{kt(xe,de)})}:Yl;function S(){o.stop(),u=[],m=[],r._s.delete(e)}function D(Y,W){return function(){si(r);const de=Array.from(arguments),xe=[],Re=[];function Me(Z){xe.push(Z)}function Mt(Z){Re.push(Z)}Qt(m,{args:de,name:Y,store:K,after:Me,onError:Mt});let Le;try{Le=W.apply(this&&this.$id===e?this:K,de)}catch(Z){throw Qt(Re,Z),Z}return Le instanceof Promise?Le.then(Z=>(Qt(xe,Z),Z)).catch(Z=>(Qt(Re,Z),Promise.reject(Z))):(Qt(xe,Le),Le)}}const M={_p:r,$id:e,$onAction:Bo.bind(null,m),$patch:O,$reset:P,$subscribe(Y,W={}){const de=Bo(u,Y,W.detached,()=>xe()),xe=o.run(()=>Tn(()=>r.state.value[e],Re=>{(W.flush==="sync"?c:f)&&Y({storeId:e,type:Mn.direct,events:h},Re)},kt({},l,W)));return de},$dispose:S},K=nr(M);r._s.set(e,K);const ue=(r._a&&r._a.runWithContext||Pd)(()=>r._e.run(()=>(o=Xa()).run(t)));for(const Y in ue){const W=ue[Y];if(me(W)&&!Nd(W)||ct(W))s||(v&&Id(W)&&(me(W)?W.value=v[Y]:Ji(W,v[Y])),r.state.value[e][Y]=W);else if(typeof W=="function"){const de=D(Y,W);ue[Y]=de,a.actions[Y]=W}}return kt(K,ue),kt(G(K),ue),Object.defineProperty(K,"$state",{get:()=>r.state.value[e],set:Y=>{O(W=>{kt(W,Y)})}}),r._p.forEach(Y=>{kt(K,o.run(()=>Y({store:K,app:r._a,pinia:r,options:a})))}),v&&s&&n.hydrate&&n.hydrate(K.$state,v),f=!0,c=!0,K}function Ld(e,t,n){let r,i;const s=typeof t=="function";typeof e=="string"?(r=e,i=s?n:t):(i=e,r=e.id);function o(a,l){const f=Mu();return a=a||(f?et(Kl,null):null),a&&si(a),a=Wl,a._s.has(r)||(s?Jl(r,t,i,a):Md(r,i,a)),a._s.get(r)}return o.$id=r,o}function Xl(e){if(Vl)return hl(e);{e=G(e);const t={};for(const n in e){const r=e[n];(me(r)||ct(r))&&(t[n]=Xf(e,n))}return t}}function Uo(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 I(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);nWl=e,Kl=Symbol();function Yi(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Mn;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Mn||(Mn={}));function Rd(){const e=Xa(!0),t=e.run(()=>Qr({}));let n=[],r=[];const i=Gr({install(s){si(i),i._a=s,s.provide(Kl,i),s.config.globalProperties.$pinia=i,r.forEach(o=>n.push(o)),r=[]},use(s){return!this._a&&!Vl?r.push(s):n.push(s),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return i}const Yl=()=>{};function Bo(e,t,n,r=Yl){e.push(t);const i=()=>{const s=e.indexOf(t);s>-1&&(e.splice(s,1),r())};return!n&&Ga()&&Ef(i),i}function Qt(e,...t){e.slice().forEach(n=>{n(...t)})}const Pd=e=>e();function Ji(e,t){e instanceof Map&&t instanceof Map&&t.forEach((n,r)=>e.set(r,n)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],i=e[n];Yi(i)&&Yi(r)&&e.hasOwnProperty(n)&&!me(r)&&!ct(r)?e[n]=Ji(i,r):e[n]=r}return e}const Td=Symbol();function Id(e){return!Yi(e)||!e.hasOwnProperty(Td)}const{assign:kt}=Object;function Nd(e){return!!(me(e)&&e.effect)}function Md(e,t,n,r){const{state:i,actions:s,getters:o}=t,a=n.state.value[e];let l;function f(){a||(n.state.value[e]=i?i():{});const c=hl(n.state.value[e]);return kt(c,s,Object.keys(o||{}).reduce((u,m)=>(u[m]=Gr(Fe(()=>{si(n);const h=n._s.get(e);return o[m].call(h,h)})),u),{}))}return l=Jl(e,f,t,n,r,!0),l}function Jl(e,t,n={},r,i,s){let o;const a=kt({actions:{}},n),l={deep:!0};let f,c,u=[],m=[],h;const v=r.state.value[e];!s&&!v&&(r.state.value[e]={}),Qr({});let b;function O(Y){let W;f=c=!1,typeof Y=="function"?(Y(r.state.value[e]),W={type:Mn.patchFunction,storeId:e,events:h}):(Ji(r.state.value[e],Y),W={type:Mn.patchObject,payload:Y,storeId:e,events:h});const de=b=Symbol();Cs().then(()=>{b===de&&(f=!0)}),c=!0,Qt(u,W,r.state.value[e])}const S=s?function(){const{state:W}=n,de=W?W():{};this.$patch(xe=>{kt(xe,de)})}:Yl;function C(){o.stop(),u=[],m=[],r._s.delete(e)}function j(Y,W){return function(){si(r);const de=Array.from(arguments),xe=[],Re=[];function Me(Z){xe.push(Z)}function Mt(Z){Re.push(Z)}Qt(m,{args:de,name:Y,store:K,after:Me,onError:Mt});let Le;try{Le=W.apply(this&&this.$id===e?this:K,de)}catch(Z){throw Qt(Re,Z),Z}return Le instanceof Promise?Le.then(Z=>(Qt(xe,Z),Z)).catch(Z=>(Qt(Re,Z),Promise.reject(Z))):(Qt(xe,Le),Le)}}const M={_p:r,$id:e,$onAction:Bo.bind(null,m),$patch:O,$reset:S,$subscribe(Y,W={}){const de=Bo(u,Y,W.detached,()=>xe()),xe=o.run(()=>Tn(()=>r.state.value[e],Re=>{(W.flush==="sync"?c:f)&&Y({storeId:e,type:Mn.direct,events:h},Re)},kt({},l,W)));return de},$dispose:C},K=nr(M);r._s.set(e,K);const ue=(r._a&&r._a.runWithContext||Pd)(()=>r._e.run(()=>(o=Xa()).run(t)));for(const Y in ue){const W=ue[Y];if(me(W)&&!Nd(W)||ct(W))s||(v&&Id(W)&&(me(W)?W.value=v[Y]:Ji(W,v[Y])),r.state.value[e][Y]=W);else if(typeof W=="function"){const de=j(Y,W);ue[Y]=de,a.actions[Y]=W}}return kt(K,ue),kt(G(K),ue),Object.defineProperty(K,"$state",{get:()=>r.state.value[e],set:Y=>{O(W=>{kt(W,Y)})}}),r._p.forEach(Y=>{kt(K,o.run(()=>Y({store:K,app:r._a,pinia:r,options:a})))}),v&&s&&n.hydrate&&n.hydrate(K.$state,v),f=!0,c=!0,K}function Ld(e,t,n){let r,i;const s=typeof t=="function";typeof e=="string"?(r=e,i=s?n:t):(i=e,r=e.id);function o(a,l){const f=Mu();return a=a||(f?et(Kl,null):null),a&&si(a),a=Wl,a._s.has(r)||(s?Jl(r,t,i,a):Md(r,i,a)),a._s.get(r)}return o.$id=r,o}function Xl(e){if(Vl)return hl(e);{e=G(e);const t={};for(const n in e){const r=e[n];(me(r)||ct(r))&&(t[n]=Xf(e,n))}return t}}function Uo(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 I(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n-1;i--){var s=n[i],o=(s.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(o)>-1&&(r=s)}return ce.head.insertBefore(t,r),e}}var om="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function Gn(){for(var e=12,t="";e-- >0;)t+=om[Math.random()*62|0];return t}function wn(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function zs(e){return e.classList?wn(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function lc(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function am(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,'="').concat(lc(e[n]),'" ')},"").trim()}function oi(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")},"")}function Hs(e){return e.size!==Qe.size||e.x!==Qe.x||e.y!==Qe.y||e.rotate!==Qe.rotate||e.flipX||e.flipY}function lm(e){var t=e.transform,n=e.containerWidth,r=e.iconWidth,i={transform:"translate(".concat(n/2," 256)")},s="translate(".concat(t.x*32,", ").concat(t.y*32,") "),o="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),a="rotate(".concat(t.rotate," 0 0)"),l={transform:"".concat(s," ").concat(o," ").concat(a)},f={transform:"translate(".concat(r/2*-1," -256)")};return{outer:i,inner:l,path:f}}function cm(e){var t=e.transform,n=e.width,r=n===void 0?Gi:n,i=e.height,s=i===void 0?Gi:i,o=e.startCentered,a=o===void 0?!1:o,l="";return a&&tc?l+="translate(".concat(t.x/_t-r/2,"em, ").concat(t.y/_t-s/2,"em) "):a?l+="translate(calc(-50% + ".concat(t.x/_t,"em), calc(-50% + ").concat(t.y/_t,"em)) "):l+="translate(".concat(t.x/_t,"em, ").concat(t.y/_t,"em) "),l+="scale(".concat(t.size/_t*(t.flipX?-1:1),", ").concat(t.size/_t*(t.flipY?-1:1),") "),l+="rotate(".concat(t.rotate,"deg) "),l}var fm=`:root, :host { --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid"; @@ -760,14 +760,14 @@ svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa { .fad.fa-inverse, .fa-duotone.fa-inverse { color: var(--fa-inverse, #fff); -}`;function cc(){var e=nc,t=rc,n=F.cssPrefix,r=F.replacementClass,i=fm;if(n!==e||r!==t){var s=new RegExp("\\.".concat(e,"\\-"),"g"),o=new RegExp("\\--".concat(e,"\\-"),"g"),a=new RegExp("\\.".concat(t),"g");i=i.replace(s,".".concat(n,"-")).replace(o,"--".concat(n,"-")).replace(a,".".concat(r))}return i}var Xo=!1;function Ei(){F.autoAddCss&&!Xo&&(sm(cc()),Xo=!0)}var um={mixout:function(){return{dom:{css:cc,insertCss:Ei}}},hooks:function(){return{beforeDOMElementCreation:function(){Ei()},beforeI2svg:function(){Ei()}}}},ht=Tt||{};ht[pt]||(ht[pt]={});ht[pt].styles||(ht[pt].styles={});ht[pt].hooks||(ht[pt].hooks={});ht[pt].shims||(ht[pt].shims=[]);var Be=ht[pt],fc=[],dm=function e(){ce.removeEventListener("DOMContentLoaded",e),Br=1,fc.map(function(t){return t()})},Br=!1;bt&&(Br=(ce.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(ce.readyState),Br||ce.addEventListener("DOMContentLoaded",dm));function mm(e){!bt||(Br?setTimeout(e,0):fc.push(e))}function sr(e){var t=e.tag,n=e.attributes,r=n===void 0?{}:n,i=e.children,s=i===void 0?[]:i;return typeof e=="string"?lc(e):"<".concat(t," ").concat(am(r),">").concat(s.map(sr).join(""),"")}function Go(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var pm=function(t,n){return function(r,i,s,o){return t.call(n,r,i,s,o)}},ki=function(t,n,r,i){var s=Object.keys(t),o=s.length,a=i!==void 0?pm(n,i):n,l,f,c;for(r===void 0?(l=1,c=t[s[0]]):(l=0,c=r);l=55296&&i<=56319&&n=55296&&r<=56319&&n>t+1&&(i=e.charCodeAt(t+1),i>=56320&&i<=57343)?(r-55296)*1024+i-56320+65536:r}function Qo(e){return Object.keys(e).reduce(function(t,n){var r=e[n],i=!!r.icon;return i?t[r.iconName]=r.icon:t[n]=r,t},{})}function es(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.skipHooks,i=r===void 0?!1:r,s=Qo(t);typeof Be.hooks.addPack=="function"&&!i?Be.hooks.addPack(e,Qo(t)):Be.styles[e]=I(I({},Be.styles[e]||{}),s),e==="fas"&&es("fa",t)}var _r,xr,Er,en=Be.styles,vm=Be.shims,bm=(_r={},ye(_r,le,Object.values(Jn[le])),ye(_r,pe,Object.values(Jn[pe])),_r),Bs=null,uc={},dc={},mc={},pc={},hc={},ym=(xr={},ye(xr,le,Object.keys(Kn[le])),ye(xr,pe,Object.keys(Kn[pe])),xr);function wm(e){return~em.indexOf(e)}function _m(e,t){var n=t.split("-"),r=n[0],i=n.slice(1).join("-");return r===e&&i!==""&&!wm(i)?i:null}var gc=function(){var t=function(s){return ki(en,function(o,a,l){return o[l]=ki(a,s,{}),o},{})};uc=t(function(i,s,o){if(s[3]&&(i[s[3]]=o),s[2]){var a=s[2].filter(function(l){return typeof l=="number"});a.forEach(function(l){i[l.toString(16)]=o})}return i}),dc=t(function(i,s,o){if(i[o]=o,s[2]){var a=s[2].filter(function(l){return typeof l=="string"});a.forEach(function(l){i[l]=o})}return i}),hc=t(function(i,s,o){var a=s[2];return i[o]=o,a.forEach(function(l){i[l]=o}),i});var n="far"in en||F.autoFetchSvg,r=ki(vm,function(i,s){var o=s[0],a=s[1],l=s[2];return a==="far"&&!n&&(a="fas"),typeof o=="string"&&(i.names[o]={prefix:a,iconName:l}),typeof o=="number"&&(i.unicodes[o.toString(16)]={prefix:a,iconName:l}),i},{names:{},unicodes:{}});mc=r.names,pc=r.unicodes,Bs=ai(F.styleDefault,{family:F.familyDefault})};im(function(e){Bs=ai(e.styleDefault,{family:F.familyDefault})});gc();function Us(e,t){return(uc[e]||{})[t]}function xm(e,t){return(dc[e]||{})[t]}function Ht(e,t){return(hc[e]||{})[t]}function vc(e){return mc[e]||{prefix:null,iconName:null}}function Em(e){var t=pc[e],n=Us("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function It(){return Bs}var qs=function(){return{prefix:null,iconName:null,rest:[]}};function ai(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.family,r=n===void 0?le:n,i=Kn[r][e],s=Yn[r][e]||Yn[r][i],o=e in Be.styles?e:null;return s||o||null}var Zo=(Er={},ye(Er,le,Object.keys(Jn[le])),ye(Er,pe,Object.keys(Jn[pe])),Er);function li(e){var t,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.skipLookups,i=r===void 0?!1:r,s=(t={},ye(t,le,"".concat(F.cssPrefix,"-").concat(le)),ye(t,pe,"".concat(F.cssPrefix,"-").concat(pe)),t),o=null,a=le;(e.includes(s[le])||e.some(function(f){return Zo[le].includes(f)}))&&(a=le),(e.includes(s[pe])||e.some(function(f){return Zo[pe].includes(f)}))&&(a=pe);var l=e.reduce(function(f,c){var u=_m(F.cssPrefix,c);if(en[c]?(c=bm[a].includes(c)?Yd[a][c]:c,o=c,f.prefix=c):ym[a].indexOf(c)>-1?(o=c,f.prefix=ai(c,{family:a})):u?f.iconName=u:c!==F.replacementClass&&c!==s[le]&&c!==s[pe]&&f.rest.push(c),!i&&f.prefix&&f.iconName){var m=o==="fa"?vc(f.iconName):{},h=Ht(f.prefix,f.iconName);m.prefix&&(o=null),f.iconName=m.iconName||h||f.iconName,f.prefix=m.prefix||f.prefix,f.prefix==="far"&&!en.far&&en.fas&&!F.autoFetchSvg&&(f.prefix="fas")}return f},qs());return(e.includes("fa-brands")||e.includes("fab"))&&(l.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(l.prefix="fad"),!l.prefix&&a===pe&&(en.fass||F.autoFetchSvg)&&(l.prefix="fass",l.iconName=Ht(l.prefix,l.iconName)||l.iconName),(l.prefix==="fa"||o==="fa")&&(l.prefix=It()||"fas"),l}var km=function(){function e(){Fd(this,e),this.definitions={}}return jd(e,[{key:"add",value:function(){for(var n=this,r=arguments.length,i=new Array(r),s=0;s0&&c.forEach(function(u){typeof u=="string"&&(n[a][u]=f)}),n[a][l]=f}),n}}]),e}(),ea=[],tn={},on={},Am=Object.keys(on);function Sm(e,t){var n=t.mixoutsTo;return ea=e,tn={},Object.keys(on).forEach(function(r){Am.indexOf(r)===-1&&delete on[r]}),ea.forEach(function(r){var i=r.mixout?r.mixout():{};if(Object.keys(i).forEach(function(o){typeof i[o]=="function"&&(n[o]=i[o]),Hr(i[o])==="object"&&Object.keys(i[o]).forEach(function(a){n[o]||(n[o]={}),n[o][a]=i[o][a]})}),r.hooks){var s=r.hooks();Object.keys(s).forEach(function(o){tn[o]||(tn[o]=[]),tn[o].push(s[o])})}r.provides&&r.provides(on)}),n}function ts(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i1?t-1:0),r=1;r0&&arguments[0]!==void 0?arguments[0]:{};return bt?(Kt("beforeI2svg",t),gt("pseudoElements2svg",t),gt("i2svg",t)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot;F.autoReplaceSvg===!1&&(F.autoReplaceSvg=!0),F.observeMutations=!0,mm(function(){Pm({autoReplaceSvgRoot:n}),Kt("watch",t)})}},Rm={icon:function(t){if(t===null)return null;if(Hr(t)==="object"&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:Ht(t.prefix,t.iconName)||t.iconName};if(Array.isArray(t)&&t.length===2){var n=t[1].indexOf("fa-")===0?t[1].slice(3):t[1],r=ai(t[0]);return{prefix:r,iconName:Ht(r,n)||n}}if(typeof t=="string"&&(t.indexOf("".concat(F.cssPrefix,"-"))>-1||t.match(Jd))){var i=li(t.split(" "),{skipLookups:!0});return{prefix:i.prefix||It(),iconName:Ht(i.prefix,i.iconName)||i.iconName}}if(typeof t=="string"){var s=It();return{prefix:s,iconName:Ht(s,t)||t}}}},Ne={noAuto:Om,config:F,dom:Cm,parse:Rm,library:bc,findIconDefinition:ns,toHtml:sr},Pm=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot,r=n===void 0?ce:n;(Object.keys(Be.styles).length>0||F.autoFetchSvg)&&bt&&F.autoReplaceSvg&&Ne.dom.i2svg({node:r})};function ci(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(r){return sr(r)})}}),Object.defineProperty(e,"node",{get:function(){if(!!bt){var r=ce.createElement("div");return r.innerHTML=e.html,r.children}}}),e}function Tm(e){var t=e.children,n=e.main,r=e.mask,i=e.attributes,s=e.styles,o=e.transform;if(Hs(o)&&n.found&&!r.found){var a=n.width,l=n.height,f={x:a/l/2,y:.5};i.style=oi(I(I({},s),{},{"transform-origin":"".concat(f.x+o.x/16,"em ").concat(f.y+o.y/16,"em")}))}return[{tag:"svg",attributes:i,children:t}]}function Im(e){var t=e.prefix,n=e.iconName,r=e.children,i=e.attributes,s=e.symbol,o=s===!0?"".concat(t,"-").concat(F.cssPrefix,"-").concat(n):s;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:I(I({},i),{},{id:o}),children:r}]}]}function Vs(e){var t=e.icons,n=t.main,r=t.mask,i=e.prefix,s=e.iconName,o=e.transform,a=e.symbol,l=e.title,f=e.maskId,c=e.titleId,u=e.extra,m=e.watchable,h=m===void 0?!1:m,v=r.found?r:n,y=v.width,O=v.height,P=i==="fak",S=[F.replacementClass,s?"".concat(F.cssPrefix,"-").concat(s):""].filter(function(W){return u.classes.indexOf(W)===-1}).filter(function(W){return W!==""||!!W}).concat(u.classes).join(" "),D={children:[],attributes:I(I({},u.attributes),{},{"data-prefix":i,"data-icon":s,class:S,role:u.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(y," ").concat(O)})},M=P&&!~u.classes.indexOf("fa-fw")?{width:"".concat(y/O*16*.0625,"em")}:{};h&&(D.attributes[Wt]=""),l&&(D.children.push({tag:"title",attributes:{id:D.attributes["aria-labelledby"]||"title-".concat(c||Gn())},children:[l]}),delete D.attributes.title);var K=I(I({},D),{},{prefix:i,iconName:s,main:n,mask:r,maskId:f,transform:o,symbol:a,styles:I(I({},M),u.styles)}),fe=r.found&&n.found?gt("generateAbstractMask",K)||{children:[],attributes:{}}:gt("generateAbstractIcon",K)||{children:[],attributes:{}},ue=fe.children,Y=fe.attributes;return K.children=ue,K.attributes=Y,a?Im(K):Tm(K)}function ta(e){var t=e.content,n=e.width,r=e.height,i=e.transform,s=e.title,o=e.extra,a=e.watchable,l=a===void 0?!1:a,f=I(I(I({},o.attributes),s?{title:s}:{}),{},{class:o.classes.join(" ")});l&&(f[Wt]="");var c=I({},o.styles);Hs(i)&&(c.transform=cm({transform:i,startCentered:!0,width:n,height:r}),c["-webkit-transform"]=c.transform);var u=oi(c);u.length>0&&(f.style=u);var m=[];return m.push({tag:"span",attributes:f,children:[t]}),s&&m.push({tag:"span",attributes:{class:"sr-only"},children:[s]}),m}function Nm(e){var t=e.content,n=e.title,r=e.extra,i=I(I(I({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),s=oi(r.styles);s.length>0&&(i.style=s);var o=[];return o.push({tag:"span",attributes:i,children:[t]}),n&&o.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),o}var Ai=Be.styles;function rs(e){var t=e[0],n=e[1],r=e.slice(4),i=Ls(r,1),s=i[0],o=null;return Array.isArray(s)?o={tag:"g",attributes:{class:"".concat(F.cssPrefix,"-").concat(zt.GROUP)},children:[{tag:"path",attributes:{class:"".concat(F.cssPrefix,"-").concat(zt.SECONDARY),fill:"currentColor",d:s[0]}},{tag:"path",attributes:{class:"".concat(F.cssPrefix,"-").concat(zt.PRIMARY),fill:"currentColor",d:s[1]}}]}:o={tag:"path",attributes:{fill:"currentColor",d:s}},{found:!0,width:t,height:n,icon:o}}var Mm={found:!1,width:512,height:512};function Lm(e,t){!ic&&!F.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function is(e,t){var n=t;return t==="fa"&&F.styleDefault!==null&&(t=It()),new Promise(function(r,i){if(gt("missingIconAbstract"),n==="fa"){var s=vc(e)||{};e=s.iconName||e,t=s.prefix||t}if(e&&t&&Ai[t]&&Ai[t][e]){var o=Ai[t][e];return r(rs(o))}Lm(e,t),r(I(I({},Mm),{},{icon:F.showMissingIcons&&e?gt("missingIconAbstract")||{}:{}}))})}var na=function(){},ss=F.measurePerformance&&hr&&hr.mark&&hr.measure?hr:{mark:na,measure:na},Pn='FA "6.4.2"',Fm=function(t){return ss.mark("".concat(Pn," ").concat(t," begins")),function(){return yc(t)}},yc=function(t){ss.mark("".concat(Pn," ").concat(t," ends")),ss.measure("".concat(Pn," ").concat(t),"".concat(Pn," ").concat(t," begins"),"".concat(Pn," ").concat(t," ends"))},Ws={begin:Fm,end:yc},Pr=function(){};function ra(e){var t=e.getAttribute?e.getAttribute(Wt):null;return typeof t=="string"}function jm(e){var t=e.getAttribute?e.getAttribute(js):null,n=e.getAttribute?e.getAttribute(Ds):null;return t&&n}function Dm(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(F.replacementClass)}function $m(){if(F.autoReplaceSvg===!0)return Tr.replace;var e=Tr[F.autoReplaceSvg];return e||Tr.replace}function zm(e){return ce.createElementNS("http://www.w3.org/2000/svg",e)}function Hm(e){return ce.createElement(e)}function wc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.ceFn,r=n===void 0?e.tag==="svg"?zm:Hm:n;if(typeof e=="string")return ce.createTextNode(e);var i=r(e.tag);Object.keys(e.attributes||[]).forEach(function(o){i.setAttribute(o,e.attributes[o])});var s=e.children||[];return s.forEach(function(o){i.appendChild(wc(o,{ceFn:r}))}),i}function Bm(e){var t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}var Tr={replace:function(t){var n=t[0];if(n.parentNode)if(t[1].forEach(function(i){n.parentNode.insertBefore(wc(i),n)}),n.getAttribute(Wt)===null&&F.keepOriginalSource){var r=ce.createComment(Bm(n));n.parentNode.replaceChild(r,n)}else n.remove()},nest:function(t){var n=t[0],r=t[1];if(~zs(n).indexOf(F.replacementClass))return Tr.replace(t);var i=new RegExp("".concat(F.cssPrefix,"-.*"));if(delete r[0].attributes.id,r[0].attributes.class){var s=r[0].attributes.class.split(" ").reduce(function(a,l){return l===F.replacementClass||l.match(i)?a.toSvg.push(l):a.toNode.push(l),a},{toNode:[],toSvg:[]});r[0].attributes.class=s.toSvg.join(" "),s.toNode.length===0?n.removeAttribute("class"):n.setAttribute("class",s.toNode.join(" "))}var o=r.map(function(a){return sr(a)}).join(` -`);n.setAttribute(Wt,""),n.innerHTML=o}};function ia(e){e()}function _c(e,t){var n=typeof t=="function"?t:Pr;if(e.length===0)n();else{var r=ia;F.mutateApproach===Wd&&(r=Tt.requestAnimationFrame||ia),r(function(){var i=$m(),s=Ws.begin("mutate");e.map(i),s(),n()})}}var Ks=!1;function xc(){Ks=!0}function os(){Ks=!1}var Ur=null;function sa(e){if(!!Yo&&!!F.observeMutations){var t=e.treeCallback,n=t===void 0?Pr:t,r=e.nodeCallback,i=r===void 0?Pr:r,s=e.pseudoElementsCallback,o=s===void 0?Pr:s,a=e.observeMutationsRoot,l=a===void 0?ce:a;Ur=new Yo(function(f){if(!Ks){var c=It();wn(f).forEach(function(u){if(u.type==="childList"&&u.addedNodes.length>0&&!ra(u.addedNodes[0])&&(F.searchPseudoElements&&o(u.target),n(u.target)),u.type==="attributes"&&u.target.parentNode&&F.searchPseudoElements&&o(u.target.parentNode),u.type==="attributes"&&ra(u.target)&&~Zd.indexOf(u.attributeName))if(u.attributeName==="class"&&jm(u.target)){var m=li(zs(u.target)),h=m.prefix,v=m.iconName;u.target.setAttribute(js,h||c),v&&u.target.setAttribute(Ds,v)}else Dm(u.target)&&i(u.target)})}}),bt&&Ur.observe(l,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function Um(){!Ur||Ur.disconnect()}function qm(e){var t=e.getAttribute("style"),n=[];return t&&(n=t.split(";").reduce(function(r,i){var s=i.split(":"),o=s[0],a=s.slice(1);return o&&a.length>0&&(r[o]=a.join(":").trim()),r},{})),n}function Vm(e){var t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"",i=li(zs(e));return i.prefix||(i.prefix=It()),t&&n&&(i.prefix=t,i.iconName=n),i.iconName&&i.prefix||(i.prefix&&r.length>0&&(i.iconName=xm(i.prefix,e.innerText)||Us(i.prefix,Zi(e.innerText))),!i.iconName&&F.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data)),i}function Wm(e){var t=wn(e.attributes).reduce(function(i,s){return i.name!=="class"&&i.name!=="style"&&(i[s.name]=s.value),i},{}),n=e.getAttribute("title"),r=e.getAttribute("data-fa-title-id");return F.autoA11y&&(n?t["aria-labelledby"]="".concat(F.replacementClass,"-title-").concat(r||Gn()):(t["aria-hidden"]="true",t.focusable="false")),t}function Km(){return{iconName:null,title:null,titleId:null,prefix:null,transform:Qe,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function oa(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},n=Vm(e),r=n.iconName,i=n.prefix,s=n.rest,o=Wm(e),a=ts("parseNodeAttributes",{},e),l=t.styleParser?qm(e):[];return I({iconName:r,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:i,transform:Qe,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:s,styles:l,attributes:o}},a)}var Ym=Be.styles;function Ec(e){var t=F.autoReplaceSvg==="nest"?oa(e,{styleParser:!1}):oa(e);return~t.extra.classes.indexOf(sc)?gt("generateLayersText",e,t):gt("generateSvgReplacementMutation",e,t)}var Nt=new Set;$s.map(function(e){Nt.add("fa-".concat(e))});Object.keys(Kn[le]).map(Nt.add.bind(Nt));Object.keys(Kn[pe]).map(Nt.add.bind(Nt));Nt=rr(Nt);function aa(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!bt)return Promise.resolve();var n=ce.documentElement.classList,r=function(u){return n.add("".concat(Jo,"-").concat(u))},i=function(u){return n.remove("".concat(Jo,"-").concat(u))},s=F.autoFetchSvg?Nt:$s.map(function(c){return"fa-".concat(c)}).concat(Object.keys(Ym));s.includes("fa")||s.push("fa");var o=[".".concat(sc,":not([").concat(Wt,"])")].concat(s.map(function(c){return".".concat(c,":not([").concat(Wt,"])")})).join(", ");if(o.length===0)return Promise.resolve();var a=[];try{a=wn(e.querySelectorAll(o))}catch{}if(a.length>0)r("pending"),i("complete");else return Promise.resolve();var l=Ws.begin("onTree"),f=a.reduce(function(c,u){try{var m=Ec(u);m&&c.push(m)}catch(h){ic||h.name==="MissingIcon"&&console.error(h)}return c},[]);return new Promise(function(c,u){Promise.all(f).then(function(m){_c(m,function(){r("active"),r("complete"),i("pending"),typeof t=="function"&&t(),l(),c()})}).catch(function(m){l(),u(m)})})}function Jm(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;Ec(e).then(function(n){n&&_c([n],t)})}function Xm(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=(t||{}).icon?t:ns(t||{}),i=n.mask;return i&&(i=(i||{}).icon?i:ns(i||{})),e(r,I(I({},n),{},{mask:i}))}}var Gm=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.transform,i=r===void 0?Qe:r,s=n.symbol,o=s===void 0?!1:s,a=n.mask,l=a===void 0?null:a,f=n.maskId,c=f===void 0?null:f,u=n.title,m=u===void 0?null:u,h=n.titleId,v=h===void 0?null:h,y=n.classes,O=y===void 0?[]:y,P=n.attributes,S=P===void 0?{}:P,D=n.styles,M=D===void 0?{}:D;if(!!t){var K=t.prefix,fe=t.iconName,ue=t.icon;return ci(I({type:"icon"},t),function(){return Kt("beforeDOMElementCreation",{iconDefinition:t,params:n}),F.autoA11y&&(m?S["aria-labelledby"]="".concat(F.replacementClass,"-title-").concat(v||Gn()):(S["aria-hidden"]="true",S.focusable="false")),Vs({icons:{main:rs(ue),mask:l?rs(l.icon):{found:!1,width:null,height:null,icon:{}}},prefix:K,iconName:fe,transform:I(I({},Qe),i),symbol:o,title:m,maskId:c,titleId:v,extra:{attributes:S,styles:M,classes:O}})})}},Qm={mixout:function(){return{icon:Xm(Gm)}},hooks:function(){return{mutationObserverCallbacks:function(n){return n.treeCallback=aa,n.nodeCallback=Jm,n}}},provides:function(t){t.i2svg=function(n){var r=n.node,i=r===void 0?ce:r,s=n.callback,o=s===void 0?function(){}:s;return aa(i,o)},t.generateSvgReplacementMutation=function(n,r){var i=r.iconName,s=r.title,o=r.titleId,a=r.prefix,l=r.transform,f=r.symbol,c=r.mask,u=r.maskId,m=r.extra;return new Promise(function(h,v){Promise.all([is(i,a),c.iconName?is(c.iconName,c.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(y){var O=Ls(y,2),P=O[0],S=O[1];h([n,Vs({icons:{main:P,mask:S},prefix:a,iconName:i,transform:l,symbol:f,maskId:u,title:s,titleId:o,extra:m,watchable:!0})])}).catch(v)})},t.generateAbstractIcon=function(n){var r=n.children,i=n.attributes,s=n.main,o=n.transform,a=n.styles,l=oi(a);l.length>0&&(i.style=l);var f;return Hs(o)&&(f=gt("generateAbstractTransformGrouping",{main:s,transform:o,containerWidth:s.width,iconWidth:s.width})),r.push(f||s.icon),{children:r,attributes:i}}}},Zm={mixout:function(){return{layer:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.classes,s=i===void 0?[]:i;return ci({type:"layer"},function(){Kt("beforeDOMElementCreation",{assembler:n,params:r});var o=[];return n(function(a){Array.isArray(a)?a.map(function(l){o=o.concat(l.abstract)}):o=o.concat(a.abstract)}),[{tag:"span",attributes:{class:["".concat(F.cssPrefix,"-layers")].concat(rr(s)).join(" ")},children:o}]})}}}},ep={mixout:function(){return{counter:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.title,s=i===void 0?null:i,o=r.classes,a=o===void 0?[]:o,l=r.attributes,f=l===void 0?{}:l,c=r.styles,u=c===void 0?{}:c;return ci({type:"counter",content:n},function(){return Kt("beforeDOMElementCreation",{content:n,params:r}),Nm({content:n.toString(),title:s,extra:{attributes:f,styles:u,classes:["".concat(F.cssPrefix,"-layers-counter")].concat(rr(a))}})})}}}},tp={mixout:function(){return{text:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.transform,s=i===void 0?Qe:i,o=r.title,a=o===void 0?null:o,l=r.classes,f=l===void 0?[]:l,c=r.attributes,u=c===void 0?{}:c,m=r.styles,h=m===void 0?{}:m;return ci({type:"text",content:n},function(){return Kt("beforeDOMElementCreation",{content:n,params:r}),ta({content:n,transform:I(I({},Qe),s),title:a,extra:{attributes:u,styles:h,classes:["".concat(F.cssPrefix,"-layers-text")].concat(rr(f))}})})}}},provides:function(t){t.generateLayersText=function(n,r){var i=r.title,s=r.transform,o=r.extra,a=null,l=null;if(tc){var f=parseInt(getComputedStyle(n).fontSize,10),c=n.getBoundingClientRect();a=c.width/f,l=c.height/f}return F.autoA11y&&!i&&(o.attributes["aria-hidden"]="true"),Promise.resolve([n,ta({content:n.innerHTML,width:a,height:l,transform:s,title:i,extra:o,watchable:!0})])}}},np=new RegExp('"',"ug"),la=[1105920,1112319];function rp(e){var t=e.replace(np,""),n=gm(t,0),r=n>=la[0]&&n<=la[1],i=t.length===2?t[0]===t[1]:!1;return{value:Zi(i?t[0]:t),isSecondary:r||i}}function ca(e,t){var n="".concat(Vd).concat(t.replace(":","-"));return new Promise(function(r,i){if(e.getAttribute(n)!==null)return r();var s=wn(e.children),o=s.filter(function(ue){return ue.getAttribute(Qi)===t})[0],a=Tt.getComputedStyle(e,t),l=a.getPropertyValue("font-family").match(Xd),f=a.getPropertyValue("font-weight"),c=a.getPropertyValue("content");if(o&&!l)return e.removeChild(o),r();if(l&&c!=="none"&&c!==""){var u=a.getPropertyValue("content"),m=~["Sharp"].indexOf(l[2])?pe:le,h=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(l[2])?Yn[m][l[2].toLowerCase()]:Gd[m][f],v=rp(u),y=v.value,O=v.isSecondary,P=l[0].startsWith("FontAwesome"),S=Us(h,y),D=S;if(P){var M=Em(y);M.iconName&&M.prefix&&(S=M.iconName,h=M.prefix)}if(S&&!O&&(!o||o.getAttribute(js)!==h||o.getAttribute(Ds)!==D)){e.setAttribute(n,D),o&&e.removeChild(o);var K=Km(),fe=K.extra;fe.attributes[Qi]=t,is(S,h).then(function(ue){var Y=Vs(I(I({},K),{},{icons:{main:ue,mask:qs()},prefix:h,iconName:D,extra:fe,watchable:!0})),W=ce.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(W,e.firstChild):e.appendChild(W),W.outerHTML=Y.map(function(de){return sr(de)}).join(` -`),e.removeAttribute(n),r()}).catch(i)}else r()}else r()})}function ip(e){return Promise.all([ca(e,"::before"),ca(e,"::after")])}function sp(e){return e.parentNode!==document.head&&!~Kd.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(Qi)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function fa(e){if(!!bt)return new Promise(function(t,n){var r=wn(e.querySelectorAll("*")).filter(sp).map(ip),i=Ws.begin("searchPseudoElements");xc(),Promise.all(r).then(function(){i(),os(),t()}).catch(function(){i(),os(),n()})})}var op={hooks:function(){return{mutationObserverCallbacks:function(n){return n.pseudoElementsCallback=fa,n}}},provides:function(t){t.pseudoElements2svg=function(n){var r=n.node,i=r===void 0?ce:r;F.searchPseudoElements&&fa(i)}}},ua=!1,ap={mixout:function(){return{dom:{unwatch:function(){xc(),ua=!0}}}},hooks:function(){return{bootstrap:function(){sa(ts("mutationObserverCallbacks",{}))},noAuto:function(){Um()},watch:function(n){var r=n.observeMutationsRoot;ua?os():sa(ts("mutationObserverCallbacks",{observeMutationsRoot:r}))}}}},da=function(t){var n={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t.toLowerCase().split(" ").reduce(function(r,i){var s=i.toLowerCase().split("-"),o=s[0],a=s.slice(1).join("-");if(o&&a==="h")return r.flipX=!0,r;if(o&&a==="v")return r.flipY=!0,r;if(a=parseFloat(a),isNaN(a))return r;switch(o){case"grow":r.size=r.size+a;break;case"shrink":r.size=r.size-a;break;case"left":r.x=r.x-a;break;case"right":r.x=r.x+a;break;case"up":r.y=r.y-a;break;case"down":r.y=r.y+a;break;case"rotate":r.rotate=r.rotate+a;break}return r},n)},lp={mixout:function(){return{parse:{transform:function(n){return da(n)}}}},hooks:function(){return{parseNodeAttributes:function(n,r){var i=r.getAttribute("data-fa-transform");return i&&(n.transform=da(i)),n}}},provides:function(t){t.generateAbstractTransformGrouping=function(n){var r=n.main,i=n.transform,s=n.containerWidth,o=n.iconWidth,a={transform:"translate(".concat(s/2," 256)")},l="translate(".concat(i.x*32,", ").concat(i.y*32,") "),f="scale(".concat(i.size/16*(i.flipX?-1:1),", ").concat(i.size/16*(i.flipY?-1:1),") "),c="rotate(".concat(i.rotate," 0 0)"),u={transform:"".concat(l," ").concat(f," ").concat(c)},m={transform:"translate(".concat(o/2*-1," -256)")},h={outer:a,inner:u,path:m};return{tag:"g",attributes:I({},h.outer),children:[{tag:"g",attributes:I({},h.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:I(I({},r.icon.attributes),h.path)}]}]}}}},Si={x:0,y:0,width:"100%",height:"100%"};function ma(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function cp(e){return e.tag==="g"?e.children:[e]}var fp={hooks:function(){return{parseNodeAttributes:function(n,r){var i=r.getAttribute("data-fa-mask"),s=i?li(i.split(" ").map(function(o){return o.trim()})):qs();return s.prefix||(s.prefix=It()),n.mask=s,n.maskId=r.getAttribute("data-fa-mask-id"),n}}},provides:function(t){t.generateAbstractMask=function(n){var r=n.children,i=n.attributes,s=n.main,o=n.mask,a=n.maskId,l=n.transform,f=s.width,c=s.icon,u=o.width,m=o.icon,h=lm({transform:l,containerWidth:u,iconWidth:f}),v={tag:"rect",attributes:I(I({},Si),{},{fill:"white"})},y=c.children?{children:c.children.map(ma)}:{},O={tag:"g",attributes:I({},h.inner),children:[ma(I({tag:c.tag,attributes:I(I({},c.attributes),h.path)},y))]},P={tag:"g",attributes:I({},h.outer),children:[O]},S="mask-".concat(a||Gn()),D="clip-".concat(a||Gn()),M={tag:"mask",attributes:I(I({},Si),{},{id:S,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[v,P]},K={tag:"defs",children:[{tag:"clipPath",attributes:{id:D},children:cp(m)},M]};return r.push(K,{tag:"rect",attributes:I({fill:"currentColor","clip-path":"url(#".concat(D,")"),mask:"url(#".concat(S,")")},Si)}),{children:r,attributes:i}}}},up={provides:function(t){var n=!1;Tt.matchMedia&&(n=Tt.matchMedia("(prefers-reduced-motion: reduce)").matches),t.missingIconAbstract=function(){var r=[],i={fill:"currentColor"},s={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};r.push({tag:"path",attributes:I(I({},i),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var o=I(I({},s),{},{attributeName:"opacity"}),a={tag:"circle",attributes:I(I({},i),{},{cx:"256",cy:"364",r:"28"}),children:[]};return n||a.children.push({tag:"animate",attributes:I(I({},s),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:I(I({},o),{},{values:"1;0;1;1;0;1;"})}),r.push(a),r.push({tag:"path",attributes:I(I({},i),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:n?[]:[{tag:"animate",attributes:I(I({},o),{},{values:"1;0;0;0;0;1;"})}]}),n||r.push({tag:"path",attributes:I(I({},i),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:I(I({},o),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:r}}}},dp={hooks:function(){return{parseNodeAttributes:function(n,r){var i=r.getAttribute("data-fa-symbol"),s=i===null?!1:i===""?!0:i;return n.symbol=s,n}}}},mp=[um,Qm,Zm,ep,tp,op,ap,lp,fp,up,dp];Sm(mp,{mixoutsTo:Ne});Ne.noAuto;Ne.config;var Ys=Ne.library,pp=Ne.dom;Ne.parse;Ne.findIconDefinition;Ne.toHtml;Ne.icon;Ne.layer;Ne.text;Ne.counter;/*! +}`;function cc(){var e=nc,t=rc,n=F.cssPrefix,r=F.replacementClass,i=fm;if(n!==e||r!==t){var s=new RegExp("\\.".concat(e,"\\-"),"g"),o=new RegExp("\\--".concat(e,"\\-"),"g"),a=new RegExp("\\.".concat(t),"g");i=i.replace(s,".".concat(n,"-")).replace(o,"--".concat(n,"-")).replace(a,".".concat(r))}return i}var Xo=!1;function Ei(){F.autoAddCss&&!Xo&&(sm(cc()),Xo=!0)}var um={mixout:function(){return{dom:{css:cc,insertCss:Ei}}},hooks:function(){return{beforeDOMElementCreation:function(){Ei()},beforeI2svg:function(){Ei()}}}},ht=Tt||{};ht[pt]||(ht[pt]={});ht[pt].styles||(ht[pt].styles={});ht[pt].hooks||(ht[pt].hooks={});ht[pt].shims||(ht[pt].shims=[]);var Be=ht[pt],fc=[],dm=function e(){ce.removeEventListener("DOMContentLoaded",e),Br=1,fc.map(function(t){return t()})},Br=!1;bt&&(Br=(ce.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(ce.readyState),Br||ce.addEventListener("DOMContentLoaded",dm));function mm(e){!bt||(Br?setTimeout(e,0):fc.push(e))}function sr(e){var t=e.tag,n=e.attributes,r=n===void 0?{}:n,i=e.children,s=i===void 0?[]:i;return typeof e=="string"?lc(e):"<".concat(t," ").concat(am(r),">").concat(s.map(sr).join(""),"")}function Go(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var pm=function(t,n){return function(r,i,s,o){return t.call(n,r,i,s,o)}},ki=function(t,n,r,i){var s=Object.keys(t),o=s.length,a=i!==void 0?pm(n,i):n,l,f,c;for(r===void 0?(l=1,c=t[s[0]]):(l=0,c=r);l=55296&&i<=56319&&n=55296&&r<=56319&&n>t+1&&(i=e.charCodeAt(t+1),i>=56320&&i<=57343)?(r-55296)*1024+i-56320+65536:r}function Qo(e){return Object.keys(e).reduce(function(t,n){var r=e[n],i=!!r.icon;return i?t[r.iconName]=r.icon:t[n]=r,t},{})}function es(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.skipHooks,i=r===void 0?!1:r,s=Qo(t);typeof Be.hooks.addPack=="function"&&!i?Be.hooks.addPack(e,Qo(t)):Be.styles[e]=I(I({},Be.styles[e]||{}),s),e==="fas"&&es("fa",t)}var _r,xr,Er,en=Be.styles,vm=Be.shims,bm=(_r={},ye(_r,le,Object.values(Jn[le])),ye(_r,pe,Object.values(Jn[pe])),_r),Bs=null,uc={},dc={},mc={},pc={},hc={},ym=(xr={},ye(xr,le,Object.keys(Kn[le])),ye(xr,pe,Object.keys(Kn[pe])),xr);function wm(e){return~em.indexOf(e)}function _m(e,t){var n=t.split("-"),r=n[0],i=n.slice(1).join("-");return r===e&&i!==""&&!wm(i)?i:null}var gc=function(){var t=function(s){return ki(en,function(o,a,l){return o[l]=ki(a,s,{}),o},{})};uc=t(function(i,s,o){if(s[3]&&(i[s[3]]=o),s[2]){var a=s[2].filter(function(l){return typeof l=="number"});a.forEach(function(l){i[l.toString(16)]=o})}return i}),dc=t(function(i,s,o){if(i[o]=o,s[2]){var a=s[2].filter(function(l){return typeof l=="string"});a.forEach(function(l){i[l]=o})}return i}),hc=t(function(i,s,o){var a=s[2];return i[o]=o,a.forEach(function(l){i[l]=o}),i});var n="far"in en||F.autoFetchSvg,r=ki(vm,function(i,s){var o=s[0],a=s[1],l=s[2];return a==="far"&&!n&&(a="fas"),typeof o=="string"&&(i.names[o]={prefix:a,iconName:l}),typeof o=="number"&&(i.unicodes[o.toString(16)]={prefix:a,iconName:l}),i},{names:{},unicodes:{}});mc=r.names,pc=r.unicodes,Bs=ai(F.styleDefault,{family:F.familyDefault})};im(function(e){Bs=ai(e.styleDefault,{family:F.familyDefault})});gc();function Us(e,t){return(uc[e]||{})[t]}function xm(e,t){return(dc[e]||{})[t]}function Ht(e,t){return(hc[e]||{})[t]}function vc(e){return mc[e]||{prefix:null,iconName:null}}function Em(e){var t=pc[e],n=Us("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function It(){return Bs}var qs=function(){return{prefix:null,iconName:null,rest:[]}};function ai(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.family,r=n===void 0?le:n,i=Kn[r][e],s=Yn[r][e]||Yn[r][i],o=e in Be.styles?e:null;return s||o||null}var Zo=(Er={},ye(Er,le,Object.keys(Jn[le])),ye(Er,pe,Object.keys(Jn[pe])),Er);function li(e){var t,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.skipLookups,i=r===void 0?!1:r,s=(t={},ye(t,le,"".concat(F.cssPrefix,"-").concat(le)),ye(t,pe,"".concat(F.cssPrefix,"-").concat(pe)),t),o=null,a=le;(e.includes(s[le])||e.some(function(f){return Zo[le].includes(f)}))&&(a=le),(e.includes(s[pe])||e.some(function(f){return Zo[pe].includes(f)}))&&(a=pe);var l=e.reduce(function(f,c){var u=_m(F.cssPrefix,c);if(en[c]?(c=bm[a].includes(c)?Yd[a][c]:c,o=c,f.prefix=c):ym[a].indexOf(c)>-1?(o=c,f.prefix=ai(c,{family:a})):u?f.iconName=u:c!==F.replacementClass&&c!==s[le]&&c!==s[pe]&&f.rest.push(c),!i&&f.prefix&&f.iconName){var m=o==="fa"?vc(f.iconName):{},h=Ht(f.prefix,f.iconName);m.prefix&&(o=null),f.iconName=m.iconName||h||f.iconName,f.prefix=m.prefix||f.prefix,f.prefix==="far"&&!en.far&&en.fas&&!F.autoFetchSvg&&(f.prefix="fas")}return f},qs());return(e.includes("fa-brands")||e.includes("fab"))&&(l.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(l.prefix="fad"),!l.prefix&&a===pe&&(en.fass||F.autoFetchSvg)&&(l.prefix="fass",l.iconName=Ht(l.prefix,l.iconName)||l.iconName),(l.prefix==="fa"||o==="fa")&&(l.prefix=It()||"fas"),l}var km=function(){function e(){Fd(this,e),this.definitions={}}return jd(e,[{key:"add",value:function(){for(var n=this,r=arguments.length,i=new Array(r),s=0;s0&&c.forEach(function(u){typeof u=="string"&&(n[a][u]=f)}),n[a][l]=f}),n}}]),e}(),ea=[],tn={},on={},Am=Object.keys(on);function Sm(e,t){var n=t.mixoutsTo;return ea=e,tn={},Object.keys(on).forEach(function(r){Am.indexOf(r)===-1&&delete on[r]}),ea.forEach(function(r){var i=r.mixout?r.mixout():{};if(Object.keys(i).forEach(function(o){typeof i[o]=="function"&&(n[o]=i[o]),Hr(i[o])==="object"&&Object.keys(i[o]).forEach(function(a){n[o]||(n[o]={}),n[o][a]=i[o][a]})}),r.hooks){var s=r.hooks();Object.keys(s).forEach(function(o){tn[o]||(tn[o]=[]),tn[o].push(s[o])})}r.provides&&r.provides(on)}),n}function ts(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i1?t-1:0),r=1;r0&&arguments[0]!==void 0?arguments[0]:{};return bt?(Kt("beforeI2svg",t),gt("pseudoElements2svg",t),gt("i2svg",t)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot;F.autoReplaceSvg===!1&&(F.autoReplaceSvg=!0),F.observeMutations=!0,mm(function(){Pm({autoReplaceSvgRoot:n}),Kt("watch",t)})}},Rm={icon:function(t){if(t===null)return null;if(Hr(t)==="object"&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:Ht(t.prefix,t.iconName)||t.iconName};if(Array.isArray(t)&&t.length===2){var n=t[1].indexOf("fa-")===0?t[1].slice(3):t[1],r=ai(t[0]);return{prefix:r,iconName:Ht(r,n)||n}}if(typeof t=="string"&&(t.indexOf("".concat(F.cssPrefix,"-"))>-1||t.match(Jd))){var i=li(t.split(" "),{skipLookups:!0});return{prefix:i.prefix||It(),iconName:Ht(i.prefix,i.iconName)||i.iconName}}if(typeof t=="string"){var s=It();return{prefix:s,iconName:Ht(s,t)||t}}}},Ne={noAuto:Om,config:F,dom:Cm,parse:Rm,library:bc,findIconDefinition:ns,toHtml:sr},Pm=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot,r=n===void 0?ce:n;(Object.keys(Be.styles).length>0||F.autoFetchSvg)&&bt&&F.autoReplaceSvg&&Ne.dom.i2svg({node:r})};function ci(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(r){return sr(r)})}}),Object.defineProperty(e,"node",{get:function(){if(!!bt){var r=ce.createElement("div");return r.innerHTML=e.html,r.children}}}),e}function Tm(e){var t=e.children,n=e.main,r=e.mask,i=e.attributes,s=e.styles,o=e.transform;if(Hs(o)&&n.found&&!r.found){var a=n.width,l=n.height,f={x:a/l/2,y:.5};i.style=oi(I(I({},s),{},{"transform-origin":"".concat(f.x+o.x/16,"em ").concat(f.y+o.y/16,"em")}))}return[{tag:"svg",attributes:i,children:t}]}function Im(e){var t=e.prefix,n=e.iconName,r=e.children,i=e.attributes,s=e.symbol,o=s===!0?"".concat(t,"-").concat(F.cssPrefix,"-").concat(n):s;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:I(I({},i),{},{id:o}),children:r}]}]}function Vs(e){var t=e.icons,n=t.main,r=t.mask,i=e.prefix,s=e.iconName,o=e.transform,a=e.symbol,l=e.title,f=e.maskId,c=e.titleId,u=e.extra,m=e.watchable,h=m===void 0?!1:m,v=r.found?r:n,b=v.width,O=v.height,S=i==="fak",C=[F.replacementClass,s?"".concat(F.cssPrefix,"-").concat(s):""].filter(function(W){return u.classes.indexOf(W)===-1}).filter(function(W){return W!==""||!!W}).concat(u.classes).join(" "),j={children:[],attributes:I(I({},u.attributes),{},{"data-prefix":i,"data-icon":s,class:C,role:u.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(b," ").concat(O)})},M=S&&!~u.classes.indexOf("fa-fw")?{width:"".concat(b/O*16*.0625,"em")}:{};h&&(j.attributes[Wt]=""),l&&(j.children.push({tag:"title",attributes:{id:j.attributes["aria-labelledby"]||"title-".concat(c||Gn())},children:[l]}),delete j.attributes.title);var K=I(I({},j),{},{prefix:i,iconName:s,main:n,mask:r,maskId:f,transform:o,symbol:a,styles:I(I({},M),u.styles)}),fe=r.found&&n.found?gt("generateAbstractMask",K)||{children:[],attributes:{}}:gt("generateAbstractIcon",K)||{children:[],attributes:{}},ue=fe.children,Y=fe.attributes;return K.children=ue,K.attributes=Y,a?Im(K):Tm(K)}function ta(e){var t=e.content,n=e.width,r=e.height,i=e.transform,s=e.title,o=e.extra,a=e.watchable,l=a===void 0?!1:a,f=I(I(I({},o.attributes),s?{title:s}:{}),{},{class:o.classes.join(" ")});l&&(f[Wt]="");var c=I({},o.styles);Hs(i)&&(c.transform=cm({transform:i,startCentered:!0,width:n,height:r}),c["-webkit-transform"]=c.transform);var u=oi(c);u.length>0&&(f.style=u);var m=[];return m.push({tag:"span",attributes:f,children:[t]}),s&&m.push({tag:"span",attributes:{class:"sr-only"},children:[s]}),m}function Nm(e){var t=e.content,n=e.title,r=e.extra,i=I(I(I({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),s=oi(r.styles);s.length>0&&(i.style=s);var o=[];return o.push({tag:"span",attributes:i,children:[t]}),n&&o.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),o}var Ai=Be.styles;function rs(e){var t=e[0],n=e[1],r=e.slice(4),i=Ls(r,1),s=i[0],o=null;return Array.isArray(s)?o={tag:"g",attributes:{class:"".concat(F.cssPrefix,"-").concat(zt.GROUP)},children:[{tag:"path",attributes:{class:"".concat(F.cssPrefix,"-").concat(zt.SECONDARY),fill:"currentColor",d:s[0]}},{tag:"path",attributes:{class:"".concat(F.cssPrefix,"-").concat(zt.PRIMARY),fill:"currentColor",d:s[1]}}]}:o={tag:"path",attributes:{fill:"currentColor",d:s}},{found:!0,width:t,height:n,icon:o}}var Mm={found:!1,width:512,height:512};function Lm(e,t){!ic&&!F.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function is(e,t){var n=t;return t==="fa"&&F.styleDefault!==null&&(t=It()),new Promise(function(r,i){if(gt("missingIconAbstract"),n==="fa"){var s=vc(e)||{};e=s.iconName||e,t=s.prefix||t}if(e&&t&&Ai[t]&&Ai[t][e]){var o=Ai[t][e];return r(rs(o))}Lm(e,t),r(I(I({},Mm),{},{icon:F.showMissingIcons&&e?gt("missingIconAbstract")||{}:{}}))})}var na=function(){},ss=F.measurePerformance&&hr&&hr.mark&&hr.measure?hr:{mark:na,measure:na},Pn='FA "6.4.2"',Fm=function(t){return ss.mark("".concat(Pn," ").concat(t," begins")),function(){return yc(t)}},yc=function(t){ss.mark("".concat(Pn," ").concat(t," ends")),ss.measure("".concat(Pn," ").concat(t),"".concat(Pn," ").concat(t," begins"),"".concat(Pn," ").concat(t," ends"))},Ws={begin:Fm,end:yc},Pr=function(){};function ra(e){var t=e.getAttribute?e.getAttribute(Wt):null;return typeof t=="string"}function jm(e){var t=e.getAttribute?e.getAttribute(js):null,n=e.getAttribute?e.getAttribute(Ds):null;return t&&n}function Dm(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(F.replacementClass)}function $m(){if(F.autoReplaceSvg===!0)return Tr.replace;var e=Tr[F.autoReplaceSvg];return e||Tr.replace}function zm(e){return ce.createElementNS("http://www.w3.org/2000/svg",e)}function Hm(e){return ce.createElement(e)}function wc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.ceFn,r=n===void 0?e.tag==="svg"?zm:Hm:n;if(typeof e=="string")return ce.createTextNode(e);var i=r(e.tag);Object.keys(e.attributes||[]).forEach(function(o){i.setAttribute(o,e.attributes[o])});var s=e.children||[];return s.forEach(function(o){i.appendChild(wc(o,{ceFn:r}))}),i}function Bm(e){var t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}var Tr={replace:function(t){var n=t[0];if(n.parentNode)if(t[1].forEach(function(i){n.parentNode.insertBefore(wc(i),n)}),n.getAttribute(Wt)===null&&F.keepOriginalSource){var r=ce.createComment(Bm(n));n.parentNode.replaceChild(r,n)}else n.remove()},nest:function(t){var n=t[0],r=t[1];if(~zs(n).indexOf(F.replacementClass))return Tr.replace(t);var i=new RegExp("".concat(F.cssPrefix,"-.*"));if(delete r[0].attributes.id,r[0].attributes.class){var s=r[0].attributes.class.split(" ").reduce(function(a,l){return l===F.replacementClass||l.match(i)?a.toSvg.push(l):a.toNode.push(l),a},{toNode:[],toSvg:[]});r[0].attributes.class=s.toSvg.join(" "),s.toNode.length===0?n.removeAttribute("class"):n.setAttribute("class",s.toNode.join(" "))}var o=r.map(function(a){return sr(a)}).join(` +`);n.setAttribute(Wt,""),n.innerHTML=o}};function ia(e){e()}function _c(e,t){var n=typeof t=="function"?t:Pr;if(e.length===0)n();else{var r=ia;F.mutateApproach===Wd&&(r=Tt.requestAnimationFrame||ia),r(function(){var i=$m(),s=Ws.begin("mutate");e.map(i),s(),n()})}}var Ks=!1;function xc(){Ks=!0}function os(){Ks=!1}var Ur=null;function sa(e){if(!!Yo&&!!F.observeMutations){var t=e.treeCallback,n=t===void 0?Pr:t,r=e.nodeCallback,i=r===void 0?Pr:r,s=e.pseudoElementsCallback,o=s===void 0?Pr:s,a=e.observeMutationsRoot,l=a===void 0?ce:a;Ur=new Yo(function(f){if(!Ks){var c=It();wn(f).forEach(function(u){if(u.type==="childList"&&u.addedNodes.length>0&&!ra(u.addedNodes[0])&&(F.searchPseudoElements&&o(u.target),n(u.target)),u.type==="attributes"&&u.target.parentNode&&F.searchPseudoElements&&o(u.target.parentNode),u.type==="attributes"&&ra(u.target)&&~Zd.indexOf(u.attributeName))if(u.attributeName==="class"&&jm(u.target)){var m=li(zs(u.target)),h=m.prefix,v=m.iconName;u.target.setAttribute(js,h||c),v&&u.target.setAttribute(Ds,v)}else Dm(u.target)&&i(u.target)})}}),bt&&Ur.observe(l,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function Um(){!Ur||Ur.disconnect()}function qm(e){var t=e.getAttribute("style"),n=[];return t&&(n=t.split(";").reduce(function(r,i){var s=i.split(":"),o=s[0],a=s.slice(1);return o&&a.length>0&&(r[o]=a.join(":").trim()),r},{})),n}function Vm(e){var t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"",i=li(zs(e));return i.prefix||(i.prefix=It()),t&&n&&(i.prefix=t,i.iconName=n),i.iconName&&i.prefix||(i.prefix&&r.length>0&&(i.iconName=xm(i.prefix,e.innerText)||Us(i.prefix,Zi(e.innerText))),!i.iconName&&F.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data)),i}function Wm(e){var t=wn(e.attributes).reduce(function(i,s){return i.name!=="class"&&i.name!=="style"&&(i[s.name]=s.value),i},{}),n=e.getAttribute("title"),r=e.getAttribute("data-fa-title-id");return F.autoA11y&&(n?t["aria-labelledby"]="".concat(F.replacementClass,"-title-").concat(r||Gn()):(t["aria-hidden"]="true",t.focusable="false")),t}function Km(){return{iconName:null,title:null,titleId:null,prefix:null,transform:Qe,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function oa(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},n=Vm(e),r=n.iconName,i=n.prefix,s=n.rest,o=Wm(e),a=ts("parseNodeAttributes",{},e),l=t.styleParser?qm(e):[];return I({iconName:r,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:i,transform:Qe,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:s,styles:l,attributes:o}},a)}var Ym=Be.styles;function Ec(e){var t=F.autoReplaceSvg==="nest"?oa(e,{styleParser:!1}):oa(e);return~t.extra.classes.indexOf(sc)?gt("generateLayersText",e,t):gt("generateSvgReplacementMutation",e,t)}var Nt=new Set;$s.map(function(e){Nt.add("fa-".concat(e))});Object.keys(Kn[le]).map(Nt.add.bind(Nt));Object.keys(Kn[pe]).map(Nt.add.bind(Nt));Nt=rr(Nt);function aa(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!bt)return Promise.resolve();var n=ce.documentElement.classList,r=function(u){return n.add("".concat(Jo,"-").concat(u))},i=function(u){return n.remove("".concat(Jo,"-").concat(u))},s=F.autoFetchSvg?Nt:$s.map(function(c){return"fa-".concat(c)}).concat(Object.keys(Ym));s.includes("fa")||s.push("fa");var o=[".".concat(sc,":not([").concat(Wt,"])")].concat(s.map(function(c){return".".concat(c,":not([").concat(Wt,"])")})).join(", ");if(o.length===0)return Promise.resolve();var a=[];try{a=wn(e.querySelectorAll(o))}catch{}if(a.length>0)r("pending"),i("complete");else return Promise.resolve();var l=Ws.begin("onTree"),f=a.reduce(function(c,u){try{var m=Ec(u);m&&c.push(m)}catch(h){ic||h.name==="MissingIcon"&&console.error(h)}return c},[]);return new Promise(function(c,u){Promise.all(f).then(function(m){_c(m,function(){r("active"),r("complete"),i("pending"),typeof t=="function"&&t(),l(),c()})}).catch(function(m){l(),u(m)})})}function Jm(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;Ec(e).then(function(n){n&&_c([n],t)})}function Xm(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=(t||{}).icon?t:ns(t||{}),i=n.mask;return i&&(i=(i||{}).icon?i:ns(i||{})),e(r,I(I({},n),{},{mask:i}))}}var Gm=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.transform,i=r===void 0?Qe:r,s=n.symbol,o=s===void 0?!1:s,a=n.mask,l=a===void 0?null:a,f=n.maskId,c=f===void 0?null:f,u=n.title,m=u===void 0?null:u,h=n.titleId,v=h===void 0?null:h,b=n.classes,O=b===void 0?[]:b,S=n.attributes,C=S===void 0?{}:S,j=n.styles,M=j===void 0?{}:j;if(!!t){var K=t.prefix,fe=t.iconName,ue=t.icon;return ci(I({type:"icon"},t),function(){return Kt("beforeDOMElementCreation",{iconDefinition:t,params:n}),F.autoA11y&&(m?C["aria-labelledby"]="".concat(F.replacementClass,"-title-").concat(v||Gn()):(C["aria-hidden"]="true",C.focusable="false")),Vs({icons:{main:rs(ue),mask:l?rs(l.icon):{found:!1,width:null,height:null,icon:{}}},prefix:K,iconName:fe,transform:I(I({},Qe),i),symbol:o,title:m,maskId:c,titleId:v,extra:{attributes:C,styles:M,classes:O}})})}},Qm={mixout:function(){return{icon:Xm(Gm)}},hooks:function(){return{mutationObserverCallbacks:function(n){return n.treeCallback=aa,n.nodeCallback=Jm,n}}},provides:function(t){t.i2svg=function(n){var r=n.node,i=r===void 0?ce:r,s=n.callback,o=s===void 0?function(){}:s;return aa(i,o)},t.generateSvgReplacementMutation=function(n,r){var i=r.iconName,s=r.title,o=r.titleId,a=r.prefix,l=r.transform,f=r.symbol,c=r.mask,u=r.maskId,m=r.extra;return new Promise(function(h,v){Promise.all([is(i,a),c.iconName?is(c.iconName,c.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(b){var O=Ls(b,2),S=O[0],C=O[1];h([n,Vs({icons:{main:S,mask:C},prefix:a,iconName:i,transform:l,symbol:f,maskId:u,title:s,titleId:o,extra:m,watchable:!0})])}).catch(v)})},t.generateAbstractIcon=function(n){var r=n.children,i=n.attributes,s=n.main,o=n.transform,a=n.styles,l=oi(a);l.length>0&&(i.style=l);var f;return Hs(o)&&(f=gt("generateAbstractTransformGrouping",{main:s,transform:o,containerWidth:s.width,iconWidth:s.width})),r.push(f||s.icon),{children:r,attributes:i}}}},Zm={mixout:function(){return{layer:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.classes,s=i===void 0?[]:i;return ci({type:"layer"},function(){Kt("beforeDOMElementCreation",{assembler:n,params:r});var o=[];return n(function(a){Array.isArray(a)?a.map(function(l){o=o.concat(l.abstract)}):o=o.concat(a.abstract)}),[{tag:"span",attributes:{class:["".concat(F.cssPrefix,"-layers")].concat(rr(s)).join(" ")},children:o}]})}}}},ep={mixout:function(){return{counter:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.title,s=i===void 0?null:i,o=r.classes,a=o===void 0?[]:o,l=r.attributes,f=l===void 0?{}:l,c=r.styles,u=c===void 0?{}:c;return ci({type:"counter",content:n},function(){return Kt("beforeDOMElementCreation",{content:n,params:r}),Nm({content:n.toString(),title:s,extra:{attributes:f,styles:u,classes:["".concat(F.cssPrefix,"-layers-counter")].concat(rr(a))}})})}}}},tp={mixout:function(){return{text:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.transform,s=i===void 0?Qe:i,o=r.title,a=o===void 0?null:o,l=r.classes,f=l===void 0?[]:l,c=r.attributes,u=c===void 0?{}:c,m=r.styles,h=m===void 0?{}:m;return ci({type:"text",content:n},function(){return Kt("beforeDOMElementCreation",{content:n,params:r}),ta({content:n,transform:I(I({},Qe),s),title:a,extra:{attributes:u,styles:h,classes:["".concat(F.cssPrefix,"-layers-text")].concat(rr(f))}})})}}},provides:function(t){t.generateLayersText=function(n,r){var i=r.title,s=r.transform,o=r.extra,a=null,l=null;if(tc){var f=parseInt(getComputedStyle(n).fontSize,10),c=n.getBoundingClientRect();a=c.width/f,l=c.height/f}return F.autoA11y&&!i&&(o.attributes["aria-hidden"]="true"),Promise.resolve([n,ta({content:n.innerHTML,width:a,height:l,transform:s,title:i,extra:o,watchable:!0})])}}},np=new RegExp('"',"ug"),la=[1105920,1112319];function rp(e){var t=e.replace(np,""),n=gm(t,0),r=n>=la[0]&&n<=la[1],i=t.length===2?t[0]===t[1]:!1;return{value:Zi(i?t[0]:t),isSecondary:r||i}}function ca(e,t){var n="".concat(Vd).concat(t.replace(":","-"));return new Promise(function(r,i){if(e.getAttribute(n)!==null)return r();var s=wn(e.children),o=s.filter(function(ue){return ue.getAttribute(Qi)===t})[0],a=Tt.getComputedStyle(e,t),l=a.getPropertyValue("font-family").match(Xd),f=a.getPropertyValue("font-weight"),c=a.getPropertyValue("content");if(o&&!l)return e.removeChild(o),r();if(l&&c!=="none"&&c!==""){var u=a.getPropertyValue("content"),m=~["Sharp"].indexOf(l[2])?pe:le,h=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(l[2])?Yn[m][l[2].toLowerCase()]:Gd[m][f],v=rp(u),b=v.value,O=v.isSecondary,S=l[0].startsWith("FontAwesome"),C=Us(h,b),j=C;if(S){var M=Em(b);M.iconName&&M.prefix&&(C=M.iconName,h=M.prefix)}if(C&&!O&&(!o||o.getAttribute(js)!==h||o.getAttribute(Ds)!==j)){e.setAttribute(n,j),o&&e.removeChild(o);var K=Km(),fe=K.extra;fe.attributes[Qi]=t,is(C,h).then(function(ue){var Y=Vs(I(I({},K),{},{icons:{main:ue,mask:qs()},prefix:h,iconName:j,extra:fe,watchable:!0})),W=ce.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(W,e.firstChild):e.appendChild(W),W.outerHTML=Y.map(function(de){return sr(de)}).join(` +`),e.removeAttribute(n),r()}).catch(i)}else r()}else r()})}function ip(e){return Promise.all([ca(e,"::before"),ca(e,"::after")])}function sp(e){return e.parentNode!==document.head&&!~Kd.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(Qi)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function fa(e){if(!!bt)return new Promise(function(t,n){var r=wn(e.querySelectorAll("*")).filter(sp).map(ip),i=Ws.begin("searchPseudoElements");xc(),Promise.all(r).then(function(){i(),os(),t()}).catch(function(){i(),os(),n()})})}var op={hooks:function(){return{mutationObserverCallbacks:function(n){return n.pseudoElementsCallback=fa,n}}},provides:function(t){t.pseudoElements2svg=function(n){var r=n.node,i=r===void 0?ce:r;F.searchPseudoElements&&fa(i)}}},ua=!1,ap={mixout:function(){return{dom:{unwatch:function(){xc(),ua=!0}}}},hooks:function(){return{bootstrap:function(){sa(ts("mutationObserverCallbacks",{}))},noAuto:function(){Um()},watch:function(n){var r=n.observeMutationsRoot;ua?os():sa(ts("mutationObserverCallbacks",{observeMutationsRoot:r}))}}}},da=function(t){var n={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t.toLowerCase().split(" ").reduce(function(r,i){var s=i.toLowerCase().split("-"),o=s[0],a=s.slice(1).join("-");if(o&&a==="h")return r.flipX=!0,r;if(o&&a==="v")return r.flipY=!0,r;if(a=parseFloat(a),isNaN(a))return r;switch(o){case"grow":r.size=r.size+a;break;case"shrink":r.size=r.size-a;break;case"left":r.x=r.x-a;break;case"right":r.x=r.x+a;break;case"up":r.y=r.y-a;break;case"down":r.y=r.y+a;break;case"rotate":r.rotate=r.rotate+a;break}return r},n)},lp={mixout:function(){return{parse:{transform:function(n){return da(n)}}}},hooks:function(){return{parseNodeAttributes:function(n,r){var i=r.getAttribute("data-fa-transform");return i&&(n.transform=da(i)),n}}},provides:function(t){t.generateAbstractTransformGrouping=function(n){var r=n.main,i=n.transform,s=n.containerWidth,o=n.iconWidth,a={transform:"translate(".concat(s/2," 256)")},l="translate(".concat(i.x*32,", ").concat(i.y*32,") "),f="scale(".concat(i.size/16*(i.flipX?-1:1),", ").concat(i.size/16*(i.flipY?-1:1),") "),c="rotate(".concat(i.rotate," 0 0)"),u={transform:"".concat(l," ").concat(f," ").concat(c)},m={transform:"translate(".concat(o/2*-1," -256)")},h={outer:a,inner:u,path:m};return{tag:"g",attributes:I({},h.outer),children:[{tag:"g",attributes:I({},h.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:I(I({},r.icon.attributes),h.path)}]}]}}}},Si={x:0,y:0,width:"100%",height:"100%"};function ma(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function cp(e){return e.tag==="g"?e.children:[e]}var fp={hooks:function(){return{parseNodeAttributes:function(n,r){var i=r.getAttribute("data-fa-mask"),s=i?li(i.split(" ").map(function(o){return o.trim()})):qs();return s.prefix||(s.prefix=It()),n.mask=s,n.maskId=r.getAttribute("data-fa-mask-id"),n}}},provides:function(t){t.generateAbstractMask=function(n){var r=n.children,i=n.attributes,s=n.main,o=n.mask,a=n.maskId,l=n.transform,f=s.width,c=s.icon,u=o.width,m=o.icon,h=lm({transform:l,containerWidth:u,iconWidth:f}),v={tag:"rect",attributes:I(I({},Si),{},{fill:"white"})},b=c.children?{children:c.children.map(ma)}:{},O={tag:"g",attributes:I({},h.inner),children:[ma(I({tag:c.tag,attributes:I(I({},c.attributes),h.path)},b))]},S={tag:"g",attributes:I({},h.outer),children:[O]},C="mask-".concat(a||Gn()),j="clip-".concat(a||Gn()),M={tag:"mask",attributes:I(I({},Si),{},{id:C,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[v,S]},K={tag:"defs",children:[{tag:"clipPath",attributes:{id:j},children:cp(m)},M]};return r.push(K,{tag:"rect",attributes:I({fill:"currentColor","clip-path":"url(#".concat(j,")"),mask:"url(#".concat(C,")")},Si)}),{children:r,attributes:i}}}},up={provides:function(t){var n=!1;Tt.matchMedia&&(n=Tt.matchMedia("(prefers-reduced-motion: reduce)").matches),t.missingIconAbstract=function(){var r=[],i={fill:"currentColor"},s={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};r.push({tag:"path",attributes:I(I({},i),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var o=I(I({},s),{},{attributeName:"opacity"}),a={tag:"circle",attributes:I(I({},i),{},{cx:"256",cy:"364",r:"28"}),children:[]};return n||a.children.push({tag:"animate",attributes:I(I({},s),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:I(I({},o),{},{values:"1;0;1;1;0;1;"})}),r.push(a),r.push({tag:"path",attributes:I(I({},i),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:n?[]:[{tag:"animate",attributes:I(I({},o),{},{values:"1;0;0;0;0;1;"})}]}),n||r.push({tag:"path",attributes:I(I({},i),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:I(I({},o),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:r}}}},dp={hooks:function(){return{parseNodeAttributes:function(n,r){var i=r.getAttribute("data-fa-symbol"),s=i===null?!1:i===""?!0:i;return n.symbol=s,n}}}},mp=[um,Qm,Zm,ep,tp,op,ap,lp,fp,up,dp];Sm(mp,{mixoutsTo:Ne});Ne.noAuto;Ne.config;var Ys=Ne.library,pp=Ne.dom;Ne.parse;Ne.findIconDefinition;Ne.toHtml;Ne.icon;Ne.layer;Ne.text;Ne.counter;/*! * vue-router v4.2.5 * (c) 2023 Eduardo San Martin Morote * @license MIT - */const Zt=typeof window<"u";function hp(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const ne=Object.assign;function Oi(e,t){const n={};for(const r in t){const i=t[r];n[r]=Ve(i)?i.map(e):e(i)}return n}const jn=()=>{},Ve=Array.isArray,gp=/\/$/,vp=e=>e.replace(gp,"");function Ci(e,t,n="/"){let r,i={},s="",o="";const a=t.indexOf("#");let l=t.indexOf("?");return a=0&&(l=-1),l>-1&&(r=t.slice(0,l),s=t.slice(l+1,a>-1?a:t.length),i=e(s)),a>-1&&(r=r||t.slice(0,a),o=t.slice(a,t.length)),r=_p(r!=null?r:t,n),{fullPath:r+(s&&"?")+s+o,path:r,query:i,hash:o}}function bp(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function pa(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function yp(e,t,n){const r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&pn(t.matched[r],n.matched[i])&&kc(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function pn(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function kc(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!wp(e[n],t[n]))return!1;return!0}function wp(e,t){return Ve(e)?ha(e,t):Ve(t)?ha(t,e):e===t}function ha(e,t){return Ve(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function _p(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),i=r[r.length-1];(i===".."||i===".")&&r.push("");let s=n.length-1,o,a;for(o=0;o1&&s--;else break;return n.slice(0,s).join("/")+"/"+r.slice(o-(o===r.length?1:0)).join("/")}var Qn;(function(e){e.pop="pop",e.push="push"})(Qn||(Qn={}));var Dn;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Dn||(Dn={}));function xp(e){if(!e)if(Zt){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),vp(e)}const Ep=/^[^#]+#/;function kp(e,t){return e.replace(Ep,"#")+t}function Ap(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const fi=()=>({left:window.pageXOffset,top:window.pageYOffset});function Sp(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),i=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=Ap(i,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function ga(e,t){return(history.state?history.state.position-t:-1)+e}const as=new Map;function Op(e,t){as.set(e,t)}function Cp(e){const t=as.get(e);return as.delete(e),t}let Rp=()=>location.protocol+"//"+location.host;function Ac(e,t){const{pathname:n,search:r,hash:i}=t,s=e.indexOf("#");if(s>-1){let a=i.includes(e.slice(s))?e.slice(s).length:1,l=i.slice(a);return l[0]!=="/"&&(l="/"+l),pa(l,"")}return pa(n,e)+r+i}function Pp(e,t,n,r){let i=[],s=[],o=null;const a=({state:m})=>{const h=Ac(e,location),v=n.value,y=t.value;let O=0;if(m){if(n.value=h,t.value=m,o&&o===v){o=null;return}O=y?m.position-y.position:0}else r(h);i.forEach(P=>{P(n.value,v,{delta:O,type:Qn.pop,direction:O?O>0?Dn.forward:Dn.back:Dn.unknown})})};function l(){o=n.value}function f(m){i.push(m);const h=()=>{const v=i.indexOf(m);v>-1&&i.splice(v,1)};return s.push(h),h}function c(){const{history:m}=window;!m.state||m.replaceState(ne({},m.state,{scroll:fi()}),"")}function u(){for(const m of s)m();s=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",c)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",c,{passive:!0}),{pauseListeners:l,listen:f,destroy:u}}function va(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?fi():null}}function Tp(e){const{history:t,location:n}=window,r={value:Ac(e,n)},i={value:t.state};i.value||s(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function s(l,f,c){const u=e.indexOf("#"),m=u>-1?(n.host&&document.querySelector("base")?e:e.slice(u))+l:Rp()+e+l;try{t[c?"replaceState":"pushState"](f,"",m),i.value=f}catch(h){console.error(h),n[c?"replace":"assign"](m)}}function o(l,f){const c=ne({},t.state,va(i.value.back,l,i.value.forward,!0),f,{position:i.value.position});s(l,c,!0),r.value=l}function a(l,f){const c=ne({},i.value,t.state,{forward:l,scroll:fi()});s(c.current,c,!0);const u=ne({},va(r.value,l,null),{position:c.position+1},f);s(l,u,!1),r.value=l}return{location:r,state:i,push:a,replace:o}}function Sc(e){e=xp(e);const t=Tp(e),n=Pp(e,t.state,t.location,t.replace);function r(s,o=!0){o||n.pauseListeners(),history.go(s)}const i=ne({location:"",base:e,go:r,createHref:kp.bind(null,e)},t,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}function Ip(e){return typeof e=="string"||e&&typeof e=="object"}function Oc(e){return typeof e=="string"||typeof e=="symbol"}const xt={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Cc=Symbol("");var ba;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(ba||(ba={}));function hn(e,t){return ne(new Error,{type:e,[Cc]:!0},t)}function ot(e,t){return e instanceof Error&&Cc in e&&(t==null||!!(e.type&t))}const ya="[^/]+?",Np={sensitive:!1,strict:!1,start:!0,end:!0},Mp=/[.+*?^${}()[\]/\\]/g;function Lp(e,t){const n=ne({},Np,t),r=[];let i=n.start?"^":"";const s=[];for(const f of e){const c=f.length?[]:[90];n.strict&&!f.length&&(i+="/");for(let u=0;ut.length?t.length===1&&t[0]===40+40?1:-1:0}function jp(e,t){let n=0;const r=e.score,i=t.score;for(;n0&&t[t.length-1]<0}const Dp={type:0,value:""},$p=/[a-zA-Z0-9_]/;function zp(e){if(!e)return[[]];if(e==="/")return[[Dp]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${n})/"${f}": ${h}`)}let n=0,r=n;const i=[];let s;function o(){s&&i.push(s),s=[]}let a=0,l,f="",c="";function u(){!f||(n===0?s.push({type:0,value:f}):n===1||n===2||n===3?(s.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${f}) must be alone in its segment. eg: '/:ids+.`),s.push({type:1,value:f,regexp:c,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),f="")}function m(){f+=l}for(;a{o(S)}:jn}function o(c){if(Oc(c)){const u=r.get(c);u&&(r.delete(c),n.splice(n.indexOf(u),1),u.children.forEach(o),u.alias.forEach(o))}else{const u=n.indexOf(c);u>-1&&(n.splice(u,1),c.record.name&&r.delete(c.record.name),c.children.forEach(o),c.alias.forEach(o))}}function a(){return n}function l(c){let u=0;for(;u=0&&(c.record.path!==n[u].record.path||!Rc(c,n[u]));)u++;n.splice(u,0,c),c.record.name&&!xa(c)&&r.set(c.record.name,c)}function f(c,u){let m,h={},v,y;if("name"in c&&c.name){if(m=r.get(c.name),!m)throw hn(1,{location:c});y=m.record.name,h=ne(_a(u.params,m.keys.filter(S=>!S.optional).map(S=>S.name)),c.params&&_a(c.params,m.keys.map(S=>S.name))),v=m.stringify(h)}else if("path"in c)v=c.path,m=n.find(S=>S.re.test(v)),m&&(h=m.parse(v),y=m.record.name);else{if(m=u.name?r.get(u.name):n.find(S=>S.re.test(u.path)),!m)throw hn(1,{location:c,currentLocation:u});y=m.record.name,h=ne({},u.params,c.params),v=m.stringify(h)}const O=[];let P=m;for(;P;)O.unshift(P.record),P=P.parent;return{name:y,path:v,params:h,matched:O,meta:Vp(O)}}return e.forEach(c=>s(c)),{addRoute:s,resolve:f,removeRoute:o,getRoutes:a,getRecordMatcher:i}}function _a(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function Up(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:qp(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function qp(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function xa(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Vp(e){return e.reduce((t,n)=>ne(t,n.meta),{})}function Ea(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function Rc(e,t){return t.children.some(n=>n===e||Rc(e,n))}const Pc=/#/g,Wp=/&/g,Kp=/\//g,Yp=/=/g,Jp=/\?/g,Tc=/\+/g,Xp=/%5B/g,Gp=/%5D/g,Ic=/%5E/g,Qp=/%60/g,Nc=/%7B/g,Zp=/%7C/g,Mc=/%7D/g,eh=/%20/g;function Js(e){return encodeURI(""+e).replace(Zp,"|").replace(Xp,"[").replace(Gp,"]")}function th(e){return Js(e).replace(Nc,"{").replace(Mc,"}").replace(Ic,"^")}function ls(e){return Js(e).replace(Tc,"%2B").replace(eh,"+").replace(Pc,"%23").replace(Wp,"%26").replace(Qp,"`").replace(Nc,"{").replace(Mc,"}").replace(Ic,"^")}function nh(e){return ls(e).replace(Yp,"%3D")}function rh(e){return Js(e).replace(Pc,"%23").replace(Jp,"%3F")}function ih(e){return e==null?"":rh(e).replace(Kp,"%2F")}function qr(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function sh(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let i=0;is&&ls(s)):[r&&ls(r)]).forEach(s=>{s!==void 0&&(t+=(t.length?"&":"")+n,s!=null&&(t+="="+s))})}return t}function oh(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=Ve(r)?r.map(i=>i==null?null:""+i):r==null?r:""+r)}return t}const ah=Symbol(""),Aa=Symbol(""),Xs=Symbol(""),Lc=Symbol(""),cs=Symbol("");function Sn(){let e=[];function t(r){return e.push(r),()=>{const i=e.indexOf(r);i>-1&&e.splice(i,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function St(e,t,n,r,i){const s=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((o,a)=>{const l=u=>{u===!1?a(hn(4,{from:n,to:t})):u instanceof Error?a(u):Ip(u)?a(hn(2,{from:t,to:u})):(s&&r.enterCallbacks[i]===s&&typeof u=="function"&&s.push(u),o())},f=e.call(r&&r.instances[i],t,n,l);let c=Promise.resolve(f);e.length<3&&(c=c.then(l)),c.catch(u=>a(u))})}function Ri(e,t,n,r){const i=[];for(const s of e)for(const o in s.components){let a=s.components[o];if(!(t!=="beforeRouteEnter"&&!s.instances[o]))if(lh(a)){const f=(a.__vccOpts||a)[t];f&&i.push(St(f,n,r,s,o))}else{let l=a();i.push(()=>l.then(f=>{if(!f)return Promise.reject(new Error(`Couldn't resolve component "${o}" at "${s.path}"`));const c=hp(f)?f.default:f;s.components[o]=c;const m=(c.__vccOpts||c)[t];return m&&St(m,n,r,s,o)()}))}}return i}function lh(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Sa(e){const t=et(Xs),n=et(Lc),r=Fe(()=>t.resolve(ft(e.to))),i=Fe(()=>{const{matched:l}=r.value,{length:f}=l,c=l[f-1],u=n.matched;if(!c||!u.length)return-1;const m=u.findIndex(pn.bind(null,c));if(m>-1)return m;const h=Oa(l[f-2]);return f>1&&Oa(c)===h&&u[u.length-1].path!==h?u.findIndex(pn.bind(null,l[f-2])):m}),s=Fe(()=>i.value>-1&&dh(n.params,r.value.params)),o=Fe(()=>i.value>-1&&i.value===n.matched.length-1&&kc(n.params,r.value.params));function a(l={}){return uh(l)?t[ft(e.replace)?"replace":"push"](ft(e.to)).catch(jn):Promise.resolve()}return{route:r,href:Fe(()=>r.value.href),isActive:s,isExactActive:o,navigate:a}}const ch=Cl({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Sa,setup(e,{slots:t}){const n=nr(Sa(e)),{options:r}=et(Xs),i=Fe(()=>({[Ca(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Ca(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const s=t.default&&t.default(n);return e.custom?s:ql("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},s)}}}),fh=ch;function uh(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function dh(e,t){for(const n in t){const r=t[n],i=e[n];if(typeof r=="string"){if(r!==i)return!1}else if(!Ve(i)||i.length!==r.length||r.some((s,o)=>s!==i[o]))return!1}return!0}function Oa(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Ca=(e,t,n)=>e!=null?e:t!=null?t:n,mh=Cl({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=et(cs),i=Fe(()=>e.route||r.value),s=et(Aa,0),o=Fe(()=>{let f=ft(s);const{matched:c}=i.value;let u;for(;(u=c[f])&&!u.components;)f++;return f}),a=Fe(()=>i.value.matched[o.value]);Or(Aa,Fe(()=>o.value+1)),Or(ah,a),Or(cs,i);const l=Qr();return Tn(()=>[l.value,a.value,e.name],([f,c,u],[m,h,v])=>{c&&(c.instances[u]=f,h&&h!==c&&f&&f===m&&(c.leaveGuards.size||(c.leaveGuards=h.leaveGuards),c.updateGuards.size||(c.updateGuards=h.updateGuards))),f&&c&&(!h||!pn(c,h)||!m)&&(c.enterCallbacks[u]||[]).forEach(y=>y(f))},{flush:"post"}),()=>{const f=i.value,c=e.name,u=a.value,m=u&&u.components[c];if(!m)return Ra(n.default,{Component:m,route:f});const h=u.props[c],v=h?h===!0?f.params:typeof h=="function"?h(f):h:null,O=ql(m,ne({},v,t,{onVnodeUnmounted:P=>{P.component.isUnmounted&&(u.instances[c]=null)},ref:l}));return Ra(n.default,{Component:O,route:f})||O}}});function Ra(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Fc=mh;function jc(e){const t=Bp(e.routes,e),n=e.parseQuery||sh,r=e.stringifyQuery||ka,i=e.history,s=Sn(),o=Sn(),a=Sn(),l=Vf(xt);let f=xt;Zt&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=Oi.bind(null,_=>""+_),u=Oi.bind(null,ih),m=Oi.bind(null,qr);function h(_,N){let R,j;return Oc(_)?(R=t.getRecordMatcher(_),j=N):j=_,t.addRoute(j,R)}function v(_){const N=t.getRecordMatcher(_);N&&t.removeRoute(N)}function y(){return t.getRoutes().map(_=>_.record)}function O(_){return!!t.getRecordMatcher(_)}function P(_,N){if(N=ne({},N||l.value),typeof _=="string"){const g=Ci(n,_,N.path),b=t.resolve({path:g.path},N),x=i.createHref(g.fullPath);return ne(g,b,{params:m(b.params),hash:qr(g.hash),redirectedFrom:void 0,href:x})}let R;if("path"in _)R=ne({},_,{path:Ci(n,_.path,N.path).path});else{const g=ne({},_.params);for(const b in g)g[b]==null&&delete g[b];R=ne({},_,{params:u(g)}),N.params=u(N.params)}const j=t.resolve(R,N),te=_.hash||"";j.params=c(m(j.params));const d=bp(r,ne({},_,{hash:th(te),path:j.path})),p=i.createHref(d);return ne({fullPath:d,hash:te,query:r===ka?oh(_.query):_.query||{}},j,{redirectedFrom:void 0,href:p})}function S(_){return typeof _=="string"?Ci(n,_,l.value.path):ne({},_)}function D(_,N){if(f!==_)return hn(8,{from:N,to:_})}function M(_){return ue(_)}function K(_){return M(ne(S(_),{replace:!0}))}function fe(_){const N=_.matched[_.matched.length-1];if(N&&N.redirect){const{redirect:R}=N;let j=typeof R=="function"?R(_):R;return typeof j=="string"&&(j=j.includes("?")||j.includes("#")?j=S(j):{path:j},j.params={}),ne({query:_.query,hash:_.hash,params:"path"in j?{}:_.params},j)}}function ue(_,N){const R=f=P(_),j=l.value,te=_.state,d=_.force,p=_.replace===!0,g=fe(R);if(g)return ue(ne(S(g),{state:typeof g=="object"?ne({},te,g.state):te,force:d,replace:p}),N||R);const b=R;b.redirectedFrom=N;let x;return!d&&yp(r,j,R)&&(x=hn(16,{to:b,from:j}),We(j,j,!0,!1)),(x?Promise.resolve(x):de(b,j)).catch(E=>ot(E)?ot(E,2)?E:yt(E):ee(E,b,j)).then(E=>{if(E){if(ot(E,2))return ue(ne({replace:p},S(E.to),{state:typeof E.to=="object"?ne({},te,E.to.state):te,force:d}),N||b)}else E=Re(b,j,!0,p,te);return xe(b,j,E),E})}function Y(_,N){const R=D(_,N);return R?Promise.reject(R):Promise.resolve()}function W(_){const N=Jt.values().next().value;return N&&typeof N.runWithContext=="function"?N.runWithContext(_):_()}function de(_,N){let R;const[j,te,d]=ph(_,N);R=Ri(j.reverse(),"beforeRouteLeave",_,N);for(const g of j)g.leaveGuards.forEach(b=>{R.push(St(b,_,N))});const p=Y.bind(null,_,N);return R.push(p),Ee(R).then(()=>{R=[];for(const g of s.list())R.push(St(g,_,N));return R.push(p),Ee(R)}).then(()=>{R=Ri(te,"beforeRouteUpdate",_,N);for(const g of te)g.updateGuards.forEach(b=>{R.push(St(b,_,N))});return R.push(p),Ee(R)}).then(()=>{R=[];for(const g of d)if(g.beforeEnter)if(Ve(g.beforeEnter))for(const b of g.beforeEnter)R.push(St(b,_,N));else R.push(St(g.beforeEnter,_,N));return R.push(p),Ee(R)}).then(()=>(_.matched.forEach(g=>g.enterCallbacks={}),R=Ri(d,"beforeRouteEnter",_,N),R.push(p),Ee(R))).then(()=>{R=[];for(const g of o.list())R.push(St(g,_,N));return R.push(p),Ee(R)}).catch(g=>ot(g,8)?g:Promise.reject(g))}function xe(_,N,R){a.list().forEach(j=>W(()=>j(_,N,R)))}function Re(_,N,R,j,te){const d=D(_,N);if(d)return d;const p=N===xt,g=Zt?history.state:{};R&&(j||p?i.replace(_.fullPath,ne({scroll:p&&g&&g.scroll},te)):i.push(_.fullPath,te)),l.value=_,We(_,N,R,p),yt()}let Me;function Mt(){Me||(Me=i.listen((_,N,R)=>{if(!lr.listening)return;const j=P(_),te=fe(j);if(te){ue(ne(te,{replace:!0}),j).catch(jn);return}f=j;const d=l.value;Zt&&Op(ga(d.fullPath,R.delta),fi()),de(j,d).catch(p=>ot(p,12)?p:ot(p,2)?(ue(p.to,j).then(g=>{ot(g,20)&&!R.delta&&R.type===Qn.pop&&i.go(-1,!1)}).catch(jn),Promise.reject()):(R.delta&&i.go(-R.delta,!1),ee(p,j,d))).then(p=>{p=p||Re(j,d,!1),p&&(R.delta&&!ot(p,8)?i.go(-R.delta,!1):R.type===Qn.pop&&ot(p,20)&&i.go(-1,!1)),xe(j,d,p)}).catch(jn)}))}let Le=Sn(),Z=Sn(),ie;function ee(_,N,R){yt(_);const j=Z.list();return j.length?j.forEach(te=>te(_,N,R)):console.error(_),Promise.reject(_)}function st(){return ie&&l.value!==xt?Promise.resolve():new Promise((_,N)=>{Le.add([_,N])})}function yt(_){return ie||(ie=!_,Mt(),Le.list().forEach(([N,R])=>_?R(_):N()),Le.reset()),_}function We(_,N,R,j){const{scrollBehavior:te}=e;if(!Zt||!te)return Promise.resolve();const d=!R&&Cp(ga(_.fullPath,0))||(j||!R)&&history.state&&history.state.scroll||null;return Cs().then(()=>te(_,N,d)).then(p=>p&&Sp(p)).catch(p=>ee(p,_,N))}const Se=_=>i.go(_);let Yt;const Jt=new Set,lr={currentRoute:l,listening:!0,addRoute:h,removeRoute:v,hasRoute:O,getRoutes:y,resolve:P,options:e,push:M,replace:K,go:Se,back:()=>Se(-1),forward:()=>Se(1),beforeEach:s.add,beforeResolve:o.add,afterEach:a.add,onError:Z.add,isReady:st,install(_){const N=this;_.component("RouterLink",fh),_.component("RouterView",Fc),_.config.globalProperties.$router=N,Object.defineProperty(_.config.globalProperties,"$route",{enumerable:!0,get:()=>ft(l)}),Zt&&!Yt&&l.value===xt&&(Yt=!0,M(i.location).catch(te=>{}));const R={};for(const te in xt)Object.defineProperty(R,te,{get:()=>l.value[te],enumerable:!0});_.provide(Xs,N),_.provide(Lc,ll(R)),_.provide(cs,l);const j=_.unmount;Jt.add(_),_.unmount=function(){Jt.delete(_),Jt.size<1&&(f=xt,Me&&Me(),Me=null,l.value=xt,Yt=!1,ie=!1),j()}}};function Ee(_){return _.reduce((N,R)=>N.then(()=>W(R)),Promise.resolve())}return lr}function ph(e,t){const n=[],r=[],i=[],s=Math.max(t.matched.length,e.matched.length);for(let o=0;opn(f,a))?r.push(a):n.push(a));const l=e.matched[o];l&&(t.matched.find(f=>pn(f,l))||i.push(l))}return[n,r,i]}const ui=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n},hh={},gh={class:"nav-item active"},vh=U("a",{class:"nav-link",href:"#"},"Login",-1),bh=[vh];function yh(e,t){return je(),ut("li",gh,bh)}const wh=ui(hh,[["render",yh]]),rt=Ld({id:"polifemo",state:()=>({userid:"",loggedIn:!1,darkModeEnabled:!1,perms:[],authorizedauthors:[]})}),_h={data(){return{store:rt()}},computed:{darkMode:function(){return localStorage.getItem("bs.prefers-color-scheme")==="dark"}},mounted(){this.updateIcon(this.darkMode),this.loadDarkModePreference()},methods:{toggleDarkMode(){this.store.darkModeEnabled=!this.store.darkModeEnabled,localStorage.setItem("bs.prefers-color-scheme",this.store.darkModeEnabled?"dark":"light"),this.updateIcon(),this.applyDarkModePreference()},updateIcon(e){this.store.darkModeEnabled||e?(document.getElementById("darkmode-icon").classList.remove("fa-moon"),document.getElementById("darkmode-icon").classList.add("fa-sun")):(document.getElementById("darkmode-icon").classList.remove("fa-sun"),document.getElementById("darkmode-icon").classList.add("fa-moon"))},loadDarkModePreference(){localStorage.getItem("bs.prefers-color-scheme")===null&&localStorage.setItem("bs.prefers-color-scheme","light"),this.store.darkModeEnabled=localStorage.getItem("bs.prefers-color-scheme")==="dark",this.applyDarkModePreference()},applyDarkModePreference(){this.store.darkModeEnabled?document.documentElement.setAttribute("data-bs-theme","dark"):document.documentElement.removeAttribute("data-bs-theme")}}},xh={class:"nav-item"},Eh=U("i",{id:"darkmode-icon",class:tr(["fas","fa-lg"])},null,-1),kh=[Eh];function Ah(e,t,n,r,i,s){return je(),ut("li",xh,[U("a",{id:"darkmode",class:"nav-link",href:"#",onClick:t[0]||(t[0]=o=>s.toggleDarkMode())},kh)])}const Sh=ui(_h,[["render",Ah]]),Oh={methods:{logout(){rt.loggedIn=!1,rt.permissions=[],localStorage.removeItem("polifemo_access_token"),localStorage.removeItem("polifemo_refresh_token"),window.location.href=window.location.href.split("/")[0]}}},Ch={class:"nav-item"};function Rh(e,t,n,r,i,s){return je(),ut("li",Ch,[U("a",{class:"nav-link ms-2",href:"#",onClick:t[0]||(t[0]=o=>s.logout())},"Logout")])}const Ph=ui(Oh,[["render",Rh]]);var v0={prefix:"fas",iconName:"trash-can",icon:[448,512,[61460,"trash-alt"],"f2ed","M135.2 17.7C140.6 6.8 151.7 0 163.8 0H284.2c12.1 0 23.2 6.8 28.6 17.7L320 32h96c17.7 0 32 14.3 32 32s-14.3 32-32 32H32C14.3 96 0 81.7 0 64S14.3 32 32 32h96l7.2-14.3zM32 128H416V448c0 35.3-28.7 64-64 64H96c-35.3 0-64-28.7-64-64V128zm96 64c-8.8 0-16 7.2-16 16V432c0 8.8 7.2 16 16 16s16-7.2 16-16V208c0-8.8-7.2-16-16-16zm96 0c-8.8 0-16 7.2-16 16V432c0 8.8 7.2 16 16 16s16-7.2 16-16V208c0-8.8-7.2-16-16-16zm96 0c-8.8 0-16 7.2-16 16V432c0 8.8 7.2 16 16 16s16-7.2 16-16V208c0-8.8-7.2-16-16-16z"]},b0={prefix:"fas",iconName:"user",icon:[448,512,[128100,62144],"f007","M224 256A128 128 0 1 0 224 0a128 128 0 1 0 0 256zm-45.7 48C79.8 304 0 383.8 0 482.3C0 498.7 13.3 512 29.7 512H418.3c16.4 0 29.7-13.3 29.7-29.7C448 383.8 368.2 304 269.7 304H178.3z"]},Th={prefix:"fas",iconName:"right-to-bracket",icon:[512,512,["sign-in-alt"],"f2f6","M217.9 105.9L340.7 228.7c7.2 7.2 11.3 17.1 11.3 27.3s-4.1 20.1-11.3 27.3L217.9 406.1c-6.4 6.4-15 9.9-24 9.9c-18.7 0-33.9-15.2-33.9-33.9l0-62.1L32 320c-17.7 0-32-14.3-32-32l0-64c0-17.7 14.3-32 32-32l128 0 0-62.1c0-18.7 15.2-33.9 33.9-33.9c9 0 17.6 3.6 24 9.9zM352 416l64 0c17.7 0 32-14.3 32-32l0-256c0-17.7-14.3-32-32-32l-64 0c-17.7 0-32-14.3-32-32s14.3-32 32-32l64 0c53 0 96 43 96 96l0 256c0 53-43 96-96 96l-64 0c-17.7 0-32-14.3-32-32s14.3-32 32-32z"]},Ih={prefix:"fas",iconName:"newspaper",icon:[512,512,[128240],"f1ea","M96 96c0-35.3 28.7-64 64-64H448c35.3 0 64 28.7 64 64V416c0 35.3-28.7 64-64 64H80c-44.2 0-80-35.8-80-80V128c0-17.7 14.3-32 32-32s32 14.3 32 32V400c0 8.8 7.2 16 16 16s16-7.2 16-16V96zm64 24v80c0 13.3 10.7 24 24 24H296c13.3 0 24-10.7 24-24V120c0-13.3-10.7-24-24-24H184c-13.3 0-24 10.7-24 24zm208-8c0 8.8 7.2 16 16 16h48c8.8 0 16-7.2 16-16s-7.2-16-16-16H384c-8.8 0-16 7.2-16 16zm0 96c0 8.8 7.2 16 16 16h48c8.8 0 16-7.2 16-16s-7.2-16-16-16H384c-8.8 0-16 7.2-16 16zM160 304c0 8.8 7.2 16 16 16H432c8.8 0 16-7.2 16-16s-7.2-16-16-16H176c-8.8 0-16 7.2-16 16zm0 96c0 8.8 7.2 16 16 16H432c8.8 0 16-7.2 16-16s-7.2-16-16-16H176c-8.8 0-16 7.2-16 16z"]},y0={prefix:"fas",iconName:"eye",icon:[576,512,[128065],"f06e","M288 32c-80.8 0-145.5 36.8-192.6 80.6C48.6 156 17.3 208 2.5 243.7c-3.3 7.9-3.3 16.7 0 24.6C17.3 304 48.6 356 95.4 399.4C142.5 443.2 207.2 480 288 480s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C433.5 68.8 368.8 32 288 32zM144 256a144 144 0 1 1 288 0 144 144 0 1 1 -288 0zm144-64c0 35.3-28.7 64-64 64c-7.1 0-13.9-1.2-20.3-3.3c-5.5-1.8-11.9 1.6-11.7 7.4c.3 6.9 1.3 13.8 3.2 20.7c13.7 51.2 66.4 81.6 117.6 67.9s81.6-66.4 67.9-117.6c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3z"]},w0={prefix:"fas",iconName:"trash",icon:[448,512,[],"f1f8","M135.2 17.7L128 32H32C14.3 32 0 46.3 0 64S14.3 96 32 96H416c17.7 0 32-14.3 32-32s-14.3-32-32-32H320l-7.2-14.3C307.4 6.8 296.3 0 284.2 0H163.8c-12.1 0-23.2 6.8-28.6 17.7zM416 128H32L53.2 467c1.6 25.3 22.6 45 47.9 45H346.9c25.3 0 46.3-19.7 47.9-45L416 128z"]},Nh={prefix:"fas",iconName:"tag",icon:[448,512,[127991],"f02b","M0 80V229.5c0 17 6.7 33.3 18.7 45.3l176 176c25 25 65.5 25 90.5 0L418.7 317.3c25-25 25-65.5 0-90.5l-176-176c-12-12-28.3-18.7-45.3-18.7H48C21.5 32 0 53.5 0 80zm112 32a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},_0={prefix:"fas",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336h24V272H216c-13.3 0-24-10.7-24-24s10.7-24 24-24h48c13.3 0 24 10.7 24 24v88h8c13.3 0 24 10.7 24 24s-10.7 24-24 24H216c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-208a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},x0={prefix:"fas",iconName:"clock",icon:[512,512,[128339,"clock-four"],"f017","M256 0a256 256 0 1 1 0 512A256 256 0 1 1 256 0zM232 120V256c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2V120c0-13.3-10.7-24-24-24s-24 10.7-24 24z"]},Mh={prefix:"fas",iconName:"sun",icon:[512,512,[9728],"f185","M361.5 1.2c5 2.1 8.6 6.6 9.6 11.9L391 121l107.9 19.8c5.3 1 9.8 4.6 11.9 9.6s1.5 10.7-1.6 15.2L446.9 256l62.3 90.3c3.1 4.5 3.7 10.2 1.6 15.2s-6.6 8.6-11.9 9.6L391 391 371.1 498.9c-1 5.3-4.6 9.8-9.6 11.9s-10.7 1.5-15.2-1.6L256 446.9l-90.3 62.3c-4.5 3.1-10.2 3.7-15.2 1.6s-8.6-6.6-9.6-11.9L121 391 13.1 371.1c-5.3-1-9.8-4.6-11.9-9.6s-1.5-10.7 1.6-15.2L65.1 256 2.8 165.7c-3.1-4.5-3.7-10.2-1.6-15.2s6.6-8.6 11.9-9.6L121 121 140.9 13.1c1-5.3 4.6-9.8 9.6-11.9s10.7-1.5 15.2 1.6L256 65.1 346.3 2.8c4.5-3.1 10.2-3.7 15.2-1.6zM160 256a96 96 0 1 1 192 0 96 96 0 1 1 -192 0zm224 0a128 128 0 1 0 -256 0 128 128 0 1 0 256 0z"]},E0={prefix:"fas",iconName:"location-dot",icon:[384,512,["map-marker-alt"],"f3c5","M215.7 499.2C267 435 384 279.4 384 192C384 86 298 0 192 0S0 86 0 192c0 87.4 117 243 168.3 307.2c12.3 15.3 35.1 15.3 47.4 0zM192 128a64 64 0 1 1 0 128 64 64 0 1 1 0-128z"]},k0={prefix:"fas",iconName:"arrow-down",icon:[384,512,[8595],"f063","M169.4 470.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 370.8 224 64c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 306.7L54.6 265.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z"]},A0={prefix:"fas",iconName:"arrow-up",icon:[384,512,[8593],"f062","M214.6 41.4c-12.5-12.5-32.8-12.5-45.3 0l-160 160c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L160 141.2V448c0 17.7 14.3 32 32 32s32-14.3 32-32V141.2L329.4 246.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-160-160z"]},Lh={prefix:"fas",iconName:"copy",icon:[448,512,[],"f0c5","M208 0H332.1c12.7 0 24.9 5.1 33.9 14.1l67.9 67.9c9 9 14.1 21.2 14.1 33.9V336c0 26.5-21.5 48-48 48H208c-26.5 0-48-21.5-48-48V48c0-26.5 21.5-48 48-48zM48 128h80v64H64V448H256V416h64v48c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V176c0-26.5 21.5-48 48-48z"]},S0={prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32V224H48c-17.7 0-32 14.3-32 32s14.3 32 32 32H192V432c0 17.7 14.3 32 32 32s32-14.3 32-32V288H400c17.7 0 32-14.3 32-32s-14.3-32-32-32H256V80z"]},O0={prefix:"fas",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"]},C0={prefix:"fas",iconName:"chevron-left",icon:[320,512,[9001],"f053","M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"]},R0={prefix:"fas",iconName:"chevron-right",icon:[320,512,[9002],"f054","M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"]},Fh={prefix:"fas",iconName:"moon",icon:[384,512,[127769,9214],"f186","M223.5 32C100 32 0 132.3 0 256S100 480 223.5 480c60.6 0 115.5-24.2 155.8-63.4c5-4.9 6.3-12.5 3.1-18.7s-10.1-9.7-17-8.5c-9.8 1.7-19.8 2.6-30.1 2.6c-96.9 0-175.5-78.8-175.5-176c0-65.8 36-123.1 89.3-153.3c6.1-3.5 9.2-10.5 7.7-17.3s-7.3-11.9-14.3-12.5c-6.3-.5-12.6-.8-19-.8z"]},P0={prefix:"fas",iconName:"calendar",icon:[448,512,[128197,128198],"f133","M96 32V64H48C21.5 64 0 85.5 0 112v48H448V112c0-26.5-21.5-48-48-48H352V32c0-17.7-14.3-32-32-32s-32 14.3-32 32V64H160V32c0-17.7-14.3-32-32-32S96 14.3 96 32zM448 192H0V464c0 26.5 21.5 48 48 48H400c26.5 0 48-21.5 48-48V192z"]},jh={prefix:"fas",iconName:"check",icon:[448,512,[10003,10004],"f00c","M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"]};const Dh={key:0},$h={class:"nav-item ms-3 bar-section"},zh={class:"text-center"},Hh={methods:{hasPermission:function(e){const t=rt();var n=0,r=JSON.parse(JSON.stringify(t.perms));if(r.forEach(i=>{i.grant==e&&n++}),n>0)return!0}}},Pa=Object.assign(Hh,{__name:"BarItem",props:{dest:{type:String,required:!0},title:{type:String,required:!0},icon:{type:String,required:!0},permission:{type:String,required:!0}},setup(e){return Ys.add(Fh,Mh,Ih,Nh),(t,n)=>t.hasPermission(t.$props.permission)?(je(),ut("div",Dh,[U("li",$h,[U("a",{class:"nav-link",onClick:n[0]||(n[0]=r=>t.$router.push(t.$props.dest))},[U("table",null,[U("tr",null,[U("td",zh,[U("i",{class:tr(["fas","fa-lg",t.$props.icon])},null,2)])]),U("tr",null,[U("td",null,ws(e.title),1)])])])])])):Wi("",!0)}}),tt={mainLogger:{info:(e,t)=>{console.log("%c["+e+"]","color: #424ef5; font-weight: bold",t)},error:(e,t)=>{console.error("%c["+e+"]","color: #f50000; font-weight: bold",t)}}};function Dc(e,t){return function(){return e.apply(t,arguments)}}const{toString:Bh}=Object.prototype,{getPrototypeOf:Gs}=Object,di=(e=>t=>{const n=Bh.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),it=e=>(e=e.toLowerCase(),t=>di(t)===e),mi=e=>t=>typeof t===e,{isArray:_n}=Array,Zn=mi("undefined");function Uh(e){return e!==null&&!Zn(e)&&e.constructor!==null&&!Zn(e.constructor)&&De(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const $c=it("ArrayBuffer");function qh(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&$c(e.buffer),t}const Vh=mi("string"),De=mi("function"),zc=mi("number"),pi=e=>e!==null&&typeof e=="object",Wh=e=>e===!0||e===!1,Ir=e=>{if(di(e)!=="object")return!1;const t=Gs(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Kh=it("Date"),Yh=it("File"),Jh=it("Blob"),Xh=it("FileList"),Gh=e=>pi(e)&&De(e.pipe),Qh=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||De(e.append)&&((t=di(e))==="formdata"||t==="object"&&De(e.toString)&&e.toString()==="[object FormData]"))},Zh=it("URLSearchParams"),eg=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function or(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),_n(e))for(r=0,i=e.length;r0;)if(i=n[r],t===i.toLowerCase())return i;return null}const Bc=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),Uc=e=>!Zn(e)&&e!==Bc;function fs(){const{caseless:e}=Uc(this)&&this||{},t={},n=(r,i)=>{const s=e&&Hc(t,i)||i;Ir(t[s])&&Ir(r)?t[s]=fs(t[s],r):Ir(r)?t[s]=fs({},r):_n(r)?t[s]=r.slice():t[s]=r};for(let r=0,i=arguments.length;r(or(t,(i,s)=>{n&&De(i)?e[s]=Dc(i,n):e[s]=i},{allOwnKeys:r}),e),ng=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),rg=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},ig=(e,t,n,r)=>{let i,s,o;const a={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),s=i.length;s-- >0;)o=i[s],(!r||r(o,e,t))&&!a[o]&&(t[o]=e[o],a[o]=!0);e=n!==!1&&Gs(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},sg=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},og=e=>{if(!e)return null;if(_n(e))return e;let t=e.length;if(!zc(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},ag=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Gs(Uint8Array)),lg=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=r.next())&&!i.done;){const s=i.value;t.call(e,s[0],s[1])}},cg=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},fg=it("HTMLFormElement"),ug=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),Ta=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),dg=it("RegExp"),qc=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};or(n,(i,s)=>{let o;(o=t(i,s,e))!==!1&&(r[s]=o||i)}),Object.defineProperties(e,r)},mg=e=>{qc(e,(t,n)=>{if(De(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(!!De(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},pg=(e,t)=>{const n={},r=i=>{i.forEach(s=>{n[s]=!0})};return _n(e)?r(e):r(String(e).split(t)),n},hg=()=>{},gg=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Pi="abcdefghijklmnopqrstuvwxyz",Ia="0123456789",Vc={DIGIT:Ia,ALPHA:Pi,ALPHA_DIGIT:Pi+Pi.toUpperCase()+Ia},vg=(e=16,t=Vc.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function bg(e){return!!(e&&De(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const yg=e=>{const t=new Array(10),n=(r,i)=>{if(pi(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const s=_n(r)?[]:{};return or(r,(o,a)=>{const l=n(o,i+1);!Zn(l)&&(s[a]=l)}),t[i]=void 0,s}}return r};return n(e,0)},wg=it("AsyncFunction"),_g=e=>e&&(pi(e)||De(e))&&De(e.then)&&De(e.catch),w={isArray:_n,isArrayBuffer:$c,isBuffer:Uh,isFormData:Qh,isArrayBufferView:qh,isString:Vh,isNumber:zc,isBoolean:Wh,isObject:pi,isPlainObject:Ir,isUndefined:Zn,isDate:Kh,isFile:Yh,isBlob:Jh,isRegExp:dg,isFunction:De,isStream:Gh,isURLSearchParams:Zh,isTypedArray:ag,isFileList:Xh,forEach:or,merge:fs,extend:tg,trim:eg,stripBOM:ng,inherits:rg,toFlatObject:ig,kindOf:di,kindOfTest:it,endsWith:sg,toArray:og,forEachEntry:lg,matchAll:cg,isHTMLForm:fg,hasOwnProperty:Ta,hasOwnProp:Ta,reduceDescriptors:qc,freezeMethods:mg,toObjectSet:pg,toCamelCase:ug,noop:hg,toFiniteNumber:gg,findKey:Hc,global:Bc,isContextDefined:Uc,ALPHABET:Vc,generateString:vg,isSpecCompliantForm:bg,toJSONObject:yg,isAsyncFn:wg,isThenable:_g};function X(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}w.inherits(X,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:w.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Wc=X.prototype,Kc={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Kc[e]={value:e}});Object.defineProperties(X,Kc);Object.defineProperty(Wc,"isAxiosError",{value:!0});X.from=(e,t,n,r,i,s)=>{const o=Object.create(Wc);return w.toFlatObject(e,o,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),X.call(o,e.message,t,n,r,i),o.cause=e,o.name=e.name,s&&Object.assign(o,s),o};const xg=null;function us(e){return w.isPlainObject(e)||w.isArray(e)}function Yc(e){return w.endsWith(e,"[]")?e.slice(0,-2):e}function Na(e,t,n){return e?e.concat(t).map(function(i,s){return i=Yc(i),!n&&s?"["+i+"]":i}).join(n?".":""):t}function Eg(e){return w.isArray(e)&&!e.some(us)}const kg=w.toFlatObject(w,{},null,function(t){return/^is[A-Z]/.test(t)});function hi(e,t,n){if(!w.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=w.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,O){return!w.isUndefined(O[y])});const r=n.metaTokens,i=n.visitor||c,s=n.dots,o=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&w.isSpecCompliantForm(t);if(!w.isFunction(i))throw new TypeError("visitor must be a function");function f(v){if(v===null)return"";if(w.isDate(v))return v.toISOString();if(!l&&w.isBlob(v))throw new X("Blob is not supported. Use a Buffer instead.");return w.isArrayBuffer(v)||w.isTypedArray(v)?l&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function c(v,y,O){let P=v;if(v&&!O&&typeof v=="object"){if(w.endsWith(y,"{}"))y=r?y:y.slice(0,-2),v=JSON.stringify(v);else if(w.isArray(v)&&Eg(v)||(w.isFileList(v)||w.endsWith(y,"[]"))&&(P=w.toArray(v)))return y=Yc(y),P.forEach(function(D,M){!(w.isUndefined(D)||D===null)&&t.append(o===!0?Na([y],M,s):o===null?y:y+"[]",f(D))}),!1}return us(v)?!0:(t.append(Na(O,y,s),f(v)),!1)}const u=[],m=Object.assign(kg,{defaultVisitor:c,convertValue:f,isVisitable:us});function h(v,y){if(!w.isUndefined(v)){if(u.indexOf(v)!==-1)throw Error("Circular reference detected in "+y.join("."));u.push(v),w.forEach(v,function(P,S){(!(w.isUndefined(P)||P===null)&&i.call(t,P,w.isString(S)?S.trim():S,y,m))===!0&&h(P,y?y.concat(S):[S])}),u.pop()}}if(!w.isObject(e))throw new TypeError("data must be an object");return h(e),t}function Ma(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Qs(e,t){this._pairs=[],e&&hi(e,this,t)}const Jc=Qs.prototype;Jc.append=function(t,n){this._pairs.push([t,n])};Jc.toString=function(t){const n=t?function(r){return t.call(this,r,Ma)}:Ma;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function Ag(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Xc(e,t,n){if(!t)return e;const r=n&&n.encode||Ag,i=n&&n.serialize;let s;if(i?s=i(t,n):s=w.isURLSearchParams(t)?t.toString():new Qs(t,n).toString(r),s){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class Sg{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){w.forEach(this.handlers,function(r){r!==null&&t(r)})}}const La=Sg,Gc={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Og=typeof URLSearchParams<"u"?URLSearchParams:Qs,Cg=typeof FormData<"u"?FormData:null,Rg=typeof Blob<"u"?Blob:null,Pg={isBrowser:!0,classes:{URLSearchParams:Og,FormData:Cg,Blob:Rg},protocols:["http","https","file","blob","url","data"]},Qc=typeof window<"u"&&typeof document<"u",Tg=(e=>Qc&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),Ig=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Ng=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Qc,hasStandardBrowserWebWorkerEnv:Ig,hasStandardBrowserEnv:Tg},Symbol.toStringTag,{value:"Module"})),Ze={...Ng,...Pg};function Mg(e,t){return hi(e,new Ze.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,s){return Ze.isNode&&w.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function Lg(e){return w.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Fg(e){const t={},n=Object.keys(e);let r;const i=n.length;let s;for(r=0;r=n.length;return o=!o&&w.isArray(i)?i.length:o,l?(w.hasOwnProp(i,o)?i[o]=[i[o],r]:i[o]=r,!a):((!i[o]||!w.isObject(i[o]))&&(i[o]=[]),t(n,r,i[o],s)&&w.isArray(i[o])&&(i[o]=Fg(i[o])),!a)}if(w.isFormData(e)&&w.isFunction(e.entries)){const n={};return w.forEachEntry(e,(r,i)=>{t(Lg(r),i,n,0)}),n}return null}function jg(e,t,n){if(w.isString(e))try{return(t||JSON.parse)(e),w.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Zs={transitional:Gc,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,s=w.isObject(t);if(s&&w.isHTMLForm(t)&&(t=new FormData(t)),w.isFormData(t))return i&&i?JSON.stringify(Zc(t)):t;if(w.isArrayBuffer(t)||w.isBuffer(t)||w.isStream(t)||w.isFile(t)||w.isBlob(t))return t;if(w.isArrayBufferView(t))return t.buffer;if(w.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Mg(t,this.formSerializer).toString();if((a=w.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return hi(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return s||i?(n.setContentType("application/json",!1),jg(t)):t}],transformResponse:[function(t){const n=this.transitional||Zs.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(t&&w.isString(t)&&(r&&!this.responseType||i)){const o=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(a){if(o)throw a.name==="SyntaxError"?X.from(a,X.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ze.classes.FormData,Blob:Ze.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};w.forEach(["delete","get","head","post","put","patch"],e=>{Zs.headers[e]={}});const eo=Zs,Dg=w.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),$g=e=>{const t={};let n,r,i;return e&&e.split(` + */const Zt=typeof window<"u";function hp(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const ne=Object.assign;function Oi(e,t){const n={};for(const r in t){const i=t[r];n[r]=Ve(i)?i.map(e):e(i)}return n}const jn=()=>{},Ve=Array.isArray,gp=/\/$/,vp=e=>e.replace(gp,"");function Ci(e,t,n="/"){let r,i={},s="",o="";const a=t.indexOf("#");let l=t.indexOf("?");return a=0&&(l=-1),l>-1&&(r=t.slice(0,l),s=t.slice(l+1,a>-1?a:t.length),i=e(s)),a>-1&&(r=r||t.slice(0,a),o=t.slice(a,t.length)),r=_p(r!=null?r:t,n),{fullPath:r+(s&&"?")+s+o,path:r,query:i,hash:o}}function bp(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function pa(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function yp(e,t,n){const r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&pn(t.matched[r],n.matched[i])&&kc(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function pn(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function kc(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!wp(e[n],t[n]))return!1;return!0}function wp(e,t){return Ve(e)?ha(e,t):Ve(t)?ha(t,e):e===t}function ha(e,t){return Ve(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function _p(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),i=r[r.length-1];(i===".."||i===".")&&r.push("");let s=n.length-1,o,a;for(o=0;o1&&s--;else break;return n.slice(0,s).join("/")+"/"+r.slice(o-(o===r.length?1:0)).join("/")}var Qn;(function(e){e.pop="pop",e.push="push"})(Qn||(Qn={}));var Dn;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Dn||(Dn={}));function xp(e){if(!e)if(Zt){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),vp(e)}const Ep=/^[^#]+#/;function kp(e,t){return e.replace(Ep,"#")+t}function Ap(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const fi=()=>({left:window.pageXOffset,top:window.pageYOffset});function Sp(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),i=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=Ap(i,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function ga(e,t){return(history.state?history.state.position-t:-1)+e}const as=new Map;function Op(e,t){as.set(e,t)}function Cp(e){const t=as.get(e);return as.delete(e),t}let Rp=()=>location.protocol+"//"+location.host;function Ac(e,t){const{pathname:n,search:r,hash:i}=t,s=e.indexOf("#");if(s>-1){let a=i.includes(e.slice(s))?e.slice(s).length:1,l=i.slice(a);return l[0]!=="/"&&(l="/"+l),pa(l,"")}return pa(n,e)+r+i}function Pp(e,t,n,r){let i=[],s=[],o=null;const a=({state:m})=>{const h=Ac(e,location),v=n.value,b=t.value;let O=0;if(m){if(n.value=h,t.value=m,o&&o===v){o=null;return}O=b?m.position-b.position:0}else r(h);i.forEach(S=>{S(n.value,v,{delta:O,type:Qn.pop,direction:O?O>0?Dn.forward:Dn.back:Dn.unknown})})};function l(){o=n.value}function f(m){i.push(m);const h=()=>{const v=i.indexOf(m);v>-1&&i.splice(v,1)};return s.push(h),h}function c(){const{history:m}=window;!m.state||m.replaceState(ne({},m.state,{scroll:fi()}),"")}function u(){for(const m of s)m();s=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",c)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",c,{passive:!0}),{pauseListeners:l,listen:f,destroy:u}}function va(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?fi():null}}function Tp(e){const{history:t,location:n}=window,r={value:Ac(e,n)},i={value:t.state};i.value||s(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function s(l,f,c){const u=e.indexOf("#"),m=u>-1?(n.host&&document.querySelector("base")?e:e.slice(u))+l:Rp()+e+l;try{t[c?"replaceState":"pushState"](f,"",m),i.value=f}catch(h){console.error(h),n[c?"replace":"assign"](m)}}function o(l,f){const c=ne({},t.state,va(i.value.back,l,i.value.forward,!0),f,{position:i.value.position});s(l,c,!0),r.value=l}function a(l,f){const c=ne({},i.value,t.state,{forward:l,scroll:fi()});s(c.current,c,!0);const u=ne({},va(r.value,l,null),{position:c.position+1},f);s(l,u,!1),r.value=l}return{location:r,state:i,push:a,replace:o}}function Sc(e){e=xp(e);const t=Tp(e),n=Pp(e,t.state,t.location,t.replace);function r(s,o=!0){o||n.pauseListeners(),history.go(s)}const i=ne({location:"",base:e,go:r,createHref:kp.bind(null,e)},t,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}function Ip(e){return typeof e=="string"||e&&typeof e=="object"}function Oc(e){return typeof e=="string"||typeof e=="symbol"}const xt={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Cc=Symbol("");var ba;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(ba||(ba={}));function hn(e,t){return ne(new Error,{type:e,[Cc]:!0},t)}function ot(e,t){return e instanceof Error&&Cc in e&&(t==null||!!(e.type&t))}const ya="[^/]+?",Np={sensitive:!1,strict:!1,start:!0,end:!0},Mp=/[.+*?^${}()[\]/\\]/g;function Lp(e,t){const n=ne({},Np,t),r=[];let i=n.start?"^":"";const s=[];for(const f of e){const c=f.length?[]:[90];n.strict&&!f.length&&(i+="/");for(let u=0;ut.length?t.length===1&&t[0]===40+40?1:-1:0}function jp(e,t){let n=0;const r=e.score,i=t.score;for(;n0&&t[t.length-1]<0}const Dp={type:0,value:""},$p=/[a-zA-Z0-9_]/;function zp(e){if(!e)return[[]];if(e==="/")return[[Dp]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${n})/"${f}": ${h}`)}let n=0,r=n;const i=[];let s;function o(){s&&i.push(s),s=[]}let a=0,l,f="",c="";function u(){!f||(n===0?s.push({type:0,value:f}):n===1||n===2||n===3?(s.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${f}) must be alone in its segment. eg: '/:ids+.`),s.push({type:1,value:f,regexp:c,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),f="")}function m(){f+=l}for(;a{o(C)}:jn}function o(c){if(Oc(c)){const u=r.get(c);u&&(r.delete(c),n.splice(n.indexOf(u),1),u.children.forEach(o),u.alias.forEach(o))}else{const u=n.indexOf(c);u>-1&&(n.splice(u,1),c.record.name&&r.delete(c.record.name),c.children.forEach(o),c.alias.forEach(o))}}function a(){return n}function l(c){let u=0;for(;u=0&&(c.record.path!==n[u].record.path||!Rc(c,n[u]));)u++;n.splice(u,0,c),c.record.name&&!xa(c)&&r.set(c.record.name,c)}function f(c,u){let m,h={},v,b;if("name"in c&&c.name){if(m=r.get(c.name),!m)throw hn(1,{location:c});b=m.record.name,h=ne(_a(u.params,m.keys.filter(C=>!C.optional).map(C=>C.name)),c.params&&_a(c.params,m.keys.map(C=>C.name))),v=m.stringify(h)}else if("path"in c)v=c.path,m=n.find(C=>C.re.test(v)),m&&(h=m.parse(v),b=m.record.name);else{if(m=u.name?r.get(u.name):n.find(C=>C.re.test(u.path)),!m)throw hn(1,{location:c,currentLocation:u});b=m.record.name,h=ne({},u.params,c.params),v=m.stringify(h)}const O=[];let S=m;for(;S;)O.unshift(S.record),S=S.parent;return{name:b,path:v,params:h,matched:O,meta:Vp(O)}}return e.forEach(c=>s(c)),{addRoute:s,resolve:f,removeRoute:o,getRoutes:a,getRecordMatcher:i}}function _a(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function Up(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:qp(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function qp(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function xa(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Vp(e){return e.reduce((t,n)=>ne(t,n.meta),{})}function Ea(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function Rc(e,t){return t.children.some(n=>n===e||Rc(e,n))}const Pc=/#/g,Wp=/&/g,Kp=/\//g,Yp=/=/g,Jp=/\?/g,Tc=/\+/g,Xp=/%5B/g,Gp=/%5D/g,Ic=/%5E/g,Qp=/%60/g,Nc=/%7B/g,Zp=/%7C/g,Mc=/%7D/g,eh=/%20/g;function Js(e){return encodeURI(""+e).replace(Zp,"|").replace(Xp,"[").replace(Gp,"]")}function th(e){return Js(e).replace(Nc,"{").replace(Mc,"}").replace(Ic,"^")}function ls(e){return Js(e).replace(Tc,"%2B").replace(eh,"+").replace(Pc,"%23").replace(Wp,"%26").replace(Qp,"`").replace(Nc,"{").replace(Mc,"}").replace(Ic,"^")}function nh(e){return ls(e).replace(Yp,"%3D")}function rh(e){return Js(e).replace(Pc,"%23").replace(Jp,"%3F")}function ih(e){return e==null?"":rh(e).replace(Kp,"%2F")}function qr(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function sh(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let i=0;is&&ls(s)):[r&&ls(r)]).forEach(s=>{s!==void 0&&(t+=(t.length?"&":"")+n,s!=null&&(t+="="+s))})}return t}function oh(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=Ve(r)?r.map(i=>i==null?null:""+i):r==null?r:""+r)}return t}const ah=Symbol(""),Aa=Symbol(""),Xs=Symbol(""),Lc=Symbol(""),cs=Symbol("");function Sn(){let e=[];function t(r){return e.push(r),()=>{const i=e.indexOf(r);i>-1&&e.splice(i,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function St(e,t,n,r,i){const s=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((o,a)=>{const l=u=>{u===!1?a(hn(4,{from:n,to:t})):u instanceof Error?a(u):Ip(u)?a(hn(2,{from:t,to:u})):(s&&r.enterCallbacks[i]===s&&typeof u=="function"&&s.push(u),o())},f=e.call(r&&r.instances[i],t,n,l);let c=Promise.resolve(f);e.length<3&&(c=c.then(l)),c.catch(u=>a(u))})}function Ri(e,t,n,r){const i=[];for(const s of e)for(const o in s.components){let a=s.components[o];if(!(t!=="beforeRouteEnter"&&!s.instances[o]))if(lh(a)){const f=(a.__vccOpts||a)[t];f&&i.push(St(f,n,r,s,o))}else{let l=a();i.push(()=>l.then(f=>{if(!f)return Promise.reject(new Error(`Couldn't resolve component "${o}" at "${s.path}"`));const c=hp(f)?f.default:f;s.components[o]=c;const m=(c.__vccOpts||c)[t];return m&&St(m,n,r,s,o)()}))}}return i}function lh(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Sa(e){const t=et(Xs),n=et(Lc),r=Fe(()=>t.resolve(ft(e.to))),i=Fe(()=>{const{matched:l}=r.value,{length:f}=l,c=l[f-1],u=n.matched;if(!c||!u.length)return-1;const m=u.findIndex(pn.bind(null,c));if(m>-1)return m;const h=Oa(l[f-2]);return f>1&&Oa(c)===h&&u[u.length-1].path!==h?u.findIndex(pn.bind(null,l[f-2])):m}),s=Fe(()=>i.value>-1&&dh(n.params,r.value.params)),o=Fe(()=>i.value>-1&&i.value===n.matched.length-1&&kc(n.params,r.value.params));function a(l={}){return uh(l)?t[ft(e.replace)?"replace":"push"](ft(e.to)).catch(jn):Promise.resolve()}return{route:r,href:Fe(()=>r.value.href),isActive:s,isExactActive:o,navigate:a}}const ch=Cl({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Sa,setup(e,{slots:t}){const n=nr(Sa(e)),{options:r}=et(Xs),i=Fe(()=>({[Ca(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Ca(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const s=t.default&&t.default(n);return e.custom?s:ql("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},s)}}}),fh=ch;function uh(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function dh(e,t){for(const n in t){const r=t[n],i=e[n];if(typeof r=="string"){if(r!==i)return!1}else if(!Ve(i)||i.length!==r.length||r.some((s,o)=>s!==i[o]))return!1}return!0}function Oa(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Ca=(e,t,n)=>e!=null?e:t!=null?t:n,mh=Cl({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=et(cs),i=Fe(()=>e.route||r.value),s=et(Aa,0),o=Fe(()=>{let f=ft(s);const{matched:c}=i.value;let u;for(;(u=c[f])&&!u.components;)f++;return f}),a=Fe(()=>i.value.matched[o.value]);Or(Aa,Fe(()=>o.value+1)),Or(ah,a),Or(cs,i);const l=Qr();return Tn(()=>[l.value,a.value,e.name],([f,c,u],[m,h,v])=>{c&&(c.instances[u]=f,h&&h!==c&&f&&f===m&&(c.leaveGuards.size||(c.leaveGuards=h.leaveGuards),c.updateGuards.size||(c.updateGuards=h.updateGuards))),f&&c&&(!h||!pn(c,h)||!m)&&(c.enterCallbacks[u]||[]).forEach(b=>b(f))},{flush:"post"}),()=>{const f=i.value,c=e.name,u=a.value,m=u&&u.components[c];if(!m)return Ra(n.default,{Component:m,route:f});const h=u.props[c],v=h?h===!0?f.params:typeof h=="function"?h(f):h:null,O=ql(m,ne({},v,t,{onVnodeUnmounted:S=>{S.component.isUnmounted&&(u.instances[c]=null)},ref:l}));return Ra(n.default,{Component:O,route:f})||O}}});function Ra(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Fc=mh;function jc(e){const t=Bp(e.routes,e),n=e.parseQuery||sh,r=e.stringifyQuery||ka,i=e.history,s=Sn(),o=Sn(),a=Sn(),l=Vf(xt);let f=xt;Zt&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=Oi.bind(null,_=>""+_),u=Oi.bind(null,ih),m=Oi.bind(null,qr);function h(_,N){let P,D;return Oc(_)?(P=t.getRecordMatcher(_),D=N):D=_,t.addRoute(D,P)}function v(_){const N=t.getRecordMatcher(_);N&&t.removeRoute(N)}function b(){return t.getRoutes().map(_=>_.record)}function O(_){return!!t.getRecordMatcher(_)}function S(_,N){if(N=ne({},N||l.value),typeof _=="string"){const g=Ci(n,_,N.path),y=t.resolve({path:g.path},N),x=i.createHref(g.fullPath);return ne(g,y,{params:m(y.params),hash:qr(g.hash),redirectedFrom:void 0,href:x})}let P;if("path"in _)P=ne({},_,{path:Ci(n,_.path,N.path).path});else{const g=ne({},_.params);for(const y in g)g[y]==null&&delete g[y];P=ne({},_,{params:u(g)}),N.params=u(N.params)}const D=t.resolve(P,N),te=_.hash||"";D.params=c(m(D.params));const d=bp(r,ne({},_,{hash:th(te),path:D.path})),p=i.createHref(d);return ne({fullPath:d,hash:te,query:r===ka?oh(_.query):_.query||{}},D,{redirectedFrom:void 0,href:p})}function C(_){return typeof _=="string"?Ci(n,_,l.value.path):ne({},_)}function j(_,N){if(f!==_)return hn(8,{from:N,to:_})}function M(_){return ue(_)}function K(_){return M(ne(C(_),{replace:!0}))}function fe(_){const N=_.matched[_.matched.length-1];if(N&&N.redirect){const{redirect:P}=N;let D=typeof P=="function"?P(_):P;return typeof D=="string"&&(D=D.includes("?")||D.includes("#")?D=C(D):{path:D},D.params={}),ne({query:_.query,hash:_.hash,params:"path"in D?{}:_.params},D)}}function ue(_,N){const P=f=S(_),D=l.value,te=_.state,d=_.force,p=_.replace===!0,g=fe(P);if(g)return ue(ne(C(g),{state:typeof g=="object"?ne({},te,g.state):te,force:d,replace:p}),N||P);const y=P;y.redirectedFrom=N;let x;return!d&&yp(r,D,P)&&(x=hn(16,{to:y,from:D}),We(D,D,!0,!1)),(x?Promise.resolve(x):de(y,D)).catch(E=>ot(E)?ot(E,2)?E:yt(E):ee(E,y,D)).then(E=>{if(E){if(ot(E,2))return ue(ne({replace:p},C(E.to),{state:typeof E.to=="object"?ne({},te,E.to.state):te,force:d}),N||y)}else E=Re(y,D,!0,p,te);return xe(y,D,E),E})}function Y(_,N){const P=j(_,N);return P?Promise.reject(P):Promise.resolve()}function W(_){const N=Jt.values().next().value;return N&&typeof N.runWithContext=="function"?N.runWithContext(_):_()}function de(_,N){let P;const[D,te,d]=ph(_,N);P=Ri(D.reverse(),"beforeRouteLeave",_,N);for(const g of D)g.leaveGuards.forEach(y=>{P.push(St(y,_,N))});const p=Y.bind(null,_,N);return P.push(p),Ee(P).then(()=>{P=[];for(const g of s.list())P.push(St(g,_,N));return P.push(p),Ee(P)}).then(()=>{P=Ri(te,"beforeRouteUpdate",_,N);for(const g of te)g.updateGuards.forEach(y=>{P.push(St(y,_,N))});return P.push(p),Ee(P)}).then(()=>{P=[];for(const g of d)if(g.beforeEnter)if(Ve(g.beforeEnter))for(const y of g.beforeEnter)P.push(St(y,_,N));else P.push(St(g.beforeEnter,_,N));return P.push(p),Ee(P)}).then(()=>(_.matched.forEach(g=>g.enterCallbacks={}),P=Ri(d,"beforeRouteEnter",_,N),P.push(p),Ee(P))).then(()=>{P=[];for(const g of o.list())P.push(St(g,_,N));return P.push(p),Ee(P)}).catch(g=>ot(g,8)?g:Promise.reject(g))}function xe(_,N,P){a.list().forEach(D=>W(()=>D(_,N,P)))}function Re(_,N,P,D,te){const d=j(_,N);if(d)return d;const p=N===xt,g=Zt?history.state:{};P&&(D||p?i.replace(_.fullPath,ne({scroll:p&&g&&g.scroll},te)):i.push(_.fullPath,te)),l.value=_,We(_,N,P,p),yt()}let Me;function Mt(){Me||(Me=i.listen((_,N,P)=>{if(!lr.listening)return;const D=S(_),te=fe(D);if(te){ue(ne(te,{replace:!0}),D).catch(jn);return}f=D;const d=l.value;Zt&&Op(ga(d.fullPath,P.delta),fi()),de(D,d).catch(p=>ot(p,12)?p:ot(p,2)?(ue(p.to,D).then(g=>{ot(g,20)&&!P.delta&&P.type===Qn.pop&&i.go(-1,!1)}).catch(jn),Promise.reject()):(P.delta&&i.go(-P.delta,!1),ee(p,D,d))).then(p=>{p=p||Re(D,d,!1),p&&(P.delta&&!ot(p,8)?i.go(-P.delta,!1):P.type===Qn.pop&&ot(p,20)&&i.go(-1,!1)),xe(D,d,p)}).catch(jn)}))}let Le=Sn(),Z=Sn(),ie;function ee(_,N,P){yt(_);const D=Z.list();return D.length?D.forEach(te=>te(_,N,P)):console.error(_),Promise.reject(_)}function st(){return ie&&l.value!==xt?Promise.resolve():new Promise((_,N)=>{Le.add([_,N])})}function yt(_){return ie||(ie=!_,Mt(),Le.list().forEach(([N,P])=>_?P(_):N()),Le.reset()),_}function We(_,N,P,D){const{scrollBehavior:te}=e;if(!Zt||!te)return Promise.resolve();const d=!P&&Cp(ga(_.fullPath,0))||(D||!P)&&history.state&&history.state.scroll||null;return Cs().then(()=>te(_,N,d)).then(p=>p&&Sp(p)).catch(p=>ee(p,_,N))}const Se=_=>i.go(_);let Yt;const Jt=new Set,lr={currentRoute:l,listening:!0,addRoute:h,removeRoute:v,hasRoute:O,getRoutes:b,resolve:S,options:e,push:M,replace:K,go:Se,back:()=>Se(-1),forward:()=>Se(1),beforeEach:s.add,beforeResolve:o.add,afterEach:a.add,onError:Z.add,isReady:st,install(_){const N=this;_.component("RouterLink",fh),_.component("RouterView",Fc),_.config.globalProperties.$router=N,Object.defineProperty(_.config.globalProperties,"$route",{enumerable:!0,get:()=>ft(l)}),Zt&&!Yt&&l.value===xt&&(Yt=!0,M(i.location).catch(te=>{}));const P={};for(const te in xt)Object.defineProperty(P,te,{get:()=>l.value[te],enumerable:!0});_.provide(Xs,N),_.provide(Lc,ll(P)),_.provide(cs,l);const D=_.unmount;Jt.add(_),_.unmount=function(){Jt.delete(_),Jt.size<1&&(f=xt,Me&&Me(),Me=null,l.value=xt,Yt=!1,ie=!1),D()}}};function Ee(_){return _.reduce((N,P)=>N.then(()=>W(P)),Promise.resolve())}return lr}function ph(e,t){const n=[],r=[],i=[],s=Math.max(t.matched.length,e.matched.length);for(let o=0;opn(f,a))?r.push(a):n.push(a));const l=e.matched[o];l&&(t.matched.find(f=>pn(f,l))||i.push(l))}return[n,r,i]}const ui=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n},hh={},gh={class:"nav-item active"},vh=U("a",{class:"nav-link",href:"#"},"Login",-1),bh=[vh];function yh(e,t){return je(),ut("li",gh,bh)}const wh=ui(hh,[["render",yh]]),rt=Ld({id:"polifemo",state:()=>({userid:"",loggedIn:!1,darkModeEnabled:!1,perms:[],authorizedauthors:[]})}),_h={data(){return{store:rt()}},computed:{darkMode:function(){return localStorage.getItem("bs.prefers-color-scheme")==="dark"}},mounted(){this.updateIcon(this.darkMode),this.loadDarkModePreference()},methods:{toggleDarkMode(){this.store.darkModeEnabled=!this.store.darkModeEnabled,localStorage.setItem("bs.prefers-color-scheme",this.store.darkModeEnabled?"dark":"light"),this.updateIcon(),this.applyDarkModePreference()},updateIcon(e){this.store.darkModeEnabled||e?(document.getElementById("darkmode-icon").classList.remove("fa-moon"),document.getElementById("darkmode-icon").classList.add("fa-sun")):(document.getElementById("darkmode-icon").classList.remove("fa-sun"),document.getElementById("darkmode-icon").classList.add("fa-moon"))},loadDarkModePreference(){localStorage.getItem("bs.prefers-color-scheme")===null&&localStorage.setItem("bs.prefers-color-scheme","light"),this.store.darkModeEnabled=localStorage.getItem("bs.prefers-color-scheme")==="dark",this.applyDarkModePreference()},applyDarkModePreference(){this.store.darkModeEnabled?document.documentElement.setAttribute("data-bs-theme","dark"):document.documentElement.removeAttribute("data-bs-theme")}}},xh={class:"nav-item"},Eh=U("i",{id:"darkmode-icon",class:tr(["fas","fa-lg"])},null,-1),kh=[Eh];function Ah(e,t,n,r,i,s){return je(),ut("li",xh,[U("a",{id:"darkmode",class:"nav-link",href:"#",onClick:t[0]||(t[0]=o=>s.toggleDarkMode())},kh)])}const Sh=ui(_h,[["render",Ah]]),Oh={methods:{logout(){rt.loggedIn=!1,rt.permissions=[],localStorage.removeItem("polifemo_access_token"),localStorage.removeItem("polifemo_refresh_token"),window.location.href=window.location.href.split("/")[0]}}},Ch={class:"nav-item"};function Rh(e,t,n,r,i,s){return je(),ut("li",Ch,[U("a",{class:"nav-link ms-2",href:"#",onClick:t[0]||(t[0]=o=>s.logout())},"Logout")])}const Ph=ui(Oh,[["render",Rh]]);var v0={prefix:"fas",iconName:"trash-can",icon:[448,512,[61460,"trash-alt"],"f2ed","M135.2 17.7C140.6 6.8 151.7 0 163.8 0H284.2c12.1 0 23.2 6.8 28.6 17.7L320 32h96c17.7 0 32 14.3 32 32s-14.3 32-32 32H32C14.3 96 0 81.7 0 64S14.3 32 32 32h96l7.2-14.3zM32 128H416V448c0 35.3-28.7 64-64 64H96c-35.3 0-64-28.7-64-64V128zm96 64c-8.8 0-16 7.2-16 16V432c0 8.8 7.2 16 16 16s16-7.2 16-16V208c0-8.8-7.2-16-16-16zm96 0c-8.8 0-16 7.2-16 16V432c0 8.8 7.2 16 16 16s16-7.2 16-16V208c0-8.8-7.2-16-16-16zm96 0c-8.8 0-16 7.2-16 16V432c0 8.8 7.2 16 16 16s16-7.2 16-16V208c0-8.8-7.2-16-16-16z"]},b0={prefix:"fas",iconName:"user",icon:[448,512,[128100,62144],"f007","M224 256A128 128 0 1 0 224 0a128 128 0 1 0 0 256zm-45.7 48C79.8 304 0 383.8 0 482.3C0 498.7 13.3 512 29.7 512H418.3c16.4 0 29.7-13.3 29.7-29.7C448 383.8 368.2 304 269.7 304H178.3z"]},Th={prefix:"fas",iconName:"right-to-bracket",icon:[512,512,["sign-in-alt"],"f2f6","M217.9 105.9L340.7 228.7c7.2 7.2 11.3 17.1 11.3 27.3s-4.1 20.1-11.3 27.3L217.9 406.1c-6.4 6.4-15 9.9-24 9.9c-18.7 0-33.9-15.2-33.9-33.9l0-62.1L32 320c-17.7 0-32-14.3-32-32l0-64c0-17.7 14.3-32 32-32l128 0 0-62.1c0-18.7 15.2-33.9 33.9-33.9c9 0 17.6 3.6 24 9.9zM352 416l64 0c17.7 0 32-14.3 32-32l0-256c0-17.7-14.3-32-32-32l-64 0c-17.7 0-32-14.3-32-32s14.3-32 32-32l64 0c53 0 96 43 96 96l0 256c0 53-43 96-96 96l-64 0c-17.7 0-32-14.3-32-32s14.3-32 32-32z"]},Ih={prefix:"fas",iconName:"newspaper",icon:[512,512,[128240],"f1ea","M96 96c0-35.3 28.7-64 64-64H448c35.3 0 64 28.7 64 64V416c0 35.3-28.7 64-64 64H80c-44.2 0-80-35.8-80-80V128c0-17.7 14.3-32 32-32s32 14.3 32 32V400c0 8.8 7.2 16 16 16s16-7.2 16-16V96zm64 24v80c0 13.3 10.7 24 24 24H296c13.3 0 24-10.7 24-24V120c0-13.3-10.7-24-24-24H184c-13.3 0-24 10.7-24 24zm208-8c0 8.8 7.2 16 16 16h48c8.8 0 16-7.2 16-16s-7.2-16-16-16H384c-8.8 0-16 7.2-16 16zm0 96c0 8.8 7.2 16 16 16h48c8.8 0 16-7.2 16-16s-7.2-16-16-16H384c-8.8 0-16 7.2-16 16zM160 304c0 8.8 7.2 16 16 16H432c8.8 0 16-7.2 16-16s-7.2-16-16-16H176c-8.8 0-16 7.2-16 16zm0 96c0 8.8 7.2 16 16 16H432c8.8 0 16-7.2 16-16s-7.2-16-16-16H176c-8.8 0-16 7.2-16 16z"]},y0={prefix:"fas",iconName:"eye",icon:[576,512,[128065],"f06e","M288 32c-80.8 0-145.5 36.8-192.6 80.6C48.6 156 17.3 208 2.5 243.7c-3.3 7.9-3.3 16.7 0 24.6C17.3 304 48.6 356 95.4 399.4C142.5 443.2 207.2 480 288 480s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C433.5 68.8 368.8 32 288 32zM144 256a144 144 0 1 1 288 0 144 144 0 1 1 -288 0zm144-64c0 35.3-28.7 64-64 64c-7.1 0-13.9-1.2-20.3-3.3c-5.5-1.8-11.9 1.6-11.7 7.4c.3 6.9 1.3 13.8 3.2 20.7c13.7 51.2 66.4 81.6 117.6 67.9s81.6-66.4 67.9-117.6c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3z"]},w0={prefix:"fas",iconName:"trash",icon:[448,512,[],"f1f8","M135.2 17.7L128 32H32C14.3 32 0 46.3 0 64S14.3 96 32 96H416c17.7 0 32-14.3 32-32s-14.3-32-32-32H320l-7.2-14.3C307.4 6.8 296.3 0 284.2 0H163.8c-12.1 0-23.2 6.8-28.6 17.7zM416 128H32L53.2 467c1.6 25.3 22.6 45 47.9 45H346.9c25.3 0 46.3-19.7 47.9-45L416 128z"]},Nh={prefix:"fas",iconName:"tag",icon:[448,512,[127991],"f02b","M0 80V229.5c0 17 6.7 33.3 18.7 45.3l176 176c25 25 65.5 25 90.5 0L418.7 317.3c25-25 25-65.5 0-90.5l-176-176c-12-12-28.3-18.7-45.3-18.7H48C21.5 32 0 53.5 0 80zm112 32a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},_0={prefix:"fas",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336h24V272H216c-13.3 0-24-10.7-24-24s10.7-24 24-24h48c13.3 0 24 10.7 24 24v88h8c13.3 0 24 10.7 24 24s-10.7 24-24 24H216c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-208a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},x0={prefix:"fas",iconName:"clock",icon:[512,512,[128339,"clock-four"],"f017","M256 0a256 256 0 1 1 0 512A256 256 0 1 1 256 0zM232 120V256c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2V120c0-13.3-10.7-24-24-24s-24 10.7-24 24z"]},Mh={prefix:"fas",iconName:"sun",icon:[512,512,[9728],"f185","M361.5 1.2c5 2.1 8.6 6.6 9.6 11.9L391 121l107.9 19.8c5.3 1 9.8 4.6 11.9 9.6s1.5 10.7-1.6 15.2L446.9 256l62.3 90.3c3.1 4.5 3.7 10.2 1.6 15.2s-6.6 8.6-11.9 9.6L391 391 371.1 498.9c-1 5.3-4.6 9.8-9.6 11.9s-10.7 1.5-15.2-1.6L256 446.9l-90.3 62.3c-4.5 3.1-10.2 3.7-15.2 1.6s-8.6-6.6-9.6-11.9L121 391 13.1 371.1c-5.3-1-9.8-4.6-11.9-9.6s-1.5-10.7 1.6-15.2L65.1 256 2.8 165.7c-3.1-4.5-3.7-10.2-1.6-15.2s6.6-8.6 11.9-9.6L121 121 140.9 13.1c1-5.3 4.6-9.8 9.6-11.9s10.7-1.5 15.2 1.6L256 65.1 346.3 2.8c4.5-3.1 10.2-3.7 15.2-1.6zM160 256a96 96 0 1 1 192 0 96 96 0 1 1 -192 0zm224 0a128 128 0 1 0 -256 0 128 128 0 1 0 256 0z"]},E0={prefix:"fas",iconName:"location-dot",icon:[384,512,["map-marker-alt"],"f3c5","M215.7 499.2C267 435 384 279.4 384 192C384 86 298 0 192 0S0 86 0 192c0 87.4 117 243 168.3 307.2c12.3 15.3 35.1 15.3 47.4 0zM192 128a64 64 0 1 1 0 128 64 64 0 1 1 0-128z"]},k0={prefix:"fas",iconName:"arrow-down",icon:[384,512,[8595],"f063","M169.4 470.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 370.8 224 64c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 306.7L54.6 265.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z"]},A0={prefix:"fas",iconName:"arrow-up",icon:[384,512,[8593],"f062","M214.6 41.4c-12.5-12.5-32.8-12.5-45.3 0l-160 160c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L160 141.2V448c0 17.7 14.3 32 32 32s32-14.3 32-32V141.2L329.4 246.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-160-160z"]},Lh={prefix:"fas",iconName:"copy",icon:[448,512,[],"f0c5","M208 0H332.1c12.7 0 24.9 5.1 33.9 14.1l67.9 67.9c9 9 14.1 21.2 14.1 33.9V336c0 26.5-21.5 48-48 48H208c-26.5 0-48-21.5-48-48V48c0-26.5 21.5-48 48-48zM48 128h80v64H64V448H256V416h64v48c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V176c0-26.5 21.5-48 48-48z"]},S0={prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32V224H48c-17.7 0-32 14.3-32 32s14.3 32 32 32H192V432c0 17.7 14.3 32 32 32s32-14.3 32-32V288H400c17.7 0 32-14.3 32-32s-14.3-32-32-32H256V80z"]},O0={prefix:"fas",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"]},C0={prefix:"fas",iconName:"chevron-left",icon:[320,512,[9001],"f053","M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"]},R0={prefix:"fas",iconName:"chevron-right",icon:[320,512,[9002],"f054","M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"]},Fh={prefix:"fas",iconName:"moon",icon:[384,512,[127769,9214],"f186","M223.5 32C100 32 0 132.3 0 256S100 480 223.5 480c60.6 0 115.5-24.2 155.8-63.4c5-4.9 6.3-12.5 3.1-18.7s-10.1-9.7-17-8.5c-9.8 1.7-19.8 2.6-30.1 2.6c-96.9 0-175.5-78.8-175.5-176c0-65.8 36-123.1 89.3-153.3c6.1-3.5 9.2-10.5 7.7-17.3s-7.3-11.9-14.3-12.5c-6.3-.5-12.6-.8-19-.8z"]},P0={prefix:"fas",iconName:"calendar",icon:[448,512,[128197,128198],"f133","M96 32V64H48C21.5 64 0 85.5 0 112v48H448V112c0-26.5-21.5-48-48-48H352V32c0-17.7-14.3-32-32-32s-32 14.3-32 32V64H160V32c0-17.7-14.3-32-32-32S96 14.3 96 32zM448 192H0V464c0 26.5 21.5 48 48 48H400c26.5 0 48-21.5 48-48V192z"]},jh={prefix:"fas",iconName:"check",icon:[448,512,[10003,10004],"f00c","M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"]};const Dh={key:0},$h={class:"nav-item ms-3 bar-section"},zh={class:"text-center"},Hh={methods:{hasPermission:function(e){const t=rt();var n=0,r=JSON.parse(JSON.stringify(t.perms));if(r.forEach(i=>{i.grant==e&&n++}),n>0)return!0}}},Pa=Object.assign(Hh,{__name:"BarItem",props:{dest:{type:String,required:!0},title:{type:String,required:!0},icon:{type:String,required:!0},permission:{type:String,required:!0}},setup(e){return Ys.add(Fh,Mh,Ih,Nh),(t,n)=>t.hasPermission(t.$props.permission)?(je(),ut("div",Dh,[U("li",$h,[U("a",{class:"nav-link",onClick:n[0]||(n[0]=r=>t.$router.push(t.$props.dest))},[U("table",null,[U("tr",null,[U("td",zh,[U("i",{class:tr(["fas","fa-lg",t.$props.icon])},null,2)])]),U("tr",null,[U("td",null,ws(e.title),1)])])])])])):Wi("",!0)}}),tt={mainLogger:{info:(e,t)=>{console.log("%c["+e+"]","color: #424ef5; font-weight: bold",t)},error:(e,t)=>{console.error("%c["+e+"]","color: #f50000; font-weight: bold",t)}}};function Dc(e,t){return function(){return e.apply(t,arguments)}}const{toString:Bh}=Object.prototype,{getPrototypeOf:Gs}=Object,di=(e=>t=>{const n=Bh.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),it=e=>(e=e.toLowerCase(),t=>di(t)===e),mi=e=>t=>typeof t===e,{isArray:_n}=Array,Zn=mi("undefined");function Uh(e){return e!==null&&!Zn(e)&&e.constructor!==null&&!Zn(e.constructor)&&De(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const $c=it("ArrayBuffer");function qh(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&$c(e.buffer),t}const Vh=mi("string"),De=mi("function"),zc=mi("number"),pi=e=>e!==null&&typeof e=="object",Wh=e=>e===!0||e===!1,Ir=e=>{if(di(e)!=="object")return!1;const t=Gs(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Kh=it("Date"),Yh=it("File"),Jh=it("Blob"),Xh=it("FileList"),Gh=e=>pi(e)&&De(e.pipe),Qh=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||De(e.append)&&((t=di(e))==="formdata"||t==="object"&&De(e.toString)&&e.toString()==="[object FormData]"))},Zh=it("URLSearchParams"),eg=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function or(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),_n(e))for(r=0,i=e.length;r0;)if(i=n[r],t===i.toLowerCase())return i;return null}const Bc=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),Uc=e=>!Zn(e)&&e!==Bc;function fs(){const{caseless:e}=Uc(this)&&this||{},t={},n=(r,i)=>{const s=e&&Hc(t,i)||i;Ir(t[s])&&Ir(r)?t[s]=fs(t[s],r):Ir(r)?t[s]=fs({},r):_n(r)?t[s]=r.slice():t[s]=r};for(let r=0,i=arguments.length;r(or(t,(i,s)=>{n&&De(i)?e[s]=Dc(i,n):e[s]=i},{allOwnKeys:r}),e),ng=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),rg=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},ig=(e,t,n,r)=>{let i,s,o;const a={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),s=i.length;s-- >0;)o=i[s],(!r||r(o,e,t))&&!a[o]&&(t[o]=e[o],a[o]=!0);e=n!==!1&&Gs(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},sg=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},og=e=>{if(!e)return null;if(_n(e))return e;let t=e.length;if(!zc(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},ag=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Gs(Uint8Array)),lg=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=r.next())&&!i.done;){const s=i.value;t.call(e,s[0],s[1])}},cg=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},fg=it("HTMLFormElement"),ug=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),Ta=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),dg=it("RegExp"),qc=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};or(n,(i,s)=>{let o;(o=t(i,s,e))!==!1&&(r[s]=o||i)}),Object.defineProperties(e,r)},mg=e=>{qc(e,(t,n)=>{if(De(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(!!De(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},pg=(e,t)=>{const n={},r=i=>{i.forEach(s=>{n[s]=!0})};return _n(e)?r(e):r(String(e).split(t)),n},hg=()=>{},gg=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Pi="abcdefghijklmnopqrstuvwxyz",Ia="0123456789",Vc={DIGIT:Ia,ALPHA:Pi,ALPHA_DIGIT:Pi+Pi.toUpperCase()+Ia},vg=(e=16,t=Vc.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function bg(e){return!!(e&&De(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const yg=e=>{const t=new Array(10),n=(r,i)=>{if(pi(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const s=_n(r)?[]:{};return or(r,(o,a)=>{const l=n(o,i+1);!Zn(l)&&(s[a]=l)}),t[i]=void 0,s}}return r};return n(e,0)},wg=it("AsyncFunction"),_g=e=>e&&(pi(e)||De(e))&&De(e.then)&&De(e.catch),w={isArray:_n,isArrayBuffer:$c,isBuffer:Uh,isFormData:Qh,isArrayBufferView:qh,isString:Vh,isNumber:zc,isBoolean:Wh,isObject:pi,isPlainObject:Ir,isUndefined:Zn,isDate:Kh,isFile:Yh,isBlob:Jh,isRegExp:dg,isFunction:De,isStream:Gh,isURLSearchParams:Zh,isTypedArray:ag,isFileList:Xh,forEach:or,merge:fs,extend:tg,trim:eg,stripBOM:ng,inherits:rg,toFlatObject:ig,kindOf:di,kindOfTest:it,endsWith:sg,toArray:og,forEachEntry:lg,matchAll:cg,isHTMLForm:fg,hasOwnProperty:Ta,hasOwnProp:Ta,reduceDescriptors:qc,freezeMethods:mg,toObjectSet:pg,toCamelCase:ug,noop:hg,toFiniteNumber:gg,findKey:Hc,global:Bc,isContextDefined:Uc,ALPHABET:Vc,generateString:vg,isSpecCompliantForm:bg,toJSONObject:yg,isAsyncFn:wg,isThenable:_g};function X(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}w.inherits(X,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:w.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Wc=X.prototype,Kc={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Kc[e]={value:e}});Object.defineProperties(X,Kc);Object.defineProperty(Wc,"isAxiosError",{value:!0});X.from=(e,t,n,r,i,s)=>{const o=Object.create(Wc);return w.toFlatObject(e,o,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),X.call(o,e.message,t,n,r,i),o.cause=e,o.name=e.name,s&&Object.assign(o,s),o};const xg=null;function us(e){return w.isPlainObject(e)||w.isArray(e)}function Yc(e){return w.endsWith(e,"[]")?e.slice(0,-2):e}function Na(e,t,n){return e?e.concat(t).map(function(i,s){return i=Yc(i),!n&&s?"["+i+"]":i}).join(n?".":""):t}function Eg(e){return w.isArray(e)&&!e.some(us)}const kg=w.toFlatObject(w,{},null,function(t){return/^is[A-Z]/.test(t)});function hi(e,t,n){if(!w.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=w.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(b,O){return!w.isUndefined(O[b])});const r=n.metaTokens,i=n.visitor||c,s=n.dots,o=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&w.isSpecCompliantForm(t);if(!w.isFunction(i))throw new TypeError("visitor must be a function");function f(v){if(v===null)return"";if(w.isDate(v))return v.toISOString();if(!l&&w.isBlob(v))throw new X("Blob is not supported. Use a Buffer instead.");return w.isArrayBuffer(v)||w.isTypedArray(v)?l&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function c(v,b,O){let S=v;if(v&&!O&&typeof v=="object"){if(w.endsWith(b,"{}"))b=r?b:b.slice(0,-2),v=JSON.stringify(v);else if(w.isArray(v)&&Eg(v)||(w.isFileList(v)||w.endsWith(b,"[]"))&&(S=w.toArray(v)))return b=Yc(b),S.forEach(function(j,M){!(w.isUndefined(j)||j===null)&&t.append(o===!0?Na([b],M,s):o===null?b:b+"[]",f(j))}),!1}return us(v)?!0:(t.append(Na(O,b,s),f(v)),!1)}const u=[],m=Object.assign(kg,{defaultVisitor:c,convertValue:f,isVisitable:us});function h(v,b){if(!w.isUndefined(v)){if(u.indexOf(v)!==-1)throw Error("Circular reference detected in "+b.join("."));u.push(v),w.forEach(v,function(S,C){(!(w.isUndefined(S)||S===null)&&i.call(t,S,w.isString(C)?C.trim():C,b,m))===!0&&h(S,b?b.concat(C):[C])}),u.pop()}}if(!w.isObject(e))throw new TypeError("data must be an object");return h(e),t}function Ma(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Qs(e,t){this._pairs=[],e&&hi(e,this,t)}const Jc=Qs.prototype;Jc.append=function(t,n){this._pairs.push([t,n])};Jc.toString=function(t){const n=t?function(r){return t.call(this,r,Ma)}:Ma;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function Ag(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Xc(e,t,n){if(!t)return e;const r=n&&n.encode||Ag,i=n&&n.serialize;let s;if(i?s=i(t,n):s=w.isURLSearchParams(t)?t.toString():new Qs(t,n).toString(r),s){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class Sg{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){w.forEach(this.handlers,function(r){r!==null&&t(r)})}}const La=Sg,Gc={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Og=typeof URLSearchParams<"u"?URLSearchParams:Qs,Cg=typeof FormData<"u"?FormData:null,Rg=typeof Blob<"u"?Blob:null,Pg={isBrowser:!0,classes:{URLSearchParams:Og,FormData:Cg,Blob:Rg},protocols:["http","https","file","blob","url","data"]},Qc=typeof window<"u"&&typeof document<"u",Tg=(e=>Qc&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),Ig=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Ng=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Qc,hasStandardBrowserWebWorkerEnv:Ig,hasStandardBrowserEnv:Tg},Symbol.toStringTag,{value:"Module"})),Ze={...Ng,...Pg};function Mg(e,t){return hi(e,new Ze.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,s){return Ze.isNode&&w.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function Lg(e){return w.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Fg(e){const t={},n=Object.keys(e);let r;const i=n.length;let s;for(r=0;r=n.length;return o=!o&&w.isArray(i)?i.length:o,l?(w.hasOwnProp(i,o)?i[o]=[i[o],r]:i[o]=r,!a):((!i[o]||!w.isObject(i[o]))&&(i[o]=[]),t(n,r,i[o],s)&&w.isArray(i[o])&&(i[o]=Fg(i[o])),!a)}if(w.isFormData(e)&&w.isFunction(e.entries)){const n={};return w.forEachEntry(e,(r,i)=>{t(Lg(r),i,n,0)}),n}return null}function jg(e,t,n){if(w.isString(e))try{return(t||JSON.parse)(e),w.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Zs={transitional:Gc,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,s=w.isObject(t);if(s&&w.isHTMLForm(t)&&(t=new FormData(t)),w.isFormData(t))return i&&i?JSON.stringify(Zc(t)):t;if(w.isArrayBuffer(t)||w.isBuffer(t)||w.isStream(t)||w.isFile(t)||w.isBlob(t))return t;if(w.isArrayBufferView(t))return t.buffer;if(w.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Mg(t,this.formSerializer).toString();if((a=w.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return hi(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return s||i?(n.setContentType("application/json",!1),jg(t)):t}],transformResponse:[function(t){const n=this.transitional||Zs.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(t&&w.isString(t)&&(r&&!this.responseType||i)){const o=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(a){if(o)throw a.name==="SyntaxError"?X.from(a,X.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ze.classes.FormData,Blob:Ze.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};w.forEach(["delete","get","head","post","put","patch"],e=>{Zs.headers[e]={}});const eo=Zs,Dg=w.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),$g=e=>{const t={};let n,r,i;return e&&e.split(` `).forEach(function(o){i=o.indexOf(":"),n=o.substring(0,i).trim().toLowerCase(),r=o.substring(i+1).trim(),!(!n||t[n]&&Dg[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Fa=Symbol("internals");function On(e){return e&&String(e).trim().toLowerCase()}function Nr(e){return e===!1||e==null?e:w.isArray(e)?e.map(Nr):String(e)}function zg(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const Hg=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ti(e,t,n,r,i){if(w.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!w.isString(t)){if(w.isString(r))return t.indexOf(r)!==-1;if(w.isRegExp(r))return r.test(t)}}function Bg(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Ug(e,t){const n=w.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,s,o){return this[r].call(this,t,i,s,o)},configurable:!0})})}class gi{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function s(a,l,f){const c=On(l);if(!c)throw new Error("header name must be a non-empty string");const u=w.findKey(i,c);(!u||i[u]===void 0||f===!0||f===void 0&&i[u]!==!1)&&(i[u||l]=Nr(a))}const o=(a,l)=>w.forEach(a,(f,c)=>s(f,c,l));return w.isPlainObject(t)||t instanceof this.constructor?o(t,n):w.isString(t)&&(t=t.trim())&&!Hg(t)?o($g(t),n):t!=null&&s(n,t,r),this}get(t,n){if(t=On(t),t){const r=w.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return zg(i);if(w.isFunction(n))return n.call(this,i,r);if(w.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=On(t),t){const r=w.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Ti(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function s(o){if(o=On(o),o){const a=w.findKey(r,o);a&&(!n||Ti(r,r[a],a,n))&&(delete r[a],i=!0)}}return w.isArray(t)?t.forEach(s):s(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const s=n[r];(!t||Ti(this,this[s],s,t,!0))&&(delete this[s],i=!0)}return i}normalize(t){const n=this,r={};return w.forEach(this,(i,s)=>{const o=w.findKey(r,s);if(o){n[o]=Nr(i),delete n[s];return}const a=t?Bg(s):String(s).trim();a!==s&&delete n[s],n[a]=Nr(i),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return w.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&w.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` -`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[Fa]=this[Fa]={accessors:{}}).accessors,i=this.prototype;function s(o){const a=On(o);r[a]||(Ug(i,o),r[a]=!0)}return w.isArray(t)?t.forEach(s):s(t),this}}gi.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);w.reduceDescriptors(gi.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});w.freezeMethods(gi);const mt=gi;function Ii(e,t){const n=this||eo,r=t||n,i=mt.from(r.headers);let s=r.data;return w.forEach(e,function(a){s=a.call(n,s,i.normalize(),t?t.status:void 0)}),i.normalize(),s}function ef(e){return!!(e&&e.__CANCEL__)}function ar(e,t,n){X.call(this,e==null?"canceled":e,X.ERR_CANCELED,t,n),this.name="CanceledError"}w.inherits(ar,X,{__CANCEL__:!0});function qg(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new X("Request failed with status code "+n.status,[X.ERR_BAD_REQUEST,X.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const Vg=Ze.hasStandardBrowserEnv?function(){return{write:function(n,r,i,s,o,a){const l=[];l.push(n+"="+encodeURIComponent(r)),w.isNumber(i)&&l.push("expires="+new Date(i).toGMTString()),w.isString(s)&&l.push("path="+s),w.isString(o)&&l.push("domain="+o),a===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function Wg(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Kg(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function tf(e,t){return e&&!Wg(t)?Kg(e,t):t}const Yg=Ze.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function i(s){let o=s;return t&&(n.setAttribute("href",o),o=n.href),n.setAttribute("href",o),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=i(window.location.href),function(o){const a=w.isString(o)?i(o):o;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}();function Jg(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Xg(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,s=0,o;return t=t!==void 0?t:1e3,function(l){const f=Date.now(),c=r[s];o||(o=f),n[i]=l,r[i]=f;let u=s,m=0;for(;u!==i;)m+=n[u++],u=u%e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),f-o{const s=i.loaded,o=i.lengthComputable?i.total:void 0,a=s-n,l=r(a),f=s<=o;n=s;const c={loaded:s,total:o,progress:o?s/o:void 0,bytes:a,rate:l||void 0,estimated:l&&o&&f?(o-s)/l:void 0,event:i};c[t?"download":"upload"]=!0,e(c)}}const Gg=typeof XMLHttpRequest<"u",Qg=Gg&&function(e){return new Promise(function(n,r){let i=e.data;const s=mt.from(e.headers).normalize(),o=e.responseType;let a;function l(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}let f;if(w.isFormData(i)){if(Ze.hasStandardBrowserEnv||Ze.hasStandardBrowserWebWorkerEnv)s.setContentType(!1);else if((f=s.getContentType())!==!1){const[v,...y]=f?f.split(";").map(O=>O.trim()).filter(Boolean):[];s.setContentType([v||"multipart/form-data",...y].join("; "))}}let c=new XMLHttpRequest;if(e.auth){const v=e.auth.username||"",y=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";s.set("Authorization","Basic "+btoa(v+":"+y))}const u=tf(e.baseURL,e.url);c.open(e.method.toUpperCase(),Xc(u,e.params,e.paramsSerializer),!0),c.timeout=e.timeout;function m(){if(!c)return;const v=mt.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),O={data:!o||o==="text"||o==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:v,config:e,request:c};qg(function(S){n(S),l()},function(S){r(S),l()},O),c=null}if("onloadend"in c?c.onloadend=m:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(m)},c.onabort=function(){!c||(r(new X("Request aborted",X.ECONNABORTED,e,c)),c=null)},c.onerror=function(){r(new X("Network Error",X.ERR_NETWORK,e,c)),c=null},c.ontimeout=function(){let y=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const O=e.transitional||Gc;e.timeoutErrorMessage&&(y=e.timeoutErrorMessage),r(new X(y,O.clarifyTimeoutError?X.ETIMEDOUT:X.ECONNABORTED,e,c)),c=null},Ze.hasStandardBrowserEnv){const v=Yg(u)&&e.xsrfCookieName&&Vg.read(e.xsrfCookieName);v&&s.set(e.xsrfHeaderName,v)}i===void 0&&s.setContentType(null),"setRequestHeader"in c&&w.forEach(s.toJSON(),function(y,O){c.setRequestHeader(O,y)}),w.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),o&&o!=="json"&&(c.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&c.addEventListener("progress",ja(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",ja(e.onUploadProgress)),(e.cancelToken||e.signal)&&(a=v=>{!c||(r(!v||v.type?new ar(null,e,c):v),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(a),e.signal&&(e.signal.aborted?a():e.signal.addEventListener("abort",a)));const h=Jg(u);if(h&&Ze.protocols.indexOf(h)===-1){r(new X("Unsupported protocol "+h+":",X.ERR_BAD_REQUEST,e));return}c.send(i||null)})},ds={http:xg,xhr:Qg};w.forEach(ds,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Da=e=>`- ${e}`,Zg=e=>w.isFunction(e)||e===null||e===!1,nf={getAdapter:e=>{e=w.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let s=0;s`adapter ${a} `+(l===!1?"is not supported by the environment":"is not available in the build"));let o=t?s.length>1?`since : +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[Fa]=this[Fa]={accessors:{}}).accessors,i=this.prototype;function s(o){const a=On(o);r[a]||(Ug(i,o),r[a]=!0)}return w.isArray(t)?t.forEach(s):s(t),this}}gi.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);w.reduceDescriptors(gi.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});w.freezeMethods(gi);const mt=gi;function Ii(e,t){const n=this||eo,r=t||n,i=mt.from(r.headers);let s=r.data;return w.forEach(e,function(a){s=a.call(n,s,i.normalize(),t?t.status:void 0)}),i.normalize(),s}function ef(e){return!!(e&&e.__CANCEL__)}function ar(e,t,n){X.call(this,e==null?"canceled":e,X.ERR_CANCELED,t,n),this.name="CanceledError"}w.inherits(ar,X,{__CANCEL__:!0});function qg(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new X("Request failed with status code "+n.status,[X.ERR_BAD_REQUEST,X.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const Vg=Ze.hasStandardBrowserEnv?{write(e,t,n,r,i,s){const o=[e+"="+encodeURIComponent(t)];w.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),w.isString(r)&&o.push("path="+r),w.isString(i)&&o.push("domain="+i),s===!0&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Wg(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Kg(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function tf(e,t){return e&&!Wg(t)?Kg(e,t):t}const Yg=Ze.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function i(s){let o=s;return t&&(n.setAttribute("href",o),o=n.href),n.setAttribute("href",o),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=i(window.location.href),function(o){const a=w.isString(o)?i(o):o;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}();function Jg(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Xg(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,s=0,o;return t=t!==void 0?t:1e3,function(l){const f=Date.now(),c=r[s];o||(o=f),n[i]=l,r[i]=f;let u=s,m=0;for(;u!==i;)m+=n[u++],u=u%e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),f-o{const s=i.loaded,o=i.lengthComputable?i.total:void 0,a=s-n,l=r(a),f=s<=o;n=s;const c={loaded:s,total:o,progress:o?s/o:void 0,bytes:a,rate:l||void 0,estimated:l&&o&&f?(o-s)/l:void 0,event:i};c[t?"download":"upload"]=!0,e(c)}}const Gg=typeof XMLHttpRequest<"u",Qg=Gg&&function(e){return new Promise(function(n,r){let i=e.data;const s=mt.from(e.headers).normalize();let{responseType:o,withXSRFToken:a}=e,l;function f(){e.cancelToken&&e.cancelToken.unsubscribe(l),e.signal&&e.signal.removeEventListener("abort",l)}let c;if(w.isFormData(i)){if(Ze.hasStandardBrowserEnv||Ze.hasStandardBrowserWebWorkerEnv)s.setContentType(!1);else if((c=s.getContentType())!==!1){const[b,...O]=c?c.split(";").map(S=>S.trim()).filter(Boolean):[];s.setContentType([b||"multipart/form-data",...O].join("; "))}}let u=new XMLHttpRequest;if(e.auth){const b=e.auth.username||"",O=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";s.set("Authorization","Basic "+btoa(b+":"+O))}const m=tf(e.baseURL,e.url);u.open(e.method.toUpperCase(),Xc(m,e.params,e.paramsSerializer),!0),u.timeout=e.timeout;function h(){if(!u)return;const b=mt.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),S={data:!o||o==="text"||o==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:b,config:e,request:u};qg(function(j){n(j),f()},function(j){r(j),f()},S),u=null}if("onloadend"in u?u.onloadend=h:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(h)},u.onabort=function(){!u||(r(new X("Request aborted",X.ECONNABORTED,e,u)),u=null)},u.onerror=function(){r(new X("Network Error",X.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let O=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const S=e.transitional||Gc;e.timeoutErrorMessage&&(O=e.timeoutErrorMessage),r(new X(O,S.clarifyTimeoutError?X.ETIMEDOUT:X.ECONNABORTED,e,u)),u=null},Ze.hasStandardBrowserEnv&&(a&&w.isFunction(a)&&(a=a(e)),a||a!==!1&&Yg(m))){const b=e.xsrfHeaderName&&e.xsrfCookieName&&Vg.read(e.xsrfCookieName);b&&s.set(e.xsrfHeaderName,b)}i===void 0&&s.setContentType(null),"setRequestHeader"in u&&w.forEach(s.toJSON(),function(O,S){u.setRequestHeader(S,O)}),w.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),o&&o!=="json"&&(u.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&u.addEventListener("progress",ja(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",ja(e.onUploadProgress)),(e.cancelToken||e.signal)&&(l=b=>{!u||(r(!b||b.type?new ar(null,e,u):b),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(l),e.signal&&(e.signal.aborted?l():e.signal.addEventListener("abort",l)));const v=Jg(m);if(v&&Ze.protocols.indexOf(v)===-1){r(new X("Unsupported protocol "+v+":",X.ERR_BAD_REQUEST,e));return}u.send(i||null)})},ds={http:xg,xhr:Qg};w.forEach(ds,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Da=e=>`- ${e}`,Zg=e=>w.isFunction(e)||e===null||e===!1,nf={getAdapter:e=>{e=w.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let s=0;s`adapter ${a} `+(l===!1?"is not supported by the environment":"is not available in the build"));let o=t?s.length>1?`since : `+s.map(Da).join(` -`):" "+Da(s[0]):"as no adapter specified";throw new X("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return r},adapters:ds};function Ni(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ar(null,e)}function $a(e){return Ni(e),e.headers=mt.from(e.headers),e.data=Ii.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),nf.getAdapter(e.adapter||eo.adapter)(e).then(function(r){return Ni(e),r.data=Ii.call(e,e.transformResponse,r),r.headers=mt.from(r.headers),r},function(r){return ef(r)||(Ni(e),r&&r.response&&(r.response.data=Ii.call(e,e.transformResponse,r.response),r.response.headers=mt.from(r.response.headers))),Promise.reject(r)})}const za=e=>e instanceof mt?e.toJSON():e;function gn(e,t){t=t||{};const n={};function r(f,c,u){return w.isPlainObject(f)&&w.isPlainObject(c)?w.merge.call({caseless:u},f,c):w.isPlainObject(c)?w.merge({},c):w.isArray(c)?c.slice():c}function i(f,c,u){if(w.isUndefined(c)){if(!w.isUndefined(f))return r(void 0,f,u)}else return r(f,c,u)}function s(f,c){if(!w.isUndefined(c))return r(void 0,c)}function o(f,c){if(w.isUndefined(c)){if(!w.isUndefined(f))return r(void 0,f)}else return r(void 0,c)}function a(f,c,u){if(u in t)return r(f,c);if(u in e)return r(void 0,f)}const l={url:s,method:s,data:s,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(f,c)=>i(za(f),za(c),!0)};return w.forEach(Object.keys(Object.assign({},e,t)),function(c){const u=l[c]||i,m=u(e[c],t[c],c);w.isUndefined(m)&&u!==a||(n[c]=m)}),n}const rf="1.6.1",to={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{to[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Ha={};to.transitional=function(t,n,r){function i(s,o){return"[Axios v"+rf+"] Transitional option '"+s+"'"+o+(r?". "+r:"")}return(s,o,a)=>{if(t===!1)throw new X(i(o," has been removed"+(n?" in "+n:"")),X.ERR_DEPRECATED);return n&&!Ha[o]&&(Ha[o]=!0,console.warn(i(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(s,o,a):!0}};function e1(e,t,n){if(typeof e!="object")throw new X("options must be an object",X.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const s=r[i],o=t[s];if(o){const a=e[s],l=a===void 0||o(a,s,e);if(l!==!0)throw new X("option "+s+" must be "+l,X.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new X("Unknown option "+s,X.ERR_BAD_OPTION)}}const ms={assertOptions:e1,validators:to},Et=ms.validators;class Vr{constructor(t){this.defaults=t,this.interceptors={request:new La,response:new La}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=gn(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:s}=n;r!==void 0&&ms.assertOptions(r,{silentJSONParsing:Et.transitional(Et.boolean),forcedJSONParsing:Et.transitional(Et.boolean),clarifyTimeoutError:Et.transitional(Et.boolean)},!1),i!=null&&(w.isFunction(i)?n.paramsSerializer={serialize:i}:ms.assertOptions(i,{encode:Et.function,serialize:Et.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=s&&w.merge(s.common,s[n.method]);s&&w.forEach(["delete","get","head","post","put","patch","common"],v=>{delete s[v]}),n.headers=mt.concat(o,s);const a=[];let l=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(n)===!1||(l=l&&y.synchronous,a.unshift(y.fulfilled,y.rejected))});const f=[];this.interceptors.response.forEach(function(y){f.push(y.fulfilled,y.rejected)});let c,u=0,m;if(!l){const v=[$a.bind(this),void 0];for(v.unshift.apply(v,a),v.push.apply(v,f),m=v.length,c=Promise.resolve(n);u{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](i);r._listeners=null}),this.promise.then=i=>{let s;const o=new Promise(a=>{r.subscribe(a),s=a}).then(i);return o.cancel=function(){r.unsubscribe(s)},o},t(function(s,o,a){r.reason||(r.reason=new ar(s,o,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new no(function(i){t=i}),cancel:t}}}const t1=no;function n1(e){return function(n){return e.apply(null,n)}}function r1(e){return w.isObject(e)&&e.isAxiosError===!0}const ps={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ps).forEach(([e,t])=>{ps[t]=e});const i1=ps;function sf(e){const t=new Mr(e),n=Dc(Mr.prototype.request,t);return w.extend(n,Mr.prototype,t,{allOwnKeys:!0}),w.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return sf(gn(e,i))},n}const ve=sf(eo);ve.Axios=Mr;ve.CanceledError=ar;ve.CancelToken=t1;ve.isCancel=ef;ve.VERSION=rf;ve.toFormData=hi;ve.AxiosError=X;ve.Cancel=ve.CanceledError;ve.all=function(t){return Promise.all(t)};ve.spread=n1;ve.isAxiosError=r1;ve.mergeConfig=gn;ve.AxiosHeaders=mt;ve.formToJSON=e=>Zc(w.isHTMLForm(e)?new FormData(e):e);ve.getAdapter=nf.getAdapter;ve.HttpStatusCode=i1;ve.default=ve;const xn=ve,{Axios:s1,AxiosError:o1,CanceledError:a1,isCancel:l1,CancelToken:c1,VERSION:f1,all:u1,Cancel:d1,isAxiosError:m1,spread:p1,toFormData:h1,AxiosHeaders:g1,HttpStatusCode:v1,formToJSON:b1,getAdapter:y1,mergeConfig:w1}=xn,_1=Object.freeze(Object.defineProperty({__proto__:null,default:xn,Axios:s1,AxiosError:o1,CanceledError:a1,isCancel:l1,CancelToken:c1,VERSION:f1,all:u1,Cancel:d1,isAxiosError:m1,spread:p1,toFormData:h1,AxiosHeaders:g1,HttpStatusCode:v1,formToJSON:b1,getAdapter:y1,mergeConfig:w1},Symbol.toStringTag,{value:"Module"})),vi=(e,t)=>{var n=document.getElementById("toastest");switch(t){case"error":n.className="toast align-items-center border-0 bg-danger";break;case"success":n.className="toast align-items-center border-0 bg-success";break;default:n.className="toast align-items-center border-0 bg-info";break}var r=n.getElementsByClassName("toast-body")[0];r.innerText=e;var i=document.getElementById("toast-stack");i.appendChild(n);var s=new bootstrap.Toast(n);s.show()},ro="https://api.polinetwork.org/staging/v1",x1=async e=>{tt.mainLogger.info("Auth","Invalid token, refreshing...");const t=await xn.get(ro+"/auth/refresh",{headers:{Token:localStorage.getItem("polifemo_refresh_token")}});if(t.status==200)return tt.mainLogger.info("Auth","Token refreshed successfully"),localStorage.setItem("polifemo_access_token",t.data.access_token),e.response.config.headers.Authorization="Bearer "+t.data.access_token,Promise.resolve();vi("Si \xE8 verificato un errore di autenticazione: "+JSON.stringify(t.data.error),"error")},E1=async e=>new Promise((t,n)=>{if(e){t();return}const r=rt();xn.get(ro+"/accounts/me",{headers:{Authorization:"Bearer "+localStorage.getItem("polifemo_access_token")}}).then(i=>{r.userid=i.data.id,r.perms=i.data.permissions,r.authorizedauthors=i.data.authorized_authors,r.perms==""?vi("Non hai il permesso di visualizzare questa pagina","error"):tt.mainLogger.info("Auth","Permissions loaded"),t()}).catch(i=>{tt.mainLogger.error("Auth","Error while loading permissions: "+i),n(i)})}),T0=function(e){var t=!1;const n=rt();var r=JSON.parse(JSON.stringify(n.perms));return r.forEach(i=>{if(i.grant==e)return t=!0,!0}),t};var k1=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function A1(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function S1(e){var t=e.default;if(typeof t=="function"){var n=function(){return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var of={exports:{}};const O1=S1(_1);(function(e,t){(function(n,r){e.exports=r(O1)})(k1,function(n){return function(){var r={593:function(a,l,f){Object.defineProperty(l,"__esModule",{value:!0}),l.resendFailedRequest=l.getRetryInstance=l.unsetCache=l.createRequestQueueInterceptor=l.createRefreshCall=l.shouldInterceptError=l.mergeOptions=l.defaultOptions=void 0;const c=f(300);l.defaultOptions={statusCodes:[401],pauseInstanceWhileRefreshing:!1},l.mergeOptions=function(u,m){return Object.assign(Object.assign(Object.assign({},u),{pauseInstanceWhileRefreshing:m.skipWhileRefreshing}),m)},l.shouldInterceptError=function(u,m,h,v){var y,O;return!!u&&!(!((y=u.config)===null||y===void 0)&&y.skipAuthRefresh)&&!!(m.interceptNetworkError&&!u.response&&u.request.status===0||u.response&&(m!=null&&m.shouldRefresh?m.shouldRefresh(u):(O=m.statusCodes)===null||O===void 0?void 0:O.includes(parseInt(u.response.status))))&&(u.response||(u.response={config:u.config}),!m.pauseInstanceWhileRefreshing||!v.skipInstances.includes(h))},l.createRefreshCall=function(u,m,h){return h.refreshCall||(h.refreshCall=m(u),typeof h.refreshCall.then=="function")?h.refreshCall:(console.warn("axios-auth-refresh requires `refreshTokenCall` to return a promise."),Promise.reject())},l.createRequestQueueInterceptor=function(u,m,h){return m.requestQueueInterceptorId===void 0&&(m.requestQueueInterceptorId=u.interceptors.request.use(v=>m.refreshCall.catch(()=>{throw new c.default.Cancel("Request call failed")}).then(()=>h.onRetry?h.onRetry(v):v))),m.requestQueueInterceptorId},l.unsetCache=function(u,m){u.interceptors.request.eject(m.requestQueueInterceptorId),m.requestQueueInterceptorId=void 0,m.refreshCall=void 0,m.skipInstances=m.skipInstances.filter(h=>h!==u)},l.getRetryInstance=function(u,m){return m.retryInstance||u},l.resendFailedRequest=function(u,m){return u.config.skipAuthRefresh=!0,m(u.response.config)}},300:function(a){a.exports=n}},i={};function s(a){var l=i[a];if(l!==void 0)return l.exports;var f=i[a]={exports:{}};return r[a](f,f.exports,s),f.exports}var o={};return function(){var a=o;Object.defineProperty(a,"__esModule",{value:!0});const l=s(593);a.default=function(f,c,u={}){if(typeof c!="function")throw new Error("axios-auth-refresh requires `refreshAuthCall` to be a function that returns a promise.");const m={skipInstances:[],refreshCall:void 0,requestQueueInterceptorId:void 0};return f.interceptors.response.use(h=>h,h=>{if(u=(0,l.mergeOptions)(l.defaultOptions,u),!(0,l.shouldInterceptError)(h,u,f,m))return Promise.reject(h);u.pauseInstanceWhileRefreshing&&m.skipInstances.push(f);const v=(0,l.createRefreshCall)(h,c,m);return(0,l.createRequestQueueInterceptor)(f,m,u),v.catch(y=>Promise.reject(y)).then(()=>(0,l.resendFailedRequest)(h,(0,l.getRetryInstance)(f,u))).finally(()=>(0,l.unsetCache)(f,m))})}}(),o}()})})(of);const C1=A1(of.exports);const R1=U("header",null,[U("meta",{charset:"utf-8"}),U("meta",{name:"viewport",content:"width=device-width, initial-scale=1"})],-1),P1={id:"navbar",class:"navbar navbar-expand-md navbar-dark bg-dark sticky-top"},T1=U("img",{class:"mb-1 ms-2 small-logo",src:"https://polinetwork.org/img/polinetwork.png"},null,-1),I1=U("a",{class:"navbar-brand ms-2"},"PoliFemo Dashboard",-1),N1=U("button",{class:"navbar-toggler",type:"button","data-bs-toggle":"collapse","data-bs-target":"#navbarSupportedContent","aria-controls":"navbarSupportedContent","aria-expanded":"false","aria-label":"Toggle navigation"},[U("span",{class:"navbar-toggler-icon"})],-1),M1={id:"navbarSupportedContent",class:"collapse navbar-collapse"},L1={class:"ms-2 navbar-nav"},F1={class:"navbar-nav ms-auto me-2"},j1={class:"router-view"},D1=U("div",{"aria-live":"polite","aria-atomic":"true",class:"position-relative"},[U("div",{id:"toast-stack",class:"toast-container bottom-0 end-0 p-3 position-fixed"},[U("div",{id:"toastest",class:"toast align-items-center border-0",role:"alert","aria-live":"assertive","aria-atomic":"true"},[U("div",{class:"d-flex"},[U("div",{class:"toast-body"},[U("p",{id:"toast-text"},"sss")]),U("button",{type:"button",class:"btn-close btn-close-white me-2 m-auto","data-bs-dismiss":"toast","aria-label":"Close"})])])])],-1),$1=U("div",{class:"fixed-bottom w-100 text-muted"},[U("div",{class:"text-center p-4",style:{"background-color":"rgba(0, 0, 0, 0.05)"}},[qn(" by "),U("a",{class:"text-reset fw-bold",href:"https://polinetwork.org"}," PoliNetwork ")])],-1),z1={mounted(){C1(xn,x1),tt.mainLogger.info("App","Version: 4d4e6b56");const e=rt();e.darkModeEnabled=localStorage.getItem("bs.prefers-color-scheme")==="dark",localStorage.getItem("polifemo_access_token")!==null?(tt.mainLogger.info("Auth","Credentials found"),e.loggedIn=!0,document.getElementById("navbar").classList.add("pt-0"),document.getElementById("navbar").classList.add("pb-0"),E1().then(()=>{this.emitter.emit("permissions-refreshed")},t=>{vi("Errore durante il recupero dei permessi","error"),this.$router.push("/")})):window.location.search.indexOf("code=")==-1&&(tt.mainLogger.info("Auth","No token/code found"),(this.$route.path!="/"||window.location.pathname!="/")&&this.$router.push("/"))},methods:{hasPermission:function(e){return rt().perms.includes(e)}}},H1=Object.assign(z1,{__name:"App",setup(e){pp.watch();const t=rt(),{loggedIn:n}=Xl(t);return(r,i)=>{const s=Al("RouterLink");return je(),ut(Je,null,[R1,U("nav",P1,[ge(s,{to:"/",class:"navbar-title"},{default:El(()=>[T1,I1]),_:1}),N1,U("div",M1,[U("ul",L1,[ft(n)?Wi("",!0):(je(),qi(wh,{key:0})),ge(Pa,{dest:"articoli",title:"Articoli",icon:"fa-newspaper",permission:"authors"}),ge(Pa,{dest:"permessi",title:"Permessi",icon:"fa-tag",permission:"permissions"})]),U("ul",F1,[ge(Sh),ft(n)?(je(),qi(Ph,{key:0})):Wi("",!0)])])]),U("div",j1,[ge(ft(Fc))]),D1,$1],64)}}}),B1="modulepreload",U1=function(e){return"/"+e},Ba={},Ua=function(t,n,r){if(!n||n.length===0)return t();const i=document.getElementsByTagName("link");return Promise.all(n.map(s=>{if(s=U1(s),s in Ba)return;Ba[s]=!0;const o=s.endsWith(".css"),a=o?'[rel="stylesheet"]':"";if(!!r)for(let c=i.length-1;c>=0;c--){const u=i[c];if(u.href===s&&(!o||u.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${s}"]${a}`))return;const f=document.createElement("link");if(f.rel=o?"stylesheet":B1,o||(f.as="script",f.crossOrigin=""),f.href=s,document.head.appendChild(f),o)return new Promise((c,u)=>{f.addEventListener("load",c),f.addEventListener("error",()=>u(new Error(`Unable to preload CSS for ${s}`)))})})).then(()=>t())},q1=U("i",{class:"fas fa-right-to-bracket"},null,-1);Ys.add(Th);const V1={mounted(){var e=this.$refs.button;if(e.classList.add("btn-"+this.buttonType),window.location.search.indexOf("code=")>-1){e.innerText="Login in corso...",e.disabled=!0;var t=window.location.search.split("code=")[1].split("&")[0],n=window.location.search.split("state=")[1].split("&")[0];xn.get(ro+"/auth/code?code="+t+"&state="+n).then(function(r){tt.mainLogger.info("Auth","Credentials added to storage"),localStorage.setItem("polifemo_access_token",r.data.access_token),localStorage.setItem("polifemo_refresh_token",r.data.refresh_token),window.location.href=window.location.href.split("?")[0]}).catch(function(r){e.innerText="Errore durante il login. Riprova.",e.disabled=!1,vi("Si \xE8 verificato un errore durante il login","error"),tt.mainLogger.error("Auth","Login error: "+r)})}},methods:{startLogin(){switch(this.loginDestination){case"polimi":window.open("https://login.microsoftonline.com/common/oauth2/v2.0/authorize?client_id=a06b160b-8d5d-4be2-b452-ea3b768998ed&scope=openid%20offline_access&response_type=code&state=10020&login_hint=nome@mail.polimi.it&redirect_uri=https://dashboard.polinetwork.org","_self");break;case"common":window.open("https://login.microsoftonline.com/common/oauth2/v2.0/authorize?client_id=a06b160b-8d5d-4be2-b452-ea3b768998ed&scope=openid%20offline_access&response_type=code&state=10020&prompt=select_account&redirect_uri=https://dashboard.polinetwork.org","_self");break;default:tt.mainLogger.error("Auth","Login destination not recognized: "+loginDestination);break}}}},W1=Object.assign(V1,{__name:"LoginButton",props:{loginDestination:{type:String,required:!0},loginText:{type:String,required:!0},buttonType:{type:String,required:!1,default:"primary"}},setup(e){return(t,n)=>(je(),ut("button",{id:"loginbtn",ref:"button",class:"btn btn-lg btn-block rounded",onClick:n[0]||(n[0]=r=>t.startLogin())},[q1,qn(" \xA0 "+ws(e.loginText),1)],512))}});const K1={components:{LoginButton:W1},setup(){const e=rt(),{loggedIn:t,perms:n,userid:r}=Xl(e);return Ys.add(Lh,jh),{loggedIn:t,perms:n,userid:r}},methods:{externalLogin(){window.open("https://login.microsoftonline.com/common/oauth2/v2.0/authorize?client_id=a06b160b-8d5d-4be2-b452-ea3b768998ed&scope=openid%20offline_access&response_type=code&state=10020&prompt=select_account&redirect_uri=https://dashboard.polinetwork.org","_self")},copyId(){var e=$("#copybtn");e.removeClass("fa-copy"),e.addClass("fa-check"),navigator.clipboard.writeText(this.userid)}}},Y1={class:"d-flex flex-column min-vh-80 justify-content-center align-items-center"},J1={key:0,class:"justify-content-center d-flex flex-column align-items-center"},X1=U("br",null,null,-1),G1={key:1},Q1=U("h1",{class:"display-4"},"Benvenuto",-1),Z1=U("p",{class:"lead"}," Seleziona una delle categorie e scegli l'operazione da eseguire. ",-1),e0=U("br",null,null,-1),t0={class:"text-secondary"},n0=U("i",{id:"copybtn",class:"fa fa-sm fa-copy"},null,-1);function r0(e,t,n,r,i,s){const o=Al("LoginButton");return je(),ut("div",Y1,[r.loggedIn?(je(),ut("div",G1,[Q1,Z1,e0,U("p",t0,[qn(" ID: "),U("a",{onClick:t[1]||(t[1]=a=>s.copyId()),alt:"Copia",class:"nosub text-reset dotted-underline",href:"#"},ws(r.userid),1),n0])])):(je(),ut("div",J1,[ge(o,{loginDestination:"polimi",loginText:"Login con Polimi"}),X1,U("p",null,[qn(" oppure "),U("a",{href:"#",class:"nosub",onClick:t[0]||(t[0]=(...a)=>s.externalLogin&&s.externalLogin(...a))},"accedi con un account esterno")])]))])}const i0=ui(K1,[["render",r0]]),af=jc({history:Sc("/"),routes:[{path:"/",name:"home",component:i0},{path:"/articoli",name:"articoli",component:()=>Ua(()=>import("./ArticlesView.0a2884b6.js"),["assets/ArticlesView.0a2884b6.js","assets/Translations.4c814af6.js","assets/ArticlesView.008c9106.css"])},{path:"/permessi",name:"permessi",component:()=>Ua(()=>import("./PermissionsView.9c2e5753.js"),["assets/PermissionsView.9c2e5753.js","assets/Translations.4c814af6.js"])}]}),s0=["/","/articoli","/permessi"];af.beforeEach((e,t,n)=>{s0.includes(e.path)?n():n("/")});const o0=()=>jc({history:Sc("/"),routes:[]}),a0={install:(e,t={configs:[]})=>{const n=t.modules||[],{router:r=o0()}=t.configs;n.forEach(i=>i.install({router:r})),e.use(r)}};function l0(e){return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(i){i(n)}),(r=e.get("*"))&&r.slice().map(function(i){i(t,n)})}}}function c0(){const e=l0(),t=Od(H1).use(a0,{modules:[],configs:{router:af}}).use(Rd());t.config.globalProperties.emitter=e,t.mount("#app")}c0();export{ro as A,w0 as B,A0 as C,k0 as D,T0 as E,Je as F,Al as G,h0 as H,ge as I,d0 as J,b0 as K,Ih as L,Nh as M,O0 as N,ft as O,_0 as P,S0 as Q,m0 as R,Ua as _,E0 as a,v0 as b,k1 as c,y0 as d,ut as e,P0 as f,A1 as g,U as h,Wi as i,qn as j,xn as k,Ys as l,p0 as m,tt as n,je as o,qi as p,ui as q,u0 as r,vi as s,ws as t,rt as u,g0 as v,f0 as w,R0 as x,C0 as y,x0 as z}; +`):" "+Da(s[0]):"as no adapter specified";throw new X("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return r},adapters:ds};function Ni(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ar(null,e)}function $a(e){return Ni(e),e.headers=mt.from(e.headers),e.data=Ii.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),nf.getAdapter(e.adapter||eo.adapter)(e).then(function(r){return Ni(e),r.data=Ii.call(e,e.transformResponse,r),r.headers=mt.from(r.headers),r},function(r){return ef(r)||(Ni(e),r&&r.response&&(r.response.data=Ii.call(e,e.transformResponse,r.response),r.response.headers=mt.from(r.response.headers))),Promise.reject(r)})}const za=e=>e instanceof mt?e.toJSON():e;function gn(e,t){t=t||{};const n={};function r(f,c,u){return w.isPlainObject(f)&&w.isPlainObject(c)?w.merge.call({caseless:u},f,c):w.isPlainObject(c)?w.merge({},c):w.isArray(c)?c.slice():c}function i(f,c,u){if(w.isUndefined(c)){if(!w.isUndefined(f))return r(void 0,f,u)}else return r(f,c,u)}function s(f,c){if(!w.isUndefined(c))return r(void 0,c)}function o(f,c){if(w.isUndefined(c)){if(!w.isUndefined(f))return r(void 0,f)}else return r(void 0,c)}function a(f,c,u){if(u in t)return r(f,c);if(u in e)return r(void 0,f)}const l={url:s,method:s,data:s,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(f,c)=>i(za(f),za(c),!0)};return w.forEach(Object.keys(Object.assign({},e,t)),function(c){const u=l[c]||i,m=u(e[c],t[c],c);w.isUndefined(m)&&u!==a||(n[c]=m)}),n}const rf="1.6.2",to={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{to[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Ha={};to.transitional=function(t,n,r){function i(s,o){return"[Axios v"+rf+"] Transitional option '"+s+"'"+o+(r?". "+r:"")}return(s,o,a)=>{if(t===!1)throw new X(i(o," has been removed"+(n?" in "+n:"")),X.ERR_DEPRECATED);return n&&!Ha[o]&&(Ha[o]=!0,console.warn(i(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(s,o,a):!0}};function e1(e,t,n){if(typeof e!="object")throw new X("options must be an object",X.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const s=r[i],o=t[s];if(o){const a=e[s],l=a===void 0||o(a,s,e);if(l!==!0)throw new X("option "+s+" must be "+l,X.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new X("Unknown option "+s,X.ERR_BAD_OPTION)}}const ms={assertOptions:e1,validators:to},Et=ms.validators;class Vr{constructor(t){this.defaults=t,this.interceptors={request:new La,response:new La}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=gn(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:s}=n;r!==void 0&&ms.assertOptions(r,{silentJSONParsing:Et.transitional(Et.boolean),forcedJSONParsing:Et.transitional(Et.boolean),clarifyTimeoutError:Et.transitional(Et.boolean)},!1),i!=null&&(w.isFunction(i)?n.paramsSerializer={serialize:i}:ms.assertOptions(i,{encode:Et.function,serialize:Et.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=s&&w.merge(s.common,s[n.method]);s&&w.forEach(["delete","get","head","post","put","patch","common"],v=>{delete s[v]}),n.headers=mt.concat(o,s);const a=[];let l=!0;this.interceptors.request.forEach(function(b){typeof b.runWhen=="function"&&b.runWhen(n)===!1||(l=l&&b.synchronous,a.unshift(b.fulfilled,b.rejected))});const f=[];this.interceptors.response.forEach(function(b){f.push(b.fulfilled,b.rejected)});let c,u=0,m;if(!l){const v=[$a.bind(this),void 0];for(v.unshift.apply(v,a),v.push.apply(v,f),m=v.length,c=Promise.resolve(n);u{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](i);r._listeners=null}),this.promise.then=i=>{let s;const o=new Promise(a=>{r.subscribe(a),s=a}).then(i);return o.cancel=function(){r.unsubscribe(s)},o},t(function(s,o,a){r.reason||(r.reason=new ar(s,o,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new no(function(i){t=i}),cancel:t}}}const t1=no;function n1(e){return function(n){return e.apply(null,n)}}function r1(e){return w.isObject(e)&&e.isAxiosError===!0}const ps={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ps).forEach(([e,t])=>{ps[t]=e});const i1=ps;function sf(e){const t=new Mr(e),n=Dc(Mr.prototype.request,t);return w.extend(n,Mr.prototype,t,{allOwnKeys:!0}),w.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return sf(gn(e,i))},n}const ve=sf(eo);ve.Axios=Mr;ve.CanceledError=ar;ve.CancelToken=t1;ve.isCancel=ef;ve.VERSION=rf;ve.toFormData=hi;ve.AxiosError=X;ve.Cancel=ve.CanceledError;ve.all=function(t){return Promise.all(t)};ve.spread=n1;ve.isAxiosError=r1;ve.mergeConfig=gn;ve.AxiosHeaders=mt;ve.formToJSON=e=>Zc(w.isHTMLForm(e)?new FormData(e):e);ve.getAdapter=nf.getAdapter;ve.HttpStatusCode=i1;ve.default=ve;const xn=ve,{Axios:s1,AxiosError:o1,CanceledError:a1,isCancel:l1,CancelToken:c1,VERSION:f1,all:u1,Cancel:d1,isAxiosError:m1,spread:p1,toFormData:h1,AxiosHeaders:g1,HttpStatusCode:v1,formToJSON:b1,getAdapter:y1,mergeConfig:w1}=xn,_1=Object.freeze(Object.defineProperty({__proto__:null,default:xn,Axios:s1,AxiosError:o1,CanceledError:a1,isCancel:l1,CancelToken:c1,VERSION:f1,all:u1,Cancel:d1,isAxiosError:m1,spread:p1,toFormData:h1,AxiosHeaders:g1,HttpStatusCode:v1,formToJSON:b1,getAdapter:y1,mergeConfig:w1},Symbol.toStringTag,{value:"Module"})),vi=(e,t)=>{var n=document.getElementById("toastest");switch(t){case"error":n.className="toast align-items-center border-0 bg-danger";break;case"success":n.className="toast align-items-center border-0 bg-success";break;default:n.className="toast align-items-center border-0 bg-info";break}var r=n.getElementsByClassName("toast-body")[0];r.innerText=e;var i=document.getElementById("toast-stack");i.appendChild(n);var s=new bootstrap.Toast(n);s.show()},ro="https://api.polinetwork.org/staging/v1",x1=async e=>{tt.mainLogger.info("Auth","Invalid token, refreshing...");const t=await xn.get(ro+"/auth/refresh",{headers:{Token:localStorage.getItem("polifemo_refresh_token")}});if(t.status==200)return tt.mainLogger.info("Auth","Token refreshed successfully"),localStorage.setItem("polifemo_access_token",t.data.access_token),e.response.config.headers.Authorization="Bearer "+t.data.access_token,Promise.resolve();vi("Si \xE8 verificato un errore di autenticazione: "+JSON.stringify(t.data.error),"error")},E1=async e=>new Promise((t,n)=>{if(e){t();return}const r=rt();xn.get(ro+"/accounts/me",{headers:{Authorization:"Bearer "+localStorage.getItem("polifemo_access_token")}}).then(i=>{r.userid=i.data.id,r.perms=i.data.permissions,r.authorizedauthors=i.data.authorized_authors,r.perms==""?vi("Non hai il permesso di visualizzare questa pagina","error"):tt.mainLogger.info("Auth","Permissions loaded"),t()}).catch(i=>{tt.mainLogger.error("Auth","Error while loading permissions: "+i),n(i)})}),T0=function(e){var t=!1;const n=rt();var r=JSON.parse(JSON.stringify(n.perms));return r.forEach(i=>{if(i.grant==e)return t=!0,!0}),t};var k1=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function A1(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function S1(e){var t=e.default;if(typeof t=="function"){var n=function(){return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var of={exports:{}};const O1=S1(_1);(function(e,t){(function(n,r){e.exports=r(O1)})(k1,function(n){return function(){var r={593:function(a,l,f){Object.defineProperty(l,"__esModule",{value:!0}),l.resendFailedRequest=l.getRetryInstance=l.unsetCache=l.createRequestQueueInterceptor=l.createRefreshCall=l.shouldInterceptError=l.mergeOptions=l.defaultOptions=void 0;const c=f(300);l.defaultOptions={statusCodes:[401],pauseInstanceWhileRefreshing:!1},l.mergeOptions=function(u,m){return Object.assign(Object.assign(Object.assign({},u),{pauseInstanceWhileRefreshing:m.skipWhileRefreshing}),m)},l.shouldInterceptError=function(u,m,h,v){var b,O;return!!u&&!(!((b=u.config)===null||b===void 0)&&b.skipAuthRefresh)&&!!(m.interceptNetworkError&&!u.response&&u.request.status===0||u.response&&(m!=null&&m.shouldRefresh?m.shouldRefresh(u):(O=m.statusCodes)===null||O===void 0?void 0:O.includes(parseInt(u.response.status))))&&(u.response||(u.response={config:u.config}),!m.pauseInstanceWhileRefreshing||!v.skipInstances.includes(h))},l.createRefreshCall=function(u,m,h){return h.refreshCall||(h.refreshCall=m(u),typeof h.refreshCall.then=="function")?h.refreshCall:(console.warn("axios-auth-refresh requires `refreshTokenCall` to return a promise."),Promise.reject())},l.createRequestQueueInterceptor=function(u,m,h){return m.requestQueueInterceptorId===void 0&&(m.requestQueueInterceptorId=u.interceptors.request.use(v=>m.refreshCall.catch(()=>{throw new c.default.Cancel("Request call failed")}).then(()=>h.onRetry?h.onRetry(v):v))),m.requestQueueInterceptorId},l.unsetCache=function(u,m){u.interceptors.request.eject(m.requestQueueInterceptorId),m.requestQueueInterceptorId=void 0,m.refreshCall=void 0,m.skipInstances=m.skipInstances.filter(h=>h!==u)},l.getRetryInstance=function(u,m){return m.retryInstance||u},l.resendFailedRequest=function(u,m){return u.config.skipAuthRefresh=!0,m(u.response.config)}},300:function(a){a.exports=n}},i={};function s(a){var l=i[a];if(l!==void 0)return l.exports;var f=i[a]={exports:{}};return r[a](f,f.exports,s),f.exports}var o={};return function(){var a=o;Object.defineProperty(a,"__esModule",{value:!0});const l=s(593);a.default=function(f,c,u={}){if(typeof c!="function")throw new Error("axios-auth-refresh requires `refreshAuthCall` to be a function that returns a promise.");const m={skipInstances:[],refreshCall:void 0,requestQueueInterceptorId:void 0};return f.interceptors.response.use(h=>h,h=>{if(u=(0,l.mergeOptions)(l.defaultOptions,u),!(0,l.shouldInterceptError)(h,u,f,m))return Promise.reject(h);u.pauseInstanceWhileRefreshing&&m.skipInstances.push(f);const v=(0,l.createRefreshCall)(h,c,m);return(0,l.createRequestQueueInterceptor)(f,m,u),v.catch(b=>Promise.reject(b)).then(()=>(0,l.resendFailedRequest)(h,(0,l.getRetryInstance)(f,u))).finally(()=>(0,l.unsetCache)(f,m))})}}(),o}()})})(of);const C1=A1(of.exports);const R1=U("header",null,[U("meta",{charset:"utf-8"}),U("meta",{name:"viewport",content:"width=device-width, initial-scale=1"})],-1),P1={id:"navbar",class:"navbar navbar-expand-md navbar-dark bg-dark sticky-top"},T1=U("img",{class:"mb-1 ms-2 small-logo",src:"https://polinetwork.org/img/polinetwork.png"},null,-1),I1=U("a",{class:"navbar-brand ms-2"},"PoliFemo Dashboard",-1),N1=U("button",{class:"navbar-toggler",type:"button","data-bs-toggle":"collapse","data-bs-target":"#navbarSupportedContent","aria-controls":"navbarSupportedContent","aria-expanded":"false","aria-label":"Toggle navigation"},[U("span",{class:"navbar-toggler-icon"})],-1),M1={id:"navbarSupportedContent",class:"collapse navbar-collapse"},L1={class:"ms-2 navbar-nav"},F1={class:"navbar-nav ms-auto me-2"},j1={class:"router-view"},D1=U("div",{"aria-live":"polite","aria-atomic":"true",class:"position-relative"},[U("div",{id:"toast-stack",class:"toast-container bottom-0 end-0 p-3 position-fixed"},[U("div",{id:"toastest",class:"toast align-items-center border-0",role:"alert","aria-live":"assertive","aria-atomic":"true"},[U("div",{class:"d-flex"},[U("div",{class:"toast-body"},[U("p",{id:"toast-text"},"sss")]),U("button",{type:"button",class:"btn-close btn-close-white me-2 m-auto","data-bs-dismiss":"toast","aria-label":"Close"})])])])],-1),$1=U("div",{class:"fixed-bottom w-100 text-muted"},[U("div",{class:"text-center p-4",style:{"background-color":"rgba(0, 0, 0, 0.05)"}},[qn(" by "),U("a",{class:"text-reset fw-bold",href:"https://polinetwork.org"}," PoliNetwork ")])],-1),z1={mounted(){C1(xn,x1),tt.mainLogger.info("App","Version: 2a19507d");const e=rt();e.darkModeEnabled=localStorage.getItem("bs.prefers-color-scheme")==="dark",localStorage.getItem("polifemo_access_token")!==null?(tt.mainLogger.info("Auth","Credentials found"),e.loggedIn=!0,document.getElementById("navbar").classList.add("pt-0"),document.getElementById("navbar").classList.add("pb-0"),E1().then(()=>{this.emitter.emit("permissions-refreshed")},t=>{vi("Errore durante il recupero dei permessi","error"),this.$router.push("/")})):window.location.search.indexOf("code=")==-1&&(tt.mainLogger.info("Auth","No token/code found"),(this.$route.path!="/"||window.location.pathname!="/")&&this.$router.push("/"))},methods:{hasPermission:function(e){return rt().perms.includes(e)}}},H1=Object.assign(z1,{__name:"App",setup(e){pp.watch();const t=rt(),{loggedIn:n}=Xl(t);return(r,i)=>{const s=Al("RouterLink");return je(),ut(Je,null,[R1,U("nav",P1,[ge(s,{to:"/",class:"navbar-title"},{default:El(()=>[T1,I1]),_:1}),N1,U("div",M1,[U("ul",L1,[ft(n)?Wi("",!0):(je(),qi(wh,{key:0})),ge(Pa,{dest:"articoli",title:"Articoli",icon:"fa-newspaper",permission:"authors"}),ge(Pa,{dest:"permessi",title:"Permessi",icon:"fa-tag",permission:"permissions"})]),U("ul",F1,[ge(Sh),ft(n)?(je(),qi(Ph,{key:0})):Wi("",!0)])])]),U("div",j1,[ge(ft(Fc))]),D1,$1],64)}}}),B1="modulepreload",U1=function(e){return"/"+e},Ba={},Ua=function(t,n,r){if(!n||n.length===0)return t();const i=document.getElementsByTagName("link");return Promise.all(n.map(s=>{if(s=U1(s),s in Ba)return;Ba[s]=!0;const o=s.endsWith(".css"),a=o?'[rel="stylesheet"]':"";if(!!r)for(let c=i.length-1;c>=0;c--){const u=i[c];if(u.href===s&&(!o||u.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${s}"]${a}`))return;const f=document.createElement("link");if(f.rel=o?"stylesheet":B1,o||(f.as="script",f.crossOrigin=""),f.href=s,document.head.appendChild(f),o)return new Promise((c,u)=>{f.addEventListener("load",c),f.addEventListener("error",()=>u(new Error(`Unable to preload CSS for ${s}`)))})})).then(()=>t())},q1=U("i",{class:"fas fa-right-to-bracket"},null,-1);Ys.add(Th);const V1={mounted(){var e=this.$refs.button;if(e.classList.add("btn-"+this.buttonType),window.location.search.indexOf("code=")>-1){e.innerText="Login in corso...",e.disabled=!0;var t=window.location.search.split("code=")[1].split("&")[0],n=window.location.search.split("state=")[1].split("&")[0];xn.get(ro+"/auth/code?code="+t+"&state="+n).then(function(r){tt.mainLogger.info("Auth","Credentials added to storage"),localStorage.setItem("polifemo_access_token",r.data.access_token),localStorage.setItem("polifemo_refresh_token",r.data.refresh_token),window.location.href=window.location.href.split("?")[0]}).catch(function(r){e.innerText="Errore durante il login. Riprova.",e.disabled=!1,vi("Si \xE8 verificato un errore durante il login","error"),tt.mainLogger.error("Auth","Login error: "+r)})}},methods:{startLogin(){switch(this.loginDestination){case"polimi":window.open("https://login.microsoftonline.com/common/oauth2/v2.0/authorize?client_id=a06b160b-8d5d-4be2-b452-ea3b768998ed&scope=openid%20offline_access&response_type=code&state=10020&login_hint=nome@mail.polimi.it&redirect_uri=https://dashboard.polinetwork.org","_self");break;case"common":window.open("https://login.microsoftonline.com/common/oauth2/v2.0/authorize?client_id=a06b160b-8d5d-4be2-b452-ea3b768998ed&scope=openid%20offline_access&response_type=code&state=10020&prompt=select_account&redirect_uri=https://dashboard.polinetwork.org","_self");break;default:tt.mainLogger.error("Auth","Login destination not recognized: "+loginDestination);break}}}},W1=Object.assign(V1,{__name:"LoginButton",props:{loginDestination:{type:String,required:!0},loginText:{type:String,required:!0},buttonType:{type:String,required:!1,default:"primary"}},setup(e){return(t,n)=>(je(),ut("button",{id:"loginbtn",ref:"button",class:"btn btn-lg btn-block rounded",onClick:n[0]||(n[0]=r=>t.startLogin())},[q1,qn(" \xA0 "+ws(e.loginText),1)],512))}});const K1={components:{LoginButton:W1},setup(){const e=rt(),{loggedIn:t,perms:n,userid:r}=Xl(e);return Ys.add(Lh,jh),{loggedIn:t,perms:n,userid:r}},methods:{externalLogin(){window.open("https://login.microsoftonline.com/common/oauth2/v2.0/authorize?client_id=a06b160b-8d5d-4be2-b452-ea3b768998ed&scope=openid%20offline_access&response_type=code&state=10020&prompt=select_account&redirect_uri=https://dashboard.polinetwork.org","_self")},copyId(){var e=$("#copybtn");e.removeClass("fa-copy"),e.addClass("fa-check"),navigator.clipboard.writeText(this.userid)}}},Y1={class:"d-flex flex-column min-vh-80 justify-content-center align-items-center"},J1={key:0,class:"justify-content-center d-flex flex-column align-items-center"},X1=U("br",null,null,-1),G1={key:1},Q1=U("h1",{class:"display-4"},"Benvenuto",-1),Z1=U("p",{class:"lead"}," Seleziona una delle categorie e scegli l'operazione da eseguire. ",-1),e0=U("br",null,null,-1),t0={class:"text-secondary"},n0=U("i",{id:"copybtn",class:"fa fa-sm fa-copy"},null,-1);function r0(e,t,n,r,i,s){const o=Al("LoginButton");return je(),ut("div",Y1,[r.loggedIn?(je(),ut("div",G1,[Q1,Z1,e0,U("p",t0,[qn(" ID: "),U("a",{onClick:t[1]||(t[1]=a=>s.copyId()),alt:"Copia",class:"nosub text-reset dotted-underline",href:"#"},ws(r.userid),1),n0])])):(je(),ut("div",J1,[ge(o,{loginDestination:"polimi",loginText:"Login con Polimi"}),X1,U("p",null,[qn(" oppure "),U("a",{href:"#",class:"nosub",onClick:t[0]||(t[0]=(...a)=>s.externalLogin&&s.externalLogin(...a))},"accedi con un account esterno")])]))])}const i0=ui(K1,[["render",r0]]),af=jc({history:Sc("/"),routes:[{path:"/",name:"home",component:i0},{path:"/articoli",name:"articoli",component:()=>Ua(()=>import("./ArticlesView.a1f6f583.js"),["assets/ArticlesView.a1f6f583.js","assets/Translations.4c814af6.js","assets/ArticlesView.008c9106.css"])},{path:"/permessi",name:"permessi",component:()=>Ua(()=>import("./PermissionsView.17fce729.js"),["assets/PermissionsView.17fce729.js","assets/Translations.4c814af6.js"])}]}),s0=["/","/articoli","/permessi"];af.beforeEach((e,t,n)=>{s0.includes(e.path)?n():n("/")});const o0=()=>jc({history:Sc("/"),routes:[]}),a0={install:(e,t={configs:[]})=>{const n=t.modules||[],{router:r=o0()}=t.configs;n.forEach(i=>i.install({router:r})),e.use(r)}};function l0(e){return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(i){i(n)}),(r=e.get("*"))&&r.slice().map(function(i){i(t,n)})}}}function c0(){const e=l0(),t=Od(H1).use(a0,{modules:[],configs:{router:af}}).use(Rd());t.config.globalProperties.emitter=e,t.mount("#app")}c0();export{ro as A,w0 as B,A0 as C,k0 as D,T0 as E,Je as F,Al as G,h0 as H,ge as I,d0 as J,b0 as K,Ih as L,Nh as M,O0 as N,ft as O,_0 as P,S0 as Q,m0 as R,Ua as _,E0 as a,v0 as b,k1 as c,y0 as d,ut as e,P0 as f,A1 as g,U as h,Wi as i,qn as j,xn as k,Ys as l,p0 as m,tt as n,je as o,qi as p,ui as q,u0 as r,vi as s,ws as t,rt as u,g0 as v,f0 as w,R0 as x,C0 as y,x0 as z}; diff --git a/index.html b/index.html index 357f91c..c20f6f7 100644 --- a/index.html +++ b/index.html @@ -37,7 +37,7 @@ } })(window.location); - +