@zaide6137/m3-components-web 0.1.37 → 0.1.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,124 @@
1
+ require("./index.css");
2
+ 'use strict';var chunk52NSALGS_js=require('../chunk-52NSALGS.js');require('../chunk-5M4SBNJL.js');var chunkLCX5IU2V_js=require('../chunk-LCX5IU2V.js'),framerMotion=require('framer-motion'),react=require('react'),reactBigCalendar=require('react-big-calendar'),jsxRuntime=require('react/jsx-runtime');var Ar=chunkLCX5IU2V_js.b((Or,gt)=>{(function(a,t){typeof Or=="object"&&typeof gt<"u"?gt.exports=t():typeof define=="function"&&define.amd?define(t):a.moment=t();})(Or,(function(){var a;function t(){return a.apply(null,arguments)}function o(e){a=e;}function l(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function c(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function d(e,r){return Object.prototype.hasOwnProperty.call(e,r)}function h(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var r;for(r in e)if(d(e,r))return false;return true}function g(e){return e===void 0}function w(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function k(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function P(e,r){var n=[],i,s=e.length;for(i=0;i<s;++i)n.push(r(e[i],i));return n}function S(e,r){for(var n in r)d(r,n)&&(e[n]=r[n]);return d(r,"toString")&&(e.toString=r.toString),d(r,"valueOf")&&(e.valueOf=r.valueOf),e}function C(e,r,n,i){return la(e,r,n,i,true).utc()}function _(){return {empty:false,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:false,invalidEra:null,invalidMonth:null,invalidFormat:false,userInvalidated:false,iso:false,parsedDateParts:[],era:null,meridiem:null,rfc2822:false,weekdayMismatch:false}}function m(e){return e._pf==null&&(e._pf=_()),e._pf}var v;Array.prototype.some?v=Array.prototype.some:v=function(e){var r=Object(this),n=r.length>>>0,i;for(i=0;i<n;i++)if(i in r&&e.call(this,r[i],i,r))return true;return false};function R(e){var r=null,n=false,i=e._d&&!isNaN(e._d.getTime());if(i&&(r=m(e),n=v.call(r.parsedDateParts,function(s){return s!=null}),i=r.overflow<0&&!r.empty&&!r.invalidEra&&!r.invalidMonth&&!r.invalidWeekday&&!r.weekdayMismatch&&!r.nullInput&&!r.invalidFormat&&!r.userInvalidated&&(!r.meridiem||r.meridiem&&n),e._strict&&(i=i&&r.charsLeftOver===0&&r.unusedTokens.length===0&&r.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=i;else return i;return e._isValid}function U(e){var r=C(NaN);return e!=null?S(m(r),e):m(r).userInvalidated=true,r}var X=t.momentProperties=[],Z=false;function te(e,r){var n,i,s,u=X.length;if(g(r._isAMomentObject)||(e._isAMomentObject=r._isAMomentObject),g(r._i)||(e._i=r._i),g(r._f)||(e._f=r._f),g(r._l)||(e._l=r._l),g(r._strict)||(e._strict=r._strict),g(r._tzm)||(e._tzm=r._tzm),g(r._isUTC)||(e._isUTC=r._isUTC),g(r._offset)||(e._offset=r._offset),g(r._pf)||(e._pf=m(r)),g(r._locale)||(e._locale=r._locale),u>0)for(n=0;n<u;n++)i=X[n],s=r[i],g(s)||(e[i]=s);return e}function V(e){te(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),Z===false&&(Z=true,t.updateOffset(this),Z=false);}function j(e){return e instanceof V||e!=null&&e._isAMomentObject!=null}function q(e){t.suppressDeprecationWarnings===false&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e);}function I(e,r){var n=true;return S(function(){if(t.deprecationHandler!=null&&t.deprecationHandler(null,e),n){var i=[],s,u,p,D=arguments.length;for(u=0;u<D;u++){if(s="",typeof arguments[u]=="object"){s+=`
3
+ [`+u+"] ";for(p in arguments[0])d(arguments[0],p)&&(s+=p+": "+arguments[0][p]+", ");s=s.slice(0,-2);}else s=arguments[u];i.push(s);}q(e+`
4
+ Arguments: `+Array.prototype.slice.call(i).join("")+`
5
+ `+new Error().stack),n=false;}return r.apply(this,arguments)},r)}var Q={};function be(e,r){t.deprecationHandler!=null&&t.deprecationHandler(e,r),Q[e]||(q(r),Q[e]=true);}t.suppressDeprecationWarnings=false,t.deprecationHandler=null;function ie(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function he(e){var r,n;for(n in e)d(e,n)&&(r=e[n],ie(r)?this[n]=r:this["_"+n]=r);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source);}function we(e,r){var n=S({},e),i;for(i in r)d(r,i)&&(c(e[i])&&c(r[i])?(n[i]={},S(n[i],e[i]),S(n[i],r[i])):r[i]!=null?n[i]=r[i]:delete n[i]);for(i in e)d(e,i)&&!d(r,i)&&c(e[i])&&(n[i]=S({},n[i]));return n}function W(e){e!=null&&this.set(e);}var me;Object.keys?me=Object.keys:me=function(e){var r,n=[];for(r in e)d(e,r)&&n.push(r);return n};var ve={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function tt(e,r,n){var i=this._calendar[e]||this._calendar.sameElse;return ie(i)?i.call(r,n):i}function pe(e,r,n){var i=""+Math.abs(e),s=r-i.length,u=e>=0;return (u?n?"+":"":"-")+Math.pow(10,Math.max(0,s)).toString().substr(1)+i}var ze=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,je=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Ge={},Ae={};function A(e,r,n,i){var s=i;typeof i=="string"&&(s=function(){return this[i]()}),e&&(Ae[e]=s),r&&(Ae[r[0]]=function(){return pe(s.apply(this,arguments),r[1],r[2])}),n&&(Ae[n]=function(){return this.localeData().ordinal(s.apply(this,arguments),e)});}function nr(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function ir(e){var r=e.match(ze),n,i;for(n=0,i=r.length;n<i;n++)Ae[r[n]]?r[n]=Ae[r[n]]:r[n]=nr(r[n]);return function(s){var u="",p;for(p=0;p<i;p++)u+=ie(r[p])?r[p].call(s,e):r[p];return u}}function rt(e,r){return e.isValid()?(r=Ft(r,e.localeData()),Ge[r]=Ge[r]||ir(r),Ge[r](e)):e.localeData().invalidDate()}function Ft(e,r){var n=5;function i(s){return r.longDateFormat(s)||s}for(je.lastIndex=0;n>=0&&je.test(e);)e=e.replace(je,i),je.lastIndex=0,n-=1;return e}var or={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function en(e){var r=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return r||!n?r:(this._longDateFormat[e]=n.match(ze).map(function(i){return i==="MMMM"||i==="MM"||i==="DD"||i==="dddd"?i.slice(1):i}).join(""),this._longDateFormat[e])}var tn="Invalid date";function rn(){return this._invalidDate}var an="%d",nn=/\d{1,2}/;function on(e){return this._ordinal.replace("%d",e)}var sn={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function ln(e,r,n,i){var s=this._relativeTime[n];return ie(s)?s(e,r,n,i):s.replace(/%d/i,e)}function cn(e,r){var n=this._relativeTime[e>0?"future":"past"];return ie(n)?n(r):n.replace(/%s/i,r)}var Br={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function Pe(e){return typeof e=="string"?Br[e]||Br[e.toLowerCase()]:void 0}function sr(e){var r={},n,i;for(i in e)d(e,i)&&(n=Pe(i),n&&(r[n]=e[i]));return r}var un={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function dn(e){var r=[],n;for(n in e)d(e,n)&&r.push({unit:n,priority:un[n]});return r.sort(function(i,s){return i.priority-s.priority}),r}var Ur=/\d/,xe=/\d\d/,Wr=/\d{3}/,lr=/\d{4}/,Rt=/[+-]?\d{6}/,re=/\d\d?/,zr=/\d\d\d\d?/,jr=/\d\d\d\d\d\d?/,Yt=/\d{1,3}/,cr=/\d{1,4}/,Et=/[+-]?\d{1,6}/,lt=/\d+/,Lt=/[+-]?\d+/,hn=/Z|[+-]\d\d:?\d\d/gi,It=/Z|[+-]\d\d(?::?\d\d)?/gi,fn=/[+-]?\d+(\.\d{1,3})?/,vt=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,ct=/^[1-9]\d?/,ur=/^([1-9]\d|\d)/,Ht;Ht={};function M(e,r,n){Ht[e]=ie(r)?r:function(i,s){return i&&n?n:r};}function mn(e,r){return d(Ht,e)?Ht[e](r._strict,r._locale):new RegExp(pn(e))}function pn(e){return Ne(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(r,n,i,s,u){return n||i||s||u}))}function Ne(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Ce(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function z(e){var r=+e,n=0;return r!==0&&isFinite(r)&&(n=Ce(r)),n}var dr={};function ee(e,r){var n,i=r,s;for(typeof e=="string"&&(e=[e]),w(r)&&(i=function(u,p){p[r]=z(u);}),s=e.length,n=0;n<s;n++)dr[e[n]]=i;}function kt(e,r){ee(e,function(n,i,s,u){s._w=s._w||{},r(n,s._w,s,u);});}function gn(e,r,n){r!=null&&d(dr,e)&&dr[e](r,n._a,n,e);}function Vt(e){return e%4===0&&e%100!==0||e%400===0}var ge=0,Fe=1,Te=2,ce=3,_e=4,Re=5,at=6,yn=7,bn=8;A("Y",0,0,function(){var e=this.year();return e<=9999?pe(e,4):"+"+e}),A(0,["YY",2],0,function(){return this.year()%100}),A(0,["YYYY",4],0,"year"),A(0,["YYYYY",5],0,"year"),A(0,["YYYYYY",6,true],0,"year"),M("Y",Lt),M("YY",re,xe),M("YYYY",cr,lr),M("YYYYY",Et,Rt),M("YYYYYY",Et,Rt),ee(["YYYYY","YYYYYY"],ge),ee("YYYY",function(e,r){r[ge]=e.length===2?t.parseTwoDigitYear(e):z(e);}),ee("YY",function(e,r){r[ge]=t.parseTwoDigitYear(e);}),ee("Y",function(e,r){r[ge]=parseInt(e,10);});function xt(e){return Vt(e)?366:365}t.parseTwoDigitYear=function(e){return z(e)+(z(e)>68?1900:2e3)};var Gr=ut("FullYear",true);function wn(){return Vt(this.year())}function ut(e,r){return function(n){return n!=null?($r(this,e,n),t.updateOffset(this,r),this):St(this,e)}}function St(e,r){if(!e.isValid())return NaN;var n=e._d,i=e._isUTC;switch(r){case "Milliseconds":return i?n.getUTCMilliseconds():n.getMilliseconds();case "Seconds":return i?n.getUTCSeconds():n.getSeconds();case "Minutes":return i?n.getUTCMinutes():n.getMinutes();case "Hours":return i?n.getUTCHours():n.getHours();case "Date":return i?n.getUTCDate():n.getDate();case "Day":return i?n.getUTCDay():n.getDay();case "Month":return i?n.getUTCMonth():n.getMonth();case "FullYear":return i?n.getUTCFullYear():n.getFullYear();default:return NaN}}function $r(e,r,n){var i,s,u,p,D;if(!(!e.isValid()||isNaN(n))){switch(i=e._d,s=e._isUTC,r){case "Milliseconds":return void(s?i.setUTCMilliseconds(n):i.setMilliseconds(n));case "Seconds":return void(s?i.setUTCSeconds(n):i.setSeconds(n));case "Minutes":return void(s?i.setUTCMinutes(n):i.setMinutes(n));case "Hours":return void(s?i.setUTCHours(n):i.setHours(n));case "Date":return void(s?i.setUTCDate(n):i.setDate(n));case "FullYear":break;default:return}u=n,p=e.month(),D=e.date(),D=D===29&&p===1&&!Vt(u)?28:D,s?i.setUTCFullYear(u,p,D):i.setFullYear(u,p,D);}}function vn(e){return e=Pe(e),ie(this[e])?this[e]():this}function kn(e,r){if(typeof e=="object"){e=sr(e);var n=dn(e),i,s=n.length;for(i=0;i<s;i++)this[n[i].unit](e[n[i].unit]);}else if(e=Pe(e),ie(this[e]))return this[e](r);return this}function xn(e,r){return (e%r+r)%r}var se;Array.prototype.indexOf?se=Array.prototype.indexOf:se=function(e){var r;for(r=0;r<this.length;++r)if(this[r]===e)return r;return -1};function hr(e,r){if(isNaN(e)||isNaN(r))return NaN;var n=xn(r,12);return e+=(r-n)/12,n===1?Vt(e)?29:28:31-n%7%2}A("M",["MM",2],"Mo",function(){return this.month()+1}),A("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),A("MMMM",0,0,function(e){return this.localeData().months(this,e)}),M("M",re,ct),M("MM",re,xe),M("MMM",function(e,r){return r.monthsShortRegex(e)}),M("MMMM",function(e,r){return r.monthsRegex(e)}),ee(["M","MM"],function(e,r){r[Fe]=z(e)-1;}),ee(["MMM","MMMM"],function(e,r,n,i){var s=n._locale.monthsParse(e,i,n._strict);s!=null?r[Fe]=s:m(n).invalidMonth=e;});var Sn="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),qr="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Kr=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Pn=vt,Cn=vt;function _n(e,r){return e?l(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Kr).test(r)?"format":"standalone"][e.month()]:l(this._months)?this._months:this._months.standalone}function Dn(e,r){return e?l(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Kr.test(r)?"format":"standalone"][e.month()]:l(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function Mn(e,r,n){var i,s,u,p=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)u=C([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(u,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(u,"").toLocaleLowerCase();return n?r==="MMM"?(s=se.call(this._shortMonthsParse,p),s!==-1?s:null):(s=se.call(this._longMonthsParse,p),s!==-1?s:null):r==="MMM"?(s=se.call(this._shortMonthsParse,p),s!==-1?s:(s=se.call(this._longMonthsParse,p),s!==-1?s:null)):(s=se.call(this._longMonthsParse,p),s!==-1?s:(s=se.call(this._shortMonthsParse,p),s!==-1?s:null))}function Tn(e,r,n){var i,s,u;if(this._monthsParseExact)return Mn.call(this,e,r,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(s=C([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(s,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(s,"").replace(".","")+"$","i")),!n&&!this._monthsParse[i]&&(u="^"+this.months(s,"")+"|^"+this.monthsShort(s,""),this._monthsParse[i]=new RegExp(u.replace(".",""),"i")),n&&r==="MMMM"&&this._longMonthsParse[i].test(e))return i;if(n&&r==="MMM"&&this._shortMonthsParse[i].test(e))return i;if(!n&&this._monthsParse[i].test(e))return i}}function Zr(e,r){if(!e.isValid())return e;if(typeof r=="string"){if(/^\d+$/.test(r))r=z(r);else if(r=e.localeData().monthsParse(r),!w(r))return e}var n=r,i=e.date();return i=i<29?i:Math.min(i,hr(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,i):e._d.setMonth(n,i),e}function Xr(e){return e!=null?(Zr(this,e),t.updateOffset(this,true),this):St(this,"Month")}function On(){return hr(this.year(),this.month())}function An(e){return this._monthsParseExact?(d(this,"_monthsRegex")||Jr.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(d(this,"_monthsShortRegex")||(this._monthsShortRegex=Pn),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function Nn(e){return this._monthsParseExact?(d(this,"_monthsRegex")||Jr.call(this),e?this._monthsStrictRegex:this._monthsRegex):(d(this,"_monthsRegex")||(this._monthsRegex=Cn),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function Jr(){function e(E,G){return G.length-E.length}var r=[],n=[],i=[],s,u,p,D;for(s=0;s<12;s++)u=C([2e3,s]),p=Ne(this.monthsShort(u,"")),D=Ne(this.months(u,"")),r.push(p),n.push(D),i.push(D),i.push(p);r.sort(e),n.sort(e),i.sort(e),this._monthsRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i");}function Fn(e,r,n,i,s,u,p){var D;return e<100&&e>=0?(D=new Date(e+400,r,n,i,s,u,p),isFinite(D.getFullYear())&&D.setFullYear(e)):D=new Date(e,r,n,i,s,u,p),D}function Pt(e){var r,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,r=new Date(Date.UTC.apply(null,n)),isFinite(r.getUTCFullYear())&&r.setUTCFullYear(e)):r=new Date(Date.UTC.apply(null,arguments)),r}function Bt(e,r,n){var i=7+r-n,s=(7+Pt(e,0,i).getUTCDay()-r)%7;return -s+i-1}function Qr(e,r,n,i,s){var u=(7+n-i)%7,p=Bt(e,i,s),D=1+7*(r-1)+u+p,E,G;return D<=0?(E=e-1,G=xt(E)+D):D>xt(e)?(E=e+1,G=D-xt(e)):(E=e,G=D),{year:E,dayOfYear:G}}function Ct(e,r,n){var i=Bt(e.year(),r,n),s=Math.floor((e.dayOfYear()-i-1)/7)+1,u,p;return s<1?(p=e.year()-1,u=s+Ye(p,r,n)):s>Ye(e.year(),r,n)?(u=s-Ye(e.year(),r,n),p=e.year()+1):(p=e.year(),u=s),{week:u,year:p}}function Ye(e,r,n){var i=Bt(e,r,n),s=Bt(e+1,r,n);return (xt(e)-i+s)/7}A("w",["ww",2],"wo","week"),A("W",["WW",2],"Wo","isoWeek"),M("w",re,ct),M("ww",re,xe),M("W",re,ct),M("WW",re,xe),kt(["w","ww","W","WW"],function(e,r,n,i){r[i.substr(0,1)]=z(e);});function Rn(e){return Ct(e,this._week.dow,this._week.doy).week}var Yn={dow:0,doy:6};function En(){return this._week.dow}function Ln(){return this._week.doy}function In(e){var r=this.localeData().week(this);return e==null?r:this.add((e-r)*7,"d")}function Hn(e){var r=Ct(this,1,4).week;return e==null?r:this.add((e-r)*7,"d")}A("d",0,"do","day"),A("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),A("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),A("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),A("e",0,0,"weekday"),A("E",0,0,"isoWeekday"),M("d",re),M("e",re),M("E",re),M("dd",function(e,r){return r.weekdaysMinRegex(e)}),M("ddd",function(e,r){return r.weekdaysShortRegex(e)}),M("dddd",function(e,r){return r.weekdaysRegex(e)}),kt(["dd","ddd","dddd"],function(e,r,n,i){var s=n._locale.weekdaysParse(e,i,n._strict);s!=null?r.d=s:m(n).invalidWeekday=e;}),kt(["d","e","E"],function(e,r,n,i){r[i]=z(e);});function Vn(e,r){return typeof e!="string"?e:isNaN(e)?(e=r.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function Bn(e,r){return typeof e=="string"?r.weekdaysParse(e)%7||7:isNaN(e)?null:e}function fr(e,r){return e.slice(r,7).concat(e.slice(0,r))}var Un="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),ea="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Wn="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),zn=vt,jn=vt,Gn=vt;function $n(e,r){var n=l(this._weekdays)?this._weekdays:this._weekdays[e&&e!==true&&this._weekdays.isFormat.test(r)?"format":"standalone"];return e===true?fr(n,this._week.dow):e?n[e.day()]:n}function qn(e){return e===true?fr(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Kn(e){return e===true?fr(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Zn(e,r,n){var i,s,u,p=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)u=C([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(u,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(u,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(u,"").toLocaleLowerCase();return n?r==="dddd"?(s=se.call(this._weekdaysParse,p),s!==-1?s:null):r==="ddd"?(s=se.call(this._shortWeekdaysParse,p),s!==-1?s:null):(s=se.call(this._minWeekdaysParse,p),s!==-1?s:null):r==="dddd"?(s=se.call(this._weekdaysParse,p),s!==-1||(s=se.call(this._shortWeekdaysParse,p),s!==-1)?s:(s=se.call(this._minWeekdaysParse,p),s!==-1?s:null)):r==="ddd"?(s=se.call(this._shortWeekdaysParse,p),s!==-1||(s=se.call(this._weekdaysParse,p),s!==-1)?s:(s=se.call(this._minWeekdaysParse,p),s!==-1?s:null)):(s=se.call(this._minWeekdaysParse,p),s!==-1||(s=se.call(this._weekdaysParse,p),s!==-1)?s:(s=se.call(this._shortWeekdaysParse,p),s!==-1?s:null))}function Xn(e,r,n){var i,s,u;if(this._weekdaysParseExact)return Zn.call(this,e,r,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(s=C([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(s,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(s,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(s,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(u="^"+this.weekdays(s,"")+"|^"+this.weekdaysShort(s,"")+"|^"+this.weekdaysMin(s,""),this._weekdaysParse[i]=new RegExp(u.replace(".",""),"i")),n&&r==="dddd"&&this._fullWeekdaysParse[i].test(e))return i;if(n&&r==="ddd"&&this._shortWeekdaysParse[i].test(e))return i;if(n&&r==="dd"&&this._minWeekdaysParse[i].test(e))return i;if(!n&&this._weekdaysParse[i].test(e))return i}}function Jn(e){if(!this.isValid())return e!=null?this:NaN;var r=St(this,"Day");return e!=null?(e=Vn(e,this.localeData()),this.add(e-r,"d")):r}function Qn(e){if(!this.isValid())return e!=null?this:NaN;var r=(this.day()+7-this.localeData()._week.dow)%7;return e==null?r:this.add(e-r,"d")}function ei(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var r=Bn(e,this.localeData());return this.day(this.day()%7?r:r-7)}else return this.day()||7}function ti(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||mr.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(d(this,"_weekdaysRegex")||(this._weekdaysRegex=zn),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function ri(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||mr.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(d(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=jn),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function ai(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||mr.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(d(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Gn),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function mr(){function e(ye,Ve){return Ve.length-ye.length}var r=[],n=[],i=[],s=[],u,p,D,E,G;for(u=0;u<7;u++)p=C([2e3,1]).day(u),D=Ne(this.weekdaysMin(p,"")),E=Ne(this.weekdaysShort(p,"")),G=Ne(this.weekdays(p,"")),r.push(D),n.push(E),i.push(G),s.push(D),s.push(E),s.push(G);r.sort(e),n.sort(e),i.sort(e),s.sort(e),this._weekdaysRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+r.join("|")+")","i");}function pr(){return this.hours()%12||12}function ni(){return this.hours()||24}A("H",["HH",2],0,"hour"),A("h",["hh",2],0,pr),A("k",["kk",2],0,ni),A("hmm",0,0,function(){return ""+pr.apply(this)+pe(this.minutes(),2)}),A("hmmss",0,0,function(){return ""+pr.apply(this)+pe(this.minutes(),2)+pe(this.seconds(),2)}),A("Hmm",0,0,function(){return ""+this.hours()+pe(this.minutes(),2)}),A("Hmmss",0,0,function(){return ""+this.hours()+pe(this.minutes(),2)+pe(this.seconds(),2)});function ta(e,r){A(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),r)});}ta("a",true),ta("A",false);function ra(e,r){return r._meridiemParse}M("a",ra),M("A",ra),M("H",re,ur),M("h",re,ct),M("k",re,ct),M("HH",re,xe),M("hh",re,xe),M("kk",re,xe),M("hmm",zr),M("hmmss",jr),M("Hmm",zr),M("Hmmss",jr),ee(["H","HH"],ce),ee(["k","kk"],function(e,r,n){var i=z(e);r[ce]=i===24?0:i;}),ee(["a","A"],function(e,r,n){n._isPm=n._locale.isPM(e),n._meridiem=e;}),ee(["h","hh"],function(e,r,n){r[ce]=z(e),m(n).bigHour=true;}),ee("hmm",function(e,r,n){var i=e.length-2;r[ce]=z(e.substr(0,i)),r[_e]=z(e.substr(i)),m(n).bigHour=true;}),ee("hmmss",function(e,r,n){var i=e.length-4,s=e.length-2;r[ce]=z(e.substr(0,i)),r[_e]=z(e.substr(i,2)),r[Re]=z(e.substr(s)),m(n).bigHour=true;}),ee("Hmm",function(e,r,n){var i=e.length-2;r[ce]=z(e.substr(0,i)),r[_e]=z(e.substr(i));}),ee("Hmmss",function(e,r,n){var i=e.length-4,s=e.length-2;r[ce]=z(e.substr(0,i)),r[_e]=z(e.substr(i,2)),r[Re]=z(e.substr(s));});function ii(e){return (e+"").toLowerCase().charAt(0)==="p"}var oi=/[ap]\.?m?\.?/i,si=ut("Hours",true);function li(e,r,n){return e>11?n?"pm":"PM":n?"am":"AM"}var aa={calendar:ve,longDateFormat:or,invalidDate:tn,ordinal:an,dayOfMonthOrdinalParse:nn,relativeTime:sn,months:Sn,monthsShort:qr,week:Yn,weekdays:Un,weekdaysMin:Wn,weekdaysShort:ea,meridiemParse:oi},ne={},_t={},Dt;function ci(e,r){var n,i=Math.min(e.length,r.length);for(n=0;n<i;n+=1)if(e[n]!==r[n])return n;return i}function na(e){return e&&e.toLowerCase().replace("_","-")}function ui(e){for(var r=0,n,i,s,u;r<e.length;){for(u=na(e[r]).split("-"),n=u.length,i=na(e[r+1]),i=i?i.split("-"):null;n>0;){if(s=Ut(u.slice(0,n).join("-")),s)return s;if(i&&i.length>=n&&ci(u,i)>=n-1)break;n--;}r++;}return Dt}function di(e){return !!(e&&e.match("^[^/\\\\]*$"))}function Ut(e){var r=null,n;if(ne[e]===void 0&&typeof gt<"u"&&gt&&gt.exports&&di(e))try{r=Dt._abbr,n=chunkLCX5IU2V_js.a,n("./locale/"+e),$e(r);}catch{ne[e]=null;}return ne[e]}function $e(e,r){var n;return e&&(g(r)?n=Ee(e):n=gr(e,r),n?Dt=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Dt._abbr}function gr(e,r){if(r!==null){var n,i=aa;if(r.abbr=e,ne[e]!=null)be("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=ne[e]._config;else if(r.parentLocale!=null)if(ne[r.parentLocale]!=null)i=ne[r.parentLocale]._config;else if(n=Ut(r.parentLocale),n!=null)i=n._config;else return _t[r.parentLocale]||(_t[r.parentLocale]=[]),_t[r.parentLocale].push({name:e,config:r}),null;return ne[e]=new W(we(i,r)),_t[e]&&_t[e].forEach(function(s){gr(s.name,s.config);}),$e(e),ne[e]}else return delete ne[e],null}function hi(e,r){if(r!=null){var n,i,s=aa;ne[e]!=null&&ne[e].parentLocale!=null?ne[e].set(we(ne[e]._config,r)):(i=Ut(e),i!=null&&(s=i._config),r=we(s,r),i==null&&(r.abbr=e),n=new W(r),n.parentLocale=ne[e],ne[e]=n),$e(e);}else ne[e]!=null&&(ne[e].parentLocale!=null?(ne[e]=ne[e].parentLocale,e===$e()&&$e(e)):ne[e]!=null&&delete ne[e]);return ne[e]}function Ee(e){var r;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Dt;if(!l(e)){if(r=Ut(e),r)return r;e=[e];}return ui(e)}function fi(){return me(ne)}function yr(e){var r,n=e._a;return n&&m(e).overflow===-2&&(r=n[Fe]<0||n[Fe]>11?Fe:n[Te]<1||n[Te]>hr(n[ge],n[Fe])?Te:n[ce]<0||n[ce]>24||n[ce]===24&&(n[_e]!==0||n[Re]!==0||n[at]!==0)?ce:n[_e]<0||n[_e]>59?_e:n[Re]<0||n[Re]>59?Re:n[at]<0||n[at]>999?at:-1,m(e)._overflowDayOfYear&&(r<ge||r>Te)&&(r=Te),m(e)._overflowWeeks&&r===-1&&(r=yn),m(e)._overflowWeekday&&r===-1&&(r=bn),m(e).overflow=r),e}var mi=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,pi=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,gi=/Z|[+-]\d\d(?::?\d\d)?/,Wt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,false],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,false],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,false],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,false],["YYYY",/\d{4}/,false]],br=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],yi=/^\/?Date\((-?\d+)/i,bi=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,wi={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function ia(e){var r,n,i=e._i,s=mi.exec(i)||pi.exec(i),u,p,D,E,G=Wt.length,ye=br.length;if(s){for(m(e).iso=true,r=0,n=G;r<n;r++)if(Wt[r][1].exec(s[1])){p=Wt[r][0],u=Wt[r][2]!==false;break}if(p==null){e._isValid=false;return}if(s[3]){for(r=0,n=ye;r<n;r++)if(br[r][1].exec(s[3])){D=(s[2]||" ")+br[r][0];break}if(D==null){e._isValid=false;return}}if(!u&&D!=null){e._isValid=false;return}if(s[4])if(gi.exec(s[4]))E="Z";else {e._isValid=false;return}e._f=p+(D||"")+(E||""),vr(e);}else e._isValid=false;}function vi(e,r,n,i,s,u){var p=[ki(e),qr.indexOf(r),parseInt(n,10),parseInt(i,10),parseInt(s,10)];return u&&p.push(parseInt(u,10)),p}function ki(e){var r=parseInt(e,10);return r<=49?2e3+r:r<=999?1900+r:r}function xi(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Si(e,r,n){if(e){var i=ea.indexOf(e),s=new Date(r[0],r[1],r[2]).getDay();if(i!==s)return m(n).weekdayMismatch=true,n._isValid=false,false}return true}function Pi(e,r,n){if(e)return wi[e];if(r)return 0;var i=parseInt(n,10),s=i%100,u=(i-s)/100;return u*60+s}function oa(e){var r=bi.exec(xi(e._i)),n;if(r){if(n=vi(r[4],r[3],r[2],r[5],r[6],r[7]),!Si(r[1],n,e))return;e._a=n,e._tzm=Pi(r[8],r[9],r[10]),e._d=Pt.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),m(e).rfc2822=true;}else e._isValid=false;}function Ci(e){var r=yi.exec(e._i);if(r!==null){e._d=new Date(+r[1]);return}if(ia(e),e._isValid===false)delete e._isValid;else return;if(oa(e),e._isValid===false)delete e._isValid;else return;e._strict?e._isValid=false:t.createFromInputFallback(e);}t.createFromInputFallback=I("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""));});function dt(e,r,n){return e??r??n}function _i(e){var r=new Date(t.now());return e._useUTC?[r.getUTCFullYear(),r.getUTCMonth(),r.getUTCDate()]:[r.getFullYear(),r.getMonth(),r.getDate()]}function wr(e){var r,n,i=[],s,u,p;if(!e._d){for(s=_i(e),e._w&&e._a[Te]==null&&e._a[Fe]==null&&Di(e),e._dayOfYear!=null&&(p=dt(e._a[ge],s[ge]),(e._dayOfYear>xt(p)||e._dayOfYear===0)&&(m(e)._overflowDayOfYear=true),n=Pt(p,0,e._dayOfYear),e._a[Fe]=n.getUTCMonth(),e._a[Te]=n.getUTCDate()),r=0;r<3&&e._a[r]==null;++r)e._a[r]=i[r]=s[r];for(;r<7;r++)e._a[r]=i[r]=e._a[r]==null?r===2?1:0:e._a[r];e._a[ce]===24&&e._a[_e]===0&&e._a[Re]===0&&e._a[at]===0&&(e._nextDay=true,e._a[ce]=0),e._d=(e._useUTC?Pt:Fn).apply(null,i),u=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[ce]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==u&&(m(e).weekdayMismatch=true);}}function Di(e){var r,n,i,s,u,p,D,E,G;r=e._w,r.GG!=null||r.W!=null||r.E!=null?(u=1,p=4,n=dt(r.GG,e._a[ge],Ct(ae(),1,4).year),i=dt(r.W,1),s=dt(r.E,1),(s<1||s>7)&&(E=true)):(u=e._locale._week.dow,p=e._locale._week.doy,G=Ct(ae(),u,p),n=dt(r.gg,e._a[ge],G.year),i=dt(r.w,G.week),r.d!=null?(s=r.d,(s<0||s>6)&&(E=true)):r.e!=null?(s=r.e+u,(r.e<0||r.e>6)&&(E=true)):s=u),i<1||i>Ye(n,u,p)?m(e)._overflowWeeks=true:E!=null?m(e)._overflowWeekday=true:(D=Qr(n,i,s,u,p),e._a[ge]=D.year,e._dayOfYear=D.dayOfYear);}t.ISO_8601=function(){},t.RFC_2822=function(){};function vr(e){if(e._f===t.ISO_8601){ia(e);return}if(e._f===t.RFC_2822){oa(e);return}e._a=[],m(e).empty=true;var r=""+e._i,n,i,s,u,p,D=r.length,E=0,G,ye;for(s=Ft(e._f,e._locale).match(ze)||[],ye=s.length,n=0;n<ye;n++)u=s[n],i=(r.match(mn(u,e))||[])[0],i&&(p=r.substr(0,r.indexOf(i)),p.length>0&&m(e).unusedInput.push(p),r=r.slice(r.indexOf(i)+i.length),E+=i.length),Ae[u]?(i?m(e).empty=false:m(e).unusedTokens.push(u),gn(u,i,e)):e._strict&&!i&&m(e).unusedTokens.push(u);m(e).charsLeftOver=D-E,r.length>0&&m(e).unusedInput.push(r),e._a[ce]<=12&&m(e).bigHour===true&&e._a[ce]>0&&(m(e).bigHour=void 0),m(e).parsedDateParts=e._a.slice(0),m(e).meridiem=e._meridiem,e._a[ce]=Mi(e._locale,e._a[ce],e._meridiem),G=m(e).era,G!==null&&(e._a[ge]=e._locale.erasConvertYear(G,e._a[ge])),wr(e),yr(e);}function Mi(e,r,n){var i;return n==null?r:e.meridiemHour!=null?e.meridiemHour(r,n):(e.isPM!=null&&(i=e.isPM(n),i&&r<12&&(r+=12),!i&&r===12&&(r=0)),r)}function Ti(e){var r,n,i,s,u,p,D=false,E=e._f.length;if(E===0){m(e).invalidFormat=true,e._d=new Date(NaN);return}for(s=0;s<E;s++)u=0,p=false,r=te({},e),e._useUTC!=null&&(r._useUTC=e._useUTC),r._f=e._f[s],vr(r),R(r)&&(p=true),u+=m(r).charsLeftOver,u+=m(r).unusedTokens.length*10,m(r).score=u,D?u<i&&(i=u,n=r):(i==null||u<i||p)&&(i=u,n=r,p&&(D=true));S(e,n||r);}function Oi(e){if(!e._d){var r=sr(e._i),n=r.day===void 0?r.date:r.day;e._a=P([r.year,r.month,n,r.hour,r.minute,r.second,r.millisecond],function(i){return i&&parseInt(i,10)}),wr(e);}}function Ai(e){var r=new V(yr(sa(e)));return r._nextDay&&(r.add(1,"d"),r._nextDay=void 0),r}function sa(e){var r=e._i,n=e._f;return e._locale=e._locale||Ee(e._l),r===null||n===void 0&&r===""?U({nullInput:true}):(typeof r=="string"&&(e._i=r=e._locale.preparse(r)),j(r)?new V(yr(r)):(k(r)?e._d=r:l(n)?Ti(e):n?vr(e):Ni(e),R(e)||(e._d=null),e))}function Ni(e){var r=e._i;g(r)?e._d=new Date(t.now()):k(r)?e._d=new Date(r.valueOf()):typeof r=="string"?Ci(e):l(r)?(e._a=P(r.slice(0),function(n){return parseInt(n,10)}),wr(e)):c(r)?Oi(e):w(r)?e._d=new Date(r):t.createFromInputFallback(e);}function la(e,r,n,i,s){var u={};return (r===true||r===false)&&(i=r,r=void 0),(n===true||n===false)&&(i=n,n=void 0),(c(e)&&h(e)||l(e)&&e.length===0)&&(e=void 0),u._isAMomentObject=true,u._useUTC=u._isUTC=s,u._l=n,u._i=e,u._f=r,u._strict=i,Ai(u)}function ae(e,r,n,i){return la(e,r,n,i,false)}var Fi=I("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=ae.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:U()}),Ri=I("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=ae.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:U()});function ca(e,r){var n,i;if(r.length===1&&l(r[0])&&(r=r[0]),!r.length)return ae();for(n=r[0],i=1;i<r.length;++i)(!r[i].isValid()||r[i][e](n))&&(n=r[i]);return n}function Yi(){var e=[].slice.call(arguments,0);return ca("isBefore",e)}function Ei(){var e=[].slice.call(arguments,0);return ca("isAfter",e)}var Li=function(){return Date.now?Date.now():+new Date},Mt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Ii(e){var r,n=false,i,s=Mt.length;for(r in e)if(d(e,r)&&!(se.call(Mt,r)!==-1&&(e[r]==null||!isNaN(e[r]))))return false;for(i=0;i<s;++i)if(e[Mt[i]]){if(n)return false;parseFloat(e[Mt[i]])!==z(e[Mt[i]])&&(n=true);}return true}function Hi(){return this._isValid}function Vi(){return De(NaN)}function zt(e){var r=sr(e),n=r.year||0,i=r.quarter||0,s=r.month||0,u=r.week||r.isoWeek||0,p=r.day||0,D=r.hour||0,E=r.minute||0,G=r.second||0,ye=r.millisecond||0;this._isValid=Ii(r),this._milliseconds=+ye+G*1e3+E*6e4+D*1e3*60*60,this._days=+p+u*7,this._months=+s+i*3+n*12,this._data={},this._locale=Ee(),this._bubble();}function jt(e){return e instanceof zt}function kr(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function Bi(e,r,n){var i=Math.min(e.length,r.length),s=Math.abs(e.length-r.length),u=0,p;for(p=0;p<i;p++)(z(e[p])!==z(r[p]))&&u++;return u+s}function ua(e,r){A(e,0,0,function(){var n=this.utcOffset(),i="+";return n<0&&(n=-n,i="-"),i+pe(~~(n/60),2)+r+pe(~~n%60,2)});}ua("Z",":"),ua("ZZ",""),M("Z",It),M("ZZ",It),ee(["Z","ZZ"],function(e,r,n){n._useUTC=true,n._tzm=xr(It,e);});var Ui=/([\+\-]|\d\d)/gi;function xr(e,r){var n=(r||"").match(e),i,s,u;return n===null?null:(i=n[n.length-1]||[],s=(i+"").match(Ui)||["-",0,0],u=+(s[1]*60)+z(s[2]),u===0?0:s[0]==="+"?u:-u)}function Sr(e,r){var n,i;return r._isUTC?(n=r.clone(),i=(j(e)||k(e)?e.valueOf():ae(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+i),t.updateOffset(n,false),n):ae(e).local()}function Pr(e){return -Math.round(e._d.getTimezoneOffset())}t.updateOffset=function(){};function Wi(e,r,n){var i=this._offset||0,s;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=xr(It,e),e===null)return this}else Math.abs(e)<16&&!n&&(e=e*60);return !this._isUTC&&r&&(s=Pr(this)),this._offset=e,this._isUTC=true,s!=null&&this.add(s,"m"),i!==e&&(!r||this._changeInProgress?ma(this,De(e-i,"m"),1,false):this._changeInProgress||(this._changeInProgress=true,t.updateOffset(this,true),this._changeInProgress=null)),this}else return this._isUTC?i:Pr(this)}function zi(e,r){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,r),this):-this.utcOffset()}function ji(e){return this.utcOffset(0,e)}function Gi(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=false,e&&this.subtract(Pr(this),"m")),this}function $i(){if(this._tzm!=null)this.utcOffset(this._tzm,false,true);else if(typeof this._i=="string"){var e=xr(hn,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,true);}return this}function qi(e){return this.isValid()?(e=e?ae(e).utcOffset():0,(this.utcOffset()-e)%60===0):false}function Ki(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Zi(){if(!g(this._isDSTShifted))return this._isDSTShifted;var e={},r;return te(e,this),e=sa(e),e._a?(r=e._isUTC?C(e._a):ae(e._a),this._isDSTShifted=this.isValid()&&Bi(e._a,r.toArray())>0):this._isDSTShifted=false,this._isDSTShifted}function Xi(){return this.isValid()?!this._isUTC:false}function Ji(){return this.isValid()?this._isUTC:false}function da(){return this.isValid()?this._isUTC&&this._offset===0:false}var Qi=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,eo=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function De(e,r){var n=e,i=null,s,u,p;return jt(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:w(e)||!isNaN(+e)?(n={},r?n[r]=+e:n.milliseconds=+e):(i=Qi.exec(e))?(s=i[1]==="-"?-1:1,n={y:0,d:z(i[Te])*s,h:z(i[ce])*s,m:z(i[_e])*s,s:z(i[Re])*s,ms:z(kr(i[at]*1e3))*s}):(i=eo.exec(e))?(s=i[1]==="-"?-1:1,n={y:nt(i[2],s),M:nt(i[3],s),w:nt(i[4],s),d:nt(i[5],s),h:nt(i[6],s),m:nt(i[7],s),s:nt(i[8],s)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(p=to(ae(n.from),ae(n.to)),n={},n.ms=p.milliseconds,n.M=p.months),u=new zt(n),jt(e)&&d(e,"_locale")&&(u._locale=e._locale),jt(e)&&d(e,"_isValid")&&(u._isValid=e._isValid),u}De.fn=zt.prototype,De.invalid=Vi;function nt(e,r){var n=e&&parseFloat(e.replace(",","."));return (isNaN(n)?0:n)*r}function ha(e,r){var n={};return n.months=r.month()-e.month()+(r.year()-e.year())*12,e.clone().add(n.months,"M").isAfter(r)&&--n.months,n.milliseconds=+r-+e.clone().add(n.months,"M"),n}function to(e,r){var n;return e.isValid()&&r.isValid()?(r=Sr(r,e),e.isBefore(r)?n=ha(e,r):(n=ha(r,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function fa(e,r){return function(n,i){var s,u;return i!==null&&!isNaN(+i)&&(be(r,"moment()."+r+"(period, number) is deprecated. Please use moment()."+r+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),u=n,n=i,i=u),s=De(n,i),ma(this,s,e),this}}function ma(e,r,n,i){var s=r._milliseconds,u=kr(r._days),p=kr(r._months);e.isValid()&&(i=i??true,p&&Zr(e,St(e,"Month")+p*n),u&&$r(e,"Date",St(e,"Date")+u*n),s&&e._d.setTime(e._d.valueOf()+s*n),i&&t.updateOffset(e,u||p));}var ro=fa(1,"add"),ao=fa(-1,"subtract");function pa(e){return typeof e=="string"||e instanceof String}function no(e){return j(e)||k(e)||pa(e)||w(e)||oo(e)||io(e)||e===null||e===void 0}function io(e){var r=c(e)&&!h(e),n=false,i=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],s,u,p=i.length;for(s=0;s<p;s+=1)u=i[s],n=n||d(e,u);return r&&n}function oo(e){var r=l(e),n=false;return r&&(n=e.filter(function(i){return !w(i)&&pa(e)}).length===0),r&&n}function so(e){var r=c(e)&&!h(e),n=false,i=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],s,u;for(s=0;s<i.length;s+=1)u=i[s],n=n||d(e,u);return r&&n}function lo(e,r){var n=e.diff(r,"days",true);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function co(e,r){arguments.length===1&&(arguments[0]?no(arguments[0])?(e=arguments[0],r=void 0):so(arguments[0])&&(r=arguments[0],e=void 0):(e=void 0,r=void 0));var n=e||ae(),i=Sr(n,this).startOf("day"),s=t.calendarFormat(this,i)||"sameElse",u=r&&(ie(r[s])?r[s].call(this,n):r[s]);return this.format(u||this.localeData().calendar(s,this,ae(n)))}function uo(){return new V(this)}function ho(e,r){var n=j(e)?e:ae(e);return this.isValid()&&n.isValid()?(r=Pe(r)||"millisecond",r==="millisecond"?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(r).valueOf()):false}function fo(e,r){var n=j(e)?e:ae(e);return this.isValid()&&n.isValid()?(r=Pe(r)||"millisecond",r==="millisecond"?this.valueOf()<n.valueOf():this.clone().endOf(r).valueOf()<n.valueOf()):false}function mo(e,r,n,i){var s=j(e)?e:ae(e),u=j(r)?r:ae(r);return this.isValid()&&s.isValid()&&u.isValid()?(i=i||"()",(i[0]==="("?this.isAfter(s,n):!this.isBefore(s,n))&&(i[1]===")"?this.isBefore(u,n):!this.isAfter(u,n))):false}function po(e,r){var n=j(e)?e:ae(e),i;return this.isValid()&&n.isValid()?(r=Pe(r)||"millisecond",r==="millisecond"?this.valueOf()===n.valueOf():(i=n.valueOf(),this.clone().startOf(r).valueOf()<=i&&i<=this.clone().endOf(r).valueOf())):false}function go(e,r){return this.isSame(e,r)||this.isAfter(e,r)}function yo(e,r){return this.isSame(e,r)||this.isBefore(e,r)}function bo(e,r,n){var i,s,u;if(!this.isValid())return NaN;if(i=Sr(e,this),!i.isValid())return NaN;switch(s=(i.utcOffset()-this.utcOffset())*6e4,r=Pe(r),r){case "year":u=Gt(this,i)/12;break;case "month":u=Gt(this,i);break;case "quarter":u=Gt(this,i)/3;break;case "second":u=(this-i)/1e3;break;case "minute":u=(this-i)/6e4;break;case "hour":u=(this-i)/36e5;break;case "day":u=(this-i-s)/864e5;break;case "week":u=(this-i-s)/6048e5;break;default:u=this-i;}return n?u:Ce(u)}function Gt(e,r){if(e.date()<r.date())return -Gt(r,e);var n=(r.year()-e.year())*12+(r.month()-e.month()),i=e.clone().add(n,"months"),s,u;return r-i<0?(s=e.clone().add(n-1,"months"),u=(r-i)/(i-s)):(s=e.clone().add(n+1,"months"),u=(r-i)/(s-i)),-(n+u)||0}t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",t.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function wo(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function vo(e){if(!this.isValid())return null;var r=e!==true,n=r?this.clone().utc():this;return n.year()<0||n.year()>9999?rt(n,r?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):ie(Date.prototype.toISOString)?r?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",rt(n,"Z")):rt(n,r?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function ko(){if(!this.isValid())return "moment.invalid(/* "+this._i+" */)";var e="moment",r="",n,i,s,u;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",r="Z"),n="["+e+'("]',i=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",s="-MM-DD[T]HH:mm:ss.SSS",u=r+'[")]',this.format(n+i+s+u)}function xo(e){e||(e=this.isUtc()?t.defaultFormatUtc:t.defaultFormat);var r=rt(this,e);return this.localeData().postformat(r)}function So(e,r){return this.isValid()&&(j(e)&&e.isValid()||ae(e).isValid())?De({to:this,from:e}).locale(this.locale()).humanize(!r):this.localeData().invalidDate()}function Po(e){return this.from(ae(),e)}function Co(e,r){return this.isValid()&&(j(e)&&e.isValid()||ae(e).isValid())?De({from:this,to:e}).locale(this.locale()).humanize(!r):this.localeData().invalidDate()}function _o(e){return this.to(ae(),e)}function ga(e){var r;return e===void 0?this._locale._abbr:(r=Ee(e),r!=null&&(this._locale=r),this)}var ya=I("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function ba(){return this._locale}var $t=1e3,ht=60*$t,qt=60*ht,wa=(365*400+97)*24*qt;function ft(e,r){return (e%r+r)%r}function va(e,r,n){return e<100&&e>=0?new Date(e+400,r,n)-wa:new Date(e,r,n).valueOf()}function ka(e,r,n){return e<100&&e>=0?Date.UTC(e+400,r,n)-wa:Date.UTC(e,r,n)}function Do(e){var r,n;if(e=Pe(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?ka:va,e){case "year":r=n(this.year(),0,1);break;case "quarter":r=n(this.year(),this.month()-this.month()%3,1);break;case "month":r=n(this.year(),this.month(),1);break;case "week":r=n(this.year(),this.month(),this.date()-this.weekday());break;case "isoWeek":r=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case "day":case "date":r=n(this.year(),this.month(),this.date());break;case "hour":r=this._d.valueOf(),r-=ft(r+(this._isUTC?0:this.utcOffset()*ht),qt);break;case "minute":r=this._d.valueOf(),r-=ft(r,ht);break;case "second":r=this._d.valueOf(),r-=ft(r,$t);break}return this._d.setTime(r),t.updateOffset(this,true),this}function Mo(e){var r,n;if(e=Pe(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?ka:va,e){case "year":r=n(this.year()+1,0,1)-1;break;case "quarter":r=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case "month":r=n(this.year(),this.month()+1,1)-1;break;case "week":r=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case "isoWeek":r=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case "day":case "date":r=n(this.year(),this.month(),this.date()+1)-1;break;case "hour":r=this._d.valueOf(),r+=qt-ft(r+(this._isUTC?0:this.utcOffset()*ht),qt)-1;break;case "minute":r=this._d.valueOf(),r+=ht-ft(r,ht)-1;break;case "second":r=this._d.valueOf(),r+=$t-ft(r,$t)-1;break}return this._d.setTime(r),t.updateOffset(this,true),this}function To(){return this._d.valueOf()-(this._offset||0)*6e4}function Oo(){return Math.floor(this.valueOf()/1e3)}function Ao(){return new Date(this.valueOf())}function No(){var e=this;return [e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Fo(){var e=this;return {years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Ro(){return this.isValid()?this.toISOString():null}function Yo(){return R(this)}function Eo(){return S({},m(this))}function Lo(){return m(this).overflow}function Io(){return {input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}A("N",0,0,"eraAbbr"),A("NN",0,0,"eraAbbr"),A("NNN",0,0,"eraAbbr"),A("NNNN",0,0,"eraName"),A("NNNNN",0,0,"eraNarrow"),A("y",["y",1],"yo","eraYear"),A("y",["yy",2],0,"eraYear"),A("y",["yyy",3],0,"eraYear"),A("y",["yyyy",4],0,"eraYear"),M("N",Cr),M("NN",Cr),M("NNN",Cr),M("NNNN",Ko),M("NNNNN",Zo),ee(["N","NN","NNN","NNNN","NNNNN"],function(e,r,n,i){var s=n._locale.erasParse(e,i,n._strict);s?m(n).era=s:m(n).invalidEra=e;}),M("y",lt),M("yy",lt),M("yyy",lt),M("yyyy",lt),M("yo",Xo),ee(["y","yy","yyy","yyyy"],ge),ee(["yo"],function(e,r,n,i){var s;n._locale._eraYearOrdinalRegex&&(s=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?r[ge]=n._locale.eraYearOrdinalParse(e,s):r[ge]=parseInt(e,10);});function Ho(e,r){var n,i,s,u=this._eras||Ee("en")._eras;for(n=0,i=u.length;n<i;++n)switch(typeof u[n].since==="string"&&(s=t(u[n].since).startOf("day"),u[n].since=s.valueOf()),typeof u[n].until){case "undefined":u[n].until=1/0;break;case "string":s=t(u[n].until).startOf("day").valueOf(),u[n].until=s.valueOf();break}return u}function Vo(e,r,n){var i,s,u=this.eras(),p,D,E;for(e=e.toUpperCase(),i=0,s=u.length;i<s;++i)if(p=u[i].name.toUpperCase(),D=u[i].abbr.toUpperCase(),E=u[i].narrow.toUpperCase(),n)switch(r){case "N":case "NN":case "NNN":if(D===e)return u[i];break;case "NNNN":if(p===e)return u[i];break;case "NNNNN":if(E===e)return u[i];break}else if([p,D,E].indexOf(e)>=0)return u[i]}function Bo(e,r){var n=e.since<=e.until?1:-1;return r===void 0?t(e.since).year():t(e.since).year()+(r-e.offset)*n}function Uo(){var e,r,n,i=this.localeData().eras();for(e=0,r=i.length;e<r;++e)if(n=this.clone().startOf("day").valueOf(),i[e].since<=n&&n<=i[e].until||i[e].until<=n&&n<=i[e].since)return i[e].name;return ""}function Wo(){var e,r,n,i=this.localeData().eras();for(e=0,r=i.length;e<r;++e)if(n=this.clone().startOf("day").valueOf(),i[e].since<=n&&n<=i[e].until||i[e].until<=n&&n<=i[e].since)return i[e].narrow;return ""}function zo(){var e,r,n,i=this.localeData().eras();for(e=0,r=i.length;e<r;++e)if(n=this.clone().startOf("day").valueOf(),i[e].since<=n&&n<=i[e].until||i[e].until<=n&&n<=i[e].since)return i[e].abbr;return ""}function jo(){var e,r,n,i,s=this.localeData().eras();for(e=0,r=s.length;e<r;++e)if(n=s[e].since<=s[e].until?1:-1,i=this.clone().startOf("day").valueOf(),s[e].since<=i&&i<=s[e].until||s[e].until<=i&&i<=s[e].since)return (this.year()-t(s[e].since).year())*n+s[e].offset;return this.year()}function Go(e){return d(this,"_erasNameRegex")||_r.call(this),e?this._erasNameRegex:this._erasRegex}function $o(e){return d(this,"_erasAbbrRegex")||_r.call(this),e?this._erasAbbrRegex:this._erasRegex}function qo(e){return d(this,"_erasNarrowRegex")||_r.call(this),e?this._erasNarrowRegex:this._erasRegex}function Cr(e,r){return r.erasAbbrRegex(e)}function Ko(e,r){return r.erasNameRegex(e)}function Zo(e,r){return r.erasNarrowRegex(e)}function Xo(e,r){return r._eraYearOrdinalRegex||lt}function _r(){var e=[],r=[],n=[],i=[],s,u,p,D,E,G=this.eras();for(s=0,u=G.length;s<u;++s)p=Ne(G[s].name),D=Ne(G[s].abbr),E=Ne(G[s].narrow),r.push(p),e.push(D),n.push(E),i.push(p),i.push(D),i.push(E);this._erasRegex=new RegExp("^("+i.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+r.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+n.join("|")+")","i");}A(0,["gg",2],0,function(){return this.weekYear()%100}),A(0,["GG",2],0,function(){return this.isoWeekYear()%100});function Kt(e,r){A(0,[e,e.length],0,r);}Kt("gggg","weekYear"),Kt("ggggg","weekYear"),Kt("GGGG","isoWeekYear"),Kt("GGGGG","isoWeekYear"),M("G",Lt),M("g",Lt),M("GG",re,xe),M("gg",re,xe),M("GGGG",cr,lr),M("gggg",cr,lr),M("GGGGG",Et,Rt),M("ggggg",Et,Rt),kt(["gggg","ggggg","GGGG","GGGGG"],function(e,r,n,i){r[i.substr(0,2)]=z(e);}),kt(["gg","GG"],function(e,r,n,i){r[i]=t.parseTwoDigitYear(e);});function Jo(e){return xa.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function Qo(e){return xa.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function es(){return Ye(this.year(),1,4)}function ts(){return Ye(this.isoWeekYear(),1,4)}function rs(){var e=this.localeData()._week;return Ye(this.year(),e.dow,e.doy)}function as(){var e=this.localeData()._week;return Ye(this.weekYear(),e.dow,e.doy)}function xa(e,r,n,i,s){var u;return e==null?Ct(this,i,s).year:(u=Ye(e,i,s),r>u&&(r=u),ns.call(this,e,r,n,i,s))}function ns(e,r,n,i,s){var u=Qr(e,r,n,i,s),p=Pt(u.year,0,u.dayOfYear);return this.year(p.getUTCFullYear()),this.month(p.getUTCMonth()),this.date(p.getUTCDate()),this}A("Q",0,"Qo","quarter"),M("Q",Ur),ee("Q",function(e,r){r[Fe]=(z(e)-1)*3;});function is(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}A("D",["DD",2],"Do","date"),M("D",re,ct),M("DD",re,xe),M("Do",function(e,r){return e?r._dayOfMonthOrdinalParse||r._ordinalParse:r._dayOfMonthOrdinalParseLenient}),ee(["D","DD"],Te),ee("Do",function(e,r){r[Te]=z(e.match(re)[0]);});var Sa=ut("Date",true);A("DDD",["DDDD",3],"DDDo","dayOfYear"),M("DDD",Yt),M("DDDD",Wr),ee(["DDD","DDDD"],function(e,r,n){n._dayOfYear=z(e);});function os(e){var r=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?r:this.add(e-r,"d")}A("m",["mm",2],0,"minute"),M("m",re,ur),M("mm",re,xe),ee(["m","mm"],_e);var ss=ut("Minutes",false);A("s",["ss",2],0,"second"),M("s",re,ur),M("ss",re,xe),ee(["s","ss"],Re);var ls=ut("Seconds",false);A("S",0,0,function(){return ~~(this.millisecond()/100)}),A(0,["SS",2],0,function(){return ~~(this.millisecond()/10)}),A(0,["SSS",3],0,"millisecond"),A(0,["SSSS",4],0,function(){return this.millisecond()*10}),A(0,["SSSSS",5],0,function(){return this.millisecond()*100}),A(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),A(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),A(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),A(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),M("S",Yt,Ur),M("SS",Yt,xe),M("SSS",Yt,Wr);var qe,Pa;for(qe="SSSS";qe.length<=9;qe+="S")M(qe,lt);function cs(e,r){r[at]=z(("0."+e)*1e3);}for(qe="S";qe.length<=9;qe+="S")ee(qe,cs);Pa=ut("Milliseconds",false),A("z",0,0,"zoneAbbr"),A("zz",0,0,"zoneName");function us(){return this._isUTC?"UTC":""}function ds(){return this._isUTC?"Coordinated Universal Time":""}var x=V.prototype;x.add=ro,x.calendar=co,x.clone=uo,x.diff=bo,x.endOf=Mo,x.format=xo,x.from=So,x.fromNow=Po,x.to=Co,x.toNow=_o,x.get=vn,x.invalidAt=Lo,x.isAfter=ho,x.isBefore=fo,x.isBetween=mo,x.isSame=po,x.isSameOrAfter=go,x.isSameOrBefore=yo,x.isValid=Yo,x.lang=ya,x.locale=ga,x.localeData=ba,x.max=Ri,x.min=Fi,x.parsingFlags=Eo,x.set=kn,x.startOf=Do,x.subtract=ao,x.toArray=No,x.toObject=Fo,x.toDate=Ao,x.toISOString=vo,x.inspect=ko,typeof Symbol<"u"&&Symbol.for!=null&&(x[Symbol.for("nodejs.util.inspect.custom")]=function(){return "Moment<"+this.format()+">"}),x.toJSON=Ro,x.toString=wo,x.unix=Oo,x.valueOf=To,x.creationData=Io,x.eraName=Uo,x.eraNarrow=Wo,x.eraAbbr=zo,x.eraYear=jo,x.year=Gr,x.isLeapYear=wn,x.weekYear=Jo,x.isoWeekYear=Qo,x.quarter=x.quarters=is,x.month=Xr,x.daysInMonth=On,x.week=x.weeks=In,x.isoWeek=x.isoWeeks=Hn,x.weeksInYear=rs,x.weeksInWeekYear=as,x.isoWeeksInYear=es,x.isoWeeksInISOWeekYear=ts,x.date=Sa,x.day=x.days=Jn,x.weekday=Qn,x.isoWeekday=ei,x.dayOfYear=os,x.hour=x.hours=si,x.minute=x.minutes=ss,x.second=x.seconds=ls,x.millisecond=x.milliseconds=Pa,x.utcOffset=Wi,x.utc=ji,x.local=Gi,x.parseZone=$i,x.hasAlignedHourOffset=qi,x.isDST=Ki,x.isLocal=Xi,x.isUtcOffset=Ji,x.isUtc=da,x.isUTC=da,x.zoneAbbr=us,x.zoneName=ds,x.dates=I("dates accessor is deprecated. Use date instead.",Sa),x.months=I("months accessor is deprecated. Use month instead",Xr),x.years=I("years accessor is deprecated. Use year instead",Gr),x.zone=I("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",zi),x.isDSTShifted=I("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Zi);function hs(e){return ae(e*1e3)}function fs(){return ae.apply(null,arguments).parseZone()}function Ca(e){return e}var K=W.prototype;K.calendar=tt,K.longDateFormat=en,K.invalidDate=rn,K.ordinal=on,K.preparse=Ca,K.postformat=Ca,K.relativeTime=ln,K.pastFuture=cn,K.set=he,K.eras=Ho,K.erasParse=Vo,K.erasConvertYear=Bo,K.erasAbbrRegex=$o,K.erasNameRegex=Go,K.erasNarrowRegex=qo,K.months=_n,K.monthsShort=Dn,K.monthsParse=Tn,K.monthsRegex=Nn,K.monthsShortRegex=An,K.week=Rn,K.firstDayOfYear=Ln,K.firstDayOfWeek=En,K.weekdays=$n,K.weekdaysMin=Kn,K.weekdaysShort=qn,K.weekdaysParse=Xn,K.weekdaysRegex=ti,K.weekdaysShortRegex=ri,K.weekdaysMinRegex=ai,K.isPM=ii,K.meridiem=li;function Zt(e,r,n,i){var s=Ee(),u=C().set(i,r);return s[n](u,e)}function _a(e,r,n){if(w(e)&&(r=e,e=void 0),e=e||"",r!=null)return Zt(e,r,n,"month");var i,s=[];for(i=0;i<12;i++)s[i]=Zt(e,i,n,"month");return s}function Dr(e,r,n,i){typeof e=="boolean"?(w(r)&&(n=r,r=void 0),r=r||""):(r=e,n=r,e=false,w(r)&&(n=r,r=void 0),r=r||"");var s=Ee(),u=e?s._week.dow:0,p,D=[];if(n!=null)return Zt(r,(n+u)%7,i,"day");for(p=0;p<7;p++)D[p]=Zt(r,(p+u)%7,i,"day");return D}function ms(e,r){return _a(e,r,"months")}function ps(e,r){return _a(e,r,"monthsShort")}function gs(e,r,n){return Dr(e,r,n,"weekdays")}function ys(e,r,n){return Dr(e,r,n,"weekdaysShort")}function bs(e,r,n){return Dr(e,r,n,"weekdaysMin")}$e("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var r=e%10,n=z(e%100/10)===1?"th":r===1?"st":r===2?"nd":r===3?"rd":"th";return e+n}}),t.lang=I("moment.lang is deprecated. Use moment.locale instead.",$e),t.langData=I("moment.langData is deprecated. Use moment.localeData instead.",Ee);var Le=Math.abs;function ws(){var e=this._data;return this._milliseconds=Le(this._milliseconds),this._days=Le(this._days),this._months=Le(this._months),e.milliseconds=Le(e.milliseconds),e.seconds=Le(e.seconds),e.minutes=Le(e.minutes),e.hours=Le(e.hours),e.months=Le(e.months),e.years=Le(e.years),this}function Da(e,r,n,i){var s=De(r,n);return e._milliseconds+=i*s._milliseconds,e._days+=i*s._days,e._months+=i*s._months,e._bubble()}function vs(e,r){return Da(this,e,r,1)}function ks(e,r){return Da(this,e,r,-1)}function Ma(e){return e<0?Math.floor(e):Math.ceil(e)}function xs(){var e=this._milliseconds,r=this._days,n=this._months,i=this._data,s,u,p,D,E;return e>=0&&r>=0&&n>=0||e<=0&&r<=0&&n<=0||(e+=Ma(Mr(n)+r)*864e5,r=0,n=0),i.milliseconds=e%1e3,s=Ce(e/1e3),i.seconds=s%60,u=Ce(s/60),i.minutes=u%60,p=Ce(u/60),i.hours=p%24,r+=Ce(p/24),E=Ce(Ta(r)),n+=E,r-=Ma(Mr(E)),D=Ce(n/12),n%=12,i.days=r,i.months=n,i.years=D,this}function Ta(e){return e*4800/146097}function Mr(e){return e*146097/4800}function Ss(e){if(!this.isValid())return NaN;var r,n,i=this._milliseconds;if(e=Pe(e),e==="month"||e==="quarter"||e==="year")switch(r=this._days+i/864e5,n=this._months+Ta(r),e){case "month":return n;case "quarter":return n/3;case "year":return n/12}else switch(r=this._days+Math.round(Mr(this._months)),e){case "week":return r/7+i/6048e5;case "day":return r+i/864e5;case "hour":return r*24+i/36e5;case "minute":return r*1440+i/6e4;case "second":return r*86400+i/1e3;case "millisecond":return Math.floor(r*864e5)+i;default:throw new Error("Unknown unit "+e)}}function Ie(e){return function(){return this.as(e)}}var Oa=Ie("ms"),Ps=Ie("s"),Cs=Ie("m"),_s=Ie("h"),Ds=Ie("d"),Ms=Ie("w"),Ts=Ie("M"),Os=Ie("Q"),As=Ie("y"),Ns=Oa;function Fs(){return De(this)}function Rs(e){return e=Pe(e),this.isValid()?this[e+"s"]():NaN}function it(e){return function(){return this.isValid()?this._data[e]:NaN}}var Ys=it("milliseconds"),Es=it("seconds"),Ls=it("minutes"),Is=it("hours"),Hs=it("days"),Vs=it("months"),Bs=it("years");function Us(){return Ce(this.days()/7)}var He=Math.round,mt={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Ws(e,r,n,i,s){return s.relativeTime(r||1,!!n,e,i)}function zs(e,r,n,i){var s=De(e).abs(),u=He(s.as("s")),p=He(s.as("m")),D=He(s.as("h")),E=He(s.as("d")),G=He(s.as("M")),ye=He(s.as("w")),Ve=He(s.as("y")),Ke=u<=n.ss&&["s",u]||u<n.s&&["ss",u]||p<=1&&["m"]||p<n.m&&["mm",p]||D<=1&&["h"]||D<n.h&&["hh",D]||E<=1&&["d"]||E<n.d&&["dd",E];return n.w!=null&&(Ke=Ke||ye<=1&&["w"]||ye<n.w&&["ww",ye]),Ke=Ke||G<=1&&["M"]||G<n.M&&["MM",G]||Ve<=1&&["y"]||["yy",Ve],Ke[2]=r,Ke[3]=+e>0,Ke[4]=i,Ws.apply(null,Ke)}function js(e){return e===void 0?He:typeof e=="function"?(He=e,true):false}function Gs(e,r){return mt[e]===void 0?false:r===void 0?mt[e]:(mt[e]=r,e==="s"&&(mt.ss=r-1),true)}function $s(e,r){if(!this.isValid())return this.localeData().invalidDate();var n=false,i=mt,s,u;return typeof e=="object"&&(r=e,e=false),typeof e=="boolean"&&(n=e),typeof r=="object"&&(i=Object.assign({},mt,r),r.s!=null&&r.ss==null&&(i.ss=r.s-1)),s=this.localeData(),u=zs(this,!n,i,s),n&&(u=s.pastFuture(+this,u)),s.postformat(u)}var Tr=Math.abs;function pt(e){return (e>0)-(e<0)||+e}function Xt(){if(!this.isValid())return this.localeData().invalidDate();var e=Tr(this._milliseconds)/1e3,r=Tr(this._days),n=Tr(this._months),i,s,u,p,D=this.asSeconds(),E,G,ye,Ve;return D?(i=Ce(e/60),s=Ce(i/60),e%=60,i%=60,u=Ce(n/12),n%=12,p=e?e.toFixed(3).replace(/\.?0+$/,""):"",E=D<0?"-":"",G=pt(this._months)!==pt(D)?"-":"",ye=pt(this._days)!==pt(D)?"-":"",Ve=pt(this._milliseconds)!==pt(D)?"-":"",E+"P"+(u?G+u+"Y":"")+(n?G+n+"M":"")+(r?ye+r+"D":"")+(s||i||e?"T":"")+(s?Ve+s+"H":"")+(i?Ve+i+"M":"")+(e?Ve+p+"S":"")):"P0D"}var $=zt.prototype;$.isValid=Hi,$.abs=ws,$.add=vs,$.subtract=ks,$.as=Ss,$.asMilliseconds=Oa,$.asSeconds=Ps,$.asMinutes=Cs,$.asHours=_s,$.asDays=Ds,$.asWeeks=Ms,$.asMonths=Ts,$.asQuarters=Os,$.asYears=As,$.valueOf=Ns,$._bubble=xs,$.clone=Fs,$.get=Rs,$.milliseconds=Ys,$.seconds=Es,$.minutes=Ls,$.hours=Is,$.days=Hs,$.weeks=Us,$.months=Vs,$.years=Bs,$.humanize=$s,$.toISOString=Xt,$.toString=Xt,$.toJSON=Xt,$.locale=ga,$.localeData=ba,$.toIsoString=I("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Xt),$.lang=ya,A("X",0,0,"unix"),A("x",0,0,"valueOf"),M("x",Lt),M("X",fn),ee("X",function(e,r,n){n._d=new Date(parseFloat(e)*1e3);}),ee("x",function(e,r,n){n._d=new Date(z(e));});return t.version="2.30.1",o(ae),t.fn=x,t.min=Yi,t.max=Ei,t.now=Li,t.utc=C,t.unix=hs,t.months=ms,t.isDate=k,t.locale=$e,t.invalid=U,t.duration=De,t.isMoment=j,t.weekdays=gs,t.parseZone=fs,t.localeData=Ee,t.isDuration=jt,t.monthsShort=ps,t.weekdaysMin=bs,t.defineLocale=gr,t.updateLocale=hi,t.locales=fi,t.weekdaysShort=ys,t.normalizeUnits=Pe,t.relativeTimeRounding=js,t.relativeTimeThreshold=Gs,t.calendarFormat=lo,t.prototype=x,t.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},t}));});var ar=chunkLCX5IU2V_js.c(Ar());var Nr=chunkLCX5IU2V_js.c(Ar());var Ya=({date:a,onPrev:t,onNext:o,onToday:l,view:c,onViewChange:d})=>{let{themeColors:h}=chunkLCX5IU2V_js.j(),[g,w]=react.useState(false),k=(0, Nr.default)(),P=k.format("MMM").toUpperCase(),S=k.format("DD"),C=(0, Nr.default)(a).format("MMMM YYYY"),_=Math.ceil(k.date()/7),m=c.charAt(0).toUpperCase()+c.slice(1);return jsxRuntime.jsxs("div",{className:"m3-components-bigcalendar-toolbar",children:[jsxRuntime.jsxs("div",{className:"m3-components-bigcalendar-toolbar-w1",children:[jsxRuntime.jsxs("div",{className:"m3-components-bigcalendar-toolbar-date-box",style:{backgroundColor:h.surfaceContainerLowest,borderColor:h.outlineVariant},children:[jsxRuntime.jsx("div",{className:"m3-components-bigcalendar-toolbar-w2",style:{backgroundColor:h.primary},children:jsxRuntime.jsx("span",{className:"m3-components-bigcalendar-toolbar-date-month",style:{color:h.onPrimary},children:P})}),jsxRuntime.jsx("span",{className:"m3-components-bigcalendar-toolbar-date-day",style:{color:h.onSurface},children:S})]}),jsxRuntime.jsxs("div",{className:"m3-components-bigcalendar-toolbar-w3",children:[jsxRuntime.jsx("div",{className:"m3-components-bigcalendar-toolbar-w4",children:jsxRuntime.jsx("div",{className:"m3-components-bigcalendar-toolbar-w5",children:jsxRuntime.jsx("h1",{className:"m3-components-bigcalendar-toolbar-title",style:{color:h.onSurface},children:C})})}),jsxRuntime.jsxs("span",{className:"m3-components-bigcalendar-toolbar-week-badge",style:{color:h.onSurfaceVariant,borderColor:h.outlineVariant},children:["Week ",_]})]})]}),jsxRuntime.jsxs("div",{className:"m3-components-bigcalendar-toolbar-w6",children:[jsxRuntime.jsxs("div",{className:"m3-components-bigcalendar-toolbar-nav-group",style:{borderColor:h.outlineVariant},children:[jsxRuntime.jsx("button",{onClick:t,className:"m3-components-bigcalendar-toolbar-nav-prev",style:{borderColor:h.outlineVariant,color:h.onSurface},children:jsxRuntime.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",className:"m3-components-bigcalendar-toolbar-nav-icon",children:jsxRuntime.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 19.5L8.25 12l7.5-7.5"})})}),jsxRuntime.jsx("button",{onClick:l,className:"m3-components-bigcalendar-toolbar-nav-today",style:{color:h.onSurface},children:"Today"}),jsxRuntime.jsx("button",{onClick:o,className:"m3-components-bigcalendar-toolbar-nav-next",style:{borderColor:h.outlineVariant,color:h.onSurface},children:jsxRuntime.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",className:"m3-components-bigcalendar-toolbar-nav-icon",children:jsxRuntime.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 4.5l7.5 7.5-7.5 7.5"})})})]}),jsxRuntime.jsxs("div",{className:"m3-components-bigcalendar-toolbar-w7",children:[jsxRuntime.jsxs("button",{onClick:()=>w(!g),className:"m3-components-bigcalendar-toolbar-dropdown-btn",style:{borderColor:h.outlineVariant,color:h.onSurface},children:[jsxRuntime.jsx("span",{className:"m3-components-bigcalendar-toolbar-dropdown-label",children:"View by:"}),m,jsxRuntime.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",className:`m3-components-bigcalendar-toolbar-dropdown-icon ${g?"rotate-180":""}`,children:jsxRuntime.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 8.25l-7.5 7.5-7.5-7.5"})})]}),jsxRuntime.jsx(framerMotion.AnimatePresence,{children:g&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:"m3-components-bigcalendar-toolbar-dropdown-backdrop",onClick:()=>w(false)}),jsxRuntime.jsx(framerMotion.motion.div,{initial:{opacity:0,y:-10,scale:.95},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:-10,scale:.95},transition:{duration:.15},className:"m3-components-bigcalendar-toolbar-dropdown-menu",style:{backgroundColor:h.surfaceContainerHigh,borderColor:h.outlineVariant},children:["month","week","day"].map(v=>jsxRuntime.jsx("button",{onClick:()=>{d(v),w(false);},className:"m3-components-bigcalendar-toolbar-dropdown-item",style:{color:c===v?h.primary:h.onSurface},children:v.charAt(0).toUpperCase()+v.slice(1)},v))})]})})]}),jsxRuntime.jsx(chunk52NSALGS_js.a,{type:"filled",shape:"rounded-lg",text:"+ Create",onClick:()=>{}})]})]})};var Ia=({event:a,onMouseEnter:t,onMouseLeave:o})=>{let l=a.resource,c=l.eventStyleFilled??true,d=l.eventStyle||{backgroundColor:l.eventSeedColor||"#6750A4",contentColor:"#FFFFFF"},h=c?d.backgroundColor:chunkLCX5IU2V_js.e(d.backgroundColor,.15),g=c?"transparent":d.backgroundColor,w=c?d.contentColor:d.backgroundColor,k=react.useRef(null),[P,S]=react.useState(1e3);react.useEffect(()=>{if(!k.current)return;let v=new ResizeObserver(R=>{window.requestAnimationFrame(()=>{R[0]&&S(R[0].contentRect.width);});});return v.observe(k.current),()=>v.disconnect()},[]);let C=P<120,_=P>=180;return jsxRuntime.jsx("div",{ref:k,className:"m3-components-bigcalendar-event",children:C?jsxRuntime.jsx(framerMotion.motion.div,{className:"m3-components-bigcalendar-event-dot",onMouseEnter:v=>t(v,l),onMouseLeave:o,style:{backgroundColor:h,borderColor:g==="transparent"?d.backgroundColor:g}}):jsxRuntime.jsx(framerMotion.motion.div,{initial:{opacity:0,scale:.98},animate:{opacity:1,scale:1},onMouseEnter:v=>t(v,l),onMouseLeave:o,className:"m3-components-bigcalendar-event-chip",style:{backgroundColor:h,color:w,border:c?"none":`1.5px solid ${g}`},children:jsxRuntime.jsxs("div",{className:"m3-components-bigcalendar-event-content",children:[jsxRuntime.jsx("span",{className:"m3-components-bigcalendar-event-title",children:a.title}),_&&jsxRuntime.jsxs("span",{className:"m3-components-bigcalendar-event-time",children:[a.start.toLocaleString("en-US",{hour:"numeric",minute:"2-digit",hour12:true}),a.end&&a.end instanceof Date&&!isNaN(a.end.getTime())&&` - ${a.end.toLocaleString("en-US",{hour:"numeric",minute:"2-digit",hour12:true})}`]}),l.eventTrailingIcon&&jsxRuntime.jsx("div",{className:"",style:{color:w},children:l.eventTrailingIcon})]})})})};function ke(a){return a<0?-1:a===0?0:1}function At(a,t,o){return (1-o)*a+o*t}function al(a,t,o){return o<a?a:o>t?t:o}function fe(a,t,o){return o<a?a:o>t?t:o}function Ha(a){return a=a%360,a<0&&(a=a+360),a}function Se(a){return a=a%360,a<0&&(a=a+360),a}function Fr(a,t){let o=a[0]*t[0][0]+a[1]*t[0][1]+a[2]*t[0][2],l=a[0]*t[1][0]+a[1]*t[1][1]+a[2]*t[1][2],c=a[0]*t[2][0]+a[1]*t[2][1]+a[2]*t[2][2];return [o,l,c]}var za=[[.41233895,.35762064,.18051042],[.2126,.7152,.0722],[.01932141,.11916382,.95034478]],nl=[[3.2413774792388685,-1.5376652402851851,-0.49885366846268053],[-0.9691452513005321,1.8758853451067872,.04156585616912061],[.05562093689691305,-0.20395524564742123,1.0571799111220335]],ja=[95.047,100,108.883];function Lr(a,t,o){return (255<<24|(a&255)<<16|(t&255)<<8|o&255)>>>0}function Va(a){let t=st(a[0]),o=st(a[1]),l=st(a[2]);return Lr(t,o,l)}function Ir(a){return a>>16&255}function Hr(a){return a>>8&255}function Vr(a){return a&255}function il(a,t,o){let l=nl,c=l[0][0]*a+l[0][1]*t+l[0][2]*o,d=l[1][0]*a+l[1][1]*t+l[1][2]*o,h=l[2][0]*a+l[2][1]*t+l[2][2]*o,g=st(c),w=st(d),k=st(h);return Lr(g,w,k)}function ol(a){let t=Ue(Ir(a)),o=Ue(Hr(a)),l=Ue(Vr(a));return Fr([t,o,l],za)}function sl(a){let t=Ue(Ir(a)),o=Ue(Hr(a)),l=Ue(Vr(a)),c=za,d=c[0][0]*t+c[0][1]*o+c[0][2]*l,h=c[1][0]*t+c[1][1]*o+c[1][2]*l,g=c[2][0]*t+c[2][1]*o+c[2][2]*l,w=ja,k=d/w[0],P=h/w[1],S=g/w[2],C=Nt(k),_=Nt(P),m=Nt(S),v=116*_-16,R=500*(C-_),U=200*(_-m);return [v,R,U]}function ll(a){let t=Je(a),o=st(t);return Lr(o,o,o)}function Ba(a){let t=ol(a)[1];return 116*Nt(t/100)-16}function Je(a){return 100*ul((a+16)/116)}function Rr(a){return Nt(a/100)*116-16}function Ue(a){let t=a/255;return t<=.040449936?t/12.92*100:Math.pow((t+.055)/1.055,2.4)*100}function st(a){let t=a/100,o=0;return t<=.0031308?o=t*12.92:o=1.055*Math.pow(t,1/2.4)-.055,al(0,255,Math.round(o*255))}function cl(){return ja}function Nt(a){let t=.008856451679035631,o=24389/27;return a>t?Math.pow(a,1/3):(o*a+16)/116}function ul(a){let t=.008856451679035631,o=24389/27,l=a*a*a;return l>t?l:(116*a-16)/o}var Qe=class Ga{static make(t=cl(),o=200/Math.PI*Je(50)/100,l=50,c=2,d=false){let h=t,g=h[0]*.401288+h[1]*.650173+h[2]*-0.051461,w=h[0]*-0.250268+h[1]*1.204414+h[2]*.045854,k=h[0]*-2079e-6+h[1]*.048952+h[2]*.953127,P=.8+c/10,S=P>=.9?At(.59,.69,(P-.9)*10):At(.525,.59,(P-.8)*10),C=d?1:P*(1-1/3.6*Math.exp((-o-42)/92));C=C>1?1:C<0?0:C;let _=P,m=[C*(100/g)+1-C,C*(100/w)+1-C,C*(100/k)+1-C],v=1/(5*o+1),R=v*v*v*v,U=1-R,X=R*o+.1*U*U*Math.cbrt(5*o),Z=Je(l)/t[1],te=1.48+Math.sqrt(Z),V=.725/Math.pow(Z,.2),j=V,q=[Math.pow(X*m[0]*g/100,.42),Math.pow(X*m[1]*w/100,.42),Math.pow(X*m[2]*k/100,.42)],I=[400*q[0]/(q[0]+27.13),400*q[1]/(q[1]+27.13),400*q[2]/(q[2]+27.13)],Q=(2*I[0]+I[1]+.05*I[2])*V;return new Ga(Z,Q,V,j,S,_,m,X,Math.pow(X,.25),te)}constructor(t,o,l,c,d,h,g,w,k,P){this.n=t,this.aw=o,this.nbb=l,this.ncb=c,this.c=d,this.nc=h,this.rgbD=g,this.fl=w,this.fLRoot=k,this.z=P;}};Qe.DEFAULT=Qe.make();var Ot=class Xe{constructor(t,o,l,c,d,h,g,w,k){this.hue=t,this.chroma=o,this.j=l,this.q=c,this.m=d,this.s=h,this.jstar=g,this.astar=w,this.bstar=k;}distance(t){let o=this.jstar-t.jstar,l=this.astar-t.astar,c=this.bstar-t.bstar,d=Math.sqrt(o*o+l*l+c*c);return 1.41*Math.pow(d,.63)}static fromInt(t){return Xe.fromIntInViewingConditions(t,Qe.DEFAULT)}static fromIntInViewingConditions(t,o){let l=(t&16711680)>>16,c=(t&65280)>>8,d=t&255,h=Ue(l),g=Ue(c),w=Ue(d),k=.41233895*h+.35762064*g+.18051042*w,P=.2126*h+.7152*g+.0722*w,S=.01932141*h+.11916382*g+.95034478*w,C=.401288*k+.650173*P-.051461*S,_=-0.250268*k+1.204414*P+.045854*S,m=-2079e-6*k+.048952*P+.953127*S,v=o.rgbD[0]*C,R=o.rgbD[1]*_,U=o.rgbD[2]*m,X=Math.pow(o.fl*Math.abs(v)/100,.42),Z=Math.pow(o.fl*Math.abs(R)/100,.42),te=Math.pow(o.fl*Math.abs(U)/100,.42),V=ke(v)*400*X/(X+27.13),j=ke(R)*400*Z/(Z+27.13),q=ke(U)*400*te/(te+27.13),I=(11*V+-12*j+q)/11,Q=(V+j-2*q)/9,be=(20*V+20*j+21*q)/20,ie=(40*V+20*j+q)/20,he=Math.atan2(Q,I)*180/Math.PI,we=Se(he),W=we*Math.PI/180,me=ie*o.nbb,ve=100*Math.pow(me/o.aw,o.c*o.z),tt=4/o.c*Math.sqrt(ve/100)*(o.aw+4)*o.fLRoot,pe=we<20.14?we+360:we,ze=.25*(Math.cos(pe*Math.PI/180+2)+3.8),je=5e4/13*ze*o.nc*o.ncb*Math.sqrt(I*I+Q*Q)/(be+.305),Ge=Math.pow(je,.9)*Math.pow(1.64-Math.pow(.29,o.n),.73),Ae=Ge*Math.sqrt(ve/100),A=Ae*o.fLRoot,nr=50*Math.sqrt(Ge*o.c/(o.aw+4)),ir=(1+100*.007)*ve/(1+.007*ve),rt=1/.0228*Math.log(1+.0228*A),Ft=rt*Math.cos(W),or=rt*Math.sin(W);return new Xe(we,Ae,ve,tt,A,nr,ir,Ft,or)}static fromJch(t,o,l){return Xe.fromJchInViewingConditions(t,o,l,Qe.DEFAULT)}static fromJchInViewingConditions(t,o,l,c){let d=4/c.c*Math.sqrt(t/100)*(c.aw+4)*c.fLRoot,h=o*c.fLRoot,g=o/Math.sqrt(t/100),w=50*Math.sqrt(g*c.c/(c.aw+4)),k=l*Math.PI/180,P=(1+100*.007)*t/(1+.007*t),S=1/.0228*Math.log(1+.0228*h),C=S*Math.cos(k),_=S*Math.sin(k);return new Xe(l,o,t,d,h,w,P,C,_)}static fromUcs(t,o,l){return Xe.fromUcsInViewingConditions(t,o,l,Qe.DEFAULT)}static fromUcsInViewingConditions(t,o,l,c){let d=o,h=l,g=Math.sqrt(d*d+h*h),w=(Math.exp(g*.0228)-1)/.0228/c.fLRoot,k=Math.atan2(h,d)*(180/Math.PI);k<0&&(k+=360);let P=t/(1-(t-100)*.007);return Xe.fromJchInViewingConditions(P,w,k,c)}toInt(){return this.viewed(Qe.DEFAULT)}viewed(t){let o=this.chroma===0||this.j===0?0:this.chroma/Math.sqrt(this.j/100),l=Math.pow(o/Math.pow(1.64-Math.pow(.29,t.n),.73),1/.9),c=this.hue*Math.PI/180,d=.25*(Math.cos(c+2)+3.8),h=t.aw*Math.pow(this.j/100,1/t.c/t.z),g=d*(5e4/13)*t.nc*t.ncb,w=h/t.nbb,k=Math.sin(c),P=Math.cos(c),S=23*(w+.305)*l/(23*g+11*l*P+108*l*k),C=S*P,_=S*k,m=(460*w+451*C+288*_)/1403,v=(460*w-891*C-261*_)/1403,R=(460*w-220*C-6300*_)/1403,U=Math.max(0,27.13*Math.abs(m)/(400-Math.abs(m))),X=ke(m)*(100/t.fl)*Math.pow(U,1/.42),Z=Math.max(0,27.13*Math.abs(v)/(400-Math.abs(v))),te=ke(v)*(100/t.fl)*Math.pow(Z,1/.42),V=Math.max(0,27.13*Math.abs(R)/(400-Math.abs(R))),j=ke(R)*(100/t.fl)*Math.pow(V,1/.42),q=X/t.rgbD[0],I=te/t.rgbD[1],Q=j/t.rgbD[2],be=1.86206786*q-1.01125463*I+.14918677*Q,ie=.38752654*q+.62144744*I-.00897398*Q,he=-0.0158415*q-.03412294*I+1.04996444*Q;return il(be,ie,he)}static fromXyzInViewingConditions(t,o,l,c){let d=.401288*t+.650173*o-.051461*l,h=-0.250268*t+1.204414*o+.045854*l,g=-2079e-6*t+.048952*o+.953127*l,w=c.rgbD[0]*d,k=c.rgbD[1]*h,P=c.rgbD[2]*g,S=Math.pow(c.fl*Math.abs(w)/100,.42),C=Math.pow(c.fl*Math.abs(k)/100,.42),_=Math.pow(c.fl*Math.abs(P)/100,.42),m=ke(w)*400*S/(S+27.13),v=ke(k)*400*C/(C+27.13),R=ke(P)*400*_/(_+27.13),U=(11*m+-12*v+R)/11,X=(m+v-2*R)/9,Z=(20*m+20*v+21*R)/20,te=(40*m+20*v+R)/20,V=Math.atan2(X,U)*180/Math.PI,j=V<0?V+360:V>=360?V-360:V,q=j*Math.PI/180,I=te*c.nbb,Q=100*Math.pow(I/c.aw,c.c*c.z),be=4/c.c*Math.sqrt(Q/100)*(c.aw+4)*c.fLRoot,ie=j<20.14?j+360:j,he=1/4*(Math.cos(ie*Math.PI/180+2)+3.8),we=5e4/13*he*c.nc*c.ncb*Math.sqrt(U*U+X*X)/(Z+.305),W=Math.pow(we,.9)*Math.pow(1.64-Math.pow(.29,c.n),.73),me=W*Math.sqrt(Q/100),ve=me*c.fLRoot,tt=50*Math.sqrt(W*c.c/(c.aw+4)),pe=(1+100*.007)*Q/(1+.007*Q),ze=Math.log(1+.0228*ve)/.0228,je=ze*Math.cos(q),Ge=ze*Math.sin(q);return new Xe(j,me,Q,be,ve,tt,pe,je,Ge)}xyzInViewingConditions(t){let o=this.chroma===0||this.j===0?0:this.chroma/Math.sqrt(this.j/100),l=Math.pow(o/Math.pow(1.64-Math.pow(.29,t.n),.73),1/.9),c=this.hue*Math.PI/180,d=.25*(Math.cos(c+2)+3.8),h=t.aw*Math.pow(this.j/100,1/t.c/t.z),g=d*(5e4/13)*t.nc*t.ncb,w=h/t.nbb,k=Math.sin(c),P=Math.cos(c),S=23*(w+.305)*l/(23*g+11*l*P+108*l*k),C=S*P,_=S*k,m=(460*w+451*C+288*_)/1403,v=(460*w-891*C-261*_)/1403,R=(460*w-220*C-6300*_)/1403,U=Math.max(0,27.13*Math.abs(m)/(400-Math.abs(m))),X=ke(m)*(100/t.fl)*Math.pow(U,1/.42),Z=Math.max(0,27.13*Math.abs(v)/(400-Math.abs(v))),te=ke(v)*(100/t.fl)*Math.pow(Z,1/.42),V=Math.max(0,27.13*Math.abs(R)/(400-Math.abs(R))),j=ke(R)*(100/t.fl)*Math.pow(V,1/.42),q=X/t.rgbD[0],I=te/t.rgbD[1],Q=j/t.rgbD[2],be=1.86206786*q-1.01125463*I+.14918677*Q,ie=.38752654*q+.62144744*I-.00897398*Q,he=-0.0158415*q-.03412294*I+1.04996444*Q;return [be,ie,he]}},et=class H{static sanitizeRadians(t){return (t+Math.PI*8)%(Math.PI*2)}static trueDelinearized(t){let o=t/100,l=0;return o<=.0031308?l=o*12.92:l=1.055*Math.pow(o,1/2.4)-.055,l*255}static chromaticAdaptation(t){let o=Math.pow(Math.abs(t),.42);return ke(t)*400*o/(o+27.13)}static hueOf(t){let o=Fr(t,H.SCALED_DISCOUNT_FROM_LINRGB),l=H.chromaticAdaptation(o[0]),c=H.chromaticAdaptation(o[1]),d=H.chromaticAdaptation(o[2]),h=(11*l+-12*c+d)/11,g=(l+c-2*d)/9;return Math.atan2(g,h)}static areInCyclicOrder(t,o,l){let c=H.sanitizeRadians(o-t),d=H.sanitizeRadians(l-t);return c<d}static intercept(t,o,l){return (o-t)/(l-t)}static lerpPoint(t,o,l){return [t[0]+(l[0]-t[0])*o,t[1]+(l[1]-t[1])*o,t[2]+(l[2]-t[2])*o]}static setCoordinate(t,o,l,c){let d=H.intercept(t[c],o,l[c]);return H.lerpPoint(t,d,l)}static isBounded(t){return 0<=t&&t<=100}static nthVertex(t,o){let l=H.Y_FROM_LINRGB[0],c=H.Y_FROM_LINRGB[1],d=H.Y_FROM_LINRGB[2],h=o%4<=1?0:100,g=o%2===0?0:100;if(o<4){let w=h,k=g,P=(t-w*c-k*d)/l;return H.isBounded(P)?[P,w,k]:[-1,-1,-1]}else if(o<8){let w=h,k=g,P=(t-k*l-w*d)/c;return H.isBounded(P)?[k,P,w]:[-1,-1,-1]}else {let w=h,k=g,P=(t-w*l-k*c)/d;return H.isBounded(P)?[w,k,P]:[-1,-1,-1]}}static bisectToSegment(t,o){let l=[-1,-1,-1],c=l,d=0,h=0,g=false,w=true;for(let k=0;k<12;k++){let P=H.nthVertex(t,k);if(P[0]<0)continue;let S=H.hueOf(P);if(!g){l=P,c=P,d=S,h=S,g=true;continue}(w||H.areInCyclicOrder(d,S,h))&&(w=false,H.areInCyclicOrder(d,o,S)?(c=P,h=S):(l=P,d=S));}return [l,c]}static midpoint(t,o){return [(t[0]+o[0])/2,(t[1]+o[1])/2,(t[2]+o[2])/2]}static criticalPlaneBelow(t){return Math.floor(t-.5)}static criticalPlaneAbove(t){return Math.ceil(t-.5)}static bisectToLimit(t,o){let l=H.bisectToSegment(t,o),c=l[0],d=H.hueOf(c),h=l[1];for(let g=0;g<3;g++)if(c[g]!==h[g]){let w=-1,k=255;c[g]<h[g]?(w=H.criticalPlaneBelow(H.trueDelinearized(c[g])),k=H.criticalPlaneAbove(H.trueDelinearized(h[g]))):(w=H.criticalPlaneAbove(H.trueDelinearized(c[g])),k=H.criticalPlaneBelow(H.trueDelinearized(h[g])));for(let P=0;P<8&&!(Math.abs(k-w)<=1);P++){let S=Math.floor((w+k)/2),C=H.CRITICAL_PLANES[S],_=H.setCoordinate(c,C,h,g),m=H.hueOf(_);H.areInCyclicOrder(d,o,m)?(h=_,k=S):(c=_,d=m,w=S);}}return H.midpoint(c,h)}static inverseChromaticAdaptation(t){let o=Math.abs(t),l=Math.max(0,27.13*o/(400-o));return ke(t)*Math.pow(l,1/.42)}static findResultByJ(t,o,l){let c=Math.sqrt(l)*11,d=Qe.DEFAULT,h=1/Math.pow(1.64-Math.pow(.29,d.n),.73),g=.25*(Math.cos(t+2)+3.8)*(5e4/13)*d.nc*d.ncb,w=Math.sin(t),k=Math.cos(t);for(let P=0;P<5;P++){let S=c/100,C=o===0||c===0?0:o/Math.sqrt(S),_=Math.pow(C*h,1/.9),m=d.aw*Math.pow(S,1/d.c/d.z)/d.nbb,v=23*(m+.305)*_/(23*g+11*_*k+108*_*w),R=v*k,U=v*w,X=(460*m+451*R+288*U)/1403,Z=(460*m-891*R-261*U)/1403,te=(460*m-220*R-6300*U)/1403,V=H.inverseChromaticAdaptation(X),j=H.inverseChromaticAdaptation(Z),q=H.inverseChromaticAdaptation(te),I=Fr([V,j,q],H.LINRGB_FROM_SCALED_DISCOUNT);if(I[0]<0||I[1]<0||I[2]<0)return 0;let Q=H.Y_FROM_LINRGB[0],be=H.Y_FROM_LINRGB[1],ie=H.Y_FROM_LINRGB[2],he=Q*I[0]+be*I[1]+ie*I[2];if(he<=0)return 0;if(P===4||Math.abs(he-l)<.002)return I[0]>100.01||I[1]>100.01||I[2]>100.01?0:Va(I);c=c-(he-l)*c/(2*he);}return 0}static solveToInt(t,o,l){if(o<1e-4||l<1e-4||l>99.9999)return ll(l);t=Se(t);let c=t/180*Math.PI,d=Je(l),h=H.findResultByJ(c,o,d);if(h!==0)return h;let g=H.bisectToLimit(d,c);return Va(g)}static solveToCam(t,o,l){return Ot.fromInt(H.solveToInt(t,o,l))}};et.SCALED_DISCOUNT_FROM_LINRGB=[[.001200833568784504,.002389694492170889,.0002795742885861124],[.0005891086651375999,.0029785502573438758,.0003270666104008398],[.00010146692491640572,.0005364214359186694,.0032979401770712076]];et.LINRGB_FROM_SCALED_DISCOUNT=[[1373.2198709594231,-1100.4251190754821,-7.278681089101213],[-271.815969077903,559.6580465940733,-32.46047482791194],[1.9622899599665666,-57.173814538844006,308.7233197812385]];et.Y_FROM_LINRGB=[.2126,.7152,.0722];et.CRITICAL_PLANES=[.015176349177441876,.045529047532325624,.07588174588720938,.10623444424209313,.13658714259697685,.16693984095186062,.19729253930674434,.2276452376616281,.2579979360165119,.28835063437139563,.3188300904430532,.350925934958123,.3848314933096426,.42057480301049466,.458183274052838,.4976837250274023,.5391024159806381,.5824650784040898,.6277969426914107,.6751227633498623,.7244668422128921,.775853049866786,.829304845476233,.8848452951698498,.942497089126609,1.0022825574869039,1.0642236851973577,1.1283421258858297,1.1946592148522128,1.2631959812511864,1.3339731595349034,1.407011200216447,1.4823302800086415,1.5599503113873272,1.6398909516233677,1.7221716113234105,1.8068114625156377,1.8938294463134073,1.9832442801866852,2.075074464868551,2.1693382909216234,2.2660538449872063,2.36523901573795,2.4669114995532007,2.5710888059345764,2.6777882626779785,2.7870270208169257,2.898822059350997,3.0131901897720907,3.1301480604002863,3.2497121605402226,3.3718988244681087,3.4967242352587946,3.624204428461639,3.754355295633311,3.887192587735158,4.022731918402185,4.160988767090289,4.301978482107941,4.445716283538092,4.592217266055746,4.741496401646282,4.893568542229298,5.048448422192488,5.20615066083972,5.3666897647573375,5.5300801301023865,5.696336044816294,5.865471690767354,6.037501145825082,6.212438385869475,6.390297286737924,6.571091626112461,6.7548350853498045,6.941541251256611,7.131223617812143,7.323895587840543,7.5195704746346665,7.7182615035334345,7.919981813454504,8.124744458384042,8.332562408825165,8.543448553206703,8.757415699253682,8.974476575321063,9.194643831691977,9.417930041841839,9.644347703669503,9.873909240696694,10.106627003236781,10.342513269534024,10.58158024687427,10.8238400726681,11.069304815507364,11.317986476196008,11.569896988756009,11.825048221409341,12.083451977536606,12.345119996613247,12.610063955123938,12.878295467455942,13.149826086772048,13.42466730586372,13.702830557985108,13.984327217668513,14.269168601521828,14.55736596900856,14.848930523210871,15.143873411576273,15.44220572664832,15.743938506781891,16.04908273684337,16.35764934889634,16.66964922287304,16.985093187232053,17.30399201960269,17.62635644741625,17.95219714852476,18.281524751807332,18.614349837764564,18.95068293910138,19.290534541298456,19.633915083172692,19.98083495742689,20.331304511189067,20.685334046541502,21.042933821039977,21.404114048223256,21.76888489811322,22.137256497705877,22.50923893145328,22.884842241736916,23.264076429332462,23.6469514538663,24.033477234264016,24.42366364919083,24.817520537484558,25.21505769858089,25.61628489293138,26.021211842414342,26.429848230738664,26.842203703840827,27.258287870275353,27.678110301598522,28.10168053274597,28.529008062403893,28.96010235337422,29.39497283293396,29.83362889318845,30.276079891419332,30.722335150426627,31.172403958865512,31.62629557157785,32.08401920991837,32.54558406207592,33.010999283389665,33.4802739966603,33.953417292456834,34.430438229418264,34.911345834551085,35.39614910352207,35.88485700094671,36.37747846067349,36.87402238606382,37.37449765026789,37.87891309649659,38.38727753828926,38.89959975977785,39.41588851594697,39.93615253289054,40.460400508064545,40.98864111053629,41.520882981230194,42.05713473317016,42.597404951718396,43.141702194811224,43.6900349931913,44.24241185063697,44.798841244188324,45.35933162437017,45.92389141541209,46.49252901546552,47.065252796817916,47.64207110610409,48.22299226451468,48.808024568002054,49.3971762874833,49.9904556690408,50.587870934119984,51.189430279724725,51.79514187861014,52.40501387947288,53.0190544071392,53.637271562750364,54.259673423945976,54.88626804504493,55.517063457223934,56.15206766869424,56.79128866487574,57.43473440856916,58.08241284012621,58.734331877617365,59.39049941699807,60.05092333227251,60.715611475655585,61.38457167773311,62.057811747619894,62.7353394731159,63.417162620860914,64.10328893648692,64.79372614476921,65.48848194977529,66.18756403501224,66.89098006357258,67.59873767827808,68.31084450182222,69.02730813691093,69.74813616640164,70.47333615344107,71.20291564160104,71.93688215501312,72.67524319850172,73.41800625771542,74.16517879925733,74.9167682708136,75.67278210128072,76.43322770089146,77.1981124613393,77.96744375590167,78.74122893956174,79.51947534912904,80.30219030335869,81.08938110306934,81.88105503125999,82.67721935322541,83.4778813166706,84.28304815182372,85.09272707154808,85.90692527145302,86.72564993000343,87.54890820862819,88.3767072518277,89.2090541872801,90.04595612594655,90.88742016217518,91.73345337380438,92.58406282226491,93.43925555268066,94.29903859396902,95.16341895893969,96.03240364439274,96.9059996312159,97.78421388448044,98.6670533535366,99.55452497210776];var L=class Qt{static from(t,o,l){return new Qt(et.solveToInt(t,o,l))}static fromInt(t){return new Qt(t)}toInt(){return this.argb}get hue(){return this.internalHue}set hue(t){this.setInternalState(et.solveToInt(t,this.internalChroma,this.internalTone));}get chroma(){return this.internalChroma}set chroma(t){this.setInternalState(et.solveToInt(this.internalHue,t,this.internalTone));}get tone(){return this.internalTone}set tone(t){this.setInternalState(et.solveToInt(this.internalHue,this.internalChroma,t));}setValue(t,o){this[t]=o;}toString(){return `HCT(${this.hue.toFixed(0)}, ${this.chroma.toFixed(0)}, ${this.tone.toFixed(0)})`}static isBlue(t){return t>=250&&t<270}static isYellow(t){return t>=105&&t<125}static isCyan(t){return t>=170&&t<207}constructor(t){this.argb=t;let o=Ot.fromInt(t);this.internalHue=o.hue,this.internalChroma=o.chroma,this.internalTone=Ba(t),this.argb=t;}setInternalState(t){let o=Ot.fromInt(t);this.internalHue=o.hue,this.internalChroma=o.chroma,this.internalTone=Ba(t),this.argb=t;}inViewingConditions(t){let o=Ot.fromInt(this.toInt()).xyzInViewingConditions(t),l=Ot.fromXyzInViewingConditions(o[0],o[1],o[2],Qe.make());return Qt.from(l.hue,l.chroma,Rr(o[1]))}},de=class wt{static ratioOfTones(t,o){return t=fe(0,100,t),o=fe(0,100,o),wt.ratioOfYs(Je(t),Je(o))}static ratioOfYs(t,o){let l=t>o?t:o,c=l===o?t:o;return (l+5)/(c+5)}static lighter(t,o){if(t<0||t>100)return -1;let l=Je(t),c=o*(l+5)-5,d=wt.ratioOfYs(c,l),h=Math.abs(d-o);if(d<o&&h>.04)return -1;let g=Rr(c)+.4;return g<0||g>100?-1:g}static darker(t,o){if(t<0||t>100)return -1;let l=Je(t),c=(l+5)/o-5,d=wt.ratioOfYs(l,c),h=Math.abs(d-o);if(d<o&&h>.04)return -1;let g=Rr(c)-.4;return g<0||g>100?-1:g}static lighterUnsafe(t,o){let l=wt.lighter(t,o);return l<0?100:l}static darkerUnsafe(t,o){let l=wt.darker(t,o);return l<0?0:l}},Yr=class $a{static isDisliked(t){let o=Math.round(t.hue)>=90&&Math.round(t.hue)<=111,l=Math.round(t.chroma)>16,c=Math.round(t.tone)<65;return o&&l&&c}static fixIfDisliked(t){return $a.isDisliked(t)?L.from(t.hue,t.chroma,70):t}};function dl(a,t,o){if(a.name!==o.name)throw new Error(`Attempting to extend color ${a.name} with color ${o.name} of different name for spec version ${t}.`);if(a.isBackground!==o.isBackground)throw new Error(`Attempting to extend color ${a.name} as a ${a.isBackground?"background":"foreground"} with color ${o.name} as a ${o.isBackground?"background":"foreground"} for spec version ${t}.`)}function Y(a,t,o){return dl(a,t,o),y.fromPalette({name:a.name,palette:l=>l.specVersion===t?o.palette(l):a.palette(l),tone:l=>l.specVersion===t?o.tone(l):a.tone(l),isBackground:a.isBackground,chromaMultiplier:l=>{let c=l.specVersion===t?o.chromaMultiplier:a.chromaMultiplier;return c!==void 0?c(l):1},background:l=>{let c=l.specVersion===t?o.background:a.background;return c!==void 0?c(l):void 0},secondBackground:l=>{let c=l.specVersion===t?o.secondBackground:a.secondBackground;return c!==void 0?c(l):void 0},contrastCurve:l=>{let c=l.specVersion===t?o.contrastCurve:a.contrastCurve;return c!==void 0?c(l):void 0},toneDeltaPair:l=>{let c=l.specVersion===t?o.toneDeltaPair:a.toneDeltaPair;return c!==void 0?c(l):void 0}})}var y=class ot{static fromPalette(t){return new ot(t.name??"",t.palette,t.tone??ot.getInitialToneFromBackground(t.background),t.isBackground??false,t.chromaMultiplier,t.background,t.secondBackground,t.contrastCurve,t.toneDeltaPair)}static getInitialToneFromBackground(t){return t===void 0?o=>50:o=>t(o)?t(o).getTone(o):50}constructor(t,o,l,c,d,h,g,w,k){if(this.name=t,this.palette=o,this.tone=l,this.isBackground=c,this.chromaMultiplier=d,this.background=h,this.secondBackground=g,this.contrastCurve=w,this.toneDeltaPair=k,this.hctCache=new Map,!h&&g)throw new Error(`Color ${t} has secondBackgrounddefined, but background is not defined.`);if(!h&&w)throw new Error(`Color ${t} has contrastCurvedefined, but background is not defined.`);if(h&&!w)throw new Error(`Color ${t} has backgrounddefined, but contrastCurve is not defined.`)}clone(){return ot.fromPalette({name:this.name,palette:this.palette,tone:this.tone,isBackground:this.isBackground,chromaMultiplier:this.chromaMultiplier,background:this.background,secondBackground:this.secondBackground,contrastCurve:this.contrastCurve,toneDeltaPair:this.toneDeltaPair})}clearCache(){this.hctCache.clear();}getArgb(t){return this.getHct(t).toInt()}getHct(t){let o=this.hctCache.get(t);if(o!=null)return o;let l=Ua(t.specVersion).getHct(t,this);return this.hctCache.size>4&&this.hctCache.clear(),this.hctCache.set(t,l),l}getTone(t){return Ua(t.specVersion).getTone(t,this)}static foregroundTone(t,o){let l=de.lighterUnsafe(t,o),c=de.darkerUnsafe(t,o),d=de.ratioOfTones(l,t),h=de.ratioOfTones(c,t);if(ot.tonePrefersLightForeground(t)){let g=Math.abs(d-h)<.1&&d<o&&h<o;return d>=o||d>=h||g?l:c}else return h>=o||h>=d?c:l}static tonePrefersLightForeground(t){return Math.round(t)<60}static toneAllowsLightForeground(t){return Math.round(t)<=49}static enableLightForeground(t){return ot.tonePrefersLightForeground(t)&&!ot.toneAllowsLightForeground(t)?49:t}},hl=class{getHct(a,t){let o=t.getTone(a);return t.palette(a).getHct(o)}getTone(a,t){let o=a.contrastLevel<0,l=t.toneDeltaPair?t.toneDeltaPair(a):void 0;if(l){let c=l.roleA,d=l.roleB,h=l.delta,g=l.polarity,w=l.stayTogether,k=g==="nearer"||g==="lighter"&&!a.isDark||g==="darker"&&a.isDark,P=k?c:d,S=k?d:c,C=t.name===P.name,_=a.isDark?1:-1,m=P.tone(a),v=S.tone(a);if(t.background&&P.contrastCurve&&S.contrastCurve){let R=t.background(a),U=P.contrastCurve(a),X=S.contrastCurve(a);if(R&&U&&X){let Z=R.getTone(a),te=U.get(a.contrastLevel),V=X.get(a.contrastLevel);de.ratioOfTones(Z,m)<te&&(m=y.foregroundTone(Z,te)),de.ratioOfTones(Z,v)<V&&(v=y.foregroundTone(Z,V)),o&&(m=y.foregroundTone(Z,te),v=y.foregroundTone(Z,V));}}return (v-m)*_<h&&(v=fe(0,100,m+h*_),(v-m)*_>=h||(m=fe(0,100,v-h*_))),50<=m&&m<60?_>0?(m=60,v=Math.max(v,m+h*_)):(m=49,v=Math.min(v,m+h*_)):50<=v&&v<60&&(w?_>0?(m=60,v=Math.max(v,m+h*_)):(m=49,v=Math.min(v,m+h*_)):_>0?v=60:v=49),C?m:v}else {let c=t.tone(a);if(t.background==null||t.background(a)===void 0||t.contrastCurve==null||t.contrastCurve(a)===void 0)return c;let d=t.background(a).getTone(a),h=t.contrastCurve(a).get(a.contrastLevel);if(de.ratioOfTones(d,c)>=h||(c=y.foregroundTone(d,h)),o&&(c=y.foregroundTone(d,h)),t.isBackground&&50<=c&&c<60&&(de.ratioOfTones(49,d)>=h?c=49:c=60),t.secondBackground==null||t.secondBackground(a)===void 0)return c;let[g,w]=[t.background,t.secondBackground],[k,P]=[g(a).getTone(a),w(a).getTone(a)],[S,C]=[Math.max(k,P),Math.min(k,P)];if(de.ratioOfTones(S,c)>=h&&de.ratioOfTones(C,c)>=h)return c;let _=de.lighter(S,h),m=de.darker(C,h),v=[];return _!==-1&&v.push(_),m!==-1&&v.push(m),y.tonePrefersLightForeground(k)||y.tonePrefersLightForeground(P)?_<0?100:_:v.length===1?v[0]:m<0?0:m}}},fl=class{getHct(a,t){let o=t.palette(a),l=t.getTone(a),c=o.hue,d=o.chroma*(t.chromaMultiplier?t.chromaMultiplier(a):1);return L.from(c,d,l)}getTone(a,t){let o=t.toneDeltaPair?t.toneDeltaPair(a):void 0;if(o){let l=o.roleA,c=o.roleB,d=o.polarity,h=o.constraint,g=d==="darker"||d==="relative_lighter"&&a.isDark||d==="relative_darker"&&!a.isDark?-o.delta:o.delta,w=t.name===l.name,k=w?l:c,P=w?c:l,S=k.tone(a),C=P.getTone(a),_=g*(w?1:-1);if(h==="exact"?S=fe(0,100,C+_):h==="nearer"?_>0?S=fe(0,100,fe(C,C+_,S)):S=fe(0,100,fe(C+_,C,S)):h==="farther"&&(_>0?S=fe(C+_,100,S):S=fe(0,C+_,S)),t.background&&t.contrastCurve){let m=t.background(a),v=t.contrastCurve(a);if(m&&v){let R=m.getTone(a),U=v.get(a.contrastLevel);S=de.ratioOfTones(R,S)>=U&&a.contrastLevel>=0?S:y.foregroundTone(R,U);}}return t.isBackground&&!t.name.endsWith("_fixed_dim")&&(S>=57?S=fe(65,100,S):S=fe(0,49,S)),S}else {let l=t.tone(a);if(t.background==null||t.background(a)===void 0||t.contrastCurve==null||t.contrastCurve(a)===void 0)return l;let c=t.background(a).getTone(a),d=t.contrastCurve(a).get(a.contrastLevel);if(l=de.ratioOfTones(c,l)>=d&&a.contrastLevel>=0?l:y.foregroundTone(c,d),t.isBackground&&!t.name.endsWith("_fixed_dim")&&(l>=57?l=fe(65,100,l):l=fe(0,49,l)),t.secondBackground==null||t.secondBackground(a)===void 0)return l;let[h,g]=[t.background,t.secondBackground],[w,k]=[h(a).getTone(a),g(a).getTone(a)],[P,S]=[Math.max(w,k),Math.min(w,k)];if(de.ratioOfTones(P,l)>=d&&de.ratioOfTones(S,l)>=d)return l;let C=de.lighter(P,d),_=de.darker(S,d),m=[];return C!==-1&&m.push(C),_!==-1&&m.push(_),y.tonePrefersLightForeground(w)||y.tonePrefersLightForeground(k)?C<0?100:C:m.length===1?m[0]:_<0?0:_}}},ml=new hl,pl=new fl;function Ua(a){return a==="2025"?pl:ml}var T=class er{static fromInt(t){let o=L.fromInt(t);return er.fromHct(o)}static fromHct(t){return new er(t.hue,t.chroma,t)}static fromHueAndChroma(t,o){let l=new gl(t,o).create();return new er(t,o,l)}constructor(t,o,l){this.hue=t,this.chroma=o,this.keyColor=l,this.cache=new Map;}tone(t){let o=this.cache.get(t);return o===void 0&&(t==99&&L.isYellow(this.hue)?o=this.averageArgb(this.tone(98),this.tone(100)):o=L.from(this.hue,this.chroma,t).toInt(),this.cache.set(t,o)),o}getHct(t){return L.fromInt(this.tone(t))}averageArgb(t,o){let l=t>>>16&255,c=t>>>8&255,d=t&255,h=o>>>16&255,g=o>>>8&255,w=o&255,k=Math.round((l+h)/2),P=Math.round((c+g)/2),S=Math.round((d+w)/2);return (255<<24|(k&255)<<16|(P&255)<<8|S&255)>>>0}},gl=class{constructor(a,t){this.hue=a,this.requestedChroma=t,this.chromaCache=new Map,this.maxChromaValue=200;}create(){let a=0,t=100;for(;a<t;){let o=Math.floor((a+t)/2),l=this.maxChroma(o)<this.maxChroma(o+1);if(this.maxChroma(o)>=this.requestedChroma-.01)if(Math.abs(a-50)<Math.abs(t-50))t=o;else {if(a===o)return L.from(this.hue,this.requestedChroma,a);a=o;}else l?a=o+1:t=o;}return L.from(this.hue,this.requestedChroma,a)}maxChroma(a){if(this.chromaCache.has(a))return this.chromaCache.get(a);let t=L.from(this.hue,this.maxChromaValue,a).chroma;return this.chromaCache.set(a,t),t}},Wa=class tr{constructor(t){this.input=t,this.hctsByTempCache=[],this.hctsByHueCache=[],this.tempsByHctCache=new Map,this.inputRelativeTemperatureCache=-1,this.complementCache=null;}get hctsByTemp(){if(this.hctsByTempCache.length>0)return this.hctsByTempCache;let t=this.hctsByHue.concat([this.input]),o=this.tempsByHct;return t.sort((l,c)=>o.get(l)-o.get(c)),this.hctsByTempCache=t,t}get warmest(){return this.hctsByTemp[this.hctsByTemp.length-1]}get coldest(){return this.hctsByTemp[0]}analogous(t=5,o=12){let l=Math.round(this.input.hue),c=this.hctsByHue[l],d=this.relativeTemperature(c),h=[c],g=0;for(let m=0;m<360;m++){let v=Ha(l+m),R=this.hctsByHue[v],U=this.relativeTemperature(R),X=Math.abs(U-d);d=U,g+=X;}let w=1,k=g/o,P=0;for(d=this.relativeTemperature(c);h.length<o;){let m=Ha(l+w),v=this.hctsByHue[m],R=this.relativeTemperature(v),U=Math.abs(R-d);P+=U;let X=h.length*k,Z=P>=X,te=1;for(;Z&&h.length<o;){h.push(v);let V=(h.length+te)*k;Z=P>=V,te++;}if(d=R,w++,w>360){for(;h.length<o;)h.push(v);break}}let S=[this.input],C=Math.floor((t-1)/2);for(let m=1;m<C+1;m++){let v=0-m;for(;v<0;)v=h.length+v;v>=h.length&&(v=v%h.length),S.splice(0,0,h[v]);}let _=t-C-1;for(let m=1;m<_+1;m++){let v=m;for(;v<0;)v=h.length+v;v>=h.length&&(v=v%h.length),S.push(h[v]);}return S}get complement(){if(this.complementCache!=null)return this.complementCache;let t=this.coldest.hue,o=this.tempsByHct.get(this.coldest),l=this.warmest.hue,c=this.tempsByHct.get(this.warmest)-o,d=tr.isBetween(this.input.hue,t,l),h=d?l:t,g=d?t:l,w=1,k=1e3,P=this.hctsByHue[Math.round(this.input.hue)],S=1-this.inputRelativeTemperature;for(let C=0;C<=360;C+=1){let _=Se(h+w*C);if(!tr.isBetween(_,h,g))continue;let m=this.hctsByHue[Math.round(_)],v=(this.tempsByHct.get(m)-o)/c,R=Math.abs(S-v);R<k&&(k=R,P=m);}return this.complementCache=P,this.complementCache}relativeTemperature(t){let o=this.tempsByHct.get(this.warmest)-this.tempsByHct.get(this.coldest),l=this.tempsByHct.get(t)-this.tempsByHct.get(this.coldest);return o===0?.5:l/o}get inputRelativeTemperature(){return this.inputRelativeTemperatureCache>=0?this.inputRelativeTemperatureCache:(this.inputRelativeTemperatureCache=this.relativeTemperature(this.input),this.inputRelativeTemperatureCache)}get tempsByHct(){if(this.tempsByHctCache.size>0)return this.tempsByHctCache;let t=this.hctsByHue.concat([this.input]),o=new Map;for(let l of t)o.set(l,tr.rawTemperature(l));return this.tempsByHctCache=o,o}get hctsByHue(){if(this.hctsByHueCache.length>0)return this.hctsByHueCache;let t=[];for(let o=0;o<=360;o+=1){let l=L.from(o,this.input.chroma,this.input.tone);t.push(l);}return this.hctsByHueCache=t,this.hctsByHueCache}static isBetween(t,o,l){return o<l?o<=t&&t<=l:o<=t||t<=l}static rawTemperature(t){let o=sl(t.toInt()),l=Se(Math.atan2(o[2],o[1])*180/Math.PI),c=Math.sqrt(o[1]*o[1]+o[2]*o[2]);return -0.5+.02*Math.pow(c,1.07)*Math.cos(Se(l-50)*Math.PI/180)}},N=class{constructor(a,t,o,l){this.low=a,this.normal=t,this.medium=o,this.high=l;}get(a){return a<=-1?this.low:a<0?At(this.low,this.normal,(a- -1)/1):a<.5?At(this.normal,this.medium,(a-0)/.5):a<1?At(this.medium,this.high,(a-.5)/.5):this.high}},J=class{constructor(a,t,o,l,c,d){this.roleA=a,this.roleB=t,this.delta=o,this.polarity=l,this.stayTogether=c,this.constraint=d,this.constraint=d??"exact";}},f;(function(a){a[a.MONOCHROME=0]="MONOCHROME",a[a.NEUTRAL=1]="NEUTRAL",a[a.TONAL_SPOT=2]="TONAL_SPOT",a[a.VIBRANT=3]="VIBRANT",a[a.EXPRESSIVE=4]="EXPRESSIVE",a[a.FIDELITY=5]="FIDELITY",a[a.CONTENT=6]="CONTENT",a[a.RAINBOW=7]="RAINBOW",a[a.FRUIT_SALAD=8]="FRUIT_SALAD";})(f||(f={}));function yt(a){return a.variant===f.FIDELITY||a.variant===f.CONTENT}function oe(a){return a.variant===f.MONOCHROME}function yl(a,t,o,l){let c=o,d=L.from(a,t,o);if(d.chroma<t){let h=d.chroma;for(;d.chroma<t;){c+=l?-1:1;let g=L.from(a,t,c);if(h>g.chroma||Math.abs(g.chroma-t)<.4)break;let w=Math.abs(g.chroma-t),k=Math.abs(d.chroma-t);w<k&&(d=g),h=Math.max(h,g.chroma);}}return c}var bl=class{primaryPaletteKeyColor(){return y.fromPalette({name:"primary_palette_key_color",palette:a=>a.primaryPalette,tone:a=>a.primaryPalette.keyColor.tone})}secondaryPaletteKeyColor(){return y.fromPalette({name:"secondary_palette_key_color",palette:a=>a.secondaryPalette,tone:a=>a.secondaryPalette.keyColor.tone})}tertiaryPaletteKeyColor(){return y.fromPalette({name:"tertiary_palette_key_color",palette:a=>a.tertiaryPalette,tone:a=>a.tertiaryPalette.keyColor.tone})}neutralPaletteKeyColor(){return y.fromPalette({name:"neutral_palette_key_color",palette:a=>a.neutralPalette,tone:a=>a.neutralPalette.keyColor.tone})}neutralVariantPaletteKeyColor(){return y.fromPalette({name:"neutral_variant_palette_key_color",palette:a=>a.neutralVariantPalette,tone:a=>a.neutralVariantPalette.keyColor.tone})}errorPaletteKeyColor(){return y.fromPalette({name:"error_palette_key_color",palette:a=>a.errorPalette,tone:a=>a.errorPalette.keyColor.tone})}background(){return y.fromPalette({name:"background",palette:a=>a.neutralPalette,tone:a=>a.isDark?6:98,isBackground:true})}onBackground(){return y.fromPalette({name:"on_background",palette:a=>a.neutralPalette,tone:a=>a.isDark?90:10,background:a=>this.background(),contrastCurve:a=>new N(3,3,4.5,7)})}surface(){return y.fromPalette({name:"surface",palette:a=>a.neutralPalette,tone:a=>a.isDark?6:98,isBackground:true})}surfaceDim(){return y.fromPalette({name:"surface_dim",palette:a=>a.neutralPalette,tone:a=>a.isDark?6:new N(87,87,80,75).get(a.contrastLevel),isBackground:true})}surfaceBright(){return y.fromPalette({name:"surface_bright",palette:a=>a.neutralPalette,tone:a=>a.isDark?new N(24,24,29,34).get(a.contrastLevel):98,isBackground:true})}surfaceContainerLowest(){return y.fromPalette({name:"surface_container_lowest",palette:a=>a.neutralPalette,tone:a=>a.isDark?new N(4,4,2,0).get(a.contrastLevel):100,isBackground:true})}surfaceContainerLow(){return y.fromPalette({name:"surface_container_low",palette:a=>a.neutralPalette,tone:a=>a.isDark?new N(10,10,11,12).get(a.contrastLevel):new N(96,96,96,95).get(a.contrastLevel),isBackground:true})}surfaceContainer(){return y.fromPalette({name:"surface_container",palette:a=>a.neutralPalette,tone:a=>a.isDark?new N(12,12,16,20).get(a.contrastLevel):new N(94,94,92,90).get(a.contrastLevel),isBackground:true})}surfaceContainerHigh(){return y.fromPalette({name:"surface_container_high",palette:a=>a.neutralPalette,tone:a=>a.isDark?new N(17,17,21,25).get(a.contrastLevel):new N(92,92,88,85).get(a.contrastLevel),isBackground:true})}surfaceContainerHighest(){return y.fromPalette({name:"surface_container_highest",palette:a=>a.neutralPalette,tone:a=>a.isDark?new N(22,22,26,30).get(a.contrastLevel):new N(90,90,84,80).get(a.contrastLevel),isBackground:true})}onSurface(){return y.fromPalette({name:"on_surface",palette:a=>a.neutralPalette,tone:a=>a.isDark?90:10,background:a=>this.highestSurface(a),contrastCurve:a=>new N(4.5,7,11,21)})}surfaceVariant(){return y.fromPalette({name:"surface_variant",palette:a=>a.neutralVariantPalette,tone:a=>a.isDark?30:90,isBackground:true})}onSurfaceVariant(){return y.fromPalette({name:"on_surface_variant",palette:a=>a.neutralVariantPalette,tone:a=>a.isDark?80:30,background:a=>this.highestSurface(a),contrastCurve:a=>new N(3,4.5,7,11)})}inverseSurface(){return y.fromPalette({name:"inverse_surface",palette:a=>a.neutralPalette,tone:a=>a.isDark?90:20,isBackground:true})}inverseOnSurface(){return y.fromPalette({name:"inverse_on_surface",palette:a=>a.neutralPalette,tone:a=>a.isDark?20:95,background:a=>this.inverseSurface(),contrastCurve:a=>new N(4.5,7,11,21)})}outline(){return y.fromPalette({name:"outline",palette:a=>a.neutralVariantPalette,tone:a=>a.isDark?60:50,background:a=>this.highestSurface(a),contrastCurve:a=>new N(1.5,3,4.5,7)})}outlineVariant(){return y.fromPalette({name:"outline_variant",palette:a=>a.neutralVariantPalette,tone:a=>a.isDark?30:80,background:a=>this.highestSurface(a),contrastCurve:a=>new N(1,1,3,4.5)})}shadow(){return y.fromPalette({name:"shadow",palette:a=>a.neutralPalette,tone:a=>0})}scrim(){return y.fromPalette({name:"scrim",palette:a=>a.neutralPalette,tone:a=>0})}surfaceTint(){return y.fromPalette({name:"surface_tint",palette:a=>a.primaryPalette,tone:a=>a.isDark?80:40,isBackground:true})}primary(){return y.fromPalette({name:"primary",palette:a=>a.primaryPalette,tone:a=>oe(a)?a.isDark?100:0:a.isDark?80:40,isBackground:true,background:a=>this.highestSurface(a),contrastCurve:a=>new N(3,4.5,7,7),toneDeltaPair:a=>new J(this.primaryContainer(),this.primary(),10,"nearer",false)})}primaryDim(){}onPrimary(){return y.fromPalette({name:"on_primary",palette:a=>a.primaryPalette,tone:a=>oe(a)?a.isDark?10:90:a.isDark?20:100,background:a=>this.primary(),contrastCurve:a=>new N(4.5,7,11,21)})}primaryContainer(){return y.fromPalette({name:"primary_container",palette:a=>a.primaryPalette,tone:a=>yt(a)?a.sourceColorHct.tone:oe(a)?a.isDark?85:25:a.isDark?30:90,isBackground:true,background:a=>this.highestSurface(a),contrastCurve:a=>new N(1,1,3,4.5),toneDeltaPair:a=>new J(this.primaryContainer(),this.primary(),10,"nearer",false)})}onPrimaryContainer(){return y.fromPalette({name:"on_primary_container",palette:a=>a.primaryPalette,tone:a=>yt(a)?y.foregroundTone(this.primaryContainer().tone(a),4.5):oe(a)?a.isDark?0:100:a.isDark?90:30,background:a=>this.primaryContainer(),contrastCurve:a=>new N(3,4.5,7,11)})}inversePrimary(){return y.fromPalette({name:"inverse_primary",palette:a=>a.primaryPalette,tone:a=>a.isDark?40:80,background:a=>this.inverseSurface(),contrastCurve:a=>new N(3,4.5,7,7)})}secondary(){return y.fromPalette({name:"secondary",palette:a=>a.secondaryPalette,tone:a=>a.isDark?80:40,isBackground:true,background:a=>this.highestSurface(a),contrastCurve:a=>new N(3,4.5,7,7),toneDeltaPair:a=>new J(this.secondaryContainer(),this.secondary(),10,"nearer",false)})}secondaryDim(){}onSecondary(){return y.fromPalette({name:"on_secondary",palette:a=>a.secondaryPalette,tone:a=>oe(a)?a.isDark?10:100:a.isDark?20:100,background:a=>this.secondary(),contrastCurve:a=>new N(4.5,7,11,21)})}secondaryContainer(){return y.fromPalette({name:"secondary_container",palette:a=>a.secondaryPalette,tone:a=>{let t=a.isDark?30:90;return oe(a)?a.isDark?30:85:yt(a)?yl(a.secondaryPalette.hue,a.secondaryPalette.chroma,t,!a.isDark):t},isBackground:true,background:a=>this.highestSurface(a),contrastCurve:a=>new N(1,1,3,4.5),toneDeltaPair:a=>new J(this.secondaryContainer(),this.secondary(),10,"nearer",false)})}onSecondaryContainer(){return y.fromPalette({name:"on_secondary_container",palette:a=>a.secondaryPalette,tone:a=>oe(a)?a.isDark?90:10:yt(a)?y.foregroundTone(this.secondaryContainer().tone(a),4.5):a.isDark?90:30,background:a=>this.secondaryContainer(),contrastCurve:a=>new N(3,4.5,7,11)})}tertiary(){return y.fromPalette({name:"tertiary",palette:a=>a.tertiaryPalette,tone:a=>oe(a)?a.isDark?90:25:a.isDark?80:40,isBackground:true,background:a=>this.highestSurface(a),contrastCurve:a=>new N(3,4.5,7,7),toneDeltaPair:a=>new J(this.tertiaryContainer(),this.tertiary(),10,"nearer",false)})}tertiaryDim(){}onTertiary(){return y.fromPalette({name:"on_tertiary",palette:a=>a.tertiaryPalette,tone:a=>oe(a)?a.isDark?10:90:a.isDark?20:100,background:a=>this.tertiary(),contrastCurve:a=>new N(4.5,7,11,21)})}tertiaryContainer(){return y.fromPalette({name:"tertiary_container",palette:a=>a.tertiaryPalette,tone:a=>{if(oe(a))return a.isDark?60:49;if(!yt(a))return a.isDark?30:90;let t=a.tertiaryPalette.getHct(a.sourceColorHct.tone);return Yr.fixIfDisliked(t).tone},isBackground:true,background:a=>this.highestSurface(a),contrastCurve:a=>new N(1,1,3,4.5),toneDeltaPair:a=>new J(this.tertiaryContainer(),this.tertiary(),10,"nearer",false)})}onTertiaryContainer(){return y.fromPalette({name:"on_tertiary_container",palette:a=>a.tertiaryPalette,tone:a=>oe(a)?a.isDark?0:100:yt(a)?y.foregroundTone(this.tertiaryContainer().tone(a),4.5):a.isDark?90:30,background:a=>this.tertiaryContainer(),contrastCurve:a=>new N(3,4.5,7,11)})}error(){return y.fromPalette({name:"error",palette:a=>a.errorPalette,tone:a=>a.isDark?80:40,isBackground:true,background:a=>this.highestSurface(a),contrastCurve:a=>new N(3,4.5,7,7),toneDeltaPair:a=>new J(this.errorContainer(),this.error(),10,"nearer",false)})}errorDim(){}onError(){return y.fromPalette({name:"on_error",palette:a=>a.errorPalette,tone:a=>a.isDark?20:100,background:a=>this.error(),contrastCurve:a=>new N(4.5,7,11,21)})}errorContainer(){return y.fromPalette({name:"error_container",palette:a=>a.errorPalette,tone:a=>a.isDark?30:90,isBackground:true,background:a=>this.highestSurface(a),contrastCurve:a=>new N(1,1,3,4.5),toneDeltaPair:a=>new J(this.errorContainer(),this.error(),10,"nearer",false)})}onErrorContainer(){return y.fromPalette({name:"on_error_container",palette:a=>a.errorPalette,tone:a=>oe(a)?a.isDark?90:10:a.isDark?90:30,background:a=>this.errorContainer(),contrastCurve:a=>new N(3,4.5,7,11)})}primaryFixed(){return y.fromPalette({name:"primary_fixed",palette:a=>a.primaryPalette,tone:a=>oe(a)?40:90,isBackground:true,background:a=>this.highestSurface(a),contrastCurve:a=>new N(1,1,3,4.5),toneDeltaPair:a=>new J(this.primaryFixed(),this.primaryFixedDim(),10,"lighter",true)})}primaryFixedDim(){return y.fromPalette({name:"primary_fixed_dim",palette:a=>a.primaryPalette,tone:a=>oe(a)?30:80,isBackground:true,background:a=>this.highestSurface(a),contrastCurve:a=>new N(1,1,3,4.5),toneDeltaPair:a=>new J(this.primaryFixed(),this.primaryFixedDim(),10,"lighter",true)})}onPrimaryFixed(){return y.fromPalette({name:"on_primary_fixed",palette:a=>a.primaryPalette,tone:a=>oe(a)?100:10,background:a=>this.primaryFixedDim(),secondBackground:a=>this.primaryFixed(),contrastCurve:a=>new N(4.5,7,11,21)})}onPrimaryFixedVariant(){return y.fromPalette({name:"on_primary_fixed_variant",palette:a=>a.primaryPalette,tone:a=>oe(a)?90:30,background:a=>this.primaryFixedDim(),secondBackground:a=>this.primaryFixed(),contrastCurve:a=>new N(3,4.5,7,11)})}secondaryFixed(){return y.fromPalette({name:"secondary_fixed",palette:a=>a.secondaryPalette,tone:a=>oe(a)?80:90,isBackground:true,background:a=>this.highestSurface(a),contrastCurve:a=>new N(1,1,3,4.5),toneDeltaPair:a=>new J(this.secondaryFixed(),this.secondaryFixedDim(),10,"lighter",true)})}secondaryFixedDim(){return y.fromPalette({name:"secondary_fixed_dim",palette:a=>a.secondaryPalette,tone:a=>oe(a)?70:80,isBackground:true,background:a=>this.highestSurface(a),contrastCurve:a=>new N(1,1,3,4.5),toneDeltaPair:a=>new J(this.secondaryFixed(),this.secondaryFixedDim(),10,"lighter",true)})}onSecondaryFixed(){return y.fromPalette({name:"on_secondary_fixed",palette:a=>a.secondaryPalette,tone:a=>10,background:a=>this.secondaryFixedDim(),secondBackground:a=>this.secondaryFixed(),contrastCurve:a=>new N(4.5,7,11,21)})}onSecondaryFixedVariant(){return y.fromPalette({name:"on_secondary_fixed_variant",palette:a=>a.secondaryPalette,tone:a=>oe(a)?25:30,background:a=>this.secondaryFixedDim(),secondBackground:a=>this.secondaryFixed(),contrastCurve:a=>new N(3,4.5,7,11)})}tertiaryFixed(){return y.fromPalette({name:"tertiary_fixed",palette:a=>a.tertiaryPalette,tone:a=>oe(a)?40:90,isBackground:true,background:a=>this.highestSurface(a),contrastCurve:a=>new N(1,1,3,4.5),toneDeltaPair:a=>new J(this.tertiaryFixed(),this.tertiaryFixedDim(),10,"lighter",true)})}tertiaryFixedDim(){return y.fromPalette({name:"tertiary_fixed_dim",palette:a=>a.tertiaryPalette,tone:a=>oe(a)?30:80,isBackground:true,background:a=>this.highestSurface(a),contrastCurve:a=>new N(1,1,3,4.5),toneDeltaPair:a=>new J(this.tertiaryFixed(),this.tertiaryFixedDim(),10,"lighter",true)})}onTertiaryFixed(){return y.fromPalette({name:"on_tertiary_fixed",palette:a=>a.tertiaryPalette,tone:a=>oe(a)?100:10,background:a=>this.tertiaryFixedDim(),secondBackground:a=>this.tertiaryFixed(),contrastCurve:a=>new N(4.5,7,11,21)})}onTertiaryFixedVariant(){return y.fromPalette({name:"on_tertiary_fixed_variant",palette:a=>a.tertiaryPalette,tone:a=>oe(a)?90:30,background:a=>this.tertiaryFixedDim(),secondBackground:a=>this.tertiaryFixed(),contrastCurve:a=>new N(3,4.5,7,11)})}highestSurface(a){return a.isDark?this.surfaceBright():this.surfaceDim()}};function B(a,t=0,o=100,l=1){let c=qa(a.hue,a.chroma*l,100,true);return fe(t,o,c)}function Ze(a,t=0,o=100){let l=qa(a.hue,a.chroma,0,false);return fe(t,o,l)}function qa(a,t,o,l){let c=o,d=L.from(a,t,c);for(;d.chroma<t&&!(o<0||o>100);){o+=l?-1:1;let h=L.from(a,t,o);d.chroma<h.chroma&&(d=h,c=o);}return c}function F(a){return a===1.5?new N(1.5,1.5,3,5.5):a===3?new N(3,3,4.5,7):a===4.5?new N(4.5,4.5,7,11):a===6?new N(6,6,7,11):a===7?new N(7,7,11,21):a===9?new N(9,9,11,21):a===11?new N(11,11,21,21):a===21?new N(21,21,21,21):new N(a,a,7,21)}var wl=class extends bl{surface(){let a=y.fromPalette({name:"surface",palette:t=>t.neutralPalette,tone:t=>(super.surface().tone(t),t.platform==="phone"?t.isDark?4:L.isYellow(t.neutralPalette.hue)?99:t.variant===f.VIBRANT?97:98:0),isBackground:true});return Y(super.surface(),"2025",a)}surfaceDim(){let a=y.fromPalette({name:"surface_dim",palette:t=>t.neutralPalette,tone:t=>t.isDark?4:L.isYellow(t.neutralPalette.hue)?90:t.variant===f.VIBRANT?85:87,isBackground:true,chromaMultiplier:t=>{if(!t.isDark){if(t.variant===f.NEUTRAL)return 2.5;if(t.variant===f.TONAL_SPOT)return 1.7;if(t.variant===f.EXPRESSIVE)return L.isYellow(t.neutralPalette.hue)?2.7:1.75;if(t.variant===f.VIBRANT)return 1.36}return 1}});return Y(super.surfaceDim(),"2025",a)}surfaceBright(){let a=y.fromPalette({name:"surface_bright",palette:t=>t.neutralPalette,tone:t=>t.isDark?18:L.isYellow(t.neutralPalette.hue)?99:t.variant===f.VIBRANT?97:98,isBackground:true,chromaMultiplier:t=>{if(t.isDark){if(t.variant===f.NEUTRAL)return 2.5;if(t.variant===f.TONAL_SPOT)return 1.7;if(t.variant===f.EXPRESSIVE)return L.isYellow(t.neutralPalette.hue)?2.7:1.75;if(t.variant===f.VIBRANT)return 1.36}return 1}});return Y(super.surfaceBright(),"2025",a)}surfaceContainerLowest(){let a=y.fromPalette({name:"surface_container_lowest",palette:t=>t.neutralPalette,tone:t=>t.isDark?0:100,isBackground:true});return Y(super.surfaceContainerLowest(),"2025",a)}surfaceContainerLow(){let a=y.fromPalette({name:"surface_container_low",palette:t=>t.neutralPalette,tone:t=>t.platform==="phone"?t.isDark?6:L.isYellow(t.neutralPalette.hue)?98:t.variant===f.VIBRANT?95:96:15,isBackground:true,chromaMultiplier:t=>{if(t.platform==="phone"){if(t.variant===f.NEUTRAL)return 1.3;if(t.variant===f.TONAL_SPOT)return 1.25;if(t.variant===f.EXPRESSIVE)return L.isYellow(t.neutralPalette.hue)?1.3:1.15;if(t.variant===f.VIBRANT)return 1.08}return 1}});return Y(super.surfaceContainerLow(),"2025",a)}surfaceContainer(){let a=y.fromPalette({name:"surface_container",palette:t=>t.neutralPalette,tone:t=>t.platform==="phone"?t.isDark?9:L.isYellow(t.neutralPalette.hue)?96:t.variant===f.VIBRANT?92:94:20,isBackground:true,chromaMultiplier:t=>{if(t.platform==="phone"){if(t.variant===f.NEUTRAL)return 1.6;if(t.variant===f.TONAL_SPOT)return 1.4;if(t.variant===f.EXPRESSIVE)return L.isYellow(t.neutralPalette.hue)?1.6:1.3;if(t.variant===f.VIBRANT)return 1.15}return 1}});return Y(super.surfaceContainer(),"2025",a)}surfaceContainerHigh(){let a=y.fromPalette({name:"surface_container_high",palette:t=>t.neutralPalette,tone:t=>t.platform==="phone"?t.isDark?12:L.isYellow(t.neutralPalette.hue)?94:t.variant===f.VIBRANT?90:92:25,isBackground:true,chromaMultiplier:t=>{if(t.platform==="phone"){if(t.variant===f.NEUTRAL)return 1.9;if(t.variant===f.TONAL_SPOT)return 1.5;if(t.variant===f.EXPRESSIVE)return L.isYellow(t.neutralPalette.hue)?1.95:1.45;if(t.variant===f.VIBRANT)return 1.22}return 1}});return Y(super.surfaceContainerHigh(),"2025",a)}surfaceContainerHighest(){let a=y.fromPalette({name:"surface_container_highest",palette:t=>t.neutralPalette,tone:t=>t.isDark?15:L.isYellow(t.neutralPalette.hue)?92:t.variant===f.VIBRANT?88:90,isBackground:true,chromaMultiplier:t=>t.variant===f.NEUTRAL?2.2:t.variant===f.TONAL_SPOT?1.7:t.variant===f.EXPRESSIVE?L.isYellow(t.neutralPalette.hue)?2.3:1.6:t.variant===f.VIBRANT?1.29:1});return Y(super.surfaceContainerHighest(),"2025",a)}onSurface(){let a=y.fromPalette({name:"on_surface",palette:t=>t.neutralPalette,tone:t=>t.variant===f.VIBRANT?B(t.neutralPalette,0,100,1.1):y.getInitialToneFromBackground(o=>o.platform==="phone"?this.highestSurface(o):this.surfaceContainerHigh())(t),chromaMultiplier:t=>{if(t.platform==="phone"){if(t.variant===f.NEUTRAL)return 2.2;if(t.variant===f.TONAL_SPOT)return 1.7;if(t.variant===f.EXPRESSIVE)return L.isYellow(t.neutralPalette.hue)?t.isDark?3:2.3:1.6}return 1},background:t=>t.platform==="phone"?this.highestSurface(t):this.surfaceContainerHigh(),contrastCurve:t=>t.isDark&&t.platform==="phone"?F(11):F(9)});return Y(super.onSurface(),"2025",a)}onSurfaceVariant(){let a=y.fromPalette({name:"on_surface_variant",palette:t=>t.neutralPalette,chromaMultiplier:t=>{if(t.platform==="phone"){if(t.variant===f.NEUTRAL)return 2.2;if(t.variant===f.TONAL_SPOT)return 1.7;if(t.variant===f.EXPRESSIVE)return L.isYellow(t.neutralPalette.hue)?t.isDark?3:2.3:1.6}return 1},background:t=>t.platform==="phone"?this.highestSurface(t):this.surfaceContainerHigh(),contrastCurve:t=>t.platform==="phone"?t.isDark?F(6):F(4.5):F(7)});return Y(super.onSurfaceVariant(),"2025",a)}outline(){let a=y.fromPalette({name:"outline",palette:t=>t.neutralPalette,chromaMultiplier:t=>{if(t.platform==="phone"){if(t.variant===f.NEUTRAL)return 2.2;if(t.variant===f.TONAL_SPOT)return 1.7;if(t.variant===f.EXPRESSIVE)return L.isYellow(t.neutralPalette.hue)?t.isDark?3:2.3:1.6}return 1},background:t=>t.platform==="phone"?this.highestSurface(t):this.surfaceContainerHigh(),contrastCurve:t=>t.platform==="phone"?F(3):F(4.5)});return Y(super.outline(),"2025",a)}outlineVariant(){let a=y.fromPalette({name:"outline_variant",palette:t=>t.neutralPalette,chromaMultiplier:t=>{if(t.platform==="phone"){if(t.variant===f.NEUTRAL)return 2.2;if(t.variant===f.TONAL_SPOT)return 1.7;if(t.variant===f.EXPRESSIVE)return L.isYellow(t.neutralPalette.hue)?t.isDark?3:2.3:1.6}return 1},background:t=>t.platform==="phone"?this.highestSurface(t):this.surfaceContainerHigh(),contrastCurve:t=>t.platform==="phone"?F(1.5):F(3)});return Y(super.outlineVariant(),"2025",a)}inverseSurface(){let a=y.fromPalette({name:"inverse_surface",palette:t=>t.neutralPalette,tone:t=>t.isDark?98:4,isBackground:true});return Y(super.inverseSurface(),"2025",a)}inverseOnSurface(){let a=y.fromPalette({name:"inverse_on_surface",palette:t=>t.neutralPalette,background:t=>this.inverseSurface(),contrastCurve:t=>F(7)});return Y(super.inverseOnSurface(),"2025",a)}primary(){let a=y.fromPalette({name:"primary",palette:t=>t.primaryPalette,tone:t=>t.variant===f.NEUTRAL?t.platform==="phone"?t.isDark?80:40:90:t.variant===f.TONAL_SPOT?t.platform==="phone"?t.isDark?80:B(t.primaryPalette):B(t.primaryPalette,0,90):t.variant===f.EXPRESSIVE?t.platform==="phone"?B(t.primaryPalette,0,L.isYellow(t.primaryPalette.hue)?25:L.isCyan(t.primaryPalette.hue)?88:98):B(t.primaryPalette):t.platform==="phone"?B(t.primaryPalette,0,L.isCyan(t.primaryPalette.hue)?88:98):B(t.primaryPalette),isBackground:true,background:t=>t.platform==="phone"?this.highestSurface(t):this.surfaceContainerHigh(),contrastCurve:t=>t.platform==="phone"?F(4.5):F(7),toneDeltaPair:t=>t.platform==="phone"?new J(this.primaryContainer(),this.primary(),5,"relative_lighter",true,"farther"):void 0});return Y(super.primary(),"2025",a)}primaryDim(){return y.fromPalette({name:"primary_dim",palette:a=>a.primaryPalette,tone:a=>a.variant===f.NEUTRAL?85:a.variant===f.TONAL_SPOT?B(a.primaryPalette,0,90):B(a.primaryPalette),isBackground:true,background:a=>this.surfaceContainerHigh(),contrastCurve:a=>F(4.5),toneDeltaPair:a=>new J(this.primaryDim(),this.primary(),5,"darker",true,"farther")})}onPrimary(){let a=y.fromPalette({name:"on_primary",palette:t=>t.primaryPalette,background:t=>t.platform==="phone"?this.primary():this.primaryDim(),contrastCurve:t=>t.platform==="phone"?F(6):F(7)});return Y(super.onPrimary(),"2025",a)}primaryContainer(){let a=y.fromPalette({name:"primary_container",palette:t=>t.primaryPalette,tone:t=>t.platform==="watch"?30:t.variant===f.NEUTRAL?t.isDark?30:90:t.variant===f.TONAL_SPOT?t.isDark?Ze(t.primaryPalette,35,93):B(t.primaryPalette,0,90):t.variant===f.EXPRESSIVE?t.isDark?B(t.primaryPalette,30,93):B(t.primaryPalette,78,L.isCyan(t.primaryPalette.hue)?88:90):t.isDark?Ze(t.primaryPalette,66,93):B(t.primaryPalette,66,L.isCyan(t.primaryPalette.hue)?88:93),isBackground:true,background:t=>t.platform==="phone"?this.highestSurface(t):void 0,toneDeltaPair:t=>t.platform==="phone"?void 0:new J(this.primaryContainer(),this.primaryDim(),10,"darker",true,"farther"),contrastCurve:t=>t.platform==="phone"&&t.contrastLevel>0?F(1.5):void 0});return Y(super.primaryContainer(),"2025",a)}onPrimaryContainer(){let a=y.fromPalette({name:"on_primary_container",palette:t=>t.primaryPalette,background:t=>this.primaryContainer(),contrastCurve:t=>t.platform==="phone"?F(6):F(7)});return Y(super.onPrimaryContainer(),"2025",a)}primaryFixed(){let a=y.fromPalette({name:"primary_fixed",palette:t=>t.primaryPalette,tone:t=>{let o=Object.assign({},t,{isDark:false,contrastLevel:0});return this.primaryContainer().getTone(o)},isBackground:true,background:t=>t.platform==="phone"?this.highestSurface(t):void 0,contrastCurve:t=>t.platform==="phone"&&t.contrastLevel>0?F(1.5):void 0});return Y(super.primaryFixed(),"2025",a)}primaryFixedDim(){let a=y.fromPalette({name:"primary_fixed_dim",palette:t=>t.primaryPalette,tone:t=>this.primaryFixed().getTone(t),isBackground:true,toneDeltaPair:t=>new J(this.primaryFixedDim(),this.primaryFixed(),5,"darker",true,"exact")});return Y(super.primaryFixedDim(),"2025",a)}onPrimaryFixed(){let a=y.fromPalette({name:"on_primary_fixed",palette:t=>t.primaryPalette,background:t=>this.primaryFixedDim(),contrastCurve:t=>F(7)});return Y(super.onPrimaryFixed(),"2025",a)}onPrimaryFixedVariant(){let a=y.fromPalette({name:"on_primary_fixed_variant",palette:t=>t.primaryPalette,background:t=>this.primaryFixedDim(),contrastCurve:t=>F(4.5)});return Y(super.onPrimaryFixedVariant(),"2025",a)}inversePrimary(){let a=y.fromPalette({name:"inverse_primary",palette:t=>t.primaryPalette,tone:t=>B(t.primaryPalette),background:t=>this.inverseSurface(),contrastCurve:t=>t.platform==="phone"?F(6):F(7)});return Y(super.inversePrimary(),"2025",a)}secondary(){let a=y.fromPalette({name:"secondary",palette:t=>t.secondaryPalette,tone:t=>t.platform==="watch"?t.variant===f.NEUTRAL?90:B(t.secondaryPalette,0,90):t.variant===f.NEUTRAL?t.isDark?Ze(t.secondaryPalette,0,98):B(t.secondaryPalette):t.variant===f.VIBRANT?B(t.secondaryPalette,0,t.isDark?90:98):t.isDark?80:B(t.secondaryPalette),isBackground:true,background:t=>t.platform==="phone"?this.highestSurface(t):this.surfaceContainerHigh(),contrastCurve:t=>t.platform==="phone"?F(4.5):F(7),toneDeltaPair:t=>t.platform==="phone"?new J(this.secondaryContainer(),this.secondary(),5,"relative_lighter",true,"farther"):void 0});return Y(super.secondary(),"2025",a)}secondaryDim(){return y.fromPalette({name:"secondary_dim",palette:a=>a.secondaryPalette,tone:a=>a.variant===f.NEUTRAL?85:B(a.secondaryPalette,0,90),isBackground:true,background:a=>this.surfaceContainerHigh(),contrastCurve:a=>F(4.5),toneDeltaPair:a=>new J(this.secondaryDim(),this.secondary(),5,"darker",true,"farther")})}onSecondary(){let a=y.fromPalette({name:"on_secondary",palette:t=>t.secondaryPalette,background:t=>t.platform==="phone"?this.secondary():this.secondaryDim(),contrastCurve:t=>t.platform==="phone"?F(6):F(7)});return Y(super.onSecondary(),"2025",a)}secondaryContainer(){let a=y.fromPalette({name:"secondary_container",palette:t=>t.secondaryPalette,tone:t=>t.platform==="watch"?30:t.variant===f.VIBRANT?t.isDark?Ze(t.secondaryPalette,30,40):B(t.secondaryPalette,84,90):t.variant===f.EXPRESSIVE?t.isDark?15:B(t.secondaryPalette,90,95):t.isDark?25:90,isBackground:true,background:t=>t.platform==="phone"?this.highestSurface(t):void 0,toneDeltaPair:t=>t.platform==="watch"?new J(this.secondaryContainer(),this.secondaryDim(),10,"darker",true,"farther"):void 0,contrastCurve:t=>t.platform==="phone"&&t.contrastLevel>0?F(1.5):void 0});return Y(super.secondaryContainer(),"2025",a)}onSecondaryContainer(){let a=y.fromPalette({name:"on_secondary_container",palette:t=>t.secondaryPalette,background:t=>this.secondaryContainer(),contrastCurve:t=>t.platform==="phone"?F(6):F(7)});return Y(super.onSecondaryContainer(),"2025",a)}secondaryFixed(){let a=y.fromPalette({name:"secondary_fixed",palette:t=>t.secondaryPalette,tone:t=>{let o=Object.assign({},t,{isDark:false,contrastLevel:0});return this.secondaryContainer().getTone(o)},isBackground:true,background:t=>t.platform==="phone"?this.highestSurface(t):void 0,contrastCurve:t=>t.platform==="phone"&&t.contrastLevel>0?F(1.5):void 0});return Y(super.secondaryFixed(),"2025",a)}secondaryFixedDim(){let a=y.fromPalette({name:"secondary_fixed_dim",palette:t=>t.secondaryPalette,tone:t=>this.secondaryFixed().getTone(t),isBackground:true,toneDeltaPair:t=>new J(this.secondaryFixedDim(),this.secondaryFixed(),5,"darker",true,"exact")});return Y(super.secondaryFixedDim(),"2025",a)}onSecondaryFixed(){let a=y.fromPalette({name:"on_secondary_fixed",palette:t=>t.secondaryPalette,background:t=>this.secondaryFixedDim(),contrastCurve:t=>F(7)});return Y(super.onSecondaryFixed(),"2025",a)}onSecondaryFixedVariant(){let a=y.fromPalette({name:"on_secondary_fixed_variant",palette:t=>t.secondaryPalette,background:t=>this.secondaryFixedDim(),contrastCurve:t=>F(4.5)});return Y(super.onSecondaryFixedVariant(),"2025",a)}tertiary(){let a=y.fromPalette({name:"tertiary",palette:t=>t.tertiaryPalette,tone:t=>t.platform==="watch"?t.variant===f.TONAL_SPOT?B(t.tertiaryPalette,0,90):B(t.tertiaryPalette):t.variant===f.EXPRESSIVE||t.variant===f.VIBRANT?B(t.tertiaryPalette,0,L.isCyan(t.tertiaryPalette.hue)?88:t.isDark?98:100):t.isDark?B(t.tertiaryPalette,0,98):B(t.tertiaryPalette),isBackground:true,background:t=>t.platform==="phone"?this.highestSurface(t):this.surfaceContainerHigh(),contrastCurve:t=>t.platform==="phone"?F(4.5):F(7),toneDeltaPair:t=>t.platform==="phone"?new J(this.tertiaryContainer(),this.tertiary(),5,"relative_lighter",true,"farther"):void 0});return Y(super.tertiary(),"2025",a)}tertiaryDim(){return y.fromPalette({name:"tertiary_dim",palette:a=>a.tertiaryPalette,tone:a=>a.variant===f.TONAL_SPOT?B(a.tertiaryPalette,0,90):B(a.tertiaryPalette),isBackground:true,background:a=>this.surfaceContainerHigh(),contrastCurve:a=>F(4.5),toneDeltaPair:a=>new J(this.tertiaryDim(),this.tertiary(),5,"darker",true,"farther")})}onTertiary(){let a=y.fromPalette({name:"on_tertiary",palette:t=>t.tertiaryPalette,background:t=>t.platform==="phone"?this.tertiary():this.tertiaryDim(),contrastCurve:t=>t.platform==="phone"?F(6):F(7)});return Y(super.onTertiary(),"2025",a)}tertiaryContainer(){let a=y.fromPalette({name:"tertiary_container",palette:t=>t.tertiaryPalette,tone:t=>t.platform==="watch"?t.variant===f.TONAL_SPOT?B(t.tertiaryPalette,0,90):B(t.tertiaryPalette):t.variant===f.NEUTRAL?t.isDark?B(t.tertiaryPalette,0,93):B(t.tertiaryPalette,0,96):t.variant===f.TONAL_SPOT?B(t.tertiaryPalette,0,t.isDark?93:100):t.variant===f.EXPRESSIVE?B(t.tertiaryPalette,75,L.isCyan(t.tertiaryPalette.hue)?88:t.isDark?93:100):t.isDark?B(t.tertiaryPalette,0,93):B(t.tertiaryPalette,72,100),isBackground:true,background:t=>t.platform==="phone"?this.highestSurface(t):void 0,toneDeltaPair:t=>t.platform==="watch"?new J(this.tertiaryContainer(),this.tertiaryDim(),10,"darker",true,"farther"):void 0,contrastCurve:t=>t.platform==="phone"&&t.contrastLevel>0?F(1.5):void 0});return Y(super.tertiaryContainer(),"2025",a)}onTertiaryContainer(){let a=y.fromPalette({name:"on_tertiary_container",palette:t=>t.tertiaryPalette,background:t=>this.tertiaryContainer(),contrastCurve:t=>t.platform==="phone"?F(6):F(7)});return Y(super.onTertiaryContainer(),"2025",a)}tertiaryFixed(){let a=y.fromPalette({name:"tertiary_fixed",palette:t=>t.tertiaryPalette,tone:t=>{let o=Object.assign({},t,{isDark:false,contrastLevel:0});return this.tertiaryContainer().getTone(o)},isBackground:true,background:t=>t.platform==="phone"?this.highestSurface(t):void 0,contrastCurve:t=>t.platform==="phone"&&t.contrastLevel>0?F(1.5):void 0});return Y(super.tertiaryFixed(),"2025",a)}tertiaryFixedDim(){let a=y.fromPalette({name:"tertiary_fixed_dim",palette:t=>t.tertiaryPalette,tone:t=>this.tertiaryFixed().getTone(t),isBackground:true,toneDeltaPair:t=>new J(this.tertiaryFixedDim(),this.tertiaryFixed(),5,"darker",true,"exact")});return Y(super.tertiaryFixedDim(),"2025",a)}onTertiaryFixed(){let a=y.fromPalette({name:"on_tertiary_fixed",palette:t=>t.tertiaryPalette,background:t=>this.tertiaryFixedDim(),contrastCurve:t=>F(7)});return Y(super.onTertiaryFixed(),"2025",a)}onTertiaryFixedVariant(){let a=y.fromPalette({name:"on_tertiary_fixed_variant",palette:t=>t.tertiaryPalette,background:t=>this.tertiaryFixedDim(),contrastCurve:t=>F(4.5)});return Y(super.onTertiaryFixedVariant(),"2025",a)}error(){let a=y.fromPalette({name:"error",palette:t=>t.errorPalette,tone:t=>t.platform==="phone"?t.isDark?Ze(t.errorPalette,0,98):B(t.errorPalette):Ze(t.errorPalette),isBackground:true,background:t=>t.platform==="phone"?this.highestSurface(t):this.surfaceContainerHigh(),contrastCurve:t=>t.platform==="phone"?F(4.5):F(7),toneDeltaPair:t=>t.platform==="phone"?new J(this.errorContainer(),this.error(),5,"relative_lighter",true,"farther"):void 0});return Y(super.error(),"2025",a)}errorDim(){return y.fromPalette({name:"error_dim",palette:a=>a.errorPalette,tone:a=>Ze(a.errorPalette),isBackground:true,background:a=>this.surfaceContainerHigh(),contrastCurve:a=>F(4.5),toneDeltaPair:a=>new J(this.errorDim(),this.error(),5,"darker",true,"farther")})}onError(){let a=y.fromPalette({name:"on_error",palette:t=>t.errorPalette,background:t=>t.platform==="phone"?this.error():this.errorDim(),contrastCurve:t=>t.platform==="phone"?F(6):F(7)});return Y(super.onError(),"2025",a)}errorContainer(){let a=y.fromPalette({name:"error_container",palette:t=>t.errorPalette,tone:t=>t.platform==="watch"?30:t.isDark?Ze(t.errorPalette,30,93):B(t.errorPalette,0,90),isBackground:true,background:t=>t.platform==="phone"?this.highestSurface(t):void 0,toneDeltaPair:t=>t.platform==="watch"?new J(this.errorContainer(),this.errorDim(),10,"darker",true,"farther"):void 0,contrastCurve:t=>t.platform==="phone"&&t.contrastLevel>0?F(1.5):void 0});return Y(super.errorContainer(),"2025",a)}onErrorContainer(){let a=y.fromPalette({name:"on_error_container",palette:t=>t.errorPalette,background:t=>this.errorContainer(),contrastCurve:t=>t.platform==="phone"?F(4.5):F(7)});return Y(super.onErrorContainer(),"2025",a)}surfaceVariant(){let a=Object.assign(this.surfaceContainerHighest().clone(),{name:"surface_variant"});return Y(super.surfaceVariant(),"2025",a)}surfaceTint(){let a=Object.assign(this.primary().clone(),{name:"surface_tint"});return Y(super.surfaceTint(),"2025",a)}background(){let a=Object.assign(this.surface().clone(),{name:"background"});return Y(super.background(),"2025",a)}onBackground(){let a=Object.assign(this.onSurface().clone(),{name:"on_background",tone:t=>t.platform==="watch"?100:this.onSurface().getTone(t)});return Y(super.onBackground(),"2025",a)}},b=class O{constructor(){this.allColors=[this.background(),this.onBackground(),this.surface(),this.surfaceDim(),this.surfaceBright(),this.surfaceContainerLowest(),this.surfaceContainerLow(),this.surfaceContainer(),this.surfaceContainerHigh(),this.surfaceContainerHighest(),this.onSurface(),this.onSurfaceVariant(),this.outline(),this.outlineVariant(),this.inverseSurface(),this.inverseOnSurface(),this.primary(),this.primaryDim(),this.onPrimary(),this.primaryContainer(),this.onPrimaryContainer(),this.primaryFixed(),this.primaryFixedDim(),this.onPrimaryFixed(),this.onPrimaryFixedVariant(),this.inversePrimary(),this.secondary(),this.secondaryDim(),this.onSecondary(),this.secondaryContainer(),this.onSecondaryContainer(),this.secondaryFixed(),this.secondaryFixedDim(),this.onSecondaryFixed(),this.onSecondaryFixedVariant(),this.tertiary(),this.tertiaryDim(),this.onTertiary(),this.tertiaryContainer(),this.onTertiaryContainer(),this.tertiaryFixed(),this.tertiaryFixedDim(),this.onTertiaryFixed(),this.onTertiaryFixedVariant(),this.error(),this.errorDim(),this.onError(),this.errorContainer(),this.onErrorContainer()].filter(t=>t!==void 0);}highestSurface(t){return O.colorSpec.highestSurface(t)}primaryPaletteKeyColor(){return O.colorSpec.primaryPaletteKeyColor()}secondaryPaletteKeyColor(){return O.colorSpec.secondaryPaletteKeyColor()}tertiaryPaletteKeyColor(){return O.colorSpec.tertiaryPaletteKeyColor()}neutralPaletteKeyColor(){return O.colorSpec.neutralPaletteKeyColor()}neutralVariantPaletteKeyColor(){return O.colorSpec.neutralVariantPaletteKeyColor()}errorPaletteKeyColor(){return O.colorSpec.errorPaletteKeyColor()}background(){return O.colorSpec.background()}onBackground(){return O.colorSpec.onBackground()}surface(){return O.colorSpec.surface()}surfaceDim(){return O.colorSpec.surfaceDim()}surfaceBright(){return O.colorSpec.surfaceBright()}surfaceContainerLowest(){return O.colorSpec.surfaceContainerLowest()}surfaceContainerLow(){return O.colorSpec.surfaceContainerLow()}surfaceContainer(){return O.colorSpec.surfaceContainer()}surfaceContainerHigh(){return O.colorSpec.surfaceContainerHigh()}surfaceContainerHighest(){return O.colorSpec.surfaceContainerHighest()}onSurface(){return O.colorSpec.onSurface()}surfaceVariant(){return O.colorSpec.surfaceVariant()}onSurfaceVariant(){return O.colorSpec.onSurfaceVariant()}outline(){return O.colorSpec.outline()}outlineVariant(){return O.colorSpec.outlineVariant()}inverseSurface(){return O.colorSpec.inverseSurface()}inverseOnSurface(){return O.colorSpec.inverseOnSurface()}shadow(){return O.colorSpec.shadow()}scrim(){return O.colorSpec.scrim()}surfaceTint(){return O.colorSpec.surfaceTint()}primary(){return O.colorSpec.primary()}primaryDim(){return O.colorSpec.primaryDim()}onPrimary(){return O.colorSpec.onPrimary()}primaryContainer(){return O.colorSpec.primaryContainer()}onPrimaryContainer(){return O.colorSpec.onPrimaryContainer()}inversePrimary(){return O.colorSpec.inversePrimary()}primaryFixed(){return O.colorSpec.primaryFixed()}primaryFixedDim(){return O.colorSpec.primaryFixedDim()}onPrimaryFixed(){return O.colorSpec.onPrimaryFixed()}onPrimaryFixedVariant(){return O.colorSpec.onPrimaryFixedVariant()}secondary(){return O.colorSpec.secondary()}secondaryDim(){return O.colorSpec.secondaryDim()}onSecondary(){return O.colorSpec.onSecondary()}secondaryContainer(){return O.colorSpec.secondaryContainer()}onSecondaryContainer(){return O.colorSpec.onSecondaryContainer()}secondaryFixed(){return O.colorSpec.secondaryFixed()}secondaryFixedDim(){return O.colorSpec.secondaryFixedDim()}onSecondaryFixed(){return O.colorSpec.onSecondaryFixed()}onSecondaryFixedVariant(){return O.colorSpec.onSecondaryFixedVariant()}tertiary(){return O.colorSpec.tertiary()}tertiaryDim(){return O.colorSpec.tertiaryDim()}onTertiary(){return O.colorSpec.onTertiary()}tertiaryContainer(){return O.colorSpec.tertiaryContainer()}onTertiaryContainer(){return O.colorSpec.onTertiaryContainer()}tertiaryFixed(){return O.colorSpec.tertiaryFixed()}tertiaryFixedDim(){return O.colorSpec.tertiaryFixedDim()}onTertiaryFixed(){return O.colorSpec.onTertiaryFixed()}onTertiaryFixedVariant(){return O.colorSpec.onTertiaryFixedVariant()}error(){return O.colorSpec.error()}errorDim(){return O.colorSpec.errorDim()}onError(){return O.colorSpec.onError()}errorContainer(){return O.colorSpec.errorContainer()}onErrorContainer(){return O.colorSpec.onErrorContainer()}static highestSurface(t){return O.colorSpec.highestSurface(t)}};b.contentAccentToneDelta=15;b.colorSpec=new wl;b.primaryPaletteKeyColor=b.colorSpec.primaryPaletteKeyColor();b.secondaryPaletteKeyColor=b.colorSpec.secondaryPaletteKeyColor();b.tertiaryPaletteKeyColor=b.colorSpec.tertiaryPaletteKeyColor();b.neutralPaletteKeyColor=b.colorSpec.neutralPaletteKeyColor();b.neutralVariantPaletteKeyColor=b.colorSpec.neutralVariantPaletteKeyColor();b.background=b.colorSpec.background();b.onBackground=b.colorSpec.onBackground();b.surface=b.colorSpec.surface();b.surfaceDim=b.colorSpec.surfaceDim();b.surfaceBright=b.colorSpec.surfaceBright();b.surfaceContainerLowest=b.colorSpec.surfaceContainerLowest();b.surfaceContainerLow=b.colorSpec.surfaceContainerLow();b.surfaceContainer=b.colorSpec.surfaceContainer();b.surfaceContainerHigh=b.colorSpec.surfaceContainerHigh();b.surfaceContainerHighest=b.colorSpec.surfaceContainerHighest();b.onSurface=b.colorSpec.onSurface();b.surfaceVariant=b.colorSpec.surfaceVariant();b.onSurfaceVariant=b.colorSpec.onSurfaceVariant();b.inverseSurface=b.colorSpec.inverseSurface();b.inverseOnSurface=b.colorSpec.inverseOnSurface();b.outline=b.colorSpec.outline();b.outlineVariant=b.colorSpec.outlineVariant();b.shadow=b.colorSpec.shadow();b.scrim=b.colorSpec.scrim();b.surfaceTint=b.colorSpec.surfaceTint();b.primary=b.colorSpec.primary();b.onPrimary=b.colorSpec.onPrimary();b.primaryContainer=b.colorSpec.primaryContainer();b.onPrimaryContainer=b.colorSpec.onPrimaryContainer();b.inversePrimary=b.colorSpec.inversePrimary();b.secondary=b.colorSpec.secondary();b.onSecondary=b.colorSpec.onSecondary();b.secondaryContainer=b.colorSpec.secondaryContainer();b.onSecondaryContainer=b.colorSpec.onSecondaryContainer();b.tertiary=b.colorSpec.tertiary();b.onTertiary=b.colorSpec.onTertiary();b.tertiaryContainer=b.colorSpec.tertiaryContainer();b.onTertiaryContainer=b.colorSpec.onTertiaryContainer();b.error=b.colorSpec.error();b.onError=b.colorSpec.onError();b.errorContainer=b.colorSpec.errorContainer();b.onErrorContainer=b.colorSpec.onErrorContainer();b.primaryFixed=b.colorSpec.primaryFixed();b.primaryFixedDim=b.colorSpec.primaryFixedDim();b.onPrimaryFixed=b.colorSpec.onPrimaryFixed();b.onPrimaryFixedVariant=b.colorSpec.onPrimaryFixedVariant();b.secondaryFixed=b.colorSpec.secondaryFixed();b.secondaryFixedDim=b.colorSpec.secondaryFixedDim();b.onSecondaryFixed=b.colorSpec.onSecondaryFixed();b.onSecondaryFixedVariant=b.colorSpec.onSecondaryFixedVariant();b.tertiaryFixed=b.colorSpec.tertiaryFixed();b.tertiaryFixedDim=b.colorSpec.tertiaryFixedDim();b.onTertiaryFixed=b.colorSpec.onTertiaryFixed();b.onTertiaryFixedVariant=b.colorSpec.onTertiaryFixedVariant();var ue=class Er{static maybeFallbackSpecVersion(t,o){switch(o){case f.EXPRESSIVE:case f.VIBRANT:case f.TONAL_SPOT:case f.NEUTRAL:return t;default:return "2021"}}constructor(t){this.sourceColorArgb=t.sourceColorHct.toInt(),this.variant=t.variant,this.contrastLevel=t.contrastLevel,this.isDark=t.isDark,this.platform=t.platform??"phone",this.specVersion=Er.maybeFallbackSpecVersion(t.specVersion??"2021",this.variant),this.sourceColorHct=t.sourceColorHct,this.primaryPalette=t.primaryPalette??bt(this.specVersion).getPrimaryPalette(this.variant,t.sourceColorHct,this.isDark,this.platform,this.contrastLevel),this.secondaryPalette=t.secondaryPalette??bt(this.specVersion).getSecondaryPalette(this.variant,t.sourceColorHct,this.isDark,this.platform,this.contrastLevel),this.tertiaryPalette=t.tertiaryPalette??bt(this.specVersion).getTertiaryPalette(this.variant,t.sourceColorHct,this.isDark,this.platform,this.contrastLevel),this.neutralPalette=t.neutralPalette??bt(this.specVersion).getNeutralPalette(this.variant,t.sourceColorHct,this.isDark,this.platform,this.contrastLevel),this.neutralVariantPalette=t.neutralVariantPalette??bt(this.specVersion).getNeutralVariantPalette(this.variant,t.sourceColorHct,this.isDark,this.platform,this.contrastLevel),this.errorPalette=t.errorPalette??bt(this.specVersion).getErrorPalette(this.variant,t.sourceColorHct,this.isDark,this.platform,this.contrastLevel)??T.fromHueAndChroma(25,84),this.colors=new b;}toString(){return `Scheme: variant=${f[this.variant]}, mode=${this.isDark?"dark":"light"}, platform=${this.platform}, contrastLevel=${this.contrastLevel.toFixed(1)}, seed=${this.sourceColorHct.toString()}, specVersion=${this.specVersion}`}static getPiecewiseHue(t,o,l){let c=Math.min(o.length-1,l.length),d=t.hue;for(let h=0;h<c;h++)if(d>=o[h]&&d<o[h+1])return Se(l[h]);return d}static getRotatedHue(t,o,l){let c=Er.getPiecewiseHue(t,o,l);return Math.min(o.length-1,l.length)<=0&&(c=0),Se(t.hue+c)}getArgb(t){return t.getArgb(this)}getHct(t){return t.getHct(this)}get primaryPaletteKeyColor(){return this.getArgb(this.colors.primaryPaletteKeyColor())}get secondaryPaletteKeyColor(){return this.getArgb(this.colors.secondaryPaletteKeyColor())}get tertiaryPaletteKeyColor(){return this.getArgb(this.colors.tertiaryPaletteKeyColor())}get neutralPaletteKeyColor(){return this.getArgb(this.colors.neutralPaletteKeyColor())}get neutralVariantPaletteKeyColor(){return this.getArgb(this.colors.neutralVariantPaletteKeyColor())}get errorPaletteKeyColor(){return this.getArgb(this.colors.errorPaletteKeyColor())}get background(){return this.getArgb(this.colors.background())}get onBackground(){return this.getArgb(this.colors.onBackground())}get surface(){return this.getArgb(this.colors.surface())}get surfaceDim(){return this.getArgb(this.colors.surfaceDim())}get surfaceBright(){return this.getArgb(this.colors.surfaceBright())}get surfaceContainerLowest(){return this.getArgb(this.colors.surfaceContainerLowest())}get surfaceContainerLow(){return this.getArgb(this.colors.surfaceContainerLow())}get surfaceContainer(){return this.getArgb(this.colors.surfaceContainer())}get surfaceContainerHigh(){return this.getArgb(this.colors.surfaceContainerHigh())}get surfaceContainerHighest(){return this.getArgb(this.colors.surfaceContainerHighest())}get onSurface(){return this.getArgb(this.colors.onSurface())}get surfaceVariant(){return this.getArgb(this.colors.surfaceVariant())}get onSurfaceVariant(){return this.getArgb(this.colors.onSurfaceVariant())}get inverseSurface(){return this.getArgb(this.colors.inverseSurface())}get inverseOnSurface(){return this.getArgb(this.colors.inverseOnSurface())}get outline(){return this.getArgb(this.colors.outline())}get outlineVariant(){return this.getArgb(this.colors.outlineVariant())}get shadow(){return this.getArgb(this.colors.shadow())}get scrim(){return this.getArgb(this.colors.scrim())}get surfaceTint(){return this.getArgb(this.colors.surfaceTint())}get primary(){return this.getArgb(this.colors.primary())}get primaryDim(){let t=this.colors.primaryDim();if(t===void 0)throw new Error("`primaryDim` color is undefined prior to 2025 spec.");return this.getArgb(t)}get onPrimary(){return this.getArgb(this.colors.onPrimary())}get primaryContainer(){return this.getArgb(this.colors.primaryContainer())}get onPrimaryContainer(){return this.getArgb(this.colors.onPrimaryContainer())}get primaryFixed(){return this.getArgb(this.colors.primaryFixed())}get primaryFixedDim(){return this.getArgb(this.colors.primaryFixedDim())}get onPrimaryFixed(){return this.getArgb(this.colors.onPrimaryFixed())}get onPrimaryFixedVariant(){return this.getArgb(this.colors.onPrimaryFixedVariant())}get inversePrimary(){return this.getArgb(this.colors.inversePrimary())}get secondary(){return this.getArgb(this.colors.secondary())}get secondaryDim(){let t=this.colors.secondaryDim();if(t===void 0)throw new Error("`secondaryDim` color is undefined prior to 2025 spec.");return this.getArgb(t)}get onSecondary(){return this.getArgb(this.colors.onSecondary())}get secondaryContainer(){return this.getArgb(this.colors.secondaryContainer())}get onSecondaryContainer(){return this.getArgb(this.colors.onSecondaryContainer())}get secondaryFixed(){return this.getArgb(this.colors.secondaryFixed())}get secondaryFixedDim(){return this.getArgb(this.colors.secondaryFixedDim())}get onSecondaryFixed(){return this.getArgb(this.colors.onSecondaryFixed())}get onSecondaryFixedVariant(){return this.getArgb(this.colors.onSecondaryFixedVariant())}get tertiary(){return this.getArgb(this.colors.tertiary())}get tertiaryDim(){let t=this.colors.tertiaryDim();if(t===void 0)throw new Error("`tertiaryDim` color is undefined prior to 2025 spec.");return this.getArgb(t)}get onTertiary(){return this.getArgb(this.colors.onTertiary())}get tertiaryContainer(){return this.getArgb(this.colors.tertiaryContainer())}get onTertiaryContainer(){return this.getArgb(this.colors.onTertiaryContainer())}get tertiaryFixed(){return this.getArgb(this.colors.tertiaryFixed())}get tertiaryFixedDim(){return this.getArgb(this.colors.tertiaryFixedDim())}get onTertiaryFixed(){return this.getArgb(this.colors.onTertiaryFixed())}get onTertiaryFixedVariant(){return this.getArgb(this.colors.onTertiaryFixedVariant())}get error(){return this.getArgb(this.colors.error())}get errorDim(){let t=this.colors.errorDim();if(t===void 0)throw new Error("`errorDim` color is undefined prior to 2025 spec.");return this.getArgb(t)}get onError(){return this.getArgb(this.colors.onError())}get errorContainer(){return this.getArgb(this.colors.errorContainer())}get onErrorContainer(){return this.getArgb(this.colors.onErrorContainer())}};ue.DEFAULT_SPEC_VERSION="2021";ue.DEFAULT_PLATFORM="phone";var Ka=class{getPrimaryPalette(a,t,o,l,c){switch(a){case f.CONTENT:case f.FIDELITY:return T.fromHueAndChroma(t.hue,t.chroma);case f.FRUIT_SALAD:return T.fromHueAndChroma(Se(t.hue-50),48);case f.MONOCHROME:return T.fromHueAndChroma(t.hue,0);case f.NEUTRAL:return T.fromHueAndChroma(t.hue,12);case f.RAINBOW:return T.fromHueAndChroma(t.hue,48);case f.TONAL_SPOT:return T.fromHueAndChroma(t.hue,36);case f.EXPRESSIVE:return T.fromHueAndChroma(Se(t.hue+240),40);case f.VIBRANT:return T.fromHueAndChroma(t.hue,200);default:throw new Error(`Unsupported variant: ${a}`)}}getSecondaryPalette(a,t,o,l,c){switch(a){case f.CONTENT:case f.FIDELITY:return T.fromHueAndChroma(t.hue,Math.max(t.chroma-32,t.chroma*.5));case f.FRUIT_SALAD:return T.fromHueAndChroma(Se(t.hue-50),36);case f.MONOCHROME:return T.fromHueAndChroma(t.hue,0);case f.NEUTRAL:return T.fromHueAndChroma(t.hue,8);case f.RAINBOW:return T.fromHueAndChroma(t.hue,16);case f.TONAL_SPOT:return T.fromHueAndChroma(t.hue,16);case f.EXPRESSIVE:return T.fromHueAndChroma(ue.getRotatedHue(t,[0,21,51,121,151,191,271,321,360],[45,95,45,20,45,90,45,45,45]),24);case f.VIBRANT:return T.fromHueAndChroma(ue.getRotatedHue(t,[0,41,61,101,131,181,251,301,360],[18,15,10,12,15,18,15,12,12]),24);default:throw new Error(`Unsupported variant: ${a}`)}}getTertiaryPalette(a,t,o,l,c){switch(a){case f.CONTENT:return T.fromHct(Yr.fixIfDisliked(new Wa(t).analogous(3,6)[2]));case f.FIDELITY:return T.fromHct(Yr.fixIfDisliked(new Wa(t).complement));case f.FRUIT_SALAD:return T.fromHueAndChroma(t.hue,36);case f.MONOCHROME:return T.fromHueAndChroma(t.hue,0);case f.NEUTRAL:return T.fromHueAndChroma(t.hue,16);case f.RAINBOW:case f.TONAL_SPOT:return T.fromHueAndChroma(Se(t.hue+60),24);case f.EXPRESSIVE:return T.fromHueAndChroma(ue.getRotatedHue(t,[0,21,51,121,151,191,271,321,360],[120,120,20,45,20,15,20,120,120]),32);case f.VIBRANT:return T.fromHueAndChroma(ue.getRotatedHue(t,[0,41,61,101,131,181,251,301,360],[35,30,20,25,30,35,30,25,25]),32);default:throw new Error(`Unsupported variant: ${a}`)}}getNeutralPalette(a,t,o,l,c){switch(a){case f.CONTENT:case f.FIDELITY:return T.fromHueAndChroma(t.hue,t.chroma/8);case f.FRUIT_SALAD:return T.fromHueAndChroma(t.hue,10);case f.MONOCHROME:return T.fromHueAndChroma(t.hue,0);case f.NEUTRAL:return T.fromHueAndChroma(t.hue,2);case f.RAINBOW:return T.fromHueAndChroma(t.hue,0);case f.TONAL_SPOT:return T.fromHueAndChroma(t.hue,6);case f.EXPRESSIVE:return T.fromHueAndChroma(Se(t.hue+15),8);case f.VIBRANT:return T.fromHueAndChroma(t.hue,10);default:throw new Error(`Unsupported variant: ${a}`)}}getNeutralVariantPalette(a,t,o,l,c){switch(a){case f.CONTENT:return T.fromHueAndChroma(t.hue,t.chroma/8+4);case f.FIDELITY:return T.fromHueAndChroma(t.hue,t.chroma/8+4);case f.FRUIT_SALAD:return T.fromHueAndChroma(t.hue,16);case f.MONOCHROME:return T.fromHueAndChroma(t.hue,0);case f.NEUTRAL:return T.fromHueAndChroma(t.hue,2);case f.RAINBOW:return T.fromHueAndChroma(t.hue,0);case f.TONAL_SPOT:return T.fromHueAndChroma(t.hue,8);case f.EXPRESSIVE:return T.fromHueAndChroma(Se(t.hue+15),12);case f.VIBRANT:return T.fromHueAndChroma(t.hue,12);default:throw new Error(`Unsupported variant: ${a}`)}}getErrorPalette(a,t,o,l,c){}},vl=class Me extends Ka{getPrimaryPalette(t,o,l,c,d){switch(t){case f.NEUTRAL:return T.fromHueAndChroma(o.hue,c==="phone"?L.isBlue(o.hue)?12:8:L.isBlue(o.hue)?16:12);case f.TONAL_SPOT:return T.fromHueAndChroma(o.hue,c==="phone"&&l?26:32);case f.EXPRESSIVE:return T.fromHueAndChroma(o.hue,c==="phone"?l?36:48:40);case f.VIBRANT:return T.fromHueAndChroma(o.hue,c==="phone"?74:56);default:return super.getPrimaryPalette(t,o,l,c,d)}}getSecondaryPalette(t,o,l,c,d){switch(t){case f.NEUTRAL:return T.fromHueAndChroma(o.hue,c==="phone"?L.isBlue(o.hue)?6:4:L.isBlue(o.hue)?10:6);case f.TONAL_SPOT:return T.fromHueAndChroma(o.hue,16);case f.EXPRESSIVE:return T.fromHueAndChroma(ue.getRotatedHue(o,[0,105,140,204,253,278,300,333,360],[-160,155,-100,96,-96,-156,-165,-160]),c==="phone"&&l?16:24);case f.VIBRANT:return T.fromHueAndChroma(ue.getRotatedHue(o,[0,38,105,140,333,360],[-14,10,-14,10,-14]),c==="phone"?56:36);default:return super.getSecondaryPalette(t,o,l,c,d)}}getTertiaryPalette(t,o,l,c,d){switch(t){case f.NEUTRAL:return T.fromHueAndChroma(ue.getRotatedHue(o,[0,38,105,161,204,278,333,360],[-32,26,10,-39,24,-15,-32]),c==="phone"?20:36);case f.TONAL_SPOT:return T.fromHueAndChroma(ue.getRotatedHue(o,[0,20,71,161,333,360],[-40,48,-32,40,-32]),c==="phone"?28:32);case f.EXPRESSIVE:return T.fromHueAndChroma(ue.getRotatedHue(o,[0,105,140,204,253,278,300,333,360],[-165,160,-105,101,-101,-160,-170,-165]),48);case f.VIBRANT:return T.fromHueAndChroma(ue.getRotatedHue(o,[0,38,71,105,140,161,253,333,360],[-72,35,24,-24,62,50,62,-72]),56);default:return super.getTertiaryPalette(t,o,l,c,d)}}static getExpressiveNeutralHue(t){return ue.getRotatedHue(t,[0,71,124,253,278,300,360],[10,0,10,0,10,0])}static getExpressiveNeutralChroma(t,o,l){let c=Me.getExpressiveNeutralHue(t);return l==="phone"?o?L.isYellow(c)?6:14:18:12}static getVibrantNeutralHue(t){return ue.getRotatedHue(t,[0,38,105,140,333,360],[-14,10,-14,10,-14])}static getVibrantNeutralChroma(t,o){let l=Me.getVibrantNeutralHue(t);return o==="phone"||L.isBlue(l)?28:20}getNeutralPalette(t,o,l,c,d){switch(t){case f.NEUTRAL:return T.fromHueAndChroma(o.hue,c==="phone"?1.4:6);case f.TONAL_SPOT:return T.fromHueAndChroma(o.hue,c==="phone"?5:10);case f.EXPRESSIVE:return T.fromHueAndChroma(Me.getExpressiveNeutralHue(o),Me.getExpressiveNeutralChroma(o,l,c));case f.VIBRANT:return T.fromHueAndChroma(Me.getVibrantNeutralHue(o),Me.getVibrantNeutralChroma(o,c));default:return super.getNeutralPalette(t,o,l,c,d)}}getNeutralVariantPalette(t,o,l,c,d){switch(t){case f.NEUTRAL:return T.fromHueAndChroma(o.hue,(c==="phone"?1.4:6)*2.2);case f.TONAL_SPOT:return T.fromHueAndChroma(o.hue,(c==="phone"?5:10)*1.7);case f.EXPRESSIVE:let h=Me.getExpressiveNeutralHue(o),g=Me.getExpressiveNeutralChroma(o,l,c);return T.fromHueAndChroma(h,g*(h>=105&&h<125?1.6:2.3));case f.VIBRANT:let w=Me.getVibrantNeutralHue(o),k=Me.getVibrantNeutralChroma(o,c);return T.fromHueAndChroma(w,k*1.29);default:return super.getNeutralVariantPalette(t,o,l,c,d)}}getErrorPalette(t,o,l,c,d){let h=ue.getPiecewiseHue(o,[0,3,13,23,33,43,153,273,360],[12,22,32,12,22,32,22,12]);switch(t){case f.NEUTRAL:return T.fromHueAndChroma(h,c==="phone"?50:40);case f.TONAL_SPOT:return T.fromHueAndChroma(h,c==="phone"?60:48);case f.EXPRESSIVE:return T.fromHueAndChroma(h,c==="phone"?64:48);case f.VIBRANT:return T.fromHueAndChroma(h,c==="phone"?80:60);default:return super.getErrorPalette(t,o,l,c,d)}}},kl=new Ka,xl=new vl;function bt(a){return a==="2025"?xl:kl}var Sl=class extends ue{constructor(a,t,o,l=ue.DEFAULT_SPEC_VERSION,c=ue.DEFAULT_PLATFORM){super({sourceColorHct:a,variant:f.VIBRANT,contrastLevel:o,isDark:t,platform:c,specVersion:l});}};function Pl(a){let t=Ir(a),o=Hr(a),l=Vr(a),c=[t.toString(16),o.toString(16),l.toString(16)];for(let[d,h]of c.entries())h.length===1&&(c[d]="0"+h);return "#"+c.join("")}function Cl(a){a=a.replace("#","");let t=a.length===3,o=a.length===6,l=a.length===8;if(!t&&!o&&!l)throw new Error("unexpected hex "+a);let c=0,d=0,h=0;return t?(c=Be(a.slice(0,1).repeat(2)),d=Be(a.slice(1,2).repeat(2)),h=Be(a.slice(2,3).repeat(2))):o?(c=Be(a.slice(0,2)),d=Be(a.slice(2,4)),h=Be(a.slice(4,6))):l&&(c=Be(a.slice(2,4)),d=Be(a.slice(4,6)),h=Be(a.slice(6,8))),(255<<24|(c&255)<<16|(d&255)<<8|h&255)>>>0}function Be(a){return parseInt(a,16)}function _l(a,t){let o=L.fromInt(Cl(a)),l=new Sl(o,t,0),c={},d=["primary","onPrimary","primaryContainer","onPrimaryContainer","secondary","onSecondary","secondaryContainer","onSecondaryContainer","tertiary","onTertiary","tertiaryContainer","onTertiaryContainer","error","onError","errorContainer","onErrorContainer","background","onBackground","surface","onSurface","surfaceVariant","onSurfaceVariant","outline","outlineVariant","shadow","scrim","inverseSurface","inverseOnSurface","inversePrimary","surfaceDim","surfaceBright","surfaceContainerLowest","surfaceContainerLow","surfaceContainer","surfaceContainerHigh","surfaceContainerHighest"];for(let h of d){let g=b[h];g&&(c[h]=Pl(g.getArgb(l)));}return c}function Za(a,t){let o=0,l=0,c=0;return a.length===4?(o=parseInt(a[1]+a[1],16),l=parseInt(a[2]+a[2],16),c=parseInt(a[3]+a[3],16)):a.length===7&&(o=parseInt(a.slice(1,3),16),l=parseInt(a.slice(3,5),16),c=parseInt(a.slice(5,7),16)),`rgba(${o}, ${l}, ${c}, ${t})`}react.createContext(null);_l("#6750A4",false);var Pc=react.forwardRef((a,t)=>{let{currentDate:o,filterOptions:l,events:c,toolBar:d,filterBar:h,filterBy:g,backgroundMode:w,defaultView:k="month",enableAnimations:P=true,slideVariants:S={enter:W=>({x:W>0?"10%":"-10%",opacity:0}),center:{zIndex:1,x:0,opacity:1},exit:W=>({zIndex:0,x:W<0?"10%":"-10%",opacity:0})},transition:C={type:"spring",stiffness:300,damping:30,opacity:{duration:.2}},onEventClicked:_}=a,{themeColors:m}=chunkLCX5IU2V_js.j(),v=o?new Date(o):new Date,R=reactBigCalendar.momentLocalizer(ar.default),U=react.useMemo(()=>c?c.filter(W=>!g||g.length===0||g.includes("All")?true:g.every(me=>W.eventCategory?.includes(me))).map(W=>{let{eventTitle:me,eventStart:ve,eventEnd:tt,...pe}=W;return {title:me,start:new Date(ve),end:new Date(tt),resource:pe}}):[],[c,g]),X=react.useMemo(()=>({event:W=>jsxRuntime.jsx(Ia,{...W,onMouseEnter:()=>{},onMouseLeave:()=>{}})}),[]),[Z,te]=react.useState(0),[V,j]=react.useState(v),[q,I]=react.useState(k),[Q,be]=react.useState(l),ie=()=>{te(-1),j((0, ar.default)(V).subtract(1,q).toDate());},he=()=>{te(1),j((0, ar.default)(V).add(1,q).toDate());},we=()=>{te(0),j(new Date);};return react.useImperativeHandle(t,()=>({previousMonth:ie,nextMonth:he,jumpToNow:we})),jsxRuntime.jsxs(framerMotion.motion.div,{layout:true,style:{backgroundColor:m.surfaceContainerHigh,borderColor:m.outlineVariant,"--m3-primary":m.primary,"--m3-on-primary":m.onPrimary,"--m3-outline-variant":m.outlineVariant,"--m3-on-surface":m.onSurface,"--m3-on-surface-variant":m.onSurfaceVariant,"--m3-today-highlight":Za(m.primary,.03)},className:"m3-components-bigcalendar",children:[jsxRuntime.jsxs("div",{className:"m3-components-bigcalendar-w1",children:[jsxRuntime.jsx(Ya,{date:V,view:q,onViewChange:I,onPrev:ie,onNext:he,onToday:we}),h?h(l):jsxRuntime.jsx("div",{className:"m3-components-bigcalendar-filterbar-w1",children:l.map(W=>jsxRuntime.jsx("button",{onClick:()=>{be(me=>me.includes(W)?me.filter(ve=>ve!==W):[...me,W]);},className:"m3-components-bigcalendar-filterbar-filterchip",style:{backgroundColor:Q.includes(W)?m.onSurface:"transparent",color:Q.includes(W)?m.surface:m.onSurfaceVariant,borderColor:Q.includes(W)?m.onSurface:m.outlineVariant},children:W},W))})]}),jsxRuntime.jsx("div",{style:{backgroundColor:m.outlineVariant},className:"m3-components-bigcalendar-divider"}),jsxRuntime.jsx("div",{className:"rbc-container-wrapper m3-components-bigcalendar-w2",children:jsxRuntime.jsx(framerMotion.AnimatePresence,{initial:false,custom:Z,mode:"wait",children:jsxRuntime.jsx(framerMotion.motion.div,{custom:Z,variants:S,initial:"enter",animate:"center",exit:"exit",transition:C,className:"m3-components-bigcalendar-viewport",children:jsxRuntime.jsx(reactBigCalendar.Calendar,{localizer:R,events:U,date:V,view:q,onNavigate:W=>j(W),onView:W=>{(W==="month"||W==="week"||W==="day")&&I(W);},onSelectEvent:W=>_?.(W),toolbar:false,components:X,eventPropGetter:()=>({style:{backgroundColor:"transparent",border:"none",padding:"1px 2px"}})})},V.toISOString())})})]})});/*! Bundled license information:
6
+
7
+ @material/material-color-utilities/utils/math_utils.js:
8
+ @material/material-color-utilities/utils/color_utils.js:
9
+ @material/material-color-utilities/hct/viewing_conditions.js:
10
+ @material/material-color-utilities/hct/cam16.js:
11
+ @material/material-color-utilities/hct/hct_solver.js:
12
+ @material/material-color-utilities/hct/hct.js:
13
+ @material/material-color-utilities/blend/blend.js:
14
+ @material/material-color-utilities/palettes/tonal_palette.js:
15
+ @material/material-color-utilities/palettes/core_palette.js:
16
+ @material/material-color-utilities/quantize/lab_point_provider.js:
17
+ @material/material-color-utilities/quantize/quantizer_wsmeans.js:
18
+ @material/material-color-utilities/quantize/quantizer_map.js:
19
+ @material/material-color-utilities/quantize/quantizer_wu.js:
20
+ @material/material-color-utilities/quantize/quantizer_celebi.js:
21
+ @material/material-color-utilities/scheme/scheme.js:
22
+ @material/material-color-utilities/scheme/scheme_android.js:
23
+ @material/material-color-utilities/score/score.js:
24
+ @material/material-color-utilities/utils/string_utils.js:
25
+ @material/material-color-utilities/utils/image_utils.js:
26
+ @material/material-color-utilities/utils/theme_utils.js:
27
+ @material/material-color-utilities/index.js:
28
+ (**
29
+ * @license
30
+ * Copyright 2021 Google LLC
31
+ *
32
+ * Licensed under the Apache License, Version 2.0 (the "License");
33
+ * you may not use this file except in compliance with the License.
34
+ * You may obtain a copy of the License at
35
+ *
36
+ * http://www.apache.org/licenses/LICENSE-2.0
37
+ *
38
+ * Unless required by applicable law or agreed to in writing, software
39
+ * distributed under the License is distributed on an "AS IS" BASIS,
40
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
41
+ * See the License for the specific language governing permissions and
42
+ * limitations under the License.
43
+ *)
44
+
45
+ @material/material-color-utilities/contrast/contrast.js:
46
+ @material/material-color-utilities/dynamiccolor/dynamic_color.js:
47
+ @material/material-color-utilities/dynamiccolor/variant.js:
48
+ @material/material-color-utilities/dynamiccolor/material_dynamic_colors.js:
49
+ @material/material-color-utilities/dynamiccolor/dynamic_scheme.js:
50
+ @material/material-color-utilities/scheme/scheme_expressive.js:
51
+ @material/material-color-utilities/scheme/scheme_fruit_salad.js:
52
+ @material/material-color-utilities/scheme/scheme_monochrome.js:
53
+ @material/material-color-utilities/scheme/scheme_neutral.js:
54
+ @material/material-color-utilities/scheme/scheme_rainbow.js:
55
+ @material/material-color-utilities/scheme/scheme_tonal_spot.js:
56
+ @material/material-color-utilities/scheme/scheme_vibrant.js:
57
+ (**
58
+ * @license
59
+ * Copyright 2022 Google LLC
60
+ *
61
+ * Licensed under the Apache License, Version 2.0 (the "License");
62
+ * you may not use this file except in compliance with the License.
63
+ * You may obtain a copy of the License at
64
+ *
65
+ * http://www.apache.org/licenses/LICENSE-2.0
66
+ *
67
+ * Unless required by applicable law or agreed to in writing, software
68
+ * distributed under the License is distributed on an "AS IS" BASIS,
69
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
70
+ * See the License for the specific language governing permissions and
71
+ * limitations under the License.
72
+ *)
73
+
74
+ @material/material-color-utilities/dislike/dislike_analyzer.js:
75
+ @material/material-color-utilities/temperature/temperature_cache.js:
76
+ @material/material-color-utilities/dynamiccolor/contrast_curve.js:
77
+ @material/material-color-utilities/dynamiccolor/tone_delta_pair.js:
78
+ @material/material-color-utilities/scheme/scheme_content.js:
79
+ @material/material-color-utilities/scheme/scheme_fidelity.js:
80
+ (**
81
+ * @license
82
+ * Copyright 2023 Google LLC
83
+ *
84
+ * Licensed under the Apache License, Version 2.0 (the "License");
85
+ * you may not use this file except in compliance with the License.
86
+ * You may obtain a copy of the License at
87
+ *
88
+ * http://www.apache.org/licenses/LICENSE-2.0
89
+ *
90
+ * Unless required by applicable law or agreed to in writing, software
91
+ * distributed under the License is distributed on an "AS IS" BASIS,
92
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
93
+ * See the License for the specific language governing permissions and
94
+ * limitations under the License.
95
+ *)
96
+
97
+ @material/material-color-utilities/dynamiccolor/color_spec_2021.js:
98
+ @material/material-color-utilities/dynamiccolor/color_spec_2025.js:
99
+ (**
100
+ * @license
101
+ * Copyright 2025 Google LLC
102
+ *
103
+ * Licensed under the Apache License, Version 2.0 (the "License");
104
+ * you may not use this file except in compliance with the License.
105
+ * You may obtain a copy of the License at
106
+ *
107
+ * http://www.apache.org/licenses/LICENSE-2.0
108
+ *
109
+ * Unless required by applicable law or agreed to in writing, software
110
+ * distributed under the License is distributed on an "AS IS" BASIS,
111
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
112
+ * See the License for the specific language governing permissions and
113
+ * limitations under the License.
114
+ *)
115
+ */
116
+ /*! Bundled license information:
117
+
118
+ moment/moment.js:
119
+ (*! moment.js *)
120
+ (*! version : 2.30.1 *)
121
+ (*! authors : Tim Wood, Iskren Chernev, Moment.js contributors *)
122
+ (*! license : MIT *)
123
+ (*! momentjs.com *)
124
+ */exports.BigCalendar=Pc;