@fattureincloud/fic-design-system 0.7.15 → 0.7.16

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.esm.js CHANGED
@@ -12,7 +12,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
12
12
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
13
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
14
  PERFORMANCE OF THIS SOFTWARE.
15
- ***************************************************************************** */var Be=function(e,n){return Be=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])},Be(e,n)};function Ue(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function t(){this.constructor=e}Be(e,n),e.prototype=null===n?Object.create(n):(t.prototype=n.prototype,new t)}var Ye=function(){return Ye=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var o in n=arguments[t])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e},Ye.apply(this,arguments)};function Ve(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)n.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(t[r[o]]=e[r[o]])}return t}function We(e,n,t,r){return new(t||(t=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function l(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var n;e.done?o(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(a,l)}s((r=r.apply(e,n||[])).next())}))}function Ge(e,n){var t,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(t)throw new TypeError("Generator is already executing.");for(;a;)try{if(t=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=n.call(e,a)}catch(e){i=[6,e],r=0}finally{t=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}}function Ke(e,n){var t="function"==typeof Symbol&&e[Symbol.iterator];if(!t)return e;var r,o,i=t.call(e),a=[];try{for(;(void 0===n||n-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(t=i.return)&&t.call(i)}finally{if(o)throw o.error}}return a}function qe(e,n,t){if(t||2===arguments.length)for(var r,o=0,i=n.length;o<i;o++)!r&&o in n||(r||(r=Array.prototype.slice.call(n,0,o)),r[o]=n[o]);return e.concat(r||Array.prototype.slice.call(n))}function Xe(e,n){return Object.defineProperty?Object.defineProperty(e,"raw",{value:n}):e.raw=n,e}var Qe,Ze,Je={xs:".75em",sm:".875em",lg:"1.33em","1x":"1em","2x":"2em","3x":"3em","4x":"4em","5x":"5em","6x":"6em","7x":"7em","8x":"8em","9x":"9em","10x":"10em"},en=function(e){var n=e.children,t=Ve(e,["children"]);return o.createElement(nn,Ye({},t),n)},nn=w.div(Qe||(Qe=Xe(["\n background-color: ",";\n border-radius: 50%;\n\n min-width: calc("," * ",");\n min-height: calc("," * ",");\n\n display: inline-flex;\n justify-content: center;\n align-items: center;\n"],["\n background-color: ",";\n border-radius: 50%;\n\n min-width: calc("," * ",");\n min-height: calc("," * ",");\n\n display: inline-flex;\n justify-content: center;\n align-items: center;\n"])),(function(e){var n=e.theme,t=e.color;return e.backgroundColor||n.components.iconBackground[t]||"transparent"}),1.5,(function(e){var n=e.size;return Je[n]}),1.5,(function(e){var n=e.size;return Je[n]})),tn={900:"#064763",800:"#08648B",700:"#0A79A8",600:"#0B8AC0",500:"#0D97D5",400:"#4DB4E0",300:"#7DC8E8",200:"#A4D8EF",100:"#C6E7F5",50:"#E4F3FA"},rn={black:{8:"rgba(51, 51, 51, 0.08)",16:"rgba(51, 51, 51, 0.16)",48:"rgba(51, 51, 51, 0.48)",80:"rgba(51, 51, 51, 0.8)",100:"#333333"},white:{8:"rgba(255, 255, 255, 0.08)",16:"rgba(255, 255, 255, 0.16)",48:"rgba(255, 255, 255, 0.48)",80:"rgba(255, 255, 255, 0.8)",100:"#FFFFFF"},grey:{900:"#22282B",800:"#384248",700:"#5A676D",600:"#65747B",500:"#6F7E86",400:"#7F8F94",300:"#A8B3B8",200:"#C4CBCF",100:"#EBEDEE",50:"#FAFAFA"},blue:tn,indigo:{900:"#05175E",800:"#082188",700:"#0A29A6",600:"#0B2FBF",500:"#0D35D5",400:"#637CE3",300:"#90A3EB",200:"#B3BFF1",100:"#D0D7F6",50:"#E8ECFB"},yellow:{900:"#FF6B0A",800:"#FF7C12",700:"#FF8617",600:"#FF911B",500:"#FF991F",400:"#FFA841",300:"#FFB862",200:"#FFCC8F",100:"#FFE0BC",50:"#FFF3E4"},orange:{900:"#783722",800:"#A74D2F",700:"#CA5D39",600:"#E66A42",500:"#FF7649",400:"#FF9978",300:"#FFB49B",200:"#FFCAB9",100:"#FFDED3",50:"#FFEFEA"},red:{900:"#C81603",800:"#D12206",700:"#D52808",600:"#DA300A",500:"#DE350B",400:"#E35330",300:"#E87254",200:"#EF9A85",100:"#F5C2B6",50:"#FBE7E2"},green:{900:"#00572E",800:"#006A3F",700:"#007448",600:"#007F52",500:"#00875A",400:"#269973",300:"#4DAB8C",200:"#80C3AD",100:"#B3DBCE",50:"#E0F1EB"},fuchsia:{900:"#500663",800:"#71088B",700:"#880AA8",600:"#9C0BC0",500:"#AD0DD5",400:"#CB67E4",300:"#DB94EC",200:"#E6B6F2",100:"#EFD2F7",50:"#F7E9FB"},pink:{900:"#640648",800:"#8C0864",700:"#A80A79",600:"#C00B8A",500:"#D50D99",400:"#E569BF",300:"#EC96D2",200:"#F2B7E0",100:"#F7D2EC",50:"#FBEAF6"},cyan:{900:"#066552",800:"#088C72",700:"#0AA989",600:"#0BC09C",500:"#0DD5AD",400:"#4DE0C2",300:"#7DE8D3",200:"#A4EFE0",100:"#C6F5EB",50:"#E4FAF5"},primary:tn},on=(rn.blue[50],rn.indigo[50],rn.yellow[50],rn.orange[50],rn.red[50],rn.green[50],rn.fuchsia[50],rn.pink[50],rn.cyan[50],rn.primary[50],rn.grey[100],rn.white[16],rn.black[16],function(e){var n=e.onClick,t=e.isDisabled,r=Ve(e,["onClick","isDisabled"]),a=i((function(){return t||!n?void 0:function(e){return n(e)}}),[t,n]);return o.createElement(an,Ye({},r,{onClick:a}))}),an=w(S).attrs((function(e){var n=e.theme,t=e.color;return t?n.components.icon[t]:{primary:"inherit",secondary:"inherit"}}))(Ze||(Ze=Xe(["\n cursor: ",";\n color: ",";\n animation-duration: 0.8s;\n --fa-secondary-color: ",";\n"],["\n cursor: ",";\n color: ",";\n animation-duration: 0.8s;\n --fa-secondary-color: ",";\n"])),(function(e){return e.onClick?"pointer":"inherit"}),(function(e){return e.primary}),(function(e){return e.secondary})),ln=function(e){return{primary:rn[e][500],secondary:rn[e][200]}},sn=(ln("blue"),ln("red"),ln("green"),ln("yellow"),ln("orange"),ln("primary"),ln("cyan"),ln("fuchsia"),ln("indigo"),ln("pink"),ln("grey"),rn.white[100],rn.white[48],rn.black[100],rn.black[48],function(n){var t=n.className,r=n.color,i=n.size;return o.createElement("div",{className:t},o.createElement(on,{color:r,icon:e,size:null!=i?i:"1x",spin:!0}))});function dn(e){if(null===e||!0===e||!1===e)return NaN;var n=Number(e);return isNaN(n)?n:n<0?Math.ceil(n):Math.floor(n)}function cn(e,n){if(n.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+n.length+" present")}function un(e){cn(1,arguments);var n=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===n?new Date(e.getTime()):"number"==typeof e||"[object Number]"===n?new Date(e):("string"!=typeof e&&"[object String]"!==n||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn((new Error).stack)),new Date(NaN))}function pn(e,n){cn(2,arguments);var t=un(e),r=dn(n);return isNaN(r)?new Date(NaN):r?(t.setDate(t.getDate()+r),t):t}function fn(e,n){cn(2,arguments);var t=un(e),r=dn(n);if(isNaN(r))return new Date(NaN);if(!r)return t;var o=t.getDate(),i=new Date(t.getTime());i.setMonth(t.getMonth()+r+1,0);var a=i.getDate();return o>=a?i:(t.setFullYear(i.getFullYear(),i.getMonth(),o),t)}function mn(e,n){cn(2,arguments);var t=un(e).getTime(),r=dn(n);return new Date(t+r)}function gn(e,n){cn(2,arguments);var t=dn(n);return mn(e,36e5*t)}function hn(e,n){cn(1,arguments);var t=n||{},r=t.locale,o=r&&r.options&&r.options.weekStartsOn,i=null==o?0:dn(o),a=null==t.weekStartsOn?i:dn(t.weekStartsOn);if(!(a>=0&&a<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var l=un(e),s=l.getDay(),d=(s<a?7:0)+s-a;return l.setDate(l.getDate()-d),l.setHours(0,0,0,0),l}function vn(e){return cn(1,arguments),hn(e,{weekStartsOn:1})}function yn(e){cn(1,arguments);var n=un(e),t=n.getFullYear(),r=new Date(0);r.setFullYear(t+1,0,4),r.setHours(0,0,0,0);var o=vn(r),i=new Date(0);i.setFullYear(t,0,4),i.setHours(0,0,0,0);var a=vn(i);return n.getTime()>=o.getTime()?t+1:n.getTime()>=a.getTime()?t:t-1}function bn(e){cn(1,arguments);var n=yn(e),t=new Date(0);t.setFullYear(n,0,4),t.setHours(0,0,0,0);var r=vn(t);return r}function xn(e){var n=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return n.setUTCFullYear(e.getFullYear()),e.getTime()-n.getTime()}function wn(e){cn(1,arguments);var n=un(e);return n.setHours(0,0,0,0),n}function $n(e,n){cn(2,arguments);var t=wn(e),r=wn(n),o=t.getTime()-xn(t),i=r.getTime()-xn(r);return Math.round((o-i)/864e5)}function Cn(e,n){cn(2,arguments);var t=dn(n);return mn(e,6e4*t)}function kn(e,n){cn(2,arguments);var t=dn(n),r=7*t;return pn(e,r)}function En(e,n){cn(2,arguments);var t=dn(n);return fn(e,12*t)}function Sn(e){var n,t;if(cn(1,arguments),e&&"function"==typeof e.forEach)n=e;else{if("object"!=typeof e||null===e)return new Date(NaN);n=Array.prototype.slice.call(e)}return n.forEach((function(e){var n=un(e);(void 0===t||t<n||isNaN(Number(n)))&&(t=n)})),t||new Date(NaN)}function Dn(e){var n,t;if(cn(1,arguments),e&&"function"==typeof e.forEach)n=e;else{if("object"!=typeof e||null===e)return new Date(NaN);n=Array.prototype.slice.call(e)}return n.forEach((function(e){var n=un(e);(void 0===t||t>n||isNaN(n.getDate()))&&(t=n)})),t||new Date(NaN)}function Tn(e){return cn(1,arguments),e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e)}function _n(e){if(cn(1,arguments),!Tn(e)&&"number"!=typeof e)return!1;var n=un(e);return!isNaN(Number(n))}function Nn(e,n){cn(2,arguments);var t=un(e),r=un(n),o=t.getFullYear()-r.getFullYear(),i=t.getMonth()-r.getMonth();return 12*o+i}function Pn(e){cn(1,arguments);var n=un(e),t=Math.floor(n.getMonth()/3)+1;return t}function On(e,n){cn(2,arguments);var t=un(e),r=un(n);return t.getFullYear()-r.getFullYear()}function Mn(e){cn(1,arguments);var n=un(e);return n.setHours(23,59,59,999),n}function Rn(e){cn(1,arguments);var n=un(e),t=n.getMonth(),r=t-t%3;return n.setMonth(r,1),n.setHours(0,0,0,0),n}var In={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},An=function(e,n,t){var r,o=In[e];return r="string"==typeof o?o:1===n?o.one:o.other.replace("{{count}}",n.toString()),null!=t&&t.addSuffix?t.comparison&&t.comparison>0?"in "+r:r+" ago":r};function Fn(e){return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=n.width?String(n.width):e.defaultWidth,r=e.formats[t]||e.formats[e.defaultWidth];return r}}var Ln={date:Fn({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:Fn({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:Fn({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},zn={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function Hn(e){return function(n,t){var r,o=t||{};if("formatting"===(o.context?String(o.context):"standalone")&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,a=o.width?String(o.width):i;r=e.formattingValues[a]||e.formattingValues[i]}else{var l=e.defaultWidth,s=o.width?String(o.width):e.defaultWidth;r=e.values[s]||e.values[l]}return r[e.argumentCallback?e.argumentCallback(n):n]}}function jn(e){return function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=n.match(o);if(!i)return null;var a,l=i[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],d=Array.isArray(s)?Un(s,(function(e){return e.test(l)})):Bn(s,(function(e){return e.test(l)}));a=e.valueCallback?e.valueCallback(d):d,a=t.valueCallback?t.valueCallback(a):a;var c=n.slice(l.length);return{value:a,rest:c}}}function Bn(e,n){for(var t in e)if(e.hasOwnProperty(t)&&n(e[t]))return t}function Un(e,n){for(var t=0;t<e.length;t++)if(n(e[t]))return t}function Yn(e){return function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.match(e.matchPattern);if(!r)return null;var o=r[0],i=n.match(e.parsePattern);if(!i)return null;var a=e.valueCallback?e.valueCallback(i[0]):i[0];a=t.valueCallback?t.valueCallback(a):a;var l=n.slice(o.length);return{value:a,rest:l}}}var Vn={code:"en-US",formatDistance:An,formatLong:Ln,formatRelative:function(e,n,t,r){return zn[e]},localize:{ordinalNumber:function(e,n){var t=Number(e),r=t%100;if(r>20||r<10)switch(r%10){case 1:return t+"st";case 2:return t+"nd";case 3:return t+"rd"}return t+"th"},era:Hn({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:Hn({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Hn({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:Hn({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:Hn({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:Yn({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:jn({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:jn({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:jn({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:jn({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:jn({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};function Wn(e,n){cn(2,arguments);var t=dn(n);return mn(e,-t)}function Gn(e){cn(1,arguments);var n=1,t=un(e),r=t.getUTCDay(),o=(r<n?7:0)+r-n;return t.setUTCDate(t.getUTCDate()-o),t.setUTCHours(0,0,0,0),t}function Kn(e){cn(1,arguments);var n=un(e),t=n.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(t+1,0,4),r.setUTCHours(0,0,0,0);var o=Gn(r),i=new Date(0);i.setUTCFullYear(t,0,4),i.setUTCHours(0,0,0,0);var a=Gn(i);return n.getTime()>=o.getTime()?t+1:n.getTime()>=a.getTime()?t:t-1}function qn(e){cn(1,arguments);var n=Kn(e),t=new Date(0);t.setUTCFullYear(n,0,4),t.setUTCHours(0,0,0,0);var r=Gn(t);return r}function Xn(e){cn(1,arguments);var n=un(e),t=Gn(n).getTime()-qn(n).getTime();return Math.round(t/6048e5)+1}function Qn(e,n){cn(1,arguments);var t=n||{},r=t.locale,o=r&&r.options&&r.options.weekStartsOn,i=null==o?0:dn(o),a=null==t.weekStartsOn?i:dn(t.weekStartsOn);if(!(a>=0&&a<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var l=un(e),s=l.getUTCDay(),d=(s<a?7:0)+s-a;return l.setUTCDate(l.getUTCDate()-d),l.setUTCHours(0,0,0,0),l}function Zn(e,n){cn(1,arguments);var t=un(e),r=t.getUTCFullYear(),o=n||{},i=o.locale,a=i&&i.options&&i.options.firstWeekContainsDate,l=null==a?1:dn(a),s=null==o.firstWeekContainsDate?l:dn(o.firstWeekContainsDate);if(!(s>=1&&s<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var d=new Date(0);d.setUTCFullYear(r+1,0,s),d.setUTCHours(0,0,0,0);var c=Qn(d,n),u=new Date(0);u.setUTCFullYear(r,0,s),u.setUTCHours(0,0,0,0);var p=Qn(u,n);return t.getTime()>=c.getTime()?r+1:t.getTime()>=p.getTime()?r:r-1}function Jn(e,n){cn(1,arguments);var t=n||{},r=t.locale,o=r&&r.options&&r.options.firstWeekContainsDate,i=null==o?1:dn(o),a=null==t.firstWeekContainsDate?i:dn(t.firstWeekContainsDate),l=Zn(e,n),s=new Date(0);s.setUTCFullYear(l,0,a),s.setUTCHours(0,0,0,0);var d=Qn(s,n);return d}function et(e,n){cn(1,arguments);var t=un(e),r=Qn(t,n).getTime()-Jn(t,n).getTime();return Math.round(r/6048e5)+1}function nt(e,n){for(var t=e<0?"-":"",r=Math.abs(e).toString();r.length<n;)r="0"+r;return t+r}var tt={y:function(e,n){var t=e.getUTCFullYear(),r=t>0?t:1-t;return nt("yy"===n?r%100:r,n.length)},M:function(e,n){var t=e.getUTCMonth();return"M"===n?String(t+1):nt(t+1,2)},d:function(e,n){return nt(e.getUTCDate(),n.length)},a:function(e,n){var t=e.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return t.toUpperCase();case"aaa":return t;case"aaaaa":return t[0];default:return"am"===t?"a.m.":"p.m."}},h:function(e,n){return nt(e.getUTCHours()%12||12,n.length)},H:function(e,n){return nt(e.getUTCHours(),n.length)},m:function(e,n){return nt(e.getUTCMinutes(),n.length)},s:function(e,n){return nt(e.getUTCSeconds(),n.length)},S:function(e,n){var t=n.length,r=e.getUTCMilliseconds();return nt(Math.floor(r*Math.pow(10,t-3)),n.length)}},rt="midnight",ot="noon",it="morning",at="afternoon",lt="evening",st="night",dt={G:function(e,n,t){var r=e.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return t.era(r,{width:"abbreviated"});case"GGGGG":return t.era(r,{width:"narrow"});default:return t.era(r,{width:"wide"})}},y:function(e,n,t){if("yo"===n){var r=e.getUTCFullYear(),o=r>0?r:1-r;return t.ordinalNumber(o,{unit:"year"})}return tt.y(e,n)},Y:function(e,n,t,r){var o=Zn(e,r),i=o>0?o:1-o;return"YY"===n?nt(i%100,2):"Yo"===n?t.ordinalNumber(i,{unit:"year"}):nt(i,n.length)},R:function(e,n){return nt(Kn(e),n.length)},u:function(e,n){return nt(e.getUTCFullYear(),n.length)},Q:function(e,n,t){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(n){case"Q":return String(r);case"QQ":return nt(r,2);case"Qo":return t.ordinalNumber(r,{unit:"quarter"});case"QQQ":return t.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return t.quarter(r,{width:"narrow",context:"formatting"});default:return t.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,n,t){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(n){case"q":return String(r);case"qq":return nt(r,2);case"qo":return t.ordinalNumber(r,{unit:"quarter"});case"qqq":return t.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return t.quarter(r,{width:"narrow",context:"standalone"});default:return t.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,n,t){var r=e.getUTCMonth();switch(n){case"M":case"MM":return tt.M(e,n);case"Mo":return t.ordinalNumber(r+1,{unit:"month"});case"MMM":return t.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return t.month(r,{width:"narrow",context:"formatting"});default:return t.month(r,{width:"wide",context:"formatting"})}},L:function(e,n,t){var r=e.getUTCMonth();switch(n){case"L":return String(r+1);case"LL":return nt(r+1,2);case"Lo":return t.ordinalNumber(r+1,{unit:"month"});case"LLL":return t.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return t.month(r,{width:"narrow",context:"standalone"});default:return t.month(r,{width:"wide",context:"standalone"})}},w:function(e,n,t,r){var o=et(e,r);return"wo"===n?t.ordinalNumber(o,{unit:"week"}):nt(o,n.length)},I:function(e,n,t){var r=Xn(e);return"Io"===n?t.ordinalNumber(r,{unit:"week"}):nt(r,n.length)},d:function(e,n,t){return"do"===n?t.ordinalNumber(e.getUTCDate(),{unit:"date"}):tt.d(e,n)},D:function(e,n,t){var r=function(e){cn(1,arguments);var n=un(e),t=n.getTime();n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0);var r=n.getTime(),o=t-r;return Math.floor(o/864e5)+1}(e);return"Do"===n?t.ordinalNumber(r,{unit:"dayOfYear"}):nt(r,n.length)},E:function(e,n,t){var r=e.getUTCDay();switch(n){case"E":case"EE":case"EEE":return t.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return t.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return t.day(r,{width:"short",context:"formatting"});default:return t.day(r,{width:"wide",context:"formatting"})}},e:function(e,n,t,r){var o=e.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(n){case"e":return String(i);case"ee":return nt(i,2);case"eo":return t.ordinalNumber(i,{unit:"day"});case"eee":return t.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return t.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return t.day(o,{width:"short",context:"formatting"});default:return t.day(o,{width:"wide",context:"formatting"})}},c:function(e,n,t,r){var o=e.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(n){case"c":return String(i);case"cc":return nt(i,n.length);case"co":return t.ordinalNumber(i,{unit:"day"});case"ccc":return t.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return t.day(o,{width:"narrow",context:"standalone"});case"cccccc":return t.day(o,{width:"short",context:"standalone"});default:return t.day(o,{width:"wide",context:"standalone"})}},i:function(e,n,t){var r=e.getUTCDay(),o=0===r?7:r;switch(n){case"i":return String(o);case"ii":return nt(o,n.length);case"io":return t.ordinalNumber(o,{unit:"day"});case"iii":return t.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return t.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return t.day(r,{width:"short",context:"formatting"});default:return t.day(r,{width:"wide",context:"formatting"})}},a:function(e,n,t){var r=e.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return t.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return t.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return t.dayPeriod(r,{width:"narrow",context:"formatting"});default:return t.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,n,t){var r,o=e.getUTCHours();switch(r=12===o?ot:0===o?rt:o/12>=1?"pm":"am",n){case"b":case"bb":return t.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return t.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return t.dayPeriod(r,{width:"narrow",context:"formatting"});default:return t.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,n,t){var r,o=e.getUTCHours();switch(r=o>=17?lt:o>=12?at:o>=4?it:st,n){case"B":case"BB":case"BBB":return t.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return t.dayPeriod(r,{width:"narrow",context:"formatting"});default:return t.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,n,t){if("ho"===n){var r=e.getUTCHours()%12;return 0===r&&(r=12),t.ordinalNumber(r,{unit:"hour"})}return tt.h(e,n)},H:function(e,n,t){return"Ho"===n?t.ordinalNumber(e.getUTCHours(),{unit:"hour"}):tt.H(e,n)},K:function(e,n,t){var r=e.getUTCHours()%12;return"Ko"===n?t.ordinalNumber(r,{unit:"hour"}):nt(r,n.length)},k:function(e,n,t){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===n?t.ordinalNumber(r,{unit:"hour"}):nt(r,n.length)},m:function(e,n,t){return"mo"===n?t.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):tt.m(e,n)},s:function(e,n,t){return"so"===n?t.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):tt.s(e,n)},S:function(e,n){return tt.S(e,n)},X:function(e,n,t,r){var o=(r._originalDate||e).getTimezoneOffset();if(0===o)return"Z";switch(n){case"X":return ut(o);case"XXXX":case"XX":return pt(o);default:return pt(o,":")}},x:function(e,n,t,r){var o=(r._originalDate||e).getTimezoneOffset();switch(n){case"x":return ut(o);case"xxxx":case"xx":return pt(o);default:return pt(o,":")}},O:function(e,n,t,r){var o=(r._originalDate||e).getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+ct(o,":");default:return"GMT"+pt(o,":")}},z:function(e,n,t,r){var o=(r._originalDate||e).getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+ct(o,":");default:return"GMT"+pt(o,":")}},t:function(e,n,t,r){var o=r._originalDate||e;return nt(Math.floor(o.getTime()/1e3),n.length)},T:function(e,n,t,r){return nt((r._originalDate||e).getTime(),n.length)}};function ct(e,n){var t=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=r%60;if(0===i)return t+String(o);var a=n||"";return t+String(o)+a+nt(i,2)}function ut(e,n){return e%60==0?(e>0?"-":"+")+nt(Math.abs(e)/60,2):pt(e,n)}function pt(e,n){var t=n||"",r=e>0?"-":"+",o=Math.abs(e);return r+nt(Math.floor(o/60),2)+t+nt(o%60,2)}var ft=dt;function mt(e,n){switch(e){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});default:return n.date({width:"full"})}}function gt(e,n){switch(e){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});default:return n.time({width:"full"})}}var ht={p:gt,P:function(e,n){var t,r=e.match(/(P+)(p+)?/)||[],o=r[1],i=r[2];if(!i)return mt(e,n);switch(o){case"P":t=n.dateTime({width:"short"});break;case"PP":t=n.dateTime({width:"medium"});break;case"PPP":t=n.dateTime({width:"long"});break;default:t=n.dateTime({width:"full"})}return t.replace("{{date}}",mt(o,n)).replace("{{time}}",gt(i,n))}},vt=ht,yt=["D","DD"],bt=["YY","YYYY"];function xt(e){return-1!==yt.indexOf(e)}function wt(e){return-1!==bt.indexOf(e)}function $t(e,n,t){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(n,"`) for formatting years to the input `").concat(t,"`; see: https://git.io/fxCyr"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(n,"`) for formatting years to the input `").concat(t,"`; see: https://git.io/fxCyr"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(n,"`) for formatting days of the month to the input `").concat(t,"`; see: https://git.io/fxCyr"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(n,"`) for formatting days of the month to the input `").concat(t,"`; see: https://git.io/fxCyr"))}var Ct=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,kt=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Et=/^'([^]*?)'?$/,St=/''/g,Dt=/[a-zA-Z]/;function Tt(e,n,t){cn(2,arguments);var r=String(n),o=t||{},i=o.locale||Vn,a=i.options&&i.options.firstWeekContainsDate,l=null==a?1:dn(a),s=null==o.firstWeekContainsDate?l:dn(o.firstWeekContainsDate);if(!(s>=1&&s<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var d=i.options&&i.options.weekStartsOn,c=null==d?0:dn(d),u=null==o.weekStartsOn?c:dn(o.weekStartsOn);if(!(u>=0&&u<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!i.localize)throw new RangeError("locale must contain localize property");if(!i.formatLong)throw new RangeError("locale must contain formatLong property");var p=un(e);if(!_n(p))throw new RangeError("Invalid time value");var f=xn(p),m=Wn(p,f),g={firstWeekContainsDate:s,weekStartsOn:u,locale:i,_originalDate:p},h=r.match(kt).map((function(e){var n=e[0];return"p"===n||"P"===n?(0,vt[n])(e,i.formatLong,g):e})).join("").match(Ct).map((function(t){if("''"===t)return"'";var r=t[0];if("'"===r)return _t(t);var a=ft[r];if(a)return!o.useAdditionalWeekYearTokens&&wt(t)&&$t(t,n,e),!o.useAdditionalDayOfYearTokens&&xt(t)&&$t(t,n,e),a(m,t,i.localize,g);if(r.match(Dt))throw new RangeError("Format string contains an unescaped latin alphabet character `"+r+"`");return t})).join("");return h}function _t(e){return e.match(Et)[1].replace(St,"'")}function Nt(e,n){if(null==e)throw new TypeError("assign requires that input parameter not be null or undefined");for(var t in n=n||{})Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t]);return e}function Pt(e){cn(1,arguments);var n=un(e),t=n.getDate();return t}function Ot(e){cn(1,arguments);var n=un(e),t=n.getDay();return t}function Mt(e){cn(1,arguments);var n=un(e),t=n.getFullYear(),r=n.getMonth(),o=new Date(0);return o.setFullYear(t,r+1,0),o.setHours(0,0,0,0),o.getDate()}function Rt(e){cn(1,arguments);var n=un(e),t=n.getHours();return t}function It(e){cn(1,arguments);var n=un(e),t=n.getMinutes();return t}function At(e){cn(1,arguments);var n=un(e),t=n.getMonth();return t}function Ft(e){cn(1,arguments);var n=un(e),t=n.getSeconds();return t}function Lt(e){cn(1,arguments);var n=un(e),t=n.getTime();return t}function zt(e){return cn(1,arguments),un(e).getFullYear()}function Ht(e,n){cn(2,arguments);var t=dn(n);return fn(e,-t)}function jt(e,n){cn(2,arguments);var t=un(e),r=un(n);return t.getTime()>r.getTime()}function Bt(e,n){cn(2,arguments);var t=un(e),r=un(n);return t.getTime()<r.getTime()}function Ut(e,n,t){cn(2,arguments);var r=t||{},o=r.locale,i=o&&o.options&&o.options.weekStartsOn,a=null==i?0:dn(i),l=null==r.weekStartsOn?a:dn(r.weekStartsOn);if(!(l>=0&&l<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var s=un(e),d=dn(n),c=s.getUTCDay(),u=d%7,p=(u+7)%7,f=(p<l?7:0)+d-c;return s.setUTCDate(s.getUTCDate()+f),s}var Yt=/^(1[0-2]|0?\d)/,Vt=/^(3[0-1]|[0-2]?\d)/,Wt=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,Gt=/^(5[0-3]|[0-4]?\d)/,Kt=/^(2[0-3]|[0-1]?\d)/,qt=/^(2[0-4]|[0-1]?\d)/,Xt=/^(1[0-1]|0?\d)/,Qt=/^(1[0-2]|0?\d)/,Zt=/^[0-5]?\d/,Jt=/^[0-5]?\d/,er=/^\d/,nr=/^\d{1,2}/,tr=/^\d{1,3}/,rr=/^\d{1,4}/,or=/^-?\d+/,ir=/^-?\d/,ar=/^-?\d{1,2}/,lr=/^-?\d{1,3}/,sr=/^-?\d{1,4}/,dr=/^([+-])(\d{2})(\d{2})?|Z/,cr=/^([+-])(\d{2})(\d{2})|Z/,ur=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,pr=/^([+-])(\d{2}):(\d{2})|Z/,fr=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function mr(e,n,t){var r=n.match(e);if(!r)return null;var o=parseInt(r[0],10);return{value:t?t(o):o,rest:n.slice(r[0].length)}}function gr(e,n){var t=n.match(e);return t?"Z"===t[0]?{value:0,rest:n.slice(1)}:{value:("+"===t[1]?1:-1)*(36e5*(t[2]?parseInt(t[2],10):0)+6e4*(t[3]?parseInt(t[3],10):0)+1e3*(t[5]?parseInt(t[5],10):0)),rest:n.slice(t[0].length)}:null}function hr(e,n){return mr(or,e,n)}function vr(e,n,t){switch(e){case 1:return mr(er,n,t);case 2:return mr(nr,n,t);case 3:return mr(tr,n,t);case 4:return mr(rr,n,t);default:return mr(new RegExp("^\\d{1,"+e+"}"),n,t)}}function yr(e,n,t){switch(e){case 1:return mr(ir,n,t);case 2:return mr(ar,n,t);case 3:return mr(lr,n,t);case 4:return mr(sr,n,t);default:return mr(new RegExp("^-?\\d{1,"+e+"}"),n,t)}}function br(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function xr(e,n){var t,r=n>0,o=r?n:1-n;if(o<=50)t=e||100;else{var i=o+50;t=e+100*Math.floor(i/100)-(e>=i%100?100:0)}return r?t:1-t}var wr=[31,28,31,30,31,30,31,31,30,31,30,31],$r=[31,29,31,30,31,30,31,31,30,31,30,31];function Cr(e){return e%400==0||e%4==0&&e%100!=0}var kr={G:{priority:140,parse:function(e,n,t,r){switch(n){case"G":case"GG":case"GGG":return t.era(e,{width:"abbreviated"})||t.era(e,{width:"narrow"});case"GGGGG":return t.era(e,{width:"narrow"});default:return t.era(e,{width:"wide"})||t.era(e,{width:"abbreviated"})||t.era(e,{width:"narrow"})}},set:function(e,n,t,r){return n.era=t,e.setUTCFullYear(t,0,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["R","u","t","T"]},y:{priority:130,parse:function(e,n,t,r){var o=function(e){return{year:e,isTwoDigitYear:"yy"===n}};switch(n){case"y":return vr(4,e,o);case"yo":return t.ordinalNumber(e,{unit:"year",valueCallback:o});default:return vr(n.length,e,o)}},validate:function(e,n,t){return n.isTwoDigitYear||n.year>0},set:function(e,n,t,r){var o=e.getUTCFullYear();if(t.isTwoDigitYear){var i=xr(t.year,o);return e.setUTCFullYear(i,0,1),e.setUTCHours(0,0,0,0),e}var a="era"in n&&1!==n.era?1-t.year:t.year;return e.setUTCFullYear(a,0,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","u","w","I","i","e","c","t","T"]},Y:{priority:130,parse:function(e,n,t,r){var o=function(e){return{year:e,isTwoDigitYear:"YY"===n}};switch(n){case"Y":return vr(4,e,o);case"Yo":return t.ordinalNumber(e,{unit:"year",valueCallback:o});default:return vr(n.length,e,o)}},validate:function(e,n,t){return n.isTwoDigitYear||n.year>0},set:function(e,n,t,r){var o=Zn(e,r);if(t.isTwoDigitYear){var i=xr(t.year,o);return e.setUTCFullYear(i,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),Qn(e,r)}var a="era"in n&&1!==n.era?1-t.year:t.year;return e.setUTCFullYear(a,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),Qn(e,r)},incompatibleTokens:["y","R","u","Q","q","M","L","I","d","D","i","t","T"]},R:{priority:130,parse:function(e,n,t,r){return yr("R"===n?4:n.length,e)},set:function(e,n,t,r){var o=new Date(0);return o.setUTCFullYear(t,0,4),o.setUTCHours(0,0,0,0),Gn(o)},incompatibleTokens:["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]},u:{priority:130,parse:function(e,n,t,r){return yr("u"===n?4:n.length,e)},set:function(e,n,t,r){return e.setUTCFullYear(t,0,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["G","y","Y","R","w","I","i","e","c","t","T"]},Q:{priority:120,parse:function(e,n,t,r){switch(n){case"Q":case"QQ":return vr(n.length,e);case"Qo":return t.ordinalNumber(e,{unit:"quarter"});case"QQQ":return t.quarter(e,{width:"abbreviated",context:"formatting"})||t.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return t.quarter(e,{width:"narrow",context:"formatting"});default:return t.quarter(e,{width:"wide",context:"formatting"})||t.quarter(e,{width:"abbreviated",context:"formatting"})||t.quarter(e,{width:"narrow",context:"formatting"})}},validate:function(e,n,t){return n>=1&&n<=4},set:function(e,n,t,r){return e.setUTCMonth(3*(t-1),1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]},q:{priority:120,parse:function(e,n,t,r){switch(n){case"q":case"qq":return vr(n.length,e);case"qo":return t.ordinalNumber(e,{unit:"quarter"});case"qqq":return t.quarter(e,{width:"abbreviated",context:"standalone"})||t.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return t.quarter(e,{width:"narrow",context:"standalone"});default:return t.quarter(e,{width:"wide",context:"standalone"})||t.quarter(e,{width:"abbreviated",context:"standalone"})||t.quarter(e,{width:"narrow",context:"standalone"})}},validate:function(e,n,t){return n>=1&&n<=4},set:function(e,n,t,r){return e.setUTCMonth(3*(t-1),1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]},M:{priority:110,parse:function(e,n,t,r){var o=function(e){return e-1};switch(n){case"M":return mr(Yt,e,o);case"MM":return vr(2,e,o);case"Mo":return t.ordinalNumber(e,{unit:"month",valueCallback:o});case"MMM":return t.month(e,{width:"abbreviated",context:"formatting"})||t.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return t.month(e,{width:"narrow",context:"formatting"});default:return t.month(e,{width:"wide",context:"formatting"})||t.month(e,{width:"abbreviated",context:"formatting"})||t.month(e,{width:"narrow",context:"formatting"})}},validate:function(e,n,t){return n>=0&&n<=11},set:function(e,n,t,r){return e.setUTCMonth(t,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]},L:{priority:110,parse:function(e,n,t,r){var o=function(e){return e-1};switch(n){case"L":return mr(Yt,e,o);case"LL":return vr(2,e,o);case"Lo":return t.ordinalNumber(e,{unit:"month",valueCallback:o});case"LLL":return t.month(e,{width:"abbreviated",context:"standalone"})||t.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return t.month(e,{width:"narrow",context:"standalone"});default:return t.month(e,{width:"wide",context:"standalone"})||t.month(e,{width:"abbreviated",context:"standalone"})||t.month(e,{width:"narrow",context:"standalone"})}},validate:function(e,n,t){return n>=0&&n<=11},set:function(e,n,t,r){return e.setUTCMonth(t,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]},w:{priority:100,parse:function(e,n,t,r){switch(n){case"w":return mr(Gt,e);case"wo":return t.ordinalNumber(e,{unit:"week"});default:return vr(n.length,e)}},validate:function(e,n,t){return n>=1&&n<=53},set:function(e,n,t,r){return Qn(function(e,n,t){cn(2,arguments);var r=un(e),o=dn(n),i=et(r,t)-o;return r.setUTCDate(r.getUTCDate()-7*i),r}(e,t,r),r)},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","i","t","T"]},I:{priority:100,parse:function(e,n,t,r){switch(n){case"I":return mr(Gt,e);case"Io":return t.ordinalNumber(e,{unit:"week"});default:return vr(n.length,e)}},validate:function(e,n,t){return n>=1&&n<=53},set:function(e,n,t,r){return Gn(function(e,n){cn(2,arguments);var t=un(e),r=dn(n),o=Xn(t)-r;return t.setUTCDate(t.getUTCDate()-7*o),t}(e,t,r),r)},incompatibleTokens:["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]},d:{priority:90,subPriority:1,parse:function(e,n,t,r){switch(n){case"d":return mr(Vt,e);case"do":return t.ordinalNumber(e,{unit:"date"});default:return vr(n.length,e)}},validate:function(e,n,t){var r=Cr(e.getUTCFullYear()),o=e.getUTCMonth();return r?n>=1&&n<=$r[o]:n>=1&&n<=wr[o]},set:function(e,n,t,r){return e.setUTCDate(t),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","w","I","D","i","e","c","t","T"]},D:{priority:90,subPriority:1,parse:function(e,n,t,r){switch(n){case"D":case"DD":return mr(Wt,e);case"Do":return t.ordinalNumber(e,{unit:"date"});default:return vr(n.length,e)}},validate:function(e,n,t){return Cr(e.getUTCFullYear())?n>=1&&n<=366:n>=1&&n<=365},set:function(e,n,t,r){return e.setUTCMonth(0,t),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]},E:{priority:90,parse:function(e,n,t,r){switch(n){case"E":case"EE":case"EEE":return t.day(e,{width:"abbreviated",context:"formatting"})||t.day(e,{width:"short",context:"formatting"})||t.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return t.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return t.day(e,{width:"short",context:"formatting"})||t.day(e,{width:"narrow",context:"formatting"});default:return t.day(e,{width:"wide",context:"formatting"})||t.day(e,{width:"abbreviated",context:"formatting"})||t.day(e,{width:"short",context:"formatting"})||t.day(e,{width:"narrow",context:"formatting"})}},validate:function(e,n,t){return n>=0&&n<=6},set:function(e,n,t,r){return(e=Ut(e,t,r)).setUTCHours(0,0,0,0),e},incompatibleTokens:["D","i","e","c","t","T"]},e:{priority:90,parse:function(e,n,t,r){var o=function(e){var n=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+n};switch(n){case"e":case"ee":return vr(n.length,e,o);case"eo":return t.ordinalNumber(e,{unit:"day",valueCallback:o});case"eee":return t.day(e,{width:"abbreviated",context:"formatting"})||t.day(e,{width:"short",context:"formatting"})||t.day(e,{width:"narrow",context:"formatting"});case"eeeee":return t.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return t.day(e,{width:"short",context:"formatting"})||t.day(e,{width:"narrow",context:"formatting"});default:return t.day(e,{width:"wide",context:"formatting"})||t.day(e,{width:"abbreviated",context:"formatting"})||t.day(e,{width:"short",context:"formatting"})||t.day(e,{width:"narrow",context:"formatting"})}},validate:function(e,n,t){return n>=0&&n<=6},set:function(e,n,t,r){return(e=Ut(e,t,r)).setUTCHours(0,0,0,0),e},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]},c:{priority:90,parse:function(e,n,t,r){var o=function(e){var n=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+n};switch(n){case"c":case"cc":return vr(n.length,e,o);case"co":return t.ordinalNumber(e,{unit:"day",valueCallback:o});case"ccc":return t.day(e,{width:"abbreviated",context:"standalone"})||t.day(e,{width:"short",context:"standalone"})||t.day(e,{width:"narrow",context:"standalone"});case"ccccc":return t.day(e,{width:"narrow",context:"standalone"});case"cccccc":return t.day(e,{width:"short",context:"standalone"})||t.day(e,{width:"narrow",context:"standalone"});default:return t.day(e,{width:"wide",context:"standalone"})||t.day(e,{width:"abbreviated",context:"standalone"})||t.day(e,{width:"short",context:"standalone"})||t.day(e,{width:"narrow",context:"standalone"})}},validate:function(e,n,t){return n>=0&&n<=6},set:function(e,n,t,r){return(e=Ut(e,t,r)).setUTCHours(0,0,0,0),e},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]},i:{priority:90,parse:function(e,n,t,r){var o=function(e){return 0===e?7:e};switch(n){case"i":case"ii":return vr(n.length,e);case"io":return t.ordinalNumber(e,{unit:"day"});case"iii":return t.day(e,{width:"abbreviated",context:"formatting",valueCallback:o})||t.day(e,{width:"short",context:"formatting",valueCallback:o})||t.day(e,{width:"narrow",context:"formatting",valueCallback:o});case"iiiii":return t.day(e,{width:"narrow",context:"formatting",valueCallback:o});case"iiiiii":return t.day(e,{width:"short",context:"formatting",valueCallback:o})||t.day(e,{width:"narrow",context:"formatting",valueCallback:o});default:return t.day(e,{width:"wide",context:"formatting",valueCallback:o})||t.day(e,{width:"abbreviated",context:"formatting",valueCallback:o})||t.day(e,{width:"short",context:"formatting",valueCallback:o})||t.day(e,{width:"narrow",context:"formatting",valueCallback:o})}},validate:function(e,n,t){return n>=1&&n<=7},set:function(e,n,t,r){return e=function(e,n){cn(2,arguments);var t=dn(n);t%7==0&&(t-=7);var r=1,o=un(e),i=o.getUTCDay(),a=((t%7+7)%7<r?7:0)+t-i;return o.setUTCDate(o.getUTCDate()+a),o}(e,t,r),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]},a:{priority:80,parse:function(e,n,t,r){switch(n){case"a":case"aa":case"aaa":return t.dayPeriod(e,{width:"abbreviated",context:"formatting"})||t.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return t.dayPeriod(e,{width:"narrow",context:"formatting"});default:return t.dayPeriod(e,{width:"wide",context:"formatting"})||t.dayPeriod(e,{width:"abbreviated",context:"formatting"})||t.dayPeriod(e,{width:"narrow",context:"formatting"})}},set:function(e,n,t,r){return e.setUTCHours(br(t),0,0,0),e},incompatibleTokens:["b","B","H","k","t","T"]},b:{priority:80,parse:function(e,n,t,r){switch(n){case"b":case"bb":case"bbb":return t.dayPeriod(e,{width:"abbreviated",context:"formatting"})||t.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return t.dayPeriod(e,{width:"narrow",context:"formatting"});default:return t.dayPeriod(e,{width:"wide",context:"formatting"})||t.dayPeriod(e,{width:"abbreviated",context:"formatting"})||t.dayPeriod(e,{width:"narrow",context:"formatting"})}},set:function(e,n,t,r){return e.setUTCHours(br(t),0,0,0),e},incompatibleTokens:["a","B","H","k","t","T"]},B:{priority:80,parse:function(e,n,t,r){switch(n){case"B":case"BB":case"BBB":return t.dayPeriod(e,{width:"abbreviated",context:"formatting"})||t.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return t.dayPeriod(e,{width:"narrow",context:"formatting"});default:return t.dayPeriod(e,{width:"wide",context:"formatting"})||t.dayPeriod(e,{width:"abbreviated",context:"formatting"})||t.dayPeriod(e,{width:"narrow",context:"formatting"})}},set:function(e,n,t,r){return e.setUTCHours(br(t),0,0,0),e},incompatibleTokens:["a","b","t","T"]},h:{priority:70,parse:function(e,n,t,r){switch(n){case"h":return mr(Qt,e);case"ho":return t.ordinalNumber(e,{unit:"hour"});default:return vr(n.length,e)}},validate:function(e,n,t){return n>=1&&n<=12},set:function(e,n,t,r){var o=e.getUTCHours()>=12;return o&&t<12?e.setUTCHours(t+12,0,0,0):o||12!==t?e.setUTCHours(t,0,0,0):e.setUTCHours(0,0,0,0),e},incompatibleTokens:["H","K","k","t","T"]},H:{priority:70,parse:function(e,n,t,r){switch(n){case"H":return mr(Kt,e);case"Ho":return t.ordinalNumber(e,{unit:"hour"});default:return vr(n.length,e)}},validate:function(e,n,t){return n>=0&&n<=23},set:function(e,n,t,r){return e.setUTCHours(t,0,0,0),e},incompatibleTokens:["a","b","h","K","k","t","T"]},K:{priority:70,parse:function(e,n,t,r){switch(n){case"K":return mr(Xt,e);case"Ko":return t.ordinalNumber(e,{unit:"hour"});default:return vr(n.length,e)}},validate:function(e,n,t){return n>=0&&n<=11},set:function(e,n,t,r){return e.getUTCHours()>=12&&t<12?e.setUTCHours(t+12,0,0,0):e.setUTCHours(t,0,0,0),e},incompatibleTokens:["h","H","k","t","T"]},k:{priority:70,parse:function(e,n,t,r){switch(n){case"k":return mr(qt,e);case"ko":return t.ordinalNumber(e,{unit:"hour"});default:return vr(n.length,e)}},validate:function(e,n,t){return n>=1&&n<=24},set:function(e,n,t,r){var o=t<=24?t%24:t;return e.setUTCHours(o,0,0,0),e},incompatibleTokens:["a","b","h","H","K","t","T"]},m:{priority:60,parse:function(e,n,t,r){switch(n){case"m":return mr(Zt,e);case"mo":return t.ordinalNumber(e,{unit:"minute"});default:return vr(n.length,e)}},validate:function(e,n,t){return n>=0&&n<=59},set:function(e,n,t,r){return e.setUTCMinutes(t,0,0),e},incompatibleTokens:["t","T"]},s:{priority:50,parse:function(e,n,t,r){switch(n){case"s":return mr(Jt,e);case"so":return t.ordinalNumber(e,{unit:"second"});default:return vr(n.length,e)}},validate:function(e,n,t){return n>=0&&n<=59},set:function(e,n,t,r){return e.setUTCSeconds(t,0),e},incompatibleTokens:["t","T"]},S:{priority:30,parse:function(e,n,t,r){return vr(n.length,e,(function(e){return Math.floor(e*Math.pow(10,3-n.length))}))},set:function(e,n,t,r){return e.setUTCMilliseconds(t),e},incompatibleTokens:["t","T"]},X:{priority:10,parse:function(e,n,t,r){switch(n){case"X":return gr(dr,e);case"XX":return gr(cr,e);case"XXXX":return gr(ur,e);case"XXXXX":return gr(fr,e);default:return gr(pr,e)}},set:function(e,n,t,r){return n.timestampIsSet?e:new Date(e.getTime()-t)},incompatibleTokens:["t","T","x"]},x:{priority:10,parse:function(e,n,t,r){switch(n){case"x":return gr(dr,e);case"xx":return gr(cr,e);case"xxxx":return gr(ur,e);case"xxxxx":return gr(fr,e);default:return gr(pr,e)}},set:function(e,n,t,r){return n.timestampIsSet?e:new Date(e.getTime()-t)},incompatibleTokens:["t","T","X"]},t:{priority:40,parse:function(e,n,t,r){return hr(e)},set:function(e,n,t,r){return[new Date(1e3*t),{timestampIsSet:!0}]},incompatibleTokens:"*"},T:{priority:20,parse:function(e,n,t,r){return hr(e)},set:function(e,n,t,r){return[new Date(t),{timestampIsSet:!0}]},incompatibleTokens:"*"}},Er=kr,Sr=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Dr=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Tr=/^'([^]*?)'?$/,_r=/''/g,Nr=/\S/,Pr=/[a-zA-Z]/;function Or(e,n,t,r){cn(3,arguments);var o=String(e),i=String(n),a=r||{},l=a.locale||Vn;if(!l.match)throw new RangeError("locale must contain match property");var s=l.options&&l.options.firstWeekContainsDate,d=null==s?1:dn(s),c=null==a.firstWeekContainsDate?d:dn(a.firstWeekContainsDate);if(!(c>=1&&c<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var u=l.options&&l.options.weekStartsOn,p=null==u?0:dn(u),f=null==a.weekStartsOn?p:dn(a.weekStartsOn);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===i)return""===o?un(t):new Date(NaN);var m,g={firstWeekContainsDate:c,weekStartsOn:f,locale:l},h=[{priority:10,subPriority:-1,set:Mr,index:0}],v=i.match(Dr).map((function(e){var n=e[0];return"p"===n||"P"===n?(0,vt[n])(e,l.formatLong,g):e})).join("").match(Sr),y=[];for(m=0;m<v.length;m++){var b=v[m];!a.useAdditionalWeekYearTokens&&wt(b)&&$t(b,i,e),!a.useAdditionalDayOfYearTokens&&xt(b)&&$t(b,i,e);var x=b[0],w=Er[x];if(w){var $=w.incompatibleTokens;if(Array.isArray($)){for(var C=void 0,k=0;k<y.length;k++){var E=y[k].token;if(-1!==$.indexOf(E)||E===x){C=y[k];break}}if(C)throw new RangeError("The format string mustn't contain `".concat(C.fullToken,"` and `").concat(b,"` at the same time"))}else if("*"===w.incompatibleTokens&&y.length)throw new RangeError("The format string mustn't contain `".concat(b,"` and any other token at the same time"));y.push({token:x,fullToken:b});var S=w.parse(o,b,l.match,g);if(!S)return new Date(NaN);h.push({priority:w.priority,subPriority:w.subPriority||0,set:w.set,validate:w.validate,value:S.value,index:h.length}),o=S.rest}else{if(x.match(Pr))throw new RangeError("Format string contains an unescaped latin alphabet character `"+x+"`");if("''"===b?b="'":"'"===x&&(b=Rr(b)),0!==o.indexOf(b))return new Date(NaN);o=o.slice(b.length)}}if(o.length>0&&Nr.test(o))return new Date(NaN);var D=h.map((function(e){return e.priority})).sort((function(e,n){return n-e})).filter((function(e,n,t){return t.indexOf(e)===n})).map((function(e){return h.filter((function(n){return n.priority===e})).sort((function(e,n){return n.subPriority-e.subPriority}))})).map((function(e){return e[0]})),T=un(t);if(isNaN(T))return new Date(NaN);var _=Wn(T,xn(T)),N={};for(m=0;m<D.length;m++){var P=D[m];if(P.validate&&!P.validate(_,P.value,g))return new Date(NaN);var O=P.set(_,N,P.value,g);O[0]?(_=O[0],Nt(N,O[1])):_=O}return _}function Mr(e,n){if(n.timestampIsSet)return e;var t=new Date(0);return t.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),t.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),t}function Rr(e){return e.match(Tr)[1].replace(_r,"'")}function Ir(e,n,t){return cn(2,arguments),_n(Or(e,n,new Date,t))}function Ar(e,n){cn(2,arguments);var t=un(e).getTime(),r=un(n.start).getTime(),o=un(n.end).getTime();if(!(r<=o))throw new RangeError("Invalid interval");return t>=r&&t<=o}var Fr={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Lr=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,zr=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Hr=/^([+-])(\d{2})(?::?(\d{2}))?$/;function jr(e){var n,t={},r=e.split(Fr.dateTimeDelimiter);if(r.length>2)return t;if(/:/.test(r[0])?n=r[0]:(t.date=r[0],n=r[1],Fr.timeZoneDelimiter.test(t.date)&&(t.date=e.split(Fr.timeZoneDelimiter)[0],n=e.substr(t.date.length,e.length))),n){var o=Fr.timezone.exec(n);o?(t.time=n.replace(o[1],""),t.timezone=o[1]):t.time=n}return t}function Br(e,n){var t=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+n)+"})|(\\d{2}|[+-]\\d{"+(2+n)+"})$)"),r=e.match(t);if(!r)return{year:NaN,restDateString:""};var o=r[1]?parseInt(r[1]):null,i=r[2]?parseInt(r[2]):null;return{year:null===i?o:100*i,restDateString:e.slice((r[1]||r[2]).length)}}function Ur(e,n){if(null===n)return new Date(NaN);var t=e.match(Lr);if(!t)return new Date(NaN);var r=!!t[4],o=Yr(t[1]),i=Yr(t[2])-1,a=Yr(t[3]),l=Yr(t[4]),s=Yr(t[5])-1;if(r)return function(e,n,t){return n>=1&&n<=53&&t>=0&&t<=6}(0,l,s)?function(e,n,t){var r=new Date(0);r.setUTCFullYear(e,0,4);var o=r.getUTCDay()||7,i=7*(n-1)+t+1-o;return r.setUTCDate(r.getUTCDate()+i),r}(n,l,s):new Date(NaN);var d=new Date(0);return function(e,n,t){return n>=0&&n<=11&&t>=1&&t<=(Kr[n]||(qr(e)?29:28))}(n,i,a)&&function(e,n){return n>=1&&n<=(qr(e)?366:365)}(n,o)?(d.setUTCFullYear(n,i,Math.max(o,a)),d):new Date(NaN)}function Yr(e){return e?parseInt(e):1}function Vr(e){var n=e.match(zr);if(!n)return NaN;var t=Wr(n[1]),r=Wr(n[2]),o=Wr(n[3]);return function(e,n,t){if(24===e)return 0===n&&0===t;return t>=0&&t<60&&n>=0&&n<60&&e>=0&&e<25}(t,r,o)?36e5*t+6e4*r+1e3*o:NaN}function Wr(e){return e&&parseFloat(e.replace(",","."))||0}function Gr(e){if("Z"===e)return 0;var n=e.match(Hr);if(!n)return 0;var t="+"===n[1]?-1:1,r=parseInt(n[2]),o=n[3]&&parseInt(n[3])||0;return function(e,n){return n>=0&&n<=59}(0,o)?t*(36e5*r+6e4*o):NaN}var Kr=[31,null,31,30,31,30,31,31,30,31,30,31];function qr(e){return e%400==0||e%4==0&&e%100!=0}function Xr(e,n){cn(2,arguments);var t=un(e),r=dn(n),o=t.getFullYear(),i=t.getDate(),a=new Date(0);a.setFullYear(o,r,15),a.setHours(0,0,0,0);var l=Mt(a);return t.setMonth(r,Math.min(i,l)),t}function Qr(e,n){cn(2,arguments);var t=un(e),r=dn(n);return t.setHours(r),t}function Zr(e,n){cn(2,arguments);var t=un(e),r=dn(n);return t.setMinutes(r),t}function Jr(e,n){cn(2,arguments);var t=un(e),r=dn(n),o=Math.floor(t.getMonth()/3)+1,i=r-o;return Xr(t,t.getMonth()+3*i)}function eo(e,n){cn(2,arguments);var t=un(e),r=dn(n);return isNaN(t.getTime())?new Date(NaN):(t.setFullYear(r),t)}function no(e,n){cn(2,arguments);var t=dn(n);return En(e,-t)}function to(e,n,t){cn(2,arguments);var r=Qn(e,t),o=Qn(n,t);return r.getTime()===o.getTime()}var ro={lessThanXSeconds:{one:"meno di un secondo",other:"meno di {{count}} secondi"},xSeconds:{one:"un secondo",other:"{{count}} secondi"},halfAMinute:"alcuni secondi",lessThanXMinutes:{one:"meno di un minuto",other:"meno di {{count}} minuti"},xMinutes:{one:"un minuto",other:"{{count}} minuti"},aboutXHours:{one:"circa un'ora",other:"circa {{count}} ore"},xHours:{one:"un'ora",other:"{{count}} ore"},xDays:{one:"un giorno",other:"{{count}} giorni"},aboutXWeeks:{one:"circa una settimana",other:"circa {{count}} settimane"},xWeeks:{one:"una settimana",other:"{{count}} settimane"},aboutXMonths:{one:"circa un mese",other:"circa {{count}} mesi"},xMonths:{one:"un mese",other:"{{count}} mesi"},aboutXYears:{one:"circa un anno",other:"circa {{count}} anni"},xYears:{one:"un anno",other:"{{count}} anni"},overXYears:{one:"più di un anno",other:"più di {{count}} anni"},almostXYears:{one:"quasi un anno",other:"quasi {{count}} anni"}},oo=function(e,n,t){var r,o=ro[e];return r="string"==typeof o?o:1===n?o.one:o.other.replace("{{count}}",n.toString()),null!=t&&t.addSuffix?t.comparison&&t.comparison>0?"tra "+r:r+" fa":r},io={date:Fn({formats:{full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},defaultWidth:"full"}),time:Fn({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:Fn({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},ao=["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"];function lo(e){return"'"+ao[e]+" alle' p"}var so={lastWeek:function(e,n,t){var r=e.getUTCDay();return to(e,n,t)?lo(r):function(e){return 0===e?"'domenica scorsa alle' p":"'"+ao[e]+" scorso alle' p"}(r)},yesterday:"'ieri alle' p",today:"'oggi alle' p",tomorrow:"'domani alle' p",nextWeek:function(e,n,t){var r=e.getUTCDay();return to(e,n,t)?lo(r):function(e){return 0===e?"'domenica prossima alle' p":"'"+ao[e]+" prossimo alle' p"}(r)},other:"P"},co=function(e,n,t,r){var o=so[e];return"function"==typeof o?o(n,t,r):o},uo={code:"it",formatDistance:oo,formatLong:io,formatRelative:co,localize:{ordinalNumber:function(e,n){return Number(e)+"º"},era:Hn({values:{narrow:["aC","dC"],abbreviated:["a.C.","d.C."],wide:["avanti Cristo","dopo Cristo"]},defaultWidth:"wide"}),quarter:Hn({values:{narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Hn({values:{narrow:["G","F","M","A","M","G","L","A","S","O","N","D"],abbreviated:["gen","feb","mar","apr","mag","giu","lug","ago","set","ott","nov","dic"],wide:["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"]},defaultWidth:"wide"}),day:Hn({values:{narrow:["D","L","M","M","G","V","S"],short:["dom","lun","mar","mer","gio","ven","sab"],abbreviated:["dom","lun","mar","mer","gio","ven","sab"],wide:["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"]},defaultWidth:"wide"}),dayPeriod:Hn({values:{narrow:{am:"m.",pm:"p.",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"},abbreviated:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"},wide:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"}},defaultWidth:"wide",formattingValues:{narrow:{am:"m.",pm:"p.",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"},abbreviated:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"},wide:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:Yn({matchPattern:/^(\d+)(º)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:jn({matchPatterns:{narrow:/^(aC|dC)/i,abbreviated:/^(a\.?\s?C\.?|a\.?\s?e\.?\s?v\.?|d\.?\s?C\.?|e\.?\s?v\.?)/i,wide:/^(avanti Cristo|avanti Era Volgare|dopo Cristo|Era Volgare)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^a/i,/^(d|e)/i]},defaultParseWidth:"any"}),quarter:jn({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^t[1234]/i,wide:/^[1234](º)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:jn({matchPatterns:{narrow:/^[gfmalsond]/i,abbreviated:/^(gen|feb|mar|apr|mag|giu|lug|ago|set|ott|nov|dic)/i,wide:/^(gennaio|febbraio|marzo|aprile|maggio|giugno|luglio|agosto|settembre|ottobre|novembre|dicembre)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^g/i,/^f/i,/^m/i,/^a/i,/^m/i,/^g/i,/^l/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ge/i,/^f/i,/^mar/i,/^ap/i,/^mag/i,/^gi/i,/^l/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:jn({matchPatterns:{narrow:/^[dlmgvs]/i,short:/^(do|lu|ma|me|gi|ve|sa)/i,abbreviated:/^(dom|lun|mar|mer|gio|ven|sab)/i,wide:/^(domenica|luned[i|ì]|marted[i|ì]|mercoled[i|ì]|gioved[i|ì]|venerd[i|ì]|sabato)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^g/i,/^v/i,/^s/i],any:[/^d/i,/^l/i,/^ma/i,/^me/i,/^g/i,/^v/i,/^s/i]},defaultParseWidth:"any"}),dayPeriod:jn({matchPatterns:{narrow:/^(a|m\.|p|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i,any:/^([ap]\.?\s?m\.?|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mezza/i,noon:/^mezzo/i,morning:/mattina/i,afternoon:/pomeriggio/i,evening:/sera/i,night:/notte/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}},po=["yyyy-MM-dd","dd/MM/yyyy","dd-MM-yyyy","yyyy/MM/dd","dd.MM.yyyy","MM/dd/yyyy","dd-MM-yy","dd/MM/yy"],fo=["yyyy-MM-dd HH:mm:ss","dd/MM/yyyy HH:mm:ss","dd-MM-yyyy HH:mm:ss","yyyy/MM/dd HH:mm:ss","dd.MM.yyyy HH:mm:ss","MM/dd/yyyy HH:mm:ss","dd-MM-yy HH:mm:ss","dd/MM/yy HH:mm:ss"],mo=function(e){for(var n=function(e){var n=e.split(" "),t=n[0],r=n[1];return Boolean(t)&&Boolean(r)&&Ir(r,"HH:mm:ss")}(e)?fo:po,t=0;t<n.length;t++)if(Ir(e,n[t]))return n[t];return""},go=function(e,n){var t=function(e){var n=mo(e);return n?Or(e,n,new Date):null}(e);return t?Tt(t,n,{locale:uo}):""},ho=function(e){return e+(function(e){return!!e&&/^\d+$/.test(e.toString())}(e)?"px":"")},vo=function(){return(Math.random()+1).toString(36).substring(7)},yo=function(e){return parseFloat(e.replace(",","."))},bo=function(e){return!isNaN(yo(e))&&isFinite(yo(e))},xo=[50,100,200,300,400,500,600,700,800,900],wo=["black","white"],$o=["grey","blue","indigo","yellow","orange","red","green","fuchsia","pink","cyan","primary"],Co=qe(qe([],wo,!0),$o,!0);function ko(e){return wo.includes(e)}var Eo,So,Do,To,_o,No,Po,Oo,Mo,Ro,Io,Ao=function(e){var n,t=e.children,r=e.type,i=Ve(e,["children","type"]);return o.createElement(Fo,Ye({},i),Array.isArray(t)||o.isValidElement(t)?t:"currency"===r&&("string"==typeof t&&bo(t)||"number"==typeof t&&!isNaN(t))?("number"!=typeof(n=t)&&(n=parseFloat(n)),isNaN(n)||!isFinite(n)?"":n.toLocaleString("it-IT",{minimumFractionDigits:2,maximumFractionDigits:2})+" €"):"date"===r&&"string"==typeof t?go(t,"dd/MM/yyyy"):null!=t?t:"")},Fo=w.div.attrs((function(e){var n=e.color,t=e.theme;return n?function(e){return Co.includes(e)}(n)?{color:ko(n)?t.palette[n][100]:t.palette[n][500]}:{color:n}:{color:void 0}}))(So||(So=Xe(["\n font-size: 14px;\n line-height: 21px;\n\n font-weight: ",";\n\n text-align: ",";\n\n color: ",";\n\n ","\n"],["\n font-size: 14px;\n line-height: 21px;\n\n font-weight: ",";\n\n text-align: ",";\n\n color: ",";\n\n ","\n"])),(function(e){return e.bold?500:400}),(function(e){return e.centered?"center":"left"}),(function(e){var n=e.color;return null!=n?n:"inherit"}),(function(e){var n=e.clamp;return n&&$(Eo||(Eo=Xe(["\n overflow: hidden;\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-line-clamp: ",";\n -webkit-box-orient: vertical;\n "],["\n overflow: hidden;\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-line-clamp: ",";\n -webkit-box-orient: vertical;\n "])),n)})),Lo=w(Ao)(Do||(Do=Xe(["\n font-size: 48px;\n line-height: 72px;\n"],["\n font-size: 48px;\n line-height: 72px;\n"]))),zo=w(Ao)(To||(To=Xe(["\n font-size: 36px;\n line-height: 54px;\n"],["\n font-size: 36px;\n line-height: 54px;\n"]))),Ho=w(Ao)(_o||(_o=Xe(["\n font-size: 30px;\n line-height: 45px;\n"],["\n font-size: 30px;\n line-height: 45px;\n"]))),jo=w(Ao)(No||(No=Xe(["\n font-size: 24px;\n line-height: 36px;\n"],["\n font-size: 24px;\n line-height: 36px;\n"]))),Bo=w(Ao)(Po||(Po=Xe(["\n font-size: 20px;\n line-height: 30px;\n"],["\n font-size: 20px;\n line-height: 30px;\n"]))),Uo=w(Ao)(Oo||(Oo=Xe(["\n font-size: 18px;\n line-height: 27px;\n"],["\n font-size: 18px;\n line-height: 27px;\n"]))),Yo=w(Ao)(Mo||(Mo=Xe(["\n font-size: 16px;\n line-height: 24px;\n"],["\n font-size: 16px;\n line-height: 24px;\n"]))),Vo=w(Ao)(Ro||(Ro=Xe(["\n font-size: 12px;\n line-height: 18px;\n"],["\n font-size: 12px;\n line-height: 18px;\n"])));w(Ao)(Io||(Io=Xe(["\n line-height: 17px;\n"],["\n line-height: 17px;\n"])));var Wo,Go,Ko,qo,Xo,Qo,Zo,Jo,ei,ni,ti,ri,oi,ii,ai,li,si,di,ci,ui,pi,fi,mi,gi,hi,vi,yi,bi,xi,wi,$i,Ci,ki,Ei,Si,Di,Ti,_i,Ni,Pi,Oi,Mi,Ri,Ii,Ai,Fi,Li,zi,Hi,ji,Bi,Ui,Yi={xxs:"4px",xs:"8px",s:"12px",m:"16px",l:"24px",xl:"32px",xxl:"48px",xxxl:"64px"},Vi=w.div(Wo||(Wo=Xe(["\n color: ",";\n .DS-header {\n display: flex;\n align-items: center;\n width: 100%;\n height: ",";\n gap: ",";\n .header__element {\n &:hover {\n &.pointer {\n cursor: pointer;\n }\n }\n }\n\n .action_icon {\n cursor: pointer;\n display: none;\n width: ",";\n height: ",";\n &.visibile {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n }\n &:hover {\n background: ",";\n border-radius: 4px;\n }\n }\n\n .chevron {\n }\n .chevron__closed {\n transform: rotate(-90deg);\n }\n\n .title {\n flex: 1;\n padding: 0;\n user-select: none;\n p {\n margin: 0;\n font-size: 20px;\n line-height: 30px;\n }\n }\n }\n\n .body {\n padding: 0 ",";\n height: auto;\n\n &.closed {\n overflow: hidden;\n height: 0;\n }\n }\n"],["\n color: ",";\n .DS-header {\n display: flex;\n align-items: center;\n width: 100%;\n height: ",";\n gap: ",";\n .header__element {\n &:hover {\n &.pointer {\n cursor: pointer;\n }\n }\n }\n\n .action_icon {\n cursor: pointer;\n display: none;\n width: ",";\n height: ",";\n &.visibile {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n }\n &:hover {\n background: ",";\n border-radius: 4px;\n }\n }\n\n .chevron {\n }\n .chevron__closed {\n transform: rotate(-90deg);\n }\n\n .title {\n flex: 1;\n padding: 0;\n user-select: none;\n p {\n margin: 0;\n font-size: 20px;\n line-height: 30px;\n }\n }\n }\n\n .body {\n padding: 0 ",";\n height: auto;\n\n &.closed {\n overflow: hidden;\n height: 0;\n }\n }\n"])),(function(e){return e.theme.palette.black[100]}),Yi.m,Yi.s,Yi.xl,Yi.xl,(function(e){return e.theme.palette.grey[100]}),Yi.l),Wi=function(e){function n(n){var t=e.call(this,n)||this;t.handleOpenAccordion=function(){var e=t.state.show;t.setState({show:!e})};var r=t.props.showBodyAtFirstRender;return t.state={show:Boolean(r)},t}return Ue(n,e),n.prototype.render=function(){var e=this.props,n=e.lateralActions,t=e.renderBody,r=e.renderLateralActions,i=e.renderTitle,a=e.title,l=this.state.show;return o.createElement(o.Fragment,null,o.createElement("div",{className:"DS-header"},o.createElement("div",{onClick:this.handleOpenAccordion,className:"header__element pointer chevron"+(l?"":"__closed")},o.createElement(on,{icon:D})),o.createElement("div",{onClick:this.handleOpenAccordion,className:"header__element title pointer"},i?o.createElement(o.Fragment,null,i()):o.createElement("p",null,a)),o.createElement("div",{className:"header__element"},r||(null==n?void 0:n.map((function(e,n){return o.createElement("span",{className:"action_icon "+(l?"visibile":""),key:n,onClick:e.action},e.icon)}))))),l&&o.createElement("div",{className:"body"},t()))},n}(a),Gi=function(e){return o.createElement(Vi,Ye({},e),o.createElement(Wi,Ye({},e)))},Ki=function(e,n){for(var t=e.split("").map((function(e){return e.charCodeAt(0)})),r=t.length%(n-1)+1,o=t.reduce((function(e,n){return e+n}),0)%n,i=t[0]%n,a=0;a<t.length;a++)i=(r*i+o)%n;return i},qi=function(e,n){if(!e)return"transparent";var t=Array.from($o).filter((function(e){return"primary"!==e})),r=Array.from(xo).filter((function(e){return e>200})),o=t[Ki(e,t.length)],i=r[Ki(e,r.length)];return n.palette[o][i]},Xi=w.div(Zo||(Zo=Xe(["\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n border-radius: 50%;\n font-weight: 500;\n font-style: normal;\n text-transform: uppercase;\n color: ",";\n background-color: ",";\n\n ","\n\n ","\n\n ","\n"],["\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n border-radius: 50%;\n font-weight: 500;\n font-style: normal;\n text-transform: uppercase;\n color: ",";\n background-color: ",";\n\n ","\n\n ","\n\n ","\n"])),(function(e){var n=e.textColor,t=e.theme;return null!=n?n:t.palette.white[100]}),(function(e){var n=e.backgroundColor,t=e.theme;return null!=n?n:t.palette.primary[500]}),(function(e){return void 0!==e.onClick&&$(Go||(Go=Xe(["\n cursor: pointer;\n "],["\n cursor: pointer;\n "])))}),(function(e){var n=e.size,t=e.textLenght;return $(Ko||(Ko=Xe(["\n height: ","px;\n width: ","px;\n font-size: ","px;\n "],["\n height: ","px;\n width: ","px;\n font-size: ","px;\n "])),n,n,n*function(e){return e<=2?.45:3===e?.4:.35}(t))}),(function(e){var n=e.image,t=e.placeholder;return void 0!==n&&$(Qo||(Qo=Xe(["\n ","\n background-size: cover;\n "],["\n ","\n background-size: cover;\n "])),t?$(qo||(qo=Xe(["\n background-image: url('","'), url('","');\n "],["\n background-image: url('","'), url('","');\n "])),n,t):$(Xo||(Xo=Xe(["\n background-image: url('","');\n "],["\n background-image: url('","');\n "])),n))})),Qi=function(e){var n,t=e.backgroundColor,r=e.className,i=e.icon,a=e.image,l=e.onClick,s=e.placeholder,d=e.randomColor,c=e.size,u=e.style,p=e.text,f=e.textColor,m=C(),g=null!==(n=null==p?void 0:p.split(" ").map((function(e,n){return n>2?null:e.charAt(0)})).join(""))&&void 0!==n?n:"";return o.createElement(Xi,{backgroundColor:d?qi(p,m):t,className:r,image:a,onClick:l,size:c,style:u,textColor:f,textLenght:g.length,placeholder:s},i?o.createElement(on,Ye({},i)):g)},Zi=function(e){var n=e.manualLock,t=void 0!==n&&n,r=e.onClick,o=e.timeMs,i=void 0===o?250:o,a=s(!0);return l((function(e){a.current&&!t&&(a.current=!1,setTimeout((function(){return a.current=!0}),i),null==r||r(e))}),[r,t,i])},Ji={large:40,medium:32},ea=function(e){var n=e.color,t=e.isDisabled,r=e.size,o=e.theme,i=e.type,a=o.components.button,l=a.defaultColor,s=a.defaultSize,d=a.defaultType,c=i||d,u=r||s,p=t?"disabled":n||l,f="primary"===c?"1px solid rgba(9, 30, 66, 0.16)":"",m=t?"default":"pointer",g=o.components.button[c][p];return Ye({height:Ji[u],border:f,cursor:m},g)},na=w(on)(Jo||(Jo=Xe(["\n display: inline-block;\n"],["\n display: inline-block;\n"]))),ta=w(na)(ei||(ei=Xe([""],[""]))),ra=w(na)(ni||(ni=Xe([""],[""]))),oa=w(sn)(ti||(ti=Xe(["\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n display: flex;\n"],["\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n display: flex;\n"]))),ia=w.div(ri||(ri=Xe(["\n display: inline-block;\n line-height: initial;\n"],["\n display: inline-block;\n line-height: initial;\n"]))),aa=w.div(oi||(oi=Xe(["\n opacity: ",";\n display: inline-flex;\n align-items: center;\n justify-content: center;\n"],["\n opacity: ",";\n display: inline-flex;\n align-items: center;\n justify-content: center;\n"])),(function(e){return e.isLoading?0:1})),la=$(ii||(ii=Xe(["\n border-radius: 4px;\n user-select: none;\n position: relative;\n text-align: center;\n\n width: ",";\n\n font-weight: 500;\n\n cursor: ",";\n border: ",";\n\n "," {\n height: ","px;\n }\n\n "," + * {\n margin-left: 8px;\n }\n\n "," + * {\n margin-left: 8px;\n }\n\n color: ",";\n background-color: ",";\n\n &:hover {\n color: ",";\n background-color: ",";\n }\n\n &:active {\n background-color: ",";\n }\n\n padding: 0 12px;\n\n display: inline-block;\n"],["\n border-radius: 4px;\n user-select: none;\n position: relative;\n text-align: center;\n\n width: ",";\n\n font-weight: 500;\n\n cursor: ",";\n border: ",";\n\n "," {\n height: ","px;\n }\n\n "," + * {\n margin-left: 8px;\n }\n\n "," + * {\n margin-left: 8px;\n }\n\n color: ",";\n background-color: ",";\n\n &:hover {\n color: ",";\n background-color: ",";\n }\n\n &:active {\n background-color: ",";\n }\n\n padding: 0 12px;\n\n display: inline-block;\n"])),(function(e){return e.fullWidth?"100%":"initial"}),(function(e){return e.cursor}),(function(e){return e.border}),aa,(function(e){return e.height}),ta,ia,(function(e){return e.text}),(function(e){return e.normal}),(function(e){return e.textHover}),(function(e){return e.hover}),(function(e){return e.active})),sa=w.a.attrs(ea)(ai||(ai=Xe(["\n ",";\n\n text-decoration: none;\n"],["\n ",";\n\n text-decoration: none;\n"])),la),da=w.div.attrs(ea)(li||(li=Xe(["\n ",";\n"],["\n ",";\n"])),la),ca=function(e){var n=e.className,t=e.color,r=e.fullWidth,i=void 0!==r&&r,a=e.href,s=e.iconLeft,d=e.iconRight,c=e.isDisabled,u=void 0!==c&&c,p=e.isLoading,f=void 0!==p&&p,m=e.onClick,g=e.size,h=e.target,v=e.text,y=e.type,b=Zi({onClick:m,manualLock:f||u}),x=!u&&f,w=l((function(e){return a?o.createElement(sa,Ye({},e)):o.createElement(da,Ye({},e))}),[a]);return o.createElement(w,{className:n,size:g,color:t,onClick:b,href:a,type:y,isDisabled:u,fullWidth:i,target:h},o.createElement(aa,{isLoading:x},s&&o.createElement(ta,Ye({},s)),v&&o.createElement(ia,null,v),d&&o.createElement(ra,Ye({},d))),x&&o.createElement(oa,null))},ua=(rn.blue[500],rn.blue[700],rn.blue[900],rn.white[100],rn.grey[100],rn.red[500],rn.red[700],rn.red[900],rn.white[100],rn.grey[100],rn.green[500],rn.green[700],rn.green[900],rn.white[100],rn.grey[100],rn.white[100],rn.grey[100],rn.grey[200],rn.black[100],rn.black[100],rn.yellow[500],rn.yellow[700],rn.yellow[900],rn.white[100],rn.grey[100],rn.grey[50],rn.grey[50],rn.grey[50],rn.grey[200],rn.grey[200],rn.blue[50],rn.blue[100],rn.blue[200],rn.blue[900],rn.blue[900],rn.red[50],rn.red[100],rn.red[200],rn.red[900],rn.red[900],rn.green[50],rn.green[100],rn.green[200],rn.green[900],rn.green[900],rn.yellow[50],rn.yellow[100],rn.yellow[200],rn.yellow[900],rn.yellow[900],rn.grey[50],rn.grey[100],rn.grey[200],rn.black[100],rn.black[100],rn.grey[50],rn.grey[50],rn.grey[50],rn.grey[200],rn.grey[200],rn.blue[50],rn.blue[100],rn.blue[500],rn.blue[500],rn.red[50],rn.red[100],rn.red[500],rn.red[500],rn.green[50],rn.green[100],rn.green[500],rn.green[500],rn.grey[50],rn.grey[100],rn.grey[500],rn.grey[500],rn.yellow[50],rn.yellow[100],rn.yellow[500],rn.yellow[500],rn.grey[200],rn.grey[200],function(e){var n=e.className,t=e.color,r=e.icon,i=e.isDisabled,a=void 0!==i&&i,l=e.onClick,s=e.type,d=Zi({onClick:l,manualLock:a});return o.createElement(pa,{color:t,className:n,type:s,onClick:d,isDisabled:a},o.createElement(on,Ye({},r)))}),pa=w.div.attrs((function(e){var n=e.color,t=e.isDisabled,r=e.theme,o=e.type,i=r.components.iconButton,a=i.defaultColor,l=i.defaultType,s=t?"disabled":n||a,d=o||l;return r.components.iconButton[d][s]}))(si||(si=Xe(["\n display: inline-flex;\n font-size: 20px;\n text-decoration: none;\n padding: 0 8px;\n height: 32px;\n align-items: center;\n\n cursor: ",";\n color: ",";\n\n :hover {\n color: ",";\n text-decoration: none;\n }\n"],["\n display: inline-flex;\n font-size: 20px;\n text-decoration: none;\n padding: 0 8px;\n height: 32px;\n align-items: center;\n\n cursor: ",";\n color: ",";\n\n :hover {\n color: ",";\n text-decoration: none;\n }\n"])),(function(e){return e.isDisabled?"default":"pointer"}),(function(e){return e.normal}),(function(e){return e.hover})),fa=(rn.blue[200],rn.blue[500],rn.red[200],rn.red[500],rn.green[200],rn.green[500],rn.yellow[200],rn.yellow[500],rn.grey[200],rn.grey[200],rn.blue[200],rn.white[100],rn.red[200],rn.white[100],rn.green[200],rn.white[100],rn.yellow[200],rn.white[100],rn.grey[200],rn.grey[200],function(e,n,t){d((function(){function r(n){t&&e.current&&!e.current.contains(n.target)&&t()}return n&&document.addEventListener("mousedown",r),function(){document.removeEventListener("mousedown",r)}}),[e,n])}),ma=w.div(ui||(ui=Xe(["\n ","\n"],["\n ","\n"])),(function(e){var n=e.show,t=e.theme.palette;return $(ci||(ci=Xe(["\n .drawer {\n position: fixed;\n right: 0;\n top: 0;\n height: 100vh;\n width: 500px;\n box-shadow: 0px 16px 24px rgba(23, 43, 77, 0.24), 0px 0px 0px rgba(9, 30, 66, 0.08);\n border-radius: 8px 0 0 8px;\n transform: translateX(110%);\n transition: transform 0.4s ease-in-out;\n z-index: 5;\n background-color: ",";\n display: flex;\n flex-direction: column;\n\n ","\n\n .drawer__header {\n padding-right: calc("," + ",");\n padding-left: ",";\n display: flex;\n align-items: center;\n background-color: ",";\n border-bottom: 1px solid ",";\n\n .drawer__header__title {\n font-weight: 500;\n font-size: 20px;\n line-height: 30px;\n display: flex;\n align-items: center;\n height: calc("," + ",");\n }\n\n .drawer__header__actions {\n position: absolute;\n right: ",";\n top: ",";\n font-size: 24px;\n }\n }\n\n .drawer__body {\n height: 100%;\n overflow-y: scroll;\n }\n\n .drawer__footer {\n height: 80px;\n display: flex;\n justify-content: flex-end;\n align-items: center;\n padding: 0 ",";\n border-top: 1px solid ",";\n }\n }\n "],["\n .drawer {\n position: fixed;\n right: 0;\n top: 0;\n height: 100vh;\n width: 500px;\n box-shadow: 0px 16px 24px rgba(23, 43, 77, 0.24), 0px 0px 0px rgba(9, 30, 66, 0.08);\n border-radius: 8px 0 0 8px;\n transform: translateX(110%);\n transition: transform 0.4s ease-in-out;\n z-index: 5;\n background-color: ",";\n display: flex;\n flex-direction: column;\n\n ","\n\n .drawer__header {\n padding-right: calc("," + ",");\n padding-left: ",";\n display: flex;\n align-items: center;\n background-color: ",";\n border-bottom: 1px solid ",";\n\n .drawer__header__title {\n font-weight: 500;\n font-size: 20px;\n line-height: 30px;\n display: flex;\n align-items: center;\n height: calc("," + ",");\n }\n\n .drawer__header__actions {\n position: absolute;\n right: ",";\n top: ",";\n font-size: 24px;\n }\n }\n\n .drawer__body {\n height: 100%;\n overflow-y: scroll;\n }\n\n .drawer__footer {\n height: 80px;\n display: flex;\n justify-content: flex-end;\n align-items: center;\n padding: 0 ",";\n border-top: 1px solid ",";\n }\n }\n "])),t.white[100],function(e){return e?$(di||(di=Xe(["\n transform: translateX(0);\n "],["\n transform: translateX(0);\n "]))):void 0}(n),Yi.xxxl,Yi.m,Yi.l,t.grey[50],t.grey[100],Yi.xxxl,Yi.m,Yi.l,Yi.l,Yi.l,t.grey[100])})),ga=w(on)(pi||(pi=Xe(["\n cursor: pointer;\n &:hover {\n color: ",";\n"],["\n cursor: pointer;\n &:hover {\n color: ",";\n"])),(function(e){return e.theme.palette.grey[800]})),ha=function(e){var n=e.show,t=e.actionClose,r=e.renderFooter,i=e.renderHeader,a=e.title,l=e.allowOutsideClickClose,d=e.children,c=s(null);return fa(c,l&&n,t),o.createElement("div",{className:"drawer",ref:c},o.createElement("div",{className:"drawer__header"},i?i():o.createElement("div",{className:"drawer__header__title"},a),o.createElement("div",{className:"drawer__header__actions"},o.createElement("span",{onClick:t},o.createElement(ga,{icon:T})))),o.createElement("div",{className:"drawer__body"},d),r?o.createElement("div",{className:"drawer__footer"},r()):null)},va=function(e){return o.createElement(ma,Ye({},e),o.createElement(ha,Ye({},e)))},ya=w.span(fi||(fi=Xe(["\n background-color: transparent;\n color: ",";\n padding: 0 2px 0 2px;\n white-space: nowrap;\n font-size: 12px;\n"],["\n background-color: transparent;\n color: ",";\n padding: 0 2px 0 2px;\n white-space: nowrap;\n font-size: 12px;\n"])),(function(e){return e.theme.components.dropdown.shortcut.color})),ba=function(e){var n=e.active,t=e.className,r=e.componentId,i=e.icon,a=e.isDisabled,s=e.onClick,d=e.rowHasFocus,c=e.shortcut,u=e.text,p=Ve(e,["active","className","componentId","icon","isDisabled","onClick","rowHasFocus","shortcut","text"]),f=l((function(e){return!a&&(null==s?void 0:s(e))}),[a,s]);return o.createElement(xa,Ye({active:!!n,className:t||"",id:r,isDisabled:a,onClick:f,rowHasFocus:Boolean(d),tabIndex:-1},p),o.createElement(wa,null,i&&o.createElement(on,Ye({},i)),o.createElement($a,null,u),c&&o.createElement(ya,null,c)))},xa=w.div.attrs((function(e){var n=e.theme,t=e.isDisabled,r=e.active,o=e.type,i=void 0===o?"default":o,a=n.components.dropdown.items.notActive[i],l=n.components.dropdown.items.active,s=r?l:a;return{opacity:t?.5:1,background:s.background,color:s.color,hoverBackground:s.hoverBackground}}))(hi||(hi=Xe(["\n text-align: left;\n line-height: 21px !important;\n padding: 5px 16px;\n font-size: 14px;\n font-style: normal;\n font-weight: normal;\n\n opacity: ",";\n color: ",";\n background-color: ",";\n\n ","\n\n :focus {\n ","\n }\n"],["\n text-align: left;\n line-height: 21px !important;\n padding: 5px 16px;\n font-size: 14px;\n font-style: normal;\n font-weight: normal;\n\n opacity: ",";\n color: ",";\n background-color: ",";\n\n ","\n\n :focus {\n ","\n }\n"])),(function(e){return e.opacity}),(function(e){return e.color}),(function(e){return e.background}),(function(e){var n=e.rowHasFocus,t=e.hoverBackground;return!n&&$(mi||(mi=Xe(["\n :hover {\n background-color: ",";\n }\n "],["\n :hover {\n background-color: ",";\n }\n "])),t)}),(function(e){var n=e.hoverBackground;return $(gi||(gi=Xe(["\n background-color: ",";\n outline: 0 solid transparent;\n "],["\n background-color: ",";\n outline: 0 solid transparent;\n "])),n)})),wa=w.div(vi||(vi=Xe(["\n display: flex;\n align-items: center;\n\n & > * {\n display: inline;\n }\n\n & > svg {\n margin-right: 10px;\n }\n"],["\n display: flex;\n align-items: center;\n\n & > * {\n display: inline;\n }\n\n & > svg {\n margin-right: 10px;\n }\n"]))),$a=w.div(yi||(yi=Xe(["\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: initial;\n flex: 1 1 auto;\n"],["\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: initial;\n flex: 1 1 auto;\n"]))),Ca=w.div(bi||(bi=Xe(["\n margin: 8px 0;\n display: block;\n height: 1px;\n border: 0;\n border-top: 1px solid ",";\n padding: 0;\n cursor: initial;\n"],["\n margin: 8px 0;\n display: block;\n height: 1px;\n border: 0;\n border-top: 1px solid ",";\n padding: 0;\n cursor: initial;\n"])),(function(e){return e.theme.components.dropdown.separator.color})),ka=function(){return o.createElement(Ca,null)},Ea=w.div(xi||(xi=Xe(["\n cursor: initial;\n text-align: left;\n padding: 4px 16px;\n font-weight: 500;\n font-size: 12px;\n line-height: 18px;\n text-transform: uppercase;\n color: ",";\n"],["\n cursor: initial;\n text-align: left;\n padding: 4px 16px;\n font-weight: 500;\n font-size: 12px;\n line-height: 18px;\n text-transform: uppercase;\n color: ",";\n"])),(function(e){return e.theme.components.dropdown.title.color})),Sa=function(e){var n=e.avatarSize,t=e.img,r=e.noText,i=e.onClick,a=e.placeholder,l=e.renderText,s=e.text;return o.createElement(Da,{clickable:!!i,onClick:i},o.createElement(Qi,{image:t,placeholder:a,size:n||24,text:s}),o.createElement(Ta,null,l||(s||r)))},Da=w.div($i||($i=Xe(["\n ",";\n\n display: flex;\n padding: 4px 16px;\n align-items: center;\n"],["\n ",";\n\n display: flex;\n padding: 4px 16px;\n align-items: center;\n"])),(function(e){return e.clickable&&$(wi||(wi=Xe(["\n &:hover {\n background-color: ",";\n cursor: pointer;\n }\n "],["\n &:hover {\n background-color: ",";\n cursor: pointer;\n }\n "])),(function(e){return e.theme.components.dropdown.items.notActive.default.hoverBackground}))})),Ta=w.div(Ci||(Ci=Xe(["\n width: 50px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n vertical-align: middle;\n flex-grow: 1;\n padding-left: 10px;\n"],["\n width: 50px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n vertical-align: middle;\n flex-grow: 1;\n padding-left: 10px;\n"]))),_a=function(e,n){return e.replace(":id",""+n)},Na=function(e,n,t,r,o,i){if(void 0===i&&(i=-1),!n.includes(":id"))throw new Error("Selector pattern require :id");var a=c(i),l=a[0],s=a[1],d=c(null),u=d[0],p=d[1],f=document.getElementById(e);return null==f||f.addEventListener("focusout",(function(e){!t&&e.relatedTarget instanceof Node&&!f.contains(e.relatedTarget)&&(s(-1),p(null))})),null==f||f.addEventListener("focus",(function(){if(!t){var e=i>=0?i:0,r=document.getElementById(_a(n,e));null==r||r.focus(),p(r),s(e)}})),null==f||f.addEventListener("mousemove",(function(){u&&(u.blur(),p(null))})),X("ArrowUp",(function(e){if(e.preventDefault(),!t&&l>=0){var r=Math.max(l-1,0),o=document.getElementById(_a(n,r));o&&(o.focus(),p(o),s(r))}}),{target:f},[l,t,n]),X("ArrowDown",(function(e){if(e.preventDefault(),!t&&l>=0){var r=Math.min(l+1,o),i=document.getElementById(_a(n,r));i&&(i.focus(),p(i),s(r))}}),{target:f},[l,t,o,n]),X("Enter",(function(e){e.preventDefault(),t||l>=0&&r(l)}),{target:f},[l,t]),[l,s,null!==u]},Pa=function(e){var n=e.closeDropdown,t=e.componentId,r=e.content,a=e.fullWidth,l=e.maxWidth,s=e.rowHasFocus,d=e.setHighlightedItem,c=e.emptyState,u=i((function(){return r.map((function(e,r){var i=e.onClick;e.onMouseEnter;var c=Ve(e,["onClick","onMouseEnter"]);return o.createElement(ba,Ye({componentId:t+"_"+r+"_listItem",fullWidth:a,maxWidth:l,key:r,onMouseEnter:function(){return!s&&d(r)},onClick:function(e){e.stopPropagation(),null==i||i(e),n()},rowHasFocus:s},c))}))}),[n,t,r,a,l,s,d]);return r&&r.length>0?o.createElement(o.Fragment,null,u):c?o.createElement(o.Fragment,null,c):o.createElement(Oa,null,"Non ci sono elementi da visualizzare")},Oa=w.div(ki||(ki=Xe(["\n text-align: center;\n padding: 1em;\n"],["\n text-align: center;\n padding: 1em;\n"]))),Ma=function(e){var n=e.title,t=e.isDisabled;return o.createElement(ca,{text:n,isDisabled:t,iconRight:{icon:D}})},Ra=function(e){var n=e.className,t=e.content,r=e.fullWidth,a=e.maxWidth,u=e.maxHeight,p=e.minWidthAsTrigger,f=void 0!==p&&p,m=e.placement,g=void 0===m?"bottom-start":m,h=e.renderContent,v=e.renderTrigger,y=e.triggerStyles,b=e.title,x=e.forceOpen,w=void 0!==x&&x,$=e.disableArrowNavigation,C=void 0!==$&&$,k=e.isDisabled,E=e.emptyState,S=e.onOpen,D=e.withPadding,T=void 0===D||D,_=e.offsetY,N=void 0===_?4:_,P=c(vo())[0],O=c(!1),M=O[0],R=O[1],I=l((function(){return R(!1)}),[]),A=s(null);fa(A,M,I);var F=l((function(e){return null==t?void 0:t[e].onClick}),[t]),L=Na(P+"_list",P+"_:id_listItem",C,F,t?t.length:0),z=L[1],H=L[2],j=l((function(e){k||(R((function(e){return!e})),e.stopPropagation(),e.preventDefault())}),[k]);d((function(){null==S||S(M)}),[M,S]),d((function(){R(w)}),[w]);var B=s(null),U=s(null),Y=c(null),W=Y[0],G=Y[1],K=V(U.current,B.current,{placement:g,strategy:"fixed",modifiers:i((function(){return[{name:"arrow",options:{element:W}},{name:"offset",enabled:!0,options:{offset:[0,N]}},{name:"minWidthAsTrigger",enabled:f,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var n=e.state;n.styles.popper.minWidth=n.rects.reference.width+"px"},effect:function(e){var n=e.state,t=n.elements.reference.getBoundingClientRect().width;n.elements.popper.style.minWidth=t+"px"}}]}),[W,N,f])}),X=K.attributes,Q=K.styles;return o.createElement(Ia,{id:P,className:n,ref:A},o.createElement("div",{style:y,ref:U,onClick:j},b&&o.createElement(Ma,{title:b,isDisabled:k}),!b&&v&&v()),o.createElement(q,{in:w||M,timeout:200,unmountOnExit:!0,appear:!0},o.createElement(za,null,o.createElement(La,Ye({ref:B,style:Q.popper},X.popper,{withPadding:T}),o.createElement("div",{ref:G,style:Q.arrow}),o.createElement("div",{style:Q.offset},t?o.createElement(Aa,{id:P+"_list",fullWidth:r,maxWidth:a,maxHeight:u},o.createElement(Pa,{closeDropdown:I,componentId:P,content:t,disableArrowNavigation:C,fullWidth:r,maxWidth:a,rowHasFocus:H,setHighlightedItem:z,emptyState:E})):o.createElement(Fa,{maxWidth:a},null==h?void 0:h(I)))))))},Ia=w.div(Ei||(Ei=Xe(["\n display: flex;\n"],["\n display: flex;\n"]))),Aa=w.div(_i||(_i=Xe(["\n cursor: pointer;\n\n :focus-within {\n cursor: none;\n }\n ","\n\n ",";\n"],["\n cursor: pointer;\n\n :focus-within {\n cursor: none;\n }\n ","\n\n ",";\n"])),(function(e){var n=e.maxHeight;return n&&$(Si||(Si=Xe(["\n max-height: ",";\n overflow-y: auto;\n "],["\n max-height: ",";\n overflow-y: auto;\n "])),ho(n))}),(function(e){var n=e.fullWidth,t=e.maxWidth;return t?$(Di||(Di=Xe(["\n max-width: ",";\n "],["\n max-width: ",";\n "])),ho(t)):$(Ti||(Ti=Xe(["\n width: ",";\n "],["\n width: ",";\n "])),n?"auto":"200px")})),Fa=w.div(Pi||(Pi=Xe(["\n ","\n"],["\n ","\n"])),(function(e){var n=e.maxWidth;return n&&$(Ni||(Ni=Xe(["\n max-width: ",";\n "],["\n max-width: ",";\n "])),n)})),La=w.div(Mi||(Mi=Xe(["\n overflow-y: hidden;\n ","\n color: ",";\n background-color: ",";\n border-radius: 3px;\n box-shadow: 0 2px 7px -2px rgba(0, 0, 0, 1);\n z-index: 9;\n"],["\n overflow-y: hidden;\n ","\n color: ",";\n background-color: ",";\n border-radius: 3px;\n box-shadow: 0 2px 7px -2px rgba(0, 0, 0, 1);\n z-index: 9;\n"])),(function(e){return e.withPadding&&$(Oi||(Oi=Xe(["\n padding: 8px 0;\n "],["\n padding: 8px 0;\n "])))}),(function(e){return e.theme.components.dropdown.color}),(function(e){return e.theme.components.dropdown.backgroundColor})),za=w.div(Ri||(Ri=Xe(["\n z-index: 9;\n &.enter {\n opacity: 0;\n margin-top: -10px;\n }\n\n &.enter-active {\n opacity: 1;\n margin-top: 0;\n transition: margin-top 200ms, opacity 200ms;\n }\n\n &.exit {\n opacity: 1;\n margin-top: 0;\n }\n\n &.exit-active {\n opacity: 0;\n margin-top: -10px;\n transition: margin-top 200ms, opacity 200ms;\n }\n"],["\n z-index: 9;\n &.enter {\n opacity: 0;\n margin-top: -10px;\n }\n\n &.enter-active {\n opacity: 1;\n margin-top: 0;\n transition: margin-top 200ms, opacity 200ms;\n }\n\n &.exit {\n opacity: 1;\n margin-top: 0;\n }\n\n &.exit-active {\n opacity: 0;\n margin-top: -10px;\n transition: margin-top 200ms, opacity 200ms;\n }\n"]))),Ha=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return Ue(n,e),n.prototype.render=function(){return o.createElement(Ra,Ye({},this.props))},n.Item=ba,n.Title=function(e){return n=e,o.createElement(Ea,null,n.text);var n},n.Separator=ka,n.UserListItem=Sa,n}(a),ja=(rn.grey[900],rn.white[100],rn.black[100],rn.blue[50],rn.grey[100],rn.black[100],rn.grey[100],rn.red[500],rn.red[50],rn.green[500],rn.green[50],rn.yellow[500],rn.yellow[50],rn.blue[500],rn.blue[50],rn.grey[700],rn.grey[100],rn.grey[500],w.span.attrs((function(e){var n=e.disabled,t=e.large,r=e.theme,o=e.hasError,i=r.components.radio.label,a=i.normal,l=i.error;return{fontSize:t?"16px":"14px",cursor:n?"not-allowed":"pointer",opacity:n?.1:1,color:o?l:a}}))(Ii||(Ii=Xe(["\n flex: 1;\n text-align: left;\n font-size: ",";\n cursor: ",";\n color: ",";\n opacity: ",";\n"],["\n flex: 1;\n text-align: left;\n font-size: ",";\n cursor: ",";\n color: ",";\n opacity: ",";\n"])),(function(e){return e.fontSize}),(function(e){return e.cursor}),(function(e){return e.color}),(function(e){return e.opacity}))),Ba=w.div(Ai||(Ai=Xe(["\n display: flex;\n gap: 8px;\n"],["\n display: flex;\n gap: 8px;\n"]))),Ua=w.div(Fi||(Fi=Xe(["\n display: flex;\n flex-flow: column;\n gap: 6px;\n flex: 1;\n"],["\n display: flex;\n flex-flow: column;\n gap: 6px;\n flex: 1;\n"]))),Ya=w.input(Li||(Li=Xe(["\n display: none;\n"],["\n display: none;\n"]))),Va=function(e){var n=e.status,t=e.message,r=function(e,n){var t=C();return n||null===n?n:t.components.inputHelper[e].defaultIcon}(n,e.icon);return o.createElement(Ga,{status:n},r&&o.createElement(Wa,Ye({},r)),t)},Wa=w(on)(zi||(zi=Xe(["\n margin-top: 2px;\n"],["\n margin-top: 2px;\n"]))),Ga=w.div(Hi||(Hi=Xe(["\n color: ",";\n background: ",";\n border-radius: 4px;\n\n padding: 4px 8px;\n\n display: flex;\n align-items: flex-start;\n gap: 8px;\n\n font-size: 12px;\n line-height: 18px;\n\n "," {\n color: ",";\n }\n"],["\n color: ",";\n background: ",";\n border-radius: 4px;\n\n padding: 4px 8px;\n\n display: flex;\n align-items: flex-start;\n gap: 8px;\n\n font-size: 12px;\n line-height: 18px;\n\n "," {\n color: ",";\n }\n"])),(function(e){var n=e.theme,t=e.status;return n.components.inputHelper[t].color}),(function(e){var n=e.theme,t=e.status;return n.components.inputHelper[t].background}),Wa,(function(e){var n=e.theme,t=e.status;return n.components.inputHelper[t].color}));!function(e){e.CHECKED="checked",e.UNCHECKED="unchecked",e.INDETERMINATE="indeterminate"}(ji||(ji={})),function(e){e.NORMAL="normal",e.ERROR="error"}(Bi||(Bi={})),function(e){e.TICKCOLOR="tickColor",e.BACKGROUNDCOLOR="backgroundColor",e.BORDERCOLOR="borderColor"}(Ui||(Ui={}));var Ka,qa,Xa,Qa={checked:_,indeterminate:N,unchecked:null},Za=function(e){return"boolean"==typeof e?e?ji.CHECKED:ji.UNCHECKED:e},Ja=w.span.attrs((function(e){var n=e.theme,t=e.value,r=e.disabled,o=e.large,i=e.hasError,a=n.components.checkbox.input,l=a.normal,s=a.error,d=o?"20px":"16px",c=(i?s:l)[t],u=c.borderColor,p=c.tickColor;return{backgroundColor:c.backgroundColor,tickColor:p,borderColor:u,cursor:r?"not-allowed":"pointer",height:d,width:d,opacity:r?.3:1}}))(Ka||(Ka=Xe(["\n border-radius: 4px;\n font-size: 10px;\n text-align: center;\n\n width: ",";\n height: ",";\n background-color: ",";\n color: ",";\n border: ",";\n cursor: ",";\n\n display: flex;\n justify-content: center;\n align-items: center;\n\n opacity: ",";\n"],["\n border-radius: 4px;\n font-size: 10px;\n text-align: center;\n\n width: ",";\n height: ",";\n background-color: ",";\n color: ",";\n border: ",";\n cursor: ",";\n\n display: flex;\n justify-content: center;\n align-items: center;\n\n opacity: ",";\n"])),(function(e){return e.width}),(function(e){return e.height}),(function(e){return e.backgroundColor}),(function(e){return e.tickColor}),(function(e){return"1px solid "+e.borderColor}),(function(e){return e.cursor}),(function(e){return e.opacity})),el=function(e){var n=e.disabled,t=e.className,r=e.onClick,i=e.large,a=e.text,c=e.value,u=e.helper,p=e.onChange,f=l((function(){var e;return null===(e=h.current)||void 0===e?void 0:e.click()}),[]),m=l((function(e){return!n&&r&&r(e)}),[n,r]),g=Qa[c],h=s(null);d((function(){if(h.current)switch(c){case ji.CHECKED:h.current.checked=!0,h.current.indeterminate=!1;break;case ji.INDETERMINATE:h.current.checked=!1,h.current.indeterminate=!0;break;case ji.UNCHECKED:h.current.checked=!1,h.current.indeterminate=!1}}),[c]);var v="error"===(null==u?void 0:u.status);return o.createElement(Ua,null,o.createElement(Ba,{className:t,onClick:f},o.createElement(Ja,{value:c,large:i,disabled:n,hasError:v},g&&o.createElement(on,{icon:g})),o.createElement(Ya,{ref:h,type:"checkbox",value:c,onClick:m,onChange:p,disabled:n}),!!a&&o.createElement(ja,{large:i,disabled:n,hasError:v},a)),u&&o.createElement(Va,Ye({},u)))},nl=function(e){var n=e.value,t=Ve(e,["value"]);return o.createElement(el,Ye({},t,{value:Za(n)}))},tl={tickColor:rn.white[100],backgroundColor:rn.blue[500],borderColor:rn.blue[500]},rl={tickColor:rn.white[100],backgroundColor:rn.red[500],borderColor:rn.red[500]},ol=(rn.white[100],rn.grey[500],rn.white[100],rn.red[500],rn.black[100],rn.red[500],function(e){void 0===e&&(e=ji.UNCHECKED);var n=c((function(){return Za(e)})),t=n[0],r=n[1],o=t===ji.CHECKED,i=l((function(){return r(ji.CHECKED)}),[]),a=l((function(){return r(ji.UNCHECKED)}),[]),s=l((function(){return r(ji.INDETERMINATE)}),[]),d=l((function(){return r((function(e){return e===ji.UNCHECKED?ji.CHECKED:ji.UNCHECKED}))}),[]);return{status:t,value:o,setCheck:i,setUncheck:a,setIndeterminate:s,toggleCheckbox:d}}),il=$(qa||(qa=Xe(["\n cursor: default !important;\n font-weight: 400 !important;\n display: block !important;\n margin-bottom: 0 !important;\n"],["\n cursor: default !important;\n font-weight: 400 !important;\n display: block !important;\n margin-bottom: 0 !important;\n"])));!function(e){e.STANDARD="standard",e.ERROR="error",e.INFO="info",e.WARNING="warning",e.SUCCESS="success",e.DISABLED="disabled"}(Xa||(Xa={}));var al,ll,sl=w.label(al||(al=Xe(["\n font-size: 12px;\n line-height: 18px;\n\n color: ",";\n\n ","\n\n /* Bootstrap Fixes */\n ","\n"],["\n font-size: 12px;\n line-height: 18px;\n\n color: ",";\n\n ","\n\n /* Bootstrap Fixes */\n ","\n"])),(function(e){var n=e.color,t=e.disabled;return function(e){var n=e.theme,t=e.color;return e.disabled?n.components.label[Xa.DISABLED]:Object.values(Xa).includes(t)?n.components.label[t]:t||n.components.label[Xa.STANDARD]}({theme:e.theme,color:n,disabled:t})}),(function(e){return e.required&&dl}),il),dl=$(ll||(ll=Xe(["\n &:after {\n color: ",";\n content: '*';\n display: inline;\n }\n"],["\n &:after {\n color: ",";\n content: '*';\n display: inline;\n }\n"])),(function(e){return e.theme.components.label[Xa.ERROR]})),cl=function(e){var n=e.label,t=e.disabled,r=e.required,i=e.color;return n?o.createElement(sl,{disabled:t,required:r,color:i},n):null},ul=(rn.red[500],rn.yellow[500],rn.green[500],rn.blue[500],rn.black[100],rn.grey[300],"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{}),pl={exports:{}},fl={exports:{}},ml={},gl="function"==typeof Symbol&&Symbol.for,hl=gl?Symbol.for("react.element"):60103,vl=gl?Symbol.for("react.portal"):60106,yl=gl?Symbol.for("react.fragment"):60107,bl=gl?Symbol.for("react.strict_mode"):60108,xl=gl?Symbol.for("react.profiler"):60114,wl=gl?Symbol.for("react.provider"):60109,$l=gl?Symbol.for("react.context"):60110,Cl=gl?Symbol.for("react.async_mode"):60111,kl=gl?Symbol.for("react.concurrent_mode"):60111,El=gl?Symbol.for("react.forward_ref"):60112,Sl=gl?Symbol.for("react.suspense"):60113,Dl=gl?Symbol.for("react.suspense_list"):60120,Tl=gl?Symbol.for("react.memo"):60115,_l=gl?Symbol.for("react.lazy"):60116,Nl=gl?Symbol.for("react.block"):60121,Pl=gl?Symbol.for("react.fundamental"):60117,Ol=gl?Symbol.for("react.responder"):60118,Ml=gl?Symbol.for("react.scope"):60119;function Rl(e){if("object"==typeof e&&null!==e){var n=e.$$typeof;switch(n){case hl:switch(e=e.type){case Cl:case kl:case yl:case xl:case bl:case Sl:return e;default:switch(e=e&&e.$$typeof){case $l:case El:case _l:case Tl:case wl:return e;default:return n}}case vl:return n}}}function Il(e){return Rl(e)===kl}ml.AsyncMode=Cl,ml.ConcurrentMode=kl,ml.ContextConsumer=$l,ml.ContextProvider=wl,ml.Element=hl,ml.ForwardRef=El,ml.Fragment=yl,ml.Lazy=_l,ml.Memo=Tl,ml.Portal=vl,ml.Profiler=xl,ml.StrictMode=bl,ml.Suspense=Sl,ml.isAsyncMode=function(e){return Il(e)||Rl(e)===Cl},ml.isConcurrentMode=Il,ml.isContextConsumer=function(e){return Rl(e)===$l},ml.isContextProvider=function(e){return Rl(e)===wl},ml.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===hl},ml.isForwardRef=function(e){return Rl(e)===El},ml.isFragment=function(e){return Rl(e)===yl},ml.isLazy=function(e){return Rl(e)===_l},ml.isMemo=function(e){return Rl(e)===Tl},ml.isPortal=function(e){return Rl(e)===vl},ml.isProfiler=function(e){return Rl(e)===xl},ml.isStrictMode=function(e){return Rl(e)===bl},ml.isSuspense=function(e){return Rl(e)===Sl},ml.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===yl||e===kl||e===xl||e===bl||e===Sl||e===Dl||"object"==typeof e&&null!==e&&(e.$$typeof===_l||e.$$typeof===Tl||e.$$typeof===wl||e.$$typeof===$l||e.$$typeof===El||e.$$typeof===Pl||e.$$typeof===Ol||e.$$typeof===Ml||e.$$typeof===Nl)},ml.typeOf=Rl;var Al={};
15
+ ***************************************************************************** */var Be=function(e,n){return Be=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])},Be(e,n)};function Ue(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function t(){this.constructor=e}Be(e,n),e.prototype=null===n?Object.create(n):(t.prototype=n.prototype,new t)}var Ye=function(){return Ye=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var o in n=arguments[t])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e},Ye.apply(this,arguments)};function Ve(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)n.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(t[r[o]]=e[r[o]])}return t}function We(e,n,t,r){return new(t||(t=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function l(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var n;e.done?o(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(a,l)}s((r=r.apply(e,n||[])).next())}))}function Ge(e,n){var t,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(t)throw new TypeError("Generator is already executing.");for(;a;)try{if(t=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=n.call(e,a)}catch(e){i=[6,e],r=0}finally{t=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}}function Ke(e,n){var t="function"==typeof Symbol&&e[Symbol.iterator];if(!t)return e;var r,o,i=t.call(e),a=[];try{for(;(void 0===n||n-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(t=i.return)&&t.call(i)}finally{if(o)throw o.error}}return a}function qe(e,n,t){if(t||2===arguments.length)for(var r,o=0,i=n.length;o<i;o++)!r&&o in n||(r||(r=Array.prototype.slice.call(n,0,o)),r[o]=n[o]);return e.concat(r||Array.prototype.slice.call(n))}function Xe(e,n){return Object.defineProperty?Object.defineProperty(e,"raw",{value:n}):e.raw=n,e}var Qe,Ze,Je={xs:".75em",sm:".875em",lg:"1.33em","1x":"1em","2x":"2em","3x":"3em","4x":"4em","5x":"5em","6x":"6em","7x":"7em","8x":"8em","9x":"9em","10x":"10em"},en=function(e){var n=e.children,t=Ve(e,["children"]);return o.createElement(nn,Ye({},t),n)},nn=w.div(Qe||(Qe=Xe(["\n background-color: ",";\n border-radius: 50%;\n\n min-width: calc("," * ",");\n min-height: calc("," * ",");\n\n display: inline-flex;\n justify-content: center;\n align-items: center;\n"],["\n background-color: ",";\n border-radius: 50%;\n\n min-width: calc("," * ",");\n min-height: calc("," * ",");\n\n display: inline-flex;\n justify-content: center;\n align-items: center;\n"])),(function(e){var n=e.theme,t=e.color;return e.backgroundColor||n.components.iconBackground[t]||"transparent"}),1.5,(function(e){var n=e.size;return Je[n]}),1.5,(function(e){var n=e.size;return Je[n]})),tn={900:"#064763",800:"#08648B",700:"#0A79A8",600:"#0B8AC0",500:"#0D97D5",400:"#4DB4E0",300:"#7DC8E8",200:"#A4D8EF",100:"#C6E7F5",50:"#E4F3FA"},rn={black:{8:"rgba(51, 51, 51, 0.08)",16:"rgba(51, 51, 51, 0.16)",48:"rgba(51, 51, 51, 0.48)",80:"rgba(51, 51, 51, 0.8)",100:"#333333"},white:{8:"rgba(255, 255, 255, 0.08)",16:"rgba(255, 255, 255, 0.16)",48:"rgba(255, 255, 255, 0.48)",80:"rgba(255, 255, 255, 0.8)",100:"#FFFFFF"},grey:{900:"#22282B",800:"#384248",700:"#5A676D",600:"#65747B",500:"#6F7E86",400:"#7F8F94",300:"#A8B3B8",200:"#C4CBCF",100:"#EBEDEE",50:"#FAFAFA"},blue:tn,indigo:{900:"#05175E",800:"#082188",700:"#0A29A6",600:"#0B2FBF",500:"#0D35D5",400:"#637CE3",300:"#90A3EB",200:"#B3BFF1",100:"#D0D7F6",50:"#E8ECFB"},yellow:{900:"#FF6B0A",800:"#FF7C12",700:"#FF8617",600:"#FF911B",500:"#FF991F",400:"#FFA841",300:"#FFB862",200:"#FFCC8F",100:"#FFE0BC",50:"#FFF3E4"},orange:{900:"#783722",800:"#A74D2F",700:"#CA5D39",600:"#E66A42",500:"#FF7649",400:"#FF9978",300:"#FFB49B",200:"#FFCAB9",100:"#FFDED3",50:"#FFEFEA"},red:{900:"#C81603",800:"#D12206",700:"#D52808",600:"#DA300A",500:"#DE350B",400:"#E35330",300:"#E87254",200:"#EF9A85",100:"#F5C2B6",50:"#FBE7E2"},green:{900:"#00572E",800:"#006A3F",700:"#007448",600:"#007F52",500:"#00875A",400:"#269973",300:"#4DAB8C",200:"#80C3AD",100:"#B3DBCE",50:"#E0F1EB"},fuchsia:{900:"#500663",800:"#71088B",700:"#880AA8",600:"#9C0BC0",500:"#AD0DD5",400:"#CB67E4",300:"#DB94EC",200:"#E6B6F2",100:"#EFD2F7",50:"#F7E9FB"},pink:{900:"#640648",800:"#8C0864",700:"#A80A79",600:"#C00B8A",500:"#D50D99",400:"#E569BF",300:"#EC96D2",200:"#F2B7E0",100:"#F7D2EC",50:"#FBEAF6"},cyan:{900:"#066552",800:"#088C72",700:"#0AA989",600:"#0BC09C",500:"#0DD5AD",400:"#4DE0C2",300:"#7DE8D3",200:"#A4EFE0",100:"#C6F5EB",50:"#E4FAF5"},primary:tn},on=(rn.blue[50],rn.indigo[50],rn.yellow[50],rn.orange[50],rn.red[50],rn.green[50],rn.fuchsia[50],rn.pink[50],rn.cyan[50],rn.primary[50],rn.grey[100],rn.white[16],rn.black[16],function(e){var n=e.onClick,t=e.isDisabled,r=Ve(e,["onClick","isDisabled"]),a=i((function(){return t||!n?void 0:function(e){return n(e)}}),[t,n]);return o.createElement(an,Ye({},r,{onClick:a}))}),an=w(S).attrs((function(e){var n=e.theme,t=e.color;return t?n.components.icon[t]:{primary:"inherit",secondary:"inherit"}}))(Ze||(Ze=Xe(["\n cursor: ",";\n color: ",";\n animation-duration: 0.8s;\n --fa-secondary-color: ",";\n"],["\n cursor: ",";\n color: ",";\n animation-duration: 0.8s;\n --fa-secondary-color: ",";\n"])),(function(e){return e.onClick?"pointer":"inherit"}),(function(e){return e.primary}),(function(e){return e.secondary})),ln=function(e){return{primary:rn[e][500],secondary:rn[e][200]}},sn=(ln("blue"),ln("red"),ln("green"),ln("yellow"),ln("orange"),ln("primary"),ln("cyan"),ln("fuchsia"),ln("indigo"),ln("pink"),ln("grey"),rn.white[100],rn.white[48],rn.black[100],rn.black[48],function(n){var t=n.className,r=n.color,i=n.size;return o.createElement("div",{className:t},o.createElement(on,{color:r,icon:e,size:null!=i?i:"1x",spin:!0}))});function dn(e){if(null===e||!0===e||!1===e)return NaN;var n=Number(e);return isNaN(n)?n:n<0?Math.ceil(n):Math.floor(n)}function cn(e,n){if(n.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+n.length+" present")}function un(e){cn(1,arguments);var n=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===n?new Date(e.getTime()):"number"==typeof e||"[object Number]"===n?new Date(e):("string"!=typeof e&&"[object String]"!==n||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn((new Error).stack)),new Date(NaN))}function pn(e,n){cn(2,arguments);var t=un(e),r=dn(n);return isNaN(r)?new Date(NaN):r?(t.setDate(t.getDate()+r),t):t}function fn(e,n){cn(2,arguments);var t=un(e),r=dn(n);if(isNaN(r))return new Date(NaN);if(!r)return t;var o=t.getDate(),i=new Date(t.getTime());i.setMonth(t.getMonth()+r+1,0);var a=i.getDate();return o>=a?i:(t.setFullYear(i.getFullYear(),i.getMonth(),o),t)}function mn(e,n){cn(2,arguments);var t=un(e).getTime(),r=dn(n);return new Date(t+r)}function gn(e,n){cn(2,arguments);var t=dn(n);return mn(e,36e5*t)}function hn(e,n){cn(1,arguments);var t=n||{},r=t.locale,o=r&&r.options&&r.options.weekStartsOn,i=null==o?0:dn(o),a=null==t.weekStartsOn?i:dn(t.weekStartsOn);if(!(a>=0&&a<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var l=un(e),s=l.getDay(),d=(s<a?7:0)+s-a;return l.setDate(l.getDate()-d),l.setHours(0,0,0,0),l}function vn(e){return cn(1,arguments),hn(e,{weekStartsOn:1})}function yn(e){cn(1,arguments);var n=un(e),t=n.getFullYear(),r=new Date(0);r.setFullYear(t+1,0,4),r.setHours(0,0,0,0);var o=vn(r),i=new Date(0);i.setFullYear(t,0,4),i.setHours(0,0,0,0);var a=vn(i);return n.getTime()>=o.getTime()?t+1:n.getTime()>=a.getTime()?t:t-1}function bn(e){cn(1,arguments);var n=yn(e),t=new Date(0);t.setFullYear(n,0,4),t.setHours(0,0,0,0);var r=vn(t);return r}function xn(e){var n=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return n.setUTCFullYear(e.getFullYear()),e.getTime()-n.getTime()}function wn(e){cn(1,arguments);var n=un(e);return n.setHours(0,0,0,0),n}function $n(e,n){cn(2,arguments);var t=wn(e),r=wn(n),o=t.getTime()-xn(t),i=r.getTime()-xn(r);return Math.round((o-i)/864e5)}function Cn(e,n){cn(2,arguments);var t=dn(n);return mn(e,6e4*t)}function kn(e,n){cn(2,arguments);var t=dn(n),r=7*t;return pn(e,r)}function En(e,n){cn(2,arguments);var t=dn(n);return fn(e,12*t)}function Sn(e){var n,t;if(cn(1,arguments),e&&"function"==typeof e.forEach)n=e;else{if("object"!=typeof e||null===e)return new Date(NaN);n=Array.prototype.slice.call(e)}return n.forEach((function(e){var n=un(e);(void 0===t||t<n||isNaN(Number(n)))&&(t=n)})),t||new Date(NaN)}function Dn(e){var n,t;if(cn(1,arguments),e&&"function"==typeof e.forEach)n=e;else{if("object"!=typeof e||null===e)return new Date(NaN);n=Array.prototype.slice.call(e)}return n.forEach((function(e){var n=un(e);(void 0===t||t>n||isNaN(n.getDate()))&&(t=n)})),t||new Date(NaN)}function Tn(e){return cn(1,arguments),e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e)}function _n(e){if(cn(1,arguments),!Tn(e)&&"number"!=typeof e)return!1;var n=un(e);return!isNaN(Number(n))}function Nn(e,n){cn(2,arguments);var t=un(e),r=un(n),o=t.getFullYear()-r.getFullYear(),i=t.getMonth()-r.getMonth();return 12*o+i}function Pn(e){cn(1,arguments);var n=un(e),t=Math.floor(n.getMonth()/3)+1;return t}function On(e,n){cn(2,arguments);var t=un(e),r=un(n);return t.getFullYear()-r.getFullYear()}function Mn(e){cn(1,arguments);var n=un(e);return n.setHours(23,59,59,999),n}function Rn(e){cn(1,arguments);var n=un(e),t=n.getMonth(),r=t-t%3;return n.setMonth(r,1),n.setHours(0,0,0,0),n}var In={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},An=function(e,n,t){var r,o=In[e];return r="string"==typeof o?o:1===n?o.one:o.other.replace("{{count}}",n.toString()),null!=t&&t.addSuffix?t.comparison&&t.comparison>0?"in "+r:r+" ago":r};function Fn(e){return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=n.width?String(n.width):e.defaultWidth,r=e.formats[t]||e.formats[e.defaultWidth];return r}}var Ln={date:Fn({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:Fn({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:Fn({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},zn={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function Hn(e){return function(n,t){var r,o=t||{};if("formatting"===(o.context?String(o.context):"standalone")&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,a=o.width?String(o.width):i;r=e.formattingValues[a]||e.formattingValues[i]}else{var l=e.defaultWidth,s=o.width?String(o.width):e.defaultWidth;r=e.values[s]||e.values[l]}return r[e.argumentCallback?e.argumentCallback(n):n]}}function jn(e){return function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=n.match(o);if(!i)return null;var a,l=i[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],d=Array.isArray(s)?Un(s,(function(e){return e.test(l)})):Bn(s,(function(e){return e.test(l)}));a=e.valueCallback?e.valueCallback(d):d,a=t.valueCallback?t.valueCallback(a):a;var c=n.slice(l.length);return{value:a,rest:c}}}function Bn(e,n){for(var t in e)if(e.hasOwnProperty(t)&&n(e[t]))return t}function Un(e,n){for(var t=0;t<e.length;t++)if(n(e[t]))return t}function Yn(e){return function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.match(e.matchPattern);if(!r)return null;var o=r[0],i=n.match(e.parsePattern);if(!i)return null;var a=e.valueCallback?e.valueCallback(i[0]):i[0];a=t.valueCallback?t.valueCallback(a):a;var l=n.slice(o.length);return{value:a,rest:l}}}var Vn={code:"en-US",formatDistance:An,formatLong:Ln,formatRelative:function(e,n,t,r){return zn[e]},localize:{ordinalNumber:function(e,n){var t=Number(e),r=t%100;if(r>20||r<10)switch(r%10){case 1:return t+"st";case 2:return t+"nd";case 3:return t+"rd"}return t+"th"},era:Hn({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:Hn({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Hn({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:Hn({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:Hn({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:Yn({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:jn({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:jn({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:jn({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:jn({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:jn({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};function Wn(e,n){cn(2,arguments);var t=dn(n);return mn(e,-t)}function Gn(e){cn(1,arguments);var n=1,t=un(e),r=t.getUTCDay(),o=(r<n?7:0)+r-n;return t.setUTCDate(t.getUTCDate()-o),t.setUTCHours(0,0,0,0),t}function Kn(e){cn(1,arguments);var n=un(e),t=n.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(t+1,0,4),r.setUTCHours(0,0,0,0);var o=Gn(r),i=new Date(0);i.setUTCFullYear(t,0,4),i.setUTCHours(0,0,0,0);var a=Gn(i);return n.getTime()>=o.getTime()?t+1:n.getTime()>=a.getTime()?t:t-1}function qn(e){cn(1,arguments);var n=Kn(e),t=new Date(0);t.setUTCFullYear(n,0,4),t.setUTCHours(0,0,0,0);var r=Gn(t);return r}function Xn(e){cn(1,arguments);var n=un(e),t=Gn(n).getTime()-qn(n).getTime();return Math.round(t/6048e5)+1}function Qn(e,n){cn(1,arguments);var t=n||{},r=t.locale,o=r&&r.options&&r.options.weekStartsOn,i=null==o?0:dn(o),a=null==t.weekStartsOn?i:dn(t.weekStartsOn);if(!(a>=0&&a<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var l=un(e),s=l.getUTCDay(),d=(s<a?7:0)+s-a;return l.setUTCDate(l.getUTCDate()-d),l.setUTCHours(0,0,0,0),l}function Zn(e,n){cn(1,arguments);var t=un(e),r=t.getUTCFullYear(),o=n||{},i=o.locale,a=i&&i.options&&i.options.firstWeekContainsDate,l=null==a?1:dn(a),s=null==o.firstWeekContainsDate?l:dn(o.firstWeekContainsDate);if(!(s>=1&&s<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var d=new Date(0);d.setUTCFullYear(r+1,0,s),d.setUTCHours(0,0,0,0);var c=Qn(d,n),u=new Date(0);u.setUTCFullYear(r,0,s),u.setUTCHours(0,0,0,0);var p=Qn(u,n);return t.getTime()>=c.getTime()?r+1:t.getTime()>=p.getTime()?r:r-1}function Jn(e,n){cn(1,arguments);var t=n||{},r=t.locale,o=r&&r.options&&r.options.firstWeekContainsDate,i=null==o?1:dn(o),a=null==t.firstWeekContainsDate?i:dn(t.firstWeekContainsDate),l=Zn(e,n),s=new Date(0);s.setUTCFullYear(l,0,a),s.setUTCHours(0,0,0,0);var d=Qn(s,n);return d}function et(e,n){cn(1,arguments);var t=un(e),r=Qn(t,n).getTime()-Jn(t,n).getTime();return Math.round(r/6048e5)+1}function nt(e,n){for(var t=e<0?"-":"",r=Math.abs(e).toString();r.length<n;)r="0"+r;return t+r}var tt={y:function(e,n){var t=e.getUTCFullYear(),r=t>0?t:1-t;return nt("yy"===n?r%100:r,n.length)},M:function(e,n){var t=e.getUTCMonth();return"M"===n?String(t+1):nt(t+1,2)},d:function(e,n){return nt(e.getUTCDate(),n.length)},a:function(e,n){var t=e.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return t.toUpperCase();case"aaa":return t;case"aaaaa":return t[0];default:return"am"===t?"a.m.":"p.m."}},h:function(e,n){return nt(e.getUTCHours()%12||12,n.length)},H:function(e,n){return nt(e.getUTCHours(),n.length)},m:function(e,n){return nt(e.getUTCMinutes(),n.length)},s:function(e,n){return nt(e.getUTCSeconds(),n.length)},S:function(e,n){var t=n.length,r=e.getUTCMilliseconds();return nt(Math.floor(r*Math.pow(10,t-3)),n.length)}},rt="midnight",ot="noon",it="morning",at="afternoon",lt="evening",st="night",dt={G:function(e,n,t){var r=e.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return t.era(r,{width:"abbreviated"});case"GGGGG":return t.era(r,{width:"narrow"});default:return t.era(r,{width:"wide"})}},y:function(e,n,t){if("yo"===n){var r=e.getUTCFullYear(),o=r>0?r:1-r;return t.ordinalNumber(o,{unit:"year"})}return tt.y(e,n)},Y:function(e,n,t,r){var o=Zn(e,r),i=o>0?o:1-o;return"YY"===n?nt(i%100,2):"Yo"===n?t.ordinalNumber(i,{unit:"year"}):nt(i,n.length)},R:function(e,n){return nt(Kn(e),n.length)},u:function(e,n){return nt(e.getUTCFullYear(),n.length)},Q:function(e,n,t){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(n){case"Q":return String(r);case"QQ":return nt(r,2);case"Qo":return t.ordinalNumber(r,{unit:"quarter"});case"QQQ":return t.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return t.quarter(r,{width:"narrow",context:"formatting"});default:return t.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,n,t){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(n){case"q":return String(r);case"qq":return nt(r,2);case"qo":return t.ordinalNumber(r,{unit:"quarter"});case"qqq":return t.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return t.quarter(r,{width:"narrow",context:"standalone"});default:return t.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,n,t){var r=e.getUTCMonth();switch(n){case"M":case"MM":return tt.M(e,n);case"Mo":return t.ordinalNumber(r+1,{unit:"month"});case"MMM":return t.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return t.month(r,{width:"narrow",context:"formatting"});default:return t.month(r,{width:"wide",context:"formatting"})}},L:function(e,n,t){var r=e.getUTCMonth();switch(n){case"L":return String(r+1);case"LL":return nt(r+1,2);case"Lo":return t.ordinalNumber(r+1,{unit:"month"});case"LLL":return t.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return t.month(r,{width:"narrow",context:"standalone"});default:return t.month(r,{width:"wide",context:"standalone"})}},w:function(e,n,t,r){var o=et(e,r);return"wo"===n?t.ordinalNumber(o,{unit:"week"}):nt(o,n.length)},I:function(e,n,t){var r=Xn(e);return"Io"===n?t.ordinalNumber(r,{unit:"week"}):nt(r,n.length)},d:function(e,n,t){return"do"===n?t.ordinalNumber(e.getUTCDate(),{unit:"date"}):tt.d(e,n)},D:function(e,n,t){var r=function(e){cn(1,arguments);var n=un(e),t=n.getTime();n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0);var r=n.getTime(),o=t-r;return Math.floor(o/864e5)+1}(e);return"Do"===n?t.ordinalNumber(r,{unit:"dayOfYear"}):nt(r,n.length)},E:function(e,n,t){var r=e.getUTCDay();switch(n){case"E":case"EE":case"EEE":return t.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return t.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return t.day(r,{width:"short",context:"formatting"});default:return t.day(r,{width:"wide",context:"formatting"})}},e:function(e,n,t,r){var o=e.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(n){case"e":return String(i);case"ee":return nt(i,2);case"eo":return t.ordinalNumber(i,{unit:"day"});case"eee":return t.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return t.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return t.day(o,{width:"short",context:"formatting"});default:return t.day(o,{width:"wide",context:"formatting"})}},c:function(e,n,t,r){var o=e.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(n){case"c":return String(i);case"cc":return nt(i,n.length);case"co":return t.ordinalNumber(i,{unit:"day"});case"ccc":return t.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return t.day(o,{width:"narrow",context:"standalone"});case"cccccc":return t.day(o,{width:"short",context:"standalone"});default:return t.day(o,{width:"wide",context:"standalone"})}},i:function(e,n,t){var r=e.getUTCDay(),o=0===r?7:r;switch(n){case"i":return String(o);case"ii":return nt(o,n.length);case"io":return t.ordinalNumber(o,{unit:"day"});case"iii":return t.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return t.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return t.day(r,{width:"short",context:"formatting"});default:return t.day(r,{width:"wide",context:"formatting"})}},a:function(e,n,t){var r=e.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return t.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return t.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return t.dayPeriod(r,{width:"narrow",context:"formatting"});default:return t.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,n,t){var r,o=e.getUTCHours();switch(r=12===o?ot:0===o?rt:o/12>=1?"pm":"am",n){case"b":case"bb":return t.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return t.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return t.dayPeriod(r,{width:"narrow",context:"formatting"});default:return t.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,n,t){var r,o=e.getUTCHours();switch(r=o>=17?lt:o>=12?at:o>=4?it:st,n){case"B":case"BB":case"BBB":return t.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return t.dayPeriod(r,{width:"narrow",context:"formatting"});default:return t.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,n,t){if("ho"===n){var r=e.getUTCHours()%12;return 0===r&&(r=12),t.ordinalNumber(r,{unit:"hour"})}return tt.h(e,n)},H:function(e,n,t){return"Ho"===n?t.ordinalNumber(e.getUTCHours(),{unit:"hour"}):tt.H(e,n)},K:function(e,n,t){var r=e.getUTCHours()%12;return"Ko"===n?t.ordinalNumber(r,{unit:"hour"}):nt(r,n.length)},k:function(e,n,t){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===n?t.ordinalNumber(r,{unit:"hour"}):nt(r,n.length)},m:function(e,n,t){return"mo"===n?t.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):tt.m(e,n)},s:function(e,n,t){return"so"===n?t.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):tt.s(e,n)},S:function(e,n){return tt.S(e,n)},X:function(e,n,t,r){var o=(r._originalDate||e).getTimezoneOffset();if(0===o)return"Z";switch(n){case"X":return ut(o);case"XXXX":case"XX":return pt(o);default:return pt(o,":")}},x:function(e,n,t,r){var o=(r._originalDate||e).getTimezoneOffset();switch(n){case"x":return ut(o);case"xxxx":case"xx":return pt(o);default:return pt(o,":")}},O:function(e,n,t,r){var o=(r._originalDate||e).getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+ct(o,":");default:return"GMT"+pt(o,":")}},z:function(e,n,t,r){var o=(r._originalDate||e).getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+ct(o,":");default:return"GMT"+pt(o,":")}},t:function(e,n,t,r){var o=r._originalDate||e;return nt(Math.floor(o.getTime()/1e3),n.length)},T:function(e,n,t,r){return nt((r._originalDate||e).getTime(),n.length)}};function ct(e,n){var t=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=r%60;if(0===i)return t+String(o);var a=n||"";return t+String(o)+a+nt(i,2)}function ut(e,n){return e%60==0?(e>0?"-":"+")+nt(Math.abs(e)/60,2):pt(e,n)}function pt(e,n){var t=n||"",r=e>0?"-":"+",o=Math.abs(e);return r+nt(Math.floor(o/60),2)+t+nt(o%60,2)}var ft=dt;function mt(e,n){switch(e){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});default:return n.date({width:"full"})}}function gt(e,n){switch(e){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});default:return n.time({width:"full"})}}var ht={p:gt,P:function(e,n){var t,r=e.match(/(P+)(p+)?/)||[],o=r[1],i=r[2];if(!i)return mt(e,n);switch(o){case"P":t=n.dateTime({width:"short"});break;case"PP":t=n.dateTime({width:"medium"});break;case"PPP":t=n.dateTime({width:"long"});break;default:t=n.dateTime({width:"full"})}return t.replace("{{date}}",mt(o,n)).replace("{{time}}",gt(i,n))}},vt=ht,yt=["D","DD"],bt=["YY","YYYY"];function xt(e){return-1!==yt.indexOf(e)}function wt(e){return-1!==bt.indexOf(e)}function $t(e,n,t){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(n,"`) for formatting years to the input `").concat(t,"`; see: https://git.io/fxCyr"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(n,"`) for formatting years to the input `").concat(t,"`; see: https://git.io/fxCyr"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(n,"`) for formatting days of the month to the input `").concat(t,"`; see: https://git.io/fxCyr"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(n,"`) for formatting days of the month to the input `").concat(t,"`; see: https://git.io/fxCyr"))}var Ct=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,kt=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Et=/^'([^]*?)'?$/,St=/''/g,Dt=/[a-zA-Z]/;function Tt(e,n,t){cn(2,arguments);var r=String(n),o=t||{},i=o.locale||Vn,a=i.options&&i.options.firstWeekContainsDate,l=null==a?1:dn(a),s=null==o.firstWeekContainsDate?l:dn(o.firstWeekContainsDate);if(!(s>=1&&s<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var d=i.options&&i.options.weekStartsOn,c=null==d?0:dn(d),u=null==o.weekStartsOn?c:dn(o.weekStartsOn);if(!(u>=0&&u<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!i.localize)throw new RangeError("locale must contain localize property");if(!i.formatLong)throw new RangeError("locale must contain formatLong property");var p=un(e);if(!_n(p))throw new RangeError("Invalid time value");var f=xn(p),m=Wn(p,f),g={firstWeekContainsDate:s,weekStartsOn:u,locale:i,_originalDate:p},h=r.match(kt).map((function(e){var n=e[0];return"p"===n||"P"===n?(0,vt[n])(e,i.formatLong,g):e})).join("").match(Ct).map((function(t){if("''"===t)return"'";var r=t[0];if("'"===r)return _t(t);var a=ft[r];if(a)return!o.useAdditionalWeekYearTokens&&wt(t)&&$t(t,n,e),!o.useAdditionalDayOfYearTokens&&xt(t)&&$t(t,n,e),a(m,t,i.localize,g);if(r.match(Dt))throw new RangeError("Format string contains an unescaped latin alphabet character `"+r+"`");return t})).join("");return h}function _t(e){return e.match(Et)[1].replace(St,"'")}function Nt(e,n){if(null==e)throw new TypeError("assign requires that input parameter not be null or undefined");for(var t in n=n||{})Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t]);return e}function Pt(e){cn(1,arguments);var n=un(e),t=n.getDate();return t}function Ot(e){cn(1,arguments);var n=un(e),t=n.getDay();return t}function Mt(e){cn(1,arguments);var n=un(e),t=n.getFullYear(),r=n.getMonth(),o=new Date(0);return o.setFullYear(t,r+1,0),o.setHours(0,0,0,0),o.getDate()}function Rt(e){cn(1,arguments);var n=un(e),t=n.getHours();return t}function It(e){cn(1,arguments);var n=un(e),t=n.getMinutes();return t}function At(e){cn(1,arguments);var n=un(e),t=n.getMonth();return t}function Ft(e){cn(1,arguments);var n=un(e),t=n.getSeconds();return t}function Lt(e){cn(1,arguments);var n=un(e),t=n.getTime();return t}function zt(e){return cn(1,arguments),un(e).getFullYear()}function Ht(e,n){cn(2,arguments);var t=dn(n);return fn(e,-t)}function jt(e,n){cn(2,arguments);var t=un(e),r=un(n);return t.getTime()>r.getTime()}function Bt(e,n){cn(2,arguments);var t=un(e),r=un(n);return t.getTime()<r.getTime()}function Ut(e,n,t){cn(2,arguments);var r=t||{},o=r.locale,i=o&&o.options&&o.options.weekStartsOn,a=null==i?0:dn(i),l=null==r.weekStartsOn?a:dn(r.weekStartsOn);if(!(l>=0&&l<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var s=un(e),d=dn(n),c=s.getUTCDay(),u=d%7,p=(u+7)%7,f=(p<l?7:0)+d-c;return s.setUTCDate(s.getUTCDate()+f),s}var Yt=/^(1[0-2]|0?\d)/,Vt=/^(3[0-1]|[0-2]?\d)/,Wt=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,Gt=/^(5[0-3]|[0-4]?\d)/,Kt=/^(2[0-3]|[0-1]?\d)/,qt=/^(2[0-4]|[0-1]?\d)/,Xt=/^(1[0-1]|0?\d)/,Qt=/^(1[0-2]|0?\d)/,Zt=/^[0-5]?\d/,Jt=/^[0-5]?\d/,er=/^\d/,nr=/^\d{1,2}/,tr=/^\d{1,3}/,rr=/^\d{1,4}/,or=/^-?\d+/,ir=/^-?\d/,ar=/^-?\d{1,2}/,lr=/^-?\d{1,3}/,sr=/^-?\d{1,4}/,dr=/^([+-])(\d{2})(\d{2})?|Z/,cr=/^([+-])(\d{2})(\d{2})|Z/,ur=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,pr=/^([+-])(\d{2}):(\d{2})|Z/,fr=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function mr(e,n,t){var r=n.match(e);if(!r)return null;var o=parseInt(r[0],10);return{value:t?t(o):o,rest:n.slice(r[0].length)}}function gr(e,n){var t=n.match(e);return t?"Z"===t[0]?{value:0,rest:n.slice(1)}:{value:("+"===t[1]?1:-1)*(36e5*(t[2]?parseInt(t[2],10):0)+6e4*(t[3]?parseInt(t[3],10):0)+1e3*(t[5]?parseInt(t[5],10):0)),rest:n.slice(t[0].length)}:null}function hr(e,n){return mr(or,e,n)}function vr(e,n,t){switch(e){case 1:return mr(er,n,t);case 2:return mr(nr,n,t);case 3:return mr(tr,n,t);case 4:return mr(rr,n,t);default:return mr(new RegExp("^\\d{1,"+e+"}"),n,t)}}function yr(e,n,t){switch(e){case 1:return mr(ir,n,t);case 2:return mr(ar,n,t);case 3:return mr(lr,n,t);case 4:return mr(sr,n,t);default:return mr(new RegExp("^-?\\d{1,"+e+"}"),n,t)}}function br(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function xr(e,n){var t,r=n>0,o=r?n:1-n;if(o<=50)t=e||100;else{var i=o+50;t=e+100*Math.floor(i/100)-(e>=i%100?100:0)}return r?t:1-t}var wr=[31,28,31,30,31,30,31,31,30,31,30,31],$r=[31,29,31,30,31,30,31,31,30,31,30,31];function Cr(e){return e%400==0||e%4==0&&e%100!=0}var kr={G:{priority:140,parse:function(e,n,t,r){switch(n){case"G":case"GG":case"GGG":return t.era(e,{width:"abbreviated"})||t.era(e,{width:"narrow"});case"GGGGG":return t.era(e,{width:"narrow"});default:return t.era(e,{width:"wide"})||t.era(e,{width:"abbreviated"})||t.era(e,{width:"narrow"})}},set:function(e,n,t,r){return n.era=t,e.setUTCFullYear(t,0,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["R","u","t","T"]},y:{priority:130,parse:function(e,n,t,r){var o=function(e){return{year:e,isTwoDigitYear:"yy"===n}};switch(n){case"y":return vr(4,e,o);case"yo":return t.ordinalNumber(e,{unit:"year",valueCallback:o});default:return vr(n.length,e,o)}},validate:function(e,n,t){return n.isTwoDigitYear||n.year>0},set:function(e,n,t,r){var o=e.getUTCFullYear();if(t.isTwoDigitYear){var i=xr(t.year,o);return e.setUTCFullYear(i,0,1),e.setUTCHours(0,0,0,0),e}var a="era"in n&&1!==n.era?1-t.year:t.year;return e.setUTCFullYear(a,0,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","u","w","I","i","e","c","t","T"]},Y:{priority:130,parse:function(e,n,t,r){var o=function(e){return{year:e,isTwoDigitYear:"YY"===n}};switch(n){case"Y":return vr(4,e,o);case"Yo":return t.ordinalNumber(e,{unit:"year",valueCallback:o});default:return vr(n.length,e,o)}},validate:function(e,n,t){return n.isTwoDigitYear||n.year>0},set:function(e,n,t,r){var o=Zn(e,r);if(t.isTwoDigitYear){var i=xr(t.year,o);return e.setUTCFullYear(i,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),Qn(e,r)}var a="era"in n&&1!==n.era?1-t.year:t.year;return e.setUTCFullYear(a,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),Qn(e,r)},incompatibleTokens:["y","R","u","Q","q","M","L","I","d","D","i","t","T"]},R:{priority:130,parse:function(e,n,t,r){return yr("R"===n?4:n.length,e)},set:function(e,n,t,r){var o=new Date(0);return o.setUTCFullYear(t,0,4),o.setUTCHours(0,0,0,0),Gn(o)},incompatibleTokens:["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]},u:{priority:130,parse:function(e,n,t,r){return yr("u"===n?4:n.length,e)},set:function(e,n,t,r){return e.setUTCFullYear(t,0,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["G","y","Y","R","w","I","i","e","c","t","T"]},Q:{priority:120,parse:function(e,n,t,r){switch(n){case"Q":case"QQ":return vr(n.length,e);case"Qo":return t.ordinalNumber(e,{unit:"quarter"});case"QQQ":return t.quarter(e,{width:"abbreviated",context:"formatting"})||t.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return t.quarter(e,{width:"narrow",context:"formatting"});default:return t.quarter(e,{width:"wide",context:"formatting"})||t.quarter(e,{width:"abbreviated",context:"formatting"})||t.quarter(e,{width:"narrow",context:"formatting"})}},validate:function(e,n,t){return n>=1&&n<=4},set:function(e,n,t,r){return e.setUTCMonth(3*(t-1),1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]},q:{priority:120,parse:function(e,n,t,r){switch(n){case"q":case"qq":return vr(n.length,e);case"qo":return t.ordinalNumber(e,{unit:"quarter"});case"qqq":return t.quarter(e,{width:"abbreviated",context:"standalone"})||t.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return t.quarter(e,{width:"narrow",context:"standalone"});default:return t.quarter(e,{width:"wide",context:"standalone"})||t.quarter(e,{width:"abbreviated",context:"standalone"})||t.quarter(e,{width:"narrow",context:"standalone"})}},validate:function(e,n,t){return n>=1&&n<=4},set:function(e,n,t,r){return e.setUTCMonth(3*(t-1),1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]},M:{priority:110,parse:function(e,n,t,r){var o=function(e){return e-1};switch(n){case"M":return mr(Yt,e,o);case"MM":return vr(2,e,o);case"Mo":return t.ordinalNumber(e,{unit:"month",valueCallback:o});case"MMM":return t.month(e,{width:"abbreviated",context:"formatting"})||t.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return t.month(e,{width:"narrow",context:"formatting"});default:return t.month(e,{width:"wide",context:"formatting"})||t.month(e,{width:"abbreviated",context:"formatting"})||t.month(e,{width:"narrow",context:"formatting"})}},validate:function(e,n,t){return n>=0&&n<=11},set:function(e,n,t,r){return e.setUTCMonth(t,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]},L:{priority:110,parse:function(e,n,t,r){var o=function(e){return e-1};switch(n){case"L":return mr(Yt,e,o);case"LL":return vr(2,e,o);case"Lo":return t.ordinalNumber(e,{unit:"month",valueCallback:o});case"LLL":return t.month(e,{width:"abbreviated",context:"standalone"})||t.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return t.month(e,{width:"narrow",context:"standalone"});default:return t.month(e,{width:"wide",context:"standalone"})||t.month(e,{width:"abbreviated",context:"standalone"})||t.month(e,{width:"narrow",context:"standalone"})}},validate:function(e,n,t){return n>=0&&n<=11},set:function(e,n,t,r){return e.setUTCMonth(t,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]},w:{priority:100,parse:function(e,n,t,r){switch(n){case"w":return mr(Gt,e);case"wo":return t.ordinalNumber(e,{unit:"week"});default:return vr(n.length,e)}},validate:function(e,n,t){return n>=1&&n<=53},set:function(e,n,t,r){return Qn(function(e,n,t){cn(2,arguments);var r=un(e),o=dn(n),i=et(r,t)-o;return r.setUTCDate(r.getUTCDate()-7*i),r}(e,t,r),r)},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","i","t","T"]},I:{priority:100,parse:function(e,n,t,r){switch(n){case"I":return mr(Gt,e);case"Io":return t.ordinalNumber(e,{unit:"week"});default:return vr(n.length,e)}},validate:function(e,n,t){return n>=1&&n<=53},set:function(e,n,t,r){return Gn(function(e,n){cn(2,arguments);var t=un(e),r=dn(n),o=Xn(t)-r;return t.setUTCDate(t.getUTCDate()-7*o),t}(e,t,r),r)},incompatibleTokens:["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]},d:{priority:90,subPriority:1,parse:function(e,n,t,r){switch(n){case"d":return mr(Vt,e);case"do":return t.ordinalNumber(e,{unit:"date"});default:return vr(n.length,e)}},validate:function(e,n,t){var r=Cr(e.getUTCFullYear()),o=e.getUTCMonth();return r?n>=1&&n<=$r[o]:n>=1&&n<=wr[o]},set:function(e,n,t,r){return e.setUTCDate(t),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","w","I","D","i","e","c","t","T"]},D:{priority:90,subPriority:1,parse:function(e,n,t,r){switch(n){case"D":case"DD":return mr(Wt,e);case"Do":return t.ordinalNumber(e,{unit:"date"});default:return vr(n.length,e)}},validate:function(e,n,t){return Cr(e.getUTCFullYear())?n>=1&&n<=366:n>=1&&n<=365},set:function(e,n,t,r){return e.setUTCMonth(0,t),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]},E:{priority:90,parse:function(e,n,t,r){switch(n){case"E":case"EE":case"EEE":return t.day(e,{width:"abbreviated",context:"formatting"})||t.day(e,{width:"short",context:"formatting"})||t.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return t.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return t.day(e,{width:"short",context:"formatting"})||t.day(e,{width:"narrow",context:"formatting"});default:return t.day(e,{width:"wide",context:"formatting"})||t.day(e,{width:"abbreviated",context:"formatting"})||t.day(e,{width:"short",context:"formatting"})||t.day(e,{width:"narrow",context:"formatting"})}},validate:function(e,n,t){return n>=0&&n<=6},set:function(e,n,t,r){return(e=Ut(e,t,r)).setUTCHours(0,0,0,0),e},incompatibleTokens:["D","i","e","c","t","T"]},e:{priority:90,parse:function(e,n,t,r){var o=function(e){var n=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+n};switch(n){case"e":case"ee":return vr(n.length,e,o);case"eo":return t.ordinalNumber(e,{unit:"day",valueCallback:o});case"eee":return t.day(e,{width:"abbreviated",context:"formatting"})||t.day(e,{width:"short",context:"formatting"})||t.day(e,{width:"narrow",context:"formatting"});case"eeeee":return t.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return t.day(e,{width:"short",context:"formatting"})||t.day(e,{width:"narrow",context:"formatting"});default:return t.day(e,{width:"wide",context:"formatting"})||t.day(e,{width:"abbreviated",context:"formatting"})||t.day(e,{width:"short",context:"formatting"})||t.day(e,{width:"narrow",context:"formatting"})}},validate:function(e,n,t){return n>=0&&n<=6},set:function(e,n,t,r){return(e=Ut(e,t,r)).setUTCHours(0,0,0,0),e},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]},c:{priority:90,parse:function(e,n,t,r){var o=function(e){var n=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+n};switch(n){case"c":case"cc":return vr(n.length,e,o);case"co":return t.ordinalNumber(e,{unit:"day",valueCallback:o});case"ccc":return t.day(e,{width:"abbreviated",context:"standalone"})||t.day(e,{width:"short",context:"standalone"})||t.day(e,{width:"narrow",context:"standalone"});case"ccccc":return t.day(e,{width:"narrow",context:"standalone"});case"cccccc":return t.day(e,{width:"short",context:"standalone"})||t.day(e,{width:"narrow",context:"standalone"});default:return t.day(e,{width:"wide",context:"standalone"})||t.day(e,{width:"abbreviated",context:"standalone"})||t.day(e,{width:"short",context:"standalone"})||t.day(e,{width:"narrow",context:"standalone"})}},validate:function(e,n,t){return n>=0&&n<=6},set:function(e,n,t,r){return(e=Ut(e,t,r)).setUTCHours(0,0,0,0),e},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]},i:{priority:90,parse:function(e,n,t,r){var o=function(e){return 0===e?7:e};switch(n){case"i":case"ii":return vr(n.length,e);case"io":return t.ordinalNumber(e,{unit:"day"});case"iii":return t.day(e,{width:"abbreviated",context:"formatting",valueCallback:o})||t.day(e,{width:"short",context:"formatting",valueCallback:o})||t.day(e,{width:"narrow",context:"formatting",valueCallback:o});case"iiiii":return t.day(e,{width:"narrow",context:"formatting",valueCallback:o});case"iiiiii":return t.day(e,{width:"short",context:"formatting",valueCallback:o})||t.day(e,{width:"narrow",context:"formatting",valueCallback:o});default:return t.day(e,{width:"wide",context:"formatting",valueCallback:o})||t.day(e,{width:"abbreviated",context:"formatting",valueCallback:o})||t.day(e,{width:"short",context:"formatting",valueCallback:o})||t.day(e,{width:"narrow",context:"formatting",valueCallback:o})}},validate:function(e,n,t){return n>=1&&n<=7},set:function(e,n,t,r){return e=function(e,n){cn(2,arguments);var t=dn(n);t%7==0&&(t-=7);var r=1,o=un(e),i=o.getUTCDay(),a=((t%7+7)%7<r?7:0)+t-i;return o.setUTCDate(o.getUTCDate()+a),o}(e,t,r),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]},a:{priority:80,parse:function(e,n,t,r){switch(n){case"a":case"aa":case"aaa":return t.dayPeriod(e,{width:"abbreviated",context:"formatting"})||t.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return t.dayPeriod(e,{width:"narrow",context:"formatting"});default:return t.dayPeriod(e,{width:"wide",context:"formatting"})||t.dayPeriod(e,{width:"abbreviated",context:"formatting"})||t.dayPeriod(e,{width:"narrow",context:"formatting"})}},set:function(e,n,t,r){return e.setUTCHours(br(t),0,0,0),e},incompatibleTokens:["b","B","H","k","t","T"]},b:{priority:80,parse:function(e,n,t,r){switch(n){case"b":case"bb":case"bbb":return t.dayPeriod(e,{width:"abbreviated",context:"formatting"})||t.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return t.dayPeriod(e,{width:"narrow",context:"formatting"});default:return t.dayPeriod(e,{width:"wide",context:"formatting"})||t.dayPeriod(e,{width:"abbreviated",context:"formatting"})||t.dayPeriod(e,{width:"narrow",context:"formatting"})}},set:function(e,n,t,r){return e.setUTCHours(br(t),0,0,0),e},incompatibleTokens:["a","B","H","k","t","T"]},B:{priority:80,parse:function(e,n,t,r){switch(n){case"B":case"BB":case"BBB":return t.dayPeriod(e,{width:"abbreviated",context:"formatting"})||t.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return t.dayPeriod(e,{width:"narrow",context:"formatting"});default:return t.dayPeriod(e,{width:"wide",context:"formatting"})||t.dayPeriod(e,{width:"abbreviated",context:"formatting"})||t.dayPeriod(e,{width:"narrow",context:"formatting"})}},set:function(e,n,t,r){return e.setUTCHours(br(t),0,0,0),e},incompatibleTokens:["a","b","t","T"]},h:{priority:70,parse:function(e,n,t,r){switch(n){case"h":return mr(Qt,e);case"ho":return t.ordinalNumber(e,{unit:"hour"});default:return vr(n.length,e)}},validate:function(e,n,t){return n>=1&&n<=12},set:function(e,n,t,r){var o=e.getUTCHours()>=12;return o&&t<12?e.setUTCHours(t+12,0,0,0):o||12!==t?e.setUTCHours(t,0,0,0):e.setUTCHours(0,0,0,0),e},incompatibleTokens:["H","K","k","t","T"]},H:{priority:70,parse:function(e,n,t,r){switch(n){case"H":return mr(Kt,e);case"Ho":return t.ordinalNumber(e,{unit:"hour"});default:return vr(n.length,e)}},validate:function(e,n,t){return n>=0&&n<=23},set:function(e,n,t,r){return e.setUTCHours(t,0,0,0),e},incompatibleTokens:["a","b","h","K","k","t","T"]},K:{priority:70,parse:function(e,n,t,r){switch(n){case"K":return mr(Xt,e);case"Ko":return t.ordinalNumber(e,{unit:"hour"});default:return vr(n.length,e)}},validate:function(e,n,t){return n>=0&&n<=11},set:function(e,n,t,r){return e.getUTCHours()>=12&&t<12?e.setUTCHours(t+12,0,0,0):e.setUTCHours(t,0,0,0),e},incompatibleTokens:["h","H","k","t","T"]},k:{priority:70,parse:function(e,n,t,r){switch(n){case"k":return mr(qt,e);case"ko":return t.ordinalNumber(e,{unit:"hour"});default:return vr(n.length,e)}},validate:function(e,n,t){return n>=1&&n<=24},set:function(e,n,t,r){var o=t<=24?t%24:t;return e.setUTCHours(o,0,0,0),e},incompatibleTokens:["a","b","h","H","K","t","T"]},m:{priority:60,parse:function(e,n,t,r){switch(n){case"m":return mr(Zt,e);case"mo":return t.ordinalNumber(e,{unit:"minute"});default:return vr(n.length,e)}},validate:function(e,n,t){return n>=0&&n<=59},set:function(e,n,t,r){return e.setUTCMinutes(t,0,0),e},incompatibleTokens:["t","T"]},s:{priority:50,parse:function(e,n,t,r){switch(n){case"s":return mr(Jt,e);case"so":return t.ordinalNumber(e,{unit:"second"});default:return vr(n.length,e)}},validate:function(e,n,t){return n>=0&&n<=59},set:function(e,n,t,r){return e.setUTCSeconds(t,0),e},incompatibleTokens:["t","T"]},S:{priority:30,parse:function(e,n,t,r){return vr(n.length,e,(function(e){return Math.floor(e*Math.pow(10,3-n.length))}))},set:function(e,n,t,r){return e.setUTCMilliseconds(t),e},incompatibleTokens:["t","T"]},X:{priority:10,parse:function(e,n,t,r){switch(n){case"X":return gr(dr,e);case"XX":return gr(cr,e);case"XXXX":return gr(ur,e);case"XXXXX":return gr(fr,e);default:return gr(pr,e)}},set:function(e,n,t,r){return n.timestampIsSet?e:new Date(e.getTime()-t)},incompatibleTokens:["t","T","x"]},x:{priority:10,parse:function(e,n,t,r){switch(n){case"x":return gr(dr,e);case"xx":return gr(cr,e);case"xxxx":return gr(ur,e);case"xxxxx":return gr(fr,e);default:return gr(pr,e)}},set:function(e,n,t,r){return n.timestampIsSet?e:new Date(e.getTime()-t)},incompatibleTokens:["t","T","X"]},t:{priority:40,parse:function(e,n,t,r){return hr(e)},set:function(e,n,t,r){return[new Date(1e3*t),{timestampIsSet:!0}]},incompatibleTokens:"*"},T:{priority:20,parse:function(e,n,t,r){return hr(e)},set:function(e,n,t,r){return[new Date(t),{timestampIsSet:!0}]},incompatibleTokens:"*"}},Er=kr,Sr=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Dr=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Tr=/^'([^]*?)'?$/,_r=/''/g,Nr=/\S/,Pr=/[a-zA-Z]/;function Or(e,n,t,r){cn(3,arguments);var o=String(e),i=String(n),a=r||{},l=a.locale||Vn;if(!l.match)throw new RangeError("locale must contain match property");var s=l.options&&l.options.firstWeekContainsDate,d=null==s?1:dn(s),c=null==a.firstWeekContainsDate?d:dn(a.firstWeekContainsDate);if(!(c>=1&&c<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var u=l.options&&l.options.weekStartsOn,p=null==u?0:dn(u),f=null==a.weekStartsOn?p:dn(a.weekStartsOn);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===i)return""===o?un(t):new Date(NaN);var m,g={firstWeekContainsDate:c,weekStartsOn:f,locale:l},h=[{priority:10,subPriority:-1,set:Mr,index:0}],v=i.match(Dr).map((function(e){var n=e[0];return"p"===n||"P"===n?(0,vt[n])(e,l.formatLong,g):e})).join("").match(Sr),y=[];for(m=0;m<v.length;m++){var b=v[m];!a.useAdditionalWeekYearTokens&&wt(b)&&$t(b,i,e),!a.useAdditionalDayOfYearTokens&&xt(b)&&$t(b,i,e);var x=b[0],w=Er[x];if(w){var $=w.incompatibleTokens;if(Array.isArray($)){for(var C=void 0,k=0;k<y.length;k++){var E=y[k].token;if(-1!==$.indexOf(E)||E===x){C=y[k];break}}if(C)throw new RangeError("The format string mustn't contain `".concat(C.fullToken,"` and `").concat(b,"` at the same time"))}else if("*"===w.incompatibleTokens&&y.length)throw new RangeError("The format string mustn't contain `".concat(b,"` and any other token at the same time"));y.push({token:x,fullToken:b});var S=w.parse(o,b,l.match,g);if(!S)return new Date(NaN);h.push({priority:w.priority,subPriority:w.subPriority||0,set:w.set,validate:w.validate,value:S.value,index:h.length}),o=S.rest}else{if(x.match(Pr))throw new RangeError("Format string contains an unescaped latin alphabet character `"+x+"`");if("''"===b?b="'":"'"===x&&(b=Rr(b)),0!==o.indexOf(b))return new Date(NaN);o=o.slice(b.length)}}if(o.length>0&&Nr.test(o))return new Date(NaN);var D=h.map((function(e){return e.priority})).sort((function(e,n){return n-e})).filter((function(e,n,t){return t.indexOf(e)===n})).map((function(e){return h.filter((function(n){return n.priority===e})).sort((function(e,n){return n.subPriority-e.subPriority}))})).map((function(e){return e[0]})),T=un(t);if(isNaN(T))return new Date(NaN);var _=Wn(T,xn(T)),N={};for(m=0;m<D.length;m++){var P=D[m];if(P.validate&&!P.validate(_,P.value,g))return new Date(NaN);var O=P.set(_,N,P.value,g);O[0]?(_=O[0],Nt(N,O[1])):_=O}return _}function Mr(e,n){if(n.timestampIsSet)return e;var t=new Date(0);return t.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),t.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),t}function Rr(e){return e.match(Tr)[1].replace(_r,"'")}function Ir(e,n,t){return cn(2,arguments),_n(Or(e,n,new Date,t))}function Ar(e,n){cn(2,arguments);var t=un(e).getTime(),r=un(n.start).getTime(),o=un(n.end).getTime();if(!(r<=o))throw new RangeError("Invalid interval");return t>=r&&t<=o}var Fr={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Lr=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,zr=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Hr=/^([+-])(\d{2})(?::?(\d{2}))?$/;function jr(e){var n,t={},r=e.split(Fr.dateTimeDelimiter);if(r.length>2)return t;if(/:/.test(r[0])?n=r[0]:(t.date=r[0],n=r[1],Fr.timeZoneDelimiter.test(t.date)&&(t.date=e.split(Fr.timeZoneDelimiter)[0],n=e.substr(t.date.length,e.length))),n){var o=Fr.timezone.exec(n);o?(t.time=n.replace(o[1],""),t.timezone=o[1]):t.time=n}return t}function Br(e,n){var t=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+n)+"})|(\\d{2}|[+-]\\d{"+(2+n)+"})$)"),r=e.match(t);if(!r)return{year:NaN,restDateString:""};var o=r[1]?parseInt(r[1]):null,i=r[2]?parseInt(r[2]):null;return{year:null===i?o:100*i,restDateString:e.slice((r[1]||r[2]).length)}}function Ur(e,n){if(null===n)return new Date(NaN);var t=e.match(Lr);if(!t)return new Date(NaN);var r=!!t[4],o=Yr(t[1]),i=Yr(t[2])-1,a=Yr(t[3]),l=Yr(t[4]),s=Yr(t[5])-1;if(r)return function(e,n,t){return n>=1&&n<=53&&t>=0&&t<=6}(0,l,s)?function(e,n,t){var r=new Date(0);r.setUTCFullYear(e,0,4);var o=r.getUTCDay()||7,i=7*(n-1)+t+1-o;return r.setUTCDate(r.getUTCDate()+i),r}(n,l,s):new Date(NaN);var d=new Date(0);return function(e,n,t){return n>=0&&n<=11&&t>=1&&t<=(Kr[n]||(qr(e)?29:28))}(n,i,a)&&function(e,n){return n>=1&&n<=(qr(e)?366:365)}(n,o)?(d.setUTCFullYear(n,i,Math.max(o,a)),d):new Date(NaN)}function Yr(e){return e?parseInt(e):1}function Vr(e){var n=e.match(zr);if(!n)return NaN;var t=Wr(n[1]),r=Wr(n[2]),o=Wr(n[3]);return function(e,n,t){if(24===e)return 0===n&&0===t;return t>=0&&t<60&&n>=0&&n<60&&e>=0&&e<25}(t,r,o)?36e5*t+6e4*r+1e3*o:NaN}function Wr(e){return e&&parseFloat(e.replace(",","."))||0}function Gr(e){if("Z"===e)return 0;var n=e.match(Hr);if(!n)return 0;var t="+"===n[1]?-1:1,r=parseInt(n[2]),o=n[3]&&parseInt(n[3])||0;return function(e,n){return n>=0&&n<=59}(0,o)?t*(36e5*r+6e4*o):NaN}var Kr=[31,null,31,30,31,30,31,31,30,31,30,31];function qr(e){return e%400==0||e%4==0&&e%100!=0}function Xr(e,n){cn(2,arguments);var t=un(e),r=dn(n),o=t.getFullYear(),i=t.getDate(),a=new Date(0);a.setFullYear(o,r,15),a.setHours(0,0,0,0);var l=Mt(a);return t.setMonth(r,Math.min(i,l)),t}function Qr(e,n){cn(2,arguments);var t=un(e),r=dn(n);return t.setHours(r),t}function Zr(e,n){cn(2,arguments);var t=un(e),r=dn(n);return t.setMinutes(r),t}function Jr(e,n){cn(2,arguments);var t=un(e),r=dn(n),o=Math.floor(t.getMonth()/3)+1,i=r-o;return Xr(t,t.getMonth()+3*i)}function eo(e,n){cn(2,arguments);var t=un(e),r=dn(n);return isNaN(t.getTime())?new Date(NaN):(t.setFullYear(r),t)}function no(e,n){cn(2,arguments);var t=dn(n);return En(e,-t)}function to(e,n,t){cn(2,arguments);var r=Qn(e,t),o=Qn(n,t);return r.getTime()===o.getTime()}var ro={lessThanXSeconds:{one:"meno di un secondo",other:"meno di {{count}} secondi"},xSeconds:{one:"un secondo",other:"{{count}} secondi"},halfAMinute:"alcuni secondi",lessThanXMinutes:{one:"meno di un minuto",other:"meno di {{count}} minuti"},xMinutes:{one:"un minuto",other:"{{count}} minuti"},aboutXHours:{one:"circa un'ora",other:"circa {{count}} ore"},xHours:{one:"un'ora",other:"{{count}} ore"},xDays:{one:"un giorno",other:"{{count}} giorni"},aboutXWeeks:{one:"circa una settimana",other:"circa {{count}} settimane"},xWeeks:{one:"una settimana",other:"{{count}} settimane"},aboutXMonths:{one:"circa un mese",other:"circa {{count}} mesi"},xMonths:{one:"un mese",other:"{{count}} mesi"},aboutXYears:{one:"circa un anno",other:"circa {{count}} anni"},xYears:{one:"un anno",other:"{{count}} anni"},overXYears:{one:"più di un anno",other:"più di {{count}} anni"},almostXYears:{one:"quasi un anno",other:"quasi {{count}} anni"}},oo=function(e,n,t){var r,o=ro[e];return r="string"==typeof o?o:1===n?o.one:o.other.replace("{{count}}",n.toString()),null!=t&&t.addSuffix?t.comparison&&t.comparison>0?"tra "+r:r+" fa":r},io={date:Fn({formats:{full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},defaultWidth:"full"}),time:Fn({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:Fn({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},ao=["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"];function lo(e){return"'"+ao[e]+" alle' p"}var so={lastWeek:function(e,n,t){var r=e.getUTCDay();return to(e,n,t)?lo(r):function(e){return 0===e?"'domenica scorsa alle' p":"'"+ao[e]+" scorso alle' p"}(r)},yesterday:"'ieri alle' p",today:"'oggi alle' p",tomorrow:"'domani alle' p",nextWeek:function(e,n,t){var r=e.getUTCDay();return to(e,n,t)?lo(r):function(e){return 0===e?"'domenica prossima alle' p":"'"+ao[e]+" prossimo alle' p"}(r)},other:"P"},co=function(e,n,t,r){var o=so[e];return"function"==typeof o?o(n,t,r):o},uo={code:"it",formatDistance:oo,formatLong:io,formatRelative:co,localize:{ordinalNumber:function(e,n){return Number(e)+"º"},era:Hn({values:{narrow:["aC","dC"],abbreviated:["a.C.","d.C."],wide:["avanti Cristo","dopo Cristo"]},defaultWidth:"wide"}),quarter:Hn({values:{narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Hn({values:{narrow:["G","F","M","A","M","G","L","A","S","O","N","D"],abbreviated:["gen","feb","mar","apr","mag","giu","lug","ago","set","ott","nov","dic"],wide:["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"]},defaultWidth:"wide"}),day:Hn({values:{narrow:["D","L","M","M","G","V","S"],short:["dom","lun","mar","mer","gio","ven","sab"],abbreviated:["dom","lun","mar","mer","gio","ven","sab"],wide:["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"]},defaultWidth:"wide"}),dayPeriod:Hn({values:{narrow:{am:"m.",pm:"p.",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"},abbreviated:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"},wide:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"}},defaultWidth:"wide",formattingValues:{narrow:{am:"m.",pm:"p.",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"},abbreviated:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"},wide:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:Yn({matchPattern:/^(\d+)(º)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:jn({matchPatterns:{narrow:/^(aC|dC)/i,abbreviated:/^(a\.?\s?C\.?|a\.?\s?e\.?\s?v\.?|d\.?\s?C\.?|e\.?\s?v\.?)/i,wide:/^(avanti Cristo|avanti Era Volgare|dopo Cristo|Era Volgare)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^a/i,/^(d|e)/i]},defaultParseWidth:"any"}),quarter:jn({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^t[1234]/i,wide:/^[1234](º)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:jn({matchPatterns:{narrow:/^[gfmalsond]/i,abbreviated:/^(gen|feb|mar|apr|mag|giu|lug|ago|set|ott|nov|dic)/i,wide:/^(gennaio|febbraio|marzo|aprile|maggio|giugno|luglio|agosto|settembre|ottobre|novembre|dicembre)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^g/i,/^f/i,/^m/i,/^a/i,/^m/i,/^g/i,/^l/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ge/i,/^f/i,/^mar/i,/^ap/i,/^mag/i,/^gi/i,/^l/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:jn({matchPatterns:{narrow:/^[dlmgvs]/i,short:/^(do|lu|ma|me|gi|ve|sa)/i,abbreviated:/^(dom|lun|mar|mer|gio|ven|sab)/i,wide:/^(domenica|luned[i|ì]|marted[i|ì]|mercoled[i|ì]|gioved[i|ì]|venerd[i|ì]|sabato)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^g/i,/^v/i,/^s/i],any:[/^d/i,/^l/i,/^ma/i,/^me/i,/^g/i,/^v/i,/^s/i]},defaultParseWidth:"any"}),dayPeriod:jn({matchPatterns:{narrow:/^(a|m\.|p|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i,any:/^([ap]\.?\s?m\.?|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mezza/i,noon:/^mezzo/i,morning:/mattina/i,afternoon:/pomeriggio/i,evening:/sera/i,night:/notte/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}},po=["yyyy-MM-dd","dd/MM/yyyy","dd-MM-yyyy","yyyy/MM/dd","dd.MM.yyyy","MM/dd/yyyy","dd-MM-yy","dd/MM/yy"],fo=["yyyy-MM-dd HH:mm:ss","dd/MM/yyyy HH:mm:ss","dd-MM-yyyy HH:mm:ss","yyyy/MM/dd HH:mm:ss","dd.MM.yyyy HH:mm:ss","MM/dd/yyyy HH:mm:ss","dd-MM-yy HH:mm:ss","dd/MM/yy HH:mm:ss"],mo=function(e){for(var n=function(e){var n=e.split(" "),t=n[0],r=n[1];return Boolean(t)&&Boolean(r)&&Ir(r,"HH:mm:ss")}(e)?fo:po,t=0;t<n.length;t++)if(Ir(e,n[t]))return n[t];return""},go=function(e,n){var t=function(e){var n=mo(e);return n?Or(e,n,new Date):null}(e);return t?Tt(t,n,{locale:uo}):""},ho=function(e){return e+(function(e){return!!e&&/^\d+$/.test(e.toString())}(e)?"px":"")},vo=function(){return(Math.random()+1).toString(36).substring(7)},yo=function(e){return parseFloat(e.replace(",","."))},bo=function(e){return!isNaN(yo(e))&&isFinite(yo(e))},xo=[50,100,200,300,400,500,600,700,800,900],wo=["black","white"],$o=["grey","blue","indigo","yellow","orange","red","green","fuchsia","pink","cyan","primary"],Co=qe(qe([],wo,!0),$o,!0);function ko(e){return wo.includes(e)}var Eo,So,Do,To,_o,No,Po,Oo,Mo,Ro,Io,Ao=function(e){var n,t=e.children,r=e.type,i=Ve(e,["children","type"]);return o.createElement(Fo,Ye({},i),Array.isArray(t)||o.isValidElement(t)?t:"currency"===r&&("string"==typeof t&&bo(t)||"number"==typeof t&&!isNaN(t))?("number"!=typeof(n=t)&&(n=parseFloat(n)),isNaN(n)||!isFinite(n)?"":n.toLocaleString("it-IT",{minimumFractionDigits:2,maximumFractionDigits:2})+" €"):"date"===r&&"string"==typeof t?go(t,"dd/MM/yyyy"):null!=t?t:"")},Fo=w.div.attrs((function(e){var n=e.color,t=e.theme;return n?function(e){return Co.includes(e)}(n)?{color:ko(n)?t.palette[n][100]:t.palette[n][500]}:{color:n}:{color:void 0}}))(So||(So=Xe(["\n font-size: 14px;\n line-height: 21px;\n\n font-weight: ",";\n\n text-align: ",";\n\n color: ",";\n\n ","\n"],["\n font-size: 14px;\n line-height: 21px;\n\n font-weight: ",";\n\n text-align: ",";\n\n color: ",";\n\n ","\n"])),(function(e){return e.bold?500:400}),(function(e){return e.centered?"center":"left"}),(function(e){var n=e.color;return null!=n?n:"inherit"}),(function(e){var n=e.clamp;return n&&$(Eo||(Eo=Xe(["\n overflow: hidden;\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-line-clamp: ",";\n -webkit-box-orient: vertical;\n "],["\n overflow: hidden;\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-line-clamp: ",";\n -webkit-box-orient: vertical;\n "])),n)})),Lo=w(Ao)(Do||(Do=Xe(["\n font-size: 48px;\n line-height: 72px;\n"],["\n font-size: 48px;\n line-height: 72px;\n"]))),zo=w(Ao)(To||(To=Xe(["\n font-size: 36px;\n line-height: 54px;\n"],["\n font-size: 36px;\n line-height: 54px;\n"]))),Ho=w(Ao)(_o||(_o=Xe(["\n font-size: 30px;\n line-height: 45px;\n"],["\n font-size: 30px;\n line-height: 45px;\n"]))),jo=w(Ao)(No||(No=Xe(["\n font-size: 24px;\n line-height: 36px;\n"],["\n font-size: 24px;\n line-height: 36px;\n"]))),Bo=w(Ao)(Po||(Po=Xe(["\n font-size: 20px;\n line-height: 30px;\n"],["\n font-size: 20px;\n line-height: 30px;\n"]))),Uo=w(Ao)(Oo||(Oo=Xe(["\n font-size: 18px;\n line-height: 27px;\n"],["\n font-size: 18px;\n line-height: 27px;\n"]))),Yo=w(Ao)(Mo||(Mo=Xe(["\n font-size: 16px;\n line-height: 24px;\n"],["\n font-size: 16px;\n line-height: 24px;\n"]))),Vo=w(Ao)(Ro||(Ro=Xe(["\n font-size: 12px;\n line-height: 18px;\n"],["\n font-size: 12px;\n line-height: 18px;\n"])));w(Ao)(Io||(Io=Xe(["\n line-height: 17px;\n"],["\n line-height: 17px;\n"])));var Wo,Go,Ko,qo,Xo,Qo,Zo,Jo,ei,ni,ti,ri,oi,ii,ai,li,si,di,ci,ui,pi,fi,mi,gi,hi,vi,yi,bi,xi,wi,$i,Ci,ki,Ei,Si,Di,Ti,_i,Ni,Pi,Oi,Mi,Ri,Ii,Ai,Fi,Li,zi,Hi,ji,Bi,Ui,Yi={xxs:"4px",xs:"8px",s:"12px",m:"16px",l:"24px",xl:"32px",xxl:"48px",xxxl:"64px"},Vi=w.div(Wo||(Wo=Xe(["\n color: ",";\n .DS-header {\n display: flex;\n align-items: center;\n width: 100%;\n height: ",";\n gap: ",";\n .header__element {\n &:hover {\n &.pointer {\n cursor: pointer;\n }\n }\n }\n\n .action_icon {\n cursor: pointer;\n display: none;\n width: ",";\n height: ",";\n &.visibile {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n }\n &:hover {\n background: ",";\n border-radius: 4px;\n }\n }\n\n .chevron {\n }\n .chevron__closed {\n transform: rotate(-90deg);\n }\n\n .title {\n flex: 1;\n padding: 0;\n user-select: none;\n p {\n margin: 0;\n font-size: 20px;\n line-height: 30px;\n }\n }\n }\n\n .body {\n padding: 0 ",";\n height: auto;\n\n &.closed {\n overflow: hidden;\n height: 0;\n }\n }\n"],["\n color: ",";\n .DS-header {\n display: flex;\n align-items: center;\n width: 100%;\n height: ",";\n gap: ",";\n .header__element {\n &:hover {\n &.pointer {\n cursor: pointer;\n }\n }\n }\n\n .action_icon {\n cursor: pointer;\n display: none;\n width: ",";\n height: ",";\n &.visibile {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n }\n &:hover {\n background: ",";\n border-radius: 4px;\n }\n }\n\n .chevron {\n }\n .chevron__closed {\n transform: rotate(-90deg);\n }\n\n .title {\n flex: 1;\n padding: 0;\n user-select: none;\n p {\n margin: 0;\n font-size: 20px;\n line-height: 30px;\n }\n }\n }\n\n .body {\n padding: 0 ",";\n height: auto;\n\n &.closed {\n overflow: hidden;\n height: 0;\n }\n }\n"])),(function(e){return e.theme.palette.black[100]}),Yi.m,Yi.s,Yi.xl,Yi.xl,(function(e){return e.theme.palette.grey[100]}),Yi.l),Wi=function(e){function n(n){var t=e.call(this,n)||this;t.handleOpenAccordion=function(){var e=t.state.show;t.setState({show:!e})};var r=t.props.showBodyAtFirstRender;return t.state={show:Boolean(r)},t}return Ue(n,e),n.prototype.render=function(){var e=this.props,n=e.lateralActions,t=e.renderBody,r=e.renderLateralActions,i=e.renderTitle,a=e.title,l=this.state.show;return o.createElement(o.Fragment,null,o.createElement("div",{className:"DS-header"},o.createElement("div",{onClick:this.handleOpenAccordion,className:"header__element pointer chevron"+(l?"":"__closed")},o.createElement(on,{icon:D})),o.createElement("div",{onClick:this.handleOpenAccordion,className:"header__element title pointer"},i?o.createElement(o.Fragment,null,i()):o.createElement("p",null,a)),o.createElement("div",{className:"header__element"},r||(null==n?void 0:n.map((function(e,n){return o.createElement("span",{className:"action_icon "+(l?"visibile":""),key:n,onClick:e.action},e.icon)}))))),l&&o.createElement("div",{className:"body"},t()))},n}(a),Gi=function(e){return o.createElement(Vi,Ye({},e),o.createElement(Wi,Ye({},e)))},Ki=function(e,n){for(var t=e.split("").map((function(e){return e.charCodeAt(0)})),r=t.length%(n-1)+1,o=t.reduce((function(e,n){return e+n}),0)%n,i=t[0]%n,a=0;a<t.length;a++)i=(r*i+o)%n;return i},qi=function(e,n){if(!e)return"transparent";var t=Array.from($o).filter((function(e){return"primary"!==e})),r=Array.from(xo).filter((function(e){return e>200})),o=t[Ki(e,t.length)],i=r[Ki(e,r.length)];return n.palette[o][i]},Xi=w.div(Zo||(Zo=Xe(["\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n border-radius: 50%;\n font-weight: 500;\n font-style: normal;\n text-transform: uppercase;\n color: ",";\n background-color: ",";\n\n ","\n\n ","\n\n ","\n"],["\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n border-radius: 50%;\n font-weight: 500;\n font-style: normal;\n text-transform: uppercase;\n color: ",";\n background-color: ",";\n\n ","\n\n ","\n\n ","\n"])),(function(e){var n=e.textColor,t=e.theme;return null!=n?n:t.palette.white[100]}),(function(e){var n=e.backgroundColor,t=e.theme;return null!=n?n:t.palette.primary[500]}),(function(e){return void 0!==e.onClick&&$(Go||(Go=Xe(["\n cursor: pointer;\n "],["\n cursor: pointer;\n "])))}),(function(e){var n=e.size,t=e.textLenght;return $(Ko||(Ko=Xe(["\n height: ","px;\n width: ","px;\n font-size: ","px;\n "],["\n height: ","px;\n width: ","px;\n font-size: ","px;\n "])),n,n,n*function(e){return e<=2?.45:3===e?.4:.35}(t))}),(function(e){var n=e.image,t=e.placeholder;return void 0!==n&&$(Qo||(Qo=Xe(["\n ","\n background-size: cover;\n "],["\n ","\n background-size: cover;\n "])),t?$(qo||(qo=Xe(["\n background-image: url('","'), url('","');\n "],["\n background-image: url('","'), url('","');\n "])),n,t):$(Xo||(Xo=Xe(["\n background-image: url('","');\n "],["\n background-image: url('","');\n "])),n))})),Qi=function(e){var n,t=e.backgroundColor,r=e.className,i=e.icon,a=e.image,l=e.onClick,s=e.placeholder,d=e.randomColor,c=e.size,u=e.style,p=e.text,f=e.textColor,m=C(),g=null!==(n=null==p?void 0:p.split(" ").map((function(e,n){return n>2?null:e.charAt(0)})).join(""))&&void 0!==n?n:"";return o.createElement(Xi,{backgroundColor:d?qi(p,m):t,className:r,image:a,onClick:l,size:c,style:u,textColor:f,textLenght:g.length,placeholder:s},i?o.createElement(on,Ye({},i)):g)},Zi=function(e){var n=e.manualLock,t=void 0!==n&&n,r=e.onClick,o=e.timeMs,i=void 0===o?250:o,a=s(!0);return l((function(e){a.current&&!t&&(a.current=!1,setTimeout((function(){return a.current=!0}),i),null==r||r(e))}),[r,t,i])},Ji={large:40,medium:32},ea=function(e){var n=e.color,t=e.isDisabled,r=e.size,o=e.theme,i=e.type,a=o.components.button,l=a.defaultColor,s=a.defaultSize,d=a.defaultType,c=i||d,u=r||s,p=t?"disabled":n||l,f="primary"===c?"1px solid rgba(9, 30, 66, 0.16)":"",m=t?"default":"pointer",g=o.components.button[c][p];return Ye({height:Ji[u],border:f,cursor:m},g)},na=w(on)(Jo||(Jo=Xe(["\n display: inline-block;\n"],["\n display: inline-block;\n"]))),ta=w(na)(ei||(ei=Xe([""],[""]))),ra=w(na)(ni||(ni=Xe([""],[""]))),oa=w(sn)(ti||(ti=Xe(["\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n display: flex;\n"],["\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n display: flex;\n"]))),ia=w.div(ri||(ri=Xe(["\n display: inline-block;\n line-height: initial;\n"],["\n display: inline-block;\n line-height: initial;\n"]))),aa=w.div(oi||(oi=Xe(["\n opacity: ",";\n display: inline-flex;\n align-items: center;\n justify-content: center;\n"],["\n opacity: ",";\n display: inline-flex;\n align-items: center;\n justify-content: center;\n"])),(function(e){return e.isLoading?0:1})),la=$(ii||(ii=Xe(["\n border-radius: 4px;\n user-select: none;\n position: relative;\n text-align: center;\n\n width: ",";\n\n font-weight: 500;\n\n cursor: ",";\n border: ",";\n\n "," {\n height: ","px;\n }\n\n "," + * {\n margin-left: 8px;\n }\n\n "," + * {\n margin-left: 8px;\n }\n\n color: ",";\n background-color: ",";\n\n &:hover {\n color: ",";\n background-color: ",";\n }\n\n &:active {\n background-color: ",";\n }\n\n padding: 0 12px;\n\n display: inline-block;\n"],["\n border-radius: 4px;\n user-select: none;\n position: relative;\n text-align: center;\n\n width: ",";\n\n font-weight: 500;\n\n cursor: ",";\n border: ",";\n\n "," {\n height: ","px;\n }\n\n "," + * {\n margin-left: 8px;\n }\n\n "," + * {\n margin-left: 8px;\n }\n\n color: ",";\n background-color: ",";\n\n &:hover {\n color: ",";\n background-color: ",";\n }\n\n &:active {\n background-color: ",";\n }\n\n padding: 0 12px;\n\n display: inline-block;\n"])),(function(e){return e.fullWidth?"100%":"initial"}),(function(e){return e.cursor}),(function(e){return e.border}),aa,(function(e){return e.height}),ta,ia,(function(e){return e.text}),(function(e){return e.normal}),(function(e){return e.textHover}),(function(e){return e.hover}),(function(e){return e.active})),sa=w.a.attrs(ea)(ai||(ai=Xe(["\n ",";\n\n text-decoration: none;\n"],["\n ",";\n\n text-decoration: none;\n"])),la),da=w.div.attrs(ea)(li||(li=Xe(["\n ",";\n"],["\n ",";\n"])),la),ca=function(e){var n=e.className,t=e.color,r=e.fullWidth,i=void 0!==r&&r,a=e.href,s=e.iconLeft,d=e.iconRight,c=e.isDisabled,u=void 0!==c&&c,p=e.isLoading,f=void 0!==p&&p,m=e.onClick,g=e.size,h=e.target,v=e.text,y=e.type,b=Zi({onClick:m,manualLock:f||u}),x=!u&&f,w=l((function(e){return a?o.createElement(sa,Ye({},e)):o.createElement(da,Ye({},e))}),[a]);return o.createElement(w,{className:n,size:g,color:t,onClick:b,href:a,type:y,isDisabled:u,fullWidth:i,target:h},o.createElement(aa,{isLoading:x},s&&o.createElement(ta,Ye({},s)),v&&o.createElement(ia,null,v),d&&o.createElement(ra,Ye({},d))),x&&o.createElement(oa,null))},ua=(rn.blue[500],rn.blue[700],rn.blue[900],rn.white[100],rn.grey[100],rn.red[500],rn.red[700],rn.red[900],rn.white[100],rn.grey[100],rn.green[500],rn.green[700],rn.green[900],rn.white[100],rn.grey[100],rn.white[100],rn.grey[100],rn.grey[200],rn.black[100],rn.black[100],rn.yellow[500],rn.yellow[700],rn.yellow[900],rn.white[100],rn.grey[100],rn.grey[50],rn.grey[50],rn.grey[50],rn.grey[200],rn.grey[200],rn.blue[50],rn.blue[100],rn.blue[200],rn.blue[900],rn.blue[900],rn.red[50],rn.red[100],rn.red[200],rn.red[900],rn.red[900],rn.green[50],rn.green[100],rn.green[200],rn.green[900],rn.green[900],rn.yellow[50],rn.yellow[100],rn.yellow[200],rn.yellow[900],rn.yellow[900],rn.grey[50],rn.grey[100],rn.grey[200],rn.black[100],rn.black[100],rn.grey[50],rn.grey[50],rn.grey[50],rn.grey[200],rn.grey[200],rn.blue[50],rn.blue[100],rn.blue[500],rn.blue[500],rn.red[50],rn.red[100],rn.red[500],rn.red[500],rn.green[50],rn.green[100],rn.green[500],rn.green[500],rn.grey[50],rn.grey[100],rn.grey[500],rn.grey[500],rn.yellow[50],rn.yellow[100],rn.yellow[500],rn.yellow[500],rn.grey[200],rn.grey[200],function(e){var n=e.className,t=e.color,r=e.icon,i=e.isDisabled,a=void 0!==i&&i,l=e.onClick,s=e.type,d=Zi({onClick:l,manualLock:a});return o.createElement(pa,{color:t,className:n,type:s,onClick:d,isDisabled:a},o.createElement(on,Ye({},r)))}),pa=w.div.attrs((function(e){var n=e.color,t=e.isDisabled,r=e.theme,o=e.type,i=r.components.iconButton,a=i.defaultColor,l=i.defaultType,s=t?"disabled":n||a,d=o||l;return r.components.iconButton[d][s]}))(si||(si=Xe(["\n display: inline-flex;\n font-size: 20px;\n text-decoration: none;\n padding: 0 8px;\n height: 32px;\n align-items: center;\n\n cursor: ",";\n color: ",";\n\n :hover {\n color: ",";\n text-decoration: none;\n }\n"],["\n display: inline-flex;\n font-size: 20px;\n text-decoration: none;\n padding: 0 8px;\n height: 32px;\n align-items: center;\n\n cursor: ",";\n color: ",";\n\n :hover {\n color: ",";\n text-decoration: none;\n }\n"])),(function(e){return e.isDisabled?"default":"pointer"}),(function(e){return e.normal}),(function(e){return e.hover})),fa=(rn.blue[200],rn.blue[500],rn.red[200],rn.red[500],rn.green[200],rn.green[500],rn.yellow[200],rn.yellow[500],rn.grey[200],rn.grey[200],rn.blue[200],rn.white[100],rn.red[200],rn.white[100],rn.green[200],rn.white[100],rn.yellow[200],rn.white[100],rn.grey[200],rn.grey[200],function(e,n,t){d((function(){function r(n){t&&e.current&&!e.current.contains(n.target)&&t()}return n&&document.addEventListener("mousedown",r),function(){document.removeEventListener("mousedown",r)}}),[e,n])}),ma=w.div(ui||(ui=Xe(["\n ","\n"],["\n ","\n"])),(function(e){var n=e.show,t=e.theme.palette;return $(ci||(ci=Xe(["\n .drawer {\n position: fixed;\n right: 0;\n top: 0;\n height: 100vh;\n width: 500px;\n box-shadow: 0px 16px 24px rgba(23, 43, 77, 0.24), 0px 0px 0px rgba(9, 30, 66, 0.08);\n border-radius: 8px 0 0 8px;\n transform: translateX(110%);\n transition: transform 0.4s ease-in-out;\n z-index: 5;\n background-color: ",";\n display: flex;\n flex-direction: column;\n\n ","\n\n .drawer__header {\n padding-right: calc("," + ",");\n padding-left: ",";\n display: flex;\n align-items: center;\n background-color: ",";\n border-bottom: 1px solid ",";\n\n .drawer__header__title {\n font-weight: 500;\n font-size: 20px;\n line-height: 30px;\n display: flex;\n align-items: center;\n height: calc("," + ",");\n }\n\n .drawer__header__actions {\n position: absolute;\n right: ",";\n top: ",";\n font-size: 24px;\n }\n }\n\n .drawer__body {\n height: 100%;\n overflow-y: scroll;\n }\n\n .drawer__footer {\n height: 80px;\n display: flex;\n justify-content: flex-end;\n align-items: center;\n padding: 0 ",";\n border-top: 1px solid ",";\n }\n }\n "],["\n .drawer {\n position: fixed;\n right: 0;\n top: 0;\n height: 100vh;\n width: 500px;\n box-shadow: 0px 16px 24px rgba(23, 43, 77, 0.24), 0px 0px 0px rgba(9, 30, 66, 0.08);\n border-radius: 8px 0 0 8px;\n transform: translateX(110%);\n transition: transform 0.4s ease-in-out;\n z-index: 5;\n background-color: ",";\n display: flex;\n flex-direction: column;\n\n ","\n\n .drawer__header {\n padding-right: calc("," + ",");\n padding-left: ",";\n display: flex;\n align-items: center;\n background-color: ",";\n border-bottom: 1px solid ",";\n\n .drawer__header__title {\n font-weight: 500;\n font-size: 20px;\n line-height: 30px;\n display: flex;\n align-items: center;\n height: calc("," + ",");\n }\n\n .drawer__header__actions {\n position: absolute;\n right: ",";\n top: ",";\n font-size: 24px;\n }\n }\n\n .drawer__body {\n height: 100%;\n overflow-y: scroll;\n }\n\n .drawer__footer {\n height: 80px;\n display: flex;\n justify-content: flex-end;\n align-items: center;\n padding: 0 ",";\n border-top: 1px solid ",";\n }\n }\n "])),t.white[100],function(e){return e?$(di||(di=Xe(["\n transform: translateX(0);\n "],["\n transform: translateX(0);\n "]))):void 0}(n),Yi.xxxl,Yi.m,Yi.l,t.grey[50],t.grey[100],Yi.xxxl,Yi.m,Yi.l,Yi.l,Yi.l,t.grey[100])})),ga=w(on)(pi||(pi=Xe(["\n cursor: pointer;\n &:hover {\n color: ",";\n"],["\n cursor: pointer;\n &:hover {\n color: ",";\n"])),(function(e){return e.theme.palette.grey[800]})),ha=function(e){var n=e.show,t=e.actionClose,r=e.renderFooter,i=e.renderHeader,a=e.title,l=e.allowOutsideClickClose,d=e.children,c=s(null);return fa(c,l&&n,t),o.createElement("div",{className:"drawer",ref:c},o.createElement("div",{className:"drawer__header"},i?i():o.createElement("div",{className:"drawer__header__title"},a),o.createElement("div",{className:"drawer__header__actions"},o.createElement("span",{onClick:t},o.createElement(ga,{icon:T})))),o.createElement("div",{className:"drawer__body"},d),r?o.createElement("div",{className:"drawer__footer"},r()):null)},va=function(e){return o.createElement(ma,Ye({},e),o.createElement(ha,Ye({},e)))},ya=w.span(fi||(fi=Xe(["\n background-color: transparent;\n color: ",";\n padding: 0 2px 0 2px;\n white-space: nowrap;\n font-size: 12px;\n"],["\n background-color: transparent;\n color: ",";\n padding: 0 2px 0 2px;\n white-space: nowrap;\n font-size: 12px;\n"])),(function(e){return e.theme.components.dropdown.shortcut.color})),ba=function(e){var n=e.active,t=e.className,r=e.componentId,i=e.icon,a=e.isDisabled,s=e.onClick,d=e.rowHasFocus,c=e.shortcut,u=e.text,p=Ve(e,["active","className","componentId","icon","isDisabled","onClick","rowHasFocus","shortcut","text"]),f=l((function(e){return!a&&(null==s?void 0:s(e))}),[a,s]);return o.createElement(xa,Ye({active:!!n,className:t||"",id:r,isDisabled:a,onClick:f,rowHasFocus:Boolean(d),tabIndex:-1},p),o.createElement(wa,null,i&&o.createElement(on,Ye({},i)),o.createElement($a,null,u),c&&o.createElement(ya,null,c)))},xa=w.div.attrs((function(e){var n=e.theme,t=e.isDisabled,r=e.active,o=e.type,i=void 0===o?"default":o,a=n.components.dropdown.items.notActive[i],l=n.components.dropdown.items.active,s=r?l:a;return{opacity:t?.5:1,background:s.background,color:s.color,hoverBackground:s.hoverBackground}}))(hi||(hi=Xe(["\n text-align: left;\n line-height: 21px !important;\n padding: 5px 16px;\n font-size: 14px;\n font-style: normal;\n font-weight: normal;\n\n opacity: ",";\n color: ",";\n background-color: ",";\n\n ","\n\n :focus {\n ","\n }\n"],["\n text-align: left;\n line-height: 21px !important;\n padding: 5px 16px;\n font-size: 14px;\n font-style: normal;\n font-weight: normal;\n\n opacity: ",";\n color: ",";\n background-color: ",";\n\n ","\n\n :focus {\n ","\n }\n"])),(function(e){return e.opacity}),(function(e){return e.color}),(function(e){return e.background}),(function(e){var n=e.rowHasFocus,t=e.hoverBackground;return!n&&$(mi||(mi=Xe(["\n :hover {\n background-color: ",";\n }\n "],["\n :hover {\n background-color: ",";\n }\n "])),t)}),(function(e){var n=e.hoverBackground;return $(gi||(gi=Xe(["\n background-color: ",";\n outline: 0 solid transparent;\n "],["\n background-color: ",";\n outline: 0 solid transparent;\n "])),n)})),wa=w.div(vi||(vi=Xe(["\n display: flex;\n align-items: center;\n\n & > * {\n display: inline;\n }\n\n & > svg {\n margin-right: 10px;\n }\n"],["\n display: flex;\n align-items: center;\n\n & > * {\n display: inline;\n }\n\n & > svg {\n margin-right: 10px;\n }\n"]))),$a=w.div(yi||(yi=Xe(["\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: initial;\n flex: 1 1 auto;\n"],["\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: initial;\n flex: 1 1 auto;\n"]))),Ca=w.div(bi||(bi=Xe(["\n margin: 8px 0;\n display: block;\n height: 1px;\n border: 0;\n border-top: 1px solid ",";\n padding: 0;\n cursor: initial;\n"],["\n margin: 8px 0;\n display: block;\n height: 1px;\n border: 0;\n border-top: 1px solid ",";\n padding: 0;\n cursor: initial;\n"])),(function(e){return e.theme.components.dropdown.separator.color})),ka=function(){return o.createElement(Ca,null)},Ea=w.div(xi||(xi=Xe(["\n cursor: initial;\n text-align: left;\n padding: 4px 16px;\n font-weight: 500;\n font-size: 12px;\n line-height: 18px;\n text-transform: uppercase;\n color: ",";\n"],["\n cursor: initial;\n text-align: left;\n padding: 4px 16px;\n font-weight: 500;\n font-size: 12px;\n line-height: 18px;\n text-transform: uppercase;\n color: ",";\n"])),(function(e){return e.theme.components.dropdown.title.color})),Sa=function(e){var n=e.avatarSize,t=e.img,r=e.noText,i=e.onClick,a=e.placeholder,l=e.renderText,s=e.text;return o.createElement(Da,{clickable:!!i,onClick:i},o.createElement(Qi,{image:t,placeholder:a,size:n||24,text:s}),o.createElement(Ta,null,l||(s||r)))},Da=w.div($i||($i=Xe(["\n ",";\n\n display: flex;\n padding: 4px 16px;\n align-items: center;\n"],["\n ",";\n\n display: flex;\n padding: 4px 16px;\n align-items: center;\n"])),(function(e){return e.clickable&&$(wi||(wi=Xe(["\n &:hover {\n background-color: ",";\n cursor: pointer;\n }\n "],["\n &:hover {\n background-color: ",";\n cursor: pointer;\n }\n "])),(function(e){return e.theme.components.dropdown.items.notActive.default.hoverBackground}))})),Ta=w.div(Ci||(Ci=Xe(["\n width: 50px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n vertical-align: middle;\n flex-grow: 1;\n padding-left: 10px;\n"],["\n width: 50px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n vertical-align: middle;\n flex-grow: 1;\n padding-left: 10px;\n"]))),_a=function(e,n){return e.replace(":id",""+n)},Na=function(e,n,t,r,o,i){if(void 0===i&&(i=-1),!n.includes(":id"))throw new Error("Selector pattern require :id");var a=c(i),l=a[0],s=a[1],d=c(null),u=d[0],p=d[1],f=document.getElementById(e);return null==f||f.addEventListener("focusout",(function(e){!t&&e.relatedTarget instanceof Node&&!f.contains(e.relatedTarget)&&(s(-1),p(null))})),null==f||f.addEventListener("focus",(function(){if(!t){var e=i>=0?i:0,r=document.getElementById(_a(n,e));null==r||r.focus(),p(r),s(e)}})),null==f||f.addEventListener("mousemove",(function(){u&&(u.blur(),p(null))})),X("ArrowUp",(function(e){if(e.preventDefault(),!t&&l>=0){var r=Math.max(l-1,0),o=document.getElementById(_a(n,r));o&&(o.focus(),p(o),s(r))}}),{target:f},[l,t,n]),X("ArrowDown",(function(e){if(e.preventDefault(),!t&&l>=0){var r=Math.min(l+1,o),i=document.getElementById(_a(n,r));i&&(i.focus(),p(i),s(r))}}),{target:f},[l,t,o,n]),X("Enter",(function(e){e.preventDefault(),t||l>=0&&r(l)}),{target:f},[l,t]),[l,s,null!==u]},Pa=function(e){var n=e.closeDropdown,t=e.componentId,r=e.content,a=e.fullWidth,l=e.maxWidth,s=e.rowHasFocus,d=e.setHighlightedItem,c=e.emptyState,u=i((function(){return r.map((function(e,r){var i=e.onClick;e.onMouseEnter;var c=Ve(e,["onClick","onMouseEnter"]);return o.createElement(ba,Ye({componentId:t+"_"+r+"_listItem",fullWidth:a,maxWidth:l,key:r,onMouseEnter:function(){return!s&&d(r)},onClick:function(e){e.stopPropagation(),null==i||i(e),n()},rowHasFocus:s},c))}))}),[n,t,r,a,l,s,d]);return r&&r.length>0?o.createElement(o.Fragment,null,u):c?o.createElement(o.Fragment,null,c):o.createElement(Oa,null,"Non ci sono elementi da visualizzare")},Oa=w.div(ki||(ki=Xe(["\n text-align: center;\n padding: 1em;\n"],["\n text-align: center;\n padding: 1em;\n"]))),Ma=function(e){var n=e.title,t=e.isDisabled;return o.createElement(ca,{text:n,isDisabled:t,iconRight:{icon:D}})},Ra=function(e){var n=e.className,t=e.content,r=e.fullWidth,a=e.maxWidth,u=e.maxHeight,p=e.minWidthAsTrigger,f=void 0!==p&&p,m=e.placement,g=void 0===m?"bottom-start":m,h=e.renderContent,v=e.renderTrigger,y=e.triggerStyles,b=e.title,x=e.forceOpen,w=void 0!==x&&x,$=e.disableArrowNavigation,C=void 0!==$&&$,k=e.isDisabled,E=e.emptyState,S=e.onOpen,D=e.withPadding,T=void 0===D||D,_=e.offsetY,N=void 0===_?4:_,P=e.forceClose,O=void 0!==P&&P,M=c(vo())[0],R=c(!1),I=R[0],A=R[1],F=l((function(){return A(!1)}),[]),L=s(null);fa(L,I,F);var z=l((function(e){return null==t?void 0:t[e].onClick}),[t]),H=Na(M+"_list",M+"_:id_listItem",C,z,t?t.length:0),j=H[1],B=H[2],U=l((function(e){k||(A((function(e){return!e})),e.stopPropagation(),e.preventDefault())}),[k]);d((function(){null==S||S(I)}),[I,S]),d((function(){A(w)}),[w]),d((function(){O&&A(!1)}),[O]);var Y=s(null),W=s(null),G=c(null),K=G[0],X=G[1],Q=V(W.current,Y.current,{placement:g,strategy:"fixed",modifiers:i((function(){return[{name:"arrow",options:{element:K}},{name:"offset",enabled:!0,options:{offset:[0,N]}},{name:"minWidthAsTrigger",enabled:f,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var n=e.state;n.styles.popper.minWidth=n.rects.reference.width+"px"},effect:function(e){var n=e.state,t=n.elements.reference.getBoundingClientRect().width;n.elements.popper.style.minWidth=t+"px"}}]}),[K,N,f])}),Z=Q.attributes,J=Q.styles;return o.createElement(Ia,{id:M,className:n,ref:L},o.createElement("div",{style:y,ref:W,onClick:U},b&&o.createElement(Ma,{title:b,isDisabled:k}),!b&&v&&v()),o.createElement(q,{in:w||I,timeout:200,unmountOnExit:!0,appear:!0},o.createElement(za,null,o.createElement(La,Ye({ref:Y,style:J.popper},Z.popper,{withPadding:T}),o.createElement("div",{ref:X,style:J.arrow}),o.createElement("div",{style:J.offset},t?o.createElement(Aa,{id:M+"_list",fullWidth:r,maxWidth:a,maxHeight:u},o.createElement(Pa,{closeDropdown:F,componentId:M,content:t,disableArrowNavigation:C,fullWidth:r,maxWidth:a,rowHasFocus:B,setHighlightedItem:j,emptyState:E})):o.createElement(Fa,{maxWidth:a},null==h?void 0:h(F)))))))},Ia=w.div(Ei||(Ei=Xe(["\n display: flex;\n"],["\n display: flex;\n"]))),Aa=w.div(_i||(_i=Xe(["\n cursor: pointer;\n\n :focus-within {\n cursor: none;\n }\n ","\n\n ",";\n"],["\n cursor: pointer;\n\n :focus-within {\n cursor: none;\n }\n ","\n\n ",";\n"])),(function(e){var n=e.maxHeight;return n&&$(Si||(Si=Xe(["\n max-height: ",";\n overflow-y: auto;\n "],["\n max-height: ",";\n overflow-y: auto;\n "])),ho(n))}),(function(e){var n=e.fullWidth,t=e.maxWidth;return t?$(Di||(Di=Xe(["\n max-width: ",";\n "],["\n max-width: ",";\n "])),ho(t)):$(Ti||(Ti=Xe(["\n width: ",";\n "],["\n width: ",";\n "])),n?"auto":"200px")})),Fa=w.div(Pi||(Pi=Xe(["\n ","\n"],["\n ","\n"])),(function(e){var n=e.maxWidth;return n&&$(Ni||(Ni=Xe(["\n max-width: ",";\n "],["\n max-width: ",";\n "])),n)})),La=w.div(Mi||(Mi=Xe(["\n overflow-y: hidden;\n ","\n color: ",";\n background-color: ",";\n border-radius: 3px;\n box-shadow: 0 2px 7px -2px rgba(0, 0, 0, 1);\n z-index: 9;\n"],["\n overflow-y: hidden;\n ","\n color: ",";\n background-color: ",";\n border-radius: 3px;\n box-shadow: 0 2px 7px -2px rgba(0, 0, 0, 1);\n z-index: 9;\n"])),(function(e){return e.withPadding&&$(Oi||(Oi=Xe(["\n padding: 8px 0;\n "],["\n padding: 8px 0;\n "])))}),(function(e){return e.theme.components.dropdown.color}),(function(e){return e.theme.components.dropdown.backgroundColor})),za=w.div(Ri||(Ri=Xe(["\n z-index: 9;\n &.enter {\n opacity: 0;\n margin-top: -10px;\n }\n\n &.enter-active {\n opacity: 1;\n margin-top: 0;\n transition: margin-top 200ms, opacity 200ms;\n }\n\n &.exit {\n opacity: 1;\n margin-top: 0;\n }\n\n &.exit-active {\n opacity: 0;\n margin-top: -10px;\n transition: margin-top 200ms, opacity 200ms;\n }\n"],["\n z-index: 9;\n &.enter {\n opacity: 0;\n margin-top: -10px;\n }\n\n &.enter-active {\n opacity: 1;\n margin-top: 0;\n transition: margin-top 200ms, opacity 200ms;\n }\n\n &.exit {\n opacity: 1;\n margin-top: 0;\n }\n\n &.exit-active {\n opacity: 0;\n margin-top: -10px;\n transition: margin-top 200ms, opacity 200ms;\n }\n"]))),Ha=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return Ue(n,e),n.prototype.render=function(){return o.createElement(Ra,Ye({},this.props))},n.Item=ba,n.Title=function(e){return n=e,o.createElement(Ea,null,n.text);var n},n.Separator=ka,n.UserListItem=Sa,n}(a),ja=(rn.grey[900],rn.white[100],rn.black[100],rn.blue[50],rn.grey[100],rn.black[100],rn.grey[100],rn.red[500],rn.red[50],rn.green[500],rn.green[50],rn.yellow[500],rn.yellow[50],rn.blue[500],rn.blue[50],rn.grey[700],rn.grey[100],rn.grey[500],w.span.attrs((function(e){var n=e.disabled,t=e.large,r=e.theme,o=e.hasError,i=r.components.radio.label,a=i.normal,l=i.error;return{fontSize:t?"16px":"14px",cursor:n?"not-allowed":"pointer",opacity:n?.1:1,color:o?l:a}}))(Ii||(Ii=Xe(["\n flex: 1;\n text-align: left;\n font-size: ",";\n cursor: ",";\n color: ",";\n opacity: ",";\n"],["\n flex: 1;\n text-align: left;\n font-size: ",";\n cursor: ",";\n color: ",";\n opacity: ",";\n"])),(function(e){return e.fontSize}),(function(e){return e.cursor}),(function(e){return e.color}),(function(e){return e.opacity}))),Ba=w.div(Ai||(Ai=Xe(["\n display: flex;\n gap: 8px;\n"],["\n display: flex;\n gap: 8px;\n"]))),Ua=w.div(Fi||(Fi=Xe(["\n display: flex;\n flex-flow: column;\n gap: 6px;\n flex: 1;\n"],["\n display: flex;\n flex-flow: column;\n gap: 6px;\n flex: 1;\n"]))),Ya=w.input(Li||(Li=Xe(["\n display: none;\n"],["\n display: none;\n"]))),Va=function(e){var n=e.status,t=e.message,r=function(e,n){var t=C();return n||null===n?n:t.components.inputHelper[e].defaultIcon}(n,e.icon);return o.createElement(Ga,{status:n},r&&o.createElement(Wa,Ye({},r)),t)},Wa=w(on)(zi||(zi=Xe(["\n margin-top: 2px;\n"],["\n margin-top: 2px;\n"]))),Ga=w.div(Hi||(Hi=Xe(["\n color: ",";\n background: ",";\n border-radius: 4px;\n\n padding: 4px 8px;\n\n display: flex;\n align-items: flex-start;\n gap: 8px;\n\n font-size: 12px;\n line-height: 18px;\n\n "," {\n color: ",";\n }\n"],["\n color: ",";\n background: ",";\n border-radius: 4px;\n\n padding: 4px 8px;\n\n display: flex;\n align-items: flex-start;\n gap: 8px;\n\n font-size: 12px;\n line-height: 18px;\n\n "," {\n color: ",";\n }\n"])),(function(e){var n=e.theme,t=e.status;return n.components.inputHelper[t].color}),(function(e){var n=e.theme,t=e.status;return n.components.inputHelper[t].background}),Wa,(function(e){var n=e.theme,t=e.status;return n.components.inputHelper[t].color}));!function(e){e.CHECKED="checked",e.UNCHECKED="unchecked",e.INDETERMINATE="indeterminate"}(ji||(ji={})),function(e){e.NORMAL="normal",e.ERROR="error"}(Bi||(Bi={})),function(e){e.TICKCOLOR="tickColor",e.BACKGROUNDCOLOR="backgroundColor",e.BORDERCOLOR="borderColor"}(Ui||(Ui={}));var Ka,qa,Xa,Qa={checked:_,indeterminate:N,unchecked:null},Za=function(e){return"boolean"==typeof e?e?ji.CHECKED:ji.UNCHECKED:e},Ja=w.span.attrs((function(e){var n=e.theme,t=e.value,r=e.disabled,o=e.large,i=e.hasError,a=n.components.checkbox.input,l=a.normal,s=a.error,d=o?"20px":"16px",c=(i?s:l)[t],u=c.borderColor,p=c.tickColor;return{backgroundColor:c.backgroundColor,tickColor:p,borderColor:u,cursor:r?"not-allowed":"pointer",height:d,width:d,opacity:r?.3:1}}))(Ka||(Ka=Xe(["\n border-radius: 4px;\n font-size: 10px;\n text-align: center;\n\n width: ",";\n height: ",";\n background-color: ",";\n color: ",";\n border: ",";\n cursor: ",";\n\n display: flex;\n justify-content: center;\n align-items: center;\n\n opacity: ",";\n"],["\n border-radius: 4px;\n font-size: 10px;\n text-align: center;\n\n width: ",";\n height: ",";\n background-color: ",";\n color: ",";\n border: ",";\n cursor: ",";\n\n display: flex;\n justify-content: center;\n align-items: center;\n\n opacity: ",";\n"])),(function(e){return e.width}),(function(e){return e.height}),(function(e){return e.backgroundColor}),(function(e){return e.tickColor}),(function(e){return"1px solid "+e.borderColor}),(function(e){return e.cursor}),(function(e){return e.opacity})),el=function(e){var n=e.disabled,t=e.className,r=e.onClick,i=e.large,a=e.text,c=e.value,u=e.helper,p=e.onChange,f=l((function(){var e;return null===(e=h.current)||void 0===e?void 0:e.click()}),[]),m=l((function(e){return!n&&r&&r(e)}),[n,r]),g=Qa[c],h=s(null);d((function(){if(h.current)switch(c){case ji.CHECKED:h.current.checked=!0,h.current.indeterminate=!1;break;case ji.INDETERMINATE:h.current.checked=!1,h.current.indeterminate=!0;break;case ji.UNCHECKED:h.current.checked=!1,h.current.indeterminate=!1}}),[c]);var v="error"===(null==u?void 0:u.status);return o.createElement(Ua,null,o.createElement(Ba,{className:t,onClick:f},o.createElement(Ja,{value:c,large:i,disabled:n,hasError:v},g&&o.createElement(on,{icon:g})),o.createElement(Ya,{ref:h,type:"checkbox",value:c,onClick:m,onChange:p,disabled:n}),!!a&&o.createElement(ja,{large:i,disabled:n,hasError:v},a)),u&&o.createElement(Va,Ye({},u)))},nl=function(e){var n=e.value,t=Ve(e,["value"]);return o.createElement(el,Ye({},t,{value:Za(n)}))},tl={tickColor:rn.white[100],backgroundColor:rn.blue[500],borderColor:rn.blue[500]},rl={tickColor:rn.white[100],backgroundColor:rn.red[500],borderColor:rn.red[500]},ol=(rn.white[100],rn.grey[500],rn.white[100],rn.red[500],rn.black[100],rn.red[500],function(e){void 0===e&&(e=ji.UNCHECKED);var n=c((function(){return Za(e)})),t=n[0],r=n[1],o=t===ji.CHECKED,i=l((function(){return r(ji.CHECKED)}),[]),a=l((function(){return r(ji.UNCHECKED)}),[]),s=l((function(){return r(ji.INDETERMINATE)}),[]),d=l((function(){return r((function(e){return e===ji.UNCHECKED?ji.CHECKED:ji.UNCHECKED}))}),[]);return{status:t,value:o,setCheck:i,setUncheck:a,setIndeterminate:s,toggleCheckbox:d}}),il=$(qa||(qa=Xe(["\n cursor: default !important;\n font-weight: 400 !important;\n display: block !important;\n margin-bottom: 0 !important;\n"],["\n cursor: default !important;\n font-weight: 400 !important;\n display: block !important;\n margin-bottom: 0 !important;\n"])));!function(e){e.STANDARD="standard",e.ERROR="error",e.INFO="info",e.WARNING="warning",e.SUCCESS="success",e.DISABLED="disabled"}(Xa||(Xa={}));var al,ll,sl=w.label(al||(al=Xe(["\n font-size: 12px;\n line-height: 18px;\n\n color: ",";\n\n ","\n\n /* Bootstrap Fixes */\n ","\n"],["\n font-size: 12px;\n line-height: 18px;\n\n color: ",";\n\n ","\n\n /* Bootstrap Fixes */\n ","\n"])),(function(e){var n=e.color,t=e.disabled;return function(e){var n=e.theme,t=e.color;return e.disabled?n.components.label[Xa.DISABLED]:Object.values(Xa).includes(t)?n.components.label[t]:t||n.components.label[Xa.STANDARD]}({theme:e.theme,color:n,disabled:t})}),(function(e){return e.required&&dl}),il),dl=$(ll||(ll=Xe(["\n &:after {\n color: ",";\n content: '*';\n display: inline;\n }\n"],["\n &:after {\n color: ",";\n content: '*';\n display: inline;\n }\n"])),(function(e){return e.theme.components.label[Xa.ERROR]})),cl=function(e){var n=e.label,t=e.disabled,r=e.required,i=e.color;return n?o.createElement(sl,{disabled:t,required:r,color:i},n):null},ul=(rn.red[500],rn.yellow[500],rn.green[500],rn.blue[500],rn.black[100],rn.grey[300],"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{}),pl={exports:{}},fl={exports:{}},ml={},gl="function"==typeof Symbol&&Symbol.for,hl=gl?Symbol.for("react.element"):60103,vl=gl?Symbol.for("react.portal"):60106,yl=gl?Symbol.for("react.fragment"):60107,bl=gl?Symbol.for("react.strict_mode"):60108,xl=gl?Symbol.for("react.profiler"):60114,wl=gl?Symbol.for("react.provider"):60109,$l=gl?Symbol.for("react.context"):60110,Cl=gl?Symbol.for("react.async_mode"):60111,kl=gl?Symbol.for("react.concurrent_mode"):60111,El=gl?Symbol.for("react.forward_ref"):60112,Sl=gl?Symbol.for("react.suspense"):60113,Dl=gl?Symbol.for("react.suspense_list"):60120,Tl=gl?Symbol.for("react.memo"):60115,_l=gl?Symbol.for("react.lazy"):60116,Nl=gl?Symbol.for("react.block"):60121,Pl=gl?Symbol.for("react.fundamental"):60117,Ol=gl?Symbol.for("react.responder"):60118,Ml=gl?Symbol.for("react.scope"):60119;function Rl(e){if("object"==typeof e&&null!==e){var n=e.$$typeof;switch(n){case hl:switch(e=e.type){case Cl:case kl:case yl:case xl:case bl:case Sl:return e;default:switch(e=e&&e.$$typeof){case $l:case El:case _l:case Tl:case wl:return e;default:return n}}case vl:return n}}}function Il(e){return Rl(e)===kl}ml.AsyncMode=Cl,ml.ConcurrentMode=kl,ml.ContextConsumer=$l,ml.ContextProvider=wl,ml.Element=hl,ml.ForwardRef=El,ml.Fragment=yl,ml.Lazy=_l,ml.Memo=Tl,ml.Portal=vl,ml.Profiler=xl,ml.StrictMode=bl,ml.Suspense=Sl,ml.isAsyncMode=function(e){return Il(e)||Rl(e)===Cl},ml.isConcurrentMode=Il,ml.isContextConsumer=function(e){return Rl(e)===$l},ml.isContextProvider=function(e){return Rl(e)===wl},ml.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===hl},ml.isForwardRef=function(e){return Rl(e)===El},ml.isFragment=function(e){return Rl(e)===yl},ml.isLazy=function(e){return Rl(e)===_l},ml.isMemo=function(e){return Rl(e)===Tl},ml.isPortal=function(e){return Rl(e)===vl},ml.isProfiler=function(e){return Rl(e)===xl},ml.isStrictMode=function(e){return Rl(e)===bl},ml.isSuspense=function(e){return Rl(e)===Sl},ml.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===yl||e===kl||e===xl||e===bl||e===Sl||e===Dl||"object"==typeof e&&null!==e&&(e.$$typeof===_l||e.$$typeof===Tl||e.$$typeof===wl||e.$$typeof===$l||e.$$typeof===El||e.$$typeof===Pl||e.$$typeof===Ol||e.$$typeof===Ml||e.$$typeof===Nl)},ml.typeOf=Rl;var Al={};
16
16
  /** @license React v16.13.1
17
17
  * react-is.development.js
18
18
  *